smbls 3.14.855 → 3.14.856

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 (47) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/smbls.cjs +46 -46
  3. package/dist/smbls.cjs.map +3 -3
  4. package/dist/smbls.core.chunk-BHRVYUXM.esm.js +7 -0
  5. package/dist/smbls.core.chunk-BHRVYUXM.esm.js.map +6 -0
  6. package/dist/smbls.core.chunk-FPRKFQFJ.esm.js +36 -0
  7. package/dist/smbls.core.chunk-FPRKFQFJ.esm.js.map +1 -0
  8. package/dist/{smbls.core.chunk-7RWDIF2S.esm.js → smbls.core.chunk-GC6GDPKF.esm.js} +15 -15
  9. package/dist/smbls.core.chunk-GC6GDPKF.esm.js.map +1 -0
  10. package/dist/smbls.core.chunk-J4QHWJGA.esm.js +2 -0
  11. package/dist/smbls.core.chunk-J4QHWJGA.esm.js.map +1 -0
  12. package/dist/smbls.core.chunk-VG333WGF.esm.js +22 -0
  13. package/dist/smbls.core.chunk-VG333WGF.esm.js.map +6 -0
  14. package/dist/{smbls.core.dropdown-PXAJ2VAG.esm.js → smbls.core.dropdown-XABH5ZRW.esm.js} +2 -2
  15. package/dist/smbls.core.esm.js +1 -1
  16. package/dist/{smbls.core.fetch-WPTPOQQO.esm.js → smbls.core.fetch-JWDHRWJY.esm.js} +2 -2
  17. package/dist/{smbls.core.fetchOnCreate-G5SI6QY4.esm.js → smbls.core.fetchOnCreate-IYA76D26.esm.js} +2 -2
  18. package/dist/{smbls.core.inspect-35DHLAA5.esm.js → smbls.core.inspect-LGTX7BS7.esm.js} +2 -2
  19. package/dist/smbls.core.sync-CN2JST7C.esm.js +2 -0
  20. package/dist/smbls.core.sync-CN2JST7C.esm.js.map +6 -0
  21. package/dist/{smbls.core.windows-XMCWCGON.esm.js → smbls.core.windows-MYD3DCHT.esm.js} +2 -2
  22. package/dist/smbls.embed.iife.js.map +1 -1
  23. package/dist/smbls.esm.js +46 -46
  24. package/dist/smbls.esm.js.map +1 -1
  25. package/dist/smbls.iife-string.js +2 -2
  26. package/dist/smbls.iife.js +1 -1
  27. package/dist/smbls.iife.js.map +1 -1
  28. package/dist/smbls.server-utils.esm.js +9 -9
  29. package/dist/smbls.server-utils.esm.js.map +3 -3
  30. package/dist/smbls.socket-io-client.esm.js.map +1 -1
  31. package/package.json +3 -3
  32. package/dist/smbls.core.chunk-7RWDIF2S.esm.js.map +0 -1
  33. package/dist/smbls.core.chunk-CCELIELA.esm.js +0 -2
  34. package/dist/smbls.core.chunk-CCELIELA.esm.js.map +0 -1
  35. package/dist/smbls.core.chunk-F7PSOVLR.esm.js +0 -36
  36. package/dist/smbls.core.chunk-F7PSOVLR.esm.js.map +0 -1
  37. package/dist/smbls.core.chunk-FNPJKVQM.esm.js +0 -22
  38. package/dist/smbls.core.chunk-FNPJKVQM.esm.js.map +0 -6
  39. package/dist/smbls.core.chunk-ULA4ERZ5.esm.js +0 -7
  40. package/dist/smbls.core.chunk-ULA4ERZ5.esm.js.map +0 -6
  41. package/dist/smbls.core.sync-ABZ7ZHXJ.esm.js +0 -2
  42. package/dist/smbls.core.sync-ABZ7ZHXJ.esm.js.map +0 -6
  43. /package/dist/{smbls.core.dropdown-PXAJ2VAG.esm.js.map → smbls.core.dropdown-XABH5ZRW.esm.js.map} +0 -0
  44. /package/dist/{smbls.core.fetch-WPTPOQQO.esm.js.map → smbls.core.fetch-JWDHRWJY.esm.js.map} +0 -0
  45. /package/dist/{smbls.core.fetchOnCreate-G5SI6QY4.esm.js.map → smbls.core.fetchOnCreate-IYA76D26.esm.js.map} +0 -0
  46. /package/dist/{smbls.core.inspect-35DHLAA5.esm.js.map → smbls.core.inspect-LGTX7BS7.esm.js.map} +0 -0
  47. /package/dist/{smbls.core.windows-XMCWCGON.esm.js.map → smbls.core.windows-MYD3DCHT.esm.js.map} +0 -0
@@ -1,13 +1,13 @@
1
- function __smblsNs(c,a){for(var b in a)Object.defineProperty(c,b,{get:a[b],enumerable:!0});return c}import{f as ln,h as N,i as Fu,j as fe,k as aa,l as Wo,m as ju,n as Vu,o as fn,p as Uu,q as J,u as Wu}from"./smbls.core.chunk-CCELIELA.esm.js";import{$ as Yu,$a as eo,Ea as Xu,Fa as Qu,Ga as dn,I as Hu,M as Tt,U as Gu,Ua as us,V as Ku,X as ls,Z as qu,ab as j,d as E,e as C,f as to,g as ht,ga as Zu,ha as Ke,j as K,ja as At,ka as Se,l as U,m as St,ma as Yt,n as cs,p as zo,ra as Ho,sa as fs,z as zu}from"./smbls.core.chunk-FNPJKVQM.esm.js";import{f as ca,g as Go}from"./smbls.core.chunk-I5EGBLTJ.esm.js";import{c as un,d as qt}from"./smbls.core.chunk-PDZOHW5Y.esm.js";import{a as F}from"./smbls.core.chunk-WFARPHWF.esm.js";var pn=t=>!!(t&&t.documentElement&&typeof t.createElement=="function"&&t.head!==void 0),hn=t=>{if(t===null||typeof t!="object")return!1;let e=Object.prototype.toString.call(t);return!!(e!=="[object Object]"&&e!=="[object Array]"||typeof t.nodeType=="number"||t.defaultView||t.window===t||t.self===t)},Sx=t=>t!==null&&typeof t=="object"&&!hn(t),no=(t,e,n)=>{if(!t)return;if(pn(n)){t.__domDocument||(t.__domDocument=n);return}let o=`__host_${e}`;t[o]||(t[o]=n)},ds=t=>t?pn(t.__domDocument)?t.__domDocument:pn(t.document)?t.document:null:null;var Ko=t=>t==="em"||t==="rem"||t==="vw"||t==="vh"||t==="vmax"||t==="vmin",ps=["px","cm","mm","in","pt","pc","em","rem","ex","cap","ch","ic","lh","rlh","%","vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh","cqw","cqh","cqi","cqb","cqmin","cqmax","deg","rad","grad","turn","s","ms","dpi","dpcm","dppx","fr","auto"],xx=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),wx=new RegExp(`^-?(?:\\d+\\.?\\d*|\\.\\d+)(?:${ps.filter(t=>t!=="auto").map(xx).join("|")})$`),la=t=>wx.test(String(t).trim());var aR=t=>{let{state:e,props:n,__ref:o}=t,r=n?.state||e;return zo(r)("string","number")?(o.__state=r,{value:r}):r===!0?(o.__state=t.key,{}):r?(o.__hasRootState=!0,r):!1},kx=(t,e)=>{if(!t.includes("~/"))return;if(t.split("~/").length>1)return e.root},Cx=(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},Tx=(t,e,n={})=>{let o=C(t)?t.split("/"):[t],r=o.length-1;for(let s=0;s<r;s++){let i=o[s],a=o[s+1];if(i==="__proto__"||a==="__proto__")return;let c=e[i];c||(c=e[i]={}),c[a]||(c[a]={}),t=a,e=c}return n.returnParent?e:e[t]},Ax=(t,e,n={})=>{let r=t.__ref.__state;if(!vx(t))return;let s=kx(r,e.state),i=e.state;if(s)i=s,r=r.replaceAll("~/","");else{let a=Cx(r,e.state);a&&(i=a,r=r.replaceAll("../",""))}if(i)return Tx(r,i,n)},cR=(t,e)=>{let n=t.__ref,o=Ax(t,e);if(o===void 0)return t.state;if(zo(o)("object","array"))return Yt(o);if(zo(o)("string","number","boolean"))return n.__stateType=typeof o,{value:o};globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(n.__state,"is not present. Replacing with",{})},vx=t=>{let{__ref:e}=t,n=e?.__state;return!!(n&&zo(n)("number","string","boolean"))},lR=function(t){return U(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},fR=(t,e)=>{if(!t)return e||{};let n=t.split("/"),o={},r=o,s=n.length-1;for(let i=0;i<=s;i++)r[n[i]]=i===s?e||{}:{},r=r[n[i]];return o},uR=(t,e)=>{let{__element:n}=e,o=n?.state;if(!o)return;let r=Yt(o,ls),s={[t.key]:r},i=E(o.__depends)?{...o.__depends,...s}:s;return Array.isArray(o)?Hu(o,{...Object.getPrototypeOf(o),__depends:i}):Object.setPrototypeOf(o,{...Object.getPrototypeOf(o),__depends:i}),r},Ox=new Set(["parent","root"]),Ju=new Set,Ex=t=>{Ju.has(t)||(Ju.add(t),!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&j()&&console.warn(`[smbls/state] the declared state key "${t}" names a state bookkeeping slot (parent / root) and was NOT copied into the state. Rename the key (e.g. "`+t.split(".").pop()+'Data").'))},nd=(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 s=n?n+"."+r:r;if(Ox.has(r)){Ex(s);continue}let i=t[r],a=e[r];U(i)&&U(a)?(o.push(t,e),nd(i,a,s,o),o.length-=2):i===void 0&&(t[r]=a)}return t},dR=(t,e)=>!U(t)||!U(e)?t:nd(t,e,"",[]),pR=(t,e,n={})=>{let{overwrite:o}=n;if(!o)return;let r=o==="shallow";if(o==="merge"){Se(t,e,ls);return}(r?Qu:dn)(t,e,ls)},td="__polyglotSeededKeys",qo=t=>{if(!E(t))return new Set;let e=t[td];if(!(e instanceof Set)){e=new Set;try{Object.defineProperty(t,td,{value:e,enumerable:!1,writable:!0,configurable:!0})}catch{}}return e},od=(t,e,n)=>qo(t).has(e)?!0:!E(n)||n[e]===void 0,ed="__polyglotSeededValues",rd=t=>{if(!E(t))return new Map;let e=t[ed];if(!(e instanceof Map)){e=new Map;try{Object.defineProperty(t,ed,{value:e,enumerable:!1,writable:!0,configurable:!0})}catch{}}return e},sd=t=>{if(t===null||typeof t!="object")return typeof t+":"+String(t);try{return"json:"+JSON.stringify(t)}catch{return null}},hR=(t,e,n)=>{if(!qo(t).has(e))return!1;let o=rd(t);if(!o.has(e))return!0;let r=E(n)||Array.isArray(n)?n[e]:void 0,s=sd(r);return s!==null&&s===o.get(e)},id=(t,e,...n)=>(qo(t).add(e),n.length&&rd(t).set(e,sd(n[0])),e);var ad=(t,e)=>{let n="on"+t.charAt(0).toUpperCase()+t.slice(1);return e[n]},Rx=(t,e,n,o,r)=>{if(t=ca(t,e),!!ht(t))try{let s=t.call(e,e,n||e.state,o||e.context,r);return s&&typeof s.then=="function"&&s.catch(i=>{e.error=i,i instanceof ReferenceError?console.warn("[DOMQL] Async event warning:",i.message):console.error("[DOMQL] Async event error:",i)}),s}catch(s){if(e.error=s,s instanceof ReferenceError?console.warn("[DOMQL] Event handler warning:",s.message):console.error("[DOMQL] Event handler error:",s),e.context?.strictMode)throw s}},oo=(t,e,n)=>{if(!e)throw new Error("Element is required");Go(t,e,n);let o=ad(t,e);if(o){let{state:r,context:s}=e;return Rx(o,e,r,s,n)}},Dx=(t,e,n,o,r,s)=>{if(t=ca(t,n),!!ht(t))try{let i=t.call(n,e,n,o||n.state,r||n.context,s);return i&&typeof i.then=="function"&&i.catch(a=>{n.error=a,console.error("[DOMQL] Async event update error:",a)}),i}catch(i){if(n.error=i,console.error("[DOMQL] Event update error:",i),n.context?.strictMode)throw i}},yR=(t,e,n,o)=>{Go(t,n,e,o);let r=ad(t,n);if(r){let{state:s,context:i}=n;return Dx(r,e,n,s,i,o)}};var SR={},cd={};var qe="production";function ud(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 ER(t){let e=this,{parent:n}=e;if(ht(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 RR(t){let e=this,{__ref:n}=e,o=n?.__children;if(o)for(let r=0;r<o.length;r++){let s=o[r],i=e[s];if(s===t)return i;if(ht(t)){let c=t(i,i.state,i.context);if(i.state&&c)return i}let a=i?.lookdown?.(t);if(a)return a}}function DR(t,e=[]){let n=this,{__ref:o}=n,r=o?.__children;if(r){for(let s=0;s<r.length;s++){let i=r[s],a=n[i];if(i===t)e.push(a);else if(ht(t)){let c=t(a,a.state,a.context);a.state&&c&&e.push(a)}a?.lookdownAll?.(t,e)}return e.length?e:void 0}}function Ix(t={}){let e=this;if(e.node?.style){for(let n in t){let o=t[n],r=e[n];if(E(o)&&r)Ix.call(r,o);else if(o!=null){let s=n.replace(/[A-Z]/g,a=>"-"+a.toLowerCase()),i=String(o).replace(/\s*!important\s*$/,"");e.node.style.setProperty(s,i,"important")}}return e}}function IR(t){let e=this;if(oo("beforeRemove",e,t)===!1)return e;ht(e.node.remove)?e.node.remove():us()||(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("This item cant be removed"),e.log()),delete e.parent[e.key],e.parent.__ref&&(e.parent.__ref.__children=zu(e.parent.__ref.__children,e.key)),oo("remove",e,t)}function LR(t){return this[t]}function PR(t,e){let n=this;if(t)return n.update(t,e),n}function MR(t){return t?this.__ref&&this.__ref[t]:this.__ref}function BR(){let t=this.getRef("__children");return Array.isArray(t)?t.map(e=>this[e]):[]}function dd(){return this.getRef().path}var gs=null,NR=t=>{gs=t||null},ua=(t,e)=>{t&&e&&gs===t&&(gs=e)},ld=()=>gs||null;function pd(t){let e=null,n=o=>o.__element&&o.root?.isRootState;if(!this)e=ld();else if(n(this))e=this.root;else if(this.__ref&&this.__ref.path){let o=this.state&&n(this.state),r=ht(this.state)&&this.parent.state&&n(this.parent.state);(o||r)&&(e=this.state.root||this.parent.state.root)}return e||(e=ld()),t?e?.[t]:e}function hd(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 gd(t){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&t?this.getRoot("data")[t]:this.getRoot("data")}function _d(t){let e=this.getRoot()?.context;return t?e[t]:e}function md(t){let e=this.context;return t?e[t]:e}var $R=(t,e,n,o)=>Object.defineProperty(t,e,{get:n,set:o});function Lx(){let t=this,e=[];for(let n in t)!Object.prototype.hasOwnProperty.call(t,n)||Gu.has(n)&&!Ku.has(n)||e.push(n);return e}function Px(t=[]){let e=this,n={},o=Lx.call(e),r=o.includes("children"),s=t.length?new Set(t):null;for(let i=0;i<o.length;i++){let a=o[i];if(s&&s.has(a)||!Object.prototype.hasOwnProperty.call(e,a)||r&&a==="content")continue;let c=e[a];if(a==="state"){if(e.__ref&&!e.__ref.__hasRootState)continue;let l=ht(c&&c.parse)?c.parse():c;n[a]=ht(l)?l:JSON.parse(JSON.stringify(l||{}))}else if(a==="scope"){if(e.__ref&&!e.__ref.__hasRootScope)continue;n[a]=JSON.parse(JSON.stringify(c||{}))}else if(a==="props"){let{__element:l,update:u,...f}=e[a];n[a]=f}else St(c)&&Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=c)}return n}function fd(t=[],e=new WeakSet){let n=this;if(e.has(n))return;e.add(n);let o=Px.call(n,t),r=t.length?new Set(t):null;for(let s in o){if(r&&r.has(s)||!Object.prototype.hasOwnProperty.call(n,s))continue;let i=o[s];Array.isArray(i)?o[s]=i.map(a=>U(a)?fd.call(a,t,e):a):U(i)&&(o[s]=fd.call(i,t,e))}return o}function da(...t){if(qe!=="test"&&qe!=="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 FR(...t){(qe==="test"||qe==="development")&&console.log(...t)}function yd(...t){(qe==="test"||qe==="development")&&console.warn(...t)}function _s(...t){if(qe==="test"||qe==="development"){if(t[t.length-1]?.debugger)debugger;throw t[t.length-1]?.verbose&&da.call(this),new Error(...t)}}function bd(){let t=this,{key:e,parent:n}=t,{__children:o}=n.__ref,r=o.indexOf(e),s=o[r+1];return n[s]}function Sd(t){let e=t||this,{key:n,parent:o}=e,{__children:r}=o.__ref;if(!r)return;let s=r.indexOf(n);return o[r[s-1]]}function xd(t={}){let e=this;e.data||(e.data={}),e.data.varCaches||(e.data.varCaches={});let n=e.data.varCaches,o={},r;for(let s in t)t[s]!==n[s]&&(r=!0,o[s]=t[s]);return{changed:s=>{if(!r)return;let i=s(o,Yt(n));for(let a in o)n[a]=o[a];return i},timeout:(s,i)=>{if(!r)return;let a=setTimeout(()=>{s(o),clearTimeout(a)},i)}}}function jR(t,...e){let n=this.context,o=n.utils?.[t]||n.functions?.[t]||n.methods?.[t]||n.snippets?.[t];if(o&&!fs(o))try{let r=o.call(this,...e);return r&&typeof r.then=="function"&&r.catch(s=>{_s.call(this,s)}),r}catch(r){if(_s.call(this,r),n?.strictMode)throw r}}var Mx="[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.",hs=()=>import("./smbls.core.fetch-WPTPOQQO.esm.js").catch(t=>{throw new Error(Mx,{cause:t})});async function wd(){let t=this,e=t.context?.fetch;if(!e)return null;if(typeof e.select=="function"){if(!e.__authInitialized&&e.getSession){let{initAdapterAuth:r}=await hs();await r(e,t.context)}return e}if(e.__resolved){if(!e.__resolved.__authInitialized&&e.__resolved.getSession){let{initAdapterAuth:r}=await hs();await r(e.__resolved,t.context)}return e.__resolved}if(e.__resolving)return e.__resolving;let n=hs().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 hs();await r(o,t.context)}return o}function kd(t){let e=this,n=t||cd.useStateQuery||e.context?.useStateQuery;if(!n)return null;let o={};if(fa(e,o),n===!0)return o;let r=Ux[n];return r?r(o):o}var fa=(t,e)=>{let n=t.__ref;if(!n)return;let o=n.__state;o&&typeof o=="string"&&Bx(e,o);let r=n.__children;if(r)for(let a=0;a<r.length;a++){let c=t[r[a]];c&&c.__ref&&fa(c,e)}let s=n.contentElementKey||"content",i=t[s];i&&i.__ref&&fa(i,e)},Bx=(t,e)=>{let o=e.replaceAll("../","").replaceAll("~/","").split("/"),r=t;for(let s=0;s<o.length;s++){let i=o[s];s===o.length-1?r[i]||(r[i]=!0):(r[i]===!0&&(r[i]={}),r[i]||(r[i]={}),r=r[i])}},Cd=(t,e=0)=>{let n=" ".repeat(e),o=Object.entries(t);return o.length?o.map(([s,i])=>i===!0?`${n}${s}`:`${n}${s} {
3
- ${Cd(i,e+1)}
1
+ function __smblsNs(c,a){for(var b in a)Object.defineProperty(c,b,{get:a[b],enumerable:!0});return c}import{f as ln,h as N,i as $u,j as fe,k as ia,l as Wo,m as Fu,n as ju,o as fn,p as Vu,q as J,u as Uu,z as Xu}from"./smbls.core.chunk-J4QHWJGA.esm.js";import{$ as Ku,Fa as Yu,Ga as Zu,Ha as dn,I as zu,M as Tt,U as Hu,V as Gu,Va as us,X as ls,Z as qu,ab as eo,bb as j,d as E,e as C,f as to,g as ht,ia as qe,j as q,ka as At,l as U,la as Se,m as St,n as cs,na as Yt,p as zo,sa as Ho,ta as fs,z as Wu}from"./smbls.core.chunk-VG333WGF.esm.js";import{f as aa,g as Go}from"./smbls.core.chunk-I5EGBLTJ.esm.js";import{c as un,d as Kt}from"./smbls.core.chunk-PDZOHW5Y.esm.js";import{a as F}from"./smbls.core.chunk-WFARPHWF.esm.js";var pn=t=>!!(t&&t.documentElement&&typeof t.createElement=="function"&&t.head!==void 0),hn=t=>{if(t===null||typeof t!="object")return!1;let e=Object.prototype.toString.call(t);return!!(e!=="[object Object]"&&e!=="[object Array]"||typeof t.nodeType=="number"||t.defaultView||t.window===t||t.self===t)},yx=t=>t!==null&&typeof t=="object"&&!hn(t),no=(t,e,n)=>{if(!t)return;if(pn(n)){t.__domDocument||(t.__domDocument=n);return}let o=`__host_${e}`;t[o]||(t[o]=n)},ds=t=>t?pn(t.__domDocument)?t.__domDocument:pn(t.document)?t.document:null:null;var qo=t=>t==="em"||t==="rem"||t==="vw"||t==="vh"||t==="vmax"||t==="vmin",ps=["px","cm","mm","in","pt","pc","em","rem","ex","cap","ch","ic","lh","rlh","%","vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh","cqw","cqh","cqi","cqb","cqmin","cqmax","deg","rad","grad","turn","s","ms","dpi","dpcm","dppx","fr","auto"],bx=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Sx=new RegExp(`^-?(?:\\d+\\.?\\d*|\\.\\d+)(?:${ps.filter(t=>t!=="auto").map(bx).join("|")})$`),ca=t=>Sx.test(String(t).trim());var eR=t=>{let{state:e,props:n,__ref:o}=t,r=n?.state||e;return zo(r)("string","number")?(o.__state=r,{value:r}):r===!0?(o.__state=t.key,{}):r?(o.__hasRootState=!0,r):!1},xx=(t,e)=>{if(!t.includes("~/"))return;if(t.split("~/").length>1)return e.root},wx=(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},kx=(t,e,n={})=>{let o=C(t)?t.split("/"):[t],r=o.length-1;for(let s=0;s<r;s++){let i=o[s],a=o[s+1];if(i==="__proto__"||a==="__proto__")return;let c=e[i];c||(c=e[i]={}),c[a]||(c[a]={}),t=a,e=c}return n.returnParent?e:e[t]},Cx=(t,e,n={})=>{let r=t.__ref.__state;if(!Tx(t))return;let s=xx(r,e.state),i=e.state;if(s)i=s,r=r.replaceAll("~/","");else{let a=wx(r,e.state);a&&(i=a,r=r.replaceAll("../",""))}if(i)return kx(r,i,n)},nR=(t,e)=>{let n=t.__ref,o=Cx(t,e);if(o===void 0)return t.state;if(zo(o)("object","array"))return Yt(o);if(zo(o)("string","number","boolean"))return n.__stateType=typeof o,{value:o};globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(n.__state,"is not present. Replacing with",{})},Tx=t=>{let{__ref:e}=t,n=e?.__state;return!!(n&&zo(n)("number","string","boolean"))},oR=function(t){return U(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},rR=(t,e)=>{if(!t)return e||{};let n=t.split("/"),o={},r=o,s=n.length-1;for(let i=0;i<=s;i++)r[n[i]]=i===s?e||{}:{},r=r[n[i]];return o},sR=(t,e)=>{let{__element:n}=e,o=n?.state;if(!o)return;let r=Yt(o,ls),s={[t.key]:r},i=E(o.__depends)?{...o.__depends,...s}:s;return Array.isArray(o)?zu(o,{...Object.getPrototypeOf(o),__depends:i}):Object.setPrototypeOf(o,{...Object.getPrototypeOf(o),__depends:i}),r},Ax=new Set(["parent","root"]),Qu=new Set,vx=t=>{Qu.has(t)||(Qu.add(t),!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&j()&&console.warn(`[smbls/state] the declared state key "${t}" names a state bookkeeping slot (parent / root) and was NOT copied into the state. Rename the key (e.g. "`+t.split(".").pop()+'Data").'))},ed=(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 s=n?n+"."+r:r;if(Ax.has(r)){vx(s);continue}let i=t[r],a=e[r];U(i)&&U(a)?(o.push(t,e),ed(i,a,s,o),o.length-=2):i===void 0&&(t[r]=a)}return t},iR=(t,e)=>!U(t)||!U(e)?t:ed(t,e,"",[]),aR=(t,e,n={})=>{let{overwrite:o}=n;if(!o)return;let r=o==="shallow";if(o==="merge"){Se(t,e,ls);return}(r?Zu:dn)(t,e,ls)},Ju="__polyglotSeededKeys",Ko=t=>{if(!E(t))return new Set;let e=t[Ju];if(!(e instanceof Set)){e=new Set;try{Object.defineProperty(t,Ju,{value:e,enumerable:!1,writable:!0,configurable:!0})}catch{}}return e},nd=(t,e,n)=>Ko(t).has(e)?!0:!E(n)||n[e]===void 0,td="__polyglotSeededValues",od=t=>{if(!E(t))return new Map;let e=t[td];if(!(e instanceof Map)){e=new Map;try{Object.defineProperty(t,td,{value:e,enumerable:!1,writable:!0,configurable:!0})}catch{}}return e},rd=t=>{if(t===null||typeof t!="object")return typeof t+":"+String(t);try{return"json:"+JSON.stringify(t)}catch{return null}},cR=(t,e,n)=>{if(!Ko(t).has(e))return!1;let o=od(t);if(!o.has(e))return!0;let r=E(n)||Array.isArray(n)?n[e]:void 0,s=rd(r);return s!==null&&s===o.get(e)},sd=(t,e,...n)=>(Ko(t).add(e),n.length&&od(t).set(e,rd(n[0])),e);var id=(t,e)=>{let n="on"+t.charAt(0).toUpperCase()+t.slice(1);return e[n]},Ox=(t,e,n,o,r)=>{if(t=aa(t,e),!!ht(t))try{let s=t.call(e,e,n||e.state,o||e.context,r);return s&&typeof s.then=="function"&&s.catch(i=>{e.error=i,i instanceof ReferenceError?console.warn("[DOMQL] Async event warning:",i.message):console.error("[DOMQL] Async event error:",i)}),s}catch(s){if(e.error=s,s instanceof ReferenceError?console.warn("[DOMQL] Event handler warning:",s.message):console.error("[DOMQL] Event handler error:",s),e.context?.strictMode)throw s}},oo=(t,e,n)=>{if(!e)throw new Error("Element is required");Go(t,e,n);let o=id(t,e);if(o){let{state:r,context:s}=e;return Ox(o,e,r,s,n)}},Ex=(t,e,n,o,r,s)=>{if(t=aa(t,n),!!ht(t))try{let i=t.call(n,e,n,o||n.state,r||n.context,s);return i&&typeof i.then=="function"&&i.catch(a=>{n.error=a,console.error("[DOMQL] Async event update error:",a)}),i}catch(i){if(n.error=i,console.error("[DOMQL] Event update error:",i),n.context?.strictMode)throw i}},dR=(t,e,n,o)=>{Go(t,n,e,o);let r=id(t,n);if(r){let{state:s,context:i}=n;return Ex(r,e,n,s,i,o)}};var hR={},ad={};var Ke="production";function fd(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 kR(t){let e=this,{parent:n}=e;if(ht(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 CR(t){let e=this,{__ref:n}=e,o=n?.__children;if(o)for(let r=0;r<o.length;r++){let s=o[r],i=e[s];if(s===t)return i;if(ht(t)){let c=t(i,i.state,i.context);if(i.state&&c)return i}let a=i?.lookdown?.(t);if(a)return a}}function TR(t,e=[]){let n=this,{__ref:o}=n,r=o?.__children;if(r){for(let s=0;s<r.length;s++){let i=r[s],a=n[i];if(i===t)e.push(a);else if(ht(t)){let c=t(a,a.state,a.context);a.state&&c&&e.push(a)}a?.lookdownAll?.(t,e)}return e.length?e:void 0}}function Rx(t={}){let e=this;if(e.node?.style){for(let n in t){let o=t[n],r=e[n];if(E(o)&&r)Rx.call(r,o);else if(o!=null){let s=n.replace(/[A-Z]/g,a=>"-"+a.toLowerCase()),i=String(o).replace(/\s*!important\s*$/,"");e.node.style.setProperty(s,i,"important")}}return e}}function AR(t){let e=this;if(oo("beforeRemove",e,t)===!1)return e;ht(e.node.remove)?e.node.remove():us()||(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("This item cant be removed"),e.log()),delete e.parent[e.key],e.parent.__ref&&(e.parent.__ref.__children=Wu(e.parent.__ref.__children,e.key)),oo("remove",e,t)}function vR(t){return this[t]}function OR(t,e){let n=this;if(t)return n.update(t,e),n}function ER(t){return t?this.__ref&&this.__ref[t]:this.__ref}function RR(){let t=this.getRef("__children");return Array.isArray(t)?t.map(e=>this[e]):[]}function ud(){return this.getRef().path}var gs=null,DR=t=>{gs=t||null},fa=(t,e)=>{t&&e&&gs===t&&(gs=e)},cd=()=>gs||null;function dd(t){let e=null,n=o=>o.__element&&o.root?.isRootState;if(!this)e=cd();else if(n(this))e=this.root;else if(this.__ref&&this.__ref.path){let o=this.state&&n(this.state),r=ht(this.state)&&this.parent.state&&n(this.parent.state);(o||r)&&(e=this.state.root||this.parent.state.root)}return e||(e=cd()),t?e?.[t]:e}function pd(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 hd(t){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&t?this.getRoot("data")[t]:this.getRoot("data")}function gd(t){let e=this.getRoot()?.context;return t?e[t]:e}function _d(t){let e=this.context;return t?e[t]:e}var IR=(t,e,n,o)=>Object.defineProperty(t,e,{get:n,set:o});function Dx(){let t=this,e=[];for(let n in t)!Object.prototype.hasOwnProperty.call(t,n)||Hu.has(n)&&!Gu.has(n)||e.push(n);return e}function Ix(t=[]){let e=this,n={},o=Dx.call(e),r=o.includes("children"),s=t.length?new Set(t):null;for(let i=0;i<o.length;i++){let a=o[i];if(s&&s.has(a)||!Object.prototype.hasOwnProperty.call(e,a)||r&&a==="content")continue;let c=e[a];if(a==="state"){if(e.__ref&&!e.__ref.__hasRootState)continue;let l=ht(c&&c.parse)?c.parse():c;n[a]=ht(l)?l:JSON.parse(JSON.stringify(l||{}))}else if(a==="scope"){if(e.__ref&&!e.__ref.__hasRootScope)continue;n[a]=JSON.parse(JSON.stringify(c||{}))}else if(a==="props"){let{__element:l,update:u,...f}=e[a];n[a]=f}else St(c)&&Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=c)}return n}function ld(t=[],e=new WeakSet){let n=this;if(e.has(n))return;e.add(n);let o=Ix.call(n,t),r=t.length?new Set(t):null;for(let s in o){if(r&&r.has(s)||!Object.prototype.hasOwnProperty.call(n,s))continue;let i=o[s];Array.isArray(i)?o[s]=i.map(a=>U(a)?ld.call(a,t,e):a):U(i)&&(o[s]=ld.call(i,t,e))}return o}function ua(...t){if(Ke!=="test"&&Ke!=="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 LR(...t){(Ke==="test"||Ke==="development")&&console.log(...t)}function md(...t){(Ke==="test"||Ke==="development")&&console.warn(...t)}function _s(...t){if(Ke==="test"||Ke==="development"){if(t[t.length-1]?.debugger)debugger;throw t[t.length-1]?.verbose&&ua.call(this),new Error(...t)}}function yd(){let t=this,{key:e,parent:n}=t,{__children:o}=n.__ref,r=o.indexOf(e),s=o[r+1];return n[s]}function bd(t){let e=t||this,{key:n,parent:o}=e,{__children:r}=o.__ref;if(!r)return;let s=r.indexOf(n);return o[r[s-1]]}function Sd(t={}){let e=this;e.data||(e.data={}),e.data.varCaches||(e.data.varCaches={});let n=e.data.varCaches,o={},r;for(let s in t)t[s]!==n[s]&&(r=!0,o[s]=t[s]);return{changed:s=>{if(!r)return;let i=s(o,Yt(n));for(let a in o)n[a]=o[a];return i},timeout:(s,i)=>{if(!r)return;let a=setTimeout(()=>{s(o),clearTimeout(a)},i)}}}function PR(t,...e){let n=this.context,o=n.utils?.[t]||n.functions?.[t]||n.methods?.[t]||n.snippets?.[t];if(o&&!fs(o))try{let r=o.call(this,...e);return r&&typeof r.then=="function"&&r.catch(s=>{_s.call(this,s)}),r}catch(r){if(_s.call(this,r),n?.strictMode)throw r}}var Lx="[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.",hs=()=>import("./smbls.core.fetch-JWDHRWJY.esm.js").catch(t=>{throw new Error(Lx,{cause:t})});async function xd(){let t=this,e=t.context?.fetch;if(!e)return null;if(typeof e.select=="function"){if(!e.__authInitialized&&e.getSession){let{initAdapterAuth:r}=await hs();await r(e,t.context)}return e}if(e.__resolved){if(!e.__resolved.__authInitialized&&e.__resolved.getSession){let{initAdapterAuth:r}=await hs();await r(e.__resolved,t.context)}return e.__resolved}if(e.__resolving)return e.__resolving;let n=hs().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 hs();await r(o,t.context)}return o}function wd(t){let e=this,n=t||ad.useStateQuery||e.context?.useStateQuery;if(!n)return null;let o={};if(la(e,o),n===!0)return o;let r=jx[n];return r?r(o):o}var la=(t,e)=>{let n=t.__ref;if(!n)return;let o=n.__state;o&&typeof o=="string"&&Px(e,o);let r=n.__children;if(r)for(let a=0;a<r.length;a++){let c=t[r[a]];c&&c.__ref&&la(c,e)}let s=n.contentElementKey||"content",i=t[s];i&&i.__ref&&la(i,e)},Px=(t,e)=>{let o=e.replaceAll("../","").replaceAll("~/","").split("/"),r=t;for(let s=0;s<o.length;s++){let i=o[s];s===o.length-1?r[i]||(r[i]=!0):(r[i]===!0&&(r[i]={}),r[i]||(r[i]={}),r=r[i])}},kd=(t,e=0)=>{let n=" ".repeat(e),o=Object.entries(t);return o.length?o.map(([s,i])=>i===!0?`${n}${s}`:`${n}${s} {
3
+ ${kd(i,e+1)}
4
4
  ${n}}`).join(`
5
- `):""},Nx=t=>`{
6
- ${Cd(t,1)}
7
- }`,$x=t=>{let e={fields:{},include:[]},n=(o,r)=>{let s=[];for(let i in o)if(o[i]===!0)s.push(i);else{let a=r?`${r}.${i}`:i;e.include.push(a),n(o[i],a)}s.length&&(e.fields[r||"_root"]=s)};return n(t,""),e},Fx=t=>{let e=s=>{let i=[],a=[];for(let c in s)if(s[c]===!0)i.push(c);else{let l=e(s[c]),u=[];l.select&&u.push(`$select=${l.select}`),l.expand&&u.push(`$expand=${l.expand}`),a.push(u.length?`${c}(${u.join(";")})`:c)}return{select:i.length?i.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("&")},jx=(t,e)=>{let n=[],o=[],r=new Set,s=(u,f,d)=>{r.add(f),d&&o.push(`LEFT JOIN ${f} ON ${f}.${d}_id = ${d}.id`);for(let p in u)u[p]===!0?n.push(`${f}.${p}`):s(u[p],p,f)},i=Object.keys(t);i.length===1&&t[i[0]]!==!0?s(t[i[0]],i[0],null):s(t,"_root",null);let a=[...r][0]||"_root",c=n.length?n.join(", "):"*",l=o.length?`
5
+ `):""},Mx=t=>`{
6
+ ${kd(t,1)}
7
+ }`,Bx=t=>{let e={fields:{},include:[]},n=(o,r)=>{let s=[];for(let i in o)if(o[i]===!0)s.push(i);else{let a=r?`${r}.${i}`:i;e.include.push(a),n(o[i],a)}s.length&&(e.fields[r||"_root"]=s)};return n(t,""),e},Nx=t=>{let e=s=>{let i=[],a=[];for(let c in s)if(s[c]===!0)i.push(c);else{let l=e(s[c]),u=[];l.select&&u.push(`$select=${l.select}`),l.expand&&u.push(`$expand=${l.expand}`),a.push(u.length?`${c}(${u.join(";")})`:c)}return{select:i.length?i.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("&")},$x=(t,e)=>{let n=[],o=[],r=new Set,s=(u,f,d)=>{r.add(f),d&&o.push(`LEFT JOIN ${f} ON ${f}.${d}_id = ${d}.id`);for(let p in u)u[p]===!0?n.push(`${f}.${p}`):s(u[p],p,f)},i=Object.keys(t);i.length===1&&t[i[0]]!==!0?s(t[i[0]],i[0],null):s(t,"_root",null);let a=[...r][0]||"_root",c=n.length?n.join(", "):"*",l=o.length?`
8
8
  `+o.join(`
9
9
  `):"";return`SELECT ${c}
10
- FROM ${a}${l}`},Vx=t=>{let e=[],n=(o,r)=>{for(let s in o){let i=r?`${r}/${s}`:s;o[s]===!0?e.push(i):n(o[s],i)}};return n(t,""),e},Ux={graphql:Nx,"json-api":$x,odata:Fx,sql:jx,paths:Vx};function VR(t,e){return!!(qu.has(t)||e?.context?.methods?.[t])}var Wx="smbls_lang",zR=t=>t&&t.storageLangKey||Wx,Td=(t,e)=>t||e&&e.defaultLang||"en",ms=(t,e=!0)=>{let n=t&&t.languages;if(typeof n=="function")try{n=n(t)}catch{n=null}return Array.isArray(n)&&n.length?n.filter(o=>typeof o=="string"):e?Object.keys(t&&t.translations||{}):[]},zx=(t,e)=>{if(!e)return null;let n=ms(e),o=/^\/([^/?#]+)/.exec(String(t||""));if(!o)return null;let r=o[1].toLowerCase();for(let s of n)if(typeof s=="string"&&s.toLowerCase()===r)return s;return null},Hx=(t,e)=>{let n=ms(t),o=t&&t.addressLang,r=o&&typeof o=="object"&&!Array.isArray(o),s=r?o.mode:o,i={languages:n,address:s===!1?!1:s==="fallback"||s==="strict"?s:!0,fallback:Td(e,t)},a=r&&Array.isArray(o.except)?o.except.filter(c=>typeof c=="string"&&c):[];return a.length&&(i.except=a),i},Gx=(t,e,n)=>{if(t&&t.except&&t.except.length){let r=String(e||"").split(/[?#]/)[0].split("/").filter(Boolean);for(let s=0;s<t.except.length;s++){let i=String(t.except[s]).split("/").filter(Boolean);if(i[i.length-1]==="*"&&i.pop(),i.length>r.length)continue;let a=!0;for(let c=0;c<i.length&&a;c++)i[c].charAt(0)!==":"&&i[c]!==r[c]&&(a=!1);if(a){t={languages:t.languages,address:t.address!==!1,fallback:t.fallback};break}}}let o=null;if(t&&t.address!==!1){let r=/^\/([^/?#]+)/.exec(String(e||"")),s=t&&t.languages||[];if(r){let i=r[1].toLowerCase();for(let a=0;a<s.length&&!o;a++)String(s[a]).toLowerCase()===i&&(o=s[a])}}return o&&(t.address!=="fallback"||!n)?o:t&&t.address==="strict"?t.fallback||"":n||t&&t.fallback||""},HR=({polyglot:t,pathname:e,stored:n,stateLang:o}={})=>Gx(Hx(t,o),e,n),GR=t=>{try{let e=t&&t.location||typeof globalThis<"u"&&globalThis.location;return e&&typeof e.pathname=="string"?e.pathname:""}catch{return""}},KR=({polyglot:t,translations:e,lang:n,pathname:o,attrs:r=""}={})=>{if(globalThis.__SMBLS_BUILD_BROWSER_BUNDLE__)return Zu("polyglotStartupScript",[{polyglot:t,translations:e,lang:n,pathname:o,attrs:r}]);if(!e||typeof e!="object")return"";let s=t&&t.storagePrefix||"",i=t&&t.storageLangKey||"",a=[];for(let c in e){let l=e[c];l&&typeof l=="object"&&a.push(`localStorage.setItem(${JSON.stringify(s+c)},${JSON.stringify(JSON.stringify(l))})`)}if(i){let c=n||zx(o,t)||Td(void 0,t);a.push(`if(!localStorage.getItem(${JSON.stringify(i)}))localStorage.setItem(${JSON.stringify(i)},${JSON.stringify(c)})`)}return a.length?`<script${r}>try{${a.join(";")}}catch(e){}<\/script>`:""};var ys=Symbol.for("@symbo.ls/utils:textReady"),Kx=()=>{let t=globalThis[ys];if(!t){t={depth:0,ready:!0};try{Object.defineProperty(globalThis,ys,{value:t,configurable:!0})}catch{globalThis[ys]=t}}return t};function Yo(t){let e=Kx(),n=e.ready;e.depth++,e.ready=!0;try{return{value:t(),ready:e.ready}}finally{e.depth--,e.ready=n}}function YR(){let t=globalThis[ys];t&&t.depth>0&&(t.ready=!1)}var QR=async t=>{try{await navigator.clipboard.writeText(t)}catch(e){console.warn("Failed to copy text: ",e)}},JR=async t=>{try{let e=new Blob([t],{type:"text/javascript"}),n=new window.ClipboardItem({"text/plain":e});await navigator.clipboard.write([n]),console.log("JavaScript code copied to clipboard as text/javascript")}catch(e){console.error("Failed to copy JavaScript code: ",e)}},tD=t=>t.replace(/[^a-zA-Z0-9_]/g,""),bs=t=>(typeof t!="string"&&(t=String(t||"")),t.replace(/(?:^\w|[A-Z]|\b\w)/g,function(e,n){return n===0?e.toLowerCase():e.toUpperCase()}).replace(/\s+/g,"")),eD=t=>t&&t.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()),Ad=t=>t.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),nD=(t="")=>{if(typeof t!="string")return;let e=t.replace(/([A-Z])/g," $1");return e.charAt(0).toUpperCase()+e.slice(1)},Ss=t=>{if(K(t))return t;if(C(t))return t.split(" ");if(E(t))return Object.values(t);if(to(t))return[t]};var ue=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,s=r&&r.src;if(typeof s=="string")return{...o,src:s,type:o.type??r.type??null,variants:o.variants??r.variants??null}}return null},pa=(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(", ")},vd=t=>{if(!t||!Array.isArray(t.variants))return"";let e=t.variants.filter(n=>n.format===t.type);return pa(e,{keepOneX:!1})},Od=(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,c]of n)a!==t.type&&o.push({tag:"source",attr:{type:a,srcset:pa(c,{keepOneX:!0})}});let r=n.get(t.type)||[],s=pa(r,{keepOneX:!1}),i={src:t.src,alt:e||""};return s&&(i.srcset=s),[...o,{tag:"img",attr:i}]};var ws={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},xe=t=>{if(t==="")return[0,0,0,0];if(t.toLowerCase()==="transparent")return[0,0,0,0];let e=ws[t.toLowerCase()];if(e&&(t=e),t[0]==="#")return t.length<7&&(t="#"+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+(t.length>4?t[4]+t[4]:"")),[parseInt(t.substr(1,2),16),parseInt(t.substr(3,2),16),parseInt(t.substr(5,2),16),t.length>7?parseInt(t.substr(7,2),16)/255:1];if(t.indexOf("rgb")===-1&&qt&&un){let n=qt.body.appendChild(qt.createElement("fictum")),o="rgb(1, 2, 3)";if(n.style.color=o,n.style.color!==o){qt.body.removeChild(n);return}if(n.style.color=t,n.style.color===o||n.style.color==="")return qt.body.removeChild(n),[0,0,0,0];t=un.getComputedStyle(n).color,qt.body.removeChild(n)}return t.indexOf("rgb")===0?(t.indexOf("rgba")===-1&&(t=`${t}, 1`),t.match(/[\.\d]+/g).map(n=>+n)):[0,0,0,0]},qx=(t,e,n=.5)=>(t=xe(t),e=xe(e),Pd(t,e,n)),Yx=(t,e=1)=>{let[n,o,r]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgb(${n},${o},${r})`},Ed=(t,e=1)=>{let[n,o,r]=t.match(/\w\w/g).map(s=>parseInt(s,16));return[n,o,r]},Zx=(t,e,n)=>"#"+(1<<24|t<<16|e<<8|n).toString(16).slice(1),Rd=([t,e,n])=>((1<<24)+(t<<16)+(e<<8)+n).toString(16).slice(1),Xx=(t,e=1)=>{let[n,o,r]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgba(${n},${o},${r},${e})`},Qx=(t,e,n=.5)=>{let o=[];for(let r=0;r<3;r++)o[r]=~~(t[r]+(e[r]-t[r])*n);return`rgb(${o})`},Jx=(t,e)=>{let[n,o,r]=e,s=Math.max(0,Math.min(100,r+parseFloat(t)));return[n,o,s]},Dd=(t,e,n)=>{let o=Math.max(t,e,n),r=o-Math.min(t,e,n),s=1-Math.abs(o+o-r-1),i=r&&(o==t?(e-n)/r:o==e?2+(n-t)/r:4+(t-e)/r);return[60*(i<0?i+6:i),s?r/s:0,(o+o-r)/2]},Id=(t,e,n,o=e*Math.min(n,1-n),r=(s,i=(s+t/30)%12)=>n-o*Math.max(Math.min(i-3,9-i,1),-1))=>[r(0),r(8),r(4)],Ld=(t,e)=>{let n=parseInt(t,16),o=(n>>16)+e;o>255?o=255:o<0&&(o=0);let r=(n>>8&255)+e;r>255?r=255:r<0&&(r=0);let s=(n&255)+e;return s>255?s=255:s<0&&(s=0),((s|r<<8|o<<16)+16777216).toString(16).slice(1)},Pd=(t,e,n=.5)=>{let o=[];for(let r=0;r<4;r++){let s=r===3?i=>i:Math.round;o[r]=s(t[r]+(e[r]-t[r])*n)}return`rgba(${o})`},ks=(t,e)=>{let n=xe(t);if(!n){eo()&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(t+" color is not rgba"));return}return n[3]=e,`rgba(${n})`},ut=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,Xo=new Set(["currentcolor","transparent","thin","medium","thick"]),gn=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,tw=/^(?:#[0-9a-f]{3,8}|(?:rgba?|hsla?|hwb|lab|lch|oklab|oklch|color|color-mix|light-dark)\([\s\S]*\))$/i,Qo=t=>tw.test(t),ha=t=>t.indexOf("(")===-1?t.split(/\s+/):W(t),Md=(t,e)=>{let n=t.length,o=0,r=0;for(let s=0;s<=n;s++){let i=s<n?t.charCodeAt(s):32;if(i===40){o++;continue}if(i===41){o>0&&o--;continue}if(!(o>0||!(i<=32||i===44||i>127&&/\s/.test(t[s])))){if(s>r&&!ew(t,r,s,e))return!1;r=s+1}}return!0},ew=(t,e,n,o)=>{let r=t.charCodeAt(e);if(r>=48&&r<=57)return!0;let s=t.slice(e,n);return Qo(s)||o!==void 0&&o.has(s)},Cs=(t,e)=>e?Pe(t).map(n=>ha(n.trim())):[ha(t)],Ts=t=>{let e=t[0].join(" ");for(let n=1;n<t.length;n++)e+=", "+t[n].join(" ");return e},_n=(t,e,{commas:n,keywords:o},r,s)=>{let i=gn.test(t);if(i&&Md(t,o))return t;let a=Cs(t,n),c=!1;try{for(let l of a)for(let u=0;u<l.length;u++){let f=l[u],d=nw(f,e,o,r,s);d!==f&&(l[u]=d,c=!0)}}catch(l){if(i)return t;throw l}return i&&!c?t:Ts(a)},nw=(t,e,n,o,r)=>t?ut(t)?`var(${t})`:Qo(t)||n!==void 0&&n.has(t)?t:e(t,o,r):"",ow=/^([a-zA-Z]\w*(?:-[a-zA-Z]\w*)*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,vt=t=>{if(!C(t))return null;if(gn.test(t))return{passthrough:t};if(ut(t))return{cssVar:t};let e=t.match(ow);if(!e)return null;let[,n,o,r]=e,s=o!==void 0?`0.${o}`:void 0,i=r&&r[0]==="="?r.slice(1):r;return{name:n,alpha:s,tone:i}},we=t=>C(t)&&(t.includes("rgb")||t.includes("var(")||t.includes("#")),Pe=t=>{let e=[],n="",o=0;for(let r of t){if(r==="("?o+=1:r===")"&&o>0&&(o-=1),r===","&&o===0){e.push(n),n="";continue}n+=r}return(n.length||!e.length)&&e.push(n),e},W=t=>{let e=[],n="",o=0;for(let r of t){if(r==="("?o+=1:r===")"&&o>0&&(o-=1),o===0&&/\s/.test(r)){n.length&&e.push(n),n="";continue}n+=r}return n.length&&e.push(n),e},xs=t=>(t/=255,t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)),Zo=t=>.2126*xs(t[0])+.7152*xs(t[1])+.0722*xs(t[2]),As=(t,e)=>{let n=Zo(t)+.05,o=Zo(e)+.05;return n>o?n/o:o/n},Bd=t=>(t/=255,t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)),Nd=t=>(t<=.0031308?t*12.92:1.055*Math.pow(t,1/2.4)-.055)*255,ga=([t,e,n])=>{let[o,r,s]=[t,e,n].map(Bd),i=.4122214708*o+.5363325363*r+.0514459929*s,a=.2119034982*o+.6806995451*r+.1073969566*s,c=.0883024619*o+.2817188376*r+.6299787005*s,l=Math.cbrt(i),u=Math.cbrt(a),f=Math.cbrt(c);return[.2104542553*l+.793617785*u-.0040720468*f,1.9779984951*l-2.428592205*u+.4505937099*f,.0259040371*l+.7827717662*u-.808675766*f]},$d=([t,e,n])=>{let o=t+.3963377774*e+.2158037573*n,r=t-.1055613458*e-.0638541728*n,s=t-.0894841775*e-1.291485548*n,i=o**3,a=r**3,c=s**3;return[4.0767416621*i-3.3077115913*a+.2309699292*c,-1.2684380046*i+2.6097574011*a-.3413193965*c,-.0041960863*i-.7034186147*a+1.707614701*c]},_a=([t,e,n])=>{let o=Math.atan2(n,e)*180/Math.PI;return o<0&&(o+=360),[t,Math.sqrt(e*e+n*n),o]},Fd=([t,e,n])=>{let o=n*Math.PI/180;return[t,e*Math.cos(o),e*Math.sin(o)]},ma=(t,e,n,o=24)=>{let r=a=>$d(Fd([t,a,n])),s=a=>a.every(c=>c>=-1e-4&&c<=1.0001),i=r(e);if(!s(i)){let a=0,c=e;for(let l=0;l<o;l++){let u=(a+c)/2;s(r(u))?a=u:c=u}i=r(a)}return i.map(a=>Nd(Math.max(0,Math.min(1,a))))},Jo=(t,e=1,n=[255,255,255])=>e>=1?t:t.map((o,r)=>o*e+n[r]*(1-e)),Me=(t,e)=>{C(t)&&t.includes("rgb")&&(t=xe(t).join(", ")),C(t)&&(t=t.split(",").map(r=>parseFloat(r.trim()))),to(e)&&(e+="");let n=Rd(t),o=e.slice(0,1);if(o==="-"||o==="+"){let r=Ld(n,parseFloat(e));return Ed(r).join(", ")}else{let[r,s,i]=t,[a,c]=Dd(r/255,s/255,i/255),l=Math.max(0,Math.min(100,parseFloat(e)))/100;return Id(a,c,l).map(f=>Math.round(Math.max(0,Math.min(1,f))*255)).join(", ")}};var rw=(t,e)=>{if(t)return t.themes&&t.themes[e]?t.themes[e]:t[e]?[t,t[e]]:t};var ke=(t,e)=>{if(!t||!e)return null;try{return new URL(t),null}catch{}let n=e[t];return n?n.content&&n.content.src:null},mn=(t,e)=>{if(!t)return;if(e!=null&&e!==""&&e!=="default"){let s=t[e];return s&&typeof s=="object"?s.value:void 0}let o=()=>Object.keys(t).find(s=>s!=="default"&&t[s]&&t[s].value&&!t[s].isSystemFallback&&!t[s].isSharedLibrary);if(t.__defaultKey){let s=t[t.__defaultKey];if(s&&s.isSystemFallback){let i=o();if(i)return t[i].value}if(s)return s.value}let r=o()||Object.keys(t).find(s=>s!=="default"&&t[s]&&t[s].value);return r&&t[r]&&t[r].value},jd=t=>{if(typeof t!="string"||!t)return null;let e=t.split(/[#?]/)[0].split(".").pop().trim();return["woff2","woff","ttf","otf","eot"].includes(e)?e:null},vs=t=>t&&(t.includes("fonts.googleapis.com")||t.includes("fonts.gstatic.com")),Os=t=>`@import url('${t}');`,Vd=t=>`@font-face { ${t} }`,ya=(t,e,n,o={})=>{let i=(Array.isArray(e)?e:[e]).filter(a=>typeof a=="string"&&a).map(a=>{let c=jd(a),l=c?` format('${c}')`:"";return`url('${a}')${l}`}).join(`,
10
+ FROM ${a}${l}`},Fx=t=>{let e=[],n=(o,r)=>{for(let s in o){let i=r?`${r}/${s}`:s;o[s]===!0?e.push(i):n(o[s],i)}};return n(t,""),e},jx={graphql:Mx,"json-api":Bx,odata:Nx,sql:$x,paths:Fx};function MR(t,e){return!!(qu.has(t)||e?.context?.methods?.[t])}var ms=Symbol.for("@symbo.ls/utils:textReady"),Vx=()=>{let t=globalThis[ms];if(!t){t={depth:0,ready:!0};try{Object.defineProperty(globalThis,ms,{value:t,configurable:!0})}catch{globalThis[ms]=t}}return t};function Yo(t){let e=Vx(),n=e.ready;e.depth++,e.ready=!0;try{return{value:t(),ready:e.ready}}finally{e.depth--,e.ready=n}}function NR(){let t=globalThis[ms];t&&t.depth>0&&(t.ready=!1)}var jR=async t=>{try{await navigator.clipboard.writeText(t)}catch(e){console.warn("Failed to copy text: ",e)}},VR=async t=>{try{let e=new Blob([t],{type:"text/javascript"}),n=new window.ClipboardItem({"text/plain":e});await navigator.clipboard.write([n]),console.log("JavaScript code copied to clipboard as text/javascript")}catch(e){console.error("Failed to copy JavaScript code: ",e)}},UR=t=>t.replace(/[^a-zA-Z0-9_]/g,""),ys=t=>(typeof t!="string"&&(t=String(t||"")),t.replace(/(?:^\w|[A-Z]|\b\w)/g,function(e,n){return n===0?e.toLowerCase():e.toUpperCase()}).replace(/\s+/g,"")),WR=t=>t&&t.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()),Cd=t=>t.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),zR=(t="")=>{if(typeof t!="string")return;let e=t.replace(/([A-Z])/g," $1");return e.charAt(0).toUpperCase()+e.slice(1)},bs=t=>{if(q(t))return t;if(C(t))return t.split(" ");if(E(t))return Object.values(t);if(to(t))return[t]};var ue=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,s=r&&r.src;if(typeof s=="string")return{...o,src:s,type:o.type??r.type??null,variants:o.variants??r.variants??null}}return null},da=(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(", ")},Td=t=>{if(!t||!Array.isArray(t.variants))return"";let e=t.variants.filter(n=>n.format===t.type);return da(e,{keepOneX:!1})},Ad=(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,c]of n)a!==t.type&&o.push({tag:"source",attr:{type:a,srcset:da(c,{keepOneX:!0})}});let r=n.get(t.type)||[],s=da(r,{keepOneX:!1}),i={src:t.src,alt:e||""};return s&&(i.srcset=s),[...o,{tag:"img",attr:i}]};var xs={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},xe=t=>{if(t==="")return[0,0,0,0];if(t.toLowerCase()==="transparent")return[0,0,0,0];let e=xs[t.toLowerCase()];if(e&&(t=e),t[0]==="#")return t.length<7&&(t="#"+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+(t.length>4?t[4]+t[4]:"")),[parseInt(t.substr(1,2),16),parseInt(t.substr(3,2),16),parseInt(t.substr(5,2),16),t.length>7?parseInt(t.substr(7,2),16)/255:1];if(t.indexOf("rgb")===-1&&Kt&&un){let n=Kt.body.appendChild(Kt.createElement("fictum")),o="rgb(1, 2, 3)";if(n.style.color=o,n.style.color!==o){Kt.body.removeChild(n);return}if(n.style.color=t,n.style.color===o||n.style.color==="")return Kt.body.removeChild(n),[0,0,0,0];t=un.getComputedStyle(n).color,Kt.body.removeChild(n)}return t.indexOf("rgb")===0?(t.indexOf("rgba")===-1&&(t=`${t}, 1`),t.match(/[\.\d]+/g).map(n=>+n)):[0,0,0,0]},Ux=(t,e,n=.5)=>(t=xe(t),e=xe(e),Id(t,e,n)),Wx=(t,e=1)=>{let[n,o,r]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgb(${n},${o},${r})`},vd=(t,e=1)=>{let[n,o,r]=t.match(/\w\w/g).map(s=>parseInt(s,16));return[n,o,r]},zx=(t,e,n)=>"#"+(1<<24|t<<16|e<<8|n).toString(16).slice(1),Od=([t,e,n])=>((1<<24)+(t<<16)+(e<<8)+n).toString(16).slice(1),Hx=(t,e=1)=>{let[n,o,r]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgba(${n},${o},${r},${e})`},Gx=(t,e,n=.5)=>{let o=[];for(let r=0;r<3;r++)o[r]=~~(t[r]+(e[r]-t[r])*n);return`rgb(${o})`},qx=(t,e)=>{let[n,o,r]=e,s=Math.max(0,Math.min(100,r+parseFloat(t)));return[n,o,s]},Ed=(t,e,n)=>{let o=Math.max(t,e,n),r=o-Math.min(t,e,n),s=1-Math.abs(o+o-r-1),i=r&&(o==t?(e-n)/r:o==e?2+(n-t)/r:4+(t-e)/r);return[60*(i<0?i+6:i),s?r/s:0,(o+o-r)/2]},Rd=(t,e,n,o=e*Math.min(n,1-n),r=(s,i=(s+t/30)%12)=>n-o*Math.max(Math.min(i-3,9-i,1),-1))=>[r(0),r(8),r(4)],Dd=(t,e)=>{let n=parseInt(t,16),o=(n>>16)+e;o>255?o=255:o<0&&(o=0);let r=(n>>8&255)+e;r>255?r=255:r<0&&(r=0);let s=(n&255)+e;return s>255?s=255:s<0&&(s=0),((s|r<<8|o<<16)+16777216).toString(16).slice(1)},Id=(t,e,n=.5)=>{let o=[];for(let r=0;r<4;r++){let s=r===3?i=>i:Math.round;o[r]=s(t[r]+(e[r]-t[r])*n)}return`rgba(${o})`},ws=(t,e)=>{let n=xe(t);if(!n){eo()&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(t+" color is not rgba"));return}return n[3]=e,`rgba(${n})`},ut=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,Xo=new Set(["currentcolor","transparent","thin","medium","thick"]),gn=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,Kx=/^(?:#[0-9a-f]{3,8}|(?:rgba?|hsla?|hwb|lab|lch|oklab|oklch|color|color-mix|light-dark)\([\s\S]*\))$/i,Qo=t=>Kx.test(t),pa=t=>t.indexOf("(")===-1?t.split(/\s+/):W(t),Ld=(t,e)=>{let n=t.length,o=0,r=0;for(let s=0;s<=n;s++){let i=s<n?t.charCodeAt(s):32;if(i===40){o++;continue}if(i===41){o>0&&o--;continue}if(!(o>0||!(i<=32||i===44||i>127&&/\s/.test(t[s])))){if(s>r&&!Yx(t,r,s,e))return!1;r=s+1}}return!0},Yx=(t,e,n,o)=>{let r=t.charCodeAt(e);if(r>=48&&r<=57)return!0;let s=t.slice(e,n);return Qo(s)||o!==void 0&&o.has(s)},ks=(t,e)=>e?Pe(t).map(n=>pa(n.trim())):[pa(t)],Cs=t=>{let e=t[0].join(" ");for(let n=1;n<t.length;n++)e+=", "+t[n].join(" ");return e},_n=(t,e,{commas:n,keywords:o},r,s)=>{let i=gn.test(t);if(i&&Ld(t,o))return t;let a=ks(t,n),c=!1;try{for(let l of a)for(let u=0;u<l.length;u++){let f=l[u],d=Zx(f,e,o,r,s);d!==f&&(l[u]=d,c=!0)}}catch(l){if(i)return t;throw l}return i&&!c?t:Cs(a)},Zx=(t,e,n,o,r)=>t?ut(t)?`var(${t})`:Qo(t)||n!==void 0&&n.has(t)?t:e(t,o,r):"",Xx=/^([a-zA-Z]\w*(?:-[a-zA-Z]\w*)*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,vt=t=>{if(!C(t))return null;if(gn.test(t))return{passthrough:t};if(ut(t))return{cssVar:t};let e=t.match(Xx);if(!e)return null;let[,n,o,r]=e,s=o!==void 0?`0.${o}`:void 0,i=r&&r[0]==="="?r.slice(1):r;return{name:n,alpha:s,tone:i}},we=t=>C(t)&&(t.includes("rgb")||t.includes("var(")||t.includes("#")),Pe=t=>{let e=[],n="",o=0;for(let r of t){if(r==="("?o+=1:r===")"&&o>0&&(o-=1),r===","&&o===0){e.push(n),n="";continue}n+=r}return(n.length||!e.length)&&e.push(n),e},W=t=>{let e=[],n="",o=0;for(let r of t){if(r==="("?o+=1:r===")"&&o>0&&(o-=1),o===0&&/\s/.test(r)){n.length&&e.push(n),n="";continue}n+=r}return n.length&&e.push(n),e},Ss=t=>(t/=255,t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)),Zo=t=>.2126*Ss(t[0])+.7152*Ss(t[1])+.0722*Ss(t[2]),Ts=(t,e)=>{let n=Zo(t)+.05,o=Zo(e)+.05;return n>o?n/o:o/n},Pd=t=>(t/=255,t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)),Md=t=>(t<=.0031308?t*12.92:1.055*Math.pow(t,1/2.4)-.055)*255,ha=([t,e,n])=>{let[o,r,s]=[t,e,n].map(Pd),i=.4122214708*o+.5363325363*r+.0514459929*s,a=.2119034982*o+.6806995451*r+.1073969566*s,c=.0883024619*o+.2817188376*r+.6299787005*s,l=Math.cbrt(i),u=Math.cbrt(a),f=Math.cbrt(c);return[.2104542553*l+.793617785*u-.0040720468*f,1.9779984951*l-2.428592205*u+.4505937099*f,.0259040371*l+.7827717662*u-.808675766*f]},Bd=([t,e,n])=>{let o=t+.3963377774*e+.2158037573*n,r=t-.1055613458*e-.0638541728*n,s=t-.0894841775*e-1.291485548*n,i=o**3,a=r**3,c=s**3;return[4.0767416621*i-3.3077115913*a+.2309699292*c,-1.2684380046*i+2.6097574011*a-.3413193965*c,-.0041960863*i-.7034186147*a+1.707614701*c]},ga=([t,e,n])=>{let o=Math.atan2(n,e)*180/Math.PI;return o<0&&(o+=360),[t,Math.sqrt(e*e+n*n),o]},Nd=([t,e,n])=>{let o=n*Math.PI/180;return[t,e*Math.cos(o),e*Math.sin(o)]},_a=(t,e,n,o=24)=>{let r=a=>Bd(Nd([t,a,n])),s=a=>a.every(c=>c>=-1e-4&&c<=1.0001),i=r(e);if(!s(i)){let a=0,c=e;for(let l=0;l<o;l++){let u=(a+c)/2;s(r(u))?a=u:c=u}i=r(a)}return i.map(a=>Md(Math.max(0,Math.min(1,a))))},Jo=(t,e=1,n=[255,255,255])=>e>=1?t:t.map((o,r)=>o*e+n[r]*(1-e)),Me=(t,e)=>{C(t)&&t.includes("rgb")&&(t=xe(t).join(", ")),C(t)&&(t=t.split(",").map(r=>parseFloat(r.trim()))),to(e)&&(e+="");let n=Od(t),o=e.slice(0,1);if(o==="-"||o==="+"){let r=Dd(n,parseFloat(e));return vd(r).join(", ")}else{let[r,s,i]=t,[a,c]=Ed(r/255,s/255,i/255),l=Math.max(0,Math.min(100,parseFloat(e)))/100;return Rd(a,c,l).map(f=>Math.round(Math.max(0,Math.min(1,f))*255)).join(", ")}};var Qx=(t,e)=>{if(t)return t.themes&&t.themes[e]?t.themes[e]:t[e]?[t,t[e]]:t};var ke=(t,e)=>{if(!t||!e)return null;try{return new URL(t),null}catch{}let n=e[t];return n?n.content&&n.content.src:null},mn=(t,e)=>{if(!t)return;if(e!=null&&e!==""&&e!=="default"){let s=t[e];return s&&typeof s=="object"?s.value:void 0}let o=()=>Object.keys(t).find(s=>s!=="default"&&t[s]&&t[s].value&&!t[s].isSystemFallback&&!t[s].isSharedLibrary);if(t.__defaultKey){let s=t[t.__defaultKey];if(s&&s.isSystemFallback){let i=o();if(i)return t[i].value}if(s)return s.value}let r=o()||Object.keys(t).find(s=>s!=="default"&&t[s]&&t[s].value);return r&&t[r]&&t[r].value},$d=t=>{if(typeof t!="string"||!t)return null;let e=t.split(/[#?]/)[0].split(".").pop().trim();return["woff2","woff","ttf","otf","eot"].includes(e)?e:null},As=t=>t&&(t.includes("fonts.googleapis.com")||t.includes("fonts.gstatic.com")),vs=t=>`@import url('${t}');`,Fd=t=>`@font-face { ${t} }`,ma=(t,e,n,o={})=>{let i=(Array.isArray(e)?e:[e]).filter(a=>typeof a=="string"&&a).map(a=>{let c=$d(a),l=c?` format('${c}')`:"";return`url('${a}')${l}`}).join(`,
11
11
  `);return`
12
12
  font-family: '${t}';
13
13
  font-style: ${o.fontStyle||"normal"};${n?`
@@ -15,22 +15,22 @@ FROM ${a}${l}`},Vx=t=>{let e=[],n=(o,r)=>{for(let s in o){let i=r?`${r}/${s}`:s;
15
15
  font-stretch: ${o.fontStretch};`:""}${o.fontDisplay?`
16
16
  font-display: ${o.fontDisplay};`:""}${o.unicodeRange?`
17
17
  unicode-range: ${o.unicodeRange};`:""}
18
- src: ${i};`},ro=(t,e,n,o)=>`@font-face {${ya(t,e,n,o)}
19
- }`,tr=(t,e,n)=>Object.keys(e).map(r=>{let{url:s,fontWeight:i,fontStyle:a,fontDisplay:c,fontStretch:l,unicodeRange:u}=e[r],f=Array.isArray(s)?s.map(d=>ke(d,n)||d):ke(s,n)||s;return ya(t,f,i,{fontStyle:a,fontDisplay:c,fontStretch:l,unicodeRange:u})}),sw=t=>Object.keys(t).map(n=>tr(n,t[n].value)),Ud=(t,e,n)=>{if(e&&e.isVariable){let s=ke(e.url,n)||e.url;return vs(s)?Os(s):ro(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap",unicodeRange:e.unicodeRange})}if(e[0])return tr(t,e,n).map(Vd);let r=Array.isArray(e.url)?e.url.map(s=>ke(s,n)||s):ke(e.url,n)||e.url;return ro(t,r,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch,unicodeRange:e.unicodeRange})},iw=(t,e)=>Object.keys(t).map(o=>Ud(o,t[o].value,e));var yn={"minor-second":1.067,"major-second":1.125,"minor-third":1.2,"major-third":1.25,"perfect-fourth":1.333,"augmented-fourth":1.414,"perfect-fifth":1.5,"minor-sixth":1.6,phi:1.618,"major-sixth":1.667,"square-root-3":1.732,"minor-seventh":1.778,"major-seventh":1.875,octave:2,"square-root-5":2.23,"major-tenth":2.5,"major-eleventh":2.667,"major-twelfth":3,pi:3.14,"double-octave":4};var aw={default:"em"};var cw={browserDefault:16,base:16,type:"font-size",ratio:yn["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},ba=cw;var lw={};var fw={},uw={"sans-serif":"Helvetica, Arial, sans-serif",serif:"Times New Roman, Georgia, serif",monospace:"Courier New, monospace"},dw={};var pw={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var hw={base:ba.base,type:"spacing",ratio:yn.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},gw=hw;var _w={},mw={};var yw={};var bw={};var Sw={},xw={};var ww={default:150,base:150,type:"timing",ratio:yn["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},kw=ww;var Cw={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},Tw={screenXXL:[2560,1440],screenXL:[2240,1260],screenL:[1920,1024],screenM:[1680,1024],screenS:[1440,720],tabletL:[1366,926],tabletM:[1280,768],tabletS:[1024,768],mobileL:[768,375],mobileM:[560,768],mobileS:[480,768],mobileXS:[375,768]};var Aw={};var vw={},Wd={},Ow=Wd;var Ew={};var Rw={},Dw=Rw;var Iw={};var Es=/*@__PURE__*/__smblsNs({},{animation:()=>Aw,breakpoints:()=>Cw,class:()=>Iw,color:()=>_w,devices:()=>Tw,document:()=>Lw,font:()=>lw,fontFace:()=>dw,fontFamily:()=>fw,fontFamilyTypes:()=>uw,gradient:()=>mw,grid:()=>Dw,icons:()=>Sw,media:()=>pw,reset:()=>Pw,semanticIcons:()=>xw,sequence:()=>yn,shadow:()=>bw,shape:()=>Nw,sizes:()=>Bw,skins:()=>$w,spacing:()=>gw,svg:()=>vw,svgData:()=>Wd,svg_data:()=>Ow,templates:()=>Ew,theme:()=>yw,timing:()=>kw,typography:()=>ba,unit:()=>aw,vars:()=>Mw,viewTransition:()=>Fw});var Lw={};var Pw={},Mw={},Bw={},Nw={},$w={},Fw={};var zd={},Hd={},bn=new Set,Rs=Es,Ds={},Sa=t=>t.replace(/_([a-z])/g,(e,n)=>n.toUpperCase());for(let t in Rs){let e=t.toLowerCase();Ds[e]=Rs[t];let n=Sa(e);n!==e&&(Ds[n]=Rs[t]),e!==t&&(Ds[t]=Rs[t])}var or={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",cssVars:zd,cssMediaVars:Hd,CSS_VARS:zd,CSS_MEDIA_VARS:Hd,cssSkinVars:{},cssSkinFallback:{},_scratchConfig:!0,...Ds},Is=(t,e)=>{if(!t)return null;if(t.__globalThemeSignal)return St(e)&&t.__globalThemeSignal.set(e),t.__globalThemeSignal;let n=St(e)?e:t.globalTheme,o=ln(St(n)?n:"auto");return Object.defineProperty(t,"globalTheme",{get(){return o.get()},set(r){o.set(r)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"__globalThemeSignal",{value:o,enumerable:!1,configurable:!0,writable:!0}),o},JD=t=>t?Is(t):null,Ls=(t,e)=>{if(!t)return null;if(t.__resolvedThemeSignal)return St(e)&&t.__resolvedThemeSignal.set(e),t.__resolvedThemeSignal;let n=St(e)?e:t.resolvedTheme,o=ln(St(n)?n:null);return Object.defineProperty(t,"resolvedTheme",{get(){return o.get()},set(r){o.set(r)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"__resolvedThemeSignal",{value:o,enumerable:!1,configurable:!0,writable:!0}),o},tI=t=>t?Ls(t):null;Is(or);Ls(or);var er=Yt(or),de={active:"0",0:or},eI=t=>(St(t)&&(de.active=t),de[t||de.active]),nr=[],dt=t=>{t&&t._scratchConfig&&nr.push(t)},ot=()=>{nr.pop()},A=t=>nr.length?nr[nr.length-1]:de[t||de.active]||or,Gd=t=>{if(E(t))return de.active="1",de[1]=Se(t,Yt(er),bn),Ps(de[1]),Is(de[1]),Ls(de[1]),t},jw=["useReset","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig"],Vw=["useVariable","globalTheme","verbose"],Uw=[["fontfamily","fontFamily","font_family"],["fontfamilytypes","fontFamilyTypes"],["semanticicons","semanticIcons"],["svgdata","svgData","svg_data"]],Ps=t=>{for(let e of Uw){let n;for(let o of e){let r=t[o];E(r)&&(n=n?Se(n,r,bn):r)}if(n)for(let o of e)E(t[o])&&(t[o]=n)}},Kd=t=>(t.cssVars={},t.cssMediaVars={},t.CSS_VARS=t.cssVars,t.CSS_MEDIA_VARS=t.cssMediaVars,t.cssSkinVars={},t.cssSkinFallback={},t._scratchConfig=!0,Ps(t),Is(t),Ls(t),t),nI=()=>Kd(Yt(er)),oI=(t,e,{cleanBase:n=!1}={})=>{let o=n?null:A(),r=Yt(!n&&o&&o._scratchConfig?o:er);for(let i of jw)delete r[i];for(let i of Vw)Object.prototype.hasOwnProperty.call(er,i)?r[i]=er[i]:delete r[i];let s=Kd(Se(e||{},r,bn));return t&&(de[t]=s),s};var Be=/^-?[A-Z][0-9]?$/,xa=0,Sn=t=>{xa++;try{return t()}finally{xa--}},Ce={"-6":"U","-5":"V","-4":"W","-3":"X","-2":"Y","-1":"Z",0:"A",1:"B",2:"C",3:"D",4:"E",5:"F",6:"G",7:"H",8:"I",9:"J",10:"K",11:"L",12:"M",13:"N",14:"O",15:"P",16:"Q",17:"R",18:"S",19:"T"},Ww=Object.keys(Ce).reduce((t,e)=>(t[Ce[e]]=Number(e),t),{}),zw=(t,e,n,o)=>{if(Be.test(e)){if(t&&Object.keys(t).length)return t[e]!==void 0;let r=Ww[e.slice(0,1)];if(r===void 0)return!1;let{range:s}=n;return!Array.isArray(s)||s.length<2?!0:r>=Math.min(s[0],s[1])&&r<=Math.max(s[0],s[1])}if(o&&Object.keys(o).length)return!1},ka=(t,e)=>{let{key:n,variable:o,value:r,scaling:s,index:i,scalingVariable:a}=t;e.sequence[n]={key:n,decimal:~~(r*100)/100,val:~~r,scaling:s,index:i,scalingVariable:a,variable:o},e.scales[n]=s;let c=qd.has(e.unit)?"rem":e.unit;e.vars[o]=s+c},xn=t=>{if(!t.includes("("))return t;let e=t.trim(),n=e.indexOf("("),o=e.slice(0,n),r=0,s=-1;for(let i=n;i<e.length;i++){let a=e[i];if(a==="(")r++;else if(a===")"&&(r--,r===0)){s=i;break}}return s===-1||/\s/.test(o)||e.slice(s+1).trim()!==""?[void 0,t]:[o,e.slice(n+1,s)]},wa="\0",Hw=(t,e)=>{let n="",o=0,r="";for(let s of t){if(o===0&&s!=="("){n+=s;continue}r+=s,s==="("?o++:s===")"&&(o--,o===0&&(n+=wa+e.length+wa,e.push(r),r=""))}return n+r},Gw=(t,e)=>t.indexOf(wa)===-1?t:t.replace(/\u0000(\d+)\u0000/g,(n,o)=>e[Number(o)]),Kw=/^(calc|min|max|clamp)\((.*)\)$/,qw=(t,e)=>{let n=Kw.exec(t);return n?`${n[1]}(${Oa(n[2],e)})`:t.indexOf("(")!==-1?t:rr(t,e)},qd=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),Ca=(t,e)=>{let{base:n,type:o,unit:r}=e,s=qd.has(r)?"rem":r,i=(Ko(s)?1:n)+s;if(t===0)return i;let c="--"+(e.varPrefix?e.varPrefix+"-":"")+(o&&o.replace(".","-")),l=`${c}-ratio`;if(t>0){let u=Ce[t-1];return`calc(var(${c}-${u}) * var(${l}))`}if(t<0){let u=Ce[t+1],f=Math.abs(t),d=Math.pow(Zd,2*f),p=Ce[f];return p?`max(calc(var(${c}-${u}) / var(${l})), calc(var(${c}-${p}) / ${d.toFixed(4)}))`:`calc(var(${c}-${u}) / var(${l}))`}},Yd=(t,e,n,o)=>{let{type:r}=o,i=t===2&&e.length===2?t+1:t,l=`${"--"+(o.varPrefix?o.varPrefix+"-":"")+(r&&r.replace(".","-"))}-sub-ratio-`;return`calc(var(${n}) * var(${l+i}))`},Ta=(t,e)=>{let o=(t*e-t)/1.618,r=t*e-o,s=t+o,i=(r+s)/2;return[r,i,s]},Aa=(t,e)=>Ta(t,e).map(n=>n/t),va=(t,e)=>{let{key:n,base:o,value:r,ratio:s,variable:i,index:a}=t,l=~~(r*s)-~~r,u,[f,d,p]=Ta(r,s);l>16?u=[f,d,p]:u=[f,p],u.forEach((g,h)=>{let _=~~(g/o*1e3)/1e3,m=i+(h+1),b=a+(h+1)/10,x=Yd(h+1,u,i,e),D={key:n+(h+1),variable:m,value:g,scaling:_,scalingVariable:x,index:b};ka(D,e)})},Zd=1.618,Yw=(t,e,n)=>{if(t>=0)return e*Math.pow(n,t);let o=Math.abs(t),r=e*Math.pow(n,t),s=e*Math.pow(n,o)/Math.pow(Zd,2*o);return Math.max(r,s)},Zt=t=>{let{type:e,base:n,ratio:o,range:r,subSequence:s}=t,i=Math.abs(r[0])+Math.abs(r[1]),c="--"+(t.varPrefix?t.varPrefix+"-":"")+(e&&e.replace(".","-"))+"-";for(let l=0;l<=i;l++){let u=r[1]-l,f=Ce[u],d=Yw(u,n,o),p=~~(d/n*100)/100,g=c+f,h=Ca(u,t),_={key:f,variable:g,value:d,base:n,scaling:p,scalingVariable:h,ratio:o,index:u};ka(_,t),s&&va(_,t)}return t},Zw=(t,e=0)=>{let{type:n,base:o,ratio:r,subSequence:s}=t,i=C(e)?e:Ce[e],a=C(e)?Object.entries(Ce).find(([,_])=>_===e)?.[0]:e;if(!i)return globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(`Position ${e} is out of range in numToLetterMap`),null;let c={sequence:{},scales:{},vars:{},...t},l=o*Math.pow(r,a),u=~~(l/o*100)/100,p="--"+(t.varPrefix?t.varPrefix+"-":"")+(n&&n.replace(".","-"))+"-"+i,g=Ca(a,t),h={key:i,variable:p,value:l,base:o,scaling:u,scalingVariable:g,ratio:r,index:a};return ka(h,c),s&&va(h,c),c},Ms=(t,e)=>{if(!t||!C(e)||!e)return;let n=t[e]||t[e.toLowerCase()];if(n!==void 0)return e.charCodeAt(0)===45?`calc(${n} * -1)`:n;if(e.charCodeAt(0)!==45||e.length<2)return;let o=e.slice(1),r=t[o]||t[o.toLowerCase()];if(r!==void 0)return`calc(${r} * -1)`},rr=(t="A",e)=>{let n=A(),{unit:o}=n;if(C(t)&&ut(t))return`var(${t})`;if(C(t)&&/^(?:env|var|calc|min|max|clamp)\(/.test(t.trim()))return t;if(C(t)){let y=Ms(n.sizes,t);if(y!==void 0)return y}let{sequence:r,unit:s=o.default,useVariable:i}=e,a=/^-?[a-zA-Z]/i,c=a.test(t);if(la(t)||!c||["none","auto","max-content","min-content","fit-content","inherit","initial","unset","revert","revert-layer"].includes(t))return t;let d=`--${e.varPrefix?e.varPrefix+"-":""}${Ad(e.type.replace(".","-"))}-`,p=t.toUpperCase(),g=p.slice(0,1)==="-"?"-":"",h=g?p.slice(1):p,_="";h.includes("_")&&(_="_"+h.split("_")[1].toLowerCase(),h=h.split("_")[0]);let m=y=>a.test(y)?`var(${d}${y}${_})`:y;if(h.includes("+")){let[y,S]=h.split("+"),w=`${m(y)} + ${m(S)}`;return g?`calc((${w}) * -1)`:`calc(${w})`}else if(h.includes("*")){let[y,S]=h.split("*"),w=`${m(y)} * ${m(S)}`;return g?`calc((${w}) * -1)`:`calc(${w})`}else if(h.includes("-")){let[y,S]=h.split("-"),w=`${m(y)} - ${m(S)}`;return g?`calc((${w}) * -1)`:`calc(${w})`}!r[h]&&h.length===2&&(n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(h,"- value is not found because `subSequence` is set to false")),h=h.slice(0,1));let b=r?r[h]:null,x=!!(i||n.useVariable);if((x?zw(r,h,e,n.sizes):!!b)===!1){if(xa>0)return;if(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("can't find",r,h),!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&j())throw new Error(`[smbls] Unresolvable design-system token "${t}"`+(e.type?` for sequence "${e.type}"`:"")+" \u2014 not a registered `sizes` name and not a valid spacing/typography/timing sequence letter. The CSS property using it would silently be dropped in production. Register the token in `designSystem/sizes.js` (or the relevant sequence family) or fix the typo.");return}if(x){let y=`var(${d}${h}${_})`;return g?`calc(${y} * -1)`:y}return s==="ms"||s==="s"?g+b.val+s:g+b.scaling+s},Oa=(t,e)=>{if(!["+","-","*","/",","].filter(i=>t.includes(i+" ")).length)return t;let o=/(\s+-\s+|\s*[+*/,]\s*)/,r=[];return Hw(t,r).split(o).map(i=>{let a=Gw(i,r),c=a.trim();return!c||["+","-","*","/",","].includes(c)?a:qw(c,e)}).join("")},Ye=(t,e,n,o)=>{if(typeof t!="string")return A().verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(e,t,"is not a string")),{[e]:t};if(t==="-"||t==="")return{};if(!o&&t.includes("(")){if(/^(?:env|var)\(/.test(t.trim()))return{[e]:t};let s=xn(t);o=s[0],t=s[1]}return["+","-","*","/",","].filter(s=>t.includes(s+" ")).length?t=Oa(t,n):t=rr(t,n),{[e]:o?`${o}(${t})`:t}},Xd=(t,e)=>Ce[t-e],Ea=t=>{let{h1Matches:e,sequence:n}=t;return new Array(6).fill(null).map((o,r)=>{let s=Xd(e,r);return n[s]})};var Xw=(t,e)=>{let n=A(),{cssVars:o}=n;U(t.value)||(o[t.var]=t.value)},Ra=(t,e,n)=>{let o=A(),{unit:r}=o,s=e.unit||r.default,{base:i,ratio:a,type:c}=e,u="--"+(e.varPrefix?e.varPrefix+"-":"")+(c&&c.replace(".","-"));t[`${u}-base`]=i,t[`${u}-unit`]=s;let f=`${u}-ratio`;t[f]=a;let[d,p,g]=Aa(i,a);t[`${u}-sub-ratio-1`]=`calc(var(${u}-ratio) * ${d/a})`,t[`${u}-sub-ratio-2`]=`calc(var(${u}-ratio) * ${p/a})`,t[`${u}-sub-ratio-3`]=`calc(var(${u}-ratio) * ${g/a})`},Qd=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),wn=(t,e={})=>{let n=A(),{unit:o,timing:r,cssVars:s}=n,i=t.unit||o.default,a=Qd.has(i)?"rem":i,{mediaRegenerate:c,sequence:l,scales:u}=t;c||Ra(s,t,e);for(let f in l){let d=l[f],p=(t.type===r.type?l[f].val:u[f])+a;if(!c){s[d.variable+"_default"]=p,s[d.variable]=d.scalingVariable;continue}e.useDefault===!1?s[d.variable]=p:(s[d.variable+"_default"]=p,s[d.variable]=`var(${d.variable+"_default"})`)}},so=(t,e,n={})=>{let o=A(),{unit:r,media:s,cssVars:i}=o,a=e.slice(1),c=t[e],l=c.unit||t.unit||r.default,u=Qd.has(l)?"rem":l,{mediaRegenerate:f}=t,{sequence:d,scales:p}=c,g=s[a];if(!g&&o.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("Can't find media query ",g)),!f){let h=i[`@media ${g}`];h||(h=i[`@media ${g}`]={}),Ra(h,c,n);let _=t.unit||r.default;if(u!==_&&d)for(let m in d){let b=d[m],x=p[m]+u;h[b.variable+"_default"]=x,h[b.variable]=x}return}for(let h in d){let _=d[h],m=(Ko(u)?p[h]:d[h].val)+u;!g&&o.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("Can't find query ",g));let b=i[`@media ${g}`];b||(b=i[`@media ${g}`]={}),b[_.variable]=`var(${_.variable+"_"+a})`,i[_.variable+"_"+a]=m}};var tp=eo(),Da=t=>{let e=A(),n="";for(let o in t)e.__svgCache[o]||(e.__svgCache[o]=!0,n+=t[o]);return n},Qw=t=>{let e=t&&(t.default||t);if(!C(e))return tp&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("parseRootAttributes:",e,"is not a string")),{};let n=e.match(/<svg\s+(.*?)>/);if(!n||!n[1])return{};let r=n[1].match(/(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|\s*\/?[>"']))+.)["']?/gm);return r?r.reduce((s,i)=>{let[a,c]=i.split("=");return s[a]=c.replace(/['"]/g,""),s},{}):{}},Jw=(t,e)=>{let n=[];if(t.replace(/id="([^"]*)"/g,(r,s)=>(n.push(s),r)),!n.length)return t;let o=t;for(let r of n){let s=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),i=`${e}-${r}`;o=o.replace(new RegExp(`id="${s}"`,"g"),`id="${i}"`).replace(new RegExp(`url\\(#${s}\\)`,"g"),`url(#${i})`).replace(new RegExp(`xlink:href="#${s}"`,"g"),`xlink:href="#${i}"`).replace(new RegExp(`href="#${s}"`,"g"),`href="#${i}"`)}return o},Jd=new Set,Ia=(t,e)=>{let n=e&&e.default?e.default:e;if(!C(n))return tp&&!Jd.has(t)&&(Jd.add(t),globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("convertSvgToSymbol:",t,"is not a string")),"";e=n;let o=e.match(/^<symbol\b[^>]*\bid="([^"]*)"/);if(o){let f=o[1];return f===t?e:e.replace(`id="${f}"`,`id="${t}"`)}let r=Qw(e),{width:s,height:i}=r,a=r.viewBox||`0 0 ${s||24} ${i||24}`,u=Jw(e,t).replace("<svg",`<symbol id="${t}" xmlns="http://www.w3.org/2000/svg" viewBox="${a}"`);return u=u.replace(/^<symbol\b[^>]*>/,f=>f.replace(/\s(width|height)="[^"]*"/g,"")),u=u.replace("</svg","</symbol"),u=nk(u),u},tk="line|circle|ellipse|rect|polyline|polygon|path|stop|use|image",ek=new RegExp(`<(${tk})\\b([^>]*?)\\s*/>`,"g"),nk=t=>t.replace(ek,"<$1$2></$1>");var ep=/*@__PURE__*/__smblsNs({},{BARE_SEQUENCE_TOKEN_RE:()=>Be,COMPOUND_CSS_KEYWORDS:()=>Xo,CSS_NAMED_COLOR_HEX:()=>ws,CSS_NATIVE_COLOR_REGEX:()=>gn,CSS_UNITS:()=>ps,applyMediaSequenceVars:()=>so,applySequenceGlobalVars:()=>Ra,applySequenceVars:()=>wn,changeLightness:()=>Jx,colorStringToRgbaArray:()=>xe,compositeOverBackdrop:()=>Jo,compoundLayers:()=>Cs,contrastRatio:()=>As,convertSvgToSymbol:()=>Ia,findHeadingLetter:()=>Xd,findHeadings:()=>Ea,generateSequence:()=>Zt,generateSequencePosition:()=>Zw,generateSprite:()=>Da,generateSubSequence:()=>va,getColorShade:()=>Ld,getDefaultOrFirstKey:()=>mn,getFnPrefixAndValue:()=>xn,getFontFace:()=>sw,getFontFaceEach:()=>tr,getFontFaceEachString:()=>Ud,getFontFaceString:()=>iw,getFontFormat:()=>jd,getRgbTone:()=>Me,getSequenceValue:()=>rr,getSequenceValueBySymbols:()=>Oa,getSequenceValuePropertyPair:()=>Ye,getSizeValue:()=>Ms,getSubratio:()=>Aa,getSubratioDifference:()=>Ta,hexToRgb:()=>Yx,hexToRgbArray:()=>Ed,hexToRgba:()=>Xx,hslToRgb:()=>Id,isCSSVar:()=>ut,isDomDocument:()=>pn,isGoogleFontsUrl:()=>vs,isHostObject:()=>hn,isInertCompoundValue:()=>Md,isNativeColorToken:()=>Qo,isRawUnitValue:()=>la,isResolvedColor:()=>we,isScalingUnit:()=>Ko,isWritableFamilyBucket:()=>Sx,joinCompoundLayers:()=>Ts,linearChannelToSrgb:()=>Nd,mixTwoColors:()=>qx,mixTwoRgb:()=>Qx,mixTwoRgba:()=>Pd,numToLetterMap:()=>Ce,oklabToLinearSrgb:()=>$d,oklabToOklch:()=>_a,oklchToGamutSafeSrgb:()=>ma,oklchToOklab:()=>Fd,opacify:()=>ks,parkHostObject:()=>no,parseColorToken:()=>vt,quietSequenceProbe:()=>Sn,relativeLuminance:()=>Zo,resolveCompoundWords:()=>_n,resolveConfigDocument:()=>ds,resolveFileUrl:()=>ke,returnSubThemeOrDefault:()=>rw,rgbArrayToHex:()=>Rd,rgbToHSL:()=>Dd,rgbToHex:()=>Zx,setCustomFont:()=>ya,setCustomFontMedia:()=>ro,setFontImport:()=>Os,setInCustomFontMedia:()=>Vd,setScalingVar:()=>Ca,setSubScalingVar:()=>Yd,setVariables:()=>Xw,splitCompoundWords:()=>ha,splitTopLevelCommas:()=>Pe,splitTopLevelSpaces:()=>W,srgbChannelToLinear:()=>Bd,srgbToOklab:()=>ga,toLinearChannel:()=>xs});var sp={light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)"},ip=(t,e)=>{let n=e.media&&e.media[t]||sp[t];return n?"@media "+(n==="print"?`${n}`:`screen and ${n}`):null},ap=t=>{let e=t.scopeSelector||":root";return`${e===":root"?":root:not([data-theme])":`:root:not([data-theme]) ${e}:not([data-theme])`} &`},Xt=new Set,cp=new Set(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","green","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"]),lp=["AccentColor","AccentColorText","ActiveText","ButtonBorder","ButtonFace","ButtonText","Canvas","CanvasText","Field","FieldText","GrayText","Highlight","HighlightText","LinkText","Mark","MarkText","SelectedItem","SelectedItemText","VisitedText","ActiveBorder","ActiveCaption","AppWorkspace","Background","ButtonHighlight","ButtonShadow","CaptionText","InactiveBorder","InactiveCaption","InactiveCaptionText","InfoBackground","InfoText","Menu","MenuText","Scrollbar","ThreeDDarkShadow","ThreeDFace","ThreeDHighlight","ThreeDLightShadow","ThreeDShadow","Window","WindowFrame","WindowText"],fp=new Set(lp.map(t=>t.toLowerCase())),ok=new Set(lp),La=0,sr=t=>{La++;try{return t()}finally{La--}},rk=/(^|[^\w-])(not\s+)?\(\s*forced-colors\s*(?::\s*(active|none)\s*)?\)/i,ir=t=>{if(!C(t))return!1;let e=t.match(rk);return!e||e[2]||e[3]&&e[3].toLowerCase()==="none"?!1:!/^\s*(?:@media\s+)?not\b/i.test(t)},up=t=>La>0||ok.has(t),ar=t=>C(t)&&fp.has(t.toLowerCase())&&up(t),sk=/^(?:#[0-9a-f]{3,8}$|(?:rgba?|hsla?|hwb|lab|lch|oklab|oklch|color|color-mix)\()/i,ik=/gradient\(|url\(|image-set\(|var\(/i,ak=new Set(["transparent","currentColor","currentcolor"]),io=t=>{if(!C(t))return!1;let e=t.trim();return ik.test(e)?!1:sk.test(e)?!0:cp.has(e)||ak.has(e)},Bs=new Set,np=t=>{if(!t)return!1;let{color:e,gradient:n}=t;return!!(E(e)&&Object.keys(e).length||E(n)&&Object.keys(n).length)},op=new Set,Pa=0,cr=t=>{Pa++;try{return t()}finally{Pa--}},ck=(t,e)=>{if(!C(t)||t.indexOf(" ")===-1)return null;let n=t.replace(/\s+/g,""),o=vt(n);if(!o||o.passthrough||o.cssVar)return null;let{color:r,gradient:s}=e;return!r[o.name]&&!s[o.name]?null:n},Ma=(t,e,n)=>{let o=ck(t,n);if(o){if(!op.has(t)){op.add(t);let a=n&&n.name?` (design system \`${n.name}\`)`:"";globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(`[scratch] color token \`${t}\` has a space before its alpha/tone modifier${a} \u2014 did you mean \`${o}\`? The space form never resolves, so the atomic class it mints carries no CSS value and paints invisibly. Dropped rather than shipped invisible.`)}return}let r=vt(t);if(r&&r.name&&!r.passthrough&&!r.cssVar&&(r.alpha!==void 0||r.tone!==void 0)&&np(n)&&!n.color[r.name]&&!n.gradient[r.name]){if(!Pa&&!Bs.has(t)){Bs.add(t);let a=n&&n.name?` (design system \`${n.name}\`)`:"";globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(`[scratch] color token \`${t}\` does not resolve${a} \u2014 \`${r.name}\` is not in the palette. Dropped rather than emitted as a raw value, which is invalid CSS the browser discards silently. Define it in designSystem/color.js or use a palette token.`)}return}let s=C(e)?e.toLowerCase():"",i=fp.has(s);if(!cp.has(s)&&!i||i&&up(e)||!np(n))return t;if(!Bs.has(s)){Bs.add(s);let a=n&&n.name?` (design system \`${n.name}\`)`:"";globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(i?`[scratch] color \`${t}\` is a CSS system colour that is not in the palette${a}. Dropped rather than emitted as a raw browser colour: a system colour paints the value the user's desktop chose (\`highlight\` is the selection blue), so it ignores the design system and is not even stable across two machines. Define it in designSystem/color.js or use a palette token.`:`[scratch] color \`${t}\` is a CSS named colour that is not in the palette${a}. Dropped rather than emitted as a raw browser colour, which renders theme-blind and can be unreadable ("looks designed", so it ships unnoticed). Define it in designSystem/color.js or use a palette token.`)}},dp=(t,e,n)=>{let o=e!==void 0?e:1;if(!n)return`rgb(from ${t} r g b / ${o})`;if(n.charCodeAt(0)===43||n.charCodeAt(0)===45){let s=parseFloat(n),i=s<0?"-":"+",a=Math.abs(s);return`rgb(from ${t} calc(r ${i} ${a}) calc(g ${i} ${a}) calc(b ${i} ${a}) / ${o})`}return`hsl(from ${t} h s ${n}% / ${o})`},z=(t,e,n)=>{let o=n||A();if(!C(t)){o.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(t,"- type for color is not valid"));return}if(ut(t))return`var(${t})`;e&&t[e]&&(t=t[e]);let r,s,i;if(K(t))[r,s,i]=t;else{let f=vt(t);if(!f){let{color:d,gradient:p}=o,g=p[t]||d[t];return g?(e&&g[e]&&(g=g[e]),o.useVariable?`var(${g.var})`:g.value):Ma(t,t,o)}if(f.passthrough)return f.passthrough;if(f.cssVar)return`var(${f.cssVar})`;r=f.name,s=f.alpha,i=f.tone}let{color:a,gradient:c}=o,l=a[r]||c[r];if(!l)return Ma(t,r,o);if(e)if(l[e]!==void 0)l=l[e];else if(K(l)){let f=e.charCodeAt(0)===64?e.slice(1):e;f==="dark"?l=l[1]!==void 0?l[1]:l[0]:(f!=="light"&&o.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(t," - array-form color tokens only support light/dark; falling back to the light slot for scheme",e)),l=l[0])}else o.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(t," - does not have ",e));if(C(l)){if(Xt.has(r))return l;Xt.add(r);try{return z(l,null,n)}finally{Xt.delete(r)}}let u=l.rgb;if(!u){let f=o.useVariable?`var(${l.var})`:l.value;return(s||i)&&f?dp(f,s,i):f}return i&&!l[i]&&(u=Me(u,i),l[i]={rgb:u,var:`${l.var}-${i}`}),l[i]&&(u=l[i].rgb),s?`rgba(${u}, ${s})`:i?`rgba(${u}, ${l.alpha!==void 0?l.alpha:1})`:o.useVariable?`var(${l.var})`:l.value!==void 0?l.value:`rgb(${u})`},rp=t=>{let e=xe(t);return!e||e.length<3||e[0]===0&&e[1]===0&&e[2]===0&&e[3]===0&&t.toLowerCase()!=="transparent"?null:{rgb:[e[0],e[1],e[2]],alpha:e[3]!==void 0?e[3]:1}},lk=(t,e)=>{if(!e)return t;let n=t.rgb;if(e.tone){let r=Me(n,e.tone);n=C(r)?r.split(",").map(s=>parseFloat(s.trim())):r}let o=e.alpha!==void 0?parseFloat(e.alpha):t.alpha;return{rgb:n,alpha:o}},lr=(t,e,n)=>{let o=e||A();if(!C(t))return null;let r=vt(t);if(r){if(r.passthrough){let d=xe(r.passthrough);return d&&d.length>=3?{rgb:[d[0],d[1],d[2]],alpha:d[3]!==void 0?d[3]:1}:null}if(r.cssVar)return null}let s=r?r.name:t,{color:i,gradient:a}=o,c=i[s]||a[s];if(!c)return rp(t);if(C(c)){let d;if(Xt.has(s))d=rp(c);else{Xt.add(s);try{d=lr(c,o,n)}finally{Xt.delete(s)}}return d?lk(d,r):null}if(c.rgb===void 0&&E(c)){let d=`@${n||"light"}`;c=c[d]!==void 0?c[d]:c["@light"]}if(!c||c.rgb===void 0)return null;let l=c.rgb;r&&r.tone&&(l=Me(l,r.tone));let u=C(l)?l.split(",").map(d=>parseFloat(d.trim())):l,f=r&&r.alpha!==void 0?parseFloat(r.alpha):c.alpha!==void 0?c.alpha:1;return{rgb:u,alpha:f}},pp=t=>E(t)&&t.value!==void 0&&(t.rgb!==void 0||t.var!==void 0),ao=t=>{let e=[];for(let n in t)n.charCodeAt(0)===64&&e.push(n.slice(1));return e},Na=t=>{if(!E(t)||t.value!==void 0)return null;for(let n in t)if(n!=="var"&&(n.charCodeAt(0)!==64||!pp(t[n])))return null;let e=ao(t);return e.length?e:null},fk=t=>C(t&&t.var)&&Na(t)!==null,uk=(t,e,n,o,r)=>{let s=Na(e);if(!s)return;if(C(e.var)){let c=`var(${e.var})`;return n||o?dp(c,n,o):c}if(s.length!==2||!s.includes("light")||!s.includes("dark"))return;let i=z(t,"@light",r),a=z(t,"@dark",r);if(!(!io(i)||!io(a)))return i===a?i:`light-dark(${i}, ${a})`},Ba=(t,e)=>{if(!t)return null;let n=e||A(),o=vt(t),r=o?o.name:t,s=r&&n.color&&n.color[r];if(K(s))return["light","dark"];if(!E(s)||s.value!==void 0)return null;let i=ao(s);return i.length?i:null},Cn=(t,e,n)=>{let o={},r=ap(e);for(let s of t){let i=n(s);if(i!==void 0&&(o[`[data-theme="${s}"] &`]=i,s==="light"||s==="dark")){let a=ip(s,e);a&&(o[a]={[r]:i})}}return o},fr=(t,e)=>t||(e.globalTheme==="auto"?null:e.globalTheme),ur=(t,e,n,{commas:o,resolve:r,resolveScheme:s})=>{let i=Cs(t,o),a=null;for(let u of i)for(let f of u){let d=Ba(f,n);if(d)for(let p of d)(a||(a=[])).includes(p)||a.push(p)}if(!a)return;let c=u=>Ts(i.map(f=>f.map(d=>{if(!Ba(d,n))return d;let p=u(d);return C(p)?p:d}))),l=fr(e,n);return l?r(c(u=>yt(u,l,n)),l):Cn(a,n,u=>s(u,c))},yt=(t,e,n)=>{let o=n||A();if(e=fr(e,o),!C(t)){o.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(t,"- type for color is not valid"));return}if(ut(t))return`var(${t})`;let r,s,i;if(K(t))r=t[0];else{let f=vt(t);if(f){if(f.passthrough)return f.passthrough;if(f.cssVar)return`var(${f.cssVar})`;r=f.name,s=f.alpha,i=f.tone}else r=t}let{color:a,gradient:c}=o,l=a[r]||c[r],u=E(l);if(u&&l.value)return z(t,`@${e}`,n);if(u){if(o.useVariable&&l.var)return s||i?z(t,null,n):`var(${l.var})`;if(e){if(!o.useVariable&&a[r]===l){let f=uk(t,l,s,i,n);if(f!==void 0)return f}return z(t,`@${e}`,n)}else return Cn(ao(l),o,f=>z(t,"@"+f,n))}else return Ma(t,r,o)},co=(t,e,n,o)=>{let s=`--${o.varPrefix?o.varPrefix+"-":""}${e}-${n}`,i,a={};for(let c in t){if(c.charCodeAt(0)!==64)continue;let l=c.slice(1),u=t[c],f=u&&(u.value||u);!f||typeof f!="string"||(a[l]=f,(l==="light"||i===void 0)&&(i=f))}if(i!==void 0){o.cssVars[s]=i,o.cssMediaVars||(o.cssMediaVars={});for(let c in a){let l=`[data-theme="${c}"]`;if(o.cssMediaVars[l]||(o.cssMediaVars[l]={}),o.cssMediaVars[l][s]=a[c],c==="light"||c==="dark"){let u=`@media (prefers-color-scheme: ${c})`;o.cssMediaVars[u]||(o.cssMediaVars[u]={}),o.cssMediaVars[u][s]=a[c]}}return t.var=s,s}},kn=(t,e,n)=>{let o=A();if(pp(t))return o.useVariable&&t.var&&(o.cssVars[t.var]=t.value),t;if(!o.useVariable&&fk(t))return t;if(C(t)&&ut(t)){let h=t.slice(2),_=h.trim().indexOf(" ")!==-1;if(t=_?h:z(h),_||!(t.includes("rgb")||t.includes("var")||t.includes("#"))){let m=h.trim().split(/\s+/),b=o.color[m[0]];if(b&&!b.value&&!b.rgb&&(C(b)||K(b)||E(b))&&!Xt.has(m[0])){Xt.add(m[0]);try{o.color[m[0]]=kn(b,m[0])}finally{Xt.delete(m[0])}b=o.color[m[0]]}if(b&&b.value){let x=b.rgb,D=m[1]!==void 0?m[1]:"1",y=m[2];y&&(x=Me(x,y)),t=`rgba(${x}, ${D})`}else{let x=m[2],D=m[1]!==void 0?m[1]:"1";if(x)try{let y=xe(m[0]);y&&y.length>=3?t=`rgba(${Me(y.slice(0,3).join(", "),x)}, ${D})`:t=m[0]}catch{t=m[0]}else t=m[0]}}}if(K(t)&&(t={"@light":t[0],"@dark":t[1]!==void 0?t[1]:t[0]}),E(t)){let h={};for(let _ in t)_!=="var"&&(h[_]=kn(t[_],e,_.slice(0,1)==="@"?_.slice(1):_));return o.useVariable&&co(h,"color",e,o),h}let s=`--${o.varPrefix?o.varPrefix+"-":""}color-${e}`+(n?`-${n}`:""),i=t.value||t;if(C(i)&&!i.includes("(")&&!i.startsWith("#")){let h=vt(i);if(h&&h.name&&!h.passthrough&&!h.cssVar){let _=o.color[h.name];if(_&&!_.value&&!_.rgb&&(C(_)||K(_)||E(_))&&!Xt.has(h.name)){Xt.add(h.name);try{o.color[h.name]=kn(_,h.name)}finally{Xt.delete(h.name)}}let m=o.color[h.name],b=Na(m);if(b){if(h.alpha===void 0&&h.tone===void 0)return m;let x={};for(let D of b){let y=m["@"+D],S=y.rgb;h.tone&&(S=Me(S,h.tone));let w=h.alpha!==void 0?parseFloat(h.alpha):y.alpha!==void 0?y.alpha:1;x["@"+D]=`rgba(${S}, ${w})`}return kn(x,e,n)}if(m&&m.rgb){let x=m.rgb;h.tone&&(x=Me(x,h.tone));let D=h.alpha!==void 0?parseFloat(h.alpha):m.alpha!==void 0?m.alpha:1;i=`rgba(${x}, ${D})`}}}let a=xe(i),[c,l,u,f=1]=a,d=parseFloat(f.toFixed(2)),p=`${c}, ${l}, ${u}`,g=`rgba(${p}, ${d})`;return o.useVariable&&(o.cssVars[s]=g),{var:s,rgb:p,alpha:d,value:g}},dk=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),lo=(t,e)=>{let n=t.indexOf("(");if(n===-1)return t;let o=t.slice(0,n+1),r=t.slice(n+1,t.lastIndexOf(")")),s=")",i=Pe(r),a=!1,c=i.map(l=>(l=l.trim(),l.split(/\s+/).map(f=>{if(!f||/^\d/.test(f)||f==="0"||dk.has(f)||f==="transparent"||gn.test(f))return f;let d=z(f);return we(d)?(a=!0,d):f}).join(" ")));return a?o+c.join(", ")+s:t},Ns=(t,e,n)=>{let o=A();if(E(t)&&t.value!==void 0&&t.var!==void 0)return o.useVariable&&(o.cssVars[t.var]=t.value),t;if(C(t)&&ut(t)&&(t=z(t.slice(2))),K(t)&&(t={"@light":t[0],"@dark":t[1]!==void 0?t[1]:t[0]}),E(t)){let a={};for(let c in t)c!=="var"&&(a[c]=Ns(t[c],e,c.slice(0,1)==="@"?c.slice(1):c));return o.useVariable&&co(a,"gradient",e,o),a}let s=`--${o.varPrefix?o.varPrefix+"-":""}gradient-${e}`+(n?`-${n}`:""),i=lo(t.value||t);return o.useVariable&&(o.cssVars[s]=i),{var:s,value:i}};var hp=new Set,jt=(t,e)=>{if(hp.has(t)||(hp.add(t),typeof console>"u"||!console.error))return;let n=e&&e.__ref&&e.__ref.path,o=n&&n.length?` (at <${n.join(".")}>)`:"";console.error(`[smbls] "${t}"${o} is not in this build: symbols.json build.treeShakeFeatures left it out because neither the project source nor its build settings use it. Add "${t}" to build.treeShakeFeatures.keep.`)};var gp=(t,e,n={},o)=>{if(globalThis.__SMBLS_BUILD_DROP_F_safeInk__)return jt("safeInk");let r=o||A(),{min:s=4.5,large:i=!1,scheme:a,meta:c=!1,maxIterations:l=15}=n,u=i?3:s,f=a||(r.globalTheme&&r.globalTheme!=="auto"?r.globalTheme:"light"),d=C(e)?e:String(e),p=vt(t),g=p&&!p.passthrough&&!p.cssVar?p.name:null,h=(Z,lt)=>c?{value:Z,...lt}:Z;if(g){let Z=r.color[`${g}Safe`];if(Z){let lt=`${d}@${f}`,M=Z[lt]!==void 0?Z[lt]:Z[d];if(M!==void 0){let X=M&&M.rgb!==void 0?r.useVariable&&M.var?`var(${M.var})`:M.value:z(M,null,r);return h(X,{ratio:null,deviation:0,derived:!1,overridden:!0})}}}let _=z(t,f?`@${f}`:null,r),m=lr(t,r,f),b=lr(e,r,f);if(!m||!b)return r.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("getSafeInk: could not resolve",t,e,"\u2014 returning hue unchanged")),h(_,{ratio:null,deviation:0,derived:!1,overridden:!1,unresolved:!0});let x=Jo(b.rgb,b.alpha),D=Jo(m.rgb,m.alpha,x),y=As(D,x);if(y>=u-.02)return h(_,{ratio:y,deviation:0,derived:!1,overridden:!1});let[S,w,k]=ga(m.rgb),[,v,R]=_a([S,w,k]),O=Zo(x)>.5,$=O?S:1-S,B=Z=>{let lt=O?S-Z:S+Z,M=Math.max(0,Math.min(1,lt));return{rgb:ma(M,v,R),L:M}},P=Z=>{let{rgb:lt}=B(Z),M=Jo(lt.map(X=>Math.round(X)),m.alpha,x);return As(M,x)},Gt=0,ct=$,Kt=P(ct)>=u;if(Kt)for(let Z=0;Z<l;Z++){let lt=(Gt+ct)/2;P(lt)>=u?ct=lt:Gt=lt}else Gt=ct;let{rgb:He,L:ye}=B(ct),q=He.map(Z=>Math.round(Z)),mt=P(ct),et=m.alpha<1?`rgba(${q.join(", ")}, ${m.alpha})`:`rgb(${q.join(", ")})`,wt=Math.abs(ye-S)*100;return h(et,{rgb:q,ratio:mt,startRatio:y,deviation:wt,derived:!0,overridden:!1,reachable:Kt})},pk=(t,e,n={},o)=>gp(t,e,{...n,meta:!0},o);var hk=t=>{let n=A().spacing||{},o=parseFloat(t.spacingRatio),r={...n,ratio:Number.isFinite(o)?o:n.ratio,sequence:{},scales:{}};return Zt(r),r},gk=t=>{for(let e in t){let n=t[e];if(!(e.slice(0,1)==="@"))continue;let{type:r,base:s,ratio:i,range:a,subSequence:c,h1Matches:l,unit:u}=t;At(n,{type:r,base:s,ratio:i,range:a,subSequence:c,h1Matches:l,unit:u,sequence:{},scales:{},templates:{},vars:{}}),Zt(n),so(t,e)}},$a=t=>{let e=t.toLowerCase(),n=e.includes("width")||e.includes("height"),o=e.includes("border")||e.includes("outline");return n&&!o},Fa=()=>{let t=A(),{spacing:e}=t;Zt(e),wn(e),gk(e)},_k=t=>{let e=A(),{spacing:n}=e;return!t||!t.sequence?n:Object.keys(t.sequence).length>0?t:Zt(t)},gt=(t,e="padding",n,o)=>{let r=_k(n);if(C(t)){if(!o&&/^(?:env|var)\(/.test(t.trim()))return{[e]:t};if(!o&&t.includes("(")){let i=xn(t);o=i[0],t=i[1]}}let s=o?[t]:C(t)&&t.includes("(")?W(t):Ss(t);if(K(s)){if(s.length>1){let i="";e==="borderWidth"&&(e="border",i="Width");let a={2:["Block","Inline"],3:["BlockStart","Inline","BlockEnd"],4:["BlockStart","InlineEnd","BlockEnd","InlineStart"]},c=(l,u)=>Ye(s[u],e+l+i,r,o);return a[s.length].map((l,u)=>c(l,u))}return Ye(t,e,r,o)}},pe=(t,e,n,o)=>{let r=A(),{spacing:s}=r,i=n||t[e];if(!o&&C(i)&&/^(?:env|var)\(/.test(i.trim()))return{[e]:i};if(!o&&C(i)&&i.includes("(")){let a=xn(i);o=a[0],i=a[1]}if(t.spacingRatio){let a=hk(t);return gt(i,e,a,o)}return gt(i,e,s,o)},ja=t=>{let e=n=>{let o=["+","-","*","/"].includes(n),r=ps.some(i=>t.includes(i));return o||r?n:n.length<3&&/[A-Z]/.test(n)?n+"_default":n};return t.split(",").map(n=>n.trim()).map(e).join(",").split(" ").map(e).join(" ")};var mk={commas:!0},dr=(t,e,n)=>C(t)?_n(t,yk,mk,e,n):t,yk=(t,e,n)=>{let o=cr(()=>z(t,e));return we(o)?o:$s(t,n)},$s=(t,e)=>{if(/^\d/.test(t)||t.includes("px")||t.slice(-2)==="em"||t==="inset"||t==="none"||ar(t)||Xo.has(t.toLowerCase()))return t;e&&e(t);let n=Sn(()=>gt(t,"shadow"));return n&&n.shadow?n.shadow:t},fo=(t,e,n,o)=>{let r=A();if(E(t)&&t.value!==void 0&&t.var!==void 0)return r.useVariable&&(r.cssVars[t.var]=t.value),t;if(K(t)){let a={"@light":fo(t[0],e,"light"),"@dark":fo(t[1],e,"dark")};return r.useVariable&&co(a,"shadow",e,r),a}if(E(t)){let a={};for(let c in t)a[c]=fo(t[c],e,c.startsWith("@")?c.slice(1):c);return r.useVariable&&co(a,"shadow",e,r),a}C(t)&&(t=dr(t));let i=`--${r.varPrefix?r.varPrefix+"-":""}shadow-${e}`+(n?`-${n}`:"");return r.useVariable&&(r.cssVars[i]=t),{var:i,value:t}},Va=(t,e)=>{let n=A();if(e=fr(e,n),!C(t)){n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(t,"- type for color is not valid"));return}if(ut(t))return`var(${t})`;let[o]=K(t)?t:t.split(" "),s=n.shadow[o],i=E(s);if(!s)return n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("Can't find color ",o)),t;if(i&&!s.value&&n.useVariable&&s.var)return`var(${s.var})`;if(e){let a=s["@"+e]||s[e];if(a)return a.value!==void 0?a.value:a;n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(t," - does not have ",e))}return i&&s.value?s.value:i?Cn(ao(s),n,a=>{let c=s["@"+a];return c&&(c.value!==void 0?c.value:c)}):(n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("Can't find color",t)),t)};var bk=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),Sk={commas:!1,keywords:bk},Vt=(t,e,n)=>{if(t==null)return;let o=t+"",r=o.trim();return r==="none"||r==="0"||r==="initial"||r==="inherit"||r==="unset"?o:_n(o,xk,Sk,e,n)},xk=(t,e,n)=>{if(/^\d/.test(t))return t;let o=cr(()=>z(t,e));if(we(o))return o;if(ar(t)||Xo.has(t.toLowerCase()))return t;n&&n(t);let r=Sn(()=>gt(t,"border"));return r&&r.border?r.border:t},Ua=(t,e,n)=>{let o=n||A();if(o.useVariable||!C(t))return Vt(t);let r=ur(t,e,o,{commas:!1,resolve:s=>Vt(s),resolveScheme:s=>Vt(t,"@"+s)});return r!==void 0?r:Vt(t)};var wk=new Set(["black","white","red","green","blue","yellow","orange","purple","pink","brown","gray","grey","cyan","magenta","lime","olive","navy","teal","aqua","maroon","silver","fuchsia","transparent","currentColor","currentcolor","inherit","initial","unset","none","aliceblue","antiquewhite","aquamarine","azure","beige","bisque","blanchedalmond","blueviolet","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","gainsboro","ghostwhite","gold","goldenrod","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","limegreen","linen","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","oldlace","olivedrab","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","plum","powderblue","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellowgreen","rebeccapurple"]),_p=["color","Color","background","Background","fill","Fill","stroke","Stroke"],Sp=t=>{for(let e=0;e<_p.length;e++)if(t.includes(_p[e]))return!0;return!1},kk={boxShadow:dr,textShadow:dr,border:Vt,borderTop:Vt,borderRight:Vt,borderBottom:Vt,borderLeft:Vt,outline:Vt,columnRule:Vt},Ck=t=>{if(!t)return!1;let e=vt(t);return!e||!e.name||e.passthrough||e.cssVar?!1:e.alpha!==void 0||e.tone!==void 0},mp=new Set,Tk=(t,e,n,o,r,s)=>{if(!(!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&j()))return;let i=`${t}::${e}::${n||""}::${o}`;mp.has(i)||(mp.add(i),console.warn(`[smbls/scratch] theme param "${e}" on "${t}"`+(n?` (${n})`:"")+` did not fully resolve: "${o}" -> "${r}" still contains the unresolved token "${s}". This is not valid CSS \u2014 the browser will drop the whole declaration. Register "${s}" as a design-system color token or fix the typo.`))},Ha=(t,e,n,o)=>{let r=kk[e];if(!r)return z(n,o);let s=null,i=r(n,o,a=>{!s&&Ck(a)&&(s=a)});return s&&Tk(t,e,o,n,i,s),i},Ak=(t,e)=>Te(t,e),vk=t=>E(t)&&U(t.value),Ok=t=>{for(let e in t){let n=t[e];if(C(n)&&n.startsWith("var(--"))return!0}return!1},Ga=(t,e)=>{let n=A();return vk(t)?!n.useVariable&&Ok(t)?t:Fs(t.value,e):Fs(t,e)},xp=(t,e)=>{let n=new Set;for(let o of e){let r=o.slice(0,1);if(!(r==="@"||r==="."||r===":")&&Sp(o))for(let s in t){if(n.has(s))continue;let i=t[s]?.[o];if(i===void 0)continue;let a=z(i,`@${s}`);a!==void 0&&C(a)&&/^[a-z][a-zA-Z]+$/.test(a)&&!wk.has(a)&&n.add(s)}}return n},wp=t=>t.startsWith("[data-theme=")||t.startsWith("@media"),pr=(t,e)=>{for(let n in e){let o=e[n];E(o)?pr(t[n]||(t[n]={}),o):t[n]=o}return t},yp=(t,e,n,o,r)=>pr(t,Cn(o,r,s=>({[e]:n[s]}))),kp=(t,e,n,o)=>{let r={},s=Object.keys(e).filter(c=>e[c]!==n);if(!s.length)return n===void 0?void 0:(r[t]=n,r);let i=e.light!==void 0?e.light:n,a=e.dark!==void 0?e.dark:n;if(Sp(t)&&io(i)&&io(a)){r[t]=i===a?i:`light-dark(${i}, ${a})`;let c=Object.keys(e).filter(l=>l!=="light"&&l!=="dark");yp(r,t,e,c,o)}else n!==void 0&&(r[t]=n),yp(r,t,e,s,o);return r},Ek=new Set(["backdropFilter","WebkitBackdropFilter"]),Cp=new WeakSet,Tp=(t,e,n,o)=>{let r=n.globalTheme!==void 0?n.globalTheme:"auto",s=r&&r!=="auto"?String(r).replace(/^'|'$/g,""):null,i=new Set(o?Object.keys(o):[]);for(let l in t)if(t[l])for(let u of Object.keys(t[l]))i.add(u);let a=xp(t,i),c={};for(let l of i){let u=l.slice(0,1);if(u==="@")continue;if(u==="."||u===":"){let _={};for(let x in t)U(t[x]?.[l])&&(_[x]=t[x][l]);let m=o&&U(o[l])?o[l]:void 0;if(!Object.keys(_).length&&!m)continue;let b=u==="."?l.slice(1):l.replace(/^:+/,"");c[l]=Tp(_,`${e}-${b}`,n,m);continue}let f=o&&!U(o[l])?o[l]:void 0,d=new Set(Object.keys(t));f!==void 0&&(d.add("light"),d.add("dark"),s&&d.add(s));let p={},g;for(let _ of d){if(a.has(_))continue;let m=t[_]?.[l];if((m===void 0||U(m))&&(m=f),m===void 0)continue;let b=Ha(e,l,m,`@${_}`);b!==void 0&&(p[_]=b,(s&&_===s||!s&&(_==="light"||g===void 0))&&(g=b))}let h=kp(l,p,g,n);h&&(pr(c,h),c[`.${l}`]=h)}return(c.background||c.color||c.backgroundColor)&&(c[".inversed"]={color:c.background||c.backgroundColor,background:c.color}),c},Wa=(t,e,n,o)=>{let{cssVars:r}=n;n.cssMediaVars||(n.cssMediaVars={});let s=n.cssMediaVars,i=n.globalTheme!==void 0?n.globalTheme:"auto",a=i&&i!=="auto"?String(i).replace(/^'|'$/g,""):null,c={},l=new Set(o?Object.keys(o):[]);for(let f in t)if(t[f])for(let d of Object.keys(t[f]))l.add(d);let u=xp(t,l);for(let f of l){let d=f.slice(0,1),p=U(o?.[f])||Object.values(t).some(g=>U(g?.[f]));if(d==="."&&p){let g=f.slice(1),h={};for(let m in t)U(t[m]?.[f])&&(h[m]=t[m][f]);let _=U(o?.[f])?o[f]:void 0;c[f]=Wa(h,`${e}-${g}`,n,_)}else if(d===":"&&p){let g=f.replace(/^:+/,""),h={};for(let m in t)U(t[m]?.[f])&&(h[m]=t[m][f]);let _=U(o?.[f])?o[f]:void 0;c[f]=Wa(h,`${e}-${g}`,n,_)}else if(d!=="@"&&d!=="."&&d!==":"){let h=`--${n.varPrefix?n.varPrefix+"-":""}theme-${e}-${f}`,_=o&&!U(o[f])?o[f]:void 0,m=new Set(Object.keys(t));_!==void 0&&(m.add("light"),m.add("dark"),a&&m.add(a));let b,x=!1,D={};for(let y of m){if(u.has(y))continue;let S=t[y]?.[f];if((S===void 0||U(S))&&(S=_),S===void 0)continue;let w=Ha(e,f,S,`@${y}`);if(w===void 0)continue;x=!0,D[y]=w,(a&&y===a||!a&&(y==="light"||b===void 0))&&(b=w);let k=`[data-theme="${y}"]`;if(s[k]||(s[k]={}),s[k][h]=w,y==="dark"||y==="light"){let v=`@media (prefers-color-scheme: ${y})`;s[v]||(s[v]={}),s[v][h]=w}}if(b!==void 0&&(r[h]=b),!x)continue;if(Ek.has(f)){let y=kp(f,D,b,n);y&&(pr(c,y),c[`.${f}`]=y);continue}c[f]=`var(${h})`,c[`.${f}`]={[f]:c[f]}}}(c.background||c.color||c.backgroundColor)&&(c[".inversed"]={color:c.background||c.backgroundColor,background:c.color});for(let f in c)wp(f)&&U(c[f])&&Cp.add(c[f]);return c},Fs=(t,e,n,o)=>{let r=A(),{cssVars:s}=r,i={value:t},a=!n&&!o,c,l;if(U(t)){if(a&&r.useVariable){let u={},f={};for(let d in t)d.startsWith("@")?U(t[d])&&(u[d.slice(1)]=t[d]):f[d]=t[d];(Object.keys(u).length||Object.keys(f).length)&&(l=Wa(u,e,r,f),Object.assign(i,l))}else if(a){let u={},f={};for(let d in t)d.startsWith("@")?U(t[d])&&(u[d.slice(1)]=t[d]):f[d]=t[d];c=Tp(u,e,r,f),Object.assign(i,c)}for(let u in t){let f=u.slice(0,1),d=t[u];if(f==="@"||f===":"||f==="."){let p=f==="@"&&u;i[u]=Fs(d,e,u,o||p)}else if(!a){let p=Ha(e,u,d,o),g=[...new Set([o,n].filter(b=>b).map(b=>b.slice(1)))],h=g.length?"-"+g.join("-"):"",m=`--${r.varPrefix?r.varPrefix+"-":""}theme-${e}${h}-${u}`;r.useVariable?(r.useThemeSuffixedVars&&(s[m]=p),i[u]=`var(${m})`):i[u]=p,i[`.${u}`]={[u]:i[u]}}}if(c)for(let u in c){let f=u.slice(0,1);(f==="."||f===":")&&U(t[u])&&(i[u]=c[u])}if(l)for(let u in l){let f=u.slice(0,1);(f==="."||f===":")&&U(t[u])&&(i[u]=l[u])}!i[".inversed"]&&(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color})}if(C(t)&&ut(t)){let f=r.theme[t.slice(2)];return Te(f,o)}return i},za=(t,e)=>{let n={};for(let o in t){let r=o.slice(0,1);if(U(t[o]))if(wp(o)&&(e||Cp.has(t[o])))n[o]=pr({},t[o]);else{if(r==="@")continue;r===":"?n[`&${o}`]=za(t[o],e):r==="."&&(n[`&${o}`]=za(t[o],e))}else n[o]=t[o]}return n},Ap=(t,e)=>{let n=e.shift();return t[n]?Ap(t[n],e):t},bp=(t,e)=>K(e)?Ap(t,e):C(e)&&t[e]?t[e]:t;var Te=(t,e)=>{let n=A();if(C(t)&&ut(t)&&(t=Te(t.slice(2))),!t||!C(t)){n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(`${t} - Theme is not a string`));return}let[o,...r]=K(t)?t:t.split(" "),s=n.theme[o];return s&&r.length?s=bp(s,r):s&&e&&(s=bp(s,e)),za(s,!n.useVariable)};var Ka=(t,e)=>{let n=A(),o=`--font-${e}`;if(!t||K(t)&&!t[0])return;let r;if(t.isVariable){let s=ke(t.url,n.files)||t.url;vs(s)?r=Os(s):r=ro(e,s,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap",unicodeRange:t.unicodeRange})}else if(t[0])r=tr(e,t,n.files);else{let s=Array.isArray(t.url)?t.url.map(i=>ke(i,n.files)||i):ke(t.url,n.files)||t.url;r=ro(e,s,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch,unicodeRange:t.unicodeRange})}return{var:o,value:t,fontFace:r}},Ep=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","emoji","math","fangsong","inherit","initial","unset","revert","revert-layer"]),Rk=t=>Ep.has(t.toLowerCase())||/[\s,'"(]/.test(t.trim()),vp=new Set,qa=(t,e)=>{let n=A(),{fontFamily:o}=n,r=e||o,s=mn(r,t);if(s!==void 0||t==null||t===""||t==="default")return s;if(!C(t))return mn(r);if(!Rk(t))return eo()&&!vp.has(t)&&(vp.add(t),globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(`[scratch] fontFamily \`${t}\` is not a font family key of this design system \u2014 rendering the default family. Name a key from designSystem fontFamily, a CSS generic family (\`monospace\`, \`serif\`, \u2026) or a quoted font name (\`"'${t}'"\`).`)),mn(r)},Op=t=>{let e=t.trim(),n=e.replace(/^(['"])(.*)\1$/,"$2").trim(),o=n.replace(/\s+/g," ").toLowerCase();return n!==e&&Ep.has(o)?'"'+o+'"':o},js=(t,e)=>{let n=A(),{fontFamily:o,fontFamilyTypes:r}=n;if(E(t)&&C(t.value)&&C(t.var))return n.useVariable&&(n.cssVars[t.var]=t.value),t;let{value:s,type:i}=t;t.isDefault&&(!t.isSystemFallback||!o.__defaultKey)&&(o.__defaultKey=e),E(s)&&(s=Ss(s));let c=`--${n.varPrefix?n.varPrefix+"-":""}font-family-${e}`,l=p=>p&&!p.startsWith("--"),u=[...s].map(p=>String(p).trim()).filter(l),f=new Set;for(let p of u)for(let g of p.split(","))f.add(Op(g));for(let p of String(r[i]??"").split(",")){let g=p.trim();if(!l(g))continue;let h=Op(g);f.has(h)||(f.add(h),u.push(g))}let d=u.join(", ");return n.useVariable&&(n.cssVars[c]=d),{var:c,value:d,arr:s,type:i,isSystemFallback:!!t.isSystemFallback,isSharedLibrary:!!t.isSharedLibrary}};var Rp=t=>{let e=A(),{typography:n,media:o}=e;for(let r in t){let s=r.slice(0,1)==="@",i=t[r];if(!s)continue;let{mediaRegenerate:a}=t,c=r.slice(1),{type:l,base:u,ratio:f,range:d,subSequence:p,h1Matches:g,unit:h}=t;At(i,{type:l,base:u,ratio:f,range:d,subSequence:p,h1Matches:g,unit:h});let _=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),m=i.unit||h,b=!i.unit&&_.has(h)?"rem":m,x=o[c],D="@media "+(x==="print"?`${x}`:`screen and ${x}`);if(n.templates[D]={fontSize:i.base/n.browserDefault+b},!a){At(i,{sequence:{},scales:{},vars:{}}),Zt(i),so(t,r);continue}At(i,{sequence:{},scales:{},templates:{},vars:{}}),Zt(i),so(t,r)}},Dp=t=>{let e=A();if(t.h1Matches){let n=t.unit,o=Ea(t),{templates:r}=t;for(let s in o){let i=`h${parseInt(s)+1}`,a=r[i];r[i]={fontSize:e.useVariable?`var(${o[s]?.variable})`:`${o[s]?.scaling}${n}`,margin:a?a.margin:0,lineHeight:a?a.lineHeight:t.lineHeight,letterSpacing:a?a.letterSpacing:t.letterSpacing,fontWeight:a?a.fontWeight:900-s*100}}}},Ya=()=>{let t=A(),{typography:e}=t;Zt(e),Dp(e),wn(e),Rp(e)},Za=t=>{let e=A(),{typography:n}=e;return Ye(t,"fontSize",n)};var Xa=t=>{if(!C(t))return;let n=A().shape;if(n)return n[t]!==void 0?n[t]:n[t.toLowerCase()]};var Qa=()=>{let t=A(),{timing:e}=t;Zt(e),wn(e)},he=t=>{let e=A(),{timing:n}=e;return n[t]||n[bs(t)]||t},Qt=(t,e="timing")=>{let n=A(),{timing:o}=n;return Ye(t,e,o)};var Ja=()=>{let t=A(),{fontFamily:e,theme:n,typography:o}=t,r=t.document;return hn(r)?(no(t,"document",r),r=t.document={}):r||(r=t.document={}),At(r,{theme:n.document,fontFamily:mn(e),fontSize:o.base,lineHeight:o.lineHeight})};var nc={document:qt},Ip=new WeakMap,Lp=new WeakMap,Dk=128,Pp=1048576,tc=8192,oc=t=>t.nodeType===1&&t.localName==="symbol"&&t.getAttribute("id"),Np=t=>t.nodeType===8||t.nodeType===3&&!t.textContent.trim(),Ik=(t,e)=>{let n=1,o=t.ownerDocument;if(o&&typeof o.createTreeWalker=="function"){let s=o.createTreeWalker(t,4294967295);for(;s.nextNode();)if(++n>e)return n;return n}let r=[t];for(;r.length;){let s=r.pop().childNodes||[];for(let i=0;i<s.length;i++){if(++n>e)return n;r.push(s[i])}}return n},ec=(t,e)=>{if(typeof t.importNode=="function")return t.importNode(e,!0);let n=e.cloneNode(!0);return typeof t.adoptNode=="function"?t.adoptNode(n):n},Lk=(t,e)=>{if(typeof t.prepend=="function")return t.prepend(e);let n=t.firstChild!==void 0?t.firstChild:t.childNodes&&t.childNodes[0];return typeof t.insertBefore=="function"?t.insertBefore(e,n||null):t.appendChild(e)},Vs=(t,e)=>{let n=A();if(!t){n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("setSVG: val is not defined",e));return}return n.useSvgSprite?Ia(e,t):t},Pk=(t,e=nc)=>{let n=A(),o=Object.keys(t).length?{}:n.svg;for(let r in t)o[r]=t[r];Fp(o,e)},hr=(t,e)=>{let n=A();return n.useIconSprite&&!n.semanticIcons?.[e]?Vs(t,e):t},rc=(t,e=nc)=>{let n=A(),o=Object.keys(t).length?{}:n.icons;for(let r in t)o[r]=t[r];Fp(o,e)},$p=(t,e={isRoot:!0})=>{if(!t||!t.createElementNS)return;let n=t.createElementNS("http://www.w3.org/2000/svg","svg");return e.isRoot&&(n.setAttribute("aria-hidden","true"),n.setAttribute("width","0"),n.setAttribute("height","0"),n.setAttribute("style","position:absolute"),n.setAttribute("id","svgSprite")),n},Mk=t=>{let e=t&&t.defaultView;return e&&typeof e.DOMParser=="function"?e.DOMParser:typeof DOMParser<"u"?DOMParser:null},Bk=(t,e)=>{let n=Mk(t);if(n){let o=`<svg xmlns="http://www.w3.org/2000/svg">${e}</svg>`,s=new n().parseFromString(o,"image/svg+xml");return s.querySelector("parsererror")?null:s.documentElement}return null},Nk=(t,e,n)=>{let o=String(n),r=Lp.get(e),s=r?.entries.get(o);if(s)return r.entries.delete(o),r.entries.set(o,s),s.root;let i=Bk(t,o);if(i||(i=$p(t,{isRoot:!1}),i.innerHTML=o),o.length>Pp)return i;let a=Ik(i,tc);if(a>tc)return i;for(r||(r={entries:new Map,units:0,nodes:0},Lp.set(e,r));r.entries.size>=Dk||r.units+o.length>Pp||r.nodes+a>tc;){let c=r.entries.keys().next().value,l=r.entries.get(c);r.units-=c.length,r.nodes-=l.nodes,r.entries.delete(c)}return r.entries.set(o,{root:i,nodes:a}),r.units+=o.length,r.nodes+=a,i},Mp=t=>{let e=new Map;for(let n of t.children){let o=oc(n);if(!o)continue;let r=e.get(o)||[];r.push(n),e.set(o,r)}return e},$k=t=>t.replace(/["\\\u0000-\u001f\u007f]/g,e=>`\\${e.charCodeAt(0).toString(16)} `),Bp=(t,e,n,o)=>{let r=0,s=e.childElementCount>8?Mp(n):null,i=a=>{if(!s)try{return[...n.querySelectorAll(`symbol[id="${$k(a)}"]`)].filter(c=>c.parentNode===n)}catch{s=Mp(n)}return s.get(a)};for(let a of e.childNodes){if(Np(a))continue;let c=oc(a);if(!c&&o){let f=r++,d=o.nodes[f];if(!d&&o.complete||d?.parentNode===n)continue;let p=ec(t,d||a);n.appendChild(p),o.nodes[f]=p;continue}let l=c&&i(c),u=l&&l[0];if(!u)u=ec(t,a),n.appendChild(u);else if(!u.isEqualNode(a)){let f=ec(t,a);n.replaceChild(f,u),u=f}if(l)for(let f=1;f<l.length;f++)l[f].remove();c&&s&&s.set(c,[u])}},Fp=(t,e=nc)=>{let n=A(),o=e.document||qt;if(!o||!o.documentElement)return n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("To append SVG sprites it should be run in browser environment")),Da(t);let r=o.querySelector("#svgSprite"),s="";for(let d in t)s+=t[d];let i=r||$p(o);if(!i||!i.nodeType)return;let a=d=>Nk(o,i,d),c=a(s),l=Ip.get(i);l||Ip.set(i,l=new WeakMap);let u=l.get(n);if(u||l.set(n,u=new Map),[...c.childNodes].some(d=>!Np(d)&&!oc(d))){let d=[];for(let p in t)d.push(p);for(let p of d){let g=u.get(p);g||u.set(p,g={nodes:[],complete:!1}),Bp(o,d.length===1?c:a(t[p]),i,g),g.complete=!0}}else{Bp(o,c,i);for(let d in t)u.has(d)||u.set(d,{nodes:[],complete:!0})}r||Lk(o.body,i);for(let d in t)n.__svgCache[d]=!0};var sc=(t={})=>{let e=A(),n=e.typography||{},o=e.document||{},r=E(e.reset)?e.reset:e.reset={};if(r[":root"]){let c=r,l=n.templates||{};c.body={...e.useDocumentTheme?Te("document"):{},...l.body},c.h1=l.h1,c.h2=l.h2,c.h3=l.h3,c.h4=l.h4,c.h5=l.h5,c.h6=l.h6}let{body:s,...i}=n.templates||{},a=e.useDocumentTheme?Te("document"):{};if(r.html&&dn(r.html,a),n.unit)for(let c in i){if(c.slice(0,6)!=="@media")continue;let l=i[c];delete i[c],!(!l||!l.fontSize)&&(r[c]||(r[c]={}),r[c].html||(r[c].html={}),r[c].html.fontSize===void 0&&(r[c].html.fontSize=l.fontSize))}if(n.unit){let c=e.media||{};for(let l in n){if(l.charAt(0)!=="@")continue;let u=n[l];if(!u||u.unit===n.unit||!u.unit)continue;let f=u.unit,d=u.base||n.base,p=u.browserDefault||n.browserDefault,g=l.slice(1),h=c[g];if(!h)continue;let _="@media "+(h==="print"?h:"screen and "+h);r[_]||(r[_]={}),r[_].html||(r[_].html={}),r[_].html.fontSize=d/p+f}}return Se(At(r,t),{html:{position:"absolute",width:"100%",height:"100%",top:"0",left:"0",margin:"0",WebkitFontSmoothing:"subpixel-antialiased",textSizeAdjust:"100%",WebkitTextSizeAdjust:"100%",...a,fontSize:n.unit?n.base/n.browserDefault+n.unit:n.browserDefault+"px",fontFamily:o.fontFamily,lineHeight:o.lineHeight},body:{boxSizing:"border-box",height:"100%",margin:0,fontFamily:o.fontFamily,fontSize:n.unit?"1"+e.unit.default:n.base/n.browserDefault+e.unit.default,...i,...s},a:{color:"currentColor"},button:{color:"inherit",font:"inherit",background:"transparent",border:"none",cursor:"pointer",appearance:"none",WebkitAppearance:"none"},"input, select, textarea":{color:"inherit",font:"inherit"},fieldset:{border:0,padding:0,margin:0}},bn)};var Fk=new Set(["fallback"]),ic=new Set,jp=(t,e)=>{ic.has(t)||(ic.add(t),!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&j()&&console.warn(e))},jk=()=>{ic.clear()},Vp=t=>{for(let e in t)delete t[e];return t},ac=()=>{let t=A(),e=E(t.cssSkinVars)?Vp(t.cssSkinVars):t.cssSkinVars={},n=E(t.cssSkinFallback)?Vp(t.cssSkinFallback):t.cssSkinFallback={},o=t.skins;if(!E(o))return e;let r=t.varPrefix?t.varPrefix+"-":"",s=t.color||{},i=t.cssVars||{},a=c=>C(c)&&Object.prototype.hasOwnProperty.call(s,c)?`var(--${r}color-${c})`:c;for(let c in o){let l=o[c];if(!E(l))continue;let u={};for(let f in l){if(Fk.has(f))continue;let d=l[f];if(E(d))for(let p in d){let g=`--${r}theme-${f}-${p}`;t.useVariable!==!1&&!(g in i)&&jp(`${c}/${f}/${p}`,`[scratch] skin "${c}" rewrites theme "${f}" param "${p}", which the theme does not declare \u2014 no element reads ${g}, so the skin changes nothing there. Declare "${p}" on the "${f}" theme (its no-skin value).`),u[g]=a(d[p])}}e[c]=u,C(l.fallback)&&(n[c]=l.fallback)}for(let c in n){let l=n[c];e[l]||(jp(`${c}/fallback/${l}`,`[scratch] skin "${c}" falls back to "${l}", which is not a declared skin \u2014 the reduced-transparency fallback is skipped.`),delete n[c])}return e},Up=(t,e)=>{let n=`[data-skin="${t}"]`;return!e||e===":root"?`:root${n}, ${n}`:`${e}${n}, ${n} ${e}, ${e} ${n}`},Vk=(t,e,n)=>{let o={};if(!E(t))return o;for(let s in t)o[Up(s,n)]=t[s];let r={};for(let s in e||{}){let i=t[e[s]];i&&(r[Up(s,n)]=i)}return Object.keys(r).length&&(o["@media (prefers-reduced-transparency: reduce)"]=r),o};var Wp=/*@__PURE__*/__smblsNs({},{STANDARD_SCHEME_QUERIES:()=>sp,__resetSkinWarnings:()=>jk,appendSVGSprite:()=>Pk,appendSvgIconsSprite:()=>rc,applyDocument:()=>Ja,applyHeadings:()=>Dp,applyReset:()=>sc,applySkins:()=>ac,applySpacingSequence:()=>Fa,applyTimingSequence:()=>Qa,applyTypographySequence:()=>Ya,atSchemes:()=>ao,buildSkinVarStyles:()=>Vk,checkIfBoxSize:()=>$a,colorPairSchemes:()=>Ba,forcedScheme:()=>fr,getColor:()=>z,getFontFamily:()=>qa,getFontSizeByKey:()=>Za,getMediaBorder:()=>Ua,getMediaColor:()=>yt,getMediaTheme:()=>Te,getSafeInk:()=>gp,getSafeInkInfo:()=>pk,getShadow:()=>Va,getShapeByKey:()=>Xa,getSpacingBasedOnRatio:()=>pe,getSpacingByKey:()=>gt,getTheme:()=>Ak,getTimingByKey:()=>Qt,getTimingFunction:()=>he,inForcedColors:()=>sr,isForcedColorsQuery:()=>ir,isIntendedSystemColorWord:()=>ar,isPlainColor:()=>io,literalPairCompound:()=>ur,literalSchemeMap:()=>Cn,quietColorProbe:()=>cr,resolveBorderValue:()=>Vt,resolveColorRgb:()=>lr,resolveColorsInGradient:()=>lo,resolveShadowNonColorWord:()=>$s,resolveShadowValue:()=>dr,runThroughMedia:()=>Rp,schemeGuardSelector:()=>ap,schemeMediaQuery:()=>ip,setAdaptiveSchemeVar:()=>co,setColor:()=>kn,setFont:()=>Ka,setFontFamily:()=>js,setGradient:()=>Ns,setMediaTheme:()=>Fs,setSVG:()=>Vs,setShadow:()=>fo,setSvgIcon:()=>hr,setTheme:()=>Ga,splitSpacedValue:()=>ja});var zp=(t,e)=>Ua(t,e),Hp=t=>{if(C(t))return gn.test(t)?t:t.split(/\s+/).map(e=>{if(e=e.trim(),!e)return"";if(ut(e))return`var(${e})`;if(/^\d/.test(e)||e.includes("px")||e==="0")return e;let n=z(e);return we(n)?n:e}).join(" ")},Gp=(t,e)=>Va(t,e),lc=(t,e)=>{if(!C(t))return;let n=A();if(!n.useVariable){let o=Uk(t,e,n);if(o!==void 0)return o}return cc(t,e)},Uk=(t,e,n)=>ur(t,e==="auto"?null:e,n,{commas:!0,resolve:cc,resolveScheme:(o,r)=>cc(r(s=>z(s,"@"+o,n)),null)}),cc=(t,e)=>_n(t,zk,Wk,e),Wk={commas:!0,keywords:new Set(["inset","none"])},zk=(t,e)=>{if(!we(z(t)))return $s(t);let n=yt(t,e);return E(n)?Object.values(n).filter(o=>o.includes(": "+e))[0]:n},Kp=(t,e)=>{if(!C(t))return;let n=A();return Pe(t).map(o=>{let r=o.trim();if(ut(r))return`var(${r})`;if(/^var\(/.test(r)||r.includes("url"))return r;if(n.gradient?.[r]){let s=yt(r,e);if(C(s))return s;if(E(s)){for(let i in s)if(C(s[i]))return s[i]}return r}return r.includes("gradient")?lo(r,e):r.includes("/")||r.startsWith("http")||r.includes(".")&&!vt(r)?`url(${r})`:r}).join(", ")},fc=new Set(["auto","cover","contain"]),uc=new Set(["center","top","bottom","left","right"]),Hk=(t,e,n,o)=>{if(n.has(t))return t;let r=Sn(()=>pe(o,e,t));return r&&r[e]!==void 0?r[e]:t},gr=(t,e,n,o)=>C(t)?Pe(t).map(r=>W(r.trim()).map(s=>Hk(s,e,n,o)).join(" ")).join(", "):t,qp=t=>C(t)&&W(t).map(e=>gt(e,"gap").gap).join(" "),Yp=t=>{if(!C(t))return t;let e=A();return W(t).map(n=>Be.test(n)?rr(n,e.spacing):n).join(" ")},Gk=t=>{if(!C(t))return;let e=t.split(" ");return e.length?e.map(n=>ut(n)?`var(${n})`:n.length<3||n.includes("ms")?Qt(n).timing||n:he(n)?he(n):n).join(" "):t},dc=(t,e,n)=>{if(C(t))return t.split(",").map(o=>Qt(o).timing||o).join(",")},Zp=t=>{if(!C(t))return;let e=t.split(",");if(e.length)return e.map(Gk).join(",")};function rt(t,e,n={},o={}){let r=Ke.call(this,e||n[t]);if(r==null)return;let s;if(C(r)){if(/^(?:env|var)\(/.test(r.trim()))return{[t]:r};if(r.includes("(")){let c=xn(r);s=c[0],r=c[1]}let i=n.scaleBoxSize,a=$a(t);!i&&a&&!o.ratio&&(r=ja(r))}return o.ratio?pe(n,t,r,s):gt(r,t,void 0,s)}var I=(t,e=null,n)=>rt(t,e,n,{ratio:!0}),Kk=(t,e,n)=>C(t)?W(t).map(o=>Be.test(o)?pe(e,n,o)[n]:o).join(" "):t,Tn=(t,e,n,o="borderRadius")=>{if(C(t))return{[o]:W(t).map(r=>{let s=Xa(r);return s!==void 0?Kk(s,e,n):pe(e,n,r)[n]}).join(" ")}};var uo="__smblsThemeRootOwner",po=t=>{let e=t&&t.__prefersListener,n=t&&t.__prefersMq;if(e&&n)try{typeof n.removeEventListener=="function"?n.removeEventListener("change",e):typeof n.removeListener=="function"&&n.removeListener(e)}catch{try{n.removeListener(e)}catch{}}t&&(t.__prefersListener=null,t.__prefersMq=null)},Qp=(t,e,n)=>{if(!(!t||!e)){po(t),t.__prefersListener=n,t.__prefersMq=e;try{e.addEventListener("change",n)}catch{e.addListener(n)}}},qk=(t,e)=>{let n=A(),{cssVars:o}=n,r=e.startsWith("--")?e:`--${e}`;return o[r]=t,t},Ot=t=>t,Yk=(t,e)=>{if(C(t)||to(t)){let n=A();if(n.cssVars&&e){let o=n.varPrefix?n.varPrefix+"-":"";n.cssVars[`--${o}size-${e}`]=t}}return t},Xp={color:kn,gradient:Ns,font:Ka,fontFamily:js,fontfamily:js,theme:Ga,icons:hr,semanticIcons:Ot,semanticicons:Ot,svg:Vs,svgData:Ot,typography:Ot,shadow:fo,spacing:Ot,media:Ot,grid:Ot,class:Ot,timing:Ot,reset:Ot,unit:Ot,animation:Ot,vars:qk,sizes:Yk,shape:Ot,skins:Ot,viewTransition:Ot},Zk=(t,e,n,o)=>{no(t,n,e);let r={};for(let s of o)t[s]===e&&(t[s]=r);return t.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("[scratch] design-system family",n,"resolved to a host object; parked it and allocated a plain bucket")),r},Xk=(t,e,n)=>{let o=A(),r=Sa(t),s=r.toLowerCase(),i=o[r]||o[s]||o[t],a=hn(i)?Zk(o,i,s,[r,s,t]):i,c=Xp[r]||Xp[s];if(c)try{let l=c(e,n);return a&&(a[n]=l),a}catch(l){o.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("Error setting",s,"value",e,n,l))}if(!c){let l=a||(o[s]={});return l[n]=e,l}o.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("Can not find",s,"method in scratch"))},Qk=(t,e)=>{let n=A(),o=t.toLowerCase();if(hn(e))return no(n,o,e),n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("[scratch] ignoring host object passed as the",o,"design-system family")),n[o]||n[t];if(e==null)return n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("[scratch] skipping empty design-system family",o)),n[o]||n[t];let r=Object.keys(e).sort((s,i)=>{let a=E(e[s])||K(e[s])?1:0,c=E(e[i])||K(e[i])?1:0;return a-c});if(o==="color"){let s=n[o]||(n[o]={});for(let i of r)i in s||(s[i]=e[i])}return r.forEach(s=>{try{return Xk(o,e[s],s)}catch(i){n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("Error setting",o,"value",e[s],s,i))}}),n[o]||n[t]},hP=(t,e)=>{let n=e||A();n.globalTheme=t;let r=ds(n)||(typeof document<"u"?document:null),s=r&&r.defaultView||(typeof window<"u"?window:null);if(r){let a=n.themeRoot||r.documentElement,c=t&&t!=="auto";if(a[uo]=n,c)po(n),a.setAttribute("data-theme",t),n.resolvedTheme=t,t==="dark"||t==="light"?a.style.colorScheme=t:a.style.colorScheme="light dark";else if(s&&s.matchMedia){let l=f=>{let d=f.matches?"dark":"light";a.setAttribute("data-theme",d),n.resolvedTheme=d},u=s.matchMedia("(prefers-color-scheme: dark)");l(u),a.style.colorScheme="light dark",Qp(n,u,l)}else po(n),a.setAttribute("data-theme","light"),n.resolvedTheme="light",a.style.colorScheme="light"}let i=n.varPrefix?`--${n.varPrefix}-theme-`:"--theme-";for(let a in n.cssVars)a.startsWith(i)&&delete n.cssVars[a];for(let a in n.cssMediaVars)delete n.cssMediaVars[a];if(r&&n.cssVars){let a=n.scopeSelector||":root",c=r.styleSheets;for(let l=0;l<c.length;l++)try{let u=c[l].cssRules;for(let f=0;f<u.length;f++)if(u[f].selectorText===a){for(let d in n.cssVars)u[f].style.setProperty(d,n.cssVars[d]);return n}}catch{}}return n},Jk=t=>{let n=ds(t)||(typeof document<"u"?document:null),o=n&&n.defaultView||(typeof window<"u"?window:null),r=n&&(t.themeRoot||n.documentElement);if(r&&typeof r.setAttribute=="function")if(t.globalTheme&&t.globalTheme!=="auto")po(t),r.setAttribute("data-theme",t.globalTheme),t.resolvedTheme=t.globalTheme,r[uo]=t,t.globalTheme==="dark"||t.globalTheme==="light"?r.style.colorScheme=t.globalTheme:r.style.colorScheme="light dark";else if(r[uo]&&r[uo]!==t&&r.hasAttribute("data-theme"))po(t),t.resolvedTheme=r.getAttribute("data-theme");else if(o&&o.matchMedia){let i=c=>{let l=c.matches?"dark":"light";r.setAttribute("data-theme",l),t.resolvedTheme=l},a=o.matchMedia("(prefers-color-scheme: dark)");i(a),r.style.colorScheme="light dark",r[uo]=t,Qp(t,a,i)}else po(t),r.setAttribute("data-theme","light"),t.resolvedTheme="light",r.style.colorScheme="light",r[uo]=t},t0={},gP=(t,e=t0)=>{let n=e.config||A(),{version:o,verbose:r,useVariable:s,useReset:i,useSvgSprite:a,useFontImport:c,useIconSprite:l,globalTheme:u,themeRoot:f,useDocumentTheme:d,useDefaultConfig:p,semanticIcons:g,hoverMedia:h,focusableRing:_,files:m,assets:b,...x}=t;e.newConfig&&(n=Gd(e.newConfig)),pn(x.document)&&(n.__domDocument=x.document,delete x.document),pn(n.document)&&(n.__domDocument||(n.__domDocument=n.document),n.document={}),m!==void 0&&(n.files=m),b!==void 0&&(n.assets=b),r!==void 0&&(n.verbose=r),s!==void 0&&(n.useVariable=s),i!==void 0&&(n.useReset=i),c!==void 0&&(n.useFontImport=c),a!==void 0&&(n.useSvgSprite=a),l!==void 0&&(n.useIconSprite=l),d!==void 0&&(n.useDocumentTheme=d),u!==void 0&&(n.globalTheme=u),f!==void 0&&(n.themeRoot=f),t.useThemeSuffixedVars!==void 0&&(n.useThemeSuffixedVars=t.useThemeSuffixedVars),p!==void 0&&(n.useDefaultConfig=p),g!==void 0&&(n.semanticIcons=g),h!==void 0&&(n.hoverMedia=h),_!==void 0&&(n.focusableRing=_),n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.log(n)),Jk(n),n.__svgCache||(n.__svgCache={}),Ps(x);let D=Object.keys(x).filter(k=>!k.startsWith("__")),y=new Set(D);D.forEach(k=>{let v=k.toLowerCase();v!==k&&y.has(v)&&Se(x[v],x[k],bn)});let S=new Set;if(D.forEach(k=>{let v=k.toLowerCase(),R=v!==k&&y.has(v)?v:k;S.has(R)||(S.add(R),Qk(R,x[R]))}),n.varPrefix&&(n.typography&&(n.typography.varPrefix=n.varPrefix),n.spacing&&(n.spacing.varPrefix=n.varPrefix),n.timing&&(n.timing.varPrefix=n.varPrefix)),x.typography)try{Ya()}catch(k){n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("Error applying typography sequence",k))}if(x.spacing)try{Fa()}catch(k){n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("Error applying spacing sequence",k))}if(x.timing)try{Qa()}catch(k){n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("Error applying timing sequence",k))}try{ac()}catch(k){n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("Error applying skins",k))}Ja();let w=sc();return w&&(n.reset=w),n};var mP=1,e0=["font","files","assets","themeRoot"],n0=new Set(e0),ho="$smbls",Us=t=>{if(t===null||typeof t!="object")return!1;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null},o0=t=>t.startsWith("__")||n0.has(t),yP=t=>{if(!Us(t))return null;let e=new Map,n=!1,o=s=>{if(n)return;if(s===void 0)return{[ho]:"u"};if(s===null||typeof s=="string"||typeof s=="boolean")return s;if(typeof s=="number")return Number.isFinite(s)&&!Object.is(s,-0)?s:{[ho]:"n",v:Object.is(s,-0)?"-0":String(s)};if(typeof s!="object"){n=!0;return}let i=e.get(s);if(i!==void 0)return{[ho]:"r",i};if(Array.isArray(s)){e.set(s,e.size);let c=new Array(s.length);for(let l=0;l<s.length;l++){if(!(l in s)){n=!0;return}c[l]=o(s[l])}return c}if(!Us(s)||Object.prototype.hasOwnProperty.call(s,ho)){n=!0;return}e.set(s,e.size);let a={};for(let c of Object.keys(s))a[c]=o(s[c]);return a},r={};for(let s of Object.keys(t))if(!o0(s)&&(r[s]=o(t[s]),n))return null;return r},r0=(t,e)=>{let n=Object.keys(e),o=0;for(let r in t){if(o===n.length)return!0;if(r!==n[o])return!1;o++}return o===n.length},bP=(t,e)=>{let n=[],o=(s,i)=>{if(s===null||typeof s!="object")return s;if(Array.isArray(s)){let l=new Array(s.length);n.push(l);for(let u=0;u<s.length;u++)l[u]=o(s[u]);return l}let a=s[ho];if(typeof a=="string"){if(a==="u")return;if(a==="n")return s.v==="-0"?-0:Number(s.v);if(a==="r")return n[s.i]}let c=i;if(c&&!r0(s,c))for(let l of Object.keys(c))delete c[l];else c||(c={});n.push(c);for(let l in s)c[l]=o(s[l]);return c},r=new Set;for(let s in t){let i=t[s],a=e[s],c=Us(a)&&!r.has(a)&&Us(i)&&typeof i[ho]!="string"?a:null;c&&r.add(c);let l=o(i,c);l!==a&&(e[s]=l)}return e};var L=(t,e)=>e.split(" ").map(n=>t+"-"+n),gc="top right bottom left",_c=gc+" block block-start block-end inline inline-start inline-end",It="start end",$e="width style color",Ws=t=>L(t,_c),s0=(()=>{let t=L("border","width style color image");for(let e of _c.split(" "))t.push("border-"+e,...L("border-"+e,$e));return t})(),Jp=t=>[...L("border-"+t,$e+" start end"),...L("border-"+t+"-start",$e),...L("border-"+t+"-end",$e)],tt={animation:L("animation","name duration timing-function delay iteration-count direction fill-mode play-state timeline range range-start range-end"),background:L("background","image position position-x position-y size repeat origin clip attachment color"),border:s0};for(let t of["width","style","color"])tt["border-"+t]=_c.split(" ").map(e=>"border-"+e+"-"+t);for(let t of gc.split(" "))tt["border-"+t]=L("border-"+t,$e);tt["border-block"]=Jp("block");tt["border-inline"]=Jp("inline");Object.assign(tt,{"border-image":L("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:L("column","width count"),"column-rule":L("column-rule",$e),container:L("container","name type"),"contain-intrinsic-size":L("contain-intrinsic","width height"),flex:L("flex","grow shrink basis"),"flex-flow":L("flex","direction wrap"),font:[...L("font","style variant weight stretch size"),"line-height",...L("font","family size-adjust kerning feature-settings variation-settings optical-sizing")],gap:["row-gap","column-gap"],grid:L("grid","template template-rows template-columns template-areas auto-rows auto-columns auto-flow"),"grid-template":L("grid-template","rows columns areas"),"grid-area":L("grid","row column row-start row-end column-start column-end"),"grid-row":L("grid-row",It),"grid-column":L("grid-column",It),inset:[...gc.split(" "),...L("inset","block block-start block-end inline inline-start inline-end")],"inset-block":L("inset-block",It),"inset-inline":L("inset-inline",It),"list-style":L("list-style","type position image"),margin:Ws("margin"),"margin-block":L("margin-block",It),"margin-inline":L("margin-inline",It),mask:L("mask","image mode repeat position clip origin size composite"),offset:L("offset","position path distance rotate anchor"),outline:L("outline",$e),overflow:L("overflow","x y"),"overscroll-behavior":L("overscroll-behavior","x y"),padding:Ws("padding"),"padding-block":L("padding-block",It),"padding-inline":L("padding-inline",It)});for(let t of["content","items","self"])tt["place-"+t]=["align-"+t,"justify-"+t];Object.assign(tt,{"scroll-margin":Ws("scroll-margin"),"scroll-padding":Ws("scroll-padding"),"text-decoration":L("text-decoration","line style color thickness"),"text-emphasis":L("text-emphasis","style color"),transition:L("transition","property duration timing-function delay behavior")});var i0="block-start block-end inline-start inline-end".split(" ");for(let t of i0)tt["border-"+t]=L("border-"+t,$e);for(let t of["block","inline"])for(let e of $e.split(" "))tt["border-"+t+"-"+e]=L("border-"+t,It.split(" ").map(n=>n+"-"+e).join(" "));Object.assign(tt,{"animation-range":L("animation-range",It),"background-position":L("background-position","x y"),"font-variant":L("font-variant","alternates caps east-asian emoji ligatures numeric position"),"font-synthesis":L("font-synthesis","weight style small-caps"),marker:L("marker","start mid end"),"position-try":L("position-try","order fallbacks"),"scroll-margin-block":L("scroll-margin-block",It),"scroll-margin-inline":L("scroll-margin-inline",It),"scroll-padding-block":L("scroll-padding-block",It),"scroll-padding-inline":L("scroll-padding-inline",It),"scroll-timeline":L("scroll-timeline","name axis"),"view-timeline":L("view-timeline","name axis inset"),"text-box":L("text-box","trim edge"),"text-wrap":L("text-wrap","mode style"),"white-space":["white-space-collapse","text-wrap-mode"]});tt.font.push("font-language-override");var Ne=t=>"corner-"+t+"-shape";tt["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(Ne);Object.assign(tt,{"corner-top-shape":["top-left","top-right"].map(Ne),"corner-right-shape":["top-right","bottom-right"].map(Ne),"corner-bottom-shape":["bottom-left","bottom-right"].map(Ne),"corner-left-shape":["top-left","bottom-left"].map(Ne),"corner-block-start-shape":["start-start","start-end"].map(Ne),"corner-block-end-shape":["end-start","end-end"].map(Ne),"corner-inline-start-shape":["start-start","end-start"].map(Ne),"corner-inline-end-shape":["start-end","end-end"].map(Ne)});for(let t in tt){let e=tt[t],n=new Set(e);for(let o=0;o<e.length;o++){let r=tt[e[o]];if(r)for(let s of r)n.has(s)||(n.add(s),e.push(s))}}var Ae={};for(let t in tt)for(let e of tt[t])(Ae[e]||(Ae[e]=[])).push(t);var pc=new Map,th=t=>{let e=pc.get(t);if(e!==void 0)return e;pc.set(t,0),e=0;let n=Ae[t];if(n)for(let o=0;o<n.length;o++)e=Math.max(e,th(n[o])+1);return pc.set(t,e),e};function zs(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(Ae,e)?th(e):0}var a0=/^(?: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)$/,eh=/^(?:border(?:-(?:top|right|bottom|left|block|inline)(?:-(?:start|end))?)?|outline|column-rule)$/,c0=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","auto"]),hc=t=>W(String(t).replace(/\s*!important\s*$/,""));function Hs(t,e,n){let o=tt[t];if(!o||o.indexOf(n)===-1)return!1;if(a0.test(t))return!0;if(!eh.test(t)||typeof e=="function"||e==null||n.indexOf("border-image")===0)return!1;let r=hc(e);return r.length>=3?!0:/-style$/.test(n)&&r.some(s=>c0.has(s.toLowerCase()))}var l0=new Set(["thin","medium","thick"]),f0=t=>/^[+-]?\.?\d/.test(t)||l0.has(t.toLowerCase())||/^(?:calc|min|max|clamp)\(/i.test(t)||/^var\(--(?:[a-zA-Z0-9]{1,6}-)?spacing-/.test(t),u0=t=>t==="transparent"||t==="currentcolor"||Object.prototype.hasOwnProperty.call(ws,t),d0=t=>Qo(t)||/^var\(--(?:(?!theme-|shadow-)[a-zA-Z0-9]{1,6}-)?color-/.test(t)||u0(t.toLowerCase()),p0=/-(width|style|color)$/;function mc(t,e,n){if(Hs(t,e,n))return!0;let o=tt[t];if(!o||o.indexOf(n)===-1||typeof e=="function"||e==null)return!1;if(eh.test(t)){if(n.indexOf("border-image")===0)return!1;let r=p0.exec(n);if(!r)return!1;let s=hc(e);return s.length===1&&/^(?:0|none)$/i.test(s[0])?r[1]!=="color":r[1]==="width"&&s.some(f0)}if(t==="background"&&n==="background-color"){let r=hc(e);return r.length===1&&d0(r[0])}return!1}var yr=new Map,h0=null,yc=null,g0=null;function _0(t){t.batchAtomicCss&&(yc=t.batchAtomicCss),t.compoundCssClass&&(g0=t.compoundCssClass)}var m0=new Set,oh=t=>!!(t&&t.documentElement&&typeof t.createElement=="function"&&t.head!==void 0);function y0(t){try{let e=A();e&&(e.__domDocument=t)}catch{}t&&m0.add(t)}function br(){try{let t=A();if(t){if(oh(t.__domDocument))return t.__domDocument;if(oh(t.document))return t.document}}catch{}return typeof document<"u"?document:null}var Lt={atomic:0,variable:0,global:0,keyframes:0,duplicate:0,invalid:0,dropped:0};function _h(){return{...Lt}}function b0(){for(let t in Lt)Lt[t]=0;Zs=!1}var Zs=!1,qs=(t,e)=>`${t} ${e}${t===1?"":"s"}`;function S0(t){let e=Date.parse(t);if(!isFinite(e))return"";let n=Math.floor((Date.now()-e)/864e5);return n<1?" (today)":` (${qs(n,"day")} ago)`}function x0(){try{let t=P0();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 w0(t,e){if(Zs)return!1;Zs=!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 ${qs(Lt.variable,"variable rule")} and ${qs(Lt.atomic,"atomic rule")}, while the design system held ${qs(e,"CSS variable")}.
18
+ src: ${i};`},ro=(t,e,n,o)=>`@font-face {${ma(t,e,n,o)}
19
+ }`,tr=(t,e,n)=>Object.keys(e).map(r=>{let{url:s,fontWeight:i,fontStyle:a,fontDisplay:c,fontStretch:l,unicodeRange:u}=e[r],f=Array.isArray(s)?s.map(d=>ke(d,n)||d):ke(s,n)||s;return ma(t,f,i,{fontStyle:a,fontDisplay:c,fontStretch:l,unicodeRange:u})}),Jx=t=>Object.keys(t).map(n=>tr(n,t[n].value)),jd=(t,e,n)=>{if(e&&e.isVariable){let s=ke(e.url,n)||e.url;return As(s)?vs(s):ro(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap",unicodeRange:e.unicodeRange})}if(e[0])return tr(t,e,n).map(Fd);let r=Array.isArray(e.url)?e.url.map(s=>ke(s,n)||s):ke(e.url,n)||e.url;return ro(t,r,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch,unicodeRange:e.unicodeRange})},tw=(t,e)=>Object.keys(t).map(o=>jd(o,t[o].value,e));var yn={"minor-second":1.067,"major-second":1.125,"minor-third":1.2,"major-third":1.25,"perfect-fourth":1.333,"augmented-fourth":1.414,"perfect-fifth":1.5,"minor-sixth":1.6,phi:1.618,"major-sixth":1.667,"square-root-3":1.732,"minor-seventh":1.778,"major-seventh":1.875,octave:2,"square-root-5":2.23,"major-tenth":2.5,"major-eleventh":2.667,"major-twelfth":3,pi:3.14,"double-octave":4};var ew={default:"em"};var nw={browserDefault:16,base:16,type:"font-size",ratio:yn["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},ya=nw;var ow={};var rw={},sw={"sans-serif":"Helvetica, Arial, sans-serif",serif:"Times New Roman, Georgia, serif",monospace:"Courier New, monospace"},iw={};var aw={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var cw={base:ya.base,type:"spacing",ratio:yn.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},lw=cw;var fw={},uw={};var dw={};var pw={};var hw={},gw={};var _w={default:150,base:150,type:"timing",ratio:yn["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},mw=_w;var yw={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},bw={screenXXL:[2560,1440],screenXL:[2240,1260],screenL:[1920,1024],screenM:[1680,1024],screenS:[1440,720],tabletL:[1366,926],tabletM:[1280,768],tabletS:[1024,768],mobileL:[768,375],mobileM:[560,768],mobileS:[480,768],mobileXS:[375,768]};var Sw={};var xw={},Vd={},ww=Vd;var kw={};var Cw={},Tw=Cw;var Aw={};var Os=/*@__PURE__*/__smblsNs({},{animation:()=>Sw,breakpoints:()=>yw,class:()=>Aw,color:()=>fw,devices:()=>bw,document:()=>vw,font:()=>ow,fontFace:()=>iw,fontFamily:()=>rw,fontFamilyTypes:()=>sw,gradient:()=>uw,grid:()=>Tw,icons:()=>hw,media:()=>aw,reset:()=>Ow,semanticIcons:()=>gw,sequence:()=>yn,shadow:()=>pw,shape:()=>Dw,sizes:()=>Rw,skins:()=>Iw,spacing:()=>lw,svg:()=>xw,svgData:()=>Vd,svg_data:()=>ww,templates:()=>kw,theme:()=>dw,timing:()=>mw,typography:()=>ya,unit:()=>ew,vars:()=>Ew,viewTransition:()=>Lw});var vw={};var Ow={},Ew={},Rw={},Dw={},Iw={},Lw={};var Ud={},Wd={},bn=new Set,Es=Os,Rs={},ba=t=>t.replace(/_([a-z])/g,(e,n)=>n.toUpperCase());for(let t in Es){let e=t.toLowerCase();Rs[e]=Es[t];let n=ba(e);n!==e&&(Rs[n]=Es[t]),e!==t&&(Rs[t]=Es[t])}var or={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",cssVars:Ud,cssMediaVars:Wd,CSS_VARS:Ud,CSS_MEDIA_VARS:Wd,cssSkinVars:{},cssSkinFallback:{},_scratchConfig:!0,...Rs},Ds=(t,e)=>{if(!t)return null;if(t.__globalThemeSignal)return St(e)&&t.__globalThemeSignal.set(e),t.__globalThemeSignal;let n=St(e)?e:t.globalTheme,o=ln(St(n)?n:"auto");return Object.defineProperty(t,"globalTheme",{get(){return o.get()},set(r){o.set(r)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"__globalThemeSignal",{value:o,enumerable:!1,configurable:!0,writable:!0}),o},VD=t=>t?Ds(t):null,Is=(t,e)=>{if(!t)return null;if(t.__resolvedThemeSignal)return St(e)&&t.__resolvedThemeSignal.set(e),t.__resolvedThemeSignal;let n=St(e)?e:t.resolvedTheme,o=ln(St(n)?n:null);return Object.defineProperty(t,"resolvedTheme",{get(){return o.get()},set(r){o.set(r)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"__resolvedThemeSignal",{value:o,enumerable:!1,configurable:!0,writable:!0}),o},UD=t=>t?Is(t):null;Ds(or);Is(or);var er=Yt(or),de={active:"0",0:or},WD=t=>(St(t)&&(de.active=t),de[t||de.active]),nr=[],dt=t=>{t&&t._scratchConfig&&nr.push(t)},ot=()=>{nr.pop()},A=t=>nr.length?nr[nr.length-1]:de[t||de.active]||or,zd=t=>{if(E(t))return de.active="1",de[1]=Se(t,Yt(er),bn),Ls(de[1]),Ds(de[1]),Is(de[1]),t},Pw=["useReset","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig"],Mw=["useVariable","globalTheme","verbose"],Bw=[["fontfamily","fontFamily","font_family"],["fontfamilytypes","fontFamilyTypes"],["semanticicons","semanticIcons"],["svgdata","svgData","svg_data"]],Ls=t=>{for(let e of Bw){let n;for(let o of e){let r=t[o];E(r)&&(n=n?Se(n,r,bn):r)}if(n)for(let o of e)E(t[o])&&(t[o]=n)}},Hd=t=>(t.cssVars={},t.cssMediaVars={},t.CSS_VARS=t.cssVars,t.CSS_MEDIA_VARS=t.cssMediaVars,t.cssSkinVars={},t.cssSkinFallback={},t._scratchConfig=!0,Ls(t),Ds(t),Is(t),t),zD=()=>Hd(Yt(er)),HD=(t,e,{cleanBase:n=!1}={})=>{let o=n?null:A(),r=Yt(!n&&o&&o._scratchConfig?o:er);for(let i of Pw)delete r[i];for(let i of Mw)Object.prototype.hasOwnProperty.call(er,i)?r[i]=er[i]:delete r[i];let s=Hd(Se(e||{},r,bn));return t&&(de[t]=s),s};var Be=/^-?[A-Z][0-9]?$/,Sa=0,Sn=t=>{Sa++;try{return t()}finally{Sa--}},Ce={"-6":"U","-5":"V","-4":"W","-3":"X","-2":"Y","-1":"Z",0:"A",1:"B",2:"C",3:"D",4:"E",5:"F",6:"G",7:"H",8:"I",9:"J",10:"K",11:"L",12:"M",13:"N",14:"O",15:"P",16:"Q",17:"R",18:"S",19:"T"},Nw=Object.keys(Ce).reduce((t,e)=>(t[Ce[e]]=Number(e),t),{}),$w=(t,e,n,o)=>{if(Be.test(e)){if(t&&Object.keys(t).length)return t[e]!==void 0;let r=Nw[e.slice(0,1)];if(r===void 0)return!1;let{range:s}=n;return!Array.isArray(s)||s.length<2?!0:r>=Math.min(s[0],s[1])&&r<=Math.max(s[0],s[1])}if(o&&Object.keys(o).length)return!1},wa=(t,e)=>{let{key:n,variable:o,value:r,scaling:s,index:i,scalingVariable:a}=t;e.sequence[n]={key:n,decimal:~~(r*100)/100,val:~~r,scaling:s,index:i,scalingVariable:a,variable:o},e.scales[n]=s;let c=Gd.has(e.unit)?"rem":e.unit;e.vars[o]=s+c},xn=t=>{if(!t.includes("("))return t;let e=t.trim(),n=e.indexOf("("),o=e.slice(0,n),r=0,s=-1;for(let i=n;i<e.length;i++){let a=e[i];if(a==="(")r++;else if(a===")"&&(r--,r===0)){s=i;break}}return s===-1||/\s/.test(o)||e.slice(s+1).trim()!==""?[void 0,t]:[o,e.slice(n+1,s)]},xa="\0",Fw=(t,e)=>{let n="",o=0,r="";for(let s of t){if(o===0&&s!=="("){n+=s;continue}r+=s,s==="("?o++:s===")"&&(o--,o===0&&(n+=xa+e.length+xa,e.push(r),r=""))}return n+r},jw=(t,e)=>t.indexOf(xa)===-1?t:t.replace(/\u0000(\d+)\u0000/g,(n,o)=>e[Number(o)]),Vw=/^(calc|min|max|clamp)\((.*)\)$/,Uw=(t,e)=>{let n=Vw.exec(t);return n?`${n[1]}(${va(n[2],e)})`:t.indexOf("(")!==-1?t:rr(t,e)},Gd=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),ka=(t,e)=>{let{base:n,type:o,unit:r}=e,s=Gd.has(r)?"rem":r,i=(qo(s)?1:n)+s;if(t===0)return i;let c="--"+(e.varPrefix?e.varPrefix+"-":"")+(o&&o.replace(".","-")),l=`${c}-ratio`;if(t>0){let u=Ce[t-1];return`calc(var(${c}-${u}) * var(${l}))`}if(t<0){let u=Ce[t+1],f=Math.abs(t),d=Math.pow(Kd,2*f),p=Ce[f];return p?`max(calc(var(${c}-${u}) / var(${l})), calc(var(${c}-${p}) / ${d.toFixed(4)}))`:`calc(var(${c}-${u}) / var(${l}))`}},qd=(t,e,n,o)=>{let{type:r}=o,i=t===2&&e.length===2?t+1:t,l=`${"--"+(o.varPrefix?o.varPrefix+"-":"")+(r&&r.replace(".","-"))}-sub-ratio-`;return`calc(var(${n}) * var(${l+i}))`},Ca=(t,e)=>{let o=(t*e-t)/1.618,r=t*e-o,s=t+o,i=(r+s)/2;return[r,i,s]},Ta=(t,e)=>Ca(t,e).map(n=>n/t),Aa=(t,e)=>{let{key:n,base:o,value:r,ratio:s,variable:i,index:a}=t,l=~~(r*s)-~~r,u,[f,d,p]=Ca(r,s);l>16?u=[f,d,p]:u=[f,p],u.forEach((g,h)=>{let _=~~(g/o*1e3)/1e3,m=i+(h+1),b=a+(h+1)/10,x=qd(h+1,u,i,e),D={key:n+(h+1),variable:m,value:g,scaling:_,scalingVariable:x,index:b};wa(D,e)})},Kd=1.618,Ww=(t,e,n)=>{if(t>=0)return e*Math.pow(n,t);let o=Math.abs(t),r=e*Math.pow(n,t),s=e*Math.pow(n,o)/Math.pow(Kd,2*o);return Math.max(r,s)},Zt=t=>{let{type:e,base:n,ratio:o,range:r,subSequence:s}=t,i=Math.abs(r[0])+Math.abs(r[1]),c="--"+(t.varPrefix?t.varPrefix+"-":"")+(e&&e.replace(".","-"))+"-";for(let l=0;l<=i;l++){let u=r[1]-l,f=Ce[u],d=Ww(u,n,o),p=~~(d/n*100)/100,g=c+f,h=ka(u,t),_={key:f,variable:g,value:d,base:n,scaling:p,scalingVariable:h,ratio:o,index:u};wa(_,t),s&&Aa(_,t)}return t},zw=(t,e=0)=>{let{type:n,base:o,ratio:r,subSequence:s}=t,i=C(e)?e:Ce[e],a=C(e)?Object.entries(Ce).find(([,_])=>_===e)?.[0]:e;if(!i)return globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(`Position ${e} is out of range in numToLetterMap`),null;let c={sequence:{},scales:{},vars:{},...t},l=o*Math.pow(r,a),u=~~(l/o*100)/100,p="--"+(t.varPrefix?t.varPrefix+"-":"")+(n&&n.replace(".","-"))+"-"+i,g=ka(a,t),h={key:i,variable:p,value:l,base:o,scaling:u,scalingVariable:g,ratio:r,index:a};return wa(h,c),s&&Aa(h,c),c},Ps=(t,e)=>{if(!t||!C(e)||!e)return;let n=t[e]||t[e.toLowerCase()];if(n!==void 0)return e.charCodeAt(0)===45?`calc(${n} * -1)`:n;if(e.charCodeAt(0)!==45||e.length<2)return;let o=e.slice(1),r=t[o]||t[o.toLowerCase()];if(r!==void 0)return`calc(${r} * -1)`},rr=(t="A",e)=>{let n=A(),{unit:o}=n;if(C(t)&&ut(t))return`var(${t})`;if(C(t)&&/^(?:env|var|calc|min|max|clamp)\(/.test(t.trim()))return t;if(C(t)){let y=Ps(n.sizes,t);if(y!==void 0)return y}let{sequence:r,unit:s=o.default,useVariable:i}=e,a=/^-?[a-zA-Z]/i,c=a.test(t);if(ca(t)||!c||["none","auto","max-content","min-content","fit-content","inherit","initial","unset","revert","revert-layer"].includes(t))return t;let d=`--${e.varPrefix?e.varPrefix+"-":""}${Cd(e.type.replace(".","-"))}-`,p=t.toUpperCase(),g=p.slice(0,1)==="-"?"-":"",h=g?p.slice(1):p,_="";h.includes("_")&&(_="_"+h.split("_")[1].toLowerCase(),h=h.split("_")[0]);let m=y=>a.test(y)?`var(${d}${y}${_})`:y;if(h.includes("+")){let[y,S]=h.split("+"),w=`${m(y)} + ${m(S)}`;return g?`calc((${w}) * -1)`:`calc(${w})`}else if(h.includes("*")){let[y,S]=h.split("*"),w=`${m(y)} * ${m(S)}`;return g?`calc((${w}) * -1)`:`calc(${w})`}else if(h.includes("-")){let[y,S]=h.split("-"),w=`${m(y)} - ${m(S)}`;return g?`calc((${w}) * -1)`:`calc(${w})`}!r[h]&&h.length===2&&(n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(h,"- value is not found because `subSequence` is set to false")),h=h.slice(0,1));let b=r?r[h]:null,x=!!(i||n.useVariable);if((x?$w(r,h,e,n.sizes):!!b)===!1){if(Sa>0)return;if(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("can't find",r,h),!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&j())throw new Error(`[smbls] Unresolvable design-system token "${t}"`+(e.type?` for sequence "${e.type}"`:"")+" \u2014 not a registered `sizes` name and not a valid spacing/typography/timing sequence letter. The CSS property using it would silently be dropped in production. Register the token in `designSystem/sizes.js` (or the relevant sequence family) or fix the typo.");return}if(x){let y=`var(${d}${h}${_})`;return g?`calc(${y} * -1)`:y}return s==="ms"||s==="s"?g+b.val+s:g+b.scaling+s},va=(t,e)=>{if(!["+","-","*","/",","].filter(i=>t.includes(i+" ")).length)return t;let o=/(\s+-\s+|\s*[+*/,]\s*)/,r=[];return Fw(t,r).split(o).map(i=>{let a=jw(i,r),c=a.trim();return!c||["+","-","*","/",","].includes(c)?a:Uw(c,e)}).join("")},Ye=(t,e,n,o)=>{if(typeof t!="string")return A().verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(e,t,"is not a string")),{[e]:t};if(t==="-"||t==="")return{};if(!o&&t.includes("(")){if(/^(?:env|var)\(/.test(t.trim()))return{[e]:t};let s=xn(t);o=s[0],t=s[1]}return["+","-","*","/",","].filter(s=>t.includes(s+" ")).length?t=va(t,n):t=rr(t,n),{[e]:o?`${o}(${t})`:t}},Yd=(t,e)=>Ce[t-e],Oa=t=>{let{h1Matches:e,sequence:n}=t;return new Array(6).fill(null).map((o,r)=>{let s=Yd(e,r);return n[s]})};var Hw=(t,e)=>{let n=A(),{cssVars:o}=n;U(t.value)||(o[t.var]=t.value)},Ea=(t,e,n)=>{let o=A(),{unit:r}=o,s=e.unit||r.default,{base:i,ratio:a,type:c}=e,u="--"+(e.varPrefix?e.varPrefix+"-":"")+(c&&c.replace(".","-"));t[`${u}-base`]=i,t[`${u}-unit`]=s;let f=`${u}-ratio`;t[f]=a;let[d,p,g]=Ta(i,a);t[`${u}-sub-ratio-1`]=`calc(var(${u}-ratio) * ${d/a})`,t[`${u}-sub-ratio-2`]=`calc(var(${u}-ratio) * ${p/a})`,t[`${u}-sub-ratio-3`]=`calc(var(${u}-ratio) * ${g/a})`},Zd=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),wn=(t,e={})=>{let n=A(),{unit:o,timing:r,cssVars:s}=n,i=t.unit||o.default,a=Zd.has(i)?"rem":i,{mediaRegenerate:c,sequence:l,scales:u}=t;c||Ea(s,t,e);for(let f in l){let d=l[f],p=(t.type===r.type?l[f].val:u[f])+a;if(!c){s[d.variable+"_default"]=p,s[d.variable]=d.scalingVariable;continue}e.useDefault===!1?s[d.variable]=p:(s[d.variable+"_default"]=p,s[d.variable]=`var(${d.variable+"_default"})`)}},so=(t,e,n={})=>{let o=A(),{unit:r,media:s,cssVars:i}=o,a=e.slice(1),c=t[e],l=c.unit||t.unit||r.default,u=Zd.has(l)?"rem":l,{mediaRegenerate:f}=t,{sequence:d,scales:p}=c,g=s[a];if(!g&&o.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("Can't find media query ",g)),!f){let h=i[`@media ${g}`];h||(h=i[`@media ${g}`]={}),Ea(h,c,n);let _=t.unit||r.default;if(u!==_&&d)for(let m in d){let b=d[m],x=p[m]+u;h[b.variable+"_default"]=x,h[b.variable]=x}return}for(let h in d){let _=d[h],m=(qo(u)?p[h]:d[h].val)+u;!g&&o.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("Can't find query ",g));let b=i[`@media ${g}`];b||(b=i[`@media ${g}`]={}),b[_.variable]=`var(${_.variable+"_"+a})`,i[_.variable+"_"+a]=m}};var Qd=eo(),Ra=t=>{let e=A(),n="";for(let o in t)e.__svgCache[o]||(e.__svgCache[o]=!0,n+=t[o]);return n},Gw=t=>{let e=t&&(t.default||t);if(!C(e))return Qd&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("parseRootAttributes:",e,"is not a string")),{};let n=e.match(/<svg\s+(.*?)>/);if(!n||!n[1])return{};let r=n[1].match(/(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|\s*\/?[>"']))+.)["']?/gm);return r?r.reduce((s,i)=>{let[a,c]=i.split("=");return s[a]=c.replace(/['"]/g,""),s},{}):{}},qw=(t,e)=>{let n=[];if(t.replace(/id="([^"]*)"/g,(r,s)=>(n.push(s),r)),!n.length)return t;let o=t;for(let r of n){let s=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),i=`${e}-${r}`;o=o.replace(new RegExp(`id="${s}"`,"g"),`id="${i}"`).replace(new RegExp(`url\\(#${s}\\)`,"g"),`url(#${i})`).replace(new RegExp(`xlink:href="#${s}"`,"g"),`xlink:href="#${i}"`).replace(new RegExp(`href="#${s}"`,"g"),`href="#${i}"`)}return o},Xd=new Set,Da=(t,e)=>{let n=e&&e.default?e.default:e;if(!C(n))return Qd&&!Xd.has(t)&&(Xd.add(t),globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("convertSvgToSymbol:",t,"is not a string")),"";e=n;let o=e.match(/^<symbol\b[^>]*\bid="([^"]*)"/);if(o){let f=o[1];return f===t?e:e.replace(`id="${f}"`,`id="${t}"`)}let r=Gw(e),{width:s,height:i}=r,a=r.viewBox||`0 0 ${s||24} ${i||24}`,u=qw(e,t).replace("<svg",`<symbol id="${t}" xmlns="http://www.w3.org/2000/svg" viewBox="${a}"`);return u=u.replace(/^<symbol\b[^>]*>/,f=>f.replace(/\s(width|height)="[^"]*"/g,"")),u=u.replace("</svg","</symbol"),u=Zw(u),u},Kw="line|circle|ellipse|rect|polyline|polygon|path|stop|use|image",Yw=new RegExp(`<(${Kw})\\b([^>]*?)\\s*/>`,"g"),Zw=t=>t.replace(Yw,"<$1$2></$1>");var Jd=/*@__PURE__*/__smblsNs({},{BARE_SEQUENCE_TOKEN_RE:()=>Be,COMPOUND_CSS_KEYWORDS:()=>Xo,CSS_NAMED_COLOR_HEX:()=>xs,CSS_NATIVE_COLOR_REGEX:()=>gn,CSS_UNITS:()=>ps,applyMediaSequenceVars:()=>so,applySequenceGlobalVars:()=>Ea,applySequenceVars:()=>wn,changeLightness:()=>qx,colorStringToRgbaArray:()=>xe,compositeOverBackdrop:()=>Jo,compoundLayers:()=>ks,contrastRatio:()=>Ts,convertSvgToSymbol:()=>Da,findHeadingLetter:()=>Yd,findHeadings:()=>Oa,generateSequence:()=>Zt,generateSequencePosition:()=>zw,generateSprite:()=>Ra,generateSubSequence:()=>Aa,getColorShade:()=>Dd,getDefaultOrFirstKey:()=>mn,getFnPrefixAndValue:()=>xn,getFontFace:()=>Jx,getFontFaceEach:()=>tr,getFontFaceEachString:()=>jd,getFontFaceString:()=>tw,getFontFormat:()=>$d,getRgbTone:()=>Me,getSequenceValue:()=>rr,getSequenceValueBySymbols:()=>va,getSequenceValuePropertyPair:()=>Ye,getSizeValue:()=>Ps,getSubratio:()=>Ta,getSubratioDifference:()=>Ca,hexToRgb:()=>Wx,hexToRgbArray:()=>vd,hexToRgba:()=>Hx,hslToRgb:()=>Rd,isCSSVar:()=>ut,isDomDocument:()=>pn,isGoogleFontsUrl:()=>As,isHostObject:()=>hn,isInertCompoundValue:()=>Ld,isNativeColorToken:()=>Qo,isRawUnitValue:()=>ca,isResolvedColor:()=>we,isScalingUnit:()=>qo,isWritableFamilyBucket:()=>yx,joinCompoundLayers:()=>Cs,linearChannelToSrgb:()=>Md,mixTwoColors:()=>Ux,mixTwoRgb:()=>Gx,mixTwoRgba:()=>Id,numToLetterMap:()=>Ce,oklabToLinearSrgb:()=>Bd,oklabToOklch:()=>ga,oklchToGamutSafeSrgb:()=>_a,oklchToOklab:()=>Nd,opacify:()=>ws,parkHostObject:()=>no,parseColorToken:()=>vt,quietSequenceProbe:()=>Sn,relativeLuminance:()=>Zo,resolveCompoundWords:()=>_n,resolveConfigDocument:()=>ds,resolveFileUrl:()=>ke,returnSubThemeOrDefault:()=>Qx,rgbArrayToHex:()=>Od,rgbToHSL:()=>Ed,rgbToHex:()=>zx,setCustomFont:()=>ma,setCustomFontMedia:()=>ro,setFontImport:()=>vs,setInCustomFontMedia:()=>Fd,setScalingVar:()=>ka,setSubScalingVar:()=>qd,setVariables:()=>Hw,splitCompoundWords:()=>pa,splitTopLevelCommas:()=>Pe,splitTopLevelSpaces:()=>W,srgbChannelToLinear:()=>Pd,srgbToOklab:()=>ha,toLinearChannel:()=>Ss});var op={light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)"},rp=(t,e)=>{let n=e.media&&e.media[t]||op[t];return n?"@media "+(n==="print"?`${n}`:`screen and ${n}`):null},sp=t=>{let e=t.scopeSelector||":root";return`${e===":root"?":root:not([data-theme])":`:root:not([data-theme]) ${e}:not([data-theme])`} &`},Xt=new Set,ip=new Set(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","green","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"]),ap=["AccentColor","AccentColorText","ActiveText","ButtonBorder","ButtonFace","ButtonText","Canvas","CanvasText","Field","FieldText","GrayText","Highlight","HighlightText","LinkText","Mark","MarkText","SelectedItem","SelectedItemText","VisitedText","ActiveBorder","ActiveCaption","AppWorkspace","Background","ButtonHighlight","ButtonShadow","CaptionText","InactiveBorder","InactiveCaption","InactiveCaptionText","InfoBackground","InfoText","Menu","MenuText","Scrollbar","ThreeDDarkShadow","ThreeDFace","ThreeDHighlight","ThreeDLightShadow","ThreeDShadow","Window","WindowFrame","WindowText"],cp=new Set(ap.map(t=>t.toLowerCase())),Xw=new Set(ap),Ia=0,sr=t=>{Ia++;try{return t()}finally{Ia--}},Qw=/(^|[^\w-])(not\s+)?\(\s*forced-colors\s*(?::\s*(active|none)\s*)?\)/i,ir=t=>{if(!C(t))return!1;let e=t.match(Qw);return!e||e[2]||e[3]&&e[3].toLowerCase()==="none"?!1:!/^\s*(?:@media\s+)?not\b/i.test(t)},lp=t=>Ia>0||Xw.has(t),ar=t=>C(t)&&cp.has(t.toLowerCase())&&lp(t),Jw=/^(?:#[0-9a-f]{3,8}$|(?:rgba?|hsla?|hwb|lab|lch|oklab|oklch|color|color-mix)\()/i,tk=/gradient\(|url\(|image-set\(|var\(/i,ek=new Set(["transparent","currentColor","currentcolor"]),io=t=>{if(!C(t))return!1;let e=t.trim();return tk.test(e)?!1:Jw.test(e)?!0:ip.has(e)||ek.has(e)},Ms=new Set,tp=t=>{if(!t)return!1;let{color:e,gradient:n}=t;return!!(E(e)&&Object.keys(e).length||E(n)&&Object.keys(n).length)},ep=new Set,La=0,cr=t=>{La++;try{return t()}finally{La--}},nk=(t,e)=>{if(!C(t)||t.indexOf(" ")===-1)return null;let n=t.replace(/\s+/g,""),o=vt(n);if(!o||o.passthrough||o.cssVar)return null;let{color:r,gradient:s}=e;return!r[o.name]&&!s[o.name]?null:n},Pa=(t,e,n)=>{let o=nk(t,n);if(o){if(!ep.has(t)){ep.add(t);let a=n&&n.name?` (design system \`${n.name}\`)`:"";globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(`[scratch] color token \`${t}\` has a space before its alpha/tone modifier${a} \u2014 did you mean \`${o}\`? The space form never resolves, so the atomic class it mints carries no CSS value and paints invisibly. Dropped rather than shipped invisible.`)}return}let r=vt(t);if(r&&r.name&&!r.passthrough&&!r.cssVar&&(r.alpha!==void 0||r.tone!==void 0)&&tp(n)&&!n.color[r.name]&&!n.gradient[r.name]){if(!La&&!Ms.has(t)){Ms.add(t);let a=n&&n.name?` (design system \`${n.name}\`)`:"";globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(`[scratch] color token \`${t}\` does not resolve${a} \u2014 \`${r.name}\` is not in the palette. Dropped rather than emitted as a raw value, which is invalid CSS the browser discards silently. Define it in designSystem/color.js or use a palette token.`)}return}let s=C(e)?e.toLowerCase():"",i=cp.has(s);if(!ip.has(s)&&!i||i&&lp(e)||!tp(n))return t;if(!Ms.has(s)){Ms.add(s);let a=n&&n.name?` (design system \`${n.name}\`)`:"";globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(i?`[scratch] color \`${t}\` is a CSS system colour that is not in the palette${a}. Dropped rather than emitted as a raw browser colour: a system colour paints the value the user's desktop chose (\`highlight\` is the selection blue), so it ignores the design system and is not even stable across two machines. Define it in designSystem/color.js or use a palette token.`:`[scratch] color \`${t}\` is a CSS named colour that is not in the palette${a}. Dropped rather than emitted as a raw browser colour, which renders theme-blind and can be unreadable ("looks designed", so it ships unnoticed). Define it in designSystem/color.js or use a palette token.`)}},fp=(t,e,n)=>{let o=e!==void 0?e:1;if(!n)return`rgb(from ${t} r g b / ${o})`;if(n.charCodeAt(0)===43||n.charCodeAt(0)===45){let s=parseFloat(n),i=s<0?"-":"+",a=Math.abs(s);return`rgb(from ${t} calc(r ${i} ${a}) calc(g ${i} ${a}) calc(b ${i} ${a}) / ${o})`}return`hsl(from ${t} h s ${n}% / ${o})`},z=(t,e,n)=>{let o=n||A();if(!C(t)){o.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(t,"- type for color is not valid"));return}if(ut(t))return`var(${t})`;e&&t[e]&&(t=t[e]);let r,s,i;if(q(t))[r,s,i]=t;else{let f=vt(t);if(!f){let{color:d,gradient:p}=o,g=p[t]||d[t];return g?(e&&g[e]&&(g=g[e]),o.useVariable?`var(${g.var})`:g.value):Pa(t,t,o)}if(f.passthrough)return f.passthrough;if(f.cssVar)return`var(${f.cssVar})`;r=f.name,s=f.alpha,i=f.tone}let{color:a,gradient:c}=o,l=a[r]||c[r];if(!l)return Pa(t,r,o);if(e)if(l[e]!==void 0)l=l[e];else if(q(l)){let f=e.charCodeAt(0)===64?e.slice(1):e;f==="dark"?l=l[1]!==void 0?l[1]:l[0]:(f!=="light"&&o.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(t," - array-form color tokens only support light/dark; falling back to the light slot for scheme",e)),l=l[0])}else o.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(t," - does not have ",e));if(C(l)){if(Xt.has(r))return l;Xt.add(r);try{return z(l,null,n)}finally{Xt.delete(r)}}let u=l.rgb;if(!u){let f=o.useVariable?`var(${l.var})`:l.value;return(s||i)&&f?fp(f,s,i):f}return i&&!l[i]&&(u=Me(u,i),l[i]={rgb:u,var:`${l.var}-${i}`}),l[i]&&(u=l[i].rgb),s?`rgba(${u}, ${s})`:i?`rgba(${u}, ${l.alpha!==void 0?l.alpha:1})`:o.useVariable?`var(${l.var})`:l.value!==void 0?l.value:`rgb(${u})`},np=t=>{let e=xe(t);return!e||e.length<3||e[0]===0&&e[1]===0&&e[2]===0&&e[3]===0&&t.toLowerCase()!=="transparent"?null:{rgb:[e[0],e[1],e[2]],alpha:e[3]!==void 0?e[3]:1}},ok=(t,e)=>{if(!e)return t;let n=t.rgb;if(e.tone){let r=Me(n,e.tone);n=C(r)?r.split(",").map(s=>parseFloat(s.trim())):r}let o=e.alpha!==void 0?parseFloat(e.alpha):t.alpha;return{rgb:n,alpha:o}},lr=(t,e,n)=>{let o=e||A();if(!C(t))return null;let r=vt(t);if(r){if(r.passthrough){let d=xe(r.passthrough);return d&&d.length>=3?{rgb:[d[0],d[1],d[2]],alpha:d[3]!==void 0?d[3]:1}:null}if(r.cssVar)return null}let s=r?r.name:t,{color:i,gradient:a}=o,c=i[s]||a[s];if(!c)return np(t);if(C(c)){let d;if(Xt.has(s))d=np(c);else{Xt.add(s);try{d=lr(c,o,n)}finally{Xt.delete(s)}}return d?ok(d,r):null}if(c.rgb===void 0&&E(c)){let d=`@${n||"light"}`;c=c[d]!==void 0?c[d]:c["@light"]}if(!c||c.rgb===void 0)return null;let l=c.rgb;r&&r.tone&&(l=Me(l,r.tone));let u=C(l)?l.split(",").map(d=>parseFloat(d.trim())):l,f=r&&r.alpha!==void 0?parseFloat(r.alpha):c.alpha!==void 0?c.alpha:1;return{rgb:u,alpha:f}},up=t=>E(t)&&t.value!==void 0&&(t.rgb!==void 0||t.var!==void 0),ao=t=>{let e=[];for(let n in t)n.charCodeAt(0)===64&&e.push(n.slice(1));return e},Ba=t=>{if(!E(t)||t.value!==void 0)return null;for(let n in t)if(n!=="var"&&(n.charCodeAt(0)!==64||!up(t[n])))return null;let e=ao(t);return e.length?e:null},rk=t=>C(t&&t.var)&&Ba(t)!==null,sk=(t,e,n,o,r)=>{let s=Ba(e);if(!s)return;if(C(e.var)){let c=`var(${e.var})`;return n||o?fp(c,n,o):c}if(s.length!==2||!s.includes("light")||!s.includes("dark"))return;let i=z(t,"@light",r),a=z(t,"@dark",r);if(!(!io(i)||!io(a)))return i===a?i:`light-dark(${i}, ${a})`},Ma=(t,e)=>{if(!t)return null;let n=e||A(),o=vt(t),r=o?o.name:t,s=r&&n.color&&n.color[r];if(q(s))return["light","dark"];if(!E(s)||s.value!==void 0)return null;let i=ao(s);return i.length?i:null},Cn=(t,e,n)=>{let o={},r=sp(e);for(let s of t){let i=n(s);if(i!==void 0&&(o[`[data-theme="${s}"] &`]=i,s==="light"||s==="dark")){let a=rp(s,e);a&&(o[a]={[r]:i})}}return o},fr=(t,e)=>t||(e.globalTheme==="auto"?null:e.globalTheme),ur=(t,e,n,{commas:o,resolve:r,resolveScheme:s})=>{let i=ks(t,o),a=null;for(let u of i)for(let f of u){let d=Ma(f,n);if(d)for(let p of d)(a||(a=[])).includes(p)||a.push(p)}if(!a)return;let c=u=>Cs(i.map(f=>f.map(d=>{if(!Ma(d,n))return d;let p=u(d);return C(p)?p:d}))),l=fr(e,n);return l?r(c(u=>yt(u,l,n)),l):Cn(a,n,u=>s(u,c))},yt=(t,e,n)=>{let o=n||A();if(e=fr(e,o),!C(t)){o.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(t,"- type for color is not valid"));return}if(ut(t))return`var(${t})`;let r,s,i;if(q(t))r=t[0];else{let f=vt(t);if(f){if(f.passthrough)return f.passthrough;if(f.cssVar)return`var(${f.cssVar})`;r=f.name,s=f.alpha,i=f.tone}else r=t}let{color:a,gradient:c}=o,l=a[r]||c[r],u=E(l);if(u&&l.value)return z(t,`@${e}`,n);if(u){if(o.useVariable&&l.var)return s||i?z(t,null,n):`var(${l.var})`;if(e){if(!o.useVariable&&a[r]===l){let f=sk(t,l,s,i,n);if(f!==void 0)return f}return z(t,`@${e}`,n)}else return Cn(ao(l),o,f=>z(t,"@"+f,n))}else return Pa(t,r,o)},co=(t,e,n,o)=>{let s=`--${o.varPrefix?o.varPrefix+"-":""}${e}-${n}`,i,a={};for(let c in t){if(c.charCodeAt(0)!==64)continue;let l=c.slice(1),u=t[c],f=u&&(u.value||u);!f||typeof f!="string"||(a[l]=f,(l==="light"||i===void 0)&&(i=f))}if(i!==void 0){o.cssVars[s]=i,o.cssMediaVars||(o.cssMediaVars={});for(let c in a){let l=`[data-theme="${c}"]`;if(o.cssMediaVars[l]||(o.cssMediaVars[l]={}),o.cssMediaVars[l][s]=a[c],c==="light"||c==="dark"){let u=`@media (prefers-color-scheme: ${c})`;o.cssMediaVars[u]||(o.cssMediaVars[u]={}),o.cssMediaVars[u][s]=a[c]}}return t.var=s,s}},kn=(t,e,n)=>{let o=A();if(up(t))return o.useVariable&&t.var&&(o.cssVars[t.var]=t.value),t;if(!o.useVariable&&rk(t))return t;if(C(t)&&ut(t)){let h=t.slice(2),_=h.trim().indexOf(" ")!==-1;if(t=_?h:z(h),_||!(t.includes("rgb")||t.includes("var")||t.includes("#"))){let m=h.trim().split(/\s+/),b=o.color[m[0]];if(b&&!b.value&&!b.rgb&&(C(b)||q(b)||E(b))&&!Xt.has(m[0])){Xt.add(m[0]);try{o.color[m[0]]=kn(b,m[0])}finally{Xt.delete(m[0])}b=o.color[m[0]]}if(b&&b.value){let x=b.rgb,D=m[1]!==void 0?m[1]:"1",y=m[2];y&&(x=Me(x,y)),t=`rgba(${x}, ${D})`}else{let x=m[2],D=m[1]!==void 0?m[1]:"1";if(x)try{let y=xe(m[0]);y&&y.length>=3?t=`rgba(${Me(y.slice(0,3).join(", "),x)}, ${D})`:t=m[0]}catch{t=m[0]}else t=m[0]}}}if(q(t)&&(t={"@light":t[0],"@dark":t[1]!==void 0?t[1]:t[0]}),E(t)){let h={};for(let _ in t)_!=="var"&&(h[_]=kn(t[_],e,_.slice(0,1)==="@"?_.slice(1):_));return o.useVariable&&co(h,"color",e,o),h}let s=`--${o.varPrefix?o.varPrefix+"-":""}color-${e}`+(n?`-${n}`:""),i=t.value||t;if(C(i)&&!i.includes("(")&&!i.startsWith("#")){let h=vt(i);if(h&&h.name&&!h.passthrough&&!h.cssVar){let _=o.color[h.name];if(_&&!_.value&&!_.rgb&&(C(_)||q(_)||E(_))&&!Xt.has(h.name)){Xt.add(h.name);try{o.color[h.name]=kn(_,h.name)}finally{Xt.delete(h.name)}}let m=o.color[h.name],b=Ba(m);if(b){if(h.alpha===void 0&&h.tone===void 0)return m;let x={};for(let D of b){let y=m["@"+D],S=y.rgb;h.tone&&(S=Me(S,h.tone));let w=h.alpha!==void 0?parseFloat(h.alpha):y.alpha!==void 0?y.alpha:1;x["@"+D]=`rgba(${S}, ${w})`}return kn(x,e,n)}if(m&&m.rgb){let x=m.rgb;h.tone&&(x=Me(x,h.tone));let D=h.alpha!==void 0?parseFloat(h.alpha):m.alpha!==void 0?m.alpha:1;i=`rgba(${x}, ${D})`}}}let a=xe(i),[c,l,u,f=1]=a,d=parseFloat(f.toFixed(2)),p=`${c}, ${l}, ${u}`,g=`rgba(${p}, ${d})`;return o.useVariable&&(o.cssVars[s]=g),{var:s,rgb:p,alpha:d,value:g}},ik=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),lo=(t,e)=>{let n=t.indexOf("(");if(n===-1)return t;let o=t.slice(0,n+1),r=t.slice(n+1,t.lastIndexOf(")")),s=")",i=Pe(r),a=!1,c=i.map(l=>(l=l.trim(),l.split(/\s+/).map(f=>{if(!f||/^\d/.test(f)||f==="0"||ik.has(f)||f==="transparent"||gn.test(f))return f;let d=z(f);return we(d)?(a=!0,d):f}).join(" ")));return a?o+c.join(", ")+s:t},Bs=(t,e,n)=>{let o=A();if(E(t)&&t.value!==void 0&&t.var!==void 0)return o.useVariable&&(o.cssVars[t.var]=t.value),t;if(C(t)&&ut(t)&&(t=z(t.slice(2))),q(t)&&(t={"@light":t[0],"@dark":t[1]!==void 0?t[1]:t[0]}),E(t)){let a={};for(let c in t)c!=="var"&&(a[c]=Bs(t[c],e,c.slice(0,1)==="@"?c.slice(1):c));return o.useVariable&&co(a,"gradient",e,o),a}let s=`--${o.varPrefix?o.varPrefix+"-":""}gradient-${e}`+(n?`-${n}`:""),i=lo(t.value||t);return o.useVariable&&(o.cssVars[s]=i),{var:s,value:i}};var dp=new Set,jt=(t,e)=>{if(dp.has(t)||(dp.add(t),typeof console>"u"||!console.error))return;let n=e&&e.__ref&&e.__ref.path,o=n&&n.length?` (at <${n.join(".")}>)`:"";console.error(`[smbls] "${t}"${o} is not in this build: symbols.json build.treeShakeFeatures left it out because neither the project source nor its build settings use it. Add "${t}" to build.treeShakeFeatures.keep.`)};var pp=(t,e,n={},o)=>{if(globalThis.__SMBLS_BUILD_DROP_F_safeInk__)return jt("safeInk");let r=o||A(),{min:s=4.5,large:i=!1,scheme:a,meta:c=!1,maxIterations:l=15}=n,u=i?3:s,f=a||(r.globalTheme&&r.globalTheme!=="auto"?r.globalTheme:"light"),d=C(e)?e:String(e),p=vt(t),g=p&&!p.passthrough&&!p.cssVar?p.name:null,h=(Z,lt)=>c?{value:Z,...lt}:Z;if(g){let Z=r.color[`${g}Safe`];if(Z){let lt=`${d}@${f}`,M=Z[lt]!==void 0?Z[lt]:Z[d];if(M!==void 0){let X=M&&M.rgb!==void 0?r.useVariable&&M.var?`var(${M.var})`:M.value:z(M,null,r);return h(X,{ratio:null,deviation:0,derived:!1,overridden:!0})}}}let _=z(t,f?`@${f}`:null,r),m=lr(t,r,f),b=lr(e,r,f);if(!m||!b)return r.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("getSafeInk: could not resolve",t,e,"\u2014 returning hue unchanged")),h(_,{ratio:null,deviation:0,derived:!1,overridden:!1,unresolved:!0});let x=Jo(b.rgb,b.alpha),D=Jo(m.rgb,m.alpha,x),y=Ts(D,x);if(y>=u-.02)return h(_,{ratio:y,deviation:0,derived:!1,overridden:!1});let[S,w,k]=ha(m.rgb),[,v,R]=ga([S,w,k]),O=Zo(x)>.5,$=O?S:1-S,B=Z=>{let lt=O?S-Z:S+Z,M=Math.max(0,Math.min(1,lt));return{rgb:_a(M,v,R),L:M}},P=Z=>{let{rgb:lt}=B(Z),M=Jo(lt.map(X=>Math.round(X)),m.alpha,x);return Ts(M,x)},Gt=0,ct=$,qt=P(ct)>=u;if(qt)for(let Z=0;Z<l;Z++){let lt=(Gt+ct)/2;P(lt)>=u?ct=lt:Gt=lt}else Gt=ct;let{rgb:He,L:ye}=B(ct),K=He.map(Z=>Math.round(Z)),mt=P(ct),et=m.alpha<1?`rgba(${K.join(", ")}, ${m.alpha})`:`rgb(${K.join(", ")})`,wt=Math.abs(ye-S)*100;return h(et,{rgb:K,ratio:mt,startRatio:y,deviation:wt,derived:!0,overridden:!1,reachable:qt})},ak=(t,e,n={},o)=>pp(t,e,{...n,meta:!0},o);var ck=t=>{let n=A().spacing||{},o=parseFloat(t.spacingRatio),r={...n,ratio:Number.isFinite(o)?o:n.ratio,sequence:{},scales:{}};return Zt(r),r},lk=t=>{for(let e in t){let n=t[e];if(!(e.slice(0,1)==="@"))continue;let{type:r,base:s,ratio:i,range:a,subSequence:c,h1Matches:l,unit:u}=t;At(n,{type:r,base:s,ratio:i,range:a,subSequence:c,h1Matches:l,unit:u,sequence:{},scales:{},templates:{},vars:{}}),Zt(n),so(t,e)}},Na=t=>{let e=t.toLowerCase(),n=e.includes("width")||e.includes("height"),o=e.includes("border")||e.includes("outline");return n&&!o},$a=()=>{let t=A(),{spacing:e}=t;Zt(e),wn(e),lk(e)},fk=t=>{let e=A(),{spacing:n}=e;return!t||!t.sequence?n:Object.keys(t.sequence).length>0?t:Zt(t)},gt=(t,e="padding",n,o)=>{let r=fk(n);if(C(t)){if(!o&&/^(?:env|var)\(/.test(t.trim()))return{[e]:t};if(!o&&t.includes("(")){let i=xn(t);o=i[0],t=i[1]}}let s=o?[t]:C(t)&&t.includes("(")?W(t):bs(t);if(q(s)){if(s.length>1){let i="";e==="borderWidth"&&(e="border",i="Width");let a={2:["Block","Inline"],3:["BlockStart","Inline","BlockEnd"],4:["BlockStart","InlineEnd","BlockEnd","InlineStart"]},c=(l,u)=>Ye(s[u],e+l+i,r,o);return a[s.length].map((l,u)=>c(l,u))}return Ye(t,e,r,o)}},pe=(t,e,n,o)=>{let r=A(),{spacing:s}=r,i=n||t[e];if(!o&&C(i)&&/^(?:env|var)\(/.test(i.trim()))return{[e]:i};if(!o&&C(i)&&i.includes("(")){let a=xn(i);o=a[0],i=a[1]}if(t.spacingRatio){let a=ck(t);return gt(i,e,a,o)}return gt(i,e,s,o)},Fa=t=>{let e=n=>{let o=["+","-","*","/"].includes(n),r=ps.some(i=>t.includes(i));return o||r?n:n.length<3&&/[A-Z]/.test(n)?n+"_default":n};return t.split(",").map(n=>n.trim()).map(e).join(",").split(" ").map(e).join(" ")};var uk={commas:!0},dr=(t,e,n)=>C(t)?_n(t,dk,uk,e,n):t,dk=(t,e,n)=>{let o=cr(()=>z(t,e));return we(o)?o:Ns(t,n)},Ns=(t,e)=>{if(/^\d/.test(t)||t.includes("px")||t.slice(-2)==="em"||t==="inset"||t==="none"||ar(t)||Xo.has(t.toLowerCase()))return t;e&&e(t);let n=Sn(()=>gt(t,"shadow"));return n&&n.shadow?n.shadow:t},fo=(t,e,n,o)=>{let r=A();if(E(t)&&t.value!==void 0&&t.var!==void 0)return r.useVariable&&(r.cssVars[t.var]=t.value),t;if(q(t)){let a={"@light":fo(t[0],e,"light"),"@dark":fo(t[1],e,"dark")};return r.useVariable&&co(a,"shadow",e,r),a}if(E(t)){let a={};for(let c in t)a[c]=fo(t[c],e,c.startsWith("@")?c.slice(1):c);return r.useVariable&&co(a,"shadow",e,r),a}C(t)&&(t=dr(t));let i=`--${r.varPrefix?r.varPrefix+"-":""}shadow-${e}`+(n?`-${n}`:"");return r.useVariable&&(r.cssVars[i]=t),{var:i,value:t}},ja=(t,e)=>{let n=A();if(e=fr(e,n),!C(t)){n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(t,"- type for color is not valid"));return}if(ut(t))return`var(${t})`;let[o]=q(t)?t:t.split(" "),s=n.shadow[o],i=E(s);if(!s)return n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("Can't find color ",o)),t;if(i&&!s.value&&n.useVariable&&s.var)return`var(${s.var})`;if(e){let a=s["@"+e]||s[e];if(a)return a.value!==void 0?a.value:a;n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(t," - does not have ",e))}return i&&s.value?s.value:i?Cn(ao(s),n,a=>{let c=s["@"+a];return c&&(c.value!==void 0?c.value:c)}):(n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("Can't find color",t)),t)};var pk=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),hk={commas:!1,keywords:pk},Vt=(t,e,n)=>{if(t==null)return;let o=t+"",r=o.trim();return r==="none"||r==="0"||r==="initial"||r==="inherit"||r==="unset"?o:_n(o,gk,hk,e,n)},gk=(t,e,n)=>{if(/^\d/.test(t))return t;let o=cr(()=>z(t,e));if(we(o))return o;if(ar(t)||Xo.has(t.toLowerCase()))return t;n&&n(t);let r=Sn(()=>gt(t,"border"));return r&&r.border?r.border:t},Va=(t,e,n)=>{let o=n||A();if(o.useVariable||!C(t))return Vt(t);let r=ur(t,e,o,{commas:!1,resolve:s=>Vt(s),resolveScheme:s=>Vt(t,"@"+s)});return r!==void 0?r:Vt(t)};var _k=new Set(["black","white","red","green","blue","yellow","orange","purple","pink","brown","gray","grey","cyan","magenta","lime","olive","navy","teal","aqua","maroon","silver","fuchsia","transparent","currentColor","currentcolor","inherit","initial","unset","none","aliceblue","antiquewhite","aquamarine","azure","beige","bisque","blanchedalmond","blueviolet","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","gainsboro","ghostwhite","gold","goldenrod","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","limegreen","linen","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","oldlace","olivedrab","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","plum","powderblue","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellowgreen","rebeccapurple"]),hp=["color","Color","background","Background","fill","Fill","stroke","Stroke"],yp=t=>{for(let e=0;e<hp.length;e++)if(t.includes(hp[e]))return!0;return!1},mk={boxShadow:dr,textShadow:dr,border:Vt,borderTop:Vt,borderRight:Vt,borderBottom:Vt,borderLeft:Vt,outline:Vt,columnRule:Vt},yk=t=>{if(!t)return!1;let e=vt(t);return!e||!e.name||e.passthrough||e.cssVar?!1:e.alpha!==void 0||e.tone!==void 0},gp=new Set,bk=(t,e,n,o,r,s)=>{if(!(!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&j()))return;let i=`${t}::${e}::${n||""}::${o}`;gp.has(i)||(gp.add(i),console.warn(`[smbls/scratch] theme param "${e}" on "${t}"`+(n?` (${n})`:"")+` did not fully resolve: "${o}" -> "${r}" still contains the unresolved token "${s}". This is not valid CSS \u2014 the browser will drop the whole declaration. Register "${s}" as a design-system color token or fix the typo.`))},za=(t,e,n,o)=>{let r=mk[e];if(!r)return z(n,o);let s=null,i=r(n,o,a=>{!s&&yk(a)&&(s=a)});return s&&bk(t,e,o,n,i,s),i},Sk=(t,e)=>Te(t,e),xk=t=>E(t)&&U(t.value),wk=t=>{for(let e in t){let n=t[e];if(C(n)&&n.startsWith("var(--"))return!0}return!1},Ha=(t,e)=>{let n=A();return xk(t)?!n.useVariable&&wk(t)?t:$s(t.value,e):$s(t,e)},bp=(t,e)=>{let n=new Set;for(let o of e){let r=o.slice(0,1);if(!(r==="@"||r==="."||r===":")&&yp(o))for(let s in t){if(n.has(s))continue;let i=t[s]?.[o];if(i===void 0)continue;let a=z(i,`@${s}`);a!==void 0&&C(a)&&/^[a-z][a-zA-Z]+$/.test(a)&&!_k.has(a)&&n.add(s)}}return n},Sp=t=>t.startsWith("[data-theme=")||t.startsWith("@media"),pr=(t,e)=>{for(let n in e){let o=e[n];E(o)?pr(t[n]||(t[n]={}),o):t[n]=o}return t},_p=(t,e,n,o,r)=>pr(t,Cn(o,r,s=>({[e]:n[s]}))),xp=(t,e,n,o)=>{let r={},s=Object.keys(e).filter(c=>e[c]!==n);if(!s.length)return n===void 0?void 0:(r[t]=n,r);let i=e.light!==void 0?e.light:n,a=e.dark!==void 0?e.dark:n;if(yp(t)&&io(i)&&io(a)){r[t]=i===a?i:`light-dark(${i}, ${a})`;let c=Object.keys(e).filter(l=>l!=="light"&&l!=="dark");_p(r,t,e,c,o)}else n!==void 0&&(r[t]=n),_p(r,t,e,s,o);return r},kk=new Set(["backdropFilter","WebkitBackdropFilter"]),wp=new WeakSet,kp=(t,e,n,o)=>{let r=n.globalTheme!==void 0?n.globalTheme:"auto",s=r&&r!=="auto"?String(r).replace(/^'|'$/g,""):null,i=new Set(o?Object.keys(o):[]);for(let l in t)if(t[l])for(let u of Object.keys(t[l]))i.add(u);let a=bp(t,i),c={};for(let l of i){let u=l.slice(0,1);if(u==="@")continue;if(u==="."||u===":"){let _={};for(let x in t)U(t[x]?.[l])&&(_[x]=t[x][l]);let m=o&&U(o[l])?o[l]:void 0;if(!Object.keys(_).length&&!m)continue;let b=u==="."?l.slice(1):l.replace(/^:+/,"");c[l]=kp(_,`${e}-${b}`,n,m);continue}let f=o&&!U(o[l])?o[l]:void 0,d=new Set(Object.keys(t));f!==void 0&&(d.add("light"),d.add("dark"),s&&d.add(s));let p={},g;for(let _ of d){if(a.has(_))continue;let m=t[_]?.[l];if((m===void 0||U(m))&&(m=f),m===void 0)continue;let b=za(e,l,m,`@${_}`);b!==void 0&&(p[_]=b,(s&&_===s||!s&&(_==="light"||g===void 0))&&(g=b))}let h=xp(l,p,g,n);h&&(pr(c,h),c[`.${l}`]=h)}return(c.background||c.color||c.backgroundColor)&&(c[".inversed"]={color:c.background||c.backgroundColor,background:c.color}),c},Ua=(t,e,n,o)=>{let{cssVars:r}=n;n.cssMediaVars||(n.cssMediaVars={});let s=n.cssMediaVars,i=n.globalTheme!==void 0?n.globalTheme:"auto",a=i&&i!=="auto"?String(i).replace(/^'|'$/g,""):null,c={},l=new Set(o?Object.keys(o):[]);for(let f in t)if(t[f])for(let d of Object.keys(t[f]))l.add(d);let u=bp(t,l);for(let f of l){let d=f.slice(0,1),p=U(o?.[f])||Object.values(t).some(g=>U(g?.[f]));if(d==="."&&p){let g=f.slice(1),h={};for(let m in t)U(t[m]?.[f])&&(h[m]=t[m][f]);let _=U(o?.[f])?o[f]:void 0;c[f]=Ua(h,`${e}-${g}`,n,_)}else if(d===":"&&p){let g=f.replace(/^:+/,""),h={};for(let m in t)U(t[m]?.[f])&&(h[m]=t[m][f]);let _=U(o?.[f])?o[f]:void 0;c[f]=Ua(h,`${e}-${g}`,n,_)}else if(d!=="@"&&d!=="."&&d!==":"){let h=`--${n.varPrefix?n.varPrefix+"-":""}theme-${e}-${f}`,_=o&&!U(o[f])?o[f]:void 0,m=new Set(Object.keys(t));_!==void 0&&(m.add("light"),m.add("dark"),a&&m.add(a));let b,x=!1,D={};for(let y of m){if(u.has(y))continue;let S=t[y]?.[f];if((S===void 0||U(S))&&(S=_),S===void 0)continue;let w=za(e,f,S,`@${y}`);if(w===void 0)continue;x=!0,D[y]=w,(a&&y===a||!a&&(y==="light"||b===void 0))&&(b=w);let k=`[data-theme="${y}"]`;if(s[k]||(s[k]={}),s[k][h]=w,y==="dark"||y==="light"){let v=`@media (prefers-color-scheme: ${y})`;s[v]||(s[v]={}),s[v][h]=w}}if(b!==void 0&&(r[h]=b),!x)continue;if(kk.has(f)){let y=xp(f,D,b,n);y&&(pr(c,y),c[`.${f}`]=y);continue}c[f]=`var(${h})`,c[`.${f}`]={[f]:c[f]}}}(c.background||c.color||c.backgroundColor)&&(c[".inversed"]={color:c.background||c.backgroundColor,background:c.color});for(let f in c)Sp(f)&&U(c[f])&&wp.add(c[f]);return c},$s=(t,e,n,o)=>{let r=A(),{cssVars:s}=r,i={value:t},a=!n&&!o,c,l;if(U(t)){if(a&&r.useVariable){let u={},f={};for(let d in t)d.startsWith("@")?U(t[d])&&(u[d.slice(1)]=t[d]):f[d]=t[d];(Object.keys(u).length||Object.keys(f).length)&&(l=Ua(u,e,r,f),Object.assign(i,l))}else if(a){let u={},f={};for(let d in t)d.startsWith("@")?U(t[d])&&(u[d.slice(1)]=t[d]):f[d]=t[d];c=kp(u,e,r,f),Object.assign(i,c)}for(let u in t){let f=u.slice(0,1),d=t[u];if(f==="@"||f===":"||f==="."){let p=f==="@"&&u;i[u]=$s(d,e,u,o||p)}else if(!a){let p=za(e,u,d,o),g=[...new Set([o,n].filter(b=>b).map(b=>b.slice(1)))],h=g.length?"-"+g.join("-"):"",m=`--${r.varPrefix?r.varPrefix+"-":""}theme-${e}${h}-${u}`;r.useVariable?(r.useThemeSuffixedVars&&(s[m]=p),i[u]=`var(${m})`):i[u]=p,i[`.${u}`]={[u]:i[u]}}}if(c)for(let u in c){let f=u.slice(0,1);(f==="."||f===":")&&U(t[u])&&(i[u]=c[u])}if(l)for(let u in l){let f=u.slice(0,1);(f==="."||f===":")&&U(t[u])&&(i[u]=l[u])}!i[".inversed"]&&(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color})}if(C(t)&&ut(t)){let f=r.theme[t.slice(2)];return Te(f,o)}return i},Wa=(t,e)=>{let n={};for(let o in t){let r=o.slice(0,1);if(U(t[o]))if(Sp(o)&&(e||wp.has(t[o])))n[o]=pr({},t[o]);else{if(r==="@")continue;r===":"?n[`&${o}`]=Wa(t[o],e):r==="."&&(n[`&${o}`]=Wa(t[o],e))}else n[o]=t[o]}return n},Cp=(t,e)=>{let n=e.shift();return t[n]?Cp(t[n],e):t},mp=(t,e)=>q(e)?Cp(t,e):C(e)&&t[e]?t[e]:t;var Te=(t,e)=>{let n=A();if(C(t)&&ut(t)&&(t=Te(t.slice(2))),!t||!C(t)){n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(`${t} - Theme is not a string`));return}let[o,...r]=q(t)?t:t.split(" "),s=n.theme[o];return s&&r.length?s=mp(s,r):s&&e&&(s=mp(s,e)),Wa(s,!n.useVariable)};var Ga=(t,e)=>{let n=A(),o=`--font-${e}`;if(!t||q(t)&&!t[0])return;let r;if(t.isVariable){let s=ke(t.url,n.files)||t.url;As(s)?r=vs(s):r=ro(e,s,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap",unicodeRange:t.unicodeRange})}else if(t[0])r=tr(e,t,n.files);else{let s=Array.isArray(t.url)?t.url.map(i=>ke(i,n.files)||i):ke(t.url,n.files)||t.url;r=ro(e,s,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch,unicodeRange:t.unicodeRange})}return{var:o,value:t,fontFace:r}},vp=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","emoji","math","fangsong","inherit","initial","unset","revert","revert-layer"]),Ck=t=>vp.has(t.toLowerCase())||/[\s,'"(]/.test(t.trim()),Tp=new Set,qa=(t,e)=>{let n=A(),{fontFamily:o}=n,r=e||o,s=mn(r,t);if(s!==void 0||t==null||t===""||t==="default")return s;if(!C(t))return mn(r);if(!Ck(t))return eo()&&!Tp.has(t)&&(Tp.add(t),globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(`[scratch] fontFamily \`${t}\` is not a font family key of this design system \u2014 rendering the default family. Name a key from designSystem fontFamily, a CSS generic family (\`monospace\`, \`serif\`, \u2026) or a quoted font name (\`"'${t}'"\`).`)),mn(r)},Ap=t=>{let e=t.trim(),n=e.replace(/^(['"])(.*)\1$/,"$2").trim(),o=n.replace(/\s+/g," ").toLowerCase();return n!==e&&vp.has(o)?'"'+o+'"':o},Fs=(t,e)=>{let n=A(),{fontFamily:o,fontFamilyTypes:r}=n;if(E(t)&&C(t.value)&&C(t.var))return n.useVariable&&(n.cssVars[t.var]=t.value),t;let{value:s,type:i}=t;t.isDefault&&(!t.isSystemFallback||!o.__defaultKey)&&(o.__defaultKey=e),E(s)&&(s=bs(s));let c=`--${n.varPrefix?n.varPrefix+"-":""}font-family-${e}`,l=p=>p&&!p.startsWith("--"),u=[...s].map(p=>String(p).trim()).filter(l),f=new Set;for(let p of u)for(let g of p.split(","))f.add(Ap(g));for(let p of String(r[i]??"").split(",")){let g=p.trim();if(!l(g))continue;let h=Ap(g);f.has(h)||(f.add(h),u.push(g))}let d=u.join(", ");return n.useVariable&&(n.cssVars[c]=d),{var:c,value:d,arr:s,type:i,isSystemFallback:!!t.isSystemFallback,isSharedLibrary:!!t.isSharedLibrary}};var Op=t=>{let e=A(),{typography:n,media:o}=e;for(let r in t){let s=r.slice(0,1)==="@",i=t[r];if(!s)continue;let{mediaRegenerate:a}=t,c=r.slice(1),{type:l,base:u,ratio:f,range:d,subSequence:p,h1Matches:g,unit:h}=t;At(i,{type:l,base:u,ratio:f,range:d,subSequence:p,h1Matches:g,unit:h});let _=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),m=i.unit||h,b=!i.unit&&_.has(h)?"rem":m,x=o[c],D="@media "+(x==="print"?`${x}`:`screen and ${x}`);if(n.templates[D]={fontSize:i.base/n.browserDefault+b},!a){At(i,{sequence:{},scales:{},vars:{}}),Zt(i),so(t,r);continue}At(i,{sequence:{},scales:{},templates:{},vars:{}}),Zt(i),so(t,r)}},Ep=t=>{let e=A();if(t.h1Matches){let n=t.unit,o=Oa(t),{templates:r}=t;for(let s in o){let i=`h${parseInt(s)+1}`,a=r[i];r[i]={fontSize:e.useVariable?`var(${o[s]?.variable})`:`${o[s]?.scaling}${n}`,margin:a?a.margin:0,lineHeight:a?a.lineHeight:t.lineHeight,letterSpacing:a?a.letterSpacing:t.letterSpacing,fontWeight:a?a.fontWeight:900-s*100}}}},Ka=()=>{let t=A(),{typography:e}=t;Zt(e),Ep(e),wn(e),Op(e)},Ya=t=>{let e=A(),{typography:n}=e;return Ye(t,"fontSize",n)};var Za=t=>{if(!C(t))return;let n=A().shape;if(n)return n[t]!==void 0?n[t]:n[t.toLowerCase()]};var Xa=()=>{let t=A(),{timing:e}=t;Zt(e),wn(e)},he=t=>{let e=A(),{timing:n}=e;return n[t]||n[ys(t)]||t},Qt=(t,e="timing")=>{let n=A(),{timing:o}=n;return Ye(t,e,o)};var Qa=()=>{let t=A(),{fontFamily:e,theme:n,typography:o}=t,r=t.document;return hn(r)?(no(t,"document",r),r=t.document={}):r||(r=t.document={}),At(r,{theme:n.document,fontFamily:mn(e),fontSize:o.base,lineHeight:o.lineHeight})};var ec={document:Kt},Rp=new WeakMap,Dp=new WeakMap,Tk=128,Ip=1048576,Ja=8192,nc=t=>t.nodeType===1&&t.localName==="symbol"&&t.getAttribute("id"),Mp=t=>t.nodeType===8||t.nodeType===3&&!t.textContent.trim(),Ak=(t,e)=>{let n=1,o=t.ownerDocument;if(o&&typeof o.createTreeWalker=="function"){let s=o.createTreeWalker(t,4294967295);for(;s.nextNode();)if(++n>e)return n;return n}let r=[t];for(;r.length;){let s=r.pop().childNodes||[];for(let i=0;i<s.length;i++){if(++n>e)return n;r.push(s[i])}}return n},tc=(t,e)=>{if(typeof t.importNode=="function")return t.importNode(e,!0);let n=e.cloneNode(!0);return typeof t.adoptNode=="function"?t.adoptNode(n):n},vk=(t,e)=>{if(typeof t.prepend=="function")return t.prepend(e);let n=t.firstChild!==void 0?t.firstChild:t.childNodes&&t.childNodes[0];return typeof t.insertBefore=="function"?t.insertBefore(e,n||null):t.appendChild(e)},js=(t,e)=>{let n=A();if(!t){n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("setSVG: val is not defined",e));return}return n.useSvgSprite?Da(e,t):t},Ok=(t,e=ec)=>{let n=A(),o=Object.keys(t).length?{}:n.svg;for(let r in t)o[r]=t[r];Np(o,e)},hr=(t,e)=>{let n=A();return n.useIconSprite&&!n.semanticIcons?.[e]?js(t,e):t},oc=(t,e=ec)=>{let n=A(),o=Object.keys(t).length?{}:n.icons;for(let r in t)o[r]=t[r];Np(o,e)},Bp=(t,e={isRoot:!0})=>{if(!t||!t.createElementNS)return;let n=t.createElementNS("http://www.w3.org/2000/svg","svg");return e.isRoot&&(n.setAttribute("aria-hidden","true"),n.setAttribute("width","0"),n.setAttribute("height","0"),n.setAttribute("style","position:absolute"),n.setAttribute("id","svgSprite")),n},Ek=t=>{let e=t&&t.defaultView;return e&&typeof e.DOMParser=="function"?e.DOMParser:typeof DOMParser<"u"?DOMParser:null},Rk=(t,e)=>{let n=Ek(t);if(n){let o=`<svg xmlns="http://www.w3.org/2000/svg">${e}</svg>`,s=new n().parseFromString(o,"image/svg+xml");return s.querySelector("parsererror")?null:s.documentElement}return null},Dk=(t,e,n)=>{let o=String(n),r=Dp.get(e),s=r?.entries.get(o);if(s)return r.entries.delete(o),r.entries.set(o,s),s.root;let i=Rk(t,o);if(i||(i=Bp(t,{isRoot:!1}),i.innerHTML=o),o.length>Ip)return i;let a=Ak(i,Ja);if(a>Ja)return i;for(r||(r={entries:new Map,units:0,nodes:0},Dp.set(e,r));r.entries.size>=Tk||r.units+o.length>Ip||r.nodes+a>Ja;){let c=r.entries.keys().next().value,l=r.entries.get(c);r.units-=c.length,r.nodes-=l.nodes,r.entries.delete(c)}return r.entries.set(o,{root:i,nodes:a}),r.units+=o.length,r.nodes+=a,i},Lp=t=>{let e=new Map;for(let n of t.children){let o=nc(n);if(!o)continue;let r=e.get(o)||[];r.push(n),e.set(o,r)}return e},Ik=t=>t.replace(/["\\\u0000-\u001f\u007f]/g,e=>`\\${e.charCodeAt(0).toString(16)} `),Pp=(t,e,n,o)=>{let r=0,s=e.childElementCount>8?Lp(n):null,i=a=>{if(!s)try{return[...n.querySelectorAll(`symbol[id="${Ik(a)}"]`)].filter(c=>c.parentNode===n)}catch{s=Lp(n)}return s.get(a)};for(let a of e.childNodes){if(Mp(a))continue;let c=nc(a);if(!c&&o){let f=r++,d=o.nodes[f];if(!d&&o.complete||d?.parentNode===n)continue;let p=tc(t,d||a);n.appendChild(p),o.nodes[f]=p;continue}let l=c&&i(c),u=l&&l[0];if(!u)u=tc(t,a),n.appendChild(u);else if(!u.isEqualNode(a)){let f=tc(t,a);n.replaceChild(f,u),u=f}if(l)for(let f=1;f<l.length;f++)l[f].remove();c&&s&&s.set(c,[u])}},Np=(t,e=ec)=>{let n=A(),o=e.document||Kt;if(!o||!o.documentElement)return n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("To append SVG sprites it should be run in browser environment")),Ra(t);let r=o.querySelector("#svgSprite"),s="";for(let d in t)s+=t[d];let i=r||Bp(o);if(!i||!i.nodeType)return;let a=d=>Dk(o,i,d),c=a(s),l=Rp.get(i);l||Rp.set(i,l=new WeakMap);let u=l.get(n);if(u||l.set(n,u=new Map),[...c.childNodes].some(d=>!Mp(d)&&!nc(d))){let d=[];for(let p in t)d.push(p);for(let p of d){let g=u.get(p);g||u.set(p,g={nodes:[],complete:!1}),Pp(o,d.length===1?c:a(t[p]),i,g),g.complete=!0}}else{Pp(o,c,i);for(let d in t)u.has(d)||u.set(d,{nodes:[],complete:!0})}r||vk(o.body,i);for(let d in t)n.__svgCache[d]=!0};var rc=(t={})=>{let e=A(),n=e.typography||{},o=e.document||{},r=E(e.reset)?e.reset:e.reset={};if(r[":root"]){let c=r,l=n.templates||{};c.body={...e.useDocumentTheme?Te("document"):{},...l.body},c.h1=l.h1,c.h2=l.h2,c.h3=l.h3,c.h4=l.h4,c.h5=l.h5,c.h6=l.h6}let{body:s,...i}=n.templates||{},a=e.useDocumentTheme?Te("document"):{};if(r.html&&dn(r.html,a),n.unit)for(let c in i){if(c.slice(0,6)!=="@media")continue;let l=i[c];delete i[c],!(!l||!l.fontSize)&&(r[c]||(r[c]={}),r[c].html||(r[c].html={}),r[c].html.fontSize===void 0&&(r[c].html.fontSize=l.fontSize))}if(n.unit){let c=e.media||{};for(let l in n){if(l.charAt(0)!=="@")continue;let u=n[l];if(!u||u.unit===n.unit||!u.unit)continue;let f=u.unit,d=u.base||n.base,p=u.browserDefault||n.browserDefault,g=l.slice(1),h=c[g];if(!h)continue;let _="@media "+(h==="print"?h:"screen and "+h);r[_]||(r[_]={}),r[_].html||(r[_].html={}),r[_].html.fontSize=d/p+f}}return Se(At(r,t),{html:{position:"absolute",width:"100%",height:"100%",top:"0",left:"0",margin:"0",WebkitFontSmoothing:"subpixel-antialiased",textSizeAdjust:"100%",WebkitTextSizeAdjust:"100%",...a,fontSize:n.unit?n.base/n.browserDefault+n.unit:n.browserDefault+"px",fontFamily:o.fontFamily,lineHeight:o.lineHeight},body:{boxSizing:"border-box",height:"100%",margin:0,fontFamily:o.fontFamily,fontSize:n.unit?"1"+e.unit.default:n.base/n.browserDefault+e.unit.default,...i,...s},a:{color:"currentColor"},button:{color:"inherit",font:"inherit",background:"transparent",border:"none",cursor:"pointer",appearance:"none",WebkitAppearance:"none"},"input, select, textarea":{color:"inherit",font:"inherit"},fieldset:{border:0,padding:0,margin:0}},bn)};var Lk=new Set(["fallback"]),sc=new Set,$p=(t,e)=>{sc.has(t)||(sc.add(t),!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&j()&&console.warn(e))},Pk=()=>{sc.clear()},Fp=t=>{for(let e in t)delete t[e];return t},ic=()=>{let t=A(),e=E(t.cssSkinVars)?Fp(t.cssSkinVars):t.cssSkinVars={},n=E(t.cssSkinFallback)?Fp(t.cssSkinFallback):t.cssSkinFallback={},o=t.skins;if(!E(o))return e;let r=t.varPrefix?t.varPrefix+"-":"",s=t.color||{},i=t.cssVars||{},a=c=>C(c)&&Object.prototype.hasOwnProperty.call(s,c)?`var(--${r}color-${c})`:c;for(let c in o){let l=o[c];if(!E(l))continue;let u={};for(let f in l){if(Lk.has(f))continue;let d=l[f];if(E(d))for(let p in d){let g=`--${r}theme-${f}-${p}`;t.useVariable!==!1&&!(g in i)&&$p(`${c}/${f}/${p}`,`[scratch] skin "${c}" rewrites theme "${f}" param "${p}", which the theme does not declare \u2014 no element reads ${g}, so the skin changes nothing there. Declare "${p}" on the "${f}" theme (its no-skin value).`),u[g]=a(d[p])}}e[c]=u,C(l.fallback)&&(n[c]=l.fallback)}for(let c in n){let l=n[c];e[l]||($p(`${c}/fallback/${l}`,`[scratch] skin "${c}" falls back to "${l}", which is not a declared skin \u2014 the reduced-transparency fallback is skipped.`),delete n[c])}return e},jp=(t,e)=>{let n=`[data-skin="${t}"]`;return!e||e===":root"?`:root${n}, ${n}`:`${e}${n}, ${n} ${e}, ${e} ${n}`},Mk=(t,e,n)=>{let o={};if(!E(t))return o;for(let s in t)o[jp(s,n)]=t[s];let r={};for(let s in e||{}){let i=t[e[s]];i&&(r[jp(s,n)]=i)}return Object.keys(r).length&&(o["@media (prefers-reduced-transparency: reduce)"]=r),o};var Vp=/*@__PURE__*/__smblsNs({},{STANDARD_SCHEME_QUERIES:()=>op,__resetSkinWarnings:()=>Pk,appendSVGSprite:()=>Ok,appendSvgIconsSprite:()=>oc,applyDocument:()=>Qa,applyHeadings:()=>Ep,applyReset:()=>rc,applySkins:()=>ic,applySpacingSequence:()=>$a,applyTimingSequence:()=>Xa,applyTypographySequence:()=>Ka,atSchemes:()=>ao,buildSkinVarStyles:()=>Mk,checkIfBoxSize:()=>Na,colorPairSchemes:()=>Ma,forcedScheme:()=>fr,getColor:()=>z,getFontFamily:()=>qa,getFontSizeByKey:()=>Ya,getMediaBorder:()=>Va,getMediaColor:()=>yt,getMediaTheme:()=>Te,getSafeInk:()=>pp,getSafeInkInfo:()=>ak,getShadow:()=>ja,getShapeByKey:()=>Za,getSpacingBasedOnRatio:()=>pe,getSpacingByKey:()=>gt,getTheme:()=>Sk,getTimingByKey:()=>Qt,getTimingFunction:()=>he,inForcedColors:()=>sr,isForcedColorsQuery:()=>ir,isIntendedSystemColorWord:()=>ar,isPlainColor:()=>io,literalPairCompound:()=>ur,literalSchemeMap:()=>Cn,quietColorProbe:()=>cr,resolveBorderValue:()=>Vt,resolveColorRgb:()=>lr,resolveColorsInGradient:()=>lo,resolveShadowNonColorWord:()=>Ns,resolveShadowValue:()=>dr,runThroughMedia:()=>Op,schemeGuardSelector:()=>sp,schemeMediaQuery:()=>rp,setAdaptiveSchemeVar:()=>co,setColor:()=>kn,setFont:()=>Ga,setFontFamily:()=>Fs,setGradient:()=>Bs,setMediaTheme:()=>$s,setSVG:()=>js,setShadow:()=>fo,setSvgIcon:()=>hr,setTheme:()=>Ha,splitSpacedValue:()=>Fa});var Up=(t,e)=>Va(t,e),Wp=t=>{if(C(t))return gn.test(t)?t:t.split(/\s+/).map(e=>{if(e=e.trim(),!e)return"";if(ut(e))return`var(${e})`;if(/^\d/.test(e)||e.includes("px")||e==="0")return e;let n=z(e);return we(n)?n:e}).join(" ")},zp=(t,e)=>ja(t,e),cc=(t,e)=>{if(!C(t))return;let n=A();if(!n.useVariable){let o=Bk(t,e,n);if(o!==void 0)return o}return ac(t,e)},Bk=(t,e,n)=>ur(t,e==="auto"?null:e,n,{commas:!0,resolve:ac,resolveScheme:(o,r)=>ac(r(s=>z(s,"@"+o,n)),null)}),ac=(t,e)=>_n(t,$k,Nk,e),Nk={commas:!0,keywords:new Set(["inset","none"])},$k=(t,e)=>{if(!we(z(t)))return Ns(t);let n=yt(t,e);return E(n)?Object.values(n).filter(o=>o.includes(": "+e))[0]:n},Hp=(t,e)=>{if(!C(t))return;let n=A();return Pe(t).map(o=>{let r=o.trim();if(ut(r))return`var(${r})`;if(/^var\(/.test(r)||r.includes("url"))return r;if(n.gradient?.[r]){let s=yt(r,e);if(C(s))return s;if(E(s)){for(let i in s)if(C(s[i]))return s[i]}return r}return r.includes("gradient")?lo(r,e):r.includes("/")||r.startsWith("http")||r.includes(".")&&!vt(r)?`url(${r})`:r}).join(", ")},lc=new Set(["auto","cover","contain"]),fc=new Set(["center","top","bottom","left","right"]),Fk=(t,e,n,o)=>{if(n.has(t))return t;let r=Sn(()=>pe(o,e,t));return r&&r[e]!==void 0?r[e]:t},gr=(t,e,n,o)=>C(t)?Pe(t).map(r=>W(r.trim()).map(s=>Fk(s,e,n,o)).join(" ")).join(", "):t,Gp=t=>C(t)&&W(t).map(e=>gt(e,"gap").gap).join(" "),qp=t=>{if(!C(t))return t;let e=A();return W(t).map(n=>Be.test(n)?rr(n,e.spacing):n).join(" ")},jk=t=>{if(!C(t))return;let e=t.split(" ");return e.length?e.map(n=>ut(n)?`var(${n})`:n.length<3||n.includes("ms")?Qt(n).timing||n:he(n)?he(n):n).join(" "):t},uc=(t,e,n)=>{if(C(t))return t.split(",").map(o=>Qt(o).timing||o).join(",")},Kp=t=>{if(!C(t))return;let e=t.split(",");if(e.length)return e.map(jk).join(",")};function rt(t,e,n={},o={}){let r=qe.call(this,e||n[t]);if(r==null)return;let s;if(C(r)){if(/^(?:env|var)\(/.test(r.trim()))return{[t]:r};if(r.includes("(")){let c=xn(r);s=c[0],r=c[1]}let i=n.scaleBoxSize,a=Na(t);!i&&a&&!o.ratio&&(r=Fa(r))}return o.ratio?pe(n,t,r,s):gt(r,t,void 0,s)}var I=(t,e=null,n)=>rt(t,e,n,{ratio:!0}),Vk=(t,e,n)=>C(t)?W(t).map(o=>Be.test(o)?pe(e,n,o)[n]:o).join(" "):t,Tn=(t,e,n,o="borderRadius")=>{if(C(t))return{[o]:W(t).map(r=>{let s=Za(r);return s!==void 0?Vk(s,e,n):pe(e,n,r)[n]}).join(" ")}};var uo="__smblsThemeRootOwner",po=t=>{let e=t&&t.__prefersListener,n=t&&t.__prefersMq;if(e&&n)try{typeof n.removeEventListener=="function"?n.removeEventListener("change",e):typeof n.removeListener=="function"&&n.removeListener(e)}catch{try{n.removeListener(e)}catch{}}t&&(t.__prefersListener=null,t.__prefersMq=null)},Zp=(t,e,n)=>{if(!(!t||!e)){po(t),t.__prefersListener=n,t.__prefersMq=e;try{e.addEventListener("change",n)}catch{e.addListener(n)}}},Uk=(t,e)=>{let n=A(),{cssVars:o}=n,r=e.startsWith("--")?e:`--${e}`;return o[r]=t,t},Ot=t=>t,Wk=(t,e)=>{if(C(t)||to(t)){let n=A();if(n.cssVars&&e){let o=n.varPrefix?n.varPrefix+"-":"";n.cssVars[`--${o}size-${e}`]=t}}return t},Yp={color:kn,gradient:Bs,font:Ga,fontFamily:Fs,fontfamily:Fs,theme:Ha,icons:hr,semanticIcons:Ot,semanticicons:Ot,svg:js,svgData:Ot,typography:Ot,shadow:fo,spacing:Ot,media:Ot,grid:Ot,class:Ot,timing:Ot,reset:Ot,unit:Ot,animation:Ot,vars:Uk,sizes:Wk,shape:Ot,skins:Ot,viewTransition:Ot},zk=(t,e,n,o)=>{no(t,n,e);let r={};for(let s of o)t[s]===e&&(t[s]=r);return t.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("[scratch] design-system family",n,"resolved to a host object; parked it and allocated a plain bucket")),r},Hk=(t,e,n)=>{let o=A(),r=ba(t),s=r.toLowerCase(),i=o[r]||o[s]||o[t],a=hn(i)?zk(o,i,s,[r,s,t]):i,c=Yp[r]||Yp[s];if(c)try{let l=c(e,n);return a&&(a[n]=l),a}catch(l){o.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("Error setting",s,"value",e,n,l))}if(!c){let l=a||(o[s]={});return l[n]=e,l}o.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("Can not find",s,"method in scratch"))},Gk=(t,e)=>{let n=A(),o=t.toLowerCase();if(hn(e))return no(n,o,e),n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("[scratch] ignoring host object passed as the",o,"design-system family")),n[o]||n[t];if(e==null)return n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("[scratch] skipping empty design-system family",o)),n[o]||n[t];let r=Object.keys(e).sort((s,i)=>{let a=E(e[s])||q(e[s])?1:0,c=E(e[i])||q(e[i])?1:0;return a-c});if(o==="color"){let s=n[o]||(n[o]={});for(let i of r)i in s||(s[i]=e[i])}return r.forEach(s=>{try{return Hk(o,e[s],s)}catch(i){n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("Error setting",o,"value",e[s],s,i))}}),n[o]||n[t]},nP=(t,e)=>{let n=e||A();n.globalTheme=t;let r=ds(n)||(typeof document<"u"?document:null),s=r&&r.defaultView||(typeof window<"u"?window:null);if(r){let a=n.themeRoot||r.documentElement,c=t&&t!=="auto";if(a[uo]=n,c)po(n),a.setAttribute("data-theme",t),n.resolvedTheme=t,t==="dark"||t==="light"?a.style.colorScheme=t:a.style.colorScheme="light dark";else if(s&&s.matchMedia){let l=f=>{let d=f.matches?"dark":"light";a.setAttribute("data-theme",d),n.resolvedTheme=d},u=s.matchMedia("(prefers-color-scheme: dark)");l(u),a.style.colorScheme="light dark",Zp(n,u,l)}else po(n),a.setAttribute("data-theme","light"),n.resolvedTheme="light",a.style.colorScheme="light"}let i=n.varPrefix?`--${n.varPrefix}-theme-`:"--theme-";for(let a in n.cssVars)a.startsWith(i)&&delete n.cssVars[a];for(let a in n.cssMediaVars)delete n.cssMediaVars[a];if(r&&n.cssVars){let a=n.scopeSelector||":root",c=r.styleSheets;for(let l=0;l<c.length;l++)try{let u=c[l].cssRules;for(let f=0;f<u.length;f++)if(u[f].selectorText===a){for(let d in n.cssVars)u[f].style.setProperty(d,n.cssVars[d]);return n}}catch{}}return n},qk=t=>{let n=ds(t)||(typeof document<"u"?document:null),o=n&&n.defaultView||(typeof window<"u"?window:null),r=n&&(t.themeRoot||n.documentElement);if(r&&typeof r.setAttribute=="function")if(t.globalTheme&&t.globalTheme!=="auto")po(t),r.setAttribute("data-theme",t.globalTheme),t.resolvedTheme=t.globalTheme,r[uo]=t,t.globalTheme==="dark"||t.globalTheme==="light"?r.style.colorScheme=t.globalTheme:r.style.colorScheme="light dark";else if(r[uo]&&r[uo]!==t&&r.hasAttribute("data-theme"))po(t),t.resolvedTheme=r.getAttribute("data-theme");else if(o&&o.matchMedia){let i=c=>{let l=c.matches?"dark":"light";r.setAttribute("data-theme",l),t.resolvedTheme=l},a=o.matchMedia("(prefers-color-scheme: dark)");i(a),r.style.colorScheme="light dark",r[uo]=t,Zp(t,a,i)}else po(t),r.setAttribute("data-theme","light"),t.resolvedTheme="light",r.style.colorScheme="light",r[uo]=t},Kk={},oP=(t,e=Kk)=>{let n=e.config||A(),{version:o,verbose:r,useVariable:s,useReset:i,useSvgSprite:a,useFontImport:c,useIconSprite:l,globalTheme:u,themeRoot:f,useDocumentTheme:d,useDefaultConfig:p,semanticIcons:g,hoverMedia:h,focusableRing:_,files:m,assets:b,...x}=t;e.newConfig&&(n=zd(e.newConfig)),pn(x.document)&&(n.__domDocument=x.document,delete x.document),pn(n.document)&&(n.__domDocument||(n.__domDocument=n.document),n.document={}),m!==void 0&&(n.files=m),b!==void 0&&(n.assets=b),r!==void 0&&(n.verbose=r),s!==void 0&&(n.useVariable=s),i!==void 0&&(n.useReset=i),c!==void 0&&(n.useFontImport=c),a!==void 0&&(n.useSvgSprite=a),l!==void 0&&(n.useIconSprite=l),d!==void 0&&(n.useDocumentTheme=d),u!==void 0&&(n.globalTheme=u),f!==void 0&&(n.themeRoot=f),t.useThemeSuffixedVars!==void 0&&(n.useThemeSuffixedVars=t.useThemeSuffixedVars),p!==void 0&&(n.useDefaultConfig=p),g!==void 0&&(n.semanticIcons=g),h!==void 0&&(n.hoverMedia=h),_!==void 0&&(n.focusableRing=_),n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.log(n)),qk(n),n.__svgCache||(n.__svgCache={}),Ls(x);let D=Object.keys(x).filter(k=>!k.startsWith("__")),y=new Set(D);D.forEach(k=>{let v=k.toLowerCase();v!==k&&y.has(v)&&Se(x[v],x[k],bn)});let S=new Set;if(D.forEach(k=>{let v=k.toLowerCase(),R=v!==k&&y.has(v)?v:k;S.has(R)||(S.add(R),Gk(R,x[R]))}),n.varPrefix&&(n.typography&&(n.typography.varPrefix=n.varPrefix),n.spacing&&(n.spacing.varPrefix=n.varPrefix),n.timing&&(n.timing.varPrefix=n.varPrefix)),x.typography)try{Ka()}catch(k){n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("Error applying typography sequence",k))}if(x.spacing)try{$a()}catch(k){n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("Error applying spacing sequence",k))}if(x.timing)try{Xa()}catch(k){n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("Error applying timing sequence",k))}try{ic()}catch(k){n.verbose&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("Error applying skins",k))}Qa();let w=rc();return w&&(n.reset=w),n};var sP=1,Yk=["font","files","assets","themeRoot"],Zk=new Set(Yk),ho="$smbls",Vs=t=>{if(t===null||typeof t!="object")return!1;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null},Xk=t=>t.startsWith("__")||Zk.has(t),iP=t=>{if(!Vs(t))return null;let e=new Map,n=!1,o=s=>{if(n)return;if(s===void 0)return{[ho]:"u"};if(s===null||typeof s=="string"||typeof s=="boolean")return s;if(typeof s=="number")return Number.isFinite(s)&&!Object.is(s,-0)?s:{[ho]:"n",v:Object.is(s,-0)?"-0":String(s)};if(typeof s!="object"){n=!0;return}let i=e.get(s);if(i!==void 0)return{[ho]:"r",i};if(Array.isArray(s)){e.set(s,e.size);let c=new Array(s.length);for(let l=0;l<s.length;l++){if(!(l in s)){n=!0;return}c[l]=o(s[l])}return c}if(!Vs(s)||Object.prototype.hasOwnProperty.call(s,ho)){n=!0;return}e.set(s,e.size);let a={};for(let c of Object.keys(s))a[c]=o(s[c]);return a},r={};for(let s of Object.keys(t))if(!Xk(s)&&(r[s]=o(t[s]),n))return null;return r},Qk=(t,e)=>{let n=Object.keys(e),o=0;for(let r in t){if(o===n.length)return!0;if(r!==n[o])return!1;o++}return o===n.length},aP=(t,e)=>{let n=[],o=(s,i)=>{if(s===null||typeof s!="object")return s;if(Array.isArray(s)){let l=new Array(s.length);n.push(l);for(let u=0;u<s.length;u++)l[u]=o(s[u]);return l}let a=s[ho];if(typeof a=="string"){if(a==="u")return;if(a==="n")return s.v==="-0"?-0:Number(s.v);if(a==="r")return n[s.i]}let c=i;if(c&&!Qk(s,c))for(let l of Object.keys(c))delete c[l];else c||(c={});n.push(c);for(let l in s)c[l]=o(s[l]);return c},r=new Set;for(let s in t){let i=t[s],a=e[s],c=Vs(a)&&!r.has(a)&&Vs(i)&&typeof i[ho]!="string"?a:null;c&&r.add(c);let l=o(i,c);l!==a&&(e[s]=l)}return e};var L=(t,e)=>e.split(" ").map(n=>t+"-"+n),hc="top right bottom left",gc=hc+" block block-start block-end inline inline-start inline-end",It="start end",$e="width style color",Us=t=>L(t,gc),Jk=(()=>{let t=L("border","width style color image");for(let e of gc.split(" "))t.push("border-"+e,...L("border-"+e,$e));return t})(),Xp=t=>[...L("border-"+t,$e+" start end"),...L("border-"+t+"-start",$e),...L("border-"+t+"-end",$e)],tt={animation:L("animation","name duration timing-function delay iteration-count direction fill-mode play-state timeline range range-start range-end"),background:L("background","image position position-x position-y size repeat origin clip attachment color"),border:Jk};for(let t of["width","style","color"])tt["border-"+t]=gc.split(" ").map(e=>"border-"+e+"-"+t);for(let t of hc.split(" "))tt["border-"+t]=L("border-"+t,$e);tt["border-block"]=Xp("block");tt["border-inline"]=Xp("inline");Object.assign(tt,{"border-image":L("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:L("column","width count"),"column-rule":L("column-rule",$e),container:L("container","name type"),"contain-intrinsic-size":L("contain-intrinsic","width height"),flex:L("flex","grow shrink basis"),"flex-flow":L("flex","direction wrap"),font:[...L("font","style variant weight stretch size"),"line-height",...L("font","family size-adjust kerning feature-settings variation-settings optical-sizing")],gap:["row-gap","column-gap"],grid:L("grid","template template-rows template-columns template-areas auto-rows auto-columns auto-flow"),"grid-template":L("grid-template","rows columns areas"),"grid-area":L("grid","row column row-start row-end column-start column-end"),"grid-row":L("grid-row",It),"grid-column":L("grid-column",It),inset:[...hc.split(" "),...L("inset","block block-start block-end inline inline-start inline-end")],"inset-block":L("inset-block",It),"inset-inline":L("inset-inline",It),"list-style":L("list-style","type position image"),margin:Us("margin"),"margin-block":L("margin-block",It),"margin-inline":L("margin-inline",It),mask:L("mask","image mode repeat position clip origin size composite"),offset:L("offset","position path distance rotate anchor"),outline:L("outline",$e),overflow:L("overflow","x y"),"overscroll-behavior":L("overscroll-behavior","x y"),padding:Us("padding"),"padding-block":L("padding-block",It),"padding-inline":L("padding-inline",It)});for(let t of["content","items","self"])tt["place-"+t]=["align-"+t,"justify-"+t];Object.assign(tt,{"scroll-margin":Us("scroll-margin"),"scroll-padding":Us("scroll-padding"),"text-decoration":L("text-decoration","line style color thickness"),"text-emphasis":L("text-emphasis","style color"),transition:L("transition","property duration timing-function delay behavior")});var t0="block-start block-end inline-start inline-end".split(" ");for(let t of t0)tt["border-"+t]=L("border-"+t,$e);for(let t of["block","inline"])for(let e of $e.split(" "))tt["border-"+t+"-"+e]=L("border-"+t,It.split(" ").map(n=>n+"-"+e).join(" "));Object.assign(tt,{"animation-range":L("animation-range",It),"background-position":L("background-position","x y"),"font-variant":L("font-variant","alternates caps east-asian emoji ligatures numeric position"),"font-synthesis":L("font-synthesis","weight style small-caps"),marker:L("marker","start mid end"),"position-try":L("position-try","order fallbacks"),"scroll-margin-block":L("scroll-margin-block",It),"scroll-margin-inline":L("scroll-margin-inline",It),"scroll-padding-block":L("scroll-padding-block",It),"scroll-padding-inline":L("scroll-padding-inline",It),"scroll-timeline":L("scroll-timeline","name axis"),"view-timeline":L("view-timeline","name axis inset"),"text-box":L("text-box","trim edge"),"text-wrap":L("text-wrap","mode style"),"white-space":["white-space-collapse","text-wrap-mode"]});tt.font.push("font-language-override");var Ne=t=>"corner-"+t+"-shape";tt["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(Ne);Object.assign(tt,{"corner-top-shape":["top-left","top-right"].map(Ne),"corner-right-shape":["top-right","bottom-right"].map(Ne),"corner-bottom-shape":["bottom-left","bottom-right"].map(Ne),"corner-left-shape":["top-left","bottom-left"].map(Ne),"corner-block-start-shape":["start-start","start-end"].map(Ne),"corner-block-end-shape":["end-start","end-end"].map(Ne),"corner-inline-start-shape":["start-start","end-start"].map(Ne),"corner-inline-end-shape":["start-end","end-end"].map(Ne)});for(let t in tt){let e=tt[t],n=new Set(e);for(let o=0;o<e.length;o++){let r=tt[e[o]];if(r)for(let s of r)n.has(s)||(n.add(s),e.push(s))}}var Ae={};for(let t in tt)for(let e of tt[t])(Ae[e]||(Ae[e]=[])).push(t);var dc=new Map,Qp=t=>{let e=dc.get(t);if(e!==void 0)return e;dc.set(t,0),e=0;let n=Ae[t];if(n)for(let o=0;o<n.length;o++)e=Math.max(e,Qp(n[o])+1);return dc.set(t,e),e};function Ws(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(Ae,e)?Qp(e):0}var e0=/^(?: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)$/,Jp=/^(?:border(?:-(?:top|right|bottom|left|block|inline)(?:-(?:start|end))?)?|outline|column-rule)$/,n0=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","auto"]),pc=t=>W(String(t).replace(/\s*!important\s*$/,""));function zs(t,e,n){let o=tt[t];if(!o||o.indexOf(n)===-1)return!1;if(e0.test(t))return!0;if(!Jp.test(t)||typeof e=="function"||e==null||n.indexOf("border-image")===0)return!1;let r=pc(e);return r.length>=3?!0:/-style$/.test(n)&&r.some(s=>n0.has(s.toLowerCase()))}var o0=new Set(["thin","medium","thick"]),r0=t=>/^[+-]?\.?\d/.test(t)||o0.has(t.toLowerCase())||/^(?:calc|min|max|clamp)\(/i.test(t)||/^var\(--(?:[a-zA-Z0-9]{1,6}-)?spacing-/.test(t),s0=t=>t==="transparent"||t==="currentcolor"||Object.prototype.hasOwnProperty.call(xs,t),i0=t=>Qo(t)||/^var\(--(?:(?!theme-|shadow-)[a-zA-Z0-9]{1,6}-)?color-/.test(t)||s0(t.toLowerCase()),a0=/-(width|style|color)$/;function _c(t,e,n){if(zs(t,e,n))return!0;let o=tt[t];if(!o||o.indexOf(n)===-1||typeof e=="function"||e==null)return!1;if(Jp.test(t)){if(n.indexOf("border-image")===0)return!1;let r=a0.exec(n);if(!r)return!1;let s=pc(e);return s.length===1&&/^(?:0|none)$/i.test(s[0])?r[1]!=="color":r[1]==="width"&&s.some(r0)}if(t==="background"&&n==="background-color"){let r=pc(e);return r.length===1&&i0(r[0])}return!1}var yr=new Map,c0=null,mc=null,l0=null;function f0(t){t.batchAtomicCss&&(mc=t.batchAtomicCss),t.compoundCssClass&&(l0=t.compoundCssClass)}var u0=new Set,eh=t=>!!(t&&t.documentElement&&typeof t.createElement=="function"&&t.head!==void 0);function d0(t){try{let e=A();e&&(e.__domDocument=t)}catch{}t&&u0.add(t)}function br(){try{let t=A();if(t){if(eh(t.__domDocument))return t.__domDocument;if(eh(t.document))return t.document}}catch{}return typeof document<"u"?document:null}var Lt={atomic:0,variable:0,global:0,keyframes:0,duplicate:0,invalid:0,dropped:0};function hh(){return{...Lt}}function p0(){for(let t in Lt)Lt[t]=0;Ys=!1}var Ys=!1,qs=(t,e)=>`${t} ${e}${t===1?"":"s"}`;function h0(t){let e=Date.parse(t);if(!isFinite(e))return"";let n=Math.floor((Date.now()-e)/864e5);return n<1?" (today)":` (${qs(n,"day")} ago)`}function g0(){try{let t=O0();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 _0(t,e){if(Ys)return!1;Ys=!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 ${qs(Lt.variable,"variable rule")} and ${qs(Lt.atomic,"atomic rule")}, while the design system held ${qs(e,"CSS variable")}.
20
20
  The document will render UNSTYLED and nothing else will report an error.
21
21
  This is what a STALE dist/ looks like: an obsolete emitter against a current design system.
22
22
  package : ${r}
23
23
  built : ${n}
24
24
  source : ${o}
25
25
  emitted : ${JSON.stringify(Lt)}
26
- sheets : the style[data-smbls] tiers currently hold ${x0()} rule(s)
26
+ sheets : the style[data-smbls] tiers currently hold ${g0()} rule(s)
27
27
  FIX : cd smbls && npm run check:stale # every package whose src is newer than its dist
28
28
  then rebuild the listed packages and clear the app's .parcel-cache
29
- Do NOT trust any browser measurement taken on this page until that reads clean.`),!0}function mh(){try{let t=A(),e=t&&(t.CSS_VARS||t.cssVars);return e?Object.keys(e).length:0}catch{return 0}}function bc(t){Zs||Lt.variable>0||Lt.atomic>0||yh(Math.max(t,mh()))}function k0(t){let e=t&&(t.CSS_VARS||t.cssVars);return yh(e?Object.keys(e).length:mh())}function yh(t){let e=_h();if(t===0)return{ok:!0,reason:"no-design-system",stats:e,varCount:t};if(!Dc())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 w0(n,t),{ok:!1,reason:n,stats:e,varCount:t}}var C0={display:"d",position:"pos",padding:"p",paddingTop:"pt",paddingRight:"pr",paddingBottom:"pb",paddingLeft:"pl",margin:"m",marginTop:"mt",marginRight:"mr",marginBottom:"mb",marginLeft:"ml",width:"w",height:"h",minWidth:"mnw",minHeight:"mnh",maxWidth:"mxw",maxHeight:"mxh",top:"t",right:"r",bottom:"b",left:"l",flex:"fx",flexDirection:"fxd",flexWrap:"fxw",flexGrow:"fxg",flexShrink:"fxs",flexBasis:"fxb",justifyContent:"jc",alignItems:"ai",alignSelf:"as",alignContent:"ac",gap:"g",rowGap:"rg",columnGap:"cg",gridTemplateColumns:"gtc",gridTemplateRows:"gtr",gridColumn:"gc",gridRow:"gr",overflow:"of",overflowX:"ofx",overflowY:"ofy",fontSize:"fs",fontWeight:"fw",fontFamily:"ff",fontStyle:"fst",lineHeight:"lh",letterSpacing:"ls",textAlign:"ta",textDecoration:"td",textTransform:"tt",color:"c",background:"bg",backgroundColor:"bgc",backgroundImage:"bgi",border:"bd",borderRadius:"br",borderColor:"bdc",borderWidth:"bdw",borderStyle:"bds",boxShadow:"bxsh",opacity:"op",zIndex:"z",cursor:"cur",transition:"tr",transform:"tf",animation:"an",visibility:"vis",whiteSpace:"ws",wordBreak:"wb",objectFit:"obj",pointerEvents:"pe",userSelect:"us",boxSizing:"bxz",outline:"ol",listStyle:"lis",textOverflow:"txo",verticalAlign:"va",float:"fl",clear:"cl",content:"cnt",backdropFilter:"bdf",filter:"flt",resize:"rsz",appearance:"apr",fill:"fil",stroke:"stk"};function T0(t){return t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}var _o=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,rh=new Map,te=t=>{if(_o(t))return t;let e=rh.get(t);return e===void 0&&(e=T0(t),rh.set(t,e)),e},sh=new Map,Oc=t=>{if(_o(t))return t;let e=sh.get(t);return e===void 0&&(e=t.replace(/-([a-z])/g,(n,o)=>o.toUpperCase()),sh.set(t,e)),e};function Xs(t){let e=2166136261;for(let n=0;n<t.length;n++)e^=t.charCodeAt(n),e=e*16777619>>>0;return e.toString(36)}function A0(t){let e=String(t);return e.length<=20?e.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():Xs(e)}var v0={"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 An(t,e){let n=v0[t];return n?`${t}:${e};${n}:${e};`:`${t}:${e};`}function Sc(t){let e="";for(let n in t){let o=t[n];if(typeof o!="object"||o===null)continue;let r="";for(let s in o)o[s]!=null&&(r+=An(te(s),o[s]));e+=`${n}{${r}}`}return e}function xc(t){return t.charCodeAt(0)===64&&!mo(t)}function ih(t){let e="";for(let n in t){let o=t[n];if(!xc(n)||typeof o!="object"||o===null)continue;let r="";for(let s in o){let i=o[s];i==null||typeof i=="object"||(r+=An(te(s),i))}e+=`${n}{${r}}`}return e}var O0="@media (hover: hover)",E0=/(?:^|[^\\]):hover(?![\w-])/;function Ec(){try{let t=A();if(t&&t.hoverMedia===!1)return!1}catch{}return!0}function vn(t,e,n){return n===!1||!E0.test(e)||n===void 0&&!Ec()?t:`${O0}{${t}}`}var bh=new Map;function R0(t,e,n,o){let r=yr.get(t);if(!r){let c=C0[e]||Xs(e),l=A0(n);r=o?`_${o}_${c}-${l}`:`_${c}-${l}`,yr.set(t,r)}let i=typeof n=="string"&&(n.indexOf("}")!==-1||n.indexOf("{")!==-1)?null:`.${r}{${An(te(e),n)}}`,a={className:r,rule:i,tier:i===null?null:Rc(i,!0,"atomic")};return bh.set(t,a),a}function ah(t,e,n){let o=(n?n+"":"")+t+":"+e,r=bh.get(o)||R0(o,t,e,n);return r.rule!==null&&Jt(r.rule,void 0,"atomic",!0,r.tier),r.className}var ch=new WeakMap,lh=new WeakMap;function Jt(t,e,n,o,r){let s=r||Rc(t,o,n);mr&&!e&&mr.push([t,n||"global",s]);let i=L0(e,s);if(!i)return Lt.dropped++,"dropped";let a=i.sheet,c=i.rules;if(c||(c=ch.get(a),c||(c=new Set,ch.set(a,c)),i.rules=c),c.has(t))return Lt.duplicate++,Lt[n||"global"]++,"duplicate";let l=lh.get(a);if(l&&l.has(t))return Lt.invalid++,"invalid";try{a.insertRule(t,a.cssRules.length)}catch{return l||(l=new Set,lh.set(a,l)),l.add(t),Lt.invalid++,"invalid"}return c.add(t),Lt[n||"global"]++,"inserted"}var Ut="0:0",wc="1:0",Sh="0:99",fh=/\((max|min)-width:\s*([\d.]+)(px|em|rem)?\)/g;function Rc(t,e,n){if(typeof t!="string"||!t)return Ut;if(t.charCodeAt(0)===64){if(!t.startsWith("@media")&&!t.startsWith("@supports")&&!t.startsWith("@container"))return Ut;let i=1/0,a=-1/0;fh.lastIndex=0;let c;for(;c=fh.exec(t);){let l=parseFloat(c[2])*(c[3]==="em"||c[3]==="rem"?16:1);c[1]==="max"?i=Math.min(i,l):a=Math.max(a,l)}return i!==1/0?"2:"+-i:a!==-1/0?"3:"+a:wc}if(t.charCodeAt(0)!==46)return n==="atomic"&&!e?Sh:Ut;if(!/^\.[\w-]+\{/.test(t))return wc;if(!e)return Ut;let o=t.indexOf("{"),r=t.indexOf(":",o);if(r===-1)return Ut;let s=zs(t.slice(o+1,r).trim());return s?"0:"+s:Ut}var go=null,D0=()=>{if(go)return go;let t=0;for(let e in Ae)t=Math.max(t,zs(e));go=[Ut];for(let e=1;e<=t;e++)go.push("0:"+e);return go.push(Sh,wc),go},uh=t=>{let e=t.indexOf(":");return[Number(t.slice(0,e)),Number(t.slice(e+1))]},dh=(t,e)=>{let[n,o]=uh(t),[r,s]=uh(e);return n!==r?n<r:o<s},I0=t=>t.getAttribute("data-tier")||Ut,kc=new WeakMap,Ys=!1,_r=null,Cc=0;function L0(t,e){if(Ys&&!t){let n=_r&&kc.get(_r),o=n&&n.get(e);if(o&&o.epoch===Cc)return o;let r=Qs(_r,e);return r&&(r.epoch=Cc),r}return Qs(t||br(),e)}function Dc(t,e){let n=Qs(t||br(),e);return n?n.sheet:null}function Qs(t,e){if(!t||!t.head)return null;let n=e||Ut,o=kc.get(t);o||(o=new Map,kc.set(t,o));let r=o.get(n);if(r&&r.node.parentNode===t.head&&r.node.sheet===r.sheet)return r;if(n!==Ut){let c=D0();for(let l=0;l<c.length&&dh(c[l],n);l++)Qs(t,c[l])}let s=n===Ut?t.head.querySelector("style[data-smbls]:not([data-tier])"):t.head.querySelector(`style[data-smbls][data-tier="${n}"]`);if(!s){s=t.createElement("style"),s.setAttribute("data-smbls",""),n!==Ut&&s.setAttribute("data-tier",n);let c=t.head.querySelectorAll("style[data-smbls]"),l=null;for(let f=0;f<c.length;f++)if(dh(n,I0(c[f]))){l=c[f];break}let u=c.length?c[c.length-1]:null;if(l)t.head.insertBefore(s,l);else if(u)t.head.insertBefore(s,u.nextSibling);else{let f=t.head.querySelector('style[data-brender], style[data-emotion="smbls"]');f?t.head.insertBefore(s,f):t.head.appendChild(s)}}let i=s.sheet;if(!i)return o.delete(n),null;let a={sheet:i,node:s,rules:null,epoch:0};return o.set(n,a),n===Ut&&(h0=i),a}function P0(t){let e=t||br();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 M0=8;function En(t,e,n,o){if(!t||typeof t!="object")return"";if(Ys)return ph(t,n,o);Ys=!0,_r=br(),Cc++;try{return ph(t,n,o)}finally{Ys=!1,_r=null}}function ph(t,e,n){let o=!!(n&&n.state),r=null,s=0,i=[],a=[],c=Object.keys(t);for(let u=0;u<c.length;u++){let f=c[u],d=t[f];d==null||d===!1||d===""||(typeof d=="object"?a.push([f,d]):yc&&!_o(f)?(r||(r=[]),r.push(f,String(d)),s++):i.push(ah(f,String(d),e)))}if(r&&s>=M0){let u=r.join("\0"),f=yc(u),d=f.indexOf("\0"),p=f.substring(0,d),g=f.substring(d+1);if(g){let h=g.split(`
30
- `);for(let _=0;_<h.length;_++)h[_]&&Jt(h[_],void 0,"atomic",!0)}i.push(p)}else if(r)for(let u=0;u<r.length;u+=2)i.push(ah(r[u],r[u+1],e));let l=[];for(let u=0;u<a.length;u++)l.push(F0(a[u][0],a[u][1],e,o));return i.concat(l).join(" ").trim()}var hh=new Map,B0=/^&?:(hover|focus|focus-visible|focus-within|active)(?![\w-])/;function mo(t){return/^@(media|supports|container)\b/.test(t)}function On(t){let e=[],n=0,o=0;for(let r=0;r<t.length;r++){let s=t.charCodeAt(r);s===40?n++:s===41?n--:s===44&&n===0&&(e.push(t.slice(o,r).trim()),o=r+1)}return e.push(t.slice(o).trim()),e}function N0(t){return typeof t!="string"||!t||mo(t)?!1:On(t).every(e=>B0.test(e))}var xh=t=>{let e=Object.prototype.toString.call(t);return e==="[object Object]"||e==="[object Array]"},Tc=32,Ac=1024,gh=!1;function Ks(t,e,n){if(gh)return;gh=!0;let o=[e,...n],r=o.length>12?[...o.slice(0,6),`\u2026${o.length-9} more\u2026`,...o.slice(-3)]:o;globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(`[@symbo.ls/css] ${t} at ${r.join(" > ")} \u2014 skipped. A style block may hold only CSS values and nested plain blocks; the rest of this rule is still emitted. (One warning per page.)`)}function $0(t){try{return JSON.stringify(t)}catch{let n=[],o=0;return JSON.stringify(t,function(r,s){if(!s||typeof s!="object")return s;for(;n.length&&n[n.length-1]!==this;)n.pop();if(!(n.length&&(n.includes(s)||!xh(s)||n.length>Tc||++o>Ac)))return n.push(s),s})}}function F0(t,e,n,o){let r=$0(e),s=t.indexOf(":hover")!==-1||r.indexOf(":hover")!==-1,i=s&&Ec(),a=(n?n+"":"")+t+r+(s&&!i?"rawhover":"")+(o?"state":""),c=yr.get(a);if(c){let y=hh.get(c);if(y)for(let S=0;S<y.length;S+=2)Jt(y[S],void 0,"atomic",void 0,y[S+1]);return c}c=n?`_${n}_c${Xs(a)}`:`_c${Xs(a)}`;let l=o?`.${c}.${c}`:`.${c}`,u=N0(t)?`${l}.${c}`:l,f="",d=[],p=y=>typeof y=="string"&&(y.indexOf("{")!==-1||y.indexOf("}")!==-1),g=new Set,h=0,_=(y,S)=>{g.add(S);let w="",k=Object.keys(S);for(let v=0;v<k.length;v++){let R=k[v],O=S[R];if(O!=null)if(typeof O=="object"){let $=[...y,R];g.has(O)?Ks("a style value that loops back to one of its own ancestors",t,$):xh(O)?$.length>Tc?Ks(`a style block nested more than ${Tc} levels deep`,t,$):++h>Ac?Ks(`a style object with more than ${Ac} nested blocks`,t,$):_($,O):Ks(`a ${Object.prototype.toString.call(O).slice(8,-1)} (not a style block)`,t,$)}else{if(p(O))continue;w+=An(te(R),O)}}g.delete(S),w&&(y.length===0?f+=w:d.push({chain:y,body:w}))};_([],e);let m=y=>y.startsWith(":")||y.startsWith("["),b=(y,S=!0)=>{let w=S&&y.length===1?u:l;if(!y.length)return w;let k=On(y[0]).map(v=>v.includes("&")?v.replace(/&/g,w):m(v)?`${w}${v}`:`${w} ${v}`);for(let v=1;v<y.length;v++){let R=On(y[v]),O=[];for(let $ of k)for(let B of R)B.includes("&")?O.push(B.replace(/&/g,$)):m(B)?O.push($+B):O.push($+" "+B);k=O}return k.join(", ")},x=[],D=(y,S)=>{let w=y.filter(mo),k=b(y.filter(O=>!mo(O)),w.length===0),v=`${k}{${S}}`;for(let O=w.length-1;O>=0;O--)v=`${w[O]}{${v}}`;v=vn(v,k,i);let R=Rc(v,void 0,"atomic");x.push(v,R),Jt(v,void 0,"atomic",void 0,R)};f&&D([t],f);for(let y of d)D([t,...y.chain],y.body);return hh.set(c,x),yr.set(a,c),c}var mr=null;function j0(t){let e=mr,n=[];mr=n;try{t()}finally{mr=e}return n}function V0(t){if(!Array.isArray(t))return;Dc();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++,Jt(n[0],void 0,o,void 0,n[2]||void 0)}e>0&&bc(e)}function vc(t){if(t==null||typeof t!="string"&&typeof t!="object")return;if(Dc(),typeof t=="string"){let s=t.indexOf("--")!==-1;Jt(t,void 0,s?"variable":"global"),s&&bc(1);return}let e=Ec(),n=0,o=Object.keys(t),r=s=>{let i=s.match(/max-width:\s*(\d+)/);return i?parseInt(i[1]):0};o.sort((s,i)=>{let a=s.startsWith("@media"),c=i.startsWith("@media");return!a&&!c?0:a?c?r(i)-r(s):1:-1});for(let s of o){let i=t[s];if(s.startsWith("@keyframes")){let a=Sc(i);a&&Jt(`${s}{${a}}`,void 0,"keyframes");continue}if(mo(s))for(let a in i){let c=i[a];if(a.startsWith("@keyframes")){let l=Sc(c);l&&Jt(`${s}{${a}{${l}}}`,void 0,"keyframes");continue}if(typeof c=="object"&&c!==null){let l="",u=0,f=a.charCodeAt(0)===64;for(let d in c){let p=c[d];p!=null&&(f&&typeof p=="object"||(_o(d)&&u++,l+=An(te(d),p)))}f&&(l+=ih(c)),n+=u,Jt(vn(`${s}{${a}{${l}}}`,a,e),void 0,u?"variable":"global")}else if(c!=null){let l=_o(a);l&&n++,Jt(`${s}{${An(te(a),c)}}`,void 0,l?"variable":"global")}}else{let a="",c=!1,l=0,u=s.charCodeAt(0)===64;for(let f in i){let d=i[f];if(d!=null)if(typeof d=="object"){if(u&&xc(f))continue;c=!0}else _o(f)&&l++,a+=An(te(f),d)}if(u&&(a+=ih(i)),n+=l,a&&Jt(vn(`${s}{${a}}`,s,e),void 0,l?"variable":"global"),c){let f=[],d=[];for(let p in i)if(typeof i[p]=="object"&&i[p]!==null){if(u&&xc(p))continue;mo(p)?f.push(p):d.push(p)}f.sort((p,g)=>{let h=_=>{let m=_.match(/max-width:\s*(\d+)/);return m?parseInt(m[1]):0};return h(g)-h(p)});for(let p of d)vc({[`${s} ${p}`]:i[p]});for(let p of f)vc({[p]:{[s]:i[p]}})}}}n>0&&bc(n)}function Js(t,e){return Jt(`@keyframes ${t}{${Sc(e)}}`,void 0,"keyframes"),t}function U0(){return yr.size}var xt=new Set(["extends","children","content","childrenAs","childExtends","childExtendsRecursive","childProps","inheritParentProps","state","if","define","deps","tag","attr","style","text","html","value","data","classlist","class","vars","scope","root","context","$router","routes","fetch","variables","query","key","component","preventContentUpdate","preventContentRecreate","subscribeTo","autoGrow","srcObject","allowRuntimeTemplates","__name","__ref","__hash","__text","parent","node"]),z0={text:"text",html:"html",style:"style",attr:"attr",data:"data",classlist:"classlist",state:"state",scope:"scope"},Rn=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"]),Ic=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"]),ti=new Set(["wheel","mousewheel","touchstart","touchmove","touchend","touchcancel"]),Lc=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 Dn=new Set;function yo(t){let e=t&&t.node;if(!e)return!1;let n=e.nodeType===11?t.__ref?.__fragmentAnchor:e;return n?n.isConnected!==!1:!1}function In(t,e){let n=t&&t.node,o=t&&t.__ref;if(!(!n||!o||typeof e!="function")){if(yo(t)){e(t);return}(o.__onConnected||(o.__onConnected=[])).push(e),Dn.add(t)}}function ei(){if(Dn.size)for(let t of Dn){let e=t.__ref,n=t.node;if(!e||!n){Dn.delete(t);continue}if(!yo(t))continue;Dn.delete(t);let o=e.__onConnected;if(e.__onConnected=null,!!o)for(let r=0;r<o.length;r++)try{o[r](t)}catch(s){typeof console<"u"&&console.error&&console.error("[smbls] whenConnected callback failed:",s?.message||s)}}}function wh(t){Dn.size&&Dn.delete(t)&&t.__ref&&(t.__ref.__onConnected=null)}var Bc=new WeakMap,H0={passive:!0},G0={passive:!0,capture:!0},Ah=(t,e)=>ti.has(t)?e?G0:H0:e||!1;function vh(t){let e=Bc.get(t);return e||(e={handlers:new Map,installed:new Set},Bc.set(t,e)),e}function K0(t,e){let n=vh(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,s=>{if(r){let a=s.target,c=n.handlers.get(t),l=c&&a?c.get(a):null;if(!l||s.relatedTarget&&typeof a.contains=="function"&&a.contains(s.relatedTarget))return;l(s);return}let i=s.target;for(;i&&i!==e;){let a=n.handlers.get(t);if(a){let c=a.get(i);if(c&&(c(s),s.cancelBubble))return}i=i.parentNode}},Ah(t,o))}function Oh(t,e,n,o){o||(o=e.ownerDocument?.documentElement||e.getRootNode());let r=vh(o);K0(t,o),r.handlers.has(t)||r.handlers.set(t,new WeakMap),r.handlers.get(t).set(e,n)}function Eh(t,e,n){n||(n=e.ownerDocument?.documentElement||e.getRootNode());let o=Bc.get(n);if(!o)return;let r=o.handlers.get(t);r&&r.delete(e)}function ee(t){if(t.charCodeAt(0)!==111||t.charCodeAt(1)!==110)return!1;let e=t.charCodeAt(2);return e>=65&&e<=90}function ni(t){return t.charAt(2).toLowerCase()+t.slice(3)}var q0=/^[A-Za-z_$][\w$]*$/;function Sr(t,e){return typeof e!="string"||!q0.test(e)?e:function(o){return t.call(e,o)}}function Y0(t){return Lc.has(t)&&!Rn.has(t)}function oi(t,e){let{context:n}=t,o=n?.designSystem;return r=>{o&&dt(o);try{let s=e.call(t,r,t,t.state,n);if(s&&typeof s.then=="function"){s.catch(i=>{t.error=i,console.error("[DOMQL] Async event error:",i)}).finally(()=>{o&&ot()});return}}catch(s){if(t.error=s,console.error("[DOMQL] Event error:",s),n?.strictMode)throw s}o&&ot()}}var Rh=t=>!!t&&(t.capture===!0||typeof t.passive=="boolean"||t.once===!0);function Z0(t,e){return Rh(e)?{capture:e.capture===!0,passive:typeof e.passive=="boolean"?e.passive:ti.has(t),once:e.once===!0}:Ah(t,!1)}function X0(t,e,n){return o=>{let r=o.target;if(r&&r.nodeType!==1&&(r=r.parentElement),!r||typeof r.closest!="function")return;let s;try{s=r.closest(e)}catch{return}s&&t.contains(s)&&n(o)}}function Nc(t,e,n,o){let{node:r,context:s}=e;if(!r)return;let i=oi(e,n),a=o&&typeof o.selector=="string"&&o.selector;a&&(i=X0(r,a,i));let l=!Ic.has(t)&&Y0(t)&&!Rh(o),u=l?null:Z0(t,o);if(l){let f=s?.rootNode||r.ownerDocument?.documentElement;Oh(t,r,i,f)}else r.addEventListener(t,i,u);e.__ref.__eventCleanup||(e.__ref.__eventCleanup=[]),e.__ref.__eventCleanup.push(()=>{if(l){let f=s?.rootNode||r.ownerDocument?.documentElement;Eh(t,r,f)}else r.removeEventListener(t,i,u)})}var Pc=[["onDocument","document"],["onWindow","window"],["onVisualViewport","visualViewport"],["onMediaQuery","mediaQuery"]];function $c(t){if(typeof t!="string")return null;for(let e=0;e<Pc.length;e++){let n=Pc[e][0];if(t.length<=n.length||!t.startsWith(n))continue;let o=t.charCodeAt(n.length);if(!(o<65||o>90))return{target:Pc[e][1],eventName:t.slice(n.length).toLowerCase()}}return null}function Q0(t,e,n){let o=e,r=!1,s,i=!1,a=null;return e&&typeof e=="object"&&typeof e!="function"&&(o=e.handler,r=!!e.capture,i=!!e.once,typeof e.passive=="boolean"&&(s=e.passive),typeof e.query=="string"&&(a=e.query)),o=Sr(t,o),typeof o!="function"?null:(s===void 0&&(s=ti.has(n)),{handler:o,capture:r,passive:s,once:i,query:a})}function J0(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 s=r.visualViewport;return s&&typeof s.addEventListener=="function"?s:null}if(e==="mediaQuery"){let s=n&&n.query;if(typeof s!="string"||!s.trim()||typeof r.matchMedia!="function")return null;try{return r.matchMedia(s)||null}catch{return null}}return null}var Mc=/^@media\s+/i,tC=/^[@[.#&:>*~+]/,kh=new Set;function Ch(t,e){!(!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&j())||kh.has(t)||(kh.add(t),console.warn(`[smbls] onMediaQueryChange: "${t}" ${e} \u2014 no listener is registered.`))}function eC(t,e){if(typeof e!="string")return null;let n=e.trim();if(!n)return null;let o=t.context?.designSystem?.media,r=i=>{let a=o&&typeof o=="object"?o[i]:void 0;return typeof a=="string"&&a.trim()?a.trim():null},s=n;if(n.charCodeAt(0)===64&&!Mc.test(n)){if(s=r(n.slice(1)),!s)return Ch(n,"is not a key of designSystem.media"),null}else s=r(n)||n;return Mc.test(s)?s.replace(Mc,"").trim()||null:tC.test(s)?(Ch(n,`names "${s}", which is not a media query`),null):s}function nC(t,e,n,o){try{return t.addEventListener(e,n,o),!0}catch{return typeof t.addListener=="function"?(t.addListener(n),!0):!1}}function Dh(t,e,n,o){try{t.removeEventListener(e,n,o)}catch{typeof t.removeListener=="function"&&t.removeListener(n)}}function Fc(t,e,n){if(e.__ref){if(Array.isArray(n)){if(t.target!=="mediaQuery")return;for(let r=0;r<n.length;r++)Th(t,e,n[r]);return}Th(t,e,n)}}function Th(t,e,n){let o=e.__ref,r=Q0(e,n,t.eventName);if(!r||t.target==="mediaQuery"&&t.eventName!=="change"||t.target==="mediaQuery"&&(r.query=eC(e,r.query),!r.query))return;let s=J0(e,t.target,r);if(!s)return;let i=t.target+":"+(r.query?r.query+":":"")+t.eventName+":"+(r.capture?1:0);if(o.__globalEvents&&o.__globalEvents.has(i))return;let a=oi(e,r.handler),c=t.target==="window"&&t.eventName==="load",l=!1,u=p=>{if(yo(e)){if(c){if(l)return;l=!0}a(p)}},f={capture:r.capture,passive:r.passive,once:r.once};if(!nC(s,t.eventName,u,f))return;o.__globalEvents||(o.__globalEvents=new Map);let d={target:s,eventName:t.eventName,listener:u,options:f};o.__globalEvents.set(i,d),o.__eventCleanup||(o.__eventCleanup=[]),o.__eventCleanup.push(()=>{Dh(s,t.eventName,u,f),o.__globalEvents&&o.__globalEvents.delete(i)}),c&&oC(e,i,d,()=>l)}function oC(t,e,n,o){let r=n.target.document;!r||r.readyState!=="complete"||In(t,()=>queueMicrotask(()=>{let s=t.__ref;if(o()||!s||!s.__globalEvents||s.__globalEvents.get(e)!==n)return;let i=n.target,a=typeof i.Event=="function"?i.Event:typeof Event=="function"?Event:null;a&&(n.listener(new a("load")),n.options.once&&o()&&Dh(i,"load",n.listener,n.options))}))}var Mh=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],rC=["none","forwards","backwards","both"],sC=["normal","reverse","alternate","alternate-reverse"],iC=["running","paused"],aC=/^(?: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*\))$/,cC=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=>aC.test(o.replace(/\s+/g,"")))},Ih=t=>/^(?:\s*0[a-z%]*)+\s*$/.test(String(t).toLowerCase())||/^(none|initial|unset)$/.test(String(t).trim().toLowerCase()),lC={transform:cC,translate:Ih,rotate:t=>Ih(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},fC=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},uC=t=>{if(!E(t))return null;let e=null,n=-1;for(let o in t){let r=fC(o);r==null||!E(t[o])||r>=n&&(n=r,e=t[o])}return e},dC=t=>{let e=uC(t);if(!e)return!1;let n=Object.keys(e);if(!n.length)return!1;for(let o of n){let r=lC[o];if(!r)return!1;let s=e[o];if(s==null||typeof s=="object"||typeof s=="function"||!r(s))return!1}return!0},pC=(t,e)=>{if(E(t))return t;let{animation:n}=e.context&&e.context.designSystem||{},o=n&&n[t];return E(o)?o:null},hC=["reverse","alternate","alternate-reverse"],Bh=(t,e,n)=>{let o=n||e.animationDirection;return o&&hC.includes(String(o))?"both":dC(pC(t,e))?"backwards":"both"},gC=0,Lh=new Map,jc=(t,e)=>{let{animation:n}=e.context&&e.context.designSystem||{};if(E(t)){let r=JSON.stringify(t),s=Lh.get(r);if(s)return s;let i=`smbls-anim-${gC++}`,a=Js(i,t);return Lh.set(r,a),a}let o=n&&n[t];return E(o)?Js(t,o):t},Nh=/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)m?s$/i,_C=/^(?:\d+(?:\.\d*)?|\.\d+)$/,$h=/^(?:cubic-bezier|steps|linear)\(/,mC=/^(?:calc|min|max|clamp)\(/,yC=t=>t.includes("(")||t.startsWith("--"),bC=(t,e)=>{if(!Be.test(t))return!1;let n=e&&e.sequence;if(!E(n))return!1;let o=t.charCodeAt(0)===45?t.slice(1):t;return!!(n[o]||o.length===2&&n[o[0]])},SC=t=>{if(!C(t))return!1;let e=t.trim();return Mh.includes(e)||$h.test(e)||e.startsWith("var(")},xC=(t,e)=>!!e&&SC(e[t]||e[bs(t)]),wC=["duration","timingFunction","delay","iterationCount","direction","fillMode","playState"],kC=t=>W(String(t)),CC=(t,e,n)=>{let o={duration:null,delay:null,timingFunction:null,iterationCount:null,direction:null,fillMode:null,playState:null},r=null,s=[],i=[],a=(f,d)=>o[f]!=null?!1:(o[f]=d,!0),c=(f,d)=>{a(f,d)||s.push(d)};for(let f of kC(t))e&&e[f]?r=f:Nh.test(f)||bC(f,n)?a("duration",f)||a("delay",f):Mh.includes(f)||xC(f,n)?c("timingFunction",f):$h.test(f)?a("timingFunction",f):f==="infinite"?c("iterationCount",f):_C.test(f)?a("iterationCount",Number(f)):sC.includes(f)?c("direction",f):rC.includes(f)?c("fillMode",f):iC.includes(f)?c("playState",f):yC(f)?i.push(f):s.push(f);let l=r||s[0]||i.shift()||null,u=new Set;for(let f of i){let d=wC.find(p=>o[p]==null);if(!d)break;o[d]=f.startsWith("--")?`var(${f})`:f,u.add(d)}return{name:l,...o,opaqueSlots:u}},TC=(t,e)=>{let{animation:n}=e.context&&e.context.designSystem||{},{timing:o}=A()||{};return Pe(String(t)).map(r=>r.trim()).filter(Boolean).map(r=>CC(r,n,o))},Ph=(t,e)=>Nh.test(t)||e&&!mC.test(t)&&!/^(?:var|env)\(/.test(t)?t:Qt(t).timing||t,AC=(t,e)=>{let n=o=>t.opaqueSlots.has(o);return{animationName:t.name==null?void 0:jc(t.name,e),animationDuration:t.duration!=null?Ph(t.duration,n("duration")):Qt(e.animationDuration||"A").timing,animationDelay:t.delay!=null?Ph(t.delay,n("delay")):Qt(e.animationDelay||"0s").timing,animationTimingFunction:t.timingFunction!=null?n("timingFunction")?t.timingFunction:he(t.timingFunction):he(e.animationTimingFunction||"ease"),animationFillMode:t.fillMode||e.animationFillMode||Bh(t.name,e,t.direction),animationIterationCount:t.iterationCount!=null?t.iterationCount:e.animationIterationCount||1,animationPlayState:t.playState||e.animationPlayState,animationDirection:t.direction||e.animationDirection}},vC={animationName:"none",animationPlayState:"running",animationDirection:"normal"},OC=(t,e)=>{let n=t.map(r=>AC(r,e));if(n.length===1)return n[0];let o={};for(let r in n[0]){let s=n.map(i=>i[r]);s.every(i=>i==null)||(o[r]=s.map(i=>i??vC[r]).join(", "))}return o},Fh={animation:(t,e)=>{if(t!=null){if(C(t)&&/[\s,]/.test(t)){let n=TC(t,e);if(n.length)return OC(n,e)}return{animationName:jc(t,e),animationDuration:Qt(e.animationDuration||"A").timing,animationDelay:Qt(e.animationDelay||"0s").timing,animationTimingFunction:he(e.animationTimingFunction||"ease"),animationFillMode:e.animationFillMode||Bh(t,e),animationIterationCount:e.animationIterationCount||1,animationPlayState:e.animationPlayState,animationDirection:e.animationDirection}}},animationName:(t,e)=>({animationName:jc(t,e)}),animationDuration:t=>({animationDuration:Qt(t).timing}),animationDelay:t=>({animationDelay:Qt(t).timing}),animationTimingFunction:t=>({animationTimingFunction:he(t)}),animationIterationCount:t=>({animationIterationCount:t}),animationFillMode:t=>({animationFillMode:t}),animationPlayState:t=>({animationPlayState:t}),animationDirection:t=>({animationDirection:t})};var ri=(t,e,n)=>{if(typeof e=="number"&&(e=String(e)),!C(e))return;let[o,r]=W(e);return{...I(t+"Start",o,n),...I(t+"End",r||o,n)}},jh={show:t=>t?void 0:{display:"none !important"},hide:t=>t?{display:"none !important"}:void 0,height:(t,e)=>I("height",t,e),width:(t,e)=>I("width",t,e),boxSizing:t=>cs(t)?{boxSizing:"border-box"}:{boxSizing:t},boxSize:t=>{if(!C(t))return;let[e,n]=W(t);return{...rt("height",e),...rt("width",n||e)}},inlineSize:(t,e)=>I("inlineSize",t,e),blockSize:(t,e)=>I("blockSize",t,e),minWidth:(t,e)=>I("minWidth",t,e),maxWidth:(t,e)=>I("maxWidth",t,e),widthRange:t=>{if(!C(t))return;let[e,n]=W(t);return{...rt("minWidth",e),...rt("maxWidth",n||e)}},minHeight:(t,e)=>I("minHeight",t,e),maxHeight:(t,e)=>I("maxHeight",t,e),heightRange:t=>{if(!C(t))return;let[e,n]=W(t);return{...rt("minHeight",e),...rt("maxHeight",n||e)}},size:t=>{if(!C(t))return;let[e,n]=W(t);return{...I("inlineSize",e),...I("blockSize",n||e)}},minBlockSize:(t,e)=>I("minBlockSize",t,e),minInlineSize:(t,e)=>I("minInlineSize",t,e),maxBlockSize:(t,e)=>I("maxBlockSize",t,e),maxInlineSize:(t,e)=>I("maxInlineSize",t,e),minSize:t=>{if(!C(t))return;let[e,n]=W(t);return{...rt("minInlineSize",e),...rt("minBlockSize",n||e)}},maxSize:t=>{if(!C(t))return;let[e,n]=W(t);return{...rt("maxInlineSize",e),...rt("maxBlockSize",n||e)}},borderWidth:(t,e)=>I("borderWidth",t,e),borderTopWidth:(t,e)=>I("borderTopWidth",t,e),borderRightWidth:(t,e)=>I("borderRightWidth",t,e),borderBottomWidth:(t,e)=>I("borderBottomWidth",t,e),borderLeftWidth:(t,e)=>I("borderLeftWidth",t,e),textDecorationThickness:(t,e)=>I("textDecorationThickness",t,e),textUnderlineOffset:(t,e)=>I("textUnderlineOffset",t,e),padding:(t,e)=>I("padding",t,e),paddingInline:t=>{if(!C(t))return;let[e,n]=W(t);return{...rt("paddingInlineStart",e),...rt("paddingInlineEnd",n||e)}},paddingBlock:t=>{if(!C(t))return;let[e,n]=W(t);return{...rt("paddingBlockStart",e),...rt("paddingBlockEnd",n||e)}},paddingTop:(t,e)=>I("paddingBlockStart",t,e),paddingBottom:(t,e)=>I("paddingBlockEnd",t,e),paddingLeft:(t,e)=>I("paddingInlineStart",t,e),paddingRight:(t,e)=>I("paddingInlineEnd",t,e),paddingBlockStart:(t,e)=>I("paddingBlockStart",t,e),paddingBlockEnd:(t,e)=>I("paddingBlockEnd",t,e),paddingInlineStart:(t,e)=>I("paddingInlineStart",t,e),paddingInlineEnd:(t,e)=>I("paddingInlineEnd",t,e),margin:(t,e)=>I("margin",t,e),marginInline:t=>{if(!C(t))return;let[e,n]=W(t);return{...rt("marginInlineStart",e),...rt("marginInlineEnd",n||e)}},marginBlock:t=>{if(!C(t))return;let[e,n]=W(t);return{...rt("marginBlockStart",e),...rt("marginBlockEnd",n||e)}},marginTop:(t,e)=>I("marginBlockStart",t,e),marginBottom:(t,e)=>I("marginBlockEnd",t,e),marginLeft:(t,e)=>I("marginInlineStart",t,e),marginRight:(t,e)=>I("marginInlineEnd",t,e),marginInlineStart:(t,e)=>I("marginInlineStart",t,e),marginInlineEnd:(t,e)=>I("marginInlineEnd",t,e),marginBlockStart:(t,e)=>I("marginBlockStart",t,e),marginBlockEnd:(t,e)=>I("marginBlockEnd",t,e),scrollMargin:(t,e)=>I("scrollMargin",t,e),scrollMarginTop:(t,e)=>I("scrollMarginTop",t,e),scrollMarginRight:(t,e)=>I("scrollMarginRight",t,e),scrollMarginBottom:(t,e)=>I("scrollMarginBottom",t,e),scrollMarginLeft:(t,e)=>I("scrollMarginLeft",t,e),scrollMarginBlock:(t,e)=>ri("scrollMarginBlock",t,e),scrollMarginInline:(t,e)=>ri("scrollMarginInline",t,e),scrollMarginBlockStart:(t,e)=>I("scrollMarginBlockStart",t,e),scrollMarginBlockEnd:(t,e)=>I("scrollMarginBlockEnd",t,e),scrollMarginInlineStart:(t,e)=>I("scrollMarginInlineStart",t,e),scrollMarginInlineEnd:(t,e)=>I("scrollMarginInlineEnd",t,e),scrollPadding:(t,e)=>I("scrollPadding",t,e),scrollPaddingTop:(t,e)=>I("scrollPaddingTop",t,e),scrollPaddingRight:(t,e)=>I("scrollPaddingRight",t,e),scrollPaddingBottom:(t,e)=>I("scrollPaddingBottom",t,e),scrollPaddingLeft:(t,e)=>I("scrollPaddingLeft",t,e),scrollPaddingBlock:(t,e)=>ri("scrollPaddingBlock",t,e),scrollPaddingInline:(t,e)=>ri("scrollPaddingInline",t,e),scrollPaddingBlockStart:(t,e)=>I("scrollPaddingBlockStart",t,e),scrollPaddingBlockEnd:(t,e)=>I("scrollPaddingBlockEnd",t,e),scrollPaddingInlineStart:(t,e)=>I("scrollPaddingInlineStart",t,e),scrollPaddingInlineEnd:(t,e)=>I("scrollPaddingInlineEnd",t,e),gap:t=>({gap:qp(t)}),columnGap:(t,e)=>pe(e,"columnGap",t),rowGap:(t,e)=>pe(e,"rowGap",t),flexWrap:t=>{if(t!=null)return{display:"flex",flexWrap:t}},flexFlow:(t,e)=>{let n=e.reverse;if(!C(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(!C(t))return;let[e,n]=t.split(" ");return{display:"flex",alignItems:e,justifyContent:n}},round:(t,e)=>Tn(t??e.borderRadius,e,"round"),borderRadius:(t,e)=>Tn(t??e.round,e,"borderRadius"),borderTopLeftRadius:(t,e)=>Tn(t,e,"borderTopLeftRadius","borderTopLeftRadius"),borderTopRightRadius:(t,e)=>Tn(t,e,"borderTopRightRadius","borderTopRightRadius"),borderBottomLeftRadius:(t,e)=>Tn(t,e,"borderBottomLeftRadius","borderBottomLeftRadius"),borderBottomRightRadius:(t,e)=>Tn(t,e,"borderBottomRightRadius","borderBottomRightRadius"),backgroundSize:(t,e)=>({backgroundSize:gr(t,"backgroundSize",fc,e)}),backgroundPosition:(t,e)=>({backgroundPosition:gr(t,"backgroundPosition",uc,e)}),maskSize:(t,e)=>({maskSize:gr(t,"maskSize",fc,e)}),maskPosition:(t,e)=>({maskPosition:gr(t,"maskPosition",uc,e)})};var Vh={fontSize:t=>Za(t)||t,fontFamily:t=>({fontFamily:qa(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 Uh={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 s=o.files&&o.files[t];s&&s.content&&(t=`url(${s.content.src})`)}return{cursor:t}},opacity:t=>t!=null?{opacity:String(t)}:void 0,visibility:t=>t!=null?{visibility:t}:void 0,pointerEvents:t=>t!=null?{pointerEvents:t}:void 0};var Wh={inset:(t,e)=>{if(e.call("isNumber",t))return{inset:t};if(e.call("isString",t))return{inset:W(t).map(n=>gt(n,"k").k).join(" ")}},left:t=>gt(t,"left"),top:t=>gt(t,"top"),right:t=>gt(t,"right"),bottom:t=>gt(t,"bottom"),verticalInset:t=>{if(typeof t!="string")return;let e=W(t).map(n=>gt(n,"k").k);return{top:e[0],bottom:e[1]||e[0]}},horizontalInset:t=>{if(typeof t!="string")return;let e=W(t).map(n=>gt(n,"k").k);return{left:e[0],right:e[1]||e[0]}}};var si=0,Vc=()=>{si++},Uc=()=>{si>0&&si--},Pt=({context:t,state:e})=>{let n=t?.designSystem,o=e?.root?.globalTheme||n?.globalTheme;return o&&o!=="auto"?o:si>0?null:n&&n.resolvedTheme||null},Et=(t,e)=>{if(e==null||e==="")return;if(!E(e))return{[t]:e};let n={},o=!1;for(let r in e){let s=e[r];if(!(s==null||s==="")){if(E(s)){let i=Et(t,s);i&&(n[r]=i,o=!0);continue}n[r]={[t]:s},o=!0}}return o?n:void 0},zh=t=>{let e={};for(let n in t){let o=t[n];e[n]=E(o)?zh(o):C(o)?o+" !important":o}return e},Ln=t=>(e,n)=>{let o=n&&C(e)&&!A().useVariable,r=zp(e,o?Pt(n):null);return E(r)?Et(t,r):{[t]:r}},Hh={theme:(t,e)=>{if(t)return e.themeModifier?Te(t,`@${e.themeModifier}`):Te(t)},color:(t,e)=>{let n=Pt(e);if(t)return Et("color",yt(t,n))},background:(t,e)=>{let n=Pt(e);if(t)return C(t)&&t.includes("gradient")&&t.includes("(")?{background:lo(t,n)}:Et("background",yt(t,n))},backgroundColor:(t,e)=>{let n=Pt(e);if(t)return Et("backgroundColor",yt(t,n))},backgroundImage:(t,e,n,o)=>{let r=Pt(e);if(!t)return;let s=o.assets&&o.assets[t];if(s&&s.content)t=s.content.src;else{let i=o.files&&o.files[t];i&&i.content&&(t=i.content.src)}return Et("backgroundImage",Kp(t,r))},textStroke:t=>{let e=Hp(t);if(e!=null)return{WebkitTextStroke:e}},outline:Ln("outline"),outlineWidth:(t,e)=>I("outlineWidth",t,e),outlineColor:(t,e)=>{let n=Pt(e);if(t)return Et("outlineColor",yt(t,n))},outlineOffset:(t,e)=>I("outlineOffset",t,e),border:Ln("border"),borderColor:(t,e)=>{let n=Pt(e);if(t)return Et("borderColor",yt(t,n))},borderTopColor:(t,e)=>{let n=Pt(e);if(t)return Et("borderTopColor",yt(t,n))},borderBottomColor:(t,e)=>{let n=Pt(e);if(t)return Et("borderBottomColor",yt(t,n))},borderLeftColor:(t,e)=>{let n=Pt(e);if(t)return Et("borderLeftColor",yt(t,n))},borderRightColor:(t,e)=>{let n=Pt(e);if(t)return Et("borderRightColor",yt(t,n))},borderLeft:Ln("borderLeft"),borderTop:Ln("borderTop"),borderRight:Ln("borderRight"),borderBottom:Ln("borderBottom"),shadow:(t,e)=>{let n=Pt(e);if(t)return Et("boxShadow",Gp(t,n))},boxShadow:(t,e)=>{if(!C(t))return;let[n,o]=t.split("!importan"),r=Pt(e),s=o?" !important":"",i=lc(n.trim(),r);return C(i)?{boxShadow:i+s}:Et("boxShadow",s?zh(i):i)},textShadow:(t,e)=>Et("textShadow",lc(t,e?Pt(e):null)),columnRule:Ln("columnRule")};var ii={transition:t=>{let e=Zp(t);if(e!=null)return{transition:e}},transitionDuration:t=>({transitionDuration:dc(t)}),transitionDelay:t=>({transitionDelay:dc(t)}),transitionTimingFunction:t=>({transitionTimingFunction:he(t)}),transitionProperty:t=>({transitionProperty:t,willChange:t})};var Gh={flow:(t,e)=>{let n=e.reverse;if(!C(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(!C(t))return;let[n,o]=t.split(" ");return{display:"flex",alignItems:n,justifyContent:o}}};var EC=/(^|[^\w.-])([A-Za-z_][\w-]*)/g,RC=t=>{if(!C(t))return t;let e=A().sizes;return e?t.replace(EC,(n,o,r)=>{let s=e[r];return s==null?n:o+String(s)}):t},ve=t=>RC(Yp(t)),Kh={gridTemplateColumns:t=>({gridTemplateColumns:ve(t)}),gridTemplateRows:t=>({gridTemplateRows:ve(t)}),gridAutoColumns:t=>({gridAutoColumns:ve(t)}),gridAutoRows:t=>({gridAutoRows:ve(t)}),area:t=>({gridArea:t}),template:t=>({gridTemplate:t}),templateAreas:t=>({gridTemplateAreas:t}),column:t=>({gridColumn:t}),columns:t=>({gridTemplateColumns:ve(t)}),templateColumns:t=>({gridTemplateColumns:ve(t)}),autoColumns:t=>({gridAutoColumns:ve(t)}),columnStart:t=>({gridColumnStart:t}),row:t=>({gridRow:t}),rows:t=>({gridTemplateRows:ve(t)}),templateRows:t=>({gridTemplateRows:ve(t)}),autoRows:t=>({gridAutoRows:ve(t)}),rowStart:t=>({gridRowStart:t}),autoFlow:t=>({gridAutoFlow:t})};var DC="breakpoints",IC=new Set(["window","media"]),qh=/^-?[A-Za-z_][\w-]*$/,Yh=new Set(["none","and","or","not","initial","inherit","unset","revert","revert-layer","default"]),LC=t=>{let e=t&&t.containerName;if(typeof e!="string")return null;let n=e.trim().split(/\s+/)[0];return n&&qh.test(n)&&!Yh.has(n)?n:null},Wc=(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||IC.has(n)?null:n==="container"?LC(e)||DC:qh.test(n)&&!Yh.has(n)?n:null},PC=/^@media\s+/i,MC=/^(?:only\s+)?(?:screen|all)\s+and\s+/i,BC=/(?:^|[^\w-])(?:(?:min|max)-)?(?:width|inline-size)(?![\w-])/i,NC=/height|block-size|aspect-ratio|orientation|device-|resolution/i,Zh=t=>{if(typeof t!="string")return null;let e=t.trim().replace(PC,"").replace(MC,"").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 s=r.slice(1,-1);if(s.indexOf("(")!==-1||s.indexOf(")")!==-1||!BC.test(s)||NC.test(s))return null}return e},Xh={breakpointsFrom:(t,e)=>{let n=Wc(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 Y={...Fh,...jh,...Vh,...Uh,...Wh,...Hh,...ii,...Gh,...Kh,...Xh};var st=new Set(["accentColor","alignContent","alignItems","alignSelf","alignmentBaseline","all","anchorName","anchorScope","animation","animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationRange","animationRangeEnd","animationRangeStart","animationTimeline","animationTimingFunction","appearance","aspectRatio","backdropFilter","backfaceVisibility","background","backgroundAttachment","backgroundBlendMode","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundRepeatX","backgroundRepeatY","backgroundSize","baselineShift","blockSize","border","borderBlock","borderBlockColor","borderBlockEnd","borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth","borderBlockStart","borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth","borderBlockStyle","borderBlockWidth","borderBottom","borderBottomColor","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStyle","borderBottomWidth","borderCollapse","borderColor","borderImage","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderSpacing","borderStyle","borderTop","borderTopColor","borderTopLeftRadius","borderTopRightRadius","borderTopStyle","borderTopWidth","borderWidth","bottom","boxDecorationBreak","boxShadow","boxSizing","breakAfter","breakBefore","breakInside","captionSide","caretColor","clear","clip","clipPath","color","colorAdjust","colorInterpolation","colorInterpolationFilters","colorRendering","columnCount","columnFill","columnGap","columnRule","columnRuleColor","columnRuleStyle","columnRuleWidth","columnSpan","columnWidth","columns","contain","containIntrinsicBlockSize","containIntrinsicHeight","containIntrinsicInlineSize","containIntrinsicSize","containIntrinsicWidth","container","containerName","containerType","content","contentVisibility","counterIncrement","counterReset","cursor","direction","display","emptyCells","fieldSizing","fill","filter","flex","flexBasis","flexDirection","flexFlow","flexGrow","flexShrink","flexWrap","float","font","fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantNumeric","fontVariantPosition","fontWeight","fontVariationSettings","fontSynthesis","forcedColorAdjust","gap","grid","gridArea","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumn","gridColumnEnd","gridColumnGap","gridColumnStart","gridGap","gridRow","gridRowEnd","gridRowGap","gridRowStart","gridTemplate","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","height","hyphens","imageOrientation","imageRendering","imeMode","inset","insetBlock","insetBlockEnd","insetBlockStart","insetInline","insetInlineEnd","insetInlineStart","initialLetter","interpolateSize","isolation","justifyContent","justifyItems","justifySelf","left","letterSpacing","lineBreak","lineClamp","lineHeight","listStyle","listStyleImage","listStylePosition","listStyleType","margin","marginBottom","marginLeft","marginRight","marginTop","marginBlock","marginBlockEnd","marginBlockStart","marginInline","marginInlineEnd","marginInlineStart","mask","maskBorder","maskBorderImage","maskBorderOutset","maskBorderRepeat","maskBorderSlice","maskBorderSource","maskBorderWidth","maskClip","maskComposite","maskImage","maskOrigin","maskPosition","maskRepeat","maskSize","maskType","maxBlockSize","maxHeight","maxInlineSize","maxWidth","minBlockSize","minHeight","minInlineSize","minWidth","mixBlendMode","objectFit","objectPosition","objectViewBox","offset","offsetDistance","offsetPath","offsetRotate","opacity","order","orientation","outline","outlineColor","outlineOffset","outlineStyle","outlineWidth","overflow","overflowAnchor","overflowClip","overflowScrolling","overflowWrap","overflowX","overflowY","overscrollBehavior","overscrollBehaviorX","overscrollBehaviorY","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","pageBreakAfter","pageBreakBefore","pageBreakInside","paintOrder","perspective","perspectiveOrigin","placeContent","placeItems","placeSelf","pointerEvents","position","positionAnchor","positionArea","positionTry","positionTryFallbacks","positionTryOrder","positionVisibility","resize","right","rotate","rowGap","scrollBehavior","scrollMargin","scrollMarginBlock","scrollMarginBlockEnd","scrollMarginBlockStart","scrollMarginBottom","scrollMarginInline","scrollMarginInlineEnd","scrollMarginInlineStart","scrollMarginLeft","scrollMarginRight","scrollMarginTop","scrollPadding","scrollPaddingBlock","scrollPaddingBlockEnd","scrollPaddingBlockStart","scrollPaddingBottom","scrollPaddingInline","scrollPaddingInlineEnd","scrollPaddingInlineStart","scrollPaddingLeft","scrollPaddingRight","scrollPaddingTop","scrollSnapAlign","scrollSnapStop","scrollSnapType","scrollTimeline","scrollTimelineAxis","scrollTimelineName","scrollbarColor","scrollbarGutter","scrollbarWidth","shapeImageThreshold","shapeMargin","shapeOutside","stroke","tabSize","tableLayout","textAlign","textAlignLast","textBox","textBoxEdge","textBoxTrim","textDecoration","textDecorationColor","textDecorationLine","textDecorationSkipInk","textDecorationStyle","textDecorationThickness","textIndent","textOverflow","textShadow","textTransform","textUnderlineOffset","textWrap","textWrapMode","textWrapStyle","timelineScope","top","touchAction","transform","transformOrigin","transformStyle","transition","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","translate","translateX","translateY","translateZ","unicodeBidi","userSelect","verticalAlign","viewTimeline","viewTimelineAxis","viewTimelineInset","viewTimelineName","viewTransitionClass","viewTransitionName","visibility","whiteSpace","widows","width","willChange","wordBreak","wordSpacing","wordWrap","writingMode","zIndex"]);var $C=/^[a-z][0-9]?$/,Qh=/var\(\s*(--[A-Za-z0-9-]+)/g,FC=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 s in r.sequence)e.add(s);if(r.vars&&typeof r.vars=="object")for(let s in r.vars)n.add(s)}}return{knownLetters:e,knownVars:n}},jC=Object.prototype.propertyIsEnumerable,Jh=(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"&&jC.call(r,e))return!0}return!1},zc=/[(),\s]+/,Hc=(t,e)=>{let n=null,o=t.split(zc);for(let r=0;r<o.length;r++){let s=o[r];s&&e(s)&&(n||(n=[])).push(s)}return n},Gc=(t,e)=>Be.test(t)&&e(t.charCodeAt(0)===45?t.slice(1):t),VC=(t,e)=>{if(!e.size)return[];let n=r=>e.has(r),o=Hc(t,r=>Gc(r,n));return o?[...new Set(o)]:[]},UC=(t,e)=>{if(!e.size)return[];let n=[];Qh.lastIndex=0;let o;for(;o=Qh.exec(t);){let r=o[1];if(e.has(r))continue;let s=r.lastIndexOf("-");if(s===-1)continue;let i=r.slice(s+1);if(!$C.test(i))continue;let a=r.slice(0,s+1)+i.toUpperCase();a!==r&&e.has(a)&&n.push({varName:r,corrected:a})}return n},ai=new Set,tg=(t,e,n)=>{if(!(!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&j())||!C(e)||!e)return;let o;try{o=A()}catch{return}let{knownLetters:r,knownVars:s}=FC(o);if(!r.size&&!s.size)return;let i=VC(e,r),a=UC(e,s);if(!i.length&&!a.length)return;let c=n?.__ref?.path?n.__ref.path.join("."):n?.key||"?";for(let l of i){let u=`${c}::${t}::bare::${l}::${e}`;ai.has(u)||(ai.add(u),console.warn(`[smbls/css-in-props] "${t}" on <${c}> looks like it contains an un-wrapped design-system token ("${l}") \u2014 "${t}" has no registered resolver, so its value is forwarded to the browser untouched. A bare letter token there is invalid CSS, so the browser drops the ENTIRE "${t}" declaration (not just this argument). Wrap it in var(--<family>-${l.replace("-","")}) (or calc(-1 * var(--<family>-${l.replace("-","")})) for a negative). Value: "${e}"`))}for(let{varName:l,corrected:u}of a){let f=`${c}::${t}::case::${l}::${e}`;ai.has(f)||(ai.add(f),console.warn(`[smbls/css-in-props] "${t}" on <${c}> references ${l}, which the active design system never emits. CSS custom-property names are case-sensitive \u2014 the real variable is ${u}, so this reference silently never resolves. Value: "${e}"`))}};var ci=us(),WC=(t,e,n)=>{let o=e?.context?.designSystem;o&&dt(o);try{let r={},s={},i=(a,c)=>{if(n.unpack){r={...r,...c};return}r[a]=c};for(let a in t){let c=t[a];if(c!==null)if(a==="class"&&C(c)){let l=zC(c,e);l&&(n.unpack?At(r,l):r.designSystemClass=l)}else if(a==="true"){let l=Ke(c,e);At(r,eg(l,e))}else if(e.classlist?.[a]){let l=e.classlist[a],u=ht(l)?l(e,e.state,e.context):l;u&&i(a,u),!ci&&E(r[a])&&(r[a].label=a)}else if(Y[a]){let l=Ke(c,e);if(l===null)continue;K(l)&&(l=l.reduce((f,d)=>At(f,d),{}));let u=Y[a](l,e,e.state,e.context);K(u)&&(u=u.reduce((f,d)=>At(f,d),{})),u&&i(a,u),!ci&&E(r[a])&&(r[a].label=a)}else if(st.has(a)){let l=Ke(c,e);if(l===null)continue;typeof l=="string"&&l.charCodeAt(0)===45&&l.charCodeAt(1)===45&&(l=`var(${l})`),ci||tg(a,l,e),i(a,{[a]:l}),!ci&&E(r[a])&&(r[a].label=a)}else s[a]=c}return[r,s]}finally{o&&ot()}},zC=(t,e)=>{if(!C(t))return;let n=e?.context?.designSystem?.class;if(!n)return;let o;for(let r of t.split(" ")){if(!r)continue;let s=n[r];if(!E(s))continue;let i=Yt(s);o=o?dn(o,i):i}if(o)return ne(o,e)},HC=(t,e)=>{let n={};for(let o in t){let r=ng[o.slice(0,1)];if(r){let s=r(o,t[o],e);if(s)for(let i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[i]&&typeof n[i]=="object"&&typeof s[i]=="object"?dn(n[i],s[i]):n[i]=s[i])}}return n},ne=(t,e,n={unpack:!0})=>{let[o,r]=WC(t,e,n),s=HC(r,e),i=!1;for(let a in s){i=!0;break}if(i){if(n.unpack)return Xu(o,s);o._selectors=s}return o},JM=(t,e)=>{let n={};if(t.class)for(let o in t.class)n[o]=t.class[o](e);return n};var GC=/^\[data-theme=(?:"([^"]+)"|'([^']+)')\]$/,KC=(t,e,n)=>{let{context:o}=n;if(!o.designSystem?.media)return;let r=t.slice(1),s=o.designSystem.media[r],i=ir(s||t)?sr(()=>ne(e,n)):ne(e,n);if(!s)return{[t]:i};if(/^@(media|supports|container)\b/.test(s))return{[s]:i};if(s==="print")return{"@media print":i};if(s[0]==="(")return{[`@media screen and ${s}`]:i};let a=s.match(GC),c=a?a[1]||a[2]:r,l={[`${s} &`]:i};if(c==="dark"||c==="light"){let u=o.designSystem?.scopeSelector||":root",f=u===":root"?":root:not([data-theme])":`${u}:not([data-theme])`;l[`@media (prefers-color-scheme: ${c})`]={[`${f} &`]:i}}return l},og=(t,e,n)=>({[t]:ne(e,n)}),xr=(t,e,n)=>{let o=`&${t}`,r=ne(e,n);if(t.includes(",")&&r){let s={},i={};for(let a in r)typeof r[a]=="object"&&r[a]!==null?i[a]=r[a]:s[a]=r[a];if(Object.keys(i).length){let a=o.split(",").map(l=>l.trim()),c={};Object.keys(s).length&&(c[o]=s);for(let l in i){let u=a.map(f=>`${f} ${l}`).join(", ");c[u]=i[l]}return c}}return{[o]:r}},Kc=(t,e)=>{let n=e.context?.cases?.[t];if(n!==void 0)return ht(n)?n.call(e,e):!!n},qC=(t,e,n)=>{let o=t.slice(1),r=Kc(o,n);if(r===void 0&&(r=!!n[o]),!!r)return ne(e,n)},YC=(t,e,n)=>({[t]:e}),ZC=(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 s=Kc(o,n);s!==void 0&&(r=s)}if(r)return ne(e,n)},XC=(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 s=Kc(o,n);s!==void 0&&(r=s)}if(!r)return ne(e,n)},eg=(t,e)=>ne(t,e),ng={"@":KC,":":xr,"[":xr,"*":xr,"+":xr,"~":xr,"&":og,">":og,$:qC,"-":YC,".":ZC,"!":XC};var rg=/\s*!important\s*$/,QC=()=>{let t;try{t=A()}catch{t=null}let e=t&&t.sizes&&typeof t.sizes=="object"?t.sizes:null,n=null,o=s=>{n||(n=new Map);let i=n.get(s);return i===void 0&&(i=Jh(t,s),n.set(s,i)),i},r=s=>Ms(e,s)!==void 0;return{isToken:s=>s.charCodeAt(0)!==35&&(Gc(s,o)||r(s))}},JC=(t,e)=>{let n=String(t).split(zc);for(let o=0;o<n.length;o++)if(n[o]===e)return!0;return!1},tT=(t,e)=>{let n=typeof globalThis<"u"?globalThis.CSS:void 0;if(!n||typeof n.supports!="function")return!1;try{return n.supports(te(t),e)}catch{return!1}},sg=new Set,eT=(t,e,n)=>{if(!(!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&j()))return;let o=t?.__ref?.path?t.__ref.path.join("."):t?.key||"?",r=o+"::"+e+"::"+n;sg.has(r)||(sg.add(r),console.warn(`[smbls/css-in-props] style.${e} on <${o}> holds a design-system token the "${e}" transformer could not resolve to one inline value, so it is written as is and the browser drops it. Move the key out of \`style\` to the element itself, or write the resolved CSS. Value: "${n}"`))},nT=(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 s of e)if(JC(r,s))return!1;n=!0}}return n},oT=(t,e,n,o)=>{if(!C(e)||!e||t.charCodeAt(0)===45&&t.charCodeAt(1)===45)return null;let r=Y[t];if(!r||!st.has(t))return null;let s=rg.test(e),i=s?e.replace(rg,""):e,a=Hc(i,o.isToken);if(!a||tT(t,i))return null;let c;try{c=r(i,n,n?.state,n?.context)}catch{c=null}if(Array.isArray(c)){let u={};for(let f of c)f&&typeof f=="object"&&Object.assign(u,f);c=u}if(!nT(c,a))return eT(n,t,e),null;let l={};for(let u in c){let f=c[u];f!=null&&(l[u]=s?String(f)+" !important":f)}return l},ig=(t,e,n)=>{let o={},r=!1;for(let s in t){let i=t[s];if(s.charCodeAt(0)===38&&i&&typeof i=="object"&&!Array.isArray(i)){let c=ig(i,e,n);c!==i&&(r=!0),o[s]=c;continue}let a=oT(s,i,e,n);a?(r=!0,Object.assign(o,a)):o[s]=i}return r?o:t},ag=(t,e)=>!t||typeof t!="object"||Array.isArray(t)?t:ig(t,e,QC());if(!tt||!Ae)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 li=tt,Ze=Ae,fi=Hs||(()=>!1),cg=mc||fi,lg=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,Fe=te||(t=>lg(t)?t:t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())),wr=Oc||(t=>lg(t)?t:t.replace(/-([a-z])/g,(e,n)=>n.toUpperCase()));var V={viewEvents:null,chains:null,rows:null,hydration:null,mount:null};function ug(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 Yc(t,e,n){let o=ug(e);if(!o.length)return;let s=(t.context||n?.context||{}).components||{};for(let i=0;i<o.length;i++){let a=dg(o[i],s);a&&a!==e&&pg(t,a,n,new Set([e]))}}function dg(t,e){if(typeof t=="string"){if(t.includes(">")){let n=t.split(">").map(r=>r.trim()),o=e[n[0]]||e[`smbls.${n[0]}`];for(let r=1;r<n.length&&o;r++)o=o[n[r]];return o||null}return e[t]||e[`smbls.${t}`]||null}return typeof t=="object"&&t!==null?t:null}function pg(t,e,n,o=new Set){if(o.has(e))return;o.add(e);let r=ug(e);if(r.length){let a=(t.context||n?.context||{}).components||{};for(let c=0;c<r.length;c++){let l=dg(r[c],a);l&&pg(t,l,n,o)}}let s=Zc(t);for(let i in e){if(i==="extends"||i==="extend")continue;let a=e[i];s&&s.mark(i);let c=V.chains;c!==null&&c(t,i,t[i],a)||(t[i]===void 0?a&&typeof a=="object"&&!Array.isArray(a)&&typeof a!="function"?t[i]={...a}:t[i]=a:typeof t[i]=="object"&&typeof a=="object"&&!Array.isArray(t[i])&&!Array.isArray(a)&&t[i]!==null&&a!==null?t[i]=Wt(t[i],a):t[i]=a)}}var qc=class{constructor(){this.rank=0,this.ranks=null}mark(e){rT(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}},ui=new Set;for(let t of[Ze,li])for(let e in t)ui.add(e),ui.add(wr(e));var fg=new Map;function rT(t){let e=t.charCodeAt(0);if(e>=65&&e<=90||e>=48&&e<=57)return!1;let n=fg.get(t);return n===void 0&&(n=!!Y[t]||ui.has(t)||t.indexOf("-")>=0&&!(t.charCodeAt(0)===45&&t.charCodeAt(1)===45)&&ui.has(Fe(t)),fg.set(t,n)),n}function Zc(t){let e=t&&t.__ref;if(!e)return null;let n=e.__mergeLayer;return n||(n=e.__mergeLayer=new qc),n.rank++,n}function hg(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 Wt(t,e){let n={...t},o=V.chains;for(let r in e){let s=n[r],i=e[r];o!==null&&o(n,r,s,i)||(s&&i&&typeof s=="object"&&typeof i=="object"&&!Array.isArray(s)&&!Array.isArray(i)&&typeof s!="function"&&typeof i!="function"?n[r]=Wt(s,i):n[r]=i)}return n}var Pn="http://www.w3.org/2000/svg",Jc=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"]),sT=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 Xc(t){return sT.has(t)||Jc.has(t)}function bo(t){return Jc.has(t)}function Mn(t){let{tag:e,key:n}=t;if(typeof e=="function")try{e=e(t,t.state,t.context)}catch(s){e=void 0,typeof console<"u"&&console.error&&console.error(`[smbls] \`tag:\` factory threw on "${n||"<anon>"}" \u2014 falling back to key-based tag detection:`,s?.message||s)}if(e===!0&&(e=n),typeof e=="string"&&Xc(e))return e;if(!n||typeof n!="string")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]),Xc(r)&&!o.has(r)?r:"div"}var gg={};function Qc(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(bo(t)){let o=e?.parent;if(t==="svg"||o?.node?.namespaceURI===Pn)return n.createElementNS(Pn,t);if(t!=="svg")return n.createElement("div")}return n.createElement(t)}function kr(t){let e=t.tag=Mn(t),o=bo(e)&&(e==="svg"||t.parent?.node?.namespaceURI===Pn)?"svg:"+e:e,r=t?.context?.document||globalThis.document,s=gg[o];if(s||(s=gg[o]=Qc(e,t)),!s)return null;let i=r&&s.ownerDocument!==r?Qc(e,t):s.cloneNode(!0);return e==="string"&&(i.nodeValue=t.text||""),i}function Cr(t,e){return e&&e.parentNode===t?e.nextSibling:t.firstChild}function oe(t,e){let n=t&&t.context&&t.context.designSystem;if(!n)return e();dt(n);try{return e()}finally{ot()}}var Mt=Wo||(t=>{let e=fe();if(!e)return t();aa(null);try{return t()}finally{aa(e)}});var _g=new WeakMap,mg=null,yg=null;function aT(t,e){let n=t===mg?yg:_g.get(t);(!n||n.length!==t.length)&&(n={length:t.length,hooks:new Map},_g.set(t,n)),mg=t,yg=n;let o=n.hooks.get(e);if(o===void 0){o=!1;for(let r of t)if(typeof r[e]=="function"){o=!0;break}n.hooks.set(e,o)}return o}function tl(t,e){let n=t&&t.context&&t.context.plugins;return!!(n&&n.length&&aT(n,e))}function Oe(t,e,...n){return tl(e,t)?Go(t,e,...n):!1}function re(t,e,n){Oe("error",t,{hook:e,error:n})||console.error(`[DOMQL] Lifecycle "${e}" error:`,n)}var cT=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);function Sg(t,e,n){return Mt(()=>oe(t,()=>e.call(t,n,t,t.state,t.context)))}function lT(t,e){if(!(!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&j()))return;let n=e.__children&&e.__children.length>0;!n&&t.html==null||console.warn(`[smbls] bridge host "${e.path.join(".")}" renders DOMQL ${n?"children":"html"} inside the node it hands to its library \u2014 the library owns that subtree and may replace them. Keep DOMQL children beside the host, not in it.`)}function xg(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 jt("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,lT(t,e);let r;try{r=Sg(t,t.onBridgeMount,n)}catch(s){if(o.failed=!0,re(t,"onBridgeMount",s),t.context?.strictMode)throw s;return}if(r&&typeof r.then=="function"){r.then(s=>bg(t,o,s),s=>{o.failed=!0,re(t,"onBridgeMount",s)});return}bg(t,o,r)}function bg(t,e,n){if(e.settled=!0,e.instance=n,e.disposed){kg(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=N(()=>{e.disposed||oe(t,()=>{try{let r=t.onBridgeUpdate.call(t,e.instance,t,t.state,t.context);r&&typeof r.then=="function"&&r.catch(s=>re(t,"onBridgeUpdate",s))}catch(r){re(t,"onBridgeUpdate",r)}})},{depth:o.path.length,label:()=>o.path.join(".")+"::onBridgeUpdate"}),o.__effects.push(e.effect)}function wg(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&&kg(t,e))}function kg(t,e){if(e.destroyed)return;e.destroyed=!0;let n=e.instance;if(e.instance=void 0,cT(t,"bridge")&&(t.bridge=void 0),typeof t.onBridgeDestroy=="function")try{let o=Sg(t,t.onBridgeDestroy,n);o&&typeof o.then=="function"&&o.catch(r=>re(t,"onBridgeDestroy",r))}catch(o){re(t,"onBridgeDestroy",o)}}function So(t){return t.__mount||(t.__mount={pending:0,tail:null,holder:null,waiters:null,chunkGen:0,attachLater:!1,held:!1})}function Tr(t){let e=t.__mount;return e?e.pending:0}function Ar(t){if(!t)return;let e=t.__ref;if(!e)return;if(e.__onConnected&&wh(t),fe())return Mt(()=>Ar(t));e.__disposed=!0;let n=e.__if===!1&&!e.__ifInitialized;if(!n)try{typeof t.onBeforeRemove=="function"&&t.onBeforeRemove(t,t.state,t.context)}catch(r){console.error("[smbls] onBeforeRemove error:",r)}if(e.__bridge&&wg(t),e.__effects){for(let r=0;r<e.__effects.length;r++)e.__effects[r].dispose();e.__effects.length=0}if(typeof e.__releaseMedia=="function"&&(e.__releaseMedia(),e.__releaseMedia=null),e.__eventCleanup){for(let r=0;r<e.__eventCleanup.length;r++)e.__eventCleanup[r]();e.__eventCleanup.length=0}if(e.__children){let r=e.__children.slice();e.__children.length=0;for(let s=0;s<r.length;s++){let i=t[r[s]];i&&i.__ref&&Ar(i)}}if(e.__ifParked&&e.__ifParked.size){let r=[...e.__ifParked];e.__ifParked.clear();for(let s=0;s<r.length;s++){let i=t[r[s]];i&&i.__ref&&i.parent===t&&Ar(i)}}e.__keepNode?e.__keepNode=!1:t.node?.parentNode?t.node.remove():t.tag==="fragment"&&e.__fragmentAnchor?.parentNode&&e.__fragmentAnchor.remove();let o=t.state?.$destroy||t.state?.destroy;if(typeof o=="function"&&t.state.__element===t&&o.call(t.state),t.parent?.__ref?.__children){let r=t.parent.__ref.__children.indexOf(t.key);r!==-1&&t.parent.__ref.__children.splice(r,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(r){console.error("[smbls] onRemove error:",r)}e.__mount&&e.__mount.tail&&V.mount.abandon(t,e),t.node=null,t.parent=null,t.__ref=null}function el(){Ar(this)}function sl(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(s=>s?.message||(typeof s=="string"?s: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 Cg=new Set;function Tg(t,e,n){let o=String(e);if(Cg.has(o))return;Cg.add(o);let r=t?.__ref?.path,s=Array.isArray(r)&&r.length?r.join("."):t?.key!=null?String(t.key):"(unknown element)",i=n!=null?`resolves to a non-function (${typeof n}) \u2014 it cannot be called`:"is not registered in context.methods, context.functions, or context.utils, and is not an element method",a=`[smbls] el.call('${o}') at <${s}>: "${o}" ${i}. Returning undefined (unchanged behavior) \u2014 check the name for typos or register the function on the project. Warned once per name; repeat misses are silent.`;sl(t,"error",[a]),console.error(a)}var vg=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),uT=new Set,Og=t=>vg(nl,t)&&!(Yu||uT).has(t),Ag=new Set;function Eg(t,e){Ag.has(t)||(Ag.add(t),!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&j()&&console.warn(`[smbls] ${e}: context.methods.${t} is named like a built-in element method and is not the app's own override (it was not on the element prototype when it was built) \u2014 ignored; the built-in keeps winning. Declare an intentional override in the app's OWN methods.`))}function dT(...t){return sl(this,"warn",t),yd.apply(this,t)}function pT(...t){return sl(this,"error",t),_s.apply(this,t)}var nl={update:rl,remove:el,getDB:wd,getQuery:kd,getRootData:gd,getPath:dd,nextElement:bd,previousElement:Sd,verbose:da,warn:dT,error:pT,variables:xd,spotByPath:ud,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,s=t!=null?V.hydration:null,i=s&&typeof s.handBack=="function"?this.context?.__hydration:null,a=i&&o?.__children&&this.content?.__ref?s.handBack(i,this.content):null;try{if(this.removeContent(),t!=null){let c=this.context?.__create;try{c&&(r=c(t,this,"content",e,n))}finally{a&&s.settleHandBack(i,a)}}this.__ref&&(this.__ref.contentManaged=!0)}finally{if(o){o.__setLocked=!1;let c=o.__setQueued;c&&(o.__setQueued=null,this.set(c.content,c.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 In(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]):[]},getRoot:hd,getRootState:pd,getRootContext:_d,getContext:md,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,s=>"-"+s.toLowerCase()),r=String(n).replace(/\s*!important\s*$/,"");this.node.style.setProperty(o,r,"important")}},call(t,...e){let n=this.context,o=Og(t);o&&n?.methods?.[t]&&n.methods[t]!==this[t]&&Eg(t,"el.call");let r=o?this[t]:n?.methods?.[t]||n?.functions?.[t]||n?.utils?.[t]||this[t];if(typeof r=="function"){let s=fs;if(!s||!s(r))return r.call(this,...e);!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&j()&&Tg(this,t,Ho(r));return}!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&j()&&Tg(this,t,r)},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)}},ol=new WeakMap;function hT(t){if(!t)return nl;let e=ol.get(t);if(e)return e;e=Object.create(nl);let n=t.methods;if(n)for(let o in n)e[o]=n[o];return ol.set(t,e),e}function il(t){let e=hT(t.context);Object.setPrototypeOf(t,e)}function al(t){if(!t)return!1;let e=ol.get(t);if(!e)return!1;let n=t.methods;if(!n)return!1;for(let o in n){if(Og(o)&&!vg(e,o)){Eg(o,"refreshContextProto");continue}e[o]=n[o]}return!0}var vr=(t,e,n)=>{Object.defineProperty(t,e,{value:n,enumerable:!1,configurable:!0,writable:!0})},ge=(t,e,n,{onlyIfAbsent:o}={})=>{vr(t,"$"+e,n),!(o&&Object.prototype.hasOwnProperty.call(t,e))&&vr(t,e,n)},cl=(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)},se=(t,e)=>{if(J(e)){let r=e.__raw||e;ge(r,"toggle",function(s,i={}){e[s]=!e[s]},{onlyIfAbsent:!0}),ge(r,"set",function(s,i={}){let a=e.__element;return typeof s=="object"&&s!==null&&a&&typeof a.onBeforeStateUpdate=="function"&&!i.preventBeforeStateUpdateListener&&a.onBeforeStateUpdate(a,e,a.context,{changes:s,options:i})===!1||(e.$clean({preventStateUpdate:!0}),typeof s=="object"&&s!==null&&e.$update(s,{...i,preventBeforeStateUpdateListener:!0})),e},{onlyIfAbsent:!0}),ge(r,"setByPath",function(s,i,a={}){let c=s.split("."),l=e;for(let u=0;u<c.length-1;u++)l[c[u]]===void 0&&(l[c[u]]={}),l=l[c[u]];return l[c[c.length-1]]=i,e}),ge(r,"getByPath",function(s){let i=s.split("."),a=e;for(let c=0;c<i.length;c++){if(a==null)return;a=a[i[c]]}return a}),ge(r,"removeByPath",function(s,i={}){let a=s.split("."),c=e;for(let l=0;l<a.length-1;l++){if(c==null)return e;c=c[a[l]]}return c&&delete c[a[a.length-1]],e}),ge(r,"reset",function(s={}){let i=e.$parse();return e.$set(i,s)}),ge(r,"apply",function(s,i={}){if(typeof s=="function"){let a=s(e);return e.$update(a,i)}}),ge(r,"applyFunction",function(s,i={}){if(typeof s=="function")return s(e),e.$update(e.$parse(),i)}),ge(r,"rootUpdate",function(s,i={}){let a=e;for(;a?.parent&&J(a.parent);)a=a.parent;return cl(a,"update",s,i)}),ge(r,"parentUpdate",function(s,i={}){if(e.parent)return cl(e.parent,"update",s,i)}),ge(r,"quietReplace",function(s,i={}){return e.$replace(s,{quiet:!0,...i})}),Object.getOwnPropertyDescriptor(r,"root")||Object.defineProperty(r,"root",{get:function(){let s=e,i=J(s)?s:null;for(let a=0;a<64&&s?.parent&&s.parent!==s;a++)s=s.parent,J(s)&&(i=s);return i||s},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 s in r)e[s]=r[s];return e},apply(r){if(typeof r!="function")return e;let s=r(e);return s?e.$update(s):e},parse(){return{...e}},toggle(r){return e[r]=!e[r],e},set(r){if(!r||typeof r!="object")return e;n();for(let s in r)e[s]=r[s];return e},replace(r){return e.$set(r)},clean(){return n(),e}};vr(e,"$settled",function(){return ju().then(()=>e)});for(let r in o)if(vr(e,"$"+r,o[r]),typeof e[r]!="function"){if(Object.prototype.hasOwnProperty.call(e,r)){Wu(r,"");continue}vr(e,r,o[r])}};var gT=function(t,e,n){return t.state=Rg(t,e,n),t.state},Rg=function(t,e,n){let{__ref:o}=t,r=t.state;if(r==null||r===!1){let s=e?.state||{};return se(t,s),s}if(typeof r=="string")return o&&(o.__state=r),o.__stateType="string",_T(r,t,e);if(typeof r=="number"||typeof r=="boolean"){o&&(o.__state=r,o.__stateType=typeof r,o.__hasRootState=!0);let s=fn({value:r});return s.__element=t,e?.state&&(s.parent=e.state),se(t,s),s}if(typeof r=="function"&&(r=r(t,e?.state)||{}),typeof r=="object"&&!J(r)){o&&(o.__hasRootState=!0),r.isRootState&&o&&(o.__hasRootState=!0);let s=fn({...r});if(s.__element=t,!Object.getOwnPropertyDescriptor(s,"root")){let i=e?.state?.root||e?.state||s;Object.defineProperty(s,"root",{get:()=>i,enumerable:!1,configurable:!0})}return e?.state&&(s.parent=e.state,e.state.__children&&(e.state.__children[t.key]=s)),se(t,s),typeof t.onStateCreated=="function"&&t.onStateCreated(t,s,t.context,n),s}return J(r)?(r.__element=t,r):e?.state||{}};function ll(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 _T(t,e,n){if(!n?.state)return{};if(t===".")return n.state;if(t.startsWith("../")){let r=t.slice(3),s=n.state?.parent;return r&&s?ll(s,r):s??n.state??{}}if(t.startsWith("~/")){let r=n.state;for(;r?.parent;)r=r.parent;let s=t.slice(2);return s?ll(r,s):r??{}}let o=ll(n.state,t);if(o&&typeof o=="object"&&!J(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 mT=(t,e)=>{if(!t)return Ig;let n=ST(t,e);return!n||!n.state?Ig:wT(n.state)},yT=()=>fe()!=null,bT=128;function ST(t,e){let n=typeof e=="function"?e:typeof e=="string"?s=>!!s?.[e]:s=>!!s?.state,o=t,r=null;for(let s=0;s<bT&&o;s++){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 xT={get(t,e){return t[e]}},Dg=new WeakMap,wT=t=>{let e=Dg.get(t);return e||(e=new Proxy(t,xT),Dg.set(t,e)),e},Ig=new Proxy(Object.create(null),{get(){},has(){return!1}});var sB=["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"],kT=["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"],CT=["requiredExtensions","systemLanguage"],Lg={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"]},TT=new Set(["linearGradient","radialGradient","stop","clipPath","mask","marker","pattern","filter","symbol"]),AT=()=>{let t={};for(let e in Lg)t[e]=[...Lg[e],...TT.has(e)?[]:CT,...kT];return t},Xe={default:["accesskey","autofocus","class","contenteditable","contextmenu","dir","draggable","enterkeyhint","exportparts","headingoffset","headingreset","hidden","id","inputmode","lang","nonce","part","placeholder","popover","slot","spellcheck","style","tabindex","title","translate","writingsuggestions","inert","radiogroup","role","about","datatype","inlist","prefix","property","resource","typeof","vocab","autocapitalize","autocorrect","autosave","color","itemprop","itemscope","itemtype","itemid","itemref","results","security","unselectable","is"],a:["accesskey","charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","target","type"],aria:["aria-activedescendant","aria-atomic","aria-autocomplete","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-dropeffect","aria-errormessage","aria-expanded","aria-flowto","aria-grabbed","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],anchor:["download","href","hreflang","media","ping","rel","target","type","referrerpolicy"],audio:["autoplay","controls","crossorigin","loading","loop","muted","preload","src"],area:["alt","coords","download","href","hreflang","media","referrerpolicy","rel","shape","target","ping"],base:["href","target"],blockquote:["cite"],button:["command","commandfor","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","popovertarget","popovertargetaction","type","value"],canvas:["height","width"],col:["span","width"],colgroup:["span"],data:["value"],details:["name","open"],del:["cite","datetime"],dialog:["closedby","open"],embed:["height","src","type","width"],fieldset:["disabled","form","name"],form:["accept-charset","acceptcharset","action","autocomplete","enctype","method","name","novalidate","target","rel"],html:["manifest"],iframe:["allow","allowfullscreen","allowtransparency","frameborder","height","loading","marginheight","marginwidth","mozallowfullscreen","name","referrerpolicy","sandbox","scrolling","seamless","src","srcdoc","webkitallowfullscreen","width"],img:["alt","controls","crossorigin","decoding","fetchpriority","height","ismap","loading","referrerpolicy","sizes","src","srcset","usemap","width"],ins:["cite","datetime"],input:["accept","alpha","alt","autocomplete","capture","checked","colorspace","crossorigin","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","indeterminate","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","popovertarget","popovertargetaction","readonly","required","size","src","step","type","value","width"],keygen:["challenge","disabled","form","keytype","keyparams","name"],label:["form","for"],li:["value"],link:["as","blocking","crossorigin","disabled","fetchpriority","href","hreflang","integrity","media","imagesrcset","imagesizes","referrerpolicy","rel","sizes","type","charset"],map:["name"],menu:["type"],media:["autoplay","controls","currenttime","defaultmuted","defaultplaybackrate","loop","mediagroup","muted","playsinline","preload","src","volume"],meta:["charset","content","http-equiv","name","media"],meter:["form","high","low","max","min","optimum","value"],quote:["cite"],object:["classid","data","form","height","name","type","usemap","width","wmode"],ol:["reversed","start","type"],optgroup:["disabled","label"],option:["disabled","label","selected","value"],output:["form","for","name"],param:["name","value"],progress:["max","value"],q:["cite"],slot:["name"],script:["async","blocking","charset","crossorigin","defer","fetchpriority","integrity","nomodule","nonce","referrerpolicy","src","type"],select:["autocomplete","disabled","form","multiple","name","required","size","value","onchange"],source:["height","media","sizes","src","srcset","type","width"],style:["blocking","media","nonce","scoped","type"],table:["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],template:["for","shadowrootclonable","shadowrootcustomelementregistry","shadowrootdelegatesfocus","shadowrootmode","shadowrootserializable","shadowrootslotassignment"],textarea:["autocomplete","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","value","wrap"],td:["align","colspan","headers","rowspan","scope","abbr","height","width","valign"],th:["align","colspan","headers","rowspan","scope","abbr"],time:["datetime"],track:["default","kind","label","src","srclang"],video:["autoplay","controls","crossorigin","disablepictureinpicture","disableremoteplayback","height","loading","loop","muted","playsinline","poster","preload","src","width"],svg:["className","class","color","height","id","lang","max","media","method","min","name","style","target","type","width","role","tabindex","crossorigin","accent-height","accumulate","additive","alignment-baseline","allowReorder","alphabetic","amplitude","arabic-form","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baseline-shift","baseProfile","bbox","begin","bias","by","calcMode","cap-height","clip","clip-path","clipPathUnits","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominant-baseline","dur","dx","dy","edgeMode","elevation","enable-background","end","exponent","externalResourcesRequired","fill","fill-opacity","fill-rule","filter","filterRes","filterUnits","flood-color","flood-opacity","focusable","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","format","from","fx","fy","g1","g2","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","glyphRef","gradientTransform","gradientUnits","hanging","href","horiz-adv-x","horiz-origin-x","ideographic","image-rendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letter-spacing","lighting-color","limitingConeAngle","local","marker-end","markerHeight","marker-mid","marker-start","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","opacity","operator","order","orient","orientation","origin","overflow","overline-position","overline-thickness","paint-order","panose-1","path","pathLength","patternContentUnits","patternTransform","patternUnits","pointer-events","points","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","rendering-intent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","scale","seed","shape-rendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","string","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","surfaceScale","systemLanguage","tableValues","targetX","targetY","text-anchor","text-decoration","textLength","text-rendering","to","transform","u1","u2","underline-position","underline-thickness","unicode","unicode-bidi","unicode-range","units-per-em","v-alphabetic","values","vector-effect","version","vert-adv-y","vert-origin-x","vert-origin-y","v-hanging","v-ideographic","viewBox","viewTarget","visibility","v-mathematical","widths","word-spacing","writing-mode","x1","x2","x","xChannelSelector","x-height","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xmlns","xmlns:xlink","xml:space","y1","y2","y","yChannelSelector","z","zoomAndPan"],...AT()},vT=["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"],$g=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,Pg=new Map,Qe=t=>{let e=Pg.get(t);return e===void 0&&(e=$g(t)||OT(t),Pg.set(t,e)),e},Fg=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"]),fl=new Set;for(let t in Xe)t==="default"||t==="aria"||t==="svg"||Xe[t].forEach(e=>{e.startsWith("on")||fl.add(e)});var jg=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(fl.has(n))return n;let o=t.toLowerCase();return fl.has(o)?o:null},OT=t=>Fg.has(t)?t.toLowerCase():jg(t),ET=new Set(["draggable","contenteditable","spellcheck","autocorrect","writingsuggestions","translate"]),RT=new Map([["autocorrect",["on","off"]],["translate",["yes","no"]]]),xo=t=>typeof t=="string"&&(ET.has(t)||t.startsWith("aria-")),je=(t,e)=>{if(e!==!0&&e!==!1)return e;if(xo(t)){let n=RT.get(t);return n?e?n[0]:n[1]:e?"true":"false"}return e===!0?"":e},Mg=new Map,_e=(t,e)=>{let n=Xe.default,o=Object.prototype.hasOwnProperty.call(Xe,t)?Xe[t]:null,r=o?o.length:-1,s=Mg.get(t);(!s||s.def!==n||s.defLen!==n.length||s.own!==o||s.ownLen!==r)&&(s={def:n,defLen:n.length,own:o,ownLen:r,answers:new Map},Mg.set(t,s));let i=s.answers.get(e);return i===void 0&&(i=DT(t,e),s.answers.set(e,i)),i},DT=(t,e)=>{if(e.startsWith("aria-")||e.startsWith("data-")||$g(e)||Fg.has(e)||Xe.default.includes(e))return!0;if(Object.prototype.hasOwnProperty.call(Xe,t)){let n=Xe[t];if(n.includes(e))return!0;let o=jg(e);return o!==null&&n.includes(o)}return!1},Vg=t=>{if(!C(t))return!1;let e=t.toLowerCase();return vT.includes(e)},iB=(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])St(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(St(e[r][a])){let c=a.replace(/([A-Z])/g,l=>"-"+l.toLowerCase());o["data-"+c]=e[r][a]}continue}let s=_e(t,r),i=Vg(r);if(St(e[r])&&(s||i)){let a=Qe(r)||r;o[a]=e[r]}}return o},aB=(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 s=o.replace(/([A-Z])/g,i=>"-"+i.toLowerCase());n["data-"+s]=r(e,e.state,e.context)}}return n},Bn=(t,e)=>{let n=t.call("exec",e,t);if(n)return C(n)&&n.includes("{{")&&(n=t.call("replaceLiteralsWithObjectFields",n)),n},Bg=(t,e)=>{let n=(t.preSrc||"")+(Bn(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),s=o.assets&&(o.assets[n]||o.assets[r]);return s&&s.content?s.content.src:n}if(n.startsWith("/files/")){let r=n.slice(7),s=o.files&&(o.files[n]||o.files[r]);return s&&s.content?s.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},Nn={src:t=>Bg(t,t.src),href:t=>Bn(t,t.href),action:t=>Bn(t,t.action),poster:t=>Bg(t,t.poster),data:t=>Bn(t,t.data)},Ug=t=>{let e=t.tag||"div",n={};for(let o in Nn)if(t[o]!==void 0&&_e(e,o)){let r=Nn[o](t);r!==void 0&&(n[o]=r)}return n},Ng=(t,e)=>{let n=e.context?.cases?.[t];if(n!==void 0)return ht(n)?n.call(e,e):!!n},IT=(t,e,n)=>{if(t==="$"){let r=Ng(e,n);return r===void 0&&(r=!!n[e]),r}let o=n[e]===!0||n.state[e];if(!o){let r=Ng(e,n);r!==void 0&&(o=r)}return t==="."?!!o:!o},LT=new Set(["$",".","!"]),Wg=(t,e,n,o=IT)=>{let r={},s=(i,a,c,l)=>{let u=a;r[i]=f=>{if(o(c,l,f))return ht(u)?u(f,f.state,f.context):u}};for(let i in t){let a=i.charAt(0);if(!LT.has(a))continue;let c=t[i];if(!c||typeof c!="object")continue;let l=i.slice(1);for(let u in c){if(n&&u in n)continue;if(u==="aria"&&c[u]&&typeof c[u]=="object"){for(let g in c[u])s("aria-"+g,c[u][g],a,l);continue}if(u==="data"&&c[u]&&typeof c[u]=="object"){for(let g in c[u]){let h=g.replace(/([A-Z])/g,_=>"-"+_.toLowerCase());s("data-"+h,c[u][g],a,l)}continue}let f=_e(e,u),d=Vg(u);if(!f&&!d)continue;let p=Qe(u)||u;s(p,c[u],a,l)}}return r};var di="3.14.809";var zg="__SMBLS_ELEMENT_ID_ENGINE__",Hg=(t,e,n)=>{let o=e||di,r=n||(typeof globalThis<"u"?globalThis:null);if(!r)return t;let s=r[zg];return s&&s.engine&&s.version===o?s.engine:(s||(r[zg]={version:o,engine:t}),t)};var PT=new Set(["rows","cols","wrap","fill","stroke","offset"]),pi=(t,e)=>PT.has(e)&&_e(t,e),Je=(t,e)=>!!(Y[e]||st&&st.has(e))&&!pi(t,e);var T_=Hg({uniqId:1,scopedStyleId:0},di),ko=[],tn=new Set,El=!1,A_=0,Ao=null,Dr=null;function Oo(){return typeof Date<"u"&&typeof Date.now=="function"?Date.now():0}function v_(){return typeof document<"u"&&document.visibilityState==="hidden"}var MT=250,BT=1e3;function NT(){return Dr&&(Dr!==(typeof requestAnimationFrame=="function"?requestAnimationFrame:null)||v_())?!0:Oo()-A_>=BT}function $T(){if(El=!0,A_=Oo(),Dr=null,typeof requestAnimationFrame!="function"){let t=typeof clearTimeout=="function"?clearTimeout:null,e=setTimeout(Rr,0);Ao=t?()=>t(e):null;return}if(v_()){let t=typeof clearTimeout=="function"?clearTimeout:null,e=setTimeout(Rr,MT);Ao=t?()=>t(e):null}else{let t=typeof cancelAnimationFrame=="function"?cancelAnimationFrame:null;Dr=requestAnimationFrame;let e=requestAnimationFrame(Rr);Ao=t?()=>t(e):null}}function $r(){if(El){if(!NT())return;let t=Ao;if(Ao=null,t)try{t()}catch{}}$T()}var O_=300,E_=15e4,wl=0;function R_(){wl++;let t=!1;return()=>{t||(t=!0,!(--wl>0)&&(ko.length||tn.size)&&$r())}}function Rr(){if(El=!1,Ao=null,Dr=null,wl>0||(!globalThis.__SMBLS_BUILD_DROP_F_autoGrow__&&tn.size&&WA(),!ko.length))return;let t=ko.splice(0,ko.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=Oo());let r=Oo()-o.__mountFirstAttemptAt;o.__mountAttempts<=O_&&r<E_?(ko.push(n),$r()):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"&&xg(n),typeof n.onMounted=="function"&&_t("Mounted",n,n.__ref?.__mountOptions||{})}}}function kl(t,e){let n=!globalThis.__SMBLS_BUILD_DROP_F_autoGrow__&&t.__ref?.__autoGrow;n&&n.active&&Nr(t,!0),!(typeof t.onMounted!="function"&&typeof t.onBridgeMount!="function")&&(t.__ref.__mountOptions=e,ko.push(t),$r())}function gi(t,e){typeof t.onContentUpdate=="function"&&(Oe("contentUpdate",t,e),oe(t,()=>{try{t.onContentUpdate(t,t.state,t.context,e)}catch(n){if(re(t,"onContentUpdate",n),t.context?.strictMode)throw n}}))}function FT(t){return t.toLowerCase()}function D_(t){let e=t.charCodeAt(0);return e===58||e===64||e===38||e===91}function _i(t){if(typeof t=="string")return t||void 0;if(typeof t=="number"||typeof t=="bigint")return String(t)}function I_(t,e,n,o){return xi(o,_i(t)||(e&&typeof e=="object"?_i(e.key):void 0)||String(n))}function xi(t,e){if(!t||typeof e!="string")return e;let n=e;for(;jT(t,n);)n="$"+n;return n!==e&&VT(t,e,n),n}function jT(t,e){if(xt.has(e)&&e!=="content")return!0;if(!(e in t))return!1;let n=t[e];return!(n&&typeof n=="object"&&n.__ref&&n.parent===t)}var Gg=new Set;function VT(t,e,n){if(!(!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&j()))return;let o=t.__ref&&t.__ref.path&&t.__ref.path.join(".")||t.key||"<root>",r=o+"::"+e;Gg.has(r)||(Gg.add(r),console.warn(`[smbls] a child keyed "${e}" at ${o} names a property of its parent; it lives at el["${n}"] (data-key="${n}") so the parent keeps its own "${e}". Prefix the data keys to keep plain el.<key> access.`))}function zt(t,e,n,o={},r){if(fe())return Mt(()=>zt(t,e,n,o,r));if(t==null||t===!1)return null;let s=cA(t);(typeof t=="string"||typeof t=="number")&&(t={text:t}),n=_i(n);let i=_i(t.key),a=Object.create(null);a.key=n||(i&&e?xi(e,i):i)||`_${T_.uniqId++}`,a.parent=e||null,a.context=t.context||e?.context||o.context||{},a.context.__create||(a.context.__create=zt);let c=a.__ref={__if:!0,__children:[],__exec:{},__effects:[],__eventCleanup:[],root:e?.__ref?.root||a,path:e?.__ref?.path?[...e.__ref.path,a.key]:[a.key],origin:t,__mount:null,__plainRows:null,__ifParked:null};s&&(c.__runtimeSource=s);let l=r;r&&(r.holdTail||r.deferAttach)&&(r.holdTail&&V.mount!==null&&V.mount.hold(a),r.deferAttach&&(So(c).attachLater=!0),l=void 0);let u=t;if(t=P_(a,t,n,i,e,o),a.if!=null){let g;if(typeof a.if=="function")try{g=a.if(a,a.state,a.context)}catch(h){if(g=!1,c.__ifError=h,typeof console<"u"&&console.warn){let _=a.key||a.tag||"?";console.warn(`[smbls] \`if:\` evaluator threw on ${_} \u2014 treating as false:`,h?.message||h)}}else g=a.if;c.__if=!!g}if(c.__if)typeof a.if=="function"&&(c.__ifInitialized=!0);else{if(e){e[a.key]=a;let h=e.__ref;h&&(h.__ifParked||(h.__ifParked=new Set)).add(a.key)}let g=GT(t,n,a.context?.components);return g.length&&(c.__ifLateMerge={definition:u,key:n,ownKey:i,names:g,options:o}),typeof a.if=="function"&&U_(a,c,a.if),a}a.tag||(a.tag=Mn(a)),_t("Init",a,o);let f=V.hydration,d=a.node=f!==null&&f.adopt(a)||kr(a);if(!d)return a;if(a.tag==="fragment"){let h=(a.context?.document||globalThis.document).createComment("");d.appendChild(h),c.__fragmentAnchor=h}if(_t("AttachNode",a,o),d.setAttribute&&a.key&&d.getAttribute("data-key")!==String(a.key)&&d.setAttribute("data-key",a.key),e){let g=e[a.key];e[a.key]=a;let h=e.__ref?.__children;h&&(g===void 0||!h.includes(a.key))&&h.push(a.key)}d.setAttribute&&a.context?.scopeSelector&&a.context.scopeSelector!==":root"&&a.context.key&&a.key===a.context.key&&d.setAttribute("data-smbls-app",a.context.key),a.id&&d.setAttribute&&(d.id=a.id),am(a,o),j_(a),V_(a);try{lm(a,o)}catch(g){wi(a,g)}let p=c.__mount;return p!==null&&p.pending>0?(p.attachLater||(o.mountWhole===!0&&!(r&&r.holdTail)&&UT(a,e)?p.held=!0:Eo(a,e,l)),p.tail=()=>V.mount.finish(a,o),a):(vo(a,!0),(p===null||!p.attachLater)&&Eo(a,e,l),Rl(a,o),a)}function Fr(t){let e=t&&t.__ref&&t.__ref.__mount;return!e||!e.attachLater||(e.attachLater=!1,!t.node)?!1:(Eo(t,t.parent),!0)}function UT(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 L_(t){let e=t.__ref,n=e&&e.__mount;if(!n||!n.held)return;n.held=!1;let o=t.node,r=t.parent;if(!o||!r)return;let s=r.__ref;if(!s){Eo(t,r);return}let i=r.node;if(!i)return;let a=s.__children,c=a?a.lastIndexOf(t.key):-1,l;for(let u=c-1;u>=0;u--){let f=r[a[u]],d=f&&(Ve(f)||(f.tag==="fragment"&&f.__ref?f.__ref.__fragmentAnchor:null));if(d&&d.parentNode===i){l=d.nextSibling;break}}l===void 0&&(l=Cr(i,s.__textNode)),Eo(t,r,l?{position:"before",node:l}:void 0)}function wi(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?`
29
+ Do NOT trust any browser measurement taken on this page until that reads clean.`),!0}function gh(){try{let t=A(),e=t&&(t.CSS_VARS||t.cssVars);return e?Object.keys(e).length:0}catch{return 0}}function yc(t){Ys||Lt.variable>0||Lt.atomic>0||_h(Math.max(t,gh()))}function m0(t){let e=t&&(t.CSS_VARS||t.cssVars);return _h(e?Object.keys(e).length:gh())}function _h(t){let e=hh();if(t===0)return{ok:!0,reason:"no-design-system",stats:e,varCount:t};if(!Rc())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 _0(n,t),{ok:!1,reason:n,stats:e,varCount:t}}var y0={display:"d",position:"pos",padding:"p",paddingTop:"pt",paddingRight:"pr",paddingBottom:"pb",paddingLeft:"pl",margin:"m",marginTop:"mt",marginRight:"mr",marginBottom:"mb",marginLeft:"ml",width:"w",height:"h",minWidth:"mnw",minHeight:"mnh",maxWidth:"mxw",maxHeight:"mxh",top:"t",right:"r",bottom:"b",left:"l",flex:"fx",flexDirection:"fxd",flexWrap:"fxw",flexGrow:"fxg",flexShrink:"fxs",flexBasis:"fxb",justifyContent:"jc",alignItems:"ai",alignSelf:"as",alignContent:"ac",gap:"g",rowGap:"rg",columnGap:"cg",gridTemplateColumns:"gtc",gridTemplateRows:"gtr",gridColumn:"gc",gridRow:"gr",overflow:"of",overflowX:"ofx",overflowY:"ofy",fontSize:"fs",fontWeight:"fw",fontFamily:"ff",fontStyle:"fst",lineHeight:"lh",letterSpacing:"ls",textAlign:"ta",textDecoration:"td",textTransform:"tt",color:"c",background:"bg",backgroundColor:"bgc",backgroundImage:"bgi",border:"bd",borderRadius:"br",borderColor:"bdc",borderWidth:"bdw",borderStyle:"bds",boxShadow:"bxsh",opacity:"op",zIndex:"z",cursor:"cur",transition:"tr",transform:"tf",animation:"an",visibility:"vis",whiteSpace:"ws",wordBreak:"wb",objectFit:"obj",pointerEvents:"pe",userSelect:"us",boxSizing:"bxz",outline:"ol",listStyle:"lis",textOverflow:"txo",verticalAlign:"va",float:"fl",clear:"cl",content:"cnt",backdropFilter:"bdf",filter:"flt",resize:"rsz",appearance:"apr",fill:"fil",stroke:"stk"};function b0(t){return t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}var _o=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,nh=new Map,te=t=>{if(_o(t))return t;let e=nh.get(t);return e===void 0&&(e=b0(t),nh.set(t,e)),e},oh=new Map,vc=t=>{if(_o(t))return t;let e=oh.get(t);return e===void 0&&(e=t.replace(/-([a-z])/g,(n,o)=>o.toUpperCase()),oh.set(t,e)),e};function Zs(t){let e=2166136261;for(let n=0;n<t.length;n++)e^=t.charCodeAt(n),e=e*16777619>>>0;return e.toString(36)}function S0(t){let e=String(t);return e.length<=20?e.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():Zs(e)}var x0={"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 An(t,e){let n=x0[t];return n?`${t}:${e};${n}:${e};`:`${t}:${e};`}function bc(t){let e="";for(let n in t){let o=t[n];if(typeof o!="object"||o===null)continue;let r="";for(let s in o)o[s]!=null&&(r+=An(te(s),o[s]));e+=`${n}{${r}}`}return e}function Sc(t){return t.charCodeAt(0)===64&&!mo(t)}function rh(t){let e="";for(let n in t){let o=t[n];if(!Sc(n)||typeof o!="object"||o===null)continue;let r="";for(let s in o){let i=o[s];i==null||typeof i=="object"||(r+=An(te(s),i))}e+=`${n}{${r}}`}return e}var w0="@media (hover: hover)",k0=/(?:^|[^\\]):hover(?![\w-])/;function Oc(){try{let t=A();if(t&&t.hoverMedia===!1)return!1}catch{}return!0}function vn(t,e,n){return n===!1||!k0.test(e)||n===void 0&&!Oc()?t:`${w0}{${t}}`}var mh=new Map;function C0(t,e,n,o){let r=yr.get(t);if(!r){let c=y0[e]||Zs(e),l=S0(n);r=o?`_${o}_${c}-${l}`:`_${c}-${l}`,yr.set(t,r)}let i=typeof n=="string"&&(n.indexOf("}")!==-1||n.indexOf("{")!==-1)?null:`.${r}{${An(te(e),n)}}`,a={className:r,rule:i,tier:i===null?null:Ec(i,!0,"atomic")};return mh.set(t,a),a}function sh(t,e,n){let o=(n?n+"":"")+t+":"+e,r=mh.get(o)||C0(o,t,e,n);return r.rule!==null&&Jt(r.rule,void 0,"atomic",!0,r.tier),r.className}var ih=new WeakMap,ah=new WeakMap;function Jt(t,e,n,o,r){let s=r||Ec(t,o,n);mr&&!e&&mr.push([t,n||"global",s]);let i=v0(e,s);if(!i)return Lt.dropped++,"dropped";let a=i.sheet,c=i.rules;if(c||(c=ih.get(a),c||(c=new Set,ih.set(a,c)),i.rules=c),c.has(t))return Lt.duplicate++,Lt[n||"global"]++,"duplicate";let l=ah.get(a);if(l&&l.has(t))return Lt.invalid++,"invalid";try{a.insertRule(t,a.cssRules.length)}catch{return l||(l=new Set,ah.set(a,l)),l.add(t),Lt.invalid++,"invalid"}return c.add(t),Lt[n||"global"]++,"inserted"}var Ut="0:0",xc="1:0",yh="0:99",ch=/\((max|min)-width:\s*([\d.]+)(px|em|rem)?\)/g;function Ec(t,e,n){if(typeof t!="string"||!t)return Ut;if(t.charCodeAt(0)===64){if(!t.startsWith("@media")&&!t.startsWith("@supports")&&!t.startsWith("@container"))return Ut;let i=1/0,a=-1/0;ch.lastIndex=0;let c;for(;c=ch.exec(t);){let l=parseFloat(c[2])*(c[3]==="em"||c[3]==="rem"?16:1);c[1]==="max"?i=Math.min(i,l):a=Math.max(a,l)}return i!==1/0?"2:"+-i:a!==-1/0?"3:"+a:xc}if(t.charCodeAt(0)!==46)return n==="atomic"&&!e?yh:Ut;if(!/^\.[\w-]+\{/.test(t))return xc;if(!e)return Ut;let o=t.indexOf("{"),r=t.indexOf(":",o);if(r===-1)return Ut;let s=Ws(t.slice(o+1,r).trim());return s?"0:"+s:Ut}var go=null,T0=()=>{if(go)return go;let t=0;for(let e in Ae)t=Math.max(t,Ws(e));go=[Ut];for(let e=1;e<=t;e++)go.push("0:"+e);return go.push(yh,xc),go},lh=t=>{let e=t.indexOf(":");return[Number(t.slice(0,e)),Number(t.slice(e+1))]},fh=(t,e)=>{let[n,o]=lh(t),[r,s]=lh(e);return n!==r?n<r:o<s},A0=t=>t.getAttribute("data-tier")||Ut,wc=new WeakMap,Ks=!1,_r=null,kc=0;function v0(t,e){if(Ks&&!t){let n=_r&&wc.get(_r),o=n&&n.get(e);if(o&&o.epoch===kc)return o;let r=Xs(_r,e);return r&&(r.epoch=kc),r}return Xs(t||br(),e)}function Rc(t,e){let n=Xs(t||br(),e);return n?n.sheet:null}function Xs(t,e){if(!t||!t.head)return null;let n=e||Ut,o=wc.get(t);o||(o=new Map,wc.set(t,o));let r=o.get(n);if(r&&r.node.parentNode===t.head&&r.node.sheet===r.sheet)return r;if(n!==Ut){let c=T0();for(let l=0;l<c.length&&fh(c[l],n);l++)Xs(t,c[l])}let s=n===Ut?t.head.querySelector("style[data-smbls]:not([data-tier])"):t.head.querySelector(`style[data-smbls][data-tier="${n}"]`);if(!s){s=t.createElement("style"),s.setAttribute("data-smbls",""),n!==Ut&&s.setAttribute("data-tier",n);let c=t.head.querySelectorAll("style[data-smbls]"),l=null;for(let f=0;f<c.length;f++)if(fh(n,A0(c[f]))){l=c[f];break}let u=c.length?c[c.length-1]:null;if(l)t.head.insertBefore(s,l);else if(u)t.head.insertBefore(s,u.nextSibling);else{let f=t.head.querySelector('style[data-brender], style[data-emotion="smbls"]');f?t.head.insertBefore(s,f):t.head.appendChild(s)}}let i=s.sheet;if(!i)return o.delete(n),null;let a={sheet:i,node:s,rules:null,epoch:0};return o.set(n,a),n===Ut&&(c0=i),a}function O0(t){let e=t||br();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 E0=8;function En(t,e,n,o){if(!t||typeof t!="object")return"";if(Ks)return uh(t,n,o);Ks=!0,_r=br(),kc++;try{return uh(t,n,o)}finally{Ks=!1,_r=null}}function uh(t,e,n){let o=!!(n&&n.state),r=null,s=0,i=[],a=[],c=Object.keys(t);for(let u=0;u<c.length;u++){let f=c[u],d=t[f];d==null||d===!1||d===""||(typeof d=="object"?a.push([f,d]):mc&&!_o(f)?(r||(r=[]),r.push(f,String(d)),s++):i.push(sh(f,String(d),e)))}if(r&&s>=E0){let u=r.join("\0"),f=mc(u),d=f.indexOf("\0"),p=f.substring(0,d),g=f.substring(d+1);if(g){let h=g.split(`
30
+ `);for(let _=0;_<h.length;_++)h[_]&&Jt(h[_],void 0,"atomic",!0)}i.push(p)}else if(r)for(let u=0;u<r.length;u+=2)i.push(sh(r[u],r[u+1],e));let l=[];for(let u=0;u<a.length;u++)l.push(L0(a[u][0],a[u][1],e,o));return i.concat(l).join(" ").trim()}var dh=new Map,R0=/^&?:(hover|focus|focus-visible|focus-within|active)(?![\w-])/;function mo(t){return/^@(media|supports|container)\b/.test(t)}function On(t){let e=[],n=0,o=0;for(let r=0;r<t.length;r++){let s=t.charCodeAt(r);s===40?n++:s===41?n--:s===44&&n===0&&(e.push(t.slice(o,r).trim()),o=r+1)}return e.push(t.slice(o).trim()),e}function D0(t){return typeof t!="string"||!t||mo(t)?!1:On(t).every(e=>R0.test(e))}var bh=t=>{let e=Object.prototype.toString.call(t);return e==="[object Object]"||e==="[object Array]"},Cc=32,Tc=1024,ph=!1;function Gs(t,e,n){if(ph)return;ph=!0;let o=[e,...n],r=o.length>12?[...o.slice(0,6),`\u2026${o.length-9} more\u2026`,...o.slice(-3)]:o;globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(`[@symbo.ls/css] ${t} at ${r.join(" > ")} \u2014 skipped. A style block may hold only CSS values and nested plain blocks; the rest of this rule is still emitted. (One warning per page.)`)}function I0(t){try{return JSON.stringify(t)}catch{let n=[],o=0;return JSON.stringify(t,function(r,s){if(!s||typeof s!="object")return s;for(;n.length&&n[n.length-1]!==this;)n.pop();if(!(n.length&&(n.includes(s)||!bh(s)||n.length>Cc||++o>Tc)))return n.push(s),s})}}function L0(t,e,n,o){let r=I0(e),s=t.indexOf(":hover")!==-1||r.indexOf(":hover")!==-1,i=s&&Oc(),a=(n?n+"":"")+t+r+(s&&!i?"rawhover":"")+(o?"state":""),c=yr.get(a);if(c){let y=dh.get(c);if(y)for(let S=0;S<y.length;S+=2)Jt(y[S],void 0,"atomic",void 0,y[S+1]);return c}c=n?`_${n}_c${Zs(a)}`:`_c${Zs(a)}`;let l=o?`.${c}.${c}`:`.${c}`,u=D0(t)?`${l}.${c}`:l,f="",d=[],p=y=>typeof y=="string"&&(y.indexOf("{")!==-1||y.indexOf("}")!==-1),g=new Set,h=0,_=(y,S)=>{g.add(S);let w="",k=Object.keys(S);for(let v=0;v<k.length;v++){let R=k[v],O=S[R];if(O!=null)if(typeof O=="object"){let $=[...y,R];g.has(O)?Gs("a style value that loops back to one of its own ancestors",t,$):bh(O)?$.length>Cc?Gs(`a style block nested more than ${Cc} levels deep`,t,$):++h>Tc?Gs(`a style object with more than ${Tc} nested blocks`,t,$):_($,O):Gs(`a ${Object.prototype.toString.call(O).slice(8,-1)} (not a style block)`,t,$)}else{if(p(O))continue;w+=An(te(R),O)}}g.delete(S),w&&(y.length===0?f+=w:d.push({chain:y,body:w}))};_([],e);let m=y=>y.startsWith(":")||y.startsWith("["),b=(y,S=!0)=>{let w=S&&y.length===1?u:l;if(!y.length)return w;let k=On(y[0]).map(v=>v.includes("&")?v.replace(/&/g,w):m(v)?`${w}${v}`:`${w} ${v}`);for(let v=1;v<y.length;v++){let R=On(y[v]),O=[];for(let $ of k)for(let B of R)B.includes("&")?O.push(B.replace(/&/g,$)):m(B)?O.push($+B):O.push($+" "+B);k=O}return k.join(", ")},x=[],D=(y,S)=>{let w=y.filter(mo),k=b(y.filter(O=>!mo(O)),w.length===0),v=`${k}{${S}}`;for(let O=w.length-1;O>=0;O--)v=`${w[O]}{${v}}`;v=vn(v,k,i);let R=Ec(v,void 0,"atomic");x.push(v,R),Jt(v,void 0,"atomic",void 0,R)};f&&D([t],f);for(let y of d)D([t,...y.chain],y.body);return dh.set(c,x),yr.set(a,c),c}var mr=null;function P0(t){let e=mr,n=[];mr=n;try{t()}finally{mr=e}return n}function M0(t){if(!Array.isArray(t))return;Rc();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++,Jt(n[0],void 0,o,void 0,n[2]||void 0)}e>0&&yc(e)}function Ac(t){if(t==null||typeof t!="string"&&typeof t!="object")return;if(Rc(),typeof t=="string"){let s=t.indexOf("--")!==-1;Jt(t,void 0,s?"variable":"global"),s&&yc(1);return}let e=Oc(),n=0,o=Object.keys(t),r=s=>{let i=s.match(/max-width:\s*(\d+)/);return i?parseInt(i[1]):0};o.sort((s,i)=>{let a=s.startsWith("@media"),c=i.startsWith("@media");return!a&&!c?0:a?c?r(i)-r(s):1:-1});for(let s of o){let i=t[s];if(s.startsWith("@keyframes")){let a=bc(i);a&&Jt(`${s}{${a}}`,void 0,"keyframes");continue}if(mo(s))for(let a in i){let c=i[a];if(a.startsWith("@keyframes")){let l=bc(c);l&&Jt(`${s}{${a}{${l}}}`,void 0,"keyframes");continue}if(typeof c=="object"&&c!==null){let l="",u=0,f=a.charCodeAt(0)===64;for(let d in c){let p=c[d];p!=null&&(f&&typeof p=="object"||(_o(d)&&u++,l+=An(te(d),p)))}f&&(l+=rh(c)),n+=u,Jt(vn(`${s}{${a}{${l}}}`,a,e),void 0,u?"variable":"global")}else if(c!=null){let l=_o(a);l&&n++,Jt(`${s}{${An(te(a),c)}}`,void 0,l?"variable":"global")}}else{let a="",c=!1,l=0,u=s.charCodeAt(0)===64;for(let f in i){let d=i[f];if(d!=null)if(typeof d=="object"){if(u&&Sc(f))continue;c=!0}else _o(f)&&l++,a+=An(te(f),d)}if(u&&(a+=rh(i)),n+=l,a&&Jt(vn(`${s}{${a}}`,s,e),void 0,l?"variable":"global"),c){let f=[],d=[];for(let p in i)if(typeof i[p]=="object"&&i[p]!==null){if(u&&Sc(p))continue;mo(p)?f.push(p):d.push(p)}f.sort((p,g)=>{let h=_=>{let m=_.match(/max-width:\s*(\d+)/);return m?parseInt(m[1]):0};return h(g)-h(p)});for(let p of d)Ac({[`${s} ${p}`]:i[p]});for(let p of f)Ac({[p]:{[s]:i[p]}})}}}n>0&&yc(n)}function Qs(t,e){return Jt(`@keyframes ${t}{${bc(e)}}`,void 0,"keyframes"),t}function B0(){return yr.size}var xt=new Set(["extends","children","content","childrenAs","childExtends","childExtendsRecursive","childProps","inheritParentProps","state","if","define","deps","tag","attr","style","text","html","value","data","classlist","class","vars","scope","root","context","$router","routes","fetch","variables","query","key","component","preventContentUpdate","preventContentRecreate","subscribeTo","autoGrow","srcObject","allowRuntimeTemplates","__name","__ref","__hash","__text","parent","node"]),$0={text:"text",html:"html",style:"style",attr:"attr",data:"data",classlist:"classlist",state:"state",scope:"scope"},Rn=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"]),Dc=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"]),Js=new Set(["wheel","mousewheel","touchstart","touchmove","touchend","touchcancel"]),Ic=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 Dn=new Set;function yo(t){let e=t&&t.node;if(!e)return!1;let n=e.nodeType===11?t.__ref?.__fragmentAnchor:e;return n?n.isConnected!==!1:!1}function In(t,e){let n=t&&t.node,o=t&&t.__ref;if(!(!n||!o||typeof e!="function")){if(yo(t)){e(t);return}(o.__onConnected||(o.__onConnected=[])).push(e),Dn.add(t)}}function ti(){if(Dn.size)for(let t of Dn){let e=t.__ref,n=t.node;if(!e||!n){Dn.delete(t);continue}if(!yo(t))continue;Dn.delete(t);let o=e.__onConnected;if(e.__onConnected=null,!!o)for(let r=0;r<o.length;r++)try{o[r](t)}catch(s){typeof console<"u"&&console.error&&console.error("[smbls] whenConnected callback failed:",s?.message||s)}}}function Sh(t){Dn.size&&Dn.delete(t)&&t.__ref&&(t.__ref.__onConnected=null)}var Mc=new WeakMap,F0={passive:!0},j0={passive:!0,capture:!0},Ch=(t,e)=>Js.has(t)?e?j0:F0:e||!1;function Th(t){let e=Mc.get(t);return e||(e={handlers:new Map,installed:new Set},Mc.set(t,e)),e}function V0(t,e){let n=Th(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,s=>{if(r){let a=s.target,c=n.handlers.get(t),l=c&&a?c.get(a):null;if(!l||s.relatedTarget&&typeof a.contains=="function"&&a.contains(s.relatedTarget))return;l(s);return}let i=s.target;for(;i&&i!==e;){let a=n.handlers.get(t);if(a){let c=a.get(i);if(c&&(c(s),s.cancelBubble))return}i=i.parentNode}},Ch(t,o))}function Ah(t,e,n,o){o||(o=e.ownerDocument?.documentElement||e.getRootNode());let r=Th(o);V0(t,o),r.handlers.has(t)||r.handlers.set(t,new WeakMap),r.handlers.get(t).set(e,n)}function vh(t,e,n){n||(n=e.ownerDocument?.documentElement||e.getRootNode());let o=Mc.get(n);if(!o)return;let r=o.handlers.get(t);r&&r.delete(e)}function ee(t){if(t.charCodeAt(0)!==111||t.charCodeAt(1)!==110)return!1;let e=t.charCodeAt(2);return e>=65&&e<=90}function ei(t){return t.charAt(2).toLowerCase()+t.slice(3)}var U0=/^[A-Za-z_$][\w$]*$/;function Sr(t,e){return typeof e!="string"||!U0.test(e)?e:function(o){return t.call(e,o)}}function W0(t){return Ic.has(t)&&!Rn.has(t)}function ni(t,e){let{context:n}=t,o=n?.designSystem;return r=>{o&&dt(o);try{let s=e.call(t,r,t,t.state,n);if(s&&typeof s.then=="function"){s.catch(i=>{t.error=i,console.error("[DOMQL] Async event error:",i)}).finally(()=>{o&&ot()});return}}catch(s){if(t.error=s,console.error("[DOMQL] Event error:",s),n?.strictMode)throw s}o&&ot()}}var Oh=t=>!!t&&(t.capture===!0||typeof t.passive=="boolean"||t.once===!0);function z0(t,e){return Oh(e)?{capture:e.capture===!0,passive:typeof e.passive=="boolean"?e.passive:Js.has(t),once:e.once===!0}:Ch(t,!1)}function H0(t,e,n){return o=>{let r=o.target;if(r&&r.nodeType!==1&&(r=r.parentElement),!r||typeof r.closest!="function")return;let s;try{s=r.closest(e)}catch{return}s&&t.contains(s)&&n(o)}}function Bc(t,e,n,o){let{node:r,context:s}=e;if(!r)return;let i=ni(e,n),a=o&&typeof o.selector=="string"&&o.selector;a&&(i=H0(r,a,i));let l=!Dc.has(t)&&W0(t)&&!Oh(o),u=l?null:z0(t,o);if(l){let f=s?.rootNode||r.ownerDocument?.documentElement;Ah(t,r,i,f)}else r.addEventListener(t,i,u);e.__ref.__eventCleanup||(e.__ref.__eventCleanup=[]),e.__ref.__eventCleanup.push(()=>{if(l){let f=s?.rootNode||r.ownerDocument?.documentElement;vh(t,r,f)}else r.removeEventListener(t,i,u)})}var Lc=[["onDocument","document"],["onWindow","window"],["onVisualViewport","visualViewport"],["onMediaQuery","mediaQuery"]];function Nc(t){if(typeof t!="string")return null;for(let e=0;e<Lc.length;e++){let n=Lc[e][0];if(t.length<=n.length||!t.startsWith(n))continue;let o=t.charCodeAt(n.length);if(!(o<65||o>90))return{target:Lc[e][1],eventName:t.slice(n.length).toLowerCase()}}return null}function G0(t,e,n){let o=e,r=!1,s,i=!1,a=null;return e&&typeof e=="object"&&typeof e!="function"&&(o=e.handler,r=!!e.capture,i=!!e.once,typeof e.passive=="boolean"&&(s=e.passive),typeof e.query=="string"&&(a=e.query)),o=Sr(t,o),typeof o!="function"?null:(s===void 0&&(s=Js.has(n)),{handler:o,capture:r,passive:s,once:i,query:a})}function q0(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 s=r.visualViewport;return s&&typeof s.addEventListener=="function"?s:null}if(e==="mediaQuery"){let s=n&&n.query;if(typeof s!="string"||!s.trim()||typeof r.matchMedia!="function")return null;try{return r.matchMedia(s)||null}catch{return null}}return null}var Pc=/^@media\s+/i,K0=/^[@[.#&:>*~+]/,xh=new Set;function wh(t,e){!(!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&j())||xh.has(t)||(xh.add(t),console.warn(`[smbls] onMediaQueryChange: "${t}" ${e} \u2014 no listener is registered.`))}function Y0(t,e){if(typeof e!="string")return null;let n=e.trim();if(!n)return null;let o=t.context?.designSystem?.media,r=i=>{let a=o&&typeof o=="object"?o[i]:void 0;return typeof a=="string"&&a.trim()?a.trim():null},s=n;if(n.charCodeAt(0)===64&&!Pc.test(n)){if(s=r(n.slice(1)),!s)return wh(n,"is not a key of designSystem.media"),null}else s=r(n)||n;return Pc.test(s)?s.replace(Pc,"").trim()||null:K0.test(s)?(wh(n,`names "${s}", which is not a media query`),null):s}function Z0(t,e,n,o){try{return t.addEventListener(e,n,o),!0}catch{return typeof t.addListener=="function"?(t.addListener(n),!0):!1}}function Eh(t,e,n,o){try{t.removeEventListener(e,n,o)}catch{typeof t.removeListener=="function"&&t.removeListener(n)}}function $c(t,e,n){if(e.__ref){if(Array.isArray(n)){if(t.target!=="mediaQuery")return;for(let r=0;r<n.length;r++)kh(t,e,n[r]);return}kh(t,e,n)}}function kh(t,e,n){let o=e.__ref,r=G0(e,n,t.eventName);if(!r||t.target==="mediaQuery"&&t.eventName!=="change"||t.target==="mediaQuery"&&(r.query=Y0(e,r.query),!r.query))return;let s=q0(e,t.target,r);if(!s)return;let i=t.target+":"+(r.query?r.query+":":"")+t.eventName+":"+(r.capture?1:0);if(o.__globalEvents&&o.__globalEvents.has(i))return;let a=ni(e,r.handler),c=t.target==="window"&&t.eventName==="load",l=!1,u=p=>{if(yo(e)){if(c){if(l)return;l=!0}a(p)}},f={capture:r.capture,passive:r.passive,once:r.once};if(!Z0(s,t.eventName,u,f))return;o.__globalEvents||(o.__globalEvents=new Map);let d={target:s,eventName:t.eventName,listener:u,options:f};o.__globalEvents.set(i,d),o.__eventCleanup||(o.__eventCleanup=[]),o.__eventCleanup.push(()=>{Eh(s,t.eventName,u,f),o.__globalEvents&&o.__globalEvents.delete(i)}),c&&X0(e,i,d,()=>l)}function X0(t,e,n,o){let r=n.target.document;!r||r.readyState!=="complete"||In(t,()=>queueMicrotask(()=>{let s=t.__ref;if(o()||!s||!s.__globalEvents||s.__globalEvents.get(e)!==n)return;let i=n.target,a=typeof i.Event=="function"?i.Event:typeof Event=="function"?Event:null;a&&(n.listener(new a("load")),n.options.once&&o()&&Eh(i,"load",n.listener,n.options))}))}var Lh=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],Q0=["none","forwards","backwards","both"],J0=["normal","reverse","alternate","alternate-reverse"],tC=["running","paused"],eC=/^(?: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*\))$/,nC=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=>eC.test(o.replace(/\s+/g,"")))},Rh=t=>/^(?:\s*0[a-z%]*)+\s*$/.test(String(t).toLowerCase())||/^(none|initial|unset)$/.test(String(t).trim().toLowerCase()),oC={transform:nC,translate:Rh,rotate:t=>Rh(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},rC=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},sC=t=>{if(!E(t))return null;let e=null,n=-1;for(let o in t){let r=rC(o);r==null||!E(t[o])||r>=n&&(n=r,e=t[o])}return e},iC=t=>{let e=sC(t);if(!e)return!1;let n=Object.keys(e);if(!n.length)return!1;for(let o of n){let r=oC[o];if(!r)return!1;let s=e[o];if(s==null||typeof s=="object"||typeof s=="function"||!r(s))return!1}return!0},aC=(t,e)=>{if(E(t))return t;let{animation:n}=e.context&&e.context.designSystem||{},o=n&&n[t];return E(o)?o:null},cC=["reverse","alternate","alternate-reverse"],Ph=(t,e,n)=>{let o=n||e.animationDirection;return o&&cC.includes(String(o))?"both":iC(aC(t,e))?"backwards":"both"},lC=0,Dh=new Map,Fc=(t,e)=>{let{animation:n}=e.context&&e.context.designSystem||{};if(E(t)){let r=JSON.stringify(t),s=Dh.get(r);if(s)return s;let i=`smbls-anim-${lC++}`,a=Qs(i,t);return Dh.set(r,a),a}let o=n&&n[t];return E(o)?Qs(t,o):t},Mh=/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)m?s$/i,fC=/^(?:\d+(?:\.\d*)?|\.\d+)$/,Bh=/^(?:cubic-bezier|steps|linear)\(/,uC=/^(?:calc|min|max|clamp)\(/,dC=t=>t.includes("(")||t.startsWith("--"),pC=(t,e)=>{if(!Be.test(t))return!1;let n=e&&e.sequence;if(!E(n))return!1;let o=t.charCodeAt(0)===45?t.slice(1):t;return!!(n[o]||o.length===2&&n[o[0]])},hC=t=>{if(!C(t))return!1;let e=t.trim();return Lh.includes(e)||Bh.test(e)||e.startsWith("var(")},gC=(t,e)=>!!e&&hC(e[t]||e[ys(t)]),_C=["duration","timingFunction","delay","iterationCount","direction","fillMode","playState"],mC=t=>W(String(t)),yC=(t,e,n)=>{let o={duration:null,delay:null,timingFunction:null,iterationCount:null,direction:null,fillMode:null,playState:null},r=null,s=[],i=[],a=(f,d)=>o[f]!=null?!1:(o[f]=d,!0),c=(f,d)=>{a(f,d)||s.push(d)};for(let f of mC(t))e&&e[f]?r=f:Mh.test(f)||pC(f,n)?a("duration",f)||a("delay",f):Lh.includes(f)||gC(f,n)?c("timingFunction",f):Bh.test(f)?a("timingFunction",f):f==="infinite"?c("iterationCount",f):fC.test(f)?a("iterationCount",Number(f)):J0.includes(f)?c("direction",f):Q0.includes(f)?c("fillMode",f):tC.includes(f)?c("playState",f):dC(f)?i.push(f):s.push(f);let l=r||s[0]||i.shift()||null,u=new Set;for(let f of i){let d=_C.find(p=>o[p]==null);if(!d)break;o[d]=f.startsWith("--")?`var(${f})`:f,u.add(d)}return{name:l,...o,opaqueSlots:u}},bC=(t,e)=>{let{animation:n}=e.context&&e.context.designSystem||{},{timing:o}=A()||{};return Pe(String(t)).map(r=>r.trim()).filter(Boolean).map(r=>yC(r,n,o))},Ih=(t,e)=>Mh.test(t)||e&&!uC.test(t)&&!/^(?:var|env)\(/.test(t)?t:Qt(t).timing||t,SC=(t,e)=>{let n=o=>t.opaqueSlots.has(o);return{animationName:t.name==null?void 0:Fc(t.name,e),animationDuration:t.duration!=null?Ih(t.duration,n("duration")):Qt(e.animationDuration||"A").timing,animationDelay:t.delay!=null?Ih(t.delay,n("delay")):Qt(e.animationDelay||"0s").timing,animationTimingFunction:t.timingFunction!=null?n("timingFunction")?t.timingFunction:he(t.timingFunction):he(e.animationTimingFunction||"ease"),animationFillMode:t.fillMode||e.animationFillMode||Ph(t.name,e,t.direction),animationIterationCount:t.iterationCount!=null?t.iterationCount:e.animationIterationCount||1,animationPlayState:t.playState||e.animationPlayState,animationDirection:t.direction||e.animationDirection}},xC={animationName:"none",animationPlayState:"running",animationDirection:"normal"},wC=(t,e)=>{let n=t.map(r=>SC(r,e));if(n.length===1)return n[0];let o={};for(let r in n[0]){let s=n.map(i=>i[r]);s.every(i=>i==null)||(o[r]=s.map(i=>i??xC[r]).join(", "))}return o},Nh={animation:(t,e)=>{if(t!=null){if(C(t)&&/[\s,]/.test(t)){let n=bC(t,e);if(n.length)return wC(n,e)}return{animationName:Fc(t,e),animationDuration:Qt(e.animationDuration||"A").timing,animationDelay:Qt(e.animationDelay||"0s").timing,animationTimingFunction:he(e.animationTimingFunction||"ease"),animationFillMode:e.animationFillMode||Ph(t,e),animationIterationCount:e.animationIterationCount||1,animationPlayState:e.animationPlayState,animationDirection:e.animationDirection}}},animationName:(t,e)=>({animationName:Fc(t,e)}),animationDuration:t=>({animationDuration:Qt(t).timing}),animationDelay:t=>({animationDelay:Qt(t).timing}),animationTimingFunction:t=>({animationTimingFunction:he(t)}),animationIterationCount:t=>({animationIterationCount:t}),animationFillMode:t=>({animationFillMode:t}),animationPlayState:t=>({animationPlayState:t}),animationDirection:t=>({animationDirection:t})};var oi=(t,e,n)=>{if(typeof e=="number"&&(e=String(e)),!C(e))return;let[o,r]=W(e);return{...I(t+"Start",o,n),...I(t+"End",r||o,n)}},$h={show:t=>t?void 0:{display:"none !important"},hide:t=>t?{display:"none !important"}:void 0,height:(t,e)=>I("height",t,e),width:(t,e)=>I("width",t,e),boxSizing:t=>cs(t)?{boxSizing:"border-box"}:{boxSizing:t},boxSize:t=>{if(!C(t))return;let[e,n]=W(t);return{...rt("height",e),...rt("width",n||e)}},inlineSize:(t,e)=>I("inlineSize",t,e),blockSize:(t,e)=>I("blockSize",t,e),minWidth:(t,e)=>I("minWidth",t,e),maxWidth:(t,e)=>I("maxWidth",t,e),widthRange:t=>{if(!C(t))return;let[e,n]=W(t);return{...rt("minWidth",e),...rt("maxWidth",n||e)}},minHeight:(t,e)=>I("minHeight",t,e),maxHeight:(t,e)=>I("maxHeight",t,e),heightRange:t=>{if(!C(t))return;let[e,n]=W(t);return{...rt("minHeight",e),...rt("maxHeight",n||e)}},size:t=>{if(!C(t))return;let[e,n]=W(t);return{...I("inlineSize",e),...I("blockSize",n||e)}},minBlockSize:(t,e)=>I("minBlockSize",t,e),minInlineSize:(t,e)=>I("minInlineSize",t,e),maxBlockSize:(t,e)=>I("maxBlockSize",t,e),maxInlineSize:(t,e)=>I("maxInlineSize",t,e),minSize:t=>{if(!C(t))return;let[e,n]=W(t);return{...rt("minInlineSize",e),...rt("minBlockSize",n||e)}},maxSize:t=>{if(!C(t))return;let[e,n]=W(t);return{...rt("maxInlineSize",e),...rt("maxBlockSize",n||e)}},borderWidth:(t,e)=>I("borderWidth",t,e),borderTopWidth:(t,e)=>I("borderTopWidth",t,e),borderRightWidth:(t,e)=>I("borderRightWidth",t,e),borderBottomWidth:(t,e)=>I("borderBottomWidth",t,e),borderLeftWidth:(t,e)=>I("borderLeftWidth",t,e),textDecorationThickness:(t,e)=>I("textDecorationThickness",t,e),textUnderlineOffset:(t,e)=>I("textUnderlineOffset",t,e),padding:(t,e)=>I("padding",t,e),paddingInline:t=>{if(!C(t))return;let[e,n]=W(t);return{...rt("paddingInlineStart",e),...rt("paddingInlineEnd",n||e)}},paddingBlock:t=>{if(!C(t))return;let[e,n]=W(t);return{...rt("paddingBlockStart",e),...rt("paddingBlockEnd",n||e)}},paddingTop:(t,e)=>I("paddingBlockStart",t,e),paddingBottom:(t,e)=>I("paddingBlockEnd",t,e),paddingLeft:(t,e)=>I("paddingInlineStart",t,e),paddingRight:(t,e)=>I("paddingInlineEnd",t,e),paddingBlockStart:(t,e)=>I("paddingBlockStart",t,e),paddingBlockEnd:(t,e)=>I("paddingBlockEnd",t,e),paddingInlineStart:(t,e)=>I("paddingInlineStart",t,e),paddingInlineEnd:(t,e)=>I("paddingInlineEnd",t,e),margin:(t,e)=>I("margin",t,e),marginInline:t=>{if(!C(t))return;let[e,n]=W(t);return{...rt("marginInlineStart",e),...rt("marginInlineEnd",n||e)}},marginBlock:t=>{if(!C(t))return;let[e,n]=W(t);return{...rt("marginBlockStart",e),...rt("marginBlockEnd",n||e)}},marginTop:(t,e)=>I("marginBlockStart",t,e),marginBottom:(t,e)=>I("marginBlockEnd",t,e),marginLeft:(t,e)=>I("marginInlineStart",t,e),marginRight:(t,e)=>I("marginInlineEnd",t,e),marginInlineStart:(t,e)=>I("marginInlineStart",t,e),marginInlineEnd:(t,e)=>I("marginInlineEnd",t,e),marginBlockStart:(t,e)=>I("marginBlockStart",t,e),marginBlockEnd:(t,e)=>I("marginBlockEnd",t,e),scrollMargin:(t,e)=>I("scrollMargin",t,e),scrollMarginTop:(t,e)=>I("scrollMarginTop",t,e),scrollMarginRight:(t,e)=>I("scrollMarginRight",t,e),scrollMarginBottom:(t,e)=>I("scrollMarginBottom",t,e),scrollMarginLeft:(t,e)=>I("scrollMarginLeft",t,e),scrollMarginBlock:(t,e)=>oi("scrollMarginBlock",t,e),scrollMarginInline:(t,e)=>oi("scrollMarginInline",t,e),scrollMarginBlockStart:(t,e)=>I("scrollMarginBlockStart",t,e),scrollMarginBlockEnd:(t,e)=>I("scrollMarginBlockEnd",t,e),scrollMarginInlineStart:(t,e)=>I("scrollMarginInlineStart",t,e),scrollMarginInlineEnd:(t,e)=>I("scrollMarginInlineEnd",t,e),scrollPadding:(t,e)=>I("scrollPadding",t,e),scrollPaddingTop:(t,e)=>I("scrollPaddingTop",t,e),scrollPaddingRight:(t,e)=>I("scrollPaddingRight",t,e),scrollPaddingBottom:(t,e)=>I("scrollPaddingBottom",t,e),scrollPaddingLeft:(t,e)=>I("scrollPaddingLeft",t,e),scrollPaddingBlock:(t,e)=>oi("scrollPaddingBlock",t,e),scrollPaddingInline:(t,e)=>oi("scrollPaddingInline",t,e),scrollPaddingBlockStart:(t,e)=>I("scrollPaddingBlockStart",t,e),scrollPaddingBlockEnd:(t,e)=>I("scrollPaddingBlockEnd",t,e),scrollPaddingInlineStart:(t,e)=>I("scrollPaddingInlineStart",t,e),scrollPaddingInlineEnd:(t,e)=>I("scrollPaddingInlineEnd",t,e),gap:t=>({gap:Gp(t)}),columnGap:(t,e)=>pe(e,"columnGap",t),rowGap:(t,e)=>pe(e,"rowGap",t),flexWrap:t=>{if(t!=null)return{display:"flex",flexWrap:t}},flexFlow:(t,e)=>{let n=e.reverse;if(!C(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(!C(t))return;let[e,n]=t.split(" ");return{display:"flex",alignItems:e,justifyContent:n}},round:(t,e)=>Tn(t??e.borderRadius,e,"round"),borderRadius:(t,e)=>Tn(t??e.round,e,"borderRadius"),borderTopLeftRadius:(t,e)=>Tn(t,e,"borderTopLeftRadius","borderTopLeftRadius"),borderTopRightRadius:(t,e)=>Tn(t,e,"borderTopRightRadius","borderTopRightRadius"),borderBottomLeftRadius:(t,e)=>Tn(t,e,"borderBottomLeftRadius","borderBottomLeftRadius"),borderBottomRightRadius:(t,e)=>Tn(t,e,"borderBottomRightRadius","borderBottomRightRadius"),backgroundSize:(t,e)=>({backgroundSize:gr(t,"backgroundSize",lc,e)}),backgroundPosition:(t,e)=>({backgroundPosition:gr(t,"backgroundPosition",fc,e)}),maskSize:(t,e)=>({maskSize:gr(t,"maskSize",lc,e)}),maskPosition:(t,e)=>({maskPosition:gr(t,"maskPosition",fc,e)})};var Fh={fontSize:t=>Ya(t)||t,fontFamily:t=>({fontFamily:qa(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 jh={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 s=o.files&&o.files[t];s&&s.content&&(t=`url(${s.content.src})`)}return{cursor:t}},opacity:t=>t!=null?{opacity:String(t)}:void 0,visibility:t=>t!=null?{visibility:t}:void 0,pointerEvents:t=>t!=null?{pointerEvents:t}:void 0};var Vh={inset:(t,e)=>{if(e.call("isNumber",t))return{inset:t};if(e.call("isString",t))return{inset:W(t).map(n=>gt(n,"k").k).join(" ")}},left:t=>gt(t,"left"),top:t=>gt(t,"top"),right:t=>gt(t,"right"),bottom:t=>gt(t,"bottom"),verticalInset:t=>{if(typeof t!="string")return;let e=W(t).map(n=>gt(n,"k").k);return{top:e[0],bottom:e[1]||e[0]}},horizontalInset:t=>{if(typeof t!="string")return;let e=W(t).map(n=>gt(n,"k").k);return{left:e[0],right:e[1]||e[0]}}};var ri=0,jc=()=>{ri++},Vc=()=>{ri>0&&ri--},Pt=({context:t,state:e})=>{let n=t?.designSystem,o=e?.root?.globalTheme||n?.globalTheme;return o&&o!=="auto"?o:ri>0?null:n&&n.resolvedTheme||null},Et=(t,e)=>{if(e==null||e==="")return;if(!E(e))return{[t]:e};let n={},o=!1;for(let r in e){let s=e[r];if(!(s==null||s==="")){if(E(s)){let i=Et(t,s);i&&(n[r]=i,o=!0);continue}n[r]={[t]:s},o=!0}}return o?n:void 0},Uh=t=>{let e={};for(let n in t){let o=t[n];e[n]=E(o)?Uh(o):C(o)?o+" !important":o}return e},Ln=t=>(e,n)=>{let o=n&&C(e)&&!A().useVariable,r=Up(e,o?Pt(n):null);return E(r)?Et(t,r):{[t]:r}},Wh={theme:(t,e)=>{if(t)return e.themeModifier?Te(t,`@${e.themeModifier}`):Te(t)},color:(t,e)=>{let n=Pt(e);if(t)return Et("color",yt(t,n))},background:(t,e)=>{let n=Pt(e);if(t)return C(t)&&t.includes("gradient")&&t.includes("(")?{background:lo(t,n)}:Et("background",yt(t,n))},backgroundColor:(t,e)=>{let n=Pt(e);if(t)return Et("backgroundColor",yt(t,n))},backgroundImage:(t,e,n,o)=>{let r=Pt(e);if(!t)return;let s=o.assets&&o.assets[t];if(s&&s.content)t=s.content.src;else{let i=o.files&&o.files[t];i&&i.content&&(t=i.content.src)}return Et("backgroundImage",Hp(t,r))},textStroke:t=>{let e=Wp(t);if(e!=null)return{WebkitTextStroke:e}},outline:Ln("outline"),outlineWidth:(t,e)=>I("outlineWidth",t,e),outlineColor:(t,e)=>{let n=Pt(e);if(t)return Et("outlineColor",yt(t,n))},outlineOffset:(t,e)=>I("outlineOffset",t,e),border:Ln("border"),borderColor:(t,e)=>{let n=Pt(e);if(t)return Et("borderColor",yt(t,n))},borderTopColor:(t,e)=>{let n=Pt(e);if(t)return Et("borderTopColor",yt(t,n))},borderBottomColor:(t,e)=>{let n=Pt(e);if(t)return Et("borderBottomColor",yt(t,n))},borderLeftColor:(t,e)=>{let n=Pt(e);if(t)return Et("borderLeftColor",yt(t,n))},borderRightColor:(t,e)=>{let n=Pt(e);if(t)return Et("borderRightColor",yt(t,n))},borderLeft:Ln("borderLeft"),borderTop:Ln("borderTop"),borderRight:Ln("borderRight"),borderBottom:Ln("borderBottom"),shadow:(t,e)=>{let n=Pt(e);if(t)return Et("boxShadow",zp(t,n))},boxShadow:(t,e)=>{if(!C(t))return;let[n,o]=t.split("!importan"),r=Pt(e),s=o?" !important":"",i=cc(n.trim(),r);return C(i)?{boxShadow:i+s}:Et("boxShadow",s?Uh(i):i)},textShadow:(t,e)=>Et("textShadow",cc(t,e?Pt(e):null)),columnRule:Ln("columnRule")};var si={transition:t=>{let e=Kp(t);if(e!=null)return{transition:e}},transitionDuration:t=>({transitionDuration:uc(t)}),transitionDelay:t=>({transitionDelay:uc(t)}),transitionTimingFunction:t=>({transitionTimingFunction:he(t)}),transitionProperty:t=>({transitionProperty:t,willChange:t})};var zh={flow:(t,e)=>{let n=e.reverse;if(!C(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(!C(t))return;let[n,o]=t.split(" ");return{display:"flex",alignItems:n,justifyContent:o}}};var kC=/(^|[^\w.-])([A-Za-z_][\w-]*)/g,CC=t=>{if(!C(t))return t;let e=A().sizes;return e?t.replace(kC,(n,o,r)=>{let s=e[r];return s==null?n:o+String(s)}):t},ve=t=>CC(qp(t)),Hh={gridTemplateColumns:t=>({gridTemplateColumns:ve(t)}),gridTemplateRows:t=>({gridTemplateRows:ve(t)}),gridAutoColumns:t=>({gridAutoColumns:ve(t)}),gridAutoRows:t=>({gridAutoRows:ve(t)}),area:t=>({gridArea:t}),template:t=>({gridTemplate:t}),templateAreas:t=>({gridTemplateAreas:t}),column:t=>({gridColumn:t}),columns:t=>({gridTemplateColumns:ve(t)}),templateColumns:t=>({gridTemplateColumns:ve(t)}),autoColumns:t=>({gridAutoColumns:ve(t)}),columnStart:t=>({gridColumnStart:t}),row:t=>({gridRow:t}),rows:t=>({gridTemplateRows:ve(t)}),templateRows:t=>({gridTemplateRows:ve(t)}),autoRows:t=>({gridAutoRows:ve(t)}),rowStart:t=>({gridRowStart:t}),autoFlow:t=>({gridAutoFlow:t})};var TC="breakpoints",AC=new Set(["window","media"]),Gh=/^-?[A-Za-z_][\w-]*$/,qh=new Set(["none","and","or","not","initial","inherit","unset","revert","revert-layer","default"]),vC=t=>{let e=t&&t.containerName;if(typeof e!="string")return null;let n=e.trim().split(/\s+/)[0];return n&&Gh.test(n)&&!qh.has(n)?n:null},Uc=(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||AC.has(n)?null:n==="container"?vC(e)||TC:Gh.test(n)&&!qh.has(n)?n:null},OC=/^@media\s+/i,EC=/^(?:only\s+)?(?:screen|all)\s+and\s+/i,RC=/(?:^|[^\w-])(?:(?:min|max)-)?(?:width|inline-size)(?![\w-])/i,DC=/height|block-size|aspect-ratio|orientation|device-|resolution/i,Kh=t=>{if(typeof t!="string")return null;let e=t.trim().replace(OC,"").replace(EC,"").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 s=r.slice(1,-1);if(s.indexOf("(")!==-1||s.indexOf(")")!==-1||!RC.test(s)||DC.test(s))return null}return e},Yh={breakpointsFrom:(t,e)=>{let n=Uc(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 Y={...Nh,...$h,...Fh,...jh,...Vh,...Wh,...si,...zh,...Hh,...Yh};var st=new Set(["accentColor","alignContent","alignItems","alignSelf","alignmentBaseline","all","anchorName","anchorScope","animation","animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationRange","animationRangeEnd","animationRangeStart","animationTimeline","animationTimingFunction","appearance","aspectRatio","backdropFilter","backfaceVisibility","background","backgroundAttachment","backgroundBlendMode","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundRepeatX","backgroundRepeatY","backgroundSize","baselineShift","blockSize","border","borderBlock","borderBlockColor","borderBlockEnd","borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth","borderBlockStart","borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth","borderBlockStyle","borderBlockWidth","borderBottom","borderBottomColor","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStyle","borderBottomWidth","borderCollapse","borderColor","borderImage","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderSpacing","borderStyle","borderTop","borderTopColor","borderTopLeftRadius","borderTopRightRadius","borderTopStyle","borderTopWidth","borderWidth","bottom","boxDecorationBreak","boxShadow","boxSizing","breakAfter","breakBefore","breakInside","captionSide","caretColor","clear","clip","clipPath","color","colorAdjust","colorInterpolation","colorInterpolationFilters","colorRendering","columnCount","columnFill","columnGap","columnRule","columnRuleColor","columnRuleStyle","columnRuleWidth","columnSpan","columnWidth","columns","contain","containIntrinsicBlockSize","containIntrinsicHeight","containIntrinsicInlineSize","containIntrinsicSize","containIntrinsicWidth","container","containerName","containerType","content","contentVisibility","counterIncrement","counterReset","cursor","direction","display","emptyCells","fieldSizing","fill","filter","flex","flexBasis","flexDirection","flexFlow","flexGrow","flexShrink","flexWrap","float","font","fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantNumeric","fontVariantPosition","fontWeight","fontVariationSettings","fontSynthesis","forcedColorAdjust","gap","grid","gridArea","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumn","gridColumnEnd","gridColumnGap","gridColumnStart","gridGap","gridRow","gridRowEnd","gridRowGap","gridRowStart","gridTemplate","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","height","hyphens","imageOrientation","imageRendering","imeMode","inset","insetBlock","insetBlockEnd","insetBlockStart","insetInline","insetInlineEnd","insetInlineStart","initialLetter","interpolateSize","isolation","justifyContent","justifyItems","justifySelf","left","letterSpacing","lineBreak","lineClamp","lineHeight","listStyle","listStyleImage","listStylePosition","listStyleType","margin","marginBottom","marginLeft","marginRight","marginTop","marginBlock","marginBlockEnd","marginBlockStart","marginInline","marginInlineEnd","marginInlineStart","mask","maskBorder","maskBorderImage","maskBorderOutset","maskBorderRepeat","maskBorderSlice","maskBorderSource","maskBorderWidth","maskClip","maskComposite","maskImage","maskOrigin","maskPosition","maskRepeat","maskSize","maskType","maxBlockSize","maxHeight","maxInlineSize","maxWidth","minBlockSize","minHeight","minInlineSize","minWidth","mixBlendMode","objectFit","objectPosition","objectViewBox","offset","offsetDistance","offsetPath","offsetRotate","opacity","order","orientation","outline","outlineColor","outlineOffset","outlineStyle","outlineWidth","overflow","overflowAnchor","overflowClip","overflowScrolling","overflowWrap","overflowX","overflowY","overscrollBehavior","overscrollBehaviorX","overscrollBehaviorY","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","pageBreakAfter","pageBreakBefore","pageBreakInside","paintOrder","perspective","perspectiveOrigin","placeContent","placeItems","placeSelf","pointerEvents","position","positionAnchor","positionArea","positionTry","positionTryFallbacks","positionTryOrder","positionVisibility","resize","right","rotate","rowGap","scrollBehavior","scrollMargin","scrollMarginBlock","scrollMarginBlockEnd","scrollMarginBlockStart","scrollMarginBottom","scrollMarginInline","scrollMarginInlineEnd","scrollMarginInlineStart","scrollMarginLeft","scrollMarginRight","scrollMarginTop","scrollPadding","scrollPaddingBlock","scrollPaddingBlockEnd","scrollPaddingBlockStart","scrollPaddingBottom","scrollPaddingInline","scrollPaddingInlineEnd","scrollPaddingInlineStart","scrollPaddingLeft","scrollPaddingRight","scrollPaddingTop","scrollSnapAlign","scrollSnapStop","scrollSnapType","scrollTimeline","scrollTimelineAxis","scrollTimelineName","scrollbarColor","scrollbarGutter","scrollbarWidth","shapeImageThreshold","shapeMargin","shapeOutside","stroke","tabSize","tableLayout","textAlign","textAlignLast","textBox","textBoxEdge","textBoxTrim","textDecoration","textDecorationColor","textDecorationLine","textDecorationSkipInk","textDecorationStyle","textDecorationThickness","textIndent","textOverflow","textShadow","textTransform","textUnderlineOffset","textWrap","textWrapMode","textWrapStyle","timelineScope","top","touchAction","transform","transformOrigin","transformStyle","transition","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","translate","translateX","translateY","translateZ","unicodeBidi","userSelect","verticalAlign","viewTimeline","viewTimelineAxis","viewTimelineInset","viewTimelineName","viewTransitionClass","viewTransitionName","visibility","whiteSpace","widows","width","willChange","wordBreak","wordSpacing","wordWrap","writingMode","zIndex"]);var IC=/^[a-z][0-9]?$/,Zh=/var\(\s*(--[A-Za-z0-9-]+)/g,LC=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 s in r.sequence)e.add(s);if(r.vars&&typeof r.vars=="object")for(let s in r.vars)n.add(s)}}return{knownLetters:e,knownVars:n}},PC=Object.prototype.propertyIsEnumerable,Xh=(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"&&PC.call(r,e))return!0}return!1},Wc=/[(),\s]+/,zc=(t,e)=>{let n=null,o=t.split(Wc);for(let r=0;r<o.length;r++){let s=o[r];s&&e(s)&&(n||(n=[])).push(s)}return n},Hc=(t,e)=>Be.test(t)&&e(t.charCodeAt(0)===45?t.slice(1):t),MC=(t,e)=>{if(!e.size)return[];let n=r=>e.has(r),o=zc(t,r=>Hc(r,n));return o?[...new Set(o)]:[]},BC=(t,e)=>{if(!e.size)return[];let n=[];Zh.lastIndex=0;let o;for(;o=Zh.exec(t);){let r=o[1];if(e.has(r))continue;let s=r.lastIndexOf("-");if(s===-1)continue;let i=r.slice(s+1);if(!IC.test(i))continue;let a=r.slice(0,s+1)+i.toUpperCase();a!==r&&e.has(a)&&n.push({varName:r,corrected:a})}return n},ii=new Set,Qh=(t,e,n)=>{if(!(!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&j())||!C(e)||!e)return;let o;try{o=A()}catch{return}let{knownLetters:r,knownVars:s}=LC(o);if(!r.size&&!s.size)return;let i=MC(e,r),a=BC(e,s);if(!i.length&&!a.length)return;let c=n?.__ref?.path?n.__ref.path.join("."):n?.key||"?";for(let l of i){let u=`${c}::${t}::bare::${l}::${e}`;ii.has(u)||(ii.add(u),console.warn(`[smbls/css-in-props] "${t}" on <${c}> looks like it contains an un-wrapped design-system token ("${l}") \u2014 "${t}" has no registered resolver, so its value is forwarded to the browser untouched. A bare letter token there is invalid CSS, so the browser drops the ENTIRE "${t}" declaration (not just this argument). Wrap it in var(--<family>-${l.replace("-","")}) (or calc(-1 * var(--<family>-${l.replace("-","")})) for a negative). Value: "${e}"`))}for(let{varName:l,corrected:u}of a){let f=`${c}::${t}::case::${l}::${e}`;ii.has(f)||(ii.add(f),console.warn(`[smbls/css-in-props] "${t}" on <${c}> references ${l}, which the active design system never emits. CSS custom-property names are case-sensitive \u2014 the real variable is ${u}, so this reference silently never resolves. Value: "${e}"`))}};var ai=us(),NC=(t,e,n)=>{let o=e?.context?.designSystem;o&&dt(o);try{let r={},s={},i=(a,c)=>{if(n.unpack){r={...r,...c};return}r[a]=c};for(let a in t){let c=t[a];if(c!==null)if(a==="class"&&C(c)){let l=$C(c,e);l&&(n.unpack?At(r,l):r.designSystemClass=l)}else if(a==="true"){let l=qe(c,e);At(r,Jh(l,e))}else if(e.classlist?.[a]){let l=e.classlist[a],u=ht(l)?l(e,e.state,e.context):l;u&&i(a,u),!ai&&E(r[a])&&(r[a].label=a)}else if(Y[a]){let l=qe(c,e);if(l===null)continue;q(l)&&(l=l.reduce((f,d)=>At(f,d),{}));let u=Y[a](l,e,e.state,e.context);q(u)&&(u=u.reduce((f,d)=>At(f,d),{})),u&&i(a,u),!ai&&E(r[a])&&(r[a].label=a)}else if(st.has(a)){let l=qe(c,e);if(l===null)continue;typeof l=="string"&&l.charCodeAt(0)===45&&l.charCodeAt(1)===45&&(l=`var(${l})`),ai||Qh(a,l,e),i(a,{[a]:l}),!ai&&E(r[a])&&(r[a].label=a)}else s[a]=c}return[r,s]}finally{o&&ot()}},$C=(t,e)=>{if(!C(t))return;let n=e?.context?.designSystem?.class;if(!n)return;let o;for(let r of t.split(" ")){if(!r)continue;let s=n[r];if(!E(s))continue;let i=Yt(s);o=o?dn(o,i):i}if(o)return ne(o,e)},FC=(t,e)=>{let n={};for(let o in t){let r=tg[o.slice(0,1)];if(r){let s=r(o,t[o],e);if(s)for(let i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[i]&&typeof n[i]=="object"&&typeof s[i]=="object"?dn(n[i],s[i]):n[i]=s[i])}}return n},ne=(t,e,n={unpack:!0})=>{let[o,r]=NC(t,e,n),s=FC(r,e),i=!1;for(let a in s){i=!0;break}if(i){if(n.unpack)return Yu(o,s);o._selectors=s}return o},VM=(t,e)=>{let n={};if(t.class)for(let o in t.class)n[o]=t.class[o](e);return n};var jC=/^\[data-theme=(?:"([^"]+)"|'([^']+)')\]$/,VC=(t,e,n)=>{let{context:o}=n;if(!o.designSystem?.media)return;let r=t.slice(1),s=o.designSystem.media[r],i=ir(s||t)?sr(()=>ne(e,n)):ne(e,n);if(!s)return{[t]:i};if(/^@(media|supports|container)\b/.test(s))return{[s]:i};if(s==="print")return{"@media print":i};if(s[0]==="(")return{[`@media screen and ${s}`]:i};let a=s.match(jC),c=a?a[1]||a[2]:r,l={[`${s} &`]:i};if(c==="dark"||c==="light"){let u=o.designSystem?.scopeSelector||":root",f=u===":root"?":root:not([data-theme])":`${u}:not([data-theme])`;l[`@media (prefers-color-scheme: ${c})`]={[`${f} &`]:i}}return l},eg=(t,e,n)=>({[t]:ne(e,n)}),xr=(t,e,n)=>{let o=`&${t}`,r=ne(e,n);if(t.includes(",")&&r){let s={},i={};for(let a in r)typeof r[a]=="object"&&r[a]!==null?i[a]=r[a]:s[a]=r[a];if(Object.keys(i).length){let a=o.split(",").map(l=>l.trim()),c={};Object.keys(s).length&&(c[o]=s);for(let l in i){let u=a.map(f=>`${f} ${l}`).join(", ");c[u]=i[l]}return c}}return{[o]:r}},Gc=(t,e)=>{let n=e.context?.cases?.[t];if(n!==void 0)return ht(n)?n.call(e,e):!!n},UC=(t,e,n)=>{let o=t.slice(1),r=Gc(o,n);if(r===void 0&&(r=!!n[o]),!!r)return ne(e,n)},WC=(t,e,n)=>({[t]:e}),zC=(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 s=Gc(o,n);s!==void 0&&(r=s)}if(r)return ne(e,n)},HC=(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 s=Gc(o,n);s!==void 0&&(r=s)}if(!r)return ne(e,n)},Jh=(t,e)=>ne(t,e),tg={"@":VC,":":xr,"[":xr,"*":xr,"+":xr,"~":xr,"&":eg,">":eg,$:UC,"-":WC,".":zC,"!":HC};var ng=/\s*!important\s*$/,GC=()=>{let t;try{t=A()}catch{t=null}let e=t&&t.sizes&&typeof t.sizes=="object"?t.sizes:null,n=null,o=s=>{n||(n=new Map);let i=n.get(s);return i===void 0&&(i=Xh(t,s),n.set(s,i)),i},r=s=>Ps(e,s)!==void 0;return{isToken:s=>s.charCodeAt(0)!==35&&(Hc(s,o)||r(s))}},qC=(t,e)=>{let n=String(t).split(Wc);for(let o=0;o<n.length;o++)if(n[o]===e)return!0;return!1},KC=(t,e)=>{let n=typeof globalThis<"u"?globalThis.CSS:void 0;if(!n||typeof n.supports!="function")return!1;try{return n.supports(te(t),e)}catch{return!1}},og=new Set,YC=(t,e,n)=>{if(!(!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&j()))return;let o=t?.__ref?.path?t.__ref.path.join("."):t?.key||"?",r=o+"::"+e+"::"+n;og.has(r)||(og.add(r),console.warn(`[smbls/css-in-props] style.${e} on <${o}> holds a design-system token the "${e}" transformer could not resolve to one inline value, so it is written as is and the browser drops it. Move the key out of \`style\` to the element itself, or write the resolved CSS. Value: "${n}"`))},ZC=(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 s of e)if(qC(r,s))return!1;n=!0}}return n},XC=(t,e,n,o)=>{if(!C(e)||!e||t.charCodeAt(0)===45&&t.charCodeAt(1)===45)return null;let r=Y[t];if(!r||!st.has(t))return null;let s=ng.test(e),i=s?e.replace(ng,""):e,a=zc(i,o.isToken);if(!a||KC(t,i))return null;let c;try{c=r(i,n,n?.state,n?.context)}catch{c=null}if(Array.isArray(c)){let u={};for(let f of c)f&&typeof f=="object"&&Object.assign(u,f);c=u}if(!ZC(c,a))return YC(n,t,e),null;let l={};for(let u in c){let f=c[u];f!=null&&(l[u]=s?String(f)+" !important":f)}return l},rg=(t,e,n)=>{let o={},r=!1;for(let s in t){let i=t[s];if(s.charCodeAt(0)===38&&i&&typeof i=="object"&&!Array.isArray(i)){let c=rg(i,e,n);c!==i&&(r=!0),o[s]=c;continue}let a=XC(s,i,e,n);a?(r=!0,Object.assign(o,a)):o[s]=i}return r?o:t},sg=(t,e)=>!t||typeof t!="object"||Array.isArray(t)?t:rg(t,e,GC());if(!tt||!Ae)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 ci=tt,Ze=Ae,li=zs||(()=>!1),ig=_c||li,ag=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,Fe=te||(t=>ag(t)?t:t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())),wr=vc||(t=>ag(t)?t:t.replace(/-([a-z])/g,(e,n)=>n.toUpperCase()));var V={viewEvents:null,chains:null,rows:null,hydration:null,mount:null};function lg(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 Kc(t,e,n){let o=lg(e);if(!o.length)return;let s=(t.context||n?.context||{}).components||{};for(let i=0;i<o.length;i++){let a=fg(o[i],s);a&&a!==e&&ug(t,a,n,new Set([e]))}}function fg(t,e){if(typeof t=="string"){if(t.includes(">")){let n=t.split(">").map(r=>r.trim()),o=e[n[0]]||e[`smbls.${n[0]}`];for(let r=1;r<n.length&&o;r++)o=o[n[r]];return o||null}return e[t]||e[`smbls.${t}`]||null}return typeof t=="object"&&t!==null?t:null}function ug(t,e,n,o=new Set){if(o.has(e))return;o.add(e);let r=lg(e);if(r.length){let a=(t.context||n?.context||{}).components||{};for(let c=0;c<r.length;c++){let l=fg(r[c],a);l&&ug(t,l,n,o)}}let s=Yc(t);for(let i in e){if(i==="extends"||i==="extend")continue;let a=e[i];s&&s.mark(i);let c=V.chains;c!==null&&c(t,i,t[i],a)||(t[i]===void 0?a&&typeof a=="object"&&!Array.isArray(a)&&typeof a!="function"?t[i]={...a}:t[i]=a:typeof t[i]=="object"&&typeof a=="object"&&!Array.isArray(t[i])&&!Array.isArray(a)&&t[i]!==null&&a!==null?t[i]=Wt(t[i],a):t[i]=a)}}var qc=class{constructor(){this.rank=0,this.ranks=null}mark(e){QC(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}},fi=new Set;for(let t of[Ze,ci])for(let e in t)fi.add(e),fi.add(wr(e));var cg=new Map;function QC(t){let e=t.charCodeAt(0);if(e>=65&&e<=90||e>=48&&e<=57)return!1;let n=cg.get(t);return n===void 0&&(n=!!Y[t]||fi.has(t)||t.indexOf("-")>=0&&!(t.charCodeAt(0)===45&&t.charCodeAt(1)===45)&&fi.has(Fe(t)),cg.set(t,n)),n}function Yc(t){let e=t&&t.__ref;if(!e)return null;let n=e.__mergeLayer;return n||(n=e.__mergeLayer=new qc),n.rank++,n}function dg(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 Wt(t,e){let n={...t},o=V.chains;for(let r in e){let s=n[r],i=e[r];o!==null&&o(n,r,s,i)||(s&&i&&typeof s=="object"&&typeof i=="object"&&!Array.isArray(s)&&!Array.isArray(i)&&typeof s!="function"&&typeof i!="function"?n[r]=Wt(s,i):n[r]=i)}return n}var Pn="http://www.w3.org/2000/svg",Qc=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"]),JC=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 Zc(t){return JC.has(t)||Qc.has(t)}function bo(t){return Qc.has(t)}function Mn(t){let{tag:e,key:n}=t;if(typeof e=="function")try{e=e(t,t.state,t.context)}catch(s){e=void 0,typeof console<"u"&&console.error&&console.error(`[smbls] \`tag:\` factory threw on "${n||"<anon>"}" \u2014 falling back to key-based tag detection:`,s?.message||s)}if(e===!0&&(e=n),typeof e=="string"&&Zc(e))return e;if(!n||typeof n!="string")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]),Zc(r)&&!o.has(r)?r:"div"}var pg={};function Xc(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(bo(t)){let o=e?.parent;if(t==="svg"||o?.node?.namespaceURI===Pn)return n.createElementNS(Pn,t);if(t!=="svg")return n.createElement("div")}return n.createElement(t)}function kr(t){let e=t.tag=Mn(t),o=bo(e)&&(e==="svg"||t.parent?.node?.namespaceURI===Pn)?"svg:"+e:e,r=t?.context?.document||globalThis.document,s=pg[o];if(s||(s=pg[o]=Xc(e,t)),!s)return null;let i=r&&s.ownerDocument!==r?Xc(e,t):s.cloneNode(!0);return e==="string"&&(i.nodeValue=t.text||""),i}function Cr(t,e){return e&&e.parentNode===t?e.nextSibling:t.firstChild}function oe(t,e){let n=t&&t.context&&t.context.designSystem;if(!n)return e();dt(n);try{return e()}finally{ot()}}var Mt=Wo||(t=>{let e=fe();if(!e)return t();ia(null);try{return t()}finally{ia(e)}});var hg=new WeakMap,gg=null,_g=null;function eT(t,e){let n=t===gg?_g:hg.get(t);(!n||n.length!==t.length)&&(n={length:t.length,hooks:new Map},hg.set(t,n)),gg=t,_g=n;let o=n.hooks.get(e);if(o===void 0){o=!1;for(let r of t)if(typeof r[e]=="function"){o=!0;break}n.hooks.set(e,o)}return o}function Jc(t,e){let n=t&&t.context&&t.context.plugins;return!!(n&&n.length&&eT(n,e))}function Oe(t,e,...n){return Jc(e,t)?Go(t,e,...n):!1}function re(t,e,n){Oe("error",t,{hook:e,error:n})||console.error(`[DOMQL] Lifecycle "${e}" error:`,n)}var nT=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);function yg(t,e,n){return Mt(()=>oe(t,()=>e.call(t,n,t,t.state,t.context)))}function oT(t,e){if(!(!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&j()))return;let n=e.__children&&e.__children.length>0;!n&&t.html==null||console.warn(`[smbls] bridge host "${e.path.join(".")}" renders DOMQL ${n?"children":"html"} inside the node it hands to its library \u2014 the library owns that subtree and may replace them. Keep DOMQL children beside the host, not in it.`)}function bg(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 jt("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,oT(t,e);let r;try{r=yg(t,t.onBridgeMount,n)}catch(s){if(o.failed=!0,re(t,"onBridgeMount",s),t.context?.strictMode)throw s;return}if(r&&typeof r.then=="function"){r.then(s=>mg(t,o,s),s=>{o.failed=!0,re(t,"onBridgeMount",s)});return}mg(t,o,r)}function mg(t,e,n){if(e.settled=!0,e.instance=n,e.disposed){xg(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=N(()=>{e.disposed||oe(t,()=>{try{let r=t.onBridgeUpdate.call(t,e.instance,t,t.state,t.context);r&&typeof r.then=="function"&&r.catch(s=>re(t,"onBridgeUpdate",s))}catch(r){re(t,"onBridgeUpdate",r)}})},{depth:o.path.length,label:()=>o.path.join(".")+"::onBridgeUpdate"}),o.__effects.push(e.effect)}function Sg(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&&xg(t,e))}function xg(t,e){if(e.destroyed)return;e.destroyed=!0;let n=e.instance;if(e.instance=void 0,nT(t,"bridge")&&(t.bridge=void 0),typeof t.onBridgeDestroy=="function")try{let o=yg(t,t.onBridgeDestroy,n);o&&typeof o.then=="function"&&o.catch(r=>re(t,"onBridgeDestroy",r))}catch(o){re(t,"onBridgeDestroy",o)}}function So(t){return t.__mount||(t.__mount={pending:0,tail:null,holder:null,waiters:null,chunkGen:0,attachLater:!1,held:!1})}function Tr(t){let e=t.__mount;return e?e.pending:0}function Ar(t){if(!t)return;let e=t.__ref;if(!e)return;if(e.__onConnected&&Sh(t),fe())return Mt(()=>Ar(t));e.__disposed=!0;let n=e.__if===!1&&!e.__ifInitialized;if(!n)try{typeof t.onBeforeRemove=="function"&&t.onBeforeRemove(t,t.state,t.context)}catch(r){console.error("[smbls] onBeforeRemove error:",r)}if(e.__bridge&&Sg(t),e.__effects){for(let r=0;r<e.__effects.length;r++)e.__effects[r].dispose();e.__effects.length=0}if(typeof e.__releaseMedia=="function"&&(e.__releaseMedia(),e.__releaseMedia=null),e.__eventCleanup){for(let r=0;r<e.__eventCleanup.length;r++)e.__eventCleanup[r]();e.__eventCleanup.length=0}if(e.__children){let r=e.__children.slice();e.__children.length=0;for(let s=0;s<r.length;s++){let i=t[r[s]];i&&i.__ref&&Ar(i)}}if(e.__ifParked&&e.__ifParked.size){let r=[...e.__ifParked];e.__ifParked.clear();for(let s=0;s<r.length;s++){let i=t[r[s]];i&&i.__ref&&i.parent===t&&Ar(i)}}e.__keepNode?e.__keepNode=!1:t.node?.parentNode?t.node.remove():t.tag==="fragment"&&e.__fragmentAnchor?.parentNode&&e.__fragmentAnchor.remove();let o=t.state?.$destroy||t.state?.destroy;if(typeof o=="function"&&t.state.__element===t&&o.call(t.state),t.parent?.__ref?.__children){let r=t.parent.__ref.__children.indexOf(t.key);r!==-1&&t.parent.__ref.__children.splice(r,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(r){console.error("[smbls] onRemove error:",r)}e.__mount&&e.__mount.tail&&V.mount.abandon(t,e),t.node=null,t.parent=null,t.__ref=null}function tl(){Ar(this)}function rl(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(s=>s?.message||(typeof s=="string"?s: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 wg=new Set;function kg(t,e,n){let o=String(e);if(wg.has(o))return;wg.add(o);let r=t?.__ref?.path,s=Array.isArray(r)&&r.length?r.join("."):t?.key!=null?String(t.key):"(unknown element)",i=n!=null?`resolves to a non-function (${typeof n}) \u2014 it cannot be called`:"is not registered in context.methods, context.functions, or context.utils, and is not an element method",a=`[smbls] el.call('${o}') at <${s}>: "${o}" ${i}. Returning undefined (unchanged behavior) \u2014 check the name for typos or register the function on the project. Warned once per name; repeat misses are silent.`;rl(t,"error",[a]),console.error(a)}var Tg=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),sT=new Set,Ag=t=>Tg(el,t)&&!(Ku||sT).has(t),Cg=new Set;function vg(t,e){Cg.has(t)||(Cg.add(t),!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&j()&&console.warn(`[smbls] ${e}: context.methods.${t} is named like a built-in element method and is not the app's own override (it was not on the element prototype when it was built) \u2014 ignored; the built-in keeps winning. Declare an intentional override in the app's OWN methods.`))}function iT(...t){return rl(this,"warn",t),md.apply(this,t)}function aT(...t){return rl(this,"error",t),_s.apply(this,t)}var el={update:ol,remove:tl,getDB:xd,getQuery:wd,getRootData:hd,getPath:ud,nextElement:yd,previousElement:bd,verbose:ua,warn:iT,error:aT,variables:Sd,spotByPath:fd,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,s=t!=null?V.hydration:null,i=s&&typeof s.handBack=="function"?this.context?.__hydration:null,a=i&&o?.__children&&this.content?.__ref?s.handBack(i,this.content):null;try{if(this.removeContent(),t!=null){let c=this.context?.__create;try{c&&(r=c(t,this,"content",e,n))}finally{a&&s.settleHandBack(i,a)}}this.__ref&&(this.__ref.contentManaged=!0)}finally{if(o){o.__setLocked=!1;let c=o.__setQueued;c&&(o.__setQueued=null,this.set(c.content,c.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 In(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]):[]},getRoot:pd,getRootState:dd,getRootContext:gd,getContext:_d,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,s=>"-"+s.toLowerCase()),r=String(n).replace(/\s*!important\s*$/,"");this.node.style.setProperty(o,r,"important")}},call(t,...e){let n=this.context,o=Ag(t);o&&n?.methods?.[t]&&n.methods[t]!==this[t]&&vg(t,"el.call");let r=o?this[t]:n?.methods?.[t]||n?.functions?.[t]||n?.utils?.[t]||this[t];if(typeof r=="function"){let s=fs;if(!s||!s(r))return r.call(this,...e);!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&j()&&kg(this,t,Ho(r));return}!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&j()&&kg(this,t,r)},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)}},nl=new WeakMap;function cT(t){if(!t)return el;let e=nl.get(t);if(e)return e;e=Object.create(el);let n=t.methods;if(n)for(let o in n)e[o]=n[o];return nl.set(t,e),e}function sl(t){let e=cT(t.context);Object.setPrototypeOf(t,e)}function il(t){if(!t)return!1;let e=nl.get(t);if(!e)return!1;let n=t.methods;if(!n)return!1;for(let o in n){if(Ag(o)&&!Tg(e,o)){vg(o,"refreshContextProto");continue}e[o]=n[o]}return!0}var vr=(t,e,n)=>{Object.defineProperty(t,e,{value:n,enumerable:!1,configurable:!0,writable:!0})},ge=(t,e,n,{onlyIfAbsent:o}={})=>{vr(t,"$"+e,n),!(o&&Object.prototype.hasOwnProperty.call(t,e))&&vr(t,e,n)},al=(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)},se=(t,e)=>{if(J(e)){let r=e.__raw||e;ge(r,"toggle",function(s,i={}){e[s]=!e[s]},{onlyIfAbsent:!0}),ge(r,"set",function(s,i={}){let a=e.__element;return typeof s=="object"&&s!==null&&a&&typeof a.onBeforeStateUpdate=="function"&&!i.preventBeforeStateUpdateListener&&a.onBeforeStateUpdate(a,e,a.context,{changes:s,options:i})===!1||(e.$clean({preventStateUpdate:!0}),typeof s=="object"&&s!==null&&e.$update(s,{...i,preventBeforeStateUpdateListener:!0})),e},{onlyIfAbsent:!0}),ge(r,"setByPath",function(s,i,a={}){let c=s.split("."),l=e;for(let u=0;u<c.length-1;u++)l[c[u]]===void 0&&(l[c[u]]={}),l=l[c[u]];return l[c[c.length-1]]=i,e}),ge(r,"getByPath",function(s){let i=s.split("."),a=e;for(let c=0;c<i.length;c++){if(a==null)return;a=a[i[c]]}return a}),ge(r,"removeByPath",function(s,i={}){let a=s.split("."),c=e;for(let l=0;l<a.length-1;l++){if(c==null)return e;c=c[a[l]]}return c&&delete c[a[a.length-1]],e}),ge(r,"reset",function(s={}){let i=e.$parse();return e.$set(i,s)}),ge(r,"apply",function(s,i={}){if(typeof s=="function"){let a=s(e);return e.$update(a,i)}}),ge(r,"applyFunction",function(s,i={}){if(typeof s=="function")return s(e),e.$update(e.$parse(),i)}),ge(r,"rootUpdate",function(s,i={}){let a=e;for(;a?.parent&&J(a.parent);)a=a.parent;return al(a,"update",s,i)}),ge(r,"parentUpdate",function(s,i={}){if(e.parent)return al(e.parent,"update",s,i)}),ge(r,"quietReplace",function(s,i={}){return e.$replace(s,{quiet:!0,...i})}),Object.getOwnPropertyDescriptor(r,"root")||Object.defineProperty(r,"root",{get:function(){let s=e,i=J(s)?s:null;for(let a=0;a<64&&s?.parent&&s.parent!==s;a++)s=s.parent,J(s)&&(i=s);return i||s},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 s in r)e[s]=r[s];return e},apply(r){if(typeof r!="function")return e;let s=r(e);return s?e.$update(s):e},parse(){return{...e}},toggle(r){return e[r]=!e[r],e},set(r){if(!r||typeof r!="object")return e;n();for(let s in r)e[s]=r[s];return e},replace(r){return e.$set(r)},clean(){return n(),e}};vr(e,"$settled",function(){return Fu().then(()=>e)});for(let r in o)if(vr(e,"$"+r,o[r]),typeof e[r]!="function"){if(Object.prototype.hasOwnProperty.call(e,r)){Uu(r,"");continue}vr(e,r,o[r])}};var lT=function(t,e,n){return t.state=Og(t,e,n),t.state},Og=function(t,e,n){let{__ref:o}=t,r=t.state;if(r==null||r===!1){let s=e?.state||{};return se(t,s),s}if(typeof r=="string")return o&&(o.__state=r),o.__stateType="string",fT(r,t,e);if(typeof r=="number"||typeof r=="boolean"){o&&(o.__state=r,o.__stateType=typeof r,o.__hasRootState=!0);let s=fn({value:r});return s.__element=t,e?.state&&(s.parent=e.state),se(t,s),s}if(typeof r=="function"&&(r=r(t,e?.state)||{}),typeof r=="object"&&!J(r)){o&&(o.__hasRootState=!0),r.isRootState&&o&&(o.__hasRootState=!0);let s=fn({...r});if(s.__element=t,!Object.getOwnPropertyDescriptor(s,"root")){let i=e?.state?.root||e?.state||s;Object.defineProperty(s,"root",{get:()=>i,enumerable:!1,configurable:!0})}return e?.state&&(s.parent=e.state,e.state.__children&&(e.state.__children[t.key]=s)),se(t,s),typeof t.onStateCreated=="function"&&t.onStateCreated(t,s,t.context,n),s}return J(r)?(r.__element=t,r):e?.state||{}};function cl(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 fT(t,e,n){if(!n?.state)return{};if(t===".")return n.state;if(t.startsWith("../")){let r=t.slice(3),s=n.state?.parent;return r&&s?cl(s,r):s??n.state??{}}if(t.startsWith("~/")){let r=n.state;for(;r?.parent;)r=r.parent;let s=t.slice(2);return s?cl(r,s):r??{}}let o=cl(n.state,t);if(o&&typeof o=="object"&&!J(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 uT=(t,e)=>{if(!t)return Rg;let n=hT(t,e);return!n||!n.state?Rg:_T(n.state)},dT=()=>fe()!=null,pT=128;function hT(t,e){let n=typeof e=="function"?e:typeof e=="string"?s=>!!s?.[e]:s=>!!s?.state,o=t,r=null;for(let s=0;s<pT&&o;s++){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 gT={get(t,e){return t[e]}},Eg=new WeakMap,_T=t=>{let e=Eg.get(t);return e||(e=new Proxy(t,gT),Eg.set(t,e)),e},Rg=new Proxy(Object.create(null),{get(){},has(){return!1}});var q1=["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"],mT=["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"],yT=["requiredExtensions","systemLanguage"],Dg={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"]},bT=new Set(["linearGradient","radialGradient","stop","clipPath","mask","marker","pattern","filter","symbol"]),ST=()=>{let t={};for(let e in Dg)t[e]=[...Dg[e],...bT.has(e)?[]:yT,...mT];return t},Xe={default:["accesskey","autofocus","class","contenteditable","contextmenu","dir","draggable","enterkeyhint","exportparts","headingoffset","headingreset","hidden","id","inputmode","lang","nonce","part","placeholder","popover","slot","spellcheck","style","tabindex","title","translate","writingsuggestions","inert","radiogroup","role","about","datatype","inlist","prefix","property","resource","typeof","vocab","autocapitalize","autocorrect","autosave","color","itemprop","itemscope","itemtype","itemid","itemref","results","security","unselectable","is"],a:["accesskey","charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","target","type"],aria:["aria-activedescendant","aria-atomic","aria-autocomplete","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-dropeffect","aria-errormessage","aria-expanded","aria-flowto","aria-grabbed","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],anchor:["download","href","hreflang","media","ping","rel","target","type","referrerpolicy"],audio:["autoplay","controls","crossorigin","loading","loop","muted","preload","src"],area:["alt","coords","download","href","hreflang","media","referrerpolicy","rel","shape","target","ping"],base:["href","target"],blockquote:["cite"],button:["command","commandfor","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","popovertarget","popovertargetaction","type","value"],canvas:["height","width"],col:["span","width"],colgroup:["span"],data:["value"],details:["name","open"],del:["cite","datetime"],dialog:["closedby","open"],embed:["height","src","type","width"],fieldset:["disabled","form","name"],form:["accept-charset","acceptcharset","action","autocomplete","enctype","method","name","novalidate","target","rel"],html:["manifest"],iframe:["allow","allowfullscreen","allowtransparency","frameborder","height","loading","marginheight","marginwidth","mozallowfullscreen","name","referrerpolicy","sandbox","scrolling","seamless","src","srcdoc","webkitallowfullscreen","width"],img:["alt","controls","crossorigin","decoding","fetchpriority","height","ismap","loading","referrerpolicy","sizes","src","srcset","usemap","width"],ins:["cite","datetime"],input:["accept","alpha","alt","autocomplete","capture","checked","colorspace","crossorigin","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","indeterminate","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","popovertarget","popovertargetaction","readonly","required","size","src","step","type","value","width"],keygen:["challenge","disabled","form","keytype","keyparams","name"],label:["form","for"],li:["value"],link:["as","blocking","crossorigin","disabled","fetchpriority","href","hreflang","integrity","media","imagesrcset","imagesizes","referrerpolicy","rel","sizes","type","charset"],map:["name"],menu:["type"],media:["autoplay","controls","currenttime","defaultmuted","defaultplaybackrate","loop","mediagroup","muted","playsinline","preload","src","volume"],meta:["charset","content","http-equiv","name","media"],meter:["form","high","low","max","min","optimum","value"],quote:["cite"],object:["classid","data","form","height","name","type","usemap","width","wmode"],ol:["reversed","start","type"],optgroup:["disabled","label"],option:["disabled","label","selected","value"],output:["form","for","name"],param:["name","value"],progress:["max","value"],q:["cite"],slot:["name"],script:["async","blocking","charset","crossorigin","defer","fetchpriority","integrity","nomodule","nonce","referrerpolicy","src","type"],select:["autocomplete","disabled","form","multiple","name","required","size","value","onchange"],source:["height","media","sizes","src","srcset","type","width"],style:["blocking","media","nonce","scoped","type"],table:["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],template:["for","shadowrootclonable","shadowrootcustomelementregistry","shadowrootdelegatesfocus","shadowrootmode","shadowrootserializable","shadowrootslotassignment"],textarea:["autocomplete","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","value","wrap"],td:["align","colspan","headers","rowspan","scope","abbr","height","width","valign"],th:["align","colspan","headers","rowspan","scope","abbr"],time:["datetime"],track:["default","kind","label","src","srclang"],video:["autoplay","controls","crossorigin","disablepictureinpicture","disableremoteplayback","height","loading","loop","muted","playsinline","poster","preload","src","width"],svg:["className","class","color","height","id","lang","max","media","method","min","name","style","target","type","width","role","tabindex","crossorigin","accent-height","accumulate","additive","alignment-baseline","allowReorder","alphabetic","amplitude","arabic-form","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baseline-shift","baseProfile","bbox","begin","bias","by","calcMode","cap-height","clip","clip-path","clipPathUnits","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominant-baseline","dur","dx","dy","edgeMode","elevation","enable-background","end","exponent","externalResourcesRequired","fill","fill-opacity","fill-rule","filter","filterRes","filterUnits","flood-color","flood-opacity","focusable","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","format","from","fx","fy","g1","g2","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","glyphRef","gradientTransform","gradientUnits","hanging","href","horiz-adv-x","horiz-origin-x","ideographic","image-rendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letter-spacing","lighting-color","limitingConeAngle","local","marker-end","markerHeight","marker-mid","marker-start","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","opacity","operator","order","orient","orientation","origin","overflow","overline-position","overline-thickness","paint-order","panose-1","path","pathLength","patternContentUnits","patternTransform","patternUnits","pointer-events","points","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","rendering-intent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","scale","seed","shape-rendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","string","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","surfaceScale","systemLanguage","tableValues","targetX","targetY","text-anchor","text-decoration","textLength","text-rendering","to","transform","u1","u2","underline-position","underline-thickness","unicode","unicode-bidi","unicode-range","units-per-em","v-alphabetic","values","vector-effect","version","vert-adv-y","vert-origin-x","vert-origin-y","v-hanging","v-ideographic","viewBox","viewTarget","visibility","v-mathematical","widths","word-spacing","writing-mode","x1","x2","x","xChannelSelector","x-height","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xmlns","xmlns:xlink","xml:space","y1","y2","y","yChannelSelector","z","zoomAndPan"],...ST()},xT=["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"],Bg=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,Ig=new Map,Qe=t=>{let e=Ig.get(t);return e===void 0&&(e=Bg(t)||wT(t),Ig.set(t,e)),e},Ng=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"]),ll=new Set;for(let t in Xe)t==="default"||t==="aria"||t==="svg"||Xe[t].forEach(e=>{e.startsWith("on")||ll.add(e)});var $g=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(ll.has(n))return n;let o=t.toLowerCase();return ll.has(o)?o:null},wT=t=>Ng.has(t)?t.toLowerCase():$g(t),kT=new Set(["draggable","contenteditable","spellcheck","autocorrect","writingsuggestions","translate"]),CT=new Map([["autocorrect",["on","off"]],["translate",["yes","no"]]]),xo=t=>typeof t=="string"&&(kT.has(t)||t.startsWith("aria-")),je=(t,e)=>{if(e!==!0&&e!==!1)return e;if(xo(t)){let n=CT.get(t);return n?e?n[0]:n[1]:e?"true":"false"}return e===!0?"":e},Lg=new Map,_e=(t,e)=>{let n=Xe.default,o=Object.prototype.hasOwnProperty.call(Xe,t)?Xe[t]:null,r=o?o.length:-1,s=Lg.get(t);(!s||s.def!==n||s.defLen!==n.length||s.own!==o||s.ownLen!==r)&&(s={def:n,defLen:n.length,own:o,ownLen:r,answers:new Map},Lg.set(t,s));let i=s.answers.get(e);return i===void 0&&(i=TT(t,e),s.answers.set(e,i)),i},TT=(t,e)=>{if(e.startsWith("aria-")||e.startsWith("data-")||Bg(e)||Ng.has(e)||Xe.default.includes(e))return!0;if(Object.prototype.hasOwnProperty.call(Xe,t)){let n=Xe[t];if(n.includes(e))return!0;let o=$g(e);return o!==null&&n.includes(o)}return!1},Fg=t=>{if(!C(t))return!1;let e=t.toLowerCase();return xT.includes(e)},K1=(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])St(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(St(e[r][a])){let c=a.replace(/([A-Z])/g,l=>"-"+l.toLowerCase());o["data-"+c]=e[r][a]}continue}let s=_e(t,r),i=Fg(r);if(St(e[r])&&(s||i)){let a=Qe(r)||r;o[a]=e[r]}}return o},Y1=(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 s=o.replace(/([A-Z])/g,i=>"-"+i.toLowerCase());n["data-"+s]=r(e,e.state,e.context)}}return n},Bn=(t,e)=>{let n=t.call("exec",e,t);if(n)return C(n)&&n.includes("{{")&&(n=t.call("replaceLiteralsWithObjectFields",n)),n},Pg=(t,e)=>{let n=(t.preSrc||"")+(Bn(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),s=o.assets&&(o.assets[n]||o.assets[r]);return s&&s.content?s.content.src:n}if(n.startsWith("/files/")){let r=n.slice(7),s=o.files&&(o.files[n]||o.files[r]);return s&&s.content?s.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},Nn={src:t=>Pg(t,t.src),href:t=>Bn(t,t.href),action:t=>Bn(t,t.action),poster:t=>Pg(t,t.poster),data:t=>Bn(t,t.data)},jg=t=>{let e=t.tag||"div",n={};for(let o in Nn)if(t[o]!==void 0&&_e(e,o)){let r=Nn[o](t);r!==void 0&&(n[o]=r)}return n},Mg=(t,e)=>{let n=e.context?.cases?.[t];if(n!==void 0)return ht(n)?n.call(e,e):!!n},AT=(t,e,n)=>{if(t==="$"){let r=Mg(e,n);return r===void 0&&(r=!!n[e]),r}let o=n[e]===!0||n.state[e];if(!o){let r=Mg(e,n);r!==void 0&&(o=r)}return t==="."?!!o:!o},vT=new Set(["$",".","!"]),Vg=(t,e,n,o=AT)=>{let r={},s=(i,a,c,l)=>{let u=a;r[i]=f=>{if(o(c,l,f))return ht(u)?u(f,f.state,f.context):u}};for(let i in t){let a=i.charAt(0);if(!vT.has(a))continue;let c=t[i];if(!c||typeof c!="object")continue;let l=i.slice(1);for(let u in c){if(n&&u in n)continue;if(u==="aria"&&c[u]&&typeof c[u]=="object"){for(let g in c[u])s("aria-"+g,c[u][g],a,l);continue}if(u==="data"&&c[u]&&typeof c[u]=="object"){for(let g in c[u]){let h=g.replace(/([A-Z])/g,_=>"-"+_.toLowerCase());s("data-"+h,c[u][g],a,l)}continue}let f=_e(e,u),d=Fg(u);if(!f&&!d)continue;let p=Qe(u)||u;s(p,c[u],a,l)}}return r};var ui="3.14.809";var Ug="__SMBLS_ELEMENT_ID_ENGINE__",Wg=(t,e,n)=>{let o=e||ui,r=n||(typeof globalThis<"u"?globalThis:null);if(!r)return t;let s=r[Ug];return s&&s.engine&&s.version===o?s.engine:(s||(r[Ug]={version:o,engine:t}),t)};var OT=new Set(["rows","cols","wrap","fill","stroke","offset"]),di=(t,e)=>OT.has(e)&&_e(t,e),Je=(t,e)=>!!(Y[e]||st&&st.has(e))&&!di(t,e);var k_=Wg({uniqId:1,scopedStyleId:0},ui),ko=[],tn=new Set,Ol=!1,C_=0,Ao=null,Dr=null;function Oo(){return typeof Date<"u"&&typeof Date.now=="function"?Date.now():0}function T_(){return typeof document<"u"&&document.visibilityState==="hidden"}var ET=250,RT=1e3;function DT(){return Dr&&(Dr!==(typeof requestAnimationFrame=="function"?requestAnimationFrame:null)||T_())?!0:Oo()-C_>=RT}function IT(){if(Ol=!0,C_=Oo(),Dr=null,typeof requestAnimationFrame!="function"){let t=typeof clearTimeout=="function"?clearTimeout:null,e=setTimeout(Rr,0);Ao=t?()=>t(e):null;return}if(T_()){let t=typeof clearTimeout=="function"?clearTimeout:null,e=setTimeout(Rr,ET);Ao=t?()=>t(e):null}else{let t=typeof cancelAnimationFrame=="function"?cancelAnimationFrame:null;Dr=requestAnimationFrame;let e=requestAnimationFrame(Rr);Ao=t?()=>t(e):null}}function $r(){if(Ol){if(!DT())return;let t=Ao;if(Ao=null,t)try{t()}catch{}}IT()}var A_=300,v_=15e4,xl=0;function O_(){xl++;let t=!1;return()=>{t||(t=!0,!(--xl>0)&&(ko.length||tn.size)&&$r())}}function Rr(){if(Ol=!1,Ao=null,Dr=null,xl>0||(!globalThis.__SMBLS_BUILD_DROP_F_autoGrow__&&tn.size&&NA(),!ko.length))return;let t=ko.splice(0,ko.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=Oo());let r=Oo()-o.__mountFirstAttemptAt;o.__mountAttempts<=A_&&r<v_?(ko.push(n),$r()):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"&&bg(n),typeof n.onMounted=="function"&&_t("Mounted",n,n.__ref?.__mountOptions||{})}}}function wl(t,e){let n=!globalThis.__SMBLS_BUILD_DROP_F_autoGrow__&&t.__ref?.__autoGrow;n&&n.active&&Nr(t,!0),!(typeof t.onMounted!="function"&&typeof t.onBridgeMount!="function")&&(t.__ref.__mountOptions=e,ko.push(t),$r())}function hi(t,e){typeof t.onContentUpdate=="function"&&(Oe("contentUpdate",t,e),oe(t,()=>{try{t.onContentUpdate(t,t.state,t.context,e)}catch(n){if(re(t,"onContentUpdate",n),t.context?.strictMode)throw n}}))}function LT(t){return t.toLowerCase()}function E_(t){let e=t.charCodeAt(0);return e===58||e===64||e===38||e===91}function gi(t){if(typeof t=="string")return t||void 0;if(typeof t=="number"||typeof t=="bigint")return String(t)}function R_(t,e,n,o){return Si(o,gi(t)||(e&&typeof e=="object"?gi(e.key):void 0)||String(n))}function Si(t,e){if(!t||typeof e!="string")return e;let n=e;for(;PT(t,n);)n="$"+n;return n!==e&&MT(t,e,n),n}function PT(t,e){if(xt.has(e)&&e!=="content")return!0;if(!(e in t))return!1;let n=t[e];return!(n&&typeof n=="object"&&n.__ref&&n.parent===t)}var zg=new Set;function MT(t,e,n){if(!(!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&j()))return;let o=t.__ref&&t.__ref.path&&t.__ref.path.join(".")||t.key||"<root>",r=o+"::"+e;zg.has(r)||(zg.add(r),console.warn(`[smbls] a child keyed "${e}" at ${o} names a property of its parent; it lives at el["${n}"] (data-key="${n}") so the parent keeps its own "${e}". Prefix the data keys to keep plain el.<key> access.`))}function zt(t,e,n,o={},r){if(fe())return Mt(()=>zt(t,e,n,o,r));if(t==null||t===!1)return null;let s=nA(t);(typeof t=="string"||typeof t=="number")&&(t={text:t}),n=gi(n);let i=gi(t.key),a=Object.create(null);a.key=n||(i&&e?Si(e,i):i)||`_${k_.uniqId++}`,a.parent=e||null,a.context=t.context||e?.context||o.context||{},a.context.__create||(a.context.__create=zt);let c=a.__ref={__if:!0,__children:[],__exec:{},__effects:[],__eventCleanup:[],root:e?.__ref?.root||a,path:e?.__ref?.path?[...e.__ref.path,a.key]:[a.key],origin:t,__mount:null,__plainRows:null,__ifParked:null};s&&(c.__runtimeSource=s);let l=r;r&&(r.holdTail||r.deferAttach)&&(r.holdTail&&V.mount!==null&&V.mount.hold(a),r.deferAttach&&(So(c).attachLater=!0),l=void 0);let u=t;if(t=I_(a,t,n,i,e,o),a.if!=null){let g;if(typeof a.if=="function")try{g=a.if(a,a.state,a.context)}catch(h){if(g=!1,c.__ifError=h,typeof console<"u"&&console.warn){let _=a.key||a.tag||"?";console.warn(`[smbls] \`if:\` evaluator threw on ${_} \u2014 treating as false:`,h?.message||h)}}else g=a.if;c.__if=!!g}if(c.__if)typeof a.if=="function"&&(c.__ifInitialized=!0);else{if(e){e[a.key]=a;let h=e.__ref;h&&(h.__ifParked||(h.__ifParked=new Set)).add(a.key)}let g=jT(t,n,a.context?.components);return g.length&&(c.__ifLateMerge={definition:u,key:n,ownKey:i,names:g,options:o}),typeof a.if=="function"&&j_(a,c,a.if),a}a.tag||(a.tag=Mn(a)),_t("Init",a,o);let f=V.hydration,d=a.node=f!==null&&f.adopt(a)||kr(a);if(!d)return a;if(a.tag==="fragment"){let h=(a.context?.document||globalThis.document).createComment("");d.appendChild(h),c.__fragmentAnchor=h}if(_t("AttachNode",a,o),d.setAttribute&&a.key&&d.getAttribute("data-key")!==String(a.key)&&d.setAttribute("data-key",a.key),e){let g=e[a.key];e[a.key]=a;let h=e.__ref?.__children;h&&(g===void 0||!h.includes(a.key))&&h.push(a.key)}d.setAttribute&&a.context?.scopeSelector&&a.context.scopeSelector!==":root"&&a.context.key&&a.key===a.context.key&&d.setAttribute("data-smbls-app",a.context.key),a.id&&d.setAttribute&&(d.id=a.id),sm(a,o),$_(a),F_(a);try{am(a,o)}catch(g){xi(a,g)}let p=c.__mount;return p!==null&&p.pending>0?(p.attachLater||(o.mountWhole===!0&&!(r&&r.holdTail)&&BT(a,e)?p.held=!0:Eo(a,e,l)),p.tail=()=>V.mount.finish(a,o),a):(vo(a,!0),(p===null||!p.attachLater)&&Eo(a,e,l),El(a,o),a)}function Fr(t){let e=t&&t.__ref&&t.__ref.__mount;return!e||!e.attachLater||(e.attachLater=!1,!t.node)?!1:(Eo(t,t.parent),!0)}function BT(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 D_(t){let e=t.__ref,n=e&&e.__mount;if(!n||!n.held)return;n.held=!1;let o=t.node,r=t.parent;if(!o||!r)return;let s=r.__ref;if(!s){Eo(t,r);return}let i=r.node;if(!i)return;let a=s.__children,c=a?a.lastIndexOf(t.key):-1,l;for(let u=c-1;u>=0;u--){let f=r[a[u]],d=f&&(Ve(f)||(f.tag==="fragment"&&f.__ref?f.__ref.__fragmentAnchor:null));if(d&&d.parentNode===i){l=d.nextSibling;break}}l===void 0&&(l=Cr(i,s.__textNode)),Eo(t,r,l?{position:"before",node:l}:void 0)}function xi(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?`
31
31
  `+e.stack.split(`
32
32
  `).slice(0,6).join(`
33
- `):"")}}function Rl(t,e){if(typeof t.html=="function"&&t.node&&!t.node.innerHTML&&oe(t,()=>{try{let n=t.html(t,t.state,t.context);n!=null&&typeof n!="function"&&(t.node.innerHTML=n)}catch{}}),_t("Create",t,e),_t("Complete",t,e),_t("Render",t,e),_t("RenderRouter",t,e),kl(t,e),typeof t.onFrame=="function"){let n=t.onFrame,o=t.context?.designSystem,r=()=>{if(t.node){if(t.node.isConnected){o&&dt(o);try{n(t,t.state,t.context)}catch(s){console.error("[DOMQL] onFrame error:",s)}finally{o&&ot()}}requestAnimationFrame(r)}};requestAnimationFrame(r)}}function mi(t,e){let n=e&&e.__ref&&e.__ref.__mount;!n||!n.tail||n.holder||(n.holder=t,V.mount.hold(t))}var WT=new Set(["childProps","attr","style","scope","data","vars"]);function P_(t,e,n,o,r,s){if(n&&!e.extends&&!e.extend){let h=n.indexOf("_"),_=n.indexOf("."),m=h>0?h:-1;if(_>0&&(m<0||_<m)&&(m=_),m>0){let b=n.substring(0,m),x=t.context?.components;x&&(x[b]||x["smbls."+b])?e={...e,extends:b}:x&&!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&j()&&(/^[A-Z]\w*_\d+$/.test(n)||/^[A-Z]\w*\.\w+$/.test(n))&&console.warn(`[smbls] auto-extend: key "${n}" looks like an instance of "${b}" but neither "${b}" nor "smbls.${b}" is registered in context.components \u2014 element will render as a plain <div>. Register the base component or rename the key.`)}}t.__ref&&(t.__ref.__mergeLayer=null),Yc(t,e,s);let i=Zc(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?xi(r,o):o);continue}i&&i.mark(h),ul(t,h,e[h])}if(a)for(let h in a)ul(t,h,a[h]);let c=e.props;if(c&&typeof c=="object"){for(let h in c)ul(t,h,c[h]);if(i)for(let h in c)i.mark(h)}hg(t),e.classlist!==void 0&&(t.classlist=e.classlist),e.text!==void 0&&(t.text=e.text),e.html!==void 0&&(t.html=e.html);let l=t.scope&&typeof t.scope=="object"?t.scope:null,u=r?.scope,f=t.context&&typeof t.context.globalScope=="object"&&t.context.globalScope||null,d=u||f||null;if(e.scope!==void 0||l){let h={};l&&Object.assign(h,l),e.scope!==void 0&&Object.assign(h,e.scope),t.scope=Uu(h,d)}else d&&(t.scope=d);e.if!==void 0&&(t.if=e.if);let p=t.__ref,g=lA(t,p&&p.__runtimeSource);return p&&(p.__declaredArrays=g||void 0),il(t),KT(t,r,e,s),e}function ul(t,e,n){let o=t[e],r=V.chains;if(r!==null&&r(t,e,o,n))return;let s=o&&n&&typeof o=="object"&&typeof n=="object"&&!Array.isArray(o)&&!Array.isArray(n);s&&e.charCodeAt(0)>=65&&e.charCodeAt(0)<=90?t[e]=Wt(o,n):s&&WT.has(e)?t[e]={...o,...n}:s&&D_(e)?t[e]=Wt(o,n):t[e]=n}var zT=new Set(["key","parent","context","__ref"]);function HT(t,e){for(let o of Object.keys(t))zT.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(()=>P_(t,n,e.key,e.ownKey,t.parent,e.options))}function GT(t,e,n){let o=n||{},r=a=>!!(o[a]||o["smbls."+a]),s=[],i=[];if(t.extends&&i.push(...Array.isArray(t.extends)?t.extends:[t.extends]),t.extend&&i.push(...Array.isArray(t.extend)?t.extend:[t.extend]),i.length){for(let a of i){if(typeof a!="string")continue;let c=a.includes(">")?a.split(">")[0].trim():a;r(c)||s.push(c)}return s}if(typeof e=="string"&&/^[A-Z]/.test(e)){let a=-1,c=e.indexOf("_"),l=e.indexOf(".");c>0&&(a=c),l>0&&(a<0||l<a)&&(a=l);let u=a>0?e.substring(0,a):e;r(u)||s.push(u)}return s}function dl(t,e,n){if(typeof t.onStateInit!="function"&&!tl(t,"stateInit"))return;let o=t.state;t.state=e;try{_t("StateInit",t,n)}finally{t.state=o}}var pl=t=>({isDataOnlyKey:e=>qo(t).has(e)});function KT(t,e,n,o){let r=!e,s=n.state&&typeof n.state=="object"&&!Array.isArray(n.state)&&Object.keys(n.state).length===0,i=r&&s&&t.context?.state,a=n.state!==void 0&&!i?n.state:t.state&&!J(t.state)?t.state:void 0;if(a==null){if(e?.state)t.state=e.state,se(t,t.state);else if(t.context?.state){let c=t.context.state,l={...c},u=t.context?.polyglot;if(u?.translations){let f=t.context,d=c.lang||u.defaultLang||"en",p=new Set,g=(m,b)=>{p.has(m)||od(f,m,l)&&(l[m]=b,p.add(m),id(f,m,b))},h=u.translations[d];if(h&&typeof h=="object")for(let m in h)g(m,h[m]);let _=new Set(ms(u,!1));for(let m in u.translations)_.has(m)||g(m,u.translations[m])}J(l)||dl(t,l,o),t.state=J(l)?l:fn(l,pl(t.context)),t.state.__element=t,t.state.root=t.state,se(t,t.state),ua?.(c,t.state),_t("StateCreated",t,o)}else t.state={},Object.defineProperty(t.state,"root",{value:t.state,enumerable:!1,configurable:!0,writable:!0}),se(t,t.state);return}if(typeof a=="string"){if(t.state=B_(a,e),t.state&&typeof t.state=="object"&&!J(t.state)){let c=e?.state?.root||e?.state||t.state;Object.defineProperty(t.state,"root",{value:c,enumerable:!1,configurable:!0,writable:!0})}se(t,t.state),YT(t,a,e),_t("StateCreated",t,o);return}if(typeof a=="function"){let c=a(t,e?.state);if(J(c))t.state=c;else{let l=c||{};dl(t,l,o),t.state=fn(l,e?.state?void 0:pl(t.context))}}else if(J(a))t.state=a;else{let c={...a};dl(t,c,o),t.state=fn(c,e?.state?void 0:pl(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,se(t,t.state),ua?.(a,t.state),_t("StateCreated",t,o)}function Kg(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 M_(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 B_(t,e){if(!e)return{};if(t===".")return e.state||{};if(t.startsWith("../")||t.startsWith("~/")){let[r,s]=M_(t,e);return s?Kg(r,s):r??{}}if(e.state?.[t]!==void 0)return e.state[t];let n=Kg(e.state,t);if(n!=null&&Object.keys(n).length>0)return n;let o=e.context?.polyglot;if(o?.translations){let r=e.state?.root?.lang||o.defaultLang||"en",s=o.translations[r];if(s?.[t]!==void 0)return s[t];if(o.translations[t]!==void 0)return o.translations[t]}return{}}function qT(t,e){let[n,o]=M_(t,e);if(!o||!n||typeof n!="object")return;let r=n[o];if(r!==void 0||o.indexOf("/")===-1)return r;let s=n;for(let i of o.split("/")){if(s==null||typeof s!="object")return;s=s[i]}return s}function YT(t,e,n){let o=t.__ref;if(!o||!n||e==="."||!J(n.state))return;o.__stateBinding&&o.__stateBinding.dispose();let r=Mt(()=>N(()=>{let s=qT(e,n);!s||typeof s!="object"||s===t.state||Mt(()=>N_(t,t.state,s,!0))},{depth:o.path?o.path.length:0,label:H(o,"state")}));r._isStateBinding=!0,o.__stateBinding=r,o.__effects&&o.__effects.push(r)}function N_(t,e,n,o){let r=t.__ref;if(!r)return;if(o||t.state===e){t.state=n,o&&se(t,n),Yg(r);let i=r.__children;if(i)for(let a=0;a<i.length;a++){let c=t[i[a]];c&&c.__ref&&c.parent===t&&N_(c,e,n,!1)}return}if(r.__stateBinding){r.__stateBinding._notify();return}let s=t.state;s&&typeof s=="object"&&s.parent===e&&(s.parent=n,Yg(r))}function qg(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 Yg(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()}}var ZT=new Set(["s","state","ctx","context"]),hl=new WeakMap;function XT(t){if(hl.has(t))return hl.get(t);let e=null;try{let n=typeof Ho=="function"?Ho(t):Function.prototype.toString.call(t);if(typeof n=="string"){let o=n.match(/^\s*(?:async\s+)?([A-Za-z_$][\w$]*)\s*=>/)||n.match(/^[^(]*\(([^)]*)\)/);o&&(e={params:o[1].split(",").map(r=>r.trim())})}}catch{}return hl.set(t,e),e}function QT(t){let e=XT(t);return e?e.params.map(n=>n.split("=")[0].trim()).filter(Boolean):[]}var JT=3,tA=/^(is|has)[A-Z0-9_$]/,eA=new Set(["routerOptions"]),Zg=new WeakSet;function nA(t,e){if(typeof t!="function"||t.length!==2||e&&(tA.test(e)||eA.has(e))||Zg.has(t))return!1;let n=QT(t);if(n.length<2)return!1;let o=n[1].replace(/[{}[\]]/g,"").trim();return o.length<JT||ZT.has(o)?!1:(Zg.add(t),!0)}function oA(t){let e=t.__ref,n=t.tag||"div",o=t.context?.designSystem,r=[],s=Object.keys(t);for(let i=0;i<s.length;i++){let a=s[i];if(typeof t[a]!="function"||xt.has(a))continue;let c=a.charCodeAt(0);c>=65&&c<=90||ee(a)||Y[a]||st&&st.has(a)||c!==45&&(_e(n,a)||(!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&j()&&nA(t[a],a)&&console.warn(`[smbls] custom prop "${a}"${t.key?` on key "${t.key}"`:""} is a function \u2014 it will be auto-invoked on read and its RETURN VALUE stored, not preserved as a callable reference. If you meant to stash a callback, use el.call('${a}', \u2026) instead of reading el.${a}(\u2026) directly (see RULES.md Rule 8).`),r.push({prop:a,fn:t[a]})))}for(let i=0;i<r.length;i++){let{prop:a,fn:c}=r[i];e.__exec[a]=c,Object.defineProperty(t,a,{get(){o&&dt(o);try{return c(t,t.state,t.context)}catch{return}finally{o&&ot()}},set(l){delete e.__exec[a],Object.defineProperty(t,a,{value:l,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}}function rA(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 it(t,e,n){return!Array.isArray(e)||e.length===0?n:function(...o){return rA(t,e),n.apply(this,o)}}function wo(t,e){if(!(!t||Array.isArray(t)||typeof t!="object"))return t[e]}function H(t,e){return()=>t.path.join(".")+"::"+e}var Xg=new Set;function bt(t,e,n){if(!(!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&j()))return;let o=H(t,e)();Xg.has(o)||(Xg.add(o),console.warn(`[smbls] "${e}" effect threw on ${t.path.join(".")} \u2014 keeping previous value:`,n?.message||n))}var Qg=/(['"`])((?:\\.|(?!\1)[^\\])*)\1/g,Jg=new WeakMap,sA=t=>{let e=Jg.get(t);if(e!==void 0)return e;e=null;let n;try{n=String(t)}catch{n=""}if(n.includes("{{")){Qg.lastIndex=0;let o;for(;(o=Qg.exec(n))!==null;)o[2].includes("{{")&&(e||(e=[])).push(o[2])}return Jg.set(t,e),e},iA=(t,e)=>{let n=sA(t);if(n)for(let o=0;o<n.length;o++)e.add(n[o])},aA=(t,e)=>!ee(t)&&!Je(e,t),gl=(t,e,n,o,r)=>{if(typeof e=="string"){!r&&e.includes("{{")&&n.add(e);return}typeof e=="function"&&aA(t,o)&&iA(e,n)},Cl=new WeakMap,Ir=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),Lr=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)?Wt(t,e):t},Pr=(t,e)=>t&&e?Wt(t,e):t||e||null,$_=(t,e)=>{let n=t.__ref&&t.__ref.__runtimeSource;return!!n&&Ir(n,e)},en=(t,e)=>$_(t,e)?Lr(t.__ref.__runtimeSource[e]):null,jn=(t,e)=>(e&&t&&typeof t=="object"&&Cl.set(t,e),t),cA=t=>{if(!t||typeof t!="object")return;let e=Cl.get(t);return e&&Cl.delete(t),e},Tl=(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++)Tl(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&&Tl(r.value,e,n)}}},lA=(t,e)=>{let n=null;for(let o of Object.keys(t)){if(xt.has(o)||e&&Ir(e,o))continue;let r=Object.getOwnPropertyDescriptor(t,o),s=r&&r.value;if(!Array.isArray(s))continue;let i=new Set;Tl(s,i,new Set),i.size&&(n||(n=new Map),n.set(s,i))}return n},t_=(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 s=t.__ref;s.__authoredTemplates||(s.__authoredTemplates=new Set);for(let i of r)s.__authoredTemplates.add(i);return}},F_=["attr","aria","data","metadata"],fA=t=>{if(F_.includes(t))return!0;let e=t.charCodeAt(0);return e===46||e===33||e===64},uA=(t,e)=>{let n=new Set,o=t.tag||"div";for(let r of Object.keys(t)){let s=Object.getOwnPropertyDescriptor(t,r),i=s&&s.value,a=!!e&&Ir(e,r);if(i&&typeof i=="object"&&!Array.isArray(i)){if(!fA(r))continue;let c=a?e[r]:null,l=c&&typeof c=="object"?c:null,u=r.charCodeAt(0)===46||r.charCodeAt(0)===33;for(let f in i){let d=a&&(!l||Ir(l,f)),p=i[f];if(u&&p&&typeof p=="object"&&!Array.isArray(p)&&F_.includes(f)){for(let g in p)gl(g,p[g],n,o,d);continue}gl(f,p,n,o,d)}continue}gl(r,i,n,o,a)}return n};function j_(t,e){let n=t.__ref,o=!!(e&&e.skipIfEffect),r=uA(t,n.__runtimeSource);if(n.__authoredTemplates)for(let c of r)n.__authoredTemplates.add(c);else n.__authoredTemplates=r;if(oA(t),typeof t.text=="function"){let c=t.text,l=it(t,t.textDeps,c),u=()=>{let d=l(t,t.state,t.context);return t.node&&typeof d=="string"&&d.includes("{{")&&(d=Tt.call(t,d,t.state)),d},f=N(()=>{if(!n.contentManaged)try{let d=n_(t,n,u);if(d===Bt)return;t.node&&d!=null&&typeof d!="function"&&typeof d!="object"&&Vn(t,d)}catch(d){bt(n,"text",d)}},{depth:n.path.length,label:H(n,"text")});n.__effects.push(f),n.__exec.text=c}else if(typeof t.text=="string"&&t.text.includes("{{")){let c=t.text,l=()=>Tt.call(t,c,t.state),u=N(()=>{if(n.contentManaged)return;let f=n_(t,n,l);f!==Bt&&(f!=null&&(t.text=f),t.node&&Vn(t,f??""))},{depth:n.path.length,label:H(n,"text")});n.__effects.push(u),n.__exec.text=c}let s=t.tag||"div";for(let c of Object.keys(t))if(typeof t[c]=="function"&&!xt.has(c)&&!ee(c)&&!n.__exec[c]&&!pi(s,c)){if(Y[c]){let l=t[c],u=it(t,t[c+"Deps"],l),f=c,d,p=null,g=null,h,_=()=>{for(let x of g)t.node.classList.remove(x);g=null,h=void 0},m=()=>{G_(t,f,p,null),hi(t,f,null),p=null},b=N(()=>{let x=t.context?.designSystem;x&&dt(x);try{let D=u(t,t.state,t.context);Vc();let y;try{y=Y[f](D,t,t.state,t.context)}finally{Uc()}if(Array.isArray(y)){let S={};for(let w of y)if(w)for(let k in w)S[k]=w[k];y=S}if(f==="show"||f==="hide"){t.node&&bi(t,f,!!(y&&y.display),!0);return}if(y&&t.node&&hA(y)){let S=Co(y);if(S===null||S!==h){h=S;let w=En(y,null,t.context?.cssPrefix),k=w?w.split(" ").filter(Boolean):null;if(t.node.classList){if(g)for(let v of g)t.node.classList.remove(v);if(k&&k.length)for(let v of k)t.node.classList.add(v);g=k}}p&&m(),d=void 0}else if(y&&t.node){g&&_();let S=Co(y);if(S===null||S!==d||!To(t.node,p,t)){d=S;let w=r_(t,y,p,f);p=Er(t.node,w,t),hi(t,f,p)}}else t.node&&(g&&_(),p&&m(),d=void 0)}finally{x&&ot()}},{depth:n.path.length,label:H(n,f)});n.__effects.push(b),n.__exec[c]=l}else if(st&&st.has(c)){let l=t[c],u=it(t,t[c+"Deps"],l),f=c,d,p=null,g=N(()=>{let h=t.context?.designSystem;h&&dt(h);try{let _=u(t,t.state,t.context);if(t.node)if(_!=null){let m=f+":"+String(_);if(m!==d||!To(t.node,p,t)){d=m;let b={[f]:_},x=r_(t,b);p=Er(t.node,x,t),hi(t,f,p)}}else d=void 0,p=null,hi(t,f,null),f==="display"?jr(t,""):t.node.style[f]=""}finally{h&&ot()}},{depth:n.path.length,label:H(n,f)});n.__effects.push(g),n.__exec[c]=l}else if(c.charCodeAt(0)===45){let l=t[c];q_(t,c,l,t[c+"Deps"],c),n.__exec[c]=l}}if(mA(t),typeof t.html=="function"){let c=t.html,l=it(t,t.htmlDeps,c),u=N(()=>{oe(t,()=>{let f=l(t,t.state,t.context);t.node&&f!=null&&typeof f!="function"&&(t.node.innerHTML=f)})},{depth:n.path.length,label:H(n,"html")});n.__effects.push(u),n.__exec.html=c}if(typeof t.value=="function"){let c=t.value,l=it(t,t.valueDeps,c),u=()=>{let d=l(t,t.state,t.context);return typeof d=="string"&&d.includes("{{")&&(d=Tt.call(t,d,t.state)),d},f=N(()=>{try{let d=Ee(t,n,"value",u);if(d===Bt)return;o_(t,d)}catch(d){bt(n,"value",d)}},{depth:n.path.length,label:H(n,"value")});n.__effects.push(f),n.__exec.value=c}else if(typeof t.value=="string"&&t.value.includes("{{")){let c=t.value,l=()=>Tt.call(t,c,t.state),u=N(()=>{try{let f=Ee(t,n,"value",l);if(f===Bt)return;o_(t,f)}catch(f){bt(n,"value",f)}},{depth:n.path.length,label:H(n,"value")});n.__effects.push(u),n.__exec.value=c}if(typeof t.style=="function"){let c=t.style,l=it(t,t.styleDeps,c),u,f=null,d,p,g,h,_=N(()=>{let m=l(t,t.state,t.context),b=t.context&&t.context.designSystem,x;if(m&&typeof m=="object"&&m===d&&b===g){let y=Co(m);x=y!==null&&y===p?h:Fn(t,m),p=y}else x=Fn(t,m),p=void 0;d=m,g=b,h=x;let D=Co(x);(D===null||D!==u||!To(t.node,f,t))&&(u=D,Al(t.node,f,x,t),Ie(t.node,x,t),f=Er(t.node,x,t))},{depth:n.path.length,label:H(n,"style")});n.__effects.push(_),n.__exec.style=c}else if(t.style&&typeof t.style=="object")for(let c in t.style){let l=t.style[c];if(typeof l!="function")continue;let u=it(t,wo(t.styleDeps,c),l),f,d=null,p=N(()=>{try{let g=u(t,t.state,t.context);if(t.node){let h=c+":"+String(g);if(h!==f||!To(t.node,d,t)){f=h;let _=Fn(t,{[c]:g});Al(t.node,d,Object.assign({},_,{[c]:""}),t),Ie(t.node,_,t),d=Er(t.node,_,t)}}}catch(g){bt(n,"style."+c,g)}},{depth:n.path.length,label:H(n,"style."+c)});n.__effects.push(p)}if(t.attr&&typeof t.attr=="object"){for(let c in t.attr)if(typeof t.attr[c]=="function"){let l=it(t,wo(t.attrDeps,c),t.attr[c]),u=c,f=u.toLowerCase(),d=()=>{let g=l(t,t.state,t.context);return typeof g=="string"&&g.includes("{{")&&(g=Tt.call(t,g,t.state)),g},p=N(()=>{try{let g=Ee(t,n,f,d);if(g===Bt)return;t.node?.setAttribute&&$n(t.node,u,g)}catch(g){bt(n,"attr."+u,g)}},{depth:n.path.length,label:H(n,"attr."+u)});p._attrName=u.toLowerCase(),n.__effects.push(p)}else if(typeof t.attr[c]=="string"&&t.attr[c].includes("{{")){let l=t.attr[c],u=c,f=u.toLowerCase(),d=()=>Tt.call(t,l,t.state),p=N(()=>{try{let g=Ee(t,n,f,d);if(g===Bt||!t.node||!t.node.setAttribute)return;t.node.setAttribute(u,je(u,g??""))}catch(g){bt(n,"attr."+u,g)}},{depth:n.path.length,label:H(n,"attr."+u)});p._attrName=u.toLowerCase(),n.__effects.push(p)}}if(t.aria&&typeof t.aria=="object")for(let c in t.aria){let l=t.aria[c];if(typeof l=="string"&&l.includes("{{")){let g=l,h="aria-"+c.replace(/[A-Z]/g,b=>"-"+b.toLowerCase()),_=()=>Tt.call(t,g,t.state),m=N(()=>{try{let b=Ee(t,n,h,_);if(b===Bt||!t.node||!t.node.setAttribute)return;t.node.setAttribute(h,je(h,b??""))}catch(b){bt(n,"aria."+c,b)}},{depth:n.path.length,label:H(n,"aria."+c)});m._attrName=h,n.__effects.push(m);continue}if(typeof l!="function")continue;let u=it(t,wo(t.ariaDeps,c),t.aria[c]),f="aria-"+c.replace(/[A-Z]/g,g=>"-"+g.toLowerCase()),d=()=>u(t,t.state,t.context),p=N(()=>{try{let g=Ee(t,n,f,d);if(g===Bt||!t.node?.setAttribute)return;$n(t.node,f,g)}catch(g){bt(n,"aria."+c,g)}},{depth:n.path.length,label:H(n,"aria."+c)});p._attrName=f,n.__effects.push(p)}if(t.data&&typeof t.data=="object")for(let c in t.data){let l=t.data[c];if(typeof l=="string"&&l.includes("{{")){let h=l,_="data-"+c.replace(/[A-Z]/g,x=>"-"+x.toLowerCase()),m=()=>Tt.call(t,h,t.state),b=N(()=>{try{let x=Ee(t,n,_,m);if(x===Bt||!t.node||!t.node.setAttribute)return;t.node.setAttribute(_,x??"")}catch(x){bt(n,"data."+c,x)}},{depth:n.path.length,label:H(n,"data."+c)});b._attrName=_,n.__effects.push(b);continue}if(typeof l!="function")continue;let u=it(t,wo(t.dataDeps,c),t.data[c]),d="data-"+c.replace(/[A-Z]/g,h=>"-"+h.toLowerCase()),p=()=>u(t,t.state,t.context),g=N(()=>{try{let h=Ee(t,n,d,p);if(h===Bt||!t.node?.setAttribute)return;h==null||h===!1?t.node.removeAttribute(d):typeof h!="function"&&typeof h!="object"&&t.node.setAttribute(d,h===!0?"":h)}catch(h){bt(n,"data."+c,h)}},{depth:n.path.length,label:H(n,"data."+c)});g._attrName=d,n.__effects.push(g)}let i=t.classlist&&typeof t.classlist=="object"&&!Array.isArray(t.classlist)?t.classlist:t.class&&typeof t.class=="object"&&!Array.isArray(t.class)?t.class:null;if(i)for(let c in i){if(typeof i[c]!="function")continue;let l=it(t,wo(t.classDeps,c),i[c]),u=N(()=>{try{let f=l(t,t.state,t.context);if(!t.node?.classList)return;typeof f=="string"?t.node.classList.add(f):f?t.node.classList.add(c):t.node.classList.remove(c)}catch(f){bt(n,"class."+c,f)}},{depth:n.path.length,label:H(n,"class."+c)});n.__effects.push(u)}!o&&typeof t.if=="function"&&U_(t,n,t.if);for(let c of Object.keys(t)){if(xt.has(c)||typeof t[c]!="function")continue;let l=c.charCodeAt(0);if(l>=65&&l<=90||ee(c))continue;let u=t[c];n.__exec[c]=u;let f=t.tag||"div";if(_e(f,c)&&!Je(f,c)){let d=Qe(c)||c,p=it(t,t[c+"Deps"],u),g=d.toLowerCase(),h=()=>{let m=p(t,t.state,t.context);return typeof m=="string"&&m.includes("{{")&&(m=Tt.call(t,m,t.state)),m},_=N(()=>{try{let m=Ee(t,n,g,h);if(m===Bt)return;let b=Nn[c];if(b&&m!=null){let x=b(t);x!==void 0&&(m=x)}t.node?.setAttribute&&$n(t.node,d,m,!0)}catch(m){bt(n,c,m)}},{depth:n.path.length,label:H(n,c)});_._attrName=d.toLowerCase(),n.__effects.push(_)}}let a=t.tag||"div";for(let c of Object.keys(t)){if(xt.has(c))continue;let l=t[c];if(typeof l!="string"||!l.includes("{{"))continue;let u=c.charCodeAt(0);if(u>=65&&u<=90||ee(c)||Je(a,c)||Nn[c]||!_e(a,c))continue;let f=Qe(c)||c,d=f.toLowerCase(),p=()=>Tt.call(t,l,t.state),g=N(()=>{try{let h=Ee(t,n,d,p);if(h===Bt||!t.node||!t.node.setAttribute)return;t.node.setAttribute(f,je(f,h??""))}catch(h){bt(n,c,h)}},{depth:n.path.length,label:H(n,c)});g._attrName=f.toLowerCase(),n.__effects.push(g)}if(CA(t),MA(t),typeof t.onStateUpdate=="function"&&Array.isArray(t.stateDeps)){let c=t.onStateUpdate,l=t.stateDeps,u=!1,f=[],d=N(()=>{let p=[];for(let _=0;_<l.length;_++){let m=l[_];try{p[_]=typeof m=="function"?m(t,t.state,t.context):t.state?.[m]}catch{p[_]=void 0}}if(!u){u=!0,f=p;return}let g=p.length!==f.length;for(let _=0;!g&&_<p.length;_++)p[_]!==f[_]&&(g=!0);let h=f;f=p,g&&oe(t,()=>{try{c(t,t.state,t.context,{prev:h,next:p})}catch(_){if(re(t,"onStateUpdate",_),t.context?.strictMode)throw _}})},{depth:n.path.length,label:H(n,"onStateUpdate")});n.__effects.push(d)}EA(t)}function e_(t){let e=t.parent,n=e?.node;if(!n||!t.node){Eo(t,t.parent);return}let o=null,r=Object.keys(e),s=r.indexOf(t.key);for(let a=s+1;a<r.length;a++){let c=e[r[a]];if(c?.node?.parentNode===n){o=c.node;break}}t.node.parentNode===n&&t.node.nextSibling===o||(o?n.insertBefore(t.node,o):n.appendChild(t.node)),ei()}function V_(t){W_(t),VA(t),em(t),JA(t),QA(t)}function U_(t,e,n){let o=it(t,t.ifDeps,n),r=N(()=>{let s=!e.__ifInitialized&&e.__ifLateMerge;if(s){let c=t.context?.components||{};s.names.some(l=>c[l]||c["smbls."+l])&&(e.__ifLateMerge=null,HT(t,s),o=it(t,t.ifDeps,typeof t.if=="function"?t.if:n))}let i;try{i=o(t,t.state,t.context)}catch(c){if(i=!1,e.__ifError=c,typeof console<"u"&&console.warn){let l=t.key||t.tag||"?";console.warn(`[smbls] \`if:\` reactive effect threw on ${l} \u2014 treating as false:`,c?.message||c)}return}let a=e.__if;if(e.__if=!!i,a&&!e.__if&&t.node){t.node.remove();try{typeof t.onRemove=="function"&&t.onRemove(t)}catch(c){console.error("[smbls] onRemove error:",c)}}else if(!a&&e.__if)if(e.__ifInitialized)t.node||(t.node=kr(t)),t.node&&(t.node.ref=t),e_(t),W_(t),em(t),_t("Render",t,{}),kl(t,{});else{e.__ifInitialized=!0,e.__ifLateMerge=null,t.tag||(t.tag=Mn(t)),_t("Init",t,{});let c=V.hydration;if(t.node||(t.node=c!==null&&c.adopt(t)||kr(t)),!t.node)return;if(t.parent?.__ref?.__children&&!t.parent.__ref.__children.includes(t.key)&&t.parent.__ref.__children.push(t.key),t.parent?.__ref?.__ifParked&&t.parent.__ref.__ifParked.delete(t.key),t.tag==="fragment"&&!e.__fragmentAnchor){let u=(t.context?.document||globalThis.document).createComment("");t.node.appendChild(u),e.__fragmentAnchor=u}_t("AttachNode",t,{}),t.node.setAttribute&&t.key&&t.node.setAttribute("data-key",t.key),t.id&&t.node.setAttribute&&(t.node.id=t.id),am(t,{}),j_(t,{skipIfEffect:!0}),V_(t),lm(t,{}),e_(t),_t("Create",t,{}),_t("Complete",t,{}),_t("Render",t,{}),_t("RenderRouter",t,{}),kl(t,{})}},{depth:e.path.length,label:H(e,"if")});e.__effects.push(r)}var Bt=Symbol("builtTextKept");function n_(t,e,n){let o=e.__builtText;if(!o)return n();if(o.parentNode!==t.node||typeof Yo!="function")return e.__builtText=null,n();let{value:r,ready:s}=Yo(n);return s?r:Bt}function Ee(t,e,n,o){let r=e.__builtAttrs;if(!r||!r.values.has(n))return o();let s=t.node;if(s!==r.node||typeof Yo!="function")return e.__builtAttrs=null,o();let{value:i,ready:a}=Yo(o);return a?(r.values.delete(n),r.values.size||(e.__builtAttrs=null),i):(s.setAttribute(n,r.values.get(n)),Bt)}function Vn(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,s=r?r.__textNode:null;if(s&&s.parentNode!==n&&(s=null),!s){let i=n.firstChild;i&&i.nodeType===3&&(s=i)}s?s.nodeValue!==o&&(s.nodeValue=o):n.firstChild?(s=(n.ownerDocument||t.context?.document||globalThis.document).createTextNode(o),n.insertBefore(s,n.firstChild)):(n.textContent=o,s=n.firstChild&&n.firstChild.nodeType===3?n.firstChild:null),r&&(r.__textNode=s||null)}function dA(t,e){return e!=="checked"||!t||t.tagName!=="INPUT"?null:t.hasAttribute("checked")}function pA(t,e){if(e===null)return;let n=t.hasAttribute("checked");n!==e&&t.checked!==n&&(t.checked=n)}function $n(t,e,n,o){n==null||n===!1&&!xo(e)?yi(t,e,null):typeof n=="function"||typeof n=="object"||(o&&e==="src"&&"src"in t?t.src=n:yi(t,e,je(e,n)))}function yi(t,e,n){let o=dA(t,e);n==null?t.removeAttribute(e):t.setAttribute(e,n),pA(t,o)}function o_(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,s=!!r&&r.activeElement===n,i=s&&typeof n.selectionStart=="number"?n.selectionStart:null,a=s&&typeof n.selectionEnd=="number"?n.selectionEnd:null;if(n.value=o,s&&i!=null&&a!=null)try{n.setSelectionRange(i,a)}catch{}let c=t.__ref&&t.__ref.__autoGrow;c&&c.active&&c.resize()}function W_(t){let{node:e}=t;if(e){if((typeof t.text=="string"&&!t.text.includes("{{")||typeof t.text=="number")&&Vn(t,t.text),rm(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}Ie(e,Fn(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&&!xo(n)||e.setAttribute&&e.setAttribute(n,je(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 Co(t){if(t==null||typeof t!="object")return"s:"+String(t);try{return"o:"+JSON.stringify(t)}catch{return null}}function hA(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 Er(t,e,n){if(!t||!t.style||!e)return null;let o=t.style,r=[];for(let s in e){if(e[s]==null||s.charAt(0)==="&")continue;let a=De(s);r.push(a,Ro(n,o,a),Ll(n,o,a))}return r}function z_(t,e){return typeof t.getPropertyValue=="function"?t.getPropertyValue(e):""}function H_(t,e){return typeof t.getPropertyPriority=="function"?t.getPropertyPriority(e):""}function De(t){return Fe(t)}function Al(t,e,n,o){if(!t||!t.style||!e||!e.length)return;let r=t.style,s=new Set;if(n&&typeof n=="object")for(let i in n)n[i]==null||i.charAt(0)==="&"||s.add(De(i));for(let i=0;i<e.length;i+=3){let a=e[i];s.has(a)||Ro(o,r,a)===e[i+1]&&(o&&a==="display"?jr(o,""):typeof r.removeProperty=="function"&&r.removeProperty(a))}}function hi(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 gA(t,e,n){if(t.__heldInline){for(let[o,r]of t.__heldInline)if(o!==e){for(let s=0;s<r.length;s+=3)if(r[s]===n)return!0}}return!1}function G_(t,e,n,o){let r=t.__ref,s=t.node;if(!r||!n||!s||!s.style)return;let i=r.__inlineCssKeys,a=null;for(let f=0;f<n.length;f+=3){let d=n[f];o&&o.has(d)||gA(r,e,d)||(a||(a=[]),a.push(f),i&&i.delete(d))}if(!a)return;let c=i&&Dl(t,i),l=s.style,u=[];for(let f of a){let d=n[f];c&&c[d]!==void 0||Ro(t,l,d)===n[f+1]&&u.push(d)}for(let f of u)f==="display"?jr(t,""):typeof l.removeProperty=="function"&&l.removeProperty(f)}function _A(t,e,n){let o=[];for(let i=0;i<e.length;i+=3)o.push(e[i]);let r=!1;for(let i in n){let a=Ze[i];o.some(c=>a.includes(c))&&(r=!0,o.includes(i)||o.push(i))}if(!r)return;let s=t.node.style;e.length=0;for(let i of o)e.push(i,Ro(t,s,i),Ll(t,s,i))}function To(t,e,n){if(!e||!t||!t.style)return!1;let o=t.style;for(let r=0;r<e.length;r+=3)if(Ro(n,o,e[r])!==e[r+1]||Ll(n,o,e[r])!==e[r+2])return!1;return!0}var Mr=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,K_=t=>typeof t=="number"||t===!0||typeof t=="string"&&t!=="",ki=t=>Mr(t)?t:"--"+t;function Ci(t,e){if(!nn(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)}K_(r)&&(n||(n={}),n[ki(o)]=r)}return n}function q_(t,e,n,o,r){Y_(t,r,it(t,o,n),s=>K_(s)?{[e]:s}:null)}function Y_(t,e,n,o,r){let s=t.__ref,i,a=null,c=N(()=>{oe(t,()=>{try{let l=o(n(t,t.state,t.context)),u=t.node;if(!u||!u.style)return;let f=Co(l);(f===null||f!==i||!To(u,a))&&(i=f,Al(u,a,l),l&&Ie(u,l),a=l?Er(u,l):null,r&&r(l))}catch(l){bt(s,e,l)}})},{depth:s.path.length,label:H(s,e)});s.__effects.push(c)}function mA(t){let e=t.__ref,n=t.vars;if(typeof n=="function"){yA(t,n),e.__exec.vars=n;return}if(nn(n))for(let o of Object.keys(n)){let r=n[o];!o||typeof r!="function"||q_(t,ki(o),r,wo(t.varsDeps,o),"vars."+o)}}function yA(t,e){let n=t.__ref;Y_(t,"vars",it(t,t.varsDeps,e),o=>Ci(o),o=>{n.__varsInline=o?new Set(Object.keys(o)):null})}function vl(t,e){if(typeof t[e]=="function"&&(Je(t.tag||"div",e)||e.charCodeAt(0)===45))return!0;if(!Mr(e))return!1;let n=t.vars;if(typeof n=="function"){let o=t.__ref&&t.__ref.__varsInline;return!!(o&&o.has(e))}if(!nn(n))return!1;for(let o of Object.keys(n))if(typeof n[o]=="function"&&ki(o)===e)return!0;return!1}function bA(t){let e=null;for(let n in t)t[n]!=null&&n.charAt(0)!=="&"&&(e||(e=new Set),e.add(De(n)));return e}function SA(t,e,n,o){let r=t.__ref;if(!r)return;let s=null;if(n)for(let i of n){if(o&&o.has(i))continue;let a=e[i];if(a==null||typeof a=="object")continue;let c=De(i);Ze[c]&&(s||(s={}),s[c]=a)}r.__declaredLonghands=s}function Dl(t,e){let n=t.__ref,o=n&&n.__declaredLonghands;if(!o||!e)return null;let r=null;for(let s in o){if(e.has(s))continue;let i=Ze[s],a=!1;for(let c=0;c<i.length;c++)if(e.has(i[c])){a=!0;break}a&&(r||(r={}),r[s]=o[s])}return r}function r_(t,e,n,o){let r=t.node,s=bA(e),i=s&&Dl(t,s);if(n&&G_(t,o,n,i?new Set([...s,...Object.keys(i)]):s),Ie(r,e,t),!s)return e;let a=t.__ref;if(a)if(a.__inlineCssKeys)for(let c of s)a.__inlineCssKeys.add(c);else a.__inlineCssKeys=new Set(s);return i?(Ie(r,i),Object.assign({},e,i)):e}function xA(t){let e=t.__ref;if(!e||!e.__inlineCssKeys||!e.__declaredLonghands)return;let n=Dl(t,e.__inlineCssKeys);if(!n)return;let o=[];if(e.__heldInline)for(let r of e.__heldInline.values())To(t.node,r,t)&&o.push(r);Ie(t.node,n);for(let r of o)_A(t,r,n)}function Fn(t,e){return!e||typeof e!="object"?e:oe(t,()=>{try{return ag(e,t)}catch{return e}})}var Z_="none",Il=t=>!!(t&&t.__hiddenBy&&t.__hiddenBy.size),s_=t=>z_(t,"display")===Z_&&H_(t,"display")==="important";function X_(t,e){e?t.setProperty("display",e[0],e[1]):typeof t.removeProperty=="function"?t.removeProperty("display"):t.display=""}function bi(t,e,n,o){let r=t.__ref,s=t.node;if(!r||!s||!s.style)return;let i=r.__hiddenBy,a=!!(i&&i.size);n?(i||(i=r.__hiddenBy=new Set),i.add(e)):i&&i.delete(e);let c=s.style;i&&i.size?s_(c)||c.setProperty("display",Z_,"important"):(a||o&&s_(c))&&X_(c,r.__shownDisplay||null)}function jr(t,e,n){let o=t.__ref,r=e?[String(e),n||""]:null;o&&(o.__shownDisplay=r);let s=t.node;!s||!s.style||Il(o)||X_(s.style,r)}function Ro(t,e,n){let o=n==="display"&&t&&t.__ref;return Il(o)?o.__shownDisplay?o.__shownDisplay[0]:"":z_(e,n)}function Ll(t,e,n){let o=n==="display"&&t&&t.__ref;return Il(o)?o.__shownDisplay?o.__shownDisplay[1]:"":H_(e,n)}function Ie(t,e,n){if(!t||!e||!t.style)return;let o=null;for(let r in e){let s=e[r];if(s!=null){if(r.charAt(0)==="&"&&typeof s=="object"){o||(o={}),o[r]=s;continue}try{let i=String(s);if(typeof s=="object"&&i==="[object Object]")continue;let a=Fe(r),c=i.trim(),l=/\s*!important\s*$/.test(c),u=c.replace(/\s*!important\s*$/,"");if(n&&a==="display"){jr(n,u,l?"important":"");continue}t.style.setProperty(a,u,l?"important":"")}catch{}}}o&&wA(t,o)}function wA(t,e){let n=`_ds${T_.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 s="";for(let i in e){let a="."+n,c=On(i.replace(/&/g,a)).map(u=>u.includes(a)?u:a+u).join(", "),l=e[i];if(typeof l=="object"){let u="",f="";for(let d in l){let p=l[d];if(typeof p=="object"){let g=On(c),h=d.includes("&")?g.map(m=>d.replace(/&/g,m)).join(", "):g.map(m=>`${m} ${d}`).join(", "),_="";for(let m in p)_+=`${De(m)}: ${p[m]};`;f+=vn(`${h} { ${_} }`,h)+`
33
+ `):"")}}function El(t,e){if(typeof t.html=="function"&&t.node&&!t.node.innerHTML&&oe(t,()=>{try{let n=t.html(t,t.state,t.context);n!=null&&typeof n!="function"&&(t.node.innerHTML=n)}catch{}}),_t("Create",t,e),_t("Complete",t,e),_t("Render",t,e),_t("RenderRouter",t,e),wl(t,e),typeof t.onFrame=="function"){let n=t.onFrame,o=t.context?.designSystem,r=()=>{if(t.node){if(t.node.isConnected){o&&dt(o);try{n(t,t.state,t.context)}catch(s){console.error("[DOMQL] onFrame error:",s)}finally{o&&ot()}}requestAnimationFrame(r)}};requestAnimationFrame(r)}}function _i(t,e){let n=e&&e.__ref&&e.__ref.__mount;!n||!n.tail||n.holder||(n.holder=t,V.mount.hold(t))}var NT=new Set(["childProps","attr","style","scope","data","vars"]);function I_(t,e,n,o,r,s){if(n&&!e.extends&&!e.extend){let h=n.indexOf("_"),_=n.indexOf("."),m=h>0?h:-1;if(_>0&&(m<0||_<m)&&(m=_),m>0){let b=n.substring(0,m),x=t.context?.components;x&&(x[b]||x["smbls."+b])?e={...e,extends:b}:x&&!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&j()&&(/^[A-Z]\w*_\d+$/.test(n)||/^[A-Z]\w*\.\w+$/.test(n))&&console.warn(`[smbls] auto-extend: key "${n}" looks like an instance of "${b}" but neither "${b}" nor "smbls.${b}" is registered in context.components \u2014 element will render as a plain <div>. Register the base component or rename the key.`)}}t.__ref&&(t.__ref.__mergeLayer=null),Kc(t,e,s);let i=Yc(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?Si(r,o):o);continue}i&&i.mark(h),fl(t,h,e[h])}if(a)for(let h in a)fl(t,h,a[h]);let c=e.props;if(c&&typeof c=="object"){for(let h in c)fl(t,h,c[h]);if(i)for(let h in c)i.mark(h)}dg(t),e.classlist!==void 0&&(t.classlist=e.classlist),e.text!==void 0&&(t.text=e.text),e.html!==void 0&&(t.html=e.html);let l=t.scope&&typeof t.scope=="object"?t.scope:null,u=r?.scope,f=t.context&&typeof t.context.globalScope=="object"&&t.context.globalScope||null,d=u||f||null;if(e.scope!==void 0||l){let h={};l&&Object.assign(h,l),e.scope!==void 0&&Object.assign(h,e.scope),t.scope=Vu(h,d)}else d&&(t.scope=d);e.if!==void 0&&(t.if=e.if);let p=t.__ref,g=oA(t,p&&p.__runtimeSource);return p&&(p.__declaredArrays=g||void 0),sl(t),VT(t,r,e,s),e}function fl(t,e,n){let o=t[e],r=V.chains;if(r!==null&&r(t,e,o,n))return;let s=o&&n&&typeof o=="object"&&typeof n=="object"&&!Array.isArray(o)&&!Array.isArray(n);s&&e.charCodeAt(0)>=65&&e.charCodeAt(0)<=90?t[e]=Wt(o,n):s&&NT.has(e)?t[e]={...o,...n}:s&&E_(e)?t[e]=Wt(o,n):t[e]=n}var $T=new Set(["key","parent","context","__ref"]);function FT(t,e){for(let o of Object.keys(t))$T.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(()=>I_(t,n,e.key,e.ownKey,t.parent,e.options))}function jT(t,e,n){let o=n||{},r=a=>!!(o[a]||o["smbls."+a]),s=[],i=[];if(t.extends&&i.push(...Array.isArray(t.extends)?t.extends:[t.extends]),t.extend&&i.push(...Array.isArray(t.extend)?t.extend:[t.extend]),i.length){for(let a of i){if(typeof a!="string")continue;let c=a.includes(">")?a.split(">")[0].trim():a;r(c)||s.push(c)}return s}if(typeof e=="string"&&/^[A-Z]/.test(e)){let a=-1,c=e.indexOf("_"),l=e.indexOf(".");c>0&&(a=c),l>0&&(a<0||l<a)&&(a=l);let u=a>0?e.substring(0,a):e;r(u)||s.push(u)}return s}function ul(t,e,n){if(typeof t.onStateInit!="function"&&!Jc(t,"stateInit"))return;let o=t.state;t.state=e;try{_t("StateInit",t,n)}finally{t.state=o}}var dl=t=>({isDataOnlyKey:e=>Ko(t).has(e)});function VT(t,e,n,o){let r=!e,s=n.state&&typeof n.state=="object"&&!Array.isArray(n.state)&&Object.keys(n.state).length===0,i=r&&s&&t.context?.state,a=n.state!==void 0&&!i?n.state:t.state&&!J(t.state)?t.state:void 0;if(a==null){if(e?.state)t.state=e.state,se(t,t.state);else if(t.context?.state){let c=t.context.state,l={...c},u=t.context?.polyglot;if(u?.translations){let f=t.context,d=c.lang||u.defaultLang||"en",p=new Set,g=(m,b)=>{p.has(m)||nd(f,m,l)&&(l[m]=b,p.add(m),sd(f,m,b))},h=u.translations[d];if(h&&typeof h=="object")for(let m in h)g(m,h[m]);let _=new Set(Xu(u,!1));for(let m in u.translations)_.has(m)||g(m,u.translations[m])}J(l)||ul(t,l,o),t.state=J(l)?l:fn(l,dl(t.context)),t.state.__element=t,t.state.root=t.state,se(t,t.state),fa?.(c,t.state),_t("StateCreated",t,o)}else t.state={},Object.defineProperty(t.state,"root",{value:t.state,enumerable:!1,configurable:!0,writable:!0}),se(t,t.state);return}if(typeof a=="string"){if(t.state=P_(a,e),t.state&&typeof t.state=="object"&&!J(t.state)){let c=e?.state?.root||e?.state||t.state;Object.defineProperty(t.state,"root",{value:c,enumerable:!1,configurable:!0,writable:!0})}se(t,t.state),WT(t,a,e),_t("StateCreated",t,o);return}if(typeof a=="function"){let c=a(t,e?.state);if(J(c))t.state=c;else{let l=c||{};ul(t,l,o),t.state=fn(l,e?.state?void 0:dl(t.context))}}else if(J(a))t.state=a;else{let c={...a};ul(t,c,o),t.state=fn(c,e?.state?void 0:dl(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,se(t,t.state),fa?.(a,t.state),_t("StateCreated",t,o)}function Hg(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 L_(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 P_(t,e){if(!e)return{};if(t===".")return e.state||{};if(t.startsWith("../")||t.startsWith("~/")){let[r,s]=L_(t,e);return s?Hg(r,s):r??{}}if(e.state?.[t]!==void 0)return e.state[t];let n=Hg(e.state,t);if(n!=null&&Object.keys(n).length>0)return n;let o=e.context?.polyglot;if(o?.translations){let r=e.state?.root?.lang||o.defaultLang||"en",s=o.translations[r];if(s?.[t]!==void 0)return s[t];if(o.translations[t]!==void 0)return o.translations[t]}return{}}function UT(t,e){let[n,o]=L_(t,e);if(!o||!n||typeof n!="object")return;let r=n[o];if(r!==void 0||o.indexOf("/")===-1)return r;let s=n;for(let i of o.split("/")){if(s==null||typeof s!="object")return;s=s[i]}return s}function WT(t,e,n){let o=t.__ref;if(!o||!n||e==="."||!J(n.state))return;o.__stateBinding&&o.__stateBinding.dispose();let r=Mt(()=>N(()=>{let s=UT(e,n);!s||typeof s!="object"||s===t.state||Mt(()=>M_(t,t.state,s,!0))},{depth:o.path?o.path.length:0,label:H(o,"state")}));r._isStateBinding=!0,o.__stateBinding=r,o.__effects&&o.__effects.push(r)}function M_(t,e,n,o){let r=t.__ref;if(!r)return;if(o||t.state===e){t.state=n,o&&se(t,n),qg(r);let i=r.__children;if(i)for(let a=0;a<i.length;a++){let c=t[i[a]];c&&c.__ref&&c.parent===t&&M_(c,e,n,!1)}return}if(r.__stateBinding){r.__stateBinding._notify();return}let s=t.state;s&&typeof s=="object"&&s.parent===e&&(s.parent=n,qg(r))}function Gg(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 qg(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()}}var zT=new Set(["s","state","ctx","context"]),pl=new WeakMap;function HT(t){if(pl.has(t))return pl.get(t);let e=null;try{let n=typeof Ho=="function"?Ho(t):Function.prototype.toString.call(t);if(typeof n=="string"){let o=n.match(/^\s*(?:async\s+)?([A-Za-z_$][\w$]*)\s*=>/)||n.match(/^[^(]*\(([^)]*)\)/);o&&(e={params:o[1].split(",").map(r=>r.trim())})}}catch{}return pl.set(t,e),e}function GT(t){let e=HT(t);return e?e.params.map(n=>n.split("=")[0].trim()).filter(Boolean):[]}var qT=3,KT=/^(is|has)[A-Z0-9_$]/,YT=new Set(["routerOptions"]),Kg=new WeakSet;function ZT(t,e){if(typeof t!="function"||t.length!==2||e&&(KT.test(e)||YT.has(e))||Kg.has(t))return!1;let n=GT(t);if(n.length<2)return!1;let o=n[1].replace(/[{}[\]]/g,"").trim();return o.length<qT||zT.has(o)?!1:(Kg.add(t),!0)}function XT(t){let e=t.__ref,n=t.tag||"div",o=t.context?.designSystem,r=[],s=Object.keys(t);for(let i=0;i<s.length;i++){let a=s[i];if(typeof t[a]!="function"||xt.has(a))continue;let c=a.charCodeAt(0);c>=65&&c<=90||ee(a)||Y[a]||st&&st.has(a)||c!==45&&(_e(n,a)||(!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&j()&&ZT(t[a],a)&&console.warn(`[smbls] custom prop "${a}"${t.key?` on key "${t.key}"`:""} is a function \u2014 it will be auto-invoked on read and its RETURN VALUE stored, not preserved as a callable reference. If you meant to stash a callback, use el.call('${a}', \u2026) instead of reading el.${a}(\u2026) directly (see RULES.md Rule 8).`),r.push({prop:a,fn:t[a]})))}for(let i=0;i<r.length;i++){let{prop:a,fn:c}=r[i];e.__exec[a]=c,Object.defineProperty(t,a,{get(){o&&dt(o);try{return c(t,t.state,t.context)}catch{return}finally{o&&ot()}},set(l){delete e.__exec[a],Object.defineProperty(t,a,{value:l,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}}function QT(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 it(t,e,n){return!Array.isArray(e)||e.length===0?n:function(...o){return QT(t,e),n.apply(this,o)}}function wo(t,e){if(!(!t||Array.isArray(t)||typeof t!="object"))return t[e]}function H(t,e){return()=>t.path.join(".")+"::"+e}var Yg=new Set;function bt(t,e,n){if(!(!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&j()))return;let o=H(t,e)();Yg.has(o)||(Yg.add(o),console.warn(`[smbls] "${e}" effect threw on ${t.path.join(".")} \u2014 keeping previous value:`,n?.message||n))}var Zg=/(['"`])((?:\\.|(?!\1)[^\\])*)\1/g,Xg=new WeakMap,JT=t=>{let e=Xg.get(t);if(e!==void 0)return e;e=null;let n;try{n=String(t)}catch{n=""}if(n.includes("{{")){Zg.lastIndex=0;let o;for(;(o=Zg.exec(n))!==null;)o[2].includes("{{")&&(e||(e=[])).push(o[2])}return Xg.set(t,e),e},tA=(t,e)=>{let n=JT(t);if(n)for(let o=0;o<n.length;o++)e.add(n[o])},eA=(t,e)=>!ee(t)&&!Je(e,t),hl=(t,e,n,o,r)=>{if(typeof e=="string"){!r&&e.includes("{{")&&n.add(e);return}typeof e=="function"&&eA(t,o)&&tA(e,n)},kl=new WeakMap,Ir=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),Lr=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)?Wt(t,e):t},Pr=(t,e)=>t&&e?Wt(t,e):t||e||null,B_=(t,e)=>{let n=t.__ref&&t.__ref.__runtimeSource;return!!n&&Ir(n,e)},en=(t,e)=>B_(t,e)?Lr(t.__ref.__runtimeSource[e]):null,jn=(t,e)=>(e&&t&&typeof t=="object"&&kl.set(t,e),t),nA=t=>{if(!t||typeof t!="object")return;let e=kl.get(t);return e&&kl.delete(t),e},Cl=(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++)Cl(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&&Cl(r.value,e,n)}}},oA=(t,e)=>{let n=null;for(let o of Object.keys(t)){if(xt.has(o)||e&&Ir(e,o))continue;let r=Object.getOwnPropertyDescriptor(t,o),s=r&&r.value;if(!Array.isArray(s))continue;let i=new Set;Cl(s,i,new Set),i.size&&(n||(n=new Map),n.set(s,i))}return n},Qg=(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 s=t.__ref;s.__authoredTemplates||(s.__authoredTemplates=new Set);for(let i of r)s.__authoredTemplates.add(i);return}},N_=["attr","aria","data","metadata"],rA=t=>{if(N_.includes(t))return!0;let e=t.charCodeAt(0);return e===46||e===33||e===64},sA=(t,e)=>{let n=new Set,o=t.tag||"div";for(let r of Object.keys(t)){let s=Object.getOwnPropertyDescriptor(t,r),i=s&&s.value,a=!!e&&Ir(e,r);if(i&&typeof i=="object"&&!Array.isArray(i)){if(!rA(r))continue;let c=a?e[r]:null,l=c&&typeof c=="object"?c:null,u=r.charCodeAt(0)===46||r.charCodeAt(0)===33;for(let f in i){let d=a&&(!l||Ir(l,f)),p=i[f];if(u&&p&&typeof p=="object"&&!Array.isArray(p)&&N_.includes(f)){for(let g in p)hl(g,p[g],n,o,d);continue}hl(f,p,n,o,d)}continue}hl(r,i,n,o,a)}return n};function $_(t,e){let n=t.__ref,o=!!(e&&e.skipIfEffect),r=sA(t,n.__runtimeSource);if(n.__authoredTemplates)for(let c of r)n.__authoredTemplates.add(c);else n.__authoredTemplates=r;if(XT(t),typeof t.text=="function"){let c=t.text,l=it(t,t.textDeps,c),u=()=>{let d=l(t,t.state,t.context);return t.node&&typeof d=="string"&&d.includes("{{")&&(d=Tt.call(t,d,t.state)),d},f=N(()=>{if(!n.contentManaged)try{let d=t_(t,n,u);if(d===Bt)return;t.node&&d!=null&&typeof d!="function"&&typeof d!="object"&&Vn(t,d)}catch(d){bt(n,"text",d)}},{depth:n.path.length,label:H(n,"text")});n.__effects.push(f),n.__exec.text=c}else if(typeof t.text=="string"&&t.text.includes("{{")){let c=t.text,l=()=>Tt.call(t,c,t.state),u=N(()=>{if(n.contentManaged)return;let f=t_(t,n,l);f!==Bt&&(f!=null&&(t.text=f),t.node&&Vn(t,f??""))},{depth:n.path.length,label:H(n,"text")});n.__effects.push(u),n.__exec.text=c}let s=t.tag||"div";for(let c of Object.keys(t))if(typeof t[c]=="function"&&!xt.has(c)&&!ee(c)&&!n.__exec[c]&&!di(s,c)){if(Y[c]){let l=t[c],u=it(t,t[c+"Deps"],l),f=c,d,p=null,g=null,h,_=()=>{for(let x of g)t.node.classList.remove(x);g=null,h=void 0},m=()=>{z_(t,f,p,null),pi(t,f,null),p=null},b=N(()=>{let x=t.context?.designSystem;x&&dt(x);try{let D=u(t,t.state,t.context);jc();let y;try{y=Y[f](D,t,t.state,t.context)}finally{Vc()}if(Array.isArray(y)){let S={};for(let w of y)if(w)for(let k in w)S[k]=w[k];y=S}if(f==="show"||f==="hide"){t.node&&yi(t,f,!!(y&&y.display),!0);return}if(y&&t.node&&cA(y)){let S=Co(y);if(S===null||S!==h){h=S;let w=En(y,null,t.context?.cssPrefix),k=w?w.split(" ").filter(Boolean):null;if(t.node.classList){if(g)for(let v of g)t.node.classList.remove(v);if(k&&k.length)for(let v of k)t.node.classList.add(v);g=k}}p&&m(),d=void 0}else if(y&&t.node){g&&_();let S=Co(y);if(S===null||S!==d||!To(t.node,p,t)){d=S;let w=n_(t,y,p,f);p=Er(t.node,w,t),pi(t,f,p)}}else t.node&&(g&&_(),p&&m(),d=void 0)}finally{x&&ot()}},{depth:n.path.length,label:H(n,f)});n.__effects.push(b),n.__exec[c]=l}else if(st&&st.has(c)){let l=t[c],u=it(t,t[c+"Deps"],l),f=c,d,p=null,g=N(()=>{let h=t.context?.designSystem;h&&dt(h);try{let _=u(t,t.state,t.context);if(t.node)if(_!=null){let m=f+":"+String(_);if(m!==d||!To(t.node,p,t)){d=m;let b={[f]:_},x=n_(t,b);p=Er(t.node,x,t),pi(t,f,p)}}else d=void 0,p=null,pi(t,f,null),f==="display"?jr(t,""):t.node.style[f]=""}finally{h&&ot()}},{depth:n.path.length,label:H(n,f)});n.__effects.push(g),n.__exec[c]=l}else if(c.charCodeAt(0)===45){let l=t[c];G_(t,c,l,t[c+"Deps"],c),n.__exec[c]=l}}if(uA(t),typeof t.html=="function"){let c=t.html,l=it(t,t.htmlDeps,c),u=N(()=>{oe(t,()=>{let f=l(t,t.state,t.context);t.node&&f!=null&&typeof f!="function"&&(t.node.innerHTML=f)})},{depth:n.path.length,label:H(n,"html")});n.__effects.push(u),n.__exec.html=c}if(typeof t.value=="function"){let c=t.value,l=it(t,t.valueDeps,c),u=()=>{let d=l(t,t.state,t.context);return typeof d=="string"&&d.includes("{{")&&(d=Tt.call(t,d,t.state)),d},f=N(()=>{try{let d=Ee(t,n,"value",u);if(d===Bt)return;e_(t,d)}catch(d){bt(n,"value",d)}},{depth:n.path.length,label:H(n,"value")});n.__effects.push(f),n.__exec.value=c}else if(typeof t.value=="string"&&t.value.includes("{{")){let c=t.value,l=()=>Tt.call(t,c,t.state),u=N(()=>{try{let f=Ee(t,n,"value",l);if(f===Bt)return;e_(t,f)}catch(f){bt(n,"value",f)}},{depth:n.path.length,label:H(n,"value")});n.__effects.push(u),n.__exec.value=c}if(typeof t.style=="function"){let c=t.style,l=it(t,t.styleDeps,c),u,f=null,d,p,g,h,_=N(()=>{let m=l(t,t.state,t.context),b=t.context&&t.context.designSystem,x;if(m&&typeof m=="object"&&m===d&&b===g){let y=Co(m);x=y!==null&&y===p?h:Fn(t,m),p=y}else x=Fn(t,m),p=void 0;d=m,g=b,h=x;let D=Co(x);(D===null||D!==u||!To(t.node,f,t))&&(u=D,Tl(t.node,f,x,t),Ie(t.node,x,t),f=Er(t.node,x,t))},{depth:n.path.length,label:H(n,"style")});n.__effects.push(_),n.__exec.style=c}else if(t.style&&typeof t.style=="object")for(let c in t.style){let l=t.style[c];if(typeof l!="function")continue;let u=it(t,wo(t.styleDeps,c),l),f,d=null,p=N(()=>{try{let g=u(t,t.state,t.context);if(t.node){let h=c+":"+String(g);if(h!==f||!To(t.node,d,t)){f=h;let _=Fn(t,{[c]:g});Tl(t.node,d,Object.assign({},_,{[c]:""}),t),Ie(t.node,_,t),d=Er(t.node,_,t)}}}catch(g){bt(n,"style."+c,g)}},{depth:n.path.length,label:H(n,"style."+c)});n.__effects.push(p)}if(t.attr&&typeof t.attr=="object"){for(let c in t.attr)if(typeof t.attr[c]=="function"){let l=it(t,wo(t.attrDeps,c),t.attr[c]),u=c,f=u.toLowerCase(),d=()=>{let g=l(t,t.state,t.context);return typeof g=="string"&&g.includes("{{")&&(g=Tt.call(t,g,t.state)),g},p=N(()=>{try{let g=Ee(t,n,f,d);if(g===Bt)return;t.node?.setAttribute&&$n(t.node,u,g)}catch(g){bt(n,"attr."+u,g)}},{depth:n.path.length,label:H(n,"attr."+u)});p._attrName=u.toLowerCase(),n.__effects.push(p)}else if(typeof t.attr[c]=="string"&&t.attr[c].includes("{{")){let l=t.attr[c],u=c,f=u.toLowerCase(),d=()=>Tt.call(t,l,t.state),p=N(()=>{try{let g=Ee(t,n,f,d);if(g===Bt||!t.node||!t.node.setAttribute)return;t.node.setAttribute(u,je(u,g??""))}catch(g){bt(n,"attr."+u,g)}},{depth:n.path.length,label:H(n,"attr."+u)});p._attrName=u.toLowerCase(),n.__effects.push(p)}}if(t.aria&&typeof t.aria=="object")for(let c in t.aria){let l=t.aria[c];if(typeof l=="string"&&l.includes("{{")){let g=l,h="aria-"+c.replace(/[A-Z]/g,b=>"-"+b.toLowerCase()),_=()=>Tt.call(t,g,t.state),m=N(()=>{try{let b=Ee(t,n,h,_);if(b===Bt||!t.node||!t.node.setAttribute)return;t.node.setAttribute(h,je(h,b??""))}catch(b){bt(n,"aria."+c,b)}},{depth:n.path.length,label:H(n,"aria."+c)});m._attrName=h,n.__effects.push(m);continue}if(typeof l!="function")continue;let u=it(t,wo(t.ariaDeps,c),t.aria[c]),f="aria-"+c.replace(/[A-Z]/g,g=>"-"+g.toLowerCase()),d=()=>u(t,t.state,t.context),p=N(()=>{try{let g=Ee(t,n,f,d);if(g===Bt||!t.node?.setAttribute)return;$n(t.node,f,g)}catch(g){bt(n,"aria."+c,g)}},{depth:n.path.length,label:H(n,"aria."+c)});p._attrName=f,n.__effects.push(p)}if(t.data&&typeof t.data=="object")for(let c in t.data){let l=t.data[c];if(typeof l=="string"&&l.includes("{{")){let h=l,_="data-"+c.replace(/[A-Z]/g,x=>"-"+x.toLowerCase()),m=()=>Tt.call(t,h,t.state),b=N(()=>{try{let x=Ee(t,n,_,m);if(x===Bt||!t.node||!t.node.setAttribute)return;t.node.setAttribute(_,x??"")}catch(x){bt(n,"data."+c,x)}},{depth:n.path.length,label:H(n,"data."+c)});b._attrName=_,n.__effects.push(b);continue}if(typeof l!="function")continue;let u=it(t,wo(t.dataDeps,c),t.data[c]),d="data-"+c.replace(/[A-Z]/g,h=>"-"+h.toLowerCase()),p=()=>u(t,t.state,t.context),g=N(()=>{try{let h=Ee(t,n,d,p);if(h===Bt||!t.node?.setAttribute)return;h==null||h===!1?t.node.removeAttribute(d):typeof h!="function"&&typeof h!="object"&&t.node.setAttribute(d,h===!0?"":h)}catch(h){bt(n,"data."+c,h)}},{depth:n.path.length,label:H(n,"data."+c)});g._attrName=d,n.__effects.push(g)}let i=t.classlist&&typeof t.classlist=="object"&&!Array.isArray(t.classlist)?t.classlist:t.class&&typeof t.class=="object"&&!Array.isArray(t.class)?t.class:null;if(i)for(let c in i){if(typeof i[c]!="function")continue;let l=it(t,wo(t.classDeps,c),i[c]),u=N(()=>{try{let f=l(t,t.state,t.context);if(!t.node?.classList)return;typeof f=="string"?t.node.classList.add(f):f?t.node.classList.add(c):t.node.classList.remove(c)}catch(f){bt(n,"class."+c,f)}},{depth:n.path.length,label:H(n,"class."+c)});n.__effects.push(u)}!o&&typeof t.if=="function"&&j_(t,n,t.if);for(let c of Object.keys(t)){if(xt.has(c)||typeof t[c]!="function")continue;let l=c.charCodeAt(0);if(l>=65&&l<=90||ee(c))continue;let u=t[c];n.__exec[c]=u;let f=t.tag||"div";if(_e(f,c)&&!Je(f,c)){let d=Qe(c)||c,p=it(t,t[c+"Deps"],u),g=d.toLowerCase(),h=()=>{let m=p(t,t.state,t.context);return typeof m=="string"&&m.includes("{{")&&(m=Tt.call(t,m,t.state)),m},_=N(()=>{try{let m=Ee(t,n,g,h);if(m===Bt)return;let b=Nn[c];if(b&&m!=null){let x=b(t);x!==void 0&&(m=x)}t.node?.setAttribute&&$n(t.node,d,m,!0)}catch(m){bt(n,c,m)}},{depth:n.path.length,label:H(n,c)});_._attrName=d.toLowerCase(),n.__effects.push(_)}}let a=t.tag||"div";for(let c of Object.keys(t)){if(xt.has(c))continue;let l=t[c];if(typeof l!="string"||!l.includes("{{"))continue;let u=c.charCodeAt(0);if(u>=65&&u<=90||ee(c)||Je(a,c)||Nn[c]||!_e(a,c))continue;let f=Qe(c)||c,d=f.toLowerCase(),p=()=>Tt.call(t,l,t.state),g=N(()=>{try{let h=Ee(t,n,d,p);if(h===Bt||!t.node||!t.node.setAttribute)return;t.node.setAttribute(f,je(f,h??""))}catch(h){bt(n,c,h)}},{depth:n.path.length,label:H(n,c)});g._attrName=f.toLowerCase(),n.__effects.push(g)}if(yA(t),EA(t),typeof t.onStateUpdate=="function"&&Array.isArray(t.stateDeps)){let c=t.onStateUpdate,l=t.stateDeps,u=!1,f=[],d=N(()=>{let p=[];for(let _=0;_<l.length;_++){let m=l[_];try{p[_]=typeof m=="function"?m(t,t.state,t.context):t.state?.[m]}catch{p[_]=void 0}}if(!u){u=!0,f=p;return}let g=p.length!==f.length;for(let _=0;!g&&_<p.length;_++)p[_]!==f[_]&&(g=!0);let h=f;f=p,g&&oe(t,()=>{try{c(t,t.state,t.context,{prev:h,next:p})}catch(_){if(re(t,"onStateUpdate",_),t.context?.strictMode)throw _}})},{depth:n.path.length,label:H(n,"onStateUpdate")});n.__effects.push(d)}kA(t)}function Jg(t){let e=t.parent,n=e?.node;if(!n||!t.node){Eo(t,t.parent);return}let o=null,r=Object.keys(e),s=r.indexOf(t.key);for(let a=s+1;a<r.length;a++){let c=e[r[a]];if(c?.node?.parentNode===n){o=c.node;break}}t.node.parentNode===n&&t.node.nextSibling===o||(o?n.insertBefore(t.node,o):n.appendChild(t.node)),ti()}function F_(t){V_(t),MA(t),J_(t),qA(t),GA(t)}function j_(t,e,n){let o=it(t,t.ifDeps,n),r=N(()=>{let s=!e.__ifInitialized&&e.__ifLateMerge;if(s){let c=t.context?.components||{};s.names.some(l=>c[l]||c["smbls."+l])&&(e.__ifLateMerge=null,FT(t,s),o=it(t,t.ifDeps,typeof t.if=="function"?t.if:n))}let i;try{i=o(t,t.state,t.context)}catch(c){if(i=!1,e.__ifError=c,typeof console<"u"&&console.warn){let l=t.key||t.tag||"?";console.warn(`[smbls] \`if:\` reactive effect threw on ${l} \u2014 treating as false:`,c?.message||c)}return}let a=e.__if;if(e.__if=!!i,a&&!e.__if&&t.node){t.node.remove();try{typeof t.onRemove=="function"&&t.onRemove(t)}catch(c){console.error("[smbls] onRemove error:",c)}}else if(!a&&e.__if)if(e.__ifInitialized)t.node||(t.node=kr(t)),t.node&&(t.node.ref=t),Jg(t),V_(t),J_(t),_t("Render",t,{}),wl(t,{});else{e.__ifInitialized=!0,e.__ifLateMerge=null,t.tag||(t.tag=Mn(t)),_t("Init",t,{});let c=V.hydration;if(t.node||(t.node=c!==null&&c.adopt(t)||kr(t)),!t.node)return;if(t.parent?.__ref?.__children&&!t.parent.__ref.__children.includes(t.key)&&t.parent.__ref.__children.push(t.key),t.parent?.__ref?.__ifParked&&t.parent.__ref.__ifParked.delete(t.key),t.tag==="fragment"&&!e.__fragmentAnchor){let u=(t.context?.document||globalThis.document).createComment("");t.node.appendChild(u),e.__fragmentAnchor=u}_t("AttachNode",t,{}),t.node.setAttribute&&t.key&&t.node.setAttribute("data-key",t.key),t.id&&t.node.setAttribute&&(t.node.id=t.id),sm(t,{}),$_(t,{skipIfEffect:!0}),F_(t),am(t,{}),Jg(t),_t("Create",t,{}),_t("Complete",t,{}),_t("Render",t,{}),_t("RenderRouter",t,{}),wl(t,{})}},{depth:e.path.length,label:H(e,"if")});e.__effects.push(r)}var Bt=Symbol("builtTextKept");function t_(t,e,n){let o=e.__builtText;if(!o)return n();if(o.parentNode!==t.node||typeof Yo!="function")return e.__builtText=null,n();let{value:r,ready:s}=Yo(n);return s?r:Bt}function Ee(t,e,n,o){let r=e.__builtAttrs;if(!r||!r.values.has(n))return o();let s=t.node;if(s!==r.node||typeof Yo!="function")return e.__builtAttrs=null,o();let{value:i,ready:a}=Yo(o);return a?(r.values.delete(n),r.values.size||(e.__builtAttrs=null),i):(s.setAttribute(n,r.values.get(n)),Bt)}function Vn(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,s=r?r.__textNode:null;if(s&&s.parentNode!==n&&(s=null),!s){let i=n.firstChild;i&&i.nodeType===3&&(s=i)}s?s.nodeValue!==o&&(s.nodeValue=o):n.firstChild?(s=(n.ownerDocument||t.context?.document||globalThis.document).createTextNode(o),n.insertBefore(s,n.firstChild)):(n.textContent=o,s=n.firstChild&&n.firstChild.nodeType===3?n.firstChild:null),r&&(r.__textNode=s||null)}function iA(t,e){return e!=="checked"||!t||t.tagName!=="INPUT"?null:t.hasAttribute("checked")}function aA(t,e){if(e===null)return;let n=t.hasAttribute("checked");n!==e&&t.checked!==n&&(t.checked=n)}function $n(t,e,n,o){n==null||n===!1&&!xo(e)?mi(t,e,null):typeof n=="function"||typeof n=="object"||(o&&e==="src"&&"src"in t?t.src=n:mi(t,e,je(e,n)))}function mi(t,e,n){let o=iA(t,e);n==null?t.removeAttribute(e):t.setAttribute(e,n),aA(t,o)}function e_(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,s=!!r&&r.activeElement===n,i=s&&typeof n.selectionStart=="number"?n.selectionStart:null,a=s&&typeof n.selectionEnd=="number"?n.selectionEnd:null;if(n.value=o,s&&i!=null&&a!=null)try{n.setSelectionRange(i,a)}catch{}let c=t.__ref&&t.__ref.__autoGrow;c&&c.active&&c.resize()}function V_(t){let{node:e}=t;if(e){if((typeof t.text=="string"&&!t.text.includes("{{")||typeof t.text=="number")&&Vn(t,t.text),nm(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}Ie(e,Fn(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&&!xo(n)||e.setAttribute&&e.setAttribute(n,je(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 Co(t){if(t==null||typeof t!="object")return"s:"+String(t);try{return"o:"+JSON.stringify(t)}catch{return null}}function cA(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 Er(t,e,n){if(!t||!t.style||!e)return null;let o=t.style,r=[];for(let s in e){if(e[s]==null||s.charAt(0)==="&")continue;let a=De(s);r.push(a,Ro(n,o,a),Il(n,o,a))}return r}function U_(t,e){return typeof t.getPropertyValue=="function"?t.getPropertyValue(e):""}function W_(t,e){return typeof t.getPropertyPriority=="function"?t.getPropertyPriority(e):""}function De(t){return Fe(t)}function Tl(t,e,n,o){if(!t||!t.style||!e||!e.length)return;let r=t.style,s=new Set;if(n&&typeof n=="object")for(let i in n)n[i]==null||i.charAt(0)==="&"||s.add(De(i));for(let i=0;i<e.length;i+=3){let a=e[i];s.has(a)||Ro(o,r,a)===e[i+1]&&(o&&a==="display"?jr(o,""):typeof r.removeProperty=="function"&&r.removeProperty(a))}}function pi(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 lA(t,e,n){if(t.__heldInline){for(let[o,r]of t.__heldInline)if(o!==e){for(let s=0;s<r.length;s+=3)if(r[s]===n)return!0}}return!1}function z_(t,e,n,o){let r=t.__ref,s=t.node;if(!r||!n||!s||!s.style)return;let i=r.__inlineCssKeys,a=null;for(let f=0;f<n.length;f+=3){let d=n[f];o&&o.has(d)||lA(r,e,d)||(a||(a=[]),a.push(f),i&&i.delete(d))}if(!a)return;let c=i&&Rl(t,i),l=s.style,u=[];for(let f of a){let d=n[f];c&&c[d]!==void 0||Ro(t,l,d)===n[f+1]&&u.push(d)}for(let f of u)f==="display"?jr(t,""):typeof l.removeProperty=="function"&&l.removeProperty(f)}function fA(t,e,n){let o=[];for(let i=0;i<e.length;i+=3)o.push(e[i]);let r=!1;for(let i in n){let a=Ze[i];o.some(c=>a.includes(c))&&(r=!0,o.includes(i)||o.push(i))}if(!r)return;let s=t.node.style;e.length=0;for(let i of o)e.push(i,Ro(t,s,i),Il(t,s,i))}function To(t,e,n){if(!e||!t||!t.style)return!1;let o=t.style;for(let r=0;r<e.length;r+=3)if(Ro(n,o,e[r])!==e[r+1]||Il(n,o,e[r])!==e[r+2])return!1;return!0}var Mr=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,H_=t=>typeof t=="number"||t===!0||typeof t=="string"&&t!=="",wi=t=>Mr(t)?t:"--"+t;function ki(t,e){if(!nn(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)}H_(r)&&(n||(n={}),n[wi(o)]=r)}return n}function G_(t,e,n,o,r){q_(t,r,it(t,o,n),s=>H_(s)?{[e]:s}:null)}function q_(t,e,n,o,r){let s=t.__ref,i,a=null,c=N(()=>{oe(t,()=>{try{let l=o(n(t,t.state,t.context)),u=t.node;if(!u||!u.style)return;let f=Co(l);(f===null||f!==i||!To(u,a))&&(i=f,Tl(u,a,l),l&&Ie(u,l),a=l?Er(u,l):null,r&&r(l))}catch(l){bt(s,e,l)}})},{depth:s.path.length,label:H(s,e)});s.__effects.push(c)}function uA(t){let e=t.__ref,n=t.vars;if(typeof n=="function"){dA(t,n),e.__exec.vars=n;return}if(nn(n))for(let o of Object.keys(n)){let r=n[o];!o||typeof r!="function"||G_(t,wi(o),r,wo(t.varsDeps,o),"vars."+o)}}function dA(t,e){let n=t.__ref;q_(t,"vars",it(t,t.varsDeps,e),o=>ki(o),o=>{n.__varsInline=o?new Set(Object.keys(o)):null})}function Al(t,e){if(typeof t[e]=="function"&&(Je(t.tag||"div",e)||e.charCodeAt(0)===45))return!0;if(!Mr(e))return!1;let n=t.vars;if(typeof n=="function"){let o=t.__ref&&t.__ref.__varsInline;return!!(o&&o.has(e))}if(!nn(n))return!1;for(let o of Object.keys(n))if(typeof n[o]=="function"&&wi(o)===e)return!0;return!1}function pA(t){let e=null;for(let n in t)t[n]!=null&&n.charAt(0)!=="&"&&(e||(e=new Set),e.add(De(n)));return e}function hA(t,e,n,o){let r=t.__ref;if(!r)return;let s=null;if(n)for(let i of n){if(o&&o.has(i))continue;let a=e[i];if(a==null||typeof a=="object")continue;let c=De(i);Ze[c]&&(s||(s={}),s[c]=a)}r.__declaredLonghands=s}function Rl(t,e){let n=t.__ref,o=n&&n.__declaredLonghands;if(!o||!e)return null;let r=null;for(let s in o){if(e.has(s))continue;let i=Ze[s],a=!1;for(let c=0;c<i.length;c++)if(e.has(i[c])){a=!0;break}a&&(r||(r={}),r[s]=o[s])}return r}function n_(t,e,n,o){let r=t.node,s=pA(e),i=s&&Rl(t,s);if(n&&z_(t,o,n,i?new Set([...s,...Object.keys(i)]):s),Ie(r,e,t),!s)return e;let a=t.__ref;if(a)if(a.__inlineCssKeys)for(let c of s)a.__inlineCssKeys.add(c);else a.__inlineCssKeys=new Set(s);return i?(Ie(r,i),Object.assign({},e,i)):e}function gA(t){let e=t.__ref;if(!e||!e.__inlineCssKeys||!e.__declaredLonghands)return;let n=Rl(t,e.__inlineCssKeys);if(!n)return;let o=[];if(e.__heldInline)for(let r of e.__heldInline.values())To(t.node,r,t)&&o.push(r);Ie(t.node,n);for(let r of o)fA(t,r,n)}function Fn(t,e){return!e||typeof e!="object"?e:oe(t,()=>{try{return sg(e,t)}catch{return e}})}var K_="none",Dl=t=>!!(t&&t.__hiddenBy&&t.__hiddenBy.size),o_=t=>U_(t,"display")===K_&&W_(t,"display")==="important";function Y_(t,e){e?t.setProperty("display",e[0],e[1]):typeof t.removeProperty=="function"?t.removeProperty("display"):t.display=""}function yi(t,e,n,o){let r=t.__ref,s=t.node;if(!r||!s||!s.style)return;let i=r.__hiddenBy,a=!!(i&&i.size);n?(i||(i=r.__hiddenBy=new Set),i.add(e)):i&&i.delete(e);let c=s.style;i&&i.size?o_(c)||c.setProperty("display",K_,"important"):(a||o&&o_(c))&&Y_(c,r.__shownDisplay||null)}function jr(t,e,n){let o=t.__ref,r=e?[String(e),n||""]:null;o&&(o.__shownDisplay=r);let s=t.node;!s||!s.style||Dl(o)||Y_(s.style,r)}function Ro(t,e,n){let o=n==="display"&&t&&t.__ref;return Dl(o)?o.__shownDisplay?o.__shownDisplay[0]:"":U_(e,n)}function Il(t,e,n){let o=n==="display"&&t&&t.__ref;return Dl(o)?o.__shownDisplay?o.__shownDisplay[1]:"":W_(e,n)}function Ie(t,e,n){if(!t||!e||!t.style)return;let o=null;for(let r in e){let s=e[r];if(s!=null){if(r.charAt(0)==="&"&&typeof s=="object"){o||(o={}),o[r]=s;continue}try{let i=String(s);if(typeof s=="object"&&i==="[object Object]")continue;let a=Fe(r),c=i.trim(),l=/\s*!important\s*$/.test(c),u=c.replace(/\s*!important\s*$/,"");if(n&&a==="display"){jr(n,u,l?"important":"");continue}t.style.setProperty(a,u,l?"important":"")}catch{}}}o&&_A(t,o)}function _A(t,e){let n=`_ds${k_.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 s="";for(let i in e){let a="."+n,c=On(i.replace(/&/g,a)).map(u=>u.includes(a)?u:a+u).join(", "),l=e[i];if(typeof l=="object"){let u="",f="";for(let d in l){let p=l[d];if(typeof p=="object"){let g=On(c),h=d.includes("&")?g.map(m=>d.replace(/&/g,m)).join(", "):g.map(m=>`${m} ${d}`).join(", "),_="";for(let m in p)_+=`${De(m)}: ${p[m]};`;f+=vn(`${h} { ${_} }`,h)+`
34
34
  `}else u+=`${De(d)}: ${p};`}u&&(s+=vn(`${c} { ${u} }`,c)+`
35
- `),f&&(s+=f)}}s&&(r.textContent+=s)}var i_=new Set;function a_(t){if(!Array.isArray(t))return"";let e=[];for(let n=0;n<t.length;n++)typeof t[n]=="string"&&t[n].length&&e.push(t[n]);return e.sort(),e.join("|")}function kA(t,e,n){let o=a_(n);queueMicrotask(()=>{if(!t.__ref)return;let r;try{r=e(t,t.state,t.context)}catch{return}if(a_(r)===o)return;let s=t.__ref.path?t.__ref.path.join("."):t.key||"?";i_.has(s)||(i_.add(s),console.warn(`[smbls] subscribeTo function at "${s}" resolved to a DIFFERENT key list one microtask after create \u2014 wired [${n.join(", ")||"(none)"}], probed [${Array.isArray(r)?r.join(", "):String(r)}]. subscribeTo's function form is resolved ONCE at element-create time (registerSubscribeToEffects, @symbo.ls/element core.js) \u2014 this element stays wired to the ORIGINAL list for its whole lifetime, so this drift is invisible to the reactive effect and any key only present in the new list will never trigger onUpdate. If the watched key genuinely is not known until later (e.g. a module config that loads after shell boot), route the write through an imperative call instead of subscribeTo \u2014 see functions/moduleOpenBridge.js's moduleOpenPage (workspace repo) for the house pattern.`))})}function CA(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(n&&!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&j()&&kA(t,e,Array.isArray(o)?o:[]),!Array.isArray(o)||o.length===0)return;let r=t.__ref;for(let s=0;s<o.length;s++){let i=o[s];if(typeof i!="string"||i.length===0)continue;let a=i.split("."),c=a[0],l=a.slice(1),u={value:!1},f=N(()=>{let d=t.state&&(J(t.state)?t.state.root:null);if(!d||!J(d))return;let p=d;p=p[c];for(let h=0;h<l.length&&!(p==null||typeof p!="object");h++)if(J(p))p=p[l[h]];else break;if(!u.value)return;let g=!1;if(typeof t.onBeforeUpdate=="function"&&oe(t,()=>{try{if(Ai(r)){let h=t.onBeforeUpdate(t,t.state,t.context,{updateBySubscription:!0});h&&typeof h.then=="function"?h.then(()=>Re(r,!1),_=>{Re(r,!0),Oe("error",t,{hook:"onBeforeUpdate",error:_})||console.error("[DOMQL] subscribeTo onBeforeUpdate error:",_)}):(Re(r,!1),h===!1&&(g=!0))}}catch(h){Re(r,!0),Oe("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];_&&_!==f&&!_._disposed&&!_._isSubscribeToEffect&&typeof _._execute=="function"&&_._execute()}!g&&typeof t.onUpdate=="function"&&oe(t,()=>{try{t.onUpdate(t,t.state,t.context)}catch(h){Oe("error",t,{hook:"onUpdate",error:h})||console.error("[DOMQL] subscribeTo onUpdate error:",h)}})},{depth:r.path.length,label:H(r,"subscribeTo("+i+")")});u.value=!0,f._isSubscribeToEffect=!0,r.__effects.push(f)}}function Pl(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 Ml(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=TA(e);if(o){let r=Zh(n);if(r)return`@container ${o} ${r}`}}return/^@(media|supports|container)\b/.test(n)?n:`@media ${n}`}function Bl(t,e,n,o){return ir(t)?sr(()=>Br(e,n,!1,o)):Br(e,n,!1,o)}function TA(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=Wc(r,o);break}}return e&&(e.__breakpointContainer=n),n}var c_=new Set;function AA(t,e){let n=e?.__ref?.path?e.__ref.path.join("."):e?.key||"?",o=n+"::"+t;c_.has(o)||(c_.add(o),console.warn(`[smbls/css] "${t}" at ${n} is a CHILD-COMPONENT key nested inside a pseudo/selector block (":hover", "@dark", etc.) \u2014 that is never a valid CSS selector fragment. The rule is DROPPED (not shipped as a dead/never-matching selector). To reveal a child on a parent state, target the child's OWN class from the parent selector instead, e.g. move the declaration onto the child element itself, or use a sibling-selector combinator in a top-level style block.`))}var l_=new Map;function vA(t){let e=l_.get(t);if(e)return e;e=[];let n=o=>{if(o)for(let r of o)e.push(wr(r))};return n(Ze[t]),n(li[t]),l_.set(t,e),e}function f_(t,e,n){if(vl(t,e)||n&&n.has(e))return!0;let o=vA(De(e));for(let r=0;r<o.length;r++){let s=o[r];if(vl(t,s)||n&&n.has(s))return!0}return!1}function Br(t,e,n,o){let r={},s=new Set,i=(a,c,l)=>{let u=l?new Set(Object.keys(r)):null;if(Y[a]){let f=Y[a](c,e,e.state,e.context);if(f){let d=Array.isArray(f)?f:[f];for(let p of d)p&&Object.assign(r,p)}}else r[a]=c;if(l)for(let f in r)u.has(f)||s.add(f)};for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a))continue;let c=t[a];if(typeof c=="function"&&(c=c(e,e.state,e.context)),!(c==null||typeof c=="function")){if(typeof c=="object"&&!Array.isArray(c)){if(a==="style"){for(let f in c){let d=c[f];typeof d=="function"&&(d=d(e,e.state,e.context)),!(d==null||typeof d=="function")&&i(f,d,f_(e,f,o))}continue}if(a==="vars"){let f=Ci(c,e);if(f)for(let d in f)i(d,f[d],vl(e,d)||!!(o&&o.has(d)));continue}if(Pl(a,e)){let f=Br(c,e,!1,o);Object.keys(f).length&&(r[`[data-theme="${a.slice(1)}"] &`]=f);continue}if(/^[A-Z][A-Za-z0-9]*$/.test(a)){!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&j()&&AA(a,e);continue}let l=Ml(a,e),u=Bl(l,c,e,o);Object.keys(u).length&&(r[l]=u);continue}i(a,c,f_(e,a,o))}}if(n)for(let a in r)s.add(a);for(let a of s){let c=r[a];typeof c=="string"&&!c.includes("!important")&&(r[a]=c+" !important")}return r}var nn=t=>!!t&&typeof t=="object"&&!Array.isArray(t);function Q_(t,e){for(let n in e){let o=e[n];t[n]=nn(o)?Q_(nn(t[n])?t[n]:{},o):o}return t}function OA(t,e){if(!nn(e))return;let n;for(let o of t.split(" ")){let r=o?e[o]:null;nn(r)&&(n=Q_(n||{},r))}return n}function Nl(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)&&Nl(t[n],e+1))return!0}return!1}function J_(t,e,n){if(!e||typeof e!="object"||Array.isArray(e))return null;if(Pl(t,n)){let s=Br(e,n,!1);return Object.keys(s).length?{cssProp:`[data-theme="${t.slice(1)}"] &`,block:s}:null}let o=Ml(t,n),r=Bl(o,e,n);return Object.keys(r).length?{cssProp:o,block:r}:null}function EA(t){let e=t.__ref;for(let n of Object.keys(t)){if(!D_(n))continue;let o=t[n];if(!o||typeof o!="object"||Array.isArray(o)||!Nl(o))continue;let r=null,s,i=N(()=>{if(!t.node)return;let a=t.context?.designSystem;a&&dt(a);let c,l=!1;try{let u=J_(n,o,t),f=u?Co(u.block)+"::"+u.cssProp:null;if(f!==null&&f===s)l=!0;else if(s=f,u){let d=En({[u.cssProp]:u.block},null,t.context?.cssPrefix);c=d?d.split(" ").filter(Boolean):null}else c=null}finally{a&&ot()}if(!(l||!t.node.classList)){if(r)for(let u of r)t.node.classList.remove(u);if(c&&c.length)for(let u of c)t.node.classList.add(u);r=c}},{depth:e.path.length,label:H(e,"cssBlock("+n+")")});e.__effects.push(i)}}var RA=()=>!0,DA=(t,e)=>{let n=t.charAt(0);return(n===":"||n==="@"||n==="&"||n==="[")&&e&&typeof e=="object"&&!Array.isArray(e)?!0:!!Y[t]||!!(st&&st.has(t))||Mr(t)||t==="vars"};function IA(t,e,n){let o={},r=!1;for(let a in n)Object.prototype.hasOwnProperty.call(n,a)&&(a!=="data"&&a!=="aria"&&(DA(a,n[a])||xt.has(a))?o[a]=!0:r=!0);if(!r)return null;let s=Wg({[e]:n},t.tag||"div",o,RA),i=null;for(let a in s)/^on/i.test(a)||(i||(i={}),i[a]=s[a]);return i}function u_(t,e,n,o,r,s){let i=t.node,a=null,c=l=>{(a||(a=[])).push(l)};for(let l in o){let u=e.owners.get(l),f=u===n;if(!s&&u!==void 0&&!f)continue;let d;try{d=o[l](t)}catch(g){bt(t.__ref,"conditional("+n+")."+l,g),f&&c(l);continue}if(typeof d=="string"&&d.includes("{{")&&(d=Tt.call(t,d,t.state)),f&&i.getAttribute(l)!==e.written.get(l)){c(l);continue}if(d==null||typeof d=="object"||typeof d=="function"){f&&tm(i,e,l);continue}let p=d===!1&&!xo(l)?null:String(je(l,d));c(l),!(f&&p===e.written.get(l))&&(u===void 0&&e.base.set(l,i.getAttribute(l)),yi(i,l,p),e.owners.set(l,n),e.written.set(l,p))}r.appliedAttrs=a}function tm(t,e,n){t.getAttribute(n)===e.written.get(n)&&yi(t,n,e.base.get(n)),e.owners.delete(n),e.base.delete(n),e.written.delete(n)}function LA(t,e,n,o){let r=o.appliedAttrs;if(o.appliedAttrs=null,!!r)for(let s of r)e.owners.get(s)===n&&tm(t.node,e,s)}function em(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),s=n.getAttribute(o);s!==r&&(e.base.set(o,s),r==null?n.removeAttribute(o):n.setAttribute(o,r))}}var _l,PA=()=>_l===void 0?_l=!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&j():_l;function d_(t,e){let n=Vu;typeof n=="function"?t.untrackedReads+=n(e):e()}function MA(t){let e=t.__ref;e.__conditionalRunners=[];let n=null,o=new Map;for(let r of Object.keys(t)){let s=r.charAt(0);if(s!=="."&&s!=="!")continue;let i=r.slice(1);if(!i)continue;if(/[:@\s>~+[\]]/.test(i)){if(typeof console<"u"&&console.warn){let _=i.split(/[:@\s>~+[\]]/)[0];globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(`[smbls] conditional \`${r}\` on ${t.key||"?"} will never match \u2014 the whole string after \`${s}\` is read as one prop name. Nest the selector inside instead: \`${s}${_}: { '${i.slice(_.length)}': {...} }\`.`)}continue}let a=t[r];if(!a||typeof a!="object")continue;let c=s==="!",l={lastMatch:!1,appliedKeys:null,appliedClasses:null,appliedAttrs:null,hides:!1,probe:!1,untrackedReads:0},u=IA(t,r,a);u&&!n&&(n=e.__conditionalAttrs={owners:new Map,base:new Map,written:new Map});let f=new Set;for(let _ in a){if(!Object.prototype.hasOwnProperty.call(a,_))continue;let m=_.charAt(0),b=a[_];if(!((m===":"||m==="@"||m==="&"||m==="[")&&b&&typeof b=="object"&&!Array.isArray(b))){if(_==="vars"&&nn(b)){for(let x of Object.keys(b))x&&f.add(ki(x));continue}f.add(_)}}let d=()=>{let _,m=l.probe,b;if(m?d_(l,()=>{b=t[i]}):b=t[i],b===void 0){let y=!!t.state&&i in t.state,S=t.state?t.state[i]:void 0;if(y||S!==void 0)_=S;else{let w=t.context?.cases?.[i];if(w===void 0)return;try{_=typeof w=="function"?w.call(t,t):w}catch(k){_=!1,e.__conditionalError=k,typeof console<"u"&&console.warn&&console.warn(`[smbls] conditional \`${r}\` case fn threw on ${t.key||"?"} \u2014 treating as false:`,k?.message||k)}}}else if(typeof b=="function")try{m?d_(l,()=>{_=b(t,t.state,t.context)}):_=b(t,t.state,t.context)}catch(y){_=!1,e.__conditionalError=y,typeof console<"u"&&console.warn&&console.warn(`[smbls] conditional \`${r}\` predicate threw on ${t.key||"?"} \u2014 treating as false:`,y?.message||y)}else _=b;m&&(l.probe=!1);let x=c?!_:!!_;if(!t.node)return;let D=t.context?.designSystem;if(x===l.lastMatch){if(x&&u&&t.node.setAttribute){D&&dt(D);try{u_(t,n,r,u,l,!1)}finally{D&&ot()}}return}l.lastMatch=x,D&&dt(D);try{if(x){let y={},S={},w=!1,k=!1;for(let R in a){if(!Object.prototype.hasOwnProperty.call(a,R))continue;let O=a[R],$=R.charAt(0);if(($===":"||$==="@"||$==="&"||$==="[")&&O&&typeof O=="object"&&!Array.isArray(O)){if(Pl(R,t)){let P=Br(O,t,!1,f);Object.keys(P).length&&(S[`[data-theme="${R.slice(1)}"] &`]=P,w=!0)}else{let P=Ml(R,t),Gt=Bl(P,O,t,f);Object.keys(Gt).length&&(S[P]=Gt,w=!0)}continue}let B=typeof O=="function"?O(t,t.state,t.context):O;if(B!=null){if(R==="hide"||R==="show"){let P=Y[R](B,t,t.state,t.context);P&&P.display&&(k=!0)}else if(Y[R]){let P=Y[R](B,t,t.state,t.context);if(P){let Gt=Array.isArray(P)?P:[P];for(let ct of Gt)ct&&Object.assign(y,ct)}}else if(st&&st.has(R))y[R]=B;else if(Mr(R))y[R]=B;else if(R==="vars"){let P=Ci(B,t);P&&Object.assign(y,P)}}}(k||l.hides)&&(l.hides=k,bi(t,r,k));let v=Object.keys(y);if(v.length){Ie(t.node,y,t);for(let R of v){let O=o.get(R);O||(O=[],o.set(R,O));let $=O.findIndex(B=>B.key===r);$!==-1&&O.splice($,1),O.push({key:r,value:y[R]})}l.appliedKeys=v}else l.appliedKeys=null;if(w){let R=En(S,null,t.context?.cssPrefix,{state:!0}),O=R?R.split(" ").filter(Boolean):[];if(O.length&&t.node.classList){for(let $ of O)t.node.classList.add($);l.appliedClasses=O}else l.appliedClasses=null}else if(l.appliedClasses){for(let R of l.appliedClasses)t.node.classList.remove(R);l.appliedClasses=null}u&&t.node.setAttribute&&u_(t,n,r,u,l,!0)}else{if(l.appliedAttrs&&LA(t,n,r,l),l.appliedKeys){for(let y of l.appliedKeys){let S=o.get(y);if(!S)continue;let w=S.findIndex(k=>k.key===r);if(w!==-1)if(S.splice(w,1),S.length){let k=S[S.length-1].value,v=Fe(y),R=String(k).trim().replace(/\s*!important\s*$/,"");Ro(t,t.node.style,v)!==R&&Ie(t.node,{[y]:k},t)}else o.delete(y),Mr(y)?t.node.style.removeProperty(y):Fe(y)==="display"?jr(t,""):t.node.style[y]=""}l.appliedKeys=null}if(l.hides&&(l.hides=!1,bi(t,r,!1)),l.appliedClasses){for(let y of l.appliedClasses)t.node.classList.remove(y);l.appliedClasses=null}}}finally{D&&ot()}};e.__conditionalRunners.push(d);let p=t[i+"Deps"],g=it(t,p,d);PA()&&typeof(e.__exec&&e.__exec[i]||t[i])=="function"&&!(Array.isArray(p)&&p.length===0)&&(l.probe=!0);let h=N(g,{depth:e.path.length,label:H(e,"conditional("+r+")")});l.probe&&(l.probe=!1),l.untrackedReads>0&&h._sources.size===0&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(`[smbls] conditional \`${r}\` on ${t.key||"?"} subscribed to nothing \u2014 its predicate read state on its first run without subscribing to it (\`in\`, Object.keys, a \`__\` key, parse()), so no state write will ever re-evaluate it (only a direct element.update() on this element re-runs it). Declare \`${i}Deps: [...]\` (state-key strings or \`(el, s) => \u2026\` selectors) so the subscription is armed unconditionally, or \`${i}Deps: []\` when it is static on purpose.`)),e.__effects.push(h)}}var ml=new WeakSet,yl=new WeakMap;function BA(t){let e=yl.get(t);if(e==="painted")return!1;if(e===void 0){yl.set(t,"open");let n=t.defaultView,o=()=>{yl.set(t,"painted")};n&&typeof n.requestAnimationFrame=="function"?n.requestAnimationFrame(o):setTimeout(o,0)}return!0}var bl=new WeakSet;function NA(t){if(bl.has(t))return;bl.add(t);let e=()=>{bl.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)}function $A(t,e){let n=t.ownerDocument;if(n&&!BA(n)){if(V.hydration!==null&&e&&e.context&&e.context.__hydration){NA(n);return}ml.has(n)||(ml.add(n),queueMicrotask(()=>{ml.delete(n);let o=n.body||n.documentElement;o&&o.offsetWidth}))}}var Sl=new WeakSet,p_=!1;function h_(t){return t.startsWith("[data-theme=")||t.startsWith("@media")&&t.includes("prefers-color-scheme")}function Ol(t,e){let n={...t};for(let o in e){let r=e[o],s=n[o];n[o]=r&&typeof r=="object"&&s&&typeof s=="object"?Ol(s,r):r}return n}function nm(t,e){let n={};for(let o in t){let r=t[o];if(r&&typeof r=="object"){let s=nm(r,e);Object.keys(s).length&&(n[o]=s)}else e(o)||(n[o]=r)}return n}function g_(t,e,n){let o=$l(t);if(!o)return!1;for(let r=0;r<o.length;r+=3){let s=o[r+1];if(!n.has(s))continue;let i=e[s];if(!(i==null||typeof i=="object")&&cg(o[r],i,o[r+2]))return!0}return!1}function FA(t,e,n){let o=1/0,r=-1/0;for(let i of e.values())i<o&&(o=i),i>r&&(r=i);if(n)for(let i of n.values())i>r&&(r=i);if(r<=o)return null;let s=null;for(let[i,a]of e){if(a===r)continue;let c=$l(i);if(c)for(let l=0;l<c.length;l+=3){let u=c[l],f=c[l+1],d=c[l+2],p=t[f]!=null?e.get(f):void 0,g=n&&n.get(u),h=p!==void 0&&p>a&&fi(u,t[f],d),_=!h&&g!==void 0&&g>a&&fi(u,void 0,d);if(h||_){h&&delete t[i],s||(s=new Set),s.add(i);break}}}return s}var __=new Map;function $l(t){let e=__.get(t);if(e!==void 0)return e;let n=De(t),o=Ze[n];if(e=null,Array.isArray(o)){e=[];for(let r of o)e.push(r,wr(r),n)}return __.set(t,e),e}var om=new Set(["page","zoom"]),jA=(t,e)=>{om.add(t);let n=typeof CSS<"u"?CSS:null;if(!n||typeof n.supports!="function")return;let o=!1;try{o=n.supports(De(t),String(e))}catch{o=!1}o&&console.warn(`[smbls] css: "${t}: ${e}" is valid CSS, but smbls has no entry for "${t}", so the element gets no CSS for it. Write it in style: { ${t}: \u2026 } for now, and report the missing property.`)};function rm(t){let{node:e}=t;if(!e)return;if(p_||(p_=!0,En({display:"none"})),Sl.has(t)){console.error("[applyCssInProps] re-entry detected for element",t.key,"prop path:",t.__ref?.path);return}Sl.add(t);let n=t.context?.designSystem;n&&dt(n),Vc();try{let o={},r=!1,s=[],i=null,a=null,c=null,l=null,u=t.__ref&&t.__ref.__mergeLayer,f,d=null,p=null,g=!1,h=(y,S)=>{if(S&&typeof S=="object"&&h_(y)){c||(c={});let w=c[y];w&&(S=Ol(w,S)),c[y]=S}else(S===null||typeof S!="object")&&(l||(l=new Set),l.add(y),f!==void 0&&(d||(d=new Map),d.set(y,f)));o[y]=S};if(Object.prototype.hasOwnProperty.call(t,"theme")&&typeof t.theme!="function"&&Y.theme){let y=Y.theme(t.theme,t,t.state,t.context);if(y){let S=w=>{for(let k in w){let v=w[k];v&&typeof v=="object"?h_(k)&&(i||(i={}),i[k]=v):$l(k)&&(a||(a=[])).push(k),o[k]=v}};if(Array.isArray(y))for(let w of y)w&&S(w);else S(y);r=!0}}let _=(y,S)=>{if(y==="vars"){let w=Ci(S);if(w){for(let k in w)h(k,w[k]);r=!0}return}if(y==="hide"||y==="show"){let w=Y[y](S,t,t.state,t.context);w&&w.display&&(g=!0);return}if(Y[y]){let w=Y[y](S,t,t.state,t.context);if(w){if(Array.isArray(w)){for(let k of w)if(k)for(let v in k)h(v,k[v])}else for(let k in w)h(k,w[k]);r=!0}}else if(st&&st.has(y))S!=null&&typeof S!="object"&&(h(y,S),r=!0);else if(y.charCodeAt(0)===45)S!=null&&typeof S!="object"&&(h(y,S),r=!0);else if(y.charAt(0)==="&"||y.charAt(0)==="@"||y.charAt(0)===":"||y.charAt(0)==="["){if(S&&typeof S=="object"&&!Array.isArray(S)){if(Nl(S))return;let w=J_(y,S,t);w&&(h(w.cssProp,w.block),r=!0)}}else(typeof S=="string"||typeof S=="number")&&!om.has(y)&&!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&j()&&jA(y,S)};if(typeof t.class=="string"){let y=OA(t.class,t.context?.designSystem?.class);if(y)for(let S in y)_(S,y[S])}let m=l?new Set(l):null,b=t.tag||"div";for(let y of Object.keys(t)){if(typeof t[y]=="function"){let w=u&&u.get(y);w!==void 0&&Je(b,y)&&(p||(p=new Map),p.set(De(y),w));continue}if(f=u?u.get(y):void 0,y==="vars"){_(y,t[y]);continue}if(xt.has(y)||y==="theme")continue;let S=y.charCodeAt(0);S>=65&&S<=90||ee(y)||pi(b,y)||_(y,t[y])}f=void 0;let x=d?FA(o,d,p):null;if(a&&l)for(let y of a)l.has(y)||!(y in o)||g_(y,o,l)&&delete o[y];if(i){let y=l?S=>l.has(S)||g_(S,o,l):null;for(let S in i){let w=y?nm(i[S],y):i[S];c&&c[S]&&(w=Ol(w,c[S])),Object.keys(w).length?o[S]=w:delete o[S]}}if(SA(t,o,l,x?new Set([...m||[],...x]):m),bi(t,"static",g),r){o.display&&String(o.display).includes("!important")&&(Ie(e,{display:o.display},t),delete o.display);let y=t.display!=null&&typeof t.display!="function"?t.display:t.hide===!0||t.show===!1?"none":null;typeof y=="string"&&y!==""&&o.display&&o.display!==y&&(o.display=y);let S=En(o,null,t.context?.cssPrefix);if(s=S?S.split(" ").filter(Boolean):[],S&&e.classList){let w=s,k=!1;for(let v of w)e.classList.add(v),k||(v.charCodeAt(0)===95&&v.charCodeAt(1)===99||v.charCodeAt(0)===95&&v.indexOf("_c",1)!==-1)&&(k=!0);k&&$A(e,t)}}let D=t.__ref;if(D){let y=D.__staticCssClasses;if(y&&e.classList){let S=new Set(s);for(let w of y)S.has(w)||e.classList.remove(w)}D.__staticCssClasses=s}xA(t)}finally{Uc(),n&&ot(),Sl.delete(t)}}var Fl=t=>!!Y[t]||!!(st&&st.has(t))||typeof t=="string"&&t.charCodeAt(0)===45;function jl(t){t&&t.node&&rm(t)}function VA(t){let{node:e}=t;if(!e||!e.setAttribute)return;if(t.aria&&typeof t.aria=="object")for(let r in t.aria){let s=t.aria[r];if(typeof s=="function"||typeof s=="object"||s==null||typeof s=="string"&&s.includes("{{"))continue;let i="aria-"+r.replace(/[A-Z]/g,a=>"-"+a.toLowerCase());e.setAttribute(i,je(i,s))}let n=Ug(t);for(let r in n){let s=n[r];s!=null&&s!==!1&&typeof s!="function"&&typeof s!="object"&&e.setAttribute(r,s===!0?"":s)}let o=t.tag||"div";for(let r of Object.keys(t)){if(typeof t[r]=="function"||xt.has(r)||r==="on"||n[r]!==void 0)continue;let s=r.charCodeAt(0);if(!(s>=65&&s<=90)&&!ee(r)&&!Je(o,r)&&_e(o,r)){let i=t[r];if(i==null)continue;if(typeof i=="string"&&i.includes("{{")){if(!Nn[r])continue;i=Tt.call(t,i,t.state)}if(i==null||typeof i=="function"||typeof i=="object"||i===!1&&!xo(Qe(r)||r))continue;let a=Qe(r)||r;e.setAttribute(a,je(a,i))}}}function Vl(t,e){let{node:n}=t;if(!n||!n.setAttribute)return;let o=e.charCodeAt(0);if(o>=65&&o<=90||ee(e))return;let r=t.tag||"div";if(Je(r,e)||!_e(r,e))return;let s=Qe(e)||e,i=s.toLowerCase(),a=t.__ref&&t.__ref.__effects,c=!1;if(a)for(let f=0;f<a.length;f++){let d=a[f];d&&d._attrName===i&&!d._disposed&&typeof d._execute=="function"&&(c=!0,d._execute())}if(c)return;let l=t[e],u=Nn[e];if(u&&l!=null){let f=u(t);f!==void 0&&(l=f)}typeof l=="string"&&l.includes("{{")&&(l=Tt.call(t,l,t.state)),$n(n,s,l)}function UA(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{}y_(r),tn.delete(t),n.style.height="",r.appliedMax!=null&&n.style.maxHeight===r.appliedMax&&(n.style.maxHeight=""),S_(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){Nr(t,!0);return}if(!(n.scrollHeight>0)){r.awaitingLayout=!0,m_(t,r);return}r.awaitingLayout=!1;let i=HA(n),a=GA(i),c=n.style.height;n.style.height="0px",a&&xl(n);let l=n.scrollHeight;if(!(l>0)){n.style.height=c,a&&xl(n);return}let u=KA(n,i),f=u!=null&&l<u?u:l,d=ZA(i),p=d!=null&&f>d;n.style.height=YA(p?d:f,i)+"px",a&&xl(n),S_(n,r,p),r.lastMeasure=l,r.lastWidth=n.clientWidth,m_(t,r)}},o.__eventCleanup||(o.__eventCleanup=[]),o.__eventCleanup.push(()=>{try{n.removeEventListener("input",r.resize)}catch{}y_(r),tn.delete(t)})),r.active||(n.addEventListener("input",r.resize),r.active=!0,zA(t,r));let s=typeof e=="object"&&e.max!=null?String(e.max):null;s!==r.appliedMax&&(s==null?r.appliedMax!=null&&n.style.maxHeight===r.appliedMax&&(n.style.maxHeight=""):n.style.maxHeight=s,r.appliedMax=s),r.resize()}function Nr(t,e){let n=t.__ref?.__autoGrow;n&&(e&&(n.attachAttempts=0,n.firstAttemptAt=null),tn.add(t),$r())}function WA(){let t=Array.from(tn);tn.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=Oo()),r.attachAttempts+=1,r.attachAttempts<=O_&&Oo()-r.firstAttemptAt<E_&&(tn.add(n),$r());continue}r.attachAttempts=0,r.firstAttemptAt=null,r.resize()}}}function m_(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 s=()=>{if(!e.active||!n.isConnected||!(n.scrollHeight>0))return;if(e.awaitingLayout){e.awaitingLayout=!1,Nr(t,!0);return}let a=n.clientWidth;e.lastWidth!=null&&Math.abs(a-e.lastWidth)<.5||(e.lastWidth=a,Nr(t,!0))},i;try{i=new r(s),i.observe(n)}catch{return}e.watch=i}function y_(t){let e=t.watch;if(e){t.watch=null;try{e.disconnect()}catch{}}}function zA(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&&Nr(t,!0)},()=>{})}function HA(t){let e=t.ownerDocument&&t.ownerDocument.defaultView;try{return e&&e.getComputedStyle?e.getComputedStyle(t):null}catch{return null}}var Un=t=>typeof t=="string"&&/^\s*-?\d*\.?\d+px\s*$/.test(t)?parseFloat(t):null,Ul=t=>(Un(t.paddingTop)||0)+(Un(t.paddingBottom)||0),sm=t=>(Un(t.borderTopWidth)||0)+(Un(t.borderBottomWidth)||0);function GA(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 xl(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 KA(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=Un(e.lineHeight)||qA(t,e);return o>0?n*o+Ul(e):null}var Or=["fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontFamily","lineHeight","letterSpacing"],b_=new WeakMap;function qA(t,e){let n=t.ownerDocument,o=n&&(n.body||n.documentElement);if(!o||!n.createElement)return null;let r=b_.get(n);r||(r=new Map,b_.set(n,r));let s=Or.map(l=>e[l]||"").join("|");if(r.has(s))return r.get(s);let i=n.createElement("textarea");i.rows=1,i.setAttribute("aria-hidden","true"),i.tabIndex=-1;let a=i.style;a.position="absolute",a.visibility="hidden",a.top="0",a.left="-9999px",a.height="auto",a.minHeight="0",a.maxHeight="none",a.padding="0",a.border="0",a.boxSizing="content-box",a.overflow="hidden";for(let l=0;l<Or.length;l++)e[Or[l]]&&(a[Or[l]]=e[Or[l]]);let c=0;try{o.appendChild(i),c=i.clientHeight}catch{c=0}finally{i.parentNode&&i.parentNode.removeChild(i)}return c>0?(r.set(s,c),c):null}function YA(t,e){return e?e.boxSizing==="border-box"?t+sm(e):e.boxSizing==="content-box"?Math.max(0,t-Ul(e)):t:t}function ZA(t){if(!t)return null;let e=Un(t.maxHeight);if(e==null||!(e>0))return null;let n=Ul(t),o=sm(t),r=t.boxSizing==="border-box"?e-o:e+n,s=Un(t.lineHeight);if(!(s>0))return r;let i=Math.floor((r-n)/s+1e-6);return i>=1?i*s+n:r}function S_(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 x_=["srcObject","muted"],XA=(t,e)=>t==="muted"?e===!0||e===""||e==="true"||e==="muted":e??null;function QA(t){let e=t.node,n=t.__ref;if(!(!e||!n))for(let o=0;o<x_.length;o++){let r=x_[o],s=t[r];if(s===void 0||!(r in e))continue;let i=a=>{let c=XA(r,a);if(e[r]!==c)try{e[r]=c}catch(l){bt(n,r,l)}};if(typeof s=="function"){let a=it(t,t[r+"Deps"],s),c=N(()=>{try{i(a(t,t.state,t.context))}catch(l){bt(n,r,l)}},{depth:n.path.length,label:H(n,r)});n.__effects.push(c),n.__exec[r]=s}else i(s);r==="srcObject"&&(n.__releaseMedia=()=>{try{e.srcObject!=null&&(e.srcObject=null)}catch{}})}}function JA(t){if(!t.autoGrow)return;if(globalThis.__SMBLS_BUILD_DROP_F_autoGrow__)return jt("autoGrow",t);let e=t.node;if(!e||e.tagName!=="TEXTAREA")return;let n=t.__ref,o=t.autoGrow,r=typeof o=="function"?it(t,t.autoGrowDeps,o):null,s=N(()=>{let i=t.autoGrow,a=i;if(typeof i=="function")try{a=(i===o&&r?r:i)(t,t.state,t.context)}catch{a=null}UA(t,a)},{depth:n.path.length,label:H(n,"autoGrow")});n.__effects||(n.__effects=[]),n.__effects.push(s),r&&(n.__exec.autoGrow=o)}var im=new Set(["onSwipe","onSwipeLeft","onSwipeRight","onSwipeUp","onSwipeDown"]);function am(t,e){let n=!1;for(let o of Object.keys(t)){if(!ee(o)||im.has(o))continue;if(o==="onInView"||o==="onLeaveView"){n=!0;continue}let r=$c(o);if(r){Fc(r,t,t[o]);continue}let s=t[o],i=null;if(s&&typeof s=="object"&&!Array.isArray(s)&&(i=s,s=i.handler),s=Sr(t,s),typeof s!="function")continue;let a=ni(o);Rn.has(a)||Nc(FT(a),t,s,i)}tv(t),n&&V.viewEvents&&V.viewEvents(t)}function tv(t){let e=t.node;if(!e||!e.addEventListener)return;let n={},o=!1;for(let d of im){let p=t[d];typeof p=="function"&&(n[d]=p,o=!0)}if(!o)return;let r=typeof t.swipeThreshold=="number"?t.swipeThreshold:40,s=typeof t.swipeMaxDuration=="number"?t.swipeMaxDuration:600,i=0,a=0,c=0,l=!1,u=d=>{let p=d.touches&&d.touches[0]||d.changedTouches&&d.changedTouches[0];p&&(i=p.clientX,a=p.clientY,c=Date.now(),l=!0)},f=d=>{if(!l)return;l=!1;let p=d.changedTouches&&d.changedTouches[0]||d.touches&&d.touches[0];if(!p)return;let g=p.clientX-i,h=p.clientY-a,_=Date.now()-c;if(_>s)return;let m=Math.abs(g),b=Math.abs(h);if(Math.max(m,b)<r)return;let x;if(m>b*1.2)x=g<0?"left":"right";else if(b>m*1.2)x=h<0?"up":"down";else return;let D="onSwipe"+x.charAt(0).toUpperCase()+x.slice(1),y=n[D],S=n.onSwipe;y&&y.call(t,d,t,t.state,t.context),S&&S.call(t,{direction:x,dx:g,dy:h,dt:_,event:d},t,t.state,t.context)};e.addEventListener("touchstart",u,{passive:!0}),e.addEventListener("touchend",f,{passive:!0}),t.__ref.__eventCleanup||(t.__ref.__eventCleanup=[]),t.__ref.__eventCleanup.push(()=>{try{e.removeEventListener("touchstart",u)}catch{}try{e.removeEventListener("touchend",f)}catch{}})}function Wl(t,e,n,o,r,s,i,a){let c=e;(typeof c=="string"||typeof c=="number")&&(c={text:c});let l=o;if(typeof o=="function")try{l=o(t,c)}catch{l=null}let u=typeof o=="function"?Lr(l):r;if(a&&!i&&(u=Pr(u,Lr(e))),i){let f=e;(typeof e=="string"||typeof e=="number")&&(f={value:e,text:e}),c=l?{...l,state:f}:{state:f}}else l&&(c=Wt(l,c));return c=Vr(c,s),{def:c,key:I_(c?.key,e,n,t),supplied:u,props:l}}function Vr(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 Ve=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},cm=(t,e)=>e?e.nextSibling:Cr(t.node,t.__ref.__textNode),Ti=(t,e,n)=>{let o=cm(t,n);return e!==o&&t.node.insertBefore(e,o),e},Ur=(t,e)=>{let n=cm(t,e);return n?{position:"before",node:n}:void 0};function zl(t,e,n){let o=null;for(let r=0;r<e.length;r++){if(n&&n.has(e[r]))continue;let s=Ve(t[e[r]]);s&&(o=Ti(t,s,o))}}function w_(t,e,n,o){let r=V.rows,s=r!==null&&t.childrenAs!=="state"&&t.tag!=="fragment"?r.track(t):null,i=Hl(t,e,n,o,!0,s);return t.__ref.__plainRows=s&&(i||e==null||e===!1)?s:null,i}function Hl(t,e,n,o,r,s){if(!e||!t.node)return;let i=t.childExtends,a=en(t,"childProps"),c=t.__ref,l=V.mount,u=o>0&&t.tag!=="fragment"&&c?o:0;if(Array.isArray(e)){let f=t.childProps,d=t.childrenAs==="state",p=(g,h)=>{let _=Wl(t,e[g],g,f,a,i,d,r);s&&s.add(_.key,e[g],_,f,i);try{let m=zt(jn(_.def,_.supplied),t,_.key,n,h);return!m&&s&&s.none(_.key),mi(t,m),m}catch(m){if(s&&s.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):`,m?.message||m)}return null}};if(!u){for(let g=0;g<e.length&&!(c&&c.__disposed);g++)p(g);return!0}return l.rows(t,e.length,p,u),!0}if(typeof e=="string"){let f=B_(e,t);if(Array.isArray(f))return Hl(t,f,n,o,!0,s)}if(typeof e=="object"){let f=(p,g)=>{if(xt.has(p))return!1;let h=e[p];if(h==null||h===!1)return!1;let _=r?Pr(a,Lr(h)):a;(typeof h=="string"||typeof h=="number")&&(h={text:h}),t.childProps&&(h=Wt(t.childProps,h)),h=Vr(h,i);let m=zt(jn(h,_),t,xi(t,p),n,g);return mi(t,m),m};if(!u){for(let p in e)f(p);return}let d=[];for(let p in e)d.push(p);l.rows(t,d.length,(p,g)=>f(d[p],g),u)}}function vo(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,s=r&&r.__exec&&r.__exec.value,i=typeof s=="function",a=t.value!=null&&typeof t.value!="function";if(i||a){let u;if(i)try{u=s(t,t.state,t.context)}catch{return}else u=t.value,typeof u=="string"&&u.includes("{{")&&(u=Tt.call(t,u,t.state));let f=u==null?"":String(u);n.value!==f&&(n.value=f);return}let c=e||!(r&&r.__selectSynced);if(r&&(r.__selectSynced=!0),!c)return;let l=-1;for(let u=0;u<o.length;u++)o[u].defaultSelected&&(l=u);l>=0&&n.selectedIndex!==l&&(n.selectedIndex=l)}function lm(t,e){let{children:n,content:o}=t,r=t.childExtends,s=typeof n=="function",i=s||$_(t,"children");if(typeof n=="function"){let f=n,d=t.__ref,p=!1,g,h=it(t,t.childrenDeps,f),_=N(()=>{let m=p;p=!0;let b;try{b=h(t,t.state,t.context)}catch(R){if(typeof console<"u"&&console.error){let O=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] \`children:\` factory threw at ${O}${m?"":" (initial run, treating as empty)"}:`,R?.message||R)}return}if(!m){g=b;return}if(b===t.children)return;t_(t,b),t.children=b,d.__mount&&d.__mount.chunkGen++;let x=typeof t.onContentUpdate=="function",D=x?[]:null,y=x?[]:null,S=x?[]:null;if(Array.isArray(b)&&t.childrenAs==="state"){let R=t.childProps,O=[],$=new Map;for(let q=0;q<b.length;q++){let mt=b[q],et=R;if(typeof R=="function")try{et=R(t,mt)}catch{et=null}let wt=I_(et&&et.key,mt,q,t);O.push(wt),$.set(wt,{rawChild:mt,childProps:et})}let B=new Set(O),P=qg(d,d.__children.slice());for(let q of P)if(!B.has(q)){let mt=t[q];mt?.remove&&mt.remove(),delete t[q],y&&y.push(q)}let Gt=t.childExtends,Kt=!(t.tag==="fragment")&&!!t.node,He=null,ye=new Set;for(let q of O){let mt=$.get(q),et=mt.rawChild,wt=t[q];if(wt&&wt.state){if(et&&typeof et=="object"){let Q=wt.state,pt=Q.$replace||Q.replace,kt=Q.$update||Q.update;try{if(typeof pt=="function")pt.call(Q,et);else if(typeof kt=="function"){for(let ft in Q)if(!(ft==="__element"||ft==="root"||ft==="parent"||ft==="update")&&!Object.prototype.hasOwnProperty.call(et,ft))try{Q[ft]=void 0}catch{}kt.call(Q,et)}else for(let ft in et)Q[ft]=et[ft]}catch(ft){if(typeof console<"u"&&console.error){let be=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] child "${q}" failed to patch at ${be} (reconcile, keeping its previous data for this pass):`,ft?.message||ft)}}}if(S&&S.push(q),Kt){let Q=Ve(wt);Q&&(He=Ti(t,Q,He))}continue}let Z=et;(typeof et=="string"||typeof et=="number")&&(Z={value:et,text:et});let lt=mt.childProps,M=Vr(lt?{...lt,state:Z}:{state:Z},Gt),X=typeof R=="function"?Lr(lt):en(t,"childProps"),cn;try{cn=zt(jn(M,X),t,q,e,Kt?Ur(t,He):void 0)}catch(Q){if(typeof console<"u"&&console.error){let pt=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] child "${q}" failed to construct at ${pt} (reconcile, skipping this row):`,Q?.message||Q)}ye.add(q);continue}if(d.__disposed)return;if(Kt){let Q=Ve(cn);Q&&(He=Q)}D&&D.push(q)}Kt&&zl(t,O,ye.size?ye:null),d.__children=ye.size?O.filter(q=>!ye.has(q)):O,x&&(D.length||y.length)&&gi(t,{added:D,removed:y,kept:S}),vo(t,!1);return}if(t.childrenAs!=="state"&&d.__plainRows&&V.rows.reconcile(t,d,b,e,x)){vo(t,!1);return}let v=x?[...d.__children]:null;for(let R of qg(d,[...d.__children])){let O=t[R];O?.remove&&O.remove(),delete t[R]}d.__children=[],w_(t,b,e,0),vo(t,!1),x&&gi(t,{added:[...d.__children],removed:v,kept:[]})},{depth:d.path.length,label:H(d,"children")});d.__effects.push(_),n=g,t_(t,n),t.children=n}let a=V.mount,c=a!==null?a.budgetOf(t,e):0,l=Tr(t.__ref),u=s?w_(t,n,e,c):Hl(t,n,e,c,i);if(c&&Tr(t.__ref)>l){a.defer(t,c,()=>k_(t,e,n,o,r,u,c));return}k_(t,e,n,o,r,u,c)}function k_(t,e,n,o,r,s,i){let a=Tr(t.__ref);if(o!=null&&!(o&&o.__ref)){let c=o;typeof c=="string"||typeof c=="number"?c={text:c}:typeof c!="object"&&(c={}),t.childProps&&(c=Wt(t.childProps,c)),c=Vr(c,r);let l=Pr(en(t,"childProps"),en(t,"content"));mi(t,zt(jn(c,l),t,"content",e))}if(!(n&&!s)){if(i&&Tr(t.__ref)>a){V.mount.defer(t,i,()=>C_(t,e,r,i));return}C_(t,e,r,i)}}function C_(t,e,n,o){let r=t.context?.components||{},s=t.__ref&&t.__ref.__runtimeSource,i=s?{}:null;{let l=Object.keys(t);for(let u=0;u<l.length;u++){let f=l[u];if(!f.endsWith("Extends")||typeof t[f]!="string")continue;let d=f.slice(0,-7);if(!d||d.charCodeAt(0)<65||d.charCodeAt(0)>90)continue;let p={extends:t[f]};delete t[f];for(let g=u+1;g<l.length;g++){let h=l[g],_=h.charCodeAt(0);if(_>=65&&_<=90||xt.has(h)||typeof t[h]=="function"&&(h.startsWith("on")||h.startsWith(".")))break;let m=t[h];m!==void 0&&(p[h]=m,delete t[h],i&&Ir(s,h)&&(i[d]||(i[d]={}),i[d][h]=s[h]))}t[d]&&typeof t[d]=="object"?t[d]={...p,...t[d]}:t[d]=p}}let a=Object.keys(t),c=l=>{if(xt.has(l)||typeof t[l]!="object"||t[l]===null)return!1;let u=l.charCodeAt(0);if(u<65||u>90)return!1;let f=t[l];if(f.__ref)return!1;if(!f.extends&&!f.extend){let p=r[l]||r[`smbls.${l}`];p&&(f={...f,extends:p})}t.childProps&&(f=Wt(t.childProps,f)),f=Vr(f,n);let d=s?Pr(en(t,"childProps"),Pr(i[l]||null,en(t,l))):null;mi(t,zt(jn(f,d),t,l,e))};if(!o){for(let l of a)c(l);return}V.mount.run(t,a.length,l=>c(a[l]),o)}function Eo(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 c=r.parentNode;if(c){if(n?.position==="before"&&n.node)c.insertBefore(o,n.node);else if(n?.position==="after"&&n.node){let l=n.node.nextSibling;c.insertBefore(o,l||r)}else c.insertBefore(o,r);ei();return}}let s=e?.node||(e?.nodeType?e:null);if(!s)return;if(!n&&V.hydration!==null){let c=t.context&&t.context.__hydration;if(c&&V.hydration.place(c,t,e,s,o))return}let i=n?.node,a=o.parentNode===s;if(i&&i.parentNode!==s)(!a||o.nextSibling)&&s.appendChild(o);else if(n?.position==="before"&&i)i!==o&&(!a||o.nextSibling!==i)&&s.insertBefore(o,i);else if(n?.position==="after"&&n.node){let c=n.node.nextSibling;c===o||(c?s.insertBefore(o,c):s.appendChild(o))}else(!a||o.nextSibling)&&s.appendChild(o);ei()}var Si=3;function Ai(t){return!t||t.__inBeforeUpdate||(t.__beforeUpdateFailCount||0)>=Si?!1:(t.__inBeforeUpdate=!0,!0)}function Re(t,e){t&&(t.__inBeforeUpdate=!1,e?(t.__beforeUpdateFailCount=(t.__beforeUpdateFailCount||0)+1,t.__beforeUpdateFailCount===Si&&typeof console<"u"&&console.error&&console.error(`[DOMQL] onBeforeUpdate failed ${Si}x in a row on this element \u2014 pausing automatic retries until a future prop/state change re-arms it.`)):t.__beforeUpdateFailCount=0)}function _t(t,e,n){let o=t.charAt(0).toLowerCase()+t.slice(1);Oe(o,e,n);let r="on"+t,s=e[r];if(typeof s=="function"){let c=t==="Render"?"__inRender":t==="RenderRouter"?"__inRenderRouter":null;if(c){if(e.__ref[c])return!0;e.__ref[c]=!0}let l=e.context?.designSystem;l&&dt(l);let u=!!c;try{let f=s(e,e.state,e.context,n);if(f&&typeof f.then=="function"){let d=e.__ref;return f.catch(p=>{re(e,r,p)}).finally(()=>{c&&d&&(d[c]=!1)}),u=!1,!0}if(f===!1)return!1}catch(f){if(re(e,r,f),e.context?.strictMode)throw f}finally{l&&ot(),u&&e.__ref&&(e.__ref[c]=!1)}}return!0}function rl(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"&&Ai(o))try{let a=n.onBeforeUpdate(n,n.state,n.context,e);if(a&&typeof a.then=="function")a.then(()=>Re(o,!1),c=>{Re(o,!0),Oe("error",n,{hook:"onBeforeUpdate",error:c})||console.error("[DOMQL] onBeforeUpdate error:",c)});else if(Re(o,!1),a===!1)return n}catch(a){throw Re(o,!0),a}let r=!t||Object.keys(t).length===0,s=[],i=!1;Fu(()=>{if(t.state&&J(n.state)&&n.state.$update(t.state),t.text!==void 0&&(n.text=t.text,!o.__exec.text&&n.node&&Vn(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=Fn(n,t.style);for(let c in a){let l=a[c];if(l==null)continue;let u=Fe(c),f=String(l).replace(/\s*!important\s*$/,"");n.node.style.setProperty(u,f,"important")}}n.style||(n.style={}),Object.assign(n.style,t.style)}if(t.attr&&n.node?.setAttribute){for(let a in t.attr){let c=t.attr[a];$n(n.node,a,c)}n.attr||(n.attr={}),Object.assign(n.attr,t.attr)}if(t.data&&n.node?.dataset){for(let a in t.data)n.node.dataset[a]=t.data[a];n.data||(n.data={}),Object.assign(n.data,t.data)}if(t.vars&&typeof t.vars=="object"&&!Array.isArray(t.vars)){let a=n.vars&&typeof n.vars=="object"&&!Array.isArray(n.vars)?n.vars:null;n.vars={...a,...t.vars},i=!0}for(let a in t){if(xt.has(a)||a==="state")continue;let c=t[a],l=n[a];if(l&&l.__ref&&typeof l.update=="function")l.update(c,e);else if(typeof c=="object"&&c!==null){let u=a.charCodeAt(0);u>=65&&u<=90&&zt(c,n,a,e)}else a!=="text"&&a!=="html"&&a!=="style"&&a!=="attr"&&a!=="data"&&(n[a]=c,typeof c!="function"&&s.push(a))}});for(let a=0;a<s.length;a++)Vl(n,s[a]);if(n.node){let a=i;for(let c=0;!a&&c<s.length;c++)Fl(s[c])&&(a=!0);a&&jl(n)}if(n.node&&r&&o.__effects&&o.__effects.length)for(let a=0;a<o.__effects.length;a++){let c=o.__effects[a];c&&!c._disposed&&!c._isSubscribeToEffect&&typeof c._execute=="function"&&c._execute()}else if(n.node&&o.__conditionalRunners)for(let a of o.__conditionalRunners)a();return Oe("update",n),!e.preventListeners&&typeof n.onUpdate=="function"&&n.onUpdate(n,n.state,n.context,e),n}var Gl=Symbol("handlerChain.none"),ev=new Set(["inView","leaveView"]),nv=new Set(["bridgeMount","bridgeUpdate","bridgeDestroy"]),Do=new WeakMap,fm=new WeakMap,Zl=!1,Kl=t=>t!==null&&typeof t=="object"&&t.always===!0;function ov(t){let e=ni(t);return ev.has(e)?!0:Rn.has(e)&&!nv.has(e)}var um=new Set;function rv(t){um.has(t)||!(!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&j())||(um.add(t),console.warn(`[smbls] \`${t}: { always: true, \u2026 }\` \u2014 \`always\` composes the lifecycle hooks (onInit, onRender, onCreate, onMounted, onUpdate, onRemove, \u2026; not the bridge hooks) and onInView / onLeaveView only. \`${t}\` keeps the default merge: an extender's own \`${t}\` replaces this one. Run the shared step from a lifecycle hook, or call it from the extender's handler.`))}function ql(t){return t&&typeof t=="object"?{handler:t.handler,options:t}:{handler:t,options:null}}function Wr(t,e){let n={always:t,own:e,list:e?t.concat(e):t,next:null,prims:null,cleared:null},o=function(...s){return av(n,this,s)};return Do.set(o,n),Zl=!0,o}function Yl(t){let e=fm.get(t);return e||(e=Wr([ql(t)],null),fm.set(t,e)),e}function sv(t,e){let n=Do.get(t);if(e==null||e===!1)return n.own?n.cleared||(n.cleared=Wr(n.always,null)):t;if(typeof e!="object"&&typeof e!="function"){let i=n.prims||(n.prims=new Map),a=i.get(e);return a||i.set(e,a=Wr(n.always,ql(e))),a}let o=n.next||(n.next=new WeakMap),r=o.get(e);if(r)return r;let s=Kl(e)?Do.get(Yl(e)):typeof e=="function"?Do.get(e):void 0;return r=s?Wr(n.always.concat(s.always),s.own):Wr(n.always,ql(e)),o.set(e,r),r}function iv(t,e,n){let o=Kl(e),r=!o&&Zl&&typeof e=="function"&&Do.has(e);if(!o&&!r&&!Kl(n))return Gl;if(!ov(t))return rv(t),Gl;let s=o?Yl(e):r?e:null;return s?sv(s,n):Yl(n)}function dm(t,e,n,o){if(!ee(e))return!1;let r=iv(e,n,o);return r===Gl?!1:(t[e]=r,!0)}function Xl(t){if(typeof t=="function"){let e=Zl?Do.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 av(t,e,n){let o=t.list,r,s=!1,i=null,a=!1,c;for(let l=0;l<o.length;l++){let u=o[l].handler;if(typeof u!="function")continue;let f;try{f=u.apply(e,n)}catch(d){a?console.error("[smbls] lifecycle handler error:",d):(a=!0,c=d);continue}f===!1?s=!0:f&&typeof f.then=="function"&&(i||(i=[])).push(f),r=f}if(a){if(i)for(let l of i)l.then(null,u=>console.error("[smbls] lifecycle handler error:",u));throw c}return s?!1:i?i.length===1?i[0]:cv(i):r}function cv(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 lv=1e-6,pm=new WeakMap;function fv(t,e,n){let o=t.defaultView,r=o&&o.IntersectionObserver;if(typeof r!="function")return null;let s=pm.get(t);s||pm.set(t,s=new Map);let i=e+"|"+n,a=s.get(i);if(a)return a;a={id:i,byKey:s,threshold:e,targets:new Map,observer:null};try{let c=n?{threshold:e,rootMargin:n}:{threshold:e};a.observer=new r(l=>uv(a,l),c)}catch{return null}return s.set(i,a),a}function uv(t,e){for(let n=0;n<e.length;n++){let o=e[n],r=t.targets.get(o.target);if(!r)continue;let s=!!o.isIntersecting&&o.intersectionRatio>=t.threshold-lv;if(s===r.inView)continue;r.inView=s;let i=s?"in":"leave",a=r.subs.slice();for(let c=0;c<a.length;c++){let l=a[c];if(!(l.kind!==i||l.dead)){l.once&&gm(t,r,l);try{l.run(o)}catch(u){dv(u)}}}}}function dv(t){typeof globalThis.reportError=="function"?globalThis.reportError(t):queueMicrotask(()=>{throw t})}function gm(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 hm(t,e,n,o,r){let s=Sr(t,r.handler),i=r.options;if(typeof s!="function")return;let a=i&&i.threshold,c=typeof a=="number"&&a>=0&&a<=1?a:0,l=i&&typeof i.rootMargin=="string"?i.rootMargin.trim():"",u=fv(n,c,l);if(!u)return;let f=u.targets.get(e);f||(f={node:e,inView:!1,subs:[]},u.targets.set(e,f),u.observer.observe(e));let d={kind:o,once:!!(i&&i.once===!0),run:oi(t,s),dead:!1};f.subs.push(d);let p=t.__ref;p.__eventCleanup||(p.__eventCleanup=[]),p.__eventCleanup.push(()=>gm(u,f,d))}function _m(t){if(globalThis.__SMBLS_BUILD_DROP_F_viewEvents__)return jt("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=Xl(t.onInView);for(let i=0;i<r.length;i++)hm(t,e,n,"in",r[i]);let s=Xl(t.onLeaveView);for(let i=0;i<s.length;i++)hm(t,e,n,"leave",s[i])}var zr=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),Sm=1e3,xm=24,Ql=Object.freeze({}),ef=Object.freeze({}),Io=0,vi=t=>{if(J(t)||zr(t,"__ref"))return!1;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null};function Jl(t,e,n){if(t===null||typeof t!="object")return t;if(--Io<0||e>xm){Io=-1;return}if(Array.isArray(t)){let r=new Array(t.length);for(let s=0;s<t.length;s++)r[s]=n?t[s]:Jl(t[s],e+1,!1);return r}if(n||!vi(t))return t;let o={};for(let r in t)zr(t,r)&&(o[r]=Jl(t[r],e+1,r==="extends"||r==="childExtends"));return o}function mm(t){Io=Sm;let e;try{e=Jl(t,0,!1)}catch{return Ql}return Io<0?Ql:e}function tf(t,e,n,o){if(t===e)return!0;if(t===null||typeof t!="object"||e===null||typeof e!="object"||--Io<0||n>xm)return!1;if(Array.isArray(t)){if(!Array.isArray(e)||e.length!==t.length)return!1;for(let s=0;s<t.length;s++)if(o?t[s]!==e[s]:!tf(t[s],e[s],n+1,!1))return!1;return!0}if(o||Array.isArray(e)||!vi(t)||!vi(e))return!1;let r=0;for(let s in t)if(zr(t,s)&&(r++,!zr(e,s)||!tf(t[s],e[s],n+1,s==="extends"||s==="childExtends")))return!1;for(let s in e)zr(e,s)&&r--;return r===0}function ym(t,e){if(e===Ql||e===ef)return!1;Io=Sm;try{return tf(t,e,0,!1)}catch{return!1}}var Oi=t=>fe()?Mt(()=>mm(t)):mm(t),bm=(t,e)=>fe()?Mt(()=>ym(t,e)):ym(t,e);function wm(t,e,n,o){let r=t;return r&&typeof r=="object"&&!Array.isArray(r)&&!vi(r)&&(o||n&&!r.ignoreChildExtends)&&(r=o?Wt({},r):{...r}),typeof e=="function"?{item:r,props:o}:r}var km=t=>({childProps:typeof t.childProps=="function"?void 0:t.childProps,childExtends:t.childExtends}),Ei=class{constructor(e,n){this.shared=e,this.rows=n}add(e,n,o,r,s){this.rows.set(e,Oi(wm(n,r,s,o.props)))}failed(e){this.rows.set(e,ef)}none(e){this.rows.delete(e)}},pv=Object.freeze([]);function hv(t,e,n,o,r){let s=e.__plainRows.rows,i=e.__plainRows.shared,a=km(t),c=bm(a,i),l=t.childProps,u=en(t,"childProps"),f=t.childExtends,d=new Array(n.length),p=new Map;for(let w=0;w<n.length;w++){let k=Wl(t,n[w],w,l,u,f,!1,!0);if(p.has(k.key))return!1;p.set(k.key,k),d[w]=k}for(let w=0;w<d.length;w++){let k=d[w];k.input=wm(n[w],l,f,k.props);let v=c?s.get(k.key):void 0;if(v===void 0)continue;let R=t[k.key];R&&R.__ref&&R.parent===t&&bm(k.input,v)&&(k.kept=!0,k.snap=v)}let g=r?[]:null;for(let w of s.keys()){let k=p.get(w);if(k&&k.kept)continue;let v=t[w];v?.remove&&v.remove(),delete t[w],g&&g.push(w)}let h=r?[]:null,_=r?[]:null,m=new Map,b=null,x=null;for(let w=0;w<d.length;w++){let k=d[w];if(k.kept){m.set(k.key,k.snap),_&&_.push(k.key);let O=Ve(t[k.key]);O&&(x=Ti(t,O,x));continue}m.set(k.key,Oi(k.input));let v;try{v=zt(jn(k.def,k.supplied),t,k.key,o,Ur(t,x))}catch(O){if(m.set(k.key,ef),b||(b=new Set),b.add(k.key),typeof console<"u"&&console.error){let $=e.path?.join(".")||t.key||"<root>";console.error(`[smbls] child "${k.key}" failed to construct at ${$} (re-run, skipping this row):`,O?.message||O)}continue}if(e.__disposed)return!0;if(!v){m.delete(k.key);continue}let R=Ve(v);R&&(x=R),h&&h.push(k.key)}e.__plainRows=new Ei(c?i:Oi(a),m);let D=Array.from(m.keys());zl(t,D,b);let y=new Set(e.__children),S=[];for(let w=0;w<D.length;w++)y.has(D[w])&&S.push(D[w]);for(let w of e.__children)m.has(w)||S.push(w);return e.__children=S,r&&(h.length||g.length)&&gi(t,{added:h,removed:g,kept:_}),!0}var Cm={track:t=>new Ei(Oi(km(t)),new Map),reconcile(t,e,n,o,r){let s=Array.isArray(n)?n:n==null||n===!1?pv:null;return!!s&&hv(t,e,s,o,r)}};var nf=t=>{let e=t.__ref;if(e&&e.__hydrationPath!==void 0)return e.__hydrationPath;let n=t.parent,o=n&&n.__ref?nf(n):null,r=o===null?"":o?o+"."+t.key:String(t.key);return e&&(e.__hydrationPath=r),r},gv=new Set(["src","srcset"]),_v=new Set(["class","style","id","data-br"]),mv=new Set(["sizes","loading","fetchpriority","decoding","crossorigin","referrerpolicy","width","height"]),yv=new Set(["sizes","media","type","width","height"]),bv=t=>t==="img"?mv:t==="source"?yv:null,Sv=t=>t.charCodeAt(0)===97&&t.startsWith("aria-")||t.charCodeAt(0)===100&&t.startsWith("data-")&&t!=="data-br"&&t!=="data-key",Tm=(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))}},xv=(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 s=new Map;o=t.built={nodes:s,observer:null},o.observer=new r(i=>Tm(o,i))}return o.nodes.set(e,new Set(n)),o.observer.observe(e,{attributes:!0,attributeFilter:n}),!0};function Am(t){let e=t&&t.built;if(!e)return 0;t.built=null,Tm(e,e.observer.takeRecords()),e.observer.disconnect();let n=0;for(let[o,r]of e.nodes)for(let s of r)o.hasAttribute(s)&&(o.removeAttribute(s),n++);return e.nodes.clear(),n}function vm(t){let e=t?.context?.__hydration;if(!e)return null;let n=t.tag=Mn(t);if(n==="string"||n==="fragment")return null;let o=nf(t),r=e.registry[o===""?"__root":o],s=r!==void 0?e.nodes[r]:null;if(!s||s.nodeType!==1||e.claimed.has(s))return r!==void 0&&e.misses++,null;let i=bo(n)&&(n==="svg"||t.parent?.node?.namespaceURI===Pn),a=bo(n)&&!i&&n!=="svg"?"div":n,c=i?s.namespaceURI===Pn:s.namespaceURI!==Pn;if(s.localName!==a||!c)return e.misses++,null;e.claimed.add(s),e.adopted++;let l=e.pending;if(l&&l.delete(s)){let p=s.parentNode,g=p?(e.pendingIn.get(p)||1)-1:0;g>0?e.pendingIn.set(p,g):p&&e.pendingIn.delete(p)}let u=null,f=null,d=bv(s.localName);for(let p of Array.from(s.getAttributeNames?s.getAttributeNames():[]))gv.has(p)||p==="data-key"||(_v.has(p)||(f||(f=new Map)).set(p,s.getAttribute(p)),!(d&&d.has(p))&&(Sv(p)?(u||(u=[])).push(p):s.removeAttribute(p)));if(u&&!xv(e,s,u))for(let p of u)s.removeAttribute(p);if(f&&t.__ref&&(t.__ref.__builtAttrs={node:s,values:f}),l){let p=0,g=0,h=s.firstChild,_=t.text!=null&&h&&h.nodeType===3&&!l.has(h)?h:null;_&&t.__ref&&(t.__ref.__builtText=_);for(let m=s.firstChild;m;){let b=m.nextSibling;m!==_&&!l.has(m)&&(m.nodeType===3?p++:m.nodeType!==8&&g++,s.removeChild(m)),m=b}(g||p>(t.text!=null&&!_?1:0))&&(e.whole||(e.whole=new Set)).add(t)}else for(;s.firstChild;)s.removeChild(s.firstChild);return s.localName==="img"&&s.complete&&s.naturalWidth>0&&kv(s),s}var wv=500;function kv(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),wv)}},0)}function Cv(t,e,n,o,r){if(r.parentNode===o&&t.claimed.has(r))return!0;let s=t.pendingIn;if(!s||!s.has(o))return!1;let i,a=n&&n.__ref,c=a&&a.__children,l=c?c.lastIndexOf(e.key):-1;for(let u=l-1;u>=0;u--){let f=n[c[u]],d=f&&f.node;if(d&&d!==r&&d.parentNode===o){i=d.nextSibling;break}}return i===void 0&&(i=Cr(o,a&&a.__textNode)),i===r||o.insertBefore(r,i),!0}function Tv(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 Av(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 vv(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 Om={adopt:vm,place:Cv,whole:Tv,settle:Am,handBack:Av,settleHandBack:vv};var Mo=50;function Bo(t){return t===!0?Mo:typeof t=="number"&&t>0?t:0}var me=[],Po=!1,on=0,Ue=Mo,Kr=!1,Di=[],Ii=typeof performance<"u"&&typeof performance.now=="function"?()=>performance.now():()=>Date.now(),Ri=[],Hr=null;function Ov(t){if(!Hr){let e=new MessageChannel;e.port1.onmessage=()=>{let n=Ri.shift();!Ri.length&&typeof e.port1.unref=="function"&&e.port1.unref(),n&&n()},Hr=e}Ri.push(t),Ri.length===1&&typeof Hr.port1.ref=="function"&&Hr.port1.ref(),Hr.port2.postMessage(0)}function af(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"){Ov(t);return}setTimeout(t,0)}function Ev(){return new Promise(t=>af(t))}var Gr=0,rf=0,sf=0,Lo=0;function cf(){Gr=0,rf=on,sf=0,Lo=0}function Em(){if(!on)return!1;if(Gr++,Lo>0)return Lo--,!1;let t=Ii(),e=t-on,n=e/Gr,o=(t-rf)/(Gr-sf),r=o>n?o:n;rf=t,sf=Gr;let s=Ue-e-r;return s<=0?(Kr=!0,!0):(Lo=r>0?Math.floor(s/r/2):0,!1)}var Wn=0;function Rm(t=Mo){Wn===0&&!on?(on=Ii(),Kr=!1,Ue=t,cf()):t<Ue&&(Ue=t,Lo=0),Wn++}var Ht=null,of=!1,Rv=typeof queueMicrotask=="function"?queueMicrotask:t=>Promise.resolve().then(t);function lf(){on=0,Kr=!1,Ue=Mo,cf()}function Dv(){of||(of=!0,Rv(()=>{of=!1,Wn===0&&lf()}))}function Dm(){Wn>0&&Wn--,!(Wn!==0||Ht!==null)&&(Po?Dv():lf())}function ff(t,e=Mo,n=null){let o={fn:t,budget:e,lease:n};Ht?Ht.push(o):me.push(o),Po||(Po=!0,af(Lm))}function uf(t){let e=t&&t.context;return e&&e.__mountLease||null}function Im(t){if(!t)return;let e=0;for(let n=0;n<me.length;n++){let o=me[n];o.lease!==t&&(me[e++]=o)}if(me.length=e,Ht){let n=0;for(let o=0;o<Ht.length;o++)Ht[o].lease!==t&&(Ht[n++]=Ht[o]);Ht.length=n}typeof t.lost=="function"&&t.lost()}function Iv(t){if(t.lease!==null&&!t.lease.live()){Im(t.lease);return}let e=Ht;Ht=[];try{t.fn()}catch(n){typeof console<"u"&&console.error&&console.error("[smbls] deferred mount chunk failed:",n?.message||n)}finally{let n=Ht;Ht=e,n.length&&me.unshift(...n)}}function Li(){return!Po&&!me.length?Promise.resolve():new Promise(t=>Di.push(t))}function df(){return!Po&&!me.length}function Lv(){if(!Di.length)return;let t=Di;Di=[];for(let e=0;e<t.length;e++)t[e]()}function Lm(){for(on=Ii(),Kr=!1,Ue=1/0,cf();me.length;){let t=me.shift();if(t.budget<Ue&&(Ue=t.budget,Lo=0),Iv(t),Kr||Ii()-on>=Ue)break}if(Wn=0,lf(),me.length){af(Lm);return}Po=!1,Lv()}function Pi(t){So(t.__ref).pending++}function ie(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 pf(t){let e=t&&t.__ref&&t.__ref.__mount;return!!(e&&e.tail)}function hf(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 gf(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 Pm(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,gf(t,e),o&&ie(o)}function Pv(t,e){let n=e&&e.mountYield;if(!n&&!t.yieldChildren)return 0;let o=V.hydration!==null&&t.context?t.context.__hydration:null;if(o&&V.hydration.whole(o,t))return 0;let r=n?Bo(n):0,s=Bo(t.yieldChildren);return r&&s?r<s?r:s:r||s}function Mm(t,e,n,o,r){Rm(o);try{Bm(t,t.__ref,0,e,n,o,r,!1)}finally{Dm()}}function Bm(t,e,n,o,r,s,i,a){try{for(let c=n;c<o;c++){let l=e.__mount,u=l?l.pending:0;if(r(c)===!1)continue;if(e.__disposed)break;let f=Em(),d=e.__mount;if(c+1<o&&(f||(d?d.pending:0)>u)){i&&i.onSuspend&&i.onSuspend(),a||Pi(t);let p=c+1;ff(()=>Mv(t,e,p,o,r,s,i),s,uf(t));return}}}catch(c){if(!a)throw c;wi(t,c)}a&&ie(t)}function Mv(t,e,n,o,r,s,i){if(e.__disposed||i&&i.isStale&&i.isStale()){ie(t);return}Bm(t,e,n,o,r,s,i,!0)}function Bv(t,e,n){Pi(t),ff(()=>{try{let o=t.__ref;o&&!o.__disposed&&n()}catch(o){wi(t,o)}finally{ie(t)}},e,uf(t))}function Nv(t,e,n,o){let r=t.__ref,s=So(r),i=++s.chunkGen,a=t.node,c=[],l=!1;Mm(t,e,u=>{let f=n(u,l?Ur(t,$v(a,c)):void 0),d=Nm(f);return d?c.push(d):f&&f.__ref.__mount&&f.__ref.__mount.held&&c.push(f),f},o,{isStale:()=>s.chunkGen!==i,onSuspend:()=>{l=!0}})}function Nm(t){let e=Ve(t);if(e)return e;let n=t&&t.__ref;return n&&n.__if!==!1&&t.tag==="fragment"&&n.__fragmentAnchor||null}function $v(t,e){for(let n=e.length-1;n>=0;n--){let o=e[n].__ref?Nm(e[n]):e[n];if(o&&o.parentNode===t)return o}return null}function Fv(t,e){let n=t.__ref;try{vo(t,!0),L_(t),Rl(t,e)}finally{gf(t,n);let o=n.__mount,r=o&&o.holder;r&&(o.holder=null,ie(r))}}var $m={budgetOf:Pv,run:Mm,rows:Nv,defer:Bv,hold:Pi,finish:Fv,abandon:Pm};function Fm(){V.viewEvents=_m,V.chains=dm,V.rows=Cm,V.hydration=globalThis.__SMBLS_BUILD_DROP_F_prerender__?null:Om,V.mount=$m}Fm();var zn="inertOutside",Vv=new Set(["SCRIPT","STYLE","LINK","META","TEMPLATE","NOSCRIPT","BASE","TITLE"]),Uv='a[href], button, input:not([type="hidden"]), select, textarea, summary, [tabindex], [contenteditable]:not([contenteditable="false"])',Wv={attributes:!0,attributeFilter:["inert"]},jm=new WeakMap,Vm=new WeakMap,qr=new Set,Um=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);function rn(t){try{return Mt(t)}catch(e){console.error("[smbls] inertOutside:",e)}}function Wm(t){let e=()=>rn(t);typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e)}function zv(t){if(!t||!t.defaultView||!("activeElement"in t))return null;let e=jm.get(t);if(e)return e;let n=t.defaultView.MutationObserver||globalThis.MutationObserver;return typeof n!="function"?null:(e={doc:t,layers:[],held:new Map,top:null,observer:null},e.observer=new n(o=>rn(()=>Mi(e,o))),jm.set(t,e),e)}function _f(t,e){let n=t.element.node;return!!n&&n.nodeType===1&&n.isConnected&&n.ownerDocument===e}function Hv(t){let e=t.activeElement;return e&&e!==t.body&&e!==t.documentElement?e:null}var zm=t=>!!(t.closest&&t.closest("[inert]"));function Gv(t){let e=t.ownerDocument,n=new Set,o=[];for(let r=t;r!==e.body;r=r.parentNode){let s=r.parentNode;if(!s||s.nodeType!==1||s===e.documentElement)break;o.push(s);for(let i=s.firstElementChild;i;i=i.nextElementSibling)i!==r&&!Vv.has(i.tagName)&&n.add(i)}return{outside:n,parents:o}}function Hm(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 Mi(t,e){let{doc:n,held:o,observer:r}=t;e&&Hm(t,e),Hm(t,r.takeRecords());let s=t.top,i=[];for(let f of t.layers){let d=_f(f,n);d&&!f.live&&(i.push(f),f.returnFocus=Hv(n)),f.live=d}i.length&&(t.layers=t.layers.filter(f=>!i.includes(f)).concat(i));let a=null;for(let f=t.layers.length-1;f>=0&&!a;f--)t.layers[f].live&&(a=t.layers[f]);t.top=a;let{outside:c,parents:l}=a?Gv(a.element.node):{outside:new Set,parents:[]};for(let[f,d]of o)c.has(f)||(d&&f.removeAttribute("inert"),o.delete(f));for(let f of c)o.has(f)||o.set(f,!1),f.hasAttribute("inert")||(f.setAttribute("inert",""),o.set(f,!0));r.takeRecords(),r.disconnect();for(let f of l)r.observe(f,{childList:!0});for(let f of o.keys())r.observe(f,Wv);t.layers.some(f=>!f.live)?qr.add(t):qr.delete(t);for(let f of t.layers)!f.live&&!f.connecting&&!yo(f.element)&&(f.connecting=!0,In(f.element,()=>rn(()=>{f.connecting=!1,f.declared&&!f.live&&_f(f,t.doc)&&Mi(t)})));if(a===s)return;let u=s&&!(s.declared&&s.live)?s:null;if(a&&i.includes(a))u&&u.returnFocus&&(a.returnFocus=u.returnFocus),Wm(()=>Km(t,a));else if(u){let f=u.returnFocus;Wm(()=>Kv(t,u,f))}u&&(u.returnFocus=null)}function Km(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 s=new Set,i=(a,c)=>{if(s.has(a)||(s.add(a),a.matches(":disabled")))return!1;let l=c&&a.getAttribute("tabindex");return l&&parseInt(l,10)<0?!1:(a.focus(),o.activeElement===a)};for(let a of n.querySelectorAll("[autofocus]"))if(i(a,!1))return;for(let a of n.querySelectorAll(Uv))if(i(a,!0))return;r&&r!==o.body&&typeof r.blur=="function"&&r.blur()}function Kv(t,e,n){if(e.declared&&e.live)return;let o=t.doc,r=o.activeElement,s=e.element.node;(!r||r===o.body||s&&s.contains(r)||zm(r))&&(n&&n.isConnected&&n.ownerDocument===o&&!zm(n)&&(n.focus({preventScroll:!0}),o.activeElement===n)||t.top&&Km(t,t.top))}function mf(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)}Mi(n)}function qm(t){let e=t[zn];if(typeof e=="function")try{e=e(t,t.state,t.context)}catch{e=!1}return!!e}function Gm(t){let e=Vm.get(t);if(e)return e;let n=t.__ref,o=t.node;if(!n||!o||o.nodeType!==1)return null;let r=zv(o.ownerDocument);if(!r)return null;e={element:t,manager:r,declared:!1,live:!1,connecting:!1,returnFocus:null},Vm.set(t,e);let s=N(()=>{let i=qm(t);rn(()=>mf(e,i))},{depth:n.path.length,label:()=>n.path.join(".")+"::"+zn});return n.__effects||(n.__effects=[]),n.__effects.push(s),n.__eventCleanup||(n.__eventCleanup=[]),n.__eventCleanup.push(()=>rn(()=>mf(e,!1))),e}function qv(){for(let t of qr){if(!t.doc.defaultView){qr.delete(t);continue}t.layers.some(e=>!e.live&&_f(e,t.doc))&&Mi(t)}}var Yv={name:zn,create(t){if(Um(t,zn)){if(globalThis.__SMBLS_BUILD_DROP_F_inertOutside__)return jt(zn,t);rn(()=>Gm(t))}},render(){globalThis.__SMBLS_BUILD_DROP_F_inertOutside__||qr.size&&rn(qv)},update(t){if(Um(t,zn)){if(globalThis.__SMBLS_BUILD_DROP_F_inertOutside__)return jt(zn,t);rn(()=>{let e=Gm(t);e&&mf(e,qm(t))})}}};var FO=/*@__PURE__*/__smblsNs({},{default:()=>$O,getActiveRoute:()=>Wy,lastLevel:()=>$f,lastPathname:()=>ts,loadLazy:()=>Ay,matchRoute:()=>Fy,parseQuery:()=>Vy,parseRoutePattern:()=>Bf,resolveRouterElement:()=>Uy,router:()=>Gn,runGuards:()=>TO,saveScrollPosition:()=>fy});var yf="__smblsRouter",bf=new WeakMap,Xv=0,Sf=()=>Date.now().toString(36)+(++Xv).toString(36)+Math.random().toString(36).slice(2,6),xf=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},We=t=>{try{return t.state}catch{return}},Zr=t=>{try{let{pathname:e,search:n,hash:o}=t.location;return e+n+o}catch{return null}},Qm=t=>{if(!t||typeof t!="object"||Array.isArray(t))return!1;let e=Object.getPrototypeOf(t);return e===null||Object.getPrototypeOf(e)===null},Jm=t=>{let e=Qm(t)?t[yf]:null;return e&&typeof e.key=="string"&&typeof e.chain=="string"&&Number.isInteger(e.index)?e:null},wf=(t,e)=>t==null?{[yf]:e}:Qm(t)?{...t,[yf]:e}:null,kf=()=>({key:Sf(),index:0,chain:Sf()}),No=(t,e)=>{let n=Jm(e);return{key:n?n.key:null,index:n?n.index:null,chain:n?n.chain:null,url:Zr(t),state:e}},ty=(t,e)=>{let n=Jm(t);return e.key?!!n&&n.key===e.key:!n&&t===e.state},Yr=(t,e,n)=>!!n&&Zr(t)===n.url&&ty(e,n),Cf=(t,e,n)=>({...t,url:e,state:n}),Tf=(t,e)=>{let n=We(e),o=No(t,n);if(o.key)return o;let r=kf(),s=wf(n,r);if(!s)return o;try{e.replaceState(s,null)}catch{return o}return Cf(r,o.url,s)},Qv=(t,e)=>{let n=bf.get(t);return!n&&e&&(n={current:null,pending:null,expect:null,seq:0,pops:new WeakMap,positions:null,scrollNode:null,restore:null},bf.set(t,n)),n||null},ey="smbls.router.scroll",Ym=100,Jv=1e3,Zm=["wheel","touchstart","keydown","pointerdown"],ny=t=>{try{return t.sessionStorage||null}catch{return null}},oy=t=>{try{let e=JSON.parse(t.getItem(ey)||"[]");return Array.isArray(e)?e.filter(n=>Array.isArray(n)&&typeof n[0]=="string"):[]}catch{return[]}},ry=(t,e)=>{if(!t.positions){t.positions=new Map;let n=ny(e);if(n)for(let[o,r]of oy(n))r&&Number.isFinite(r.top)&&Number.isFinite(r.left)&&t.positions.set(o,{top:r.top,left:r.left})}return t.positions},Af=(t,e,n,o)=>{let r=ry(t,e);r.delete(n),r.set(n,{top:Math.round(Number(o.scrollTop)||0),left:Math.round(Number(o.scrollLeft)||0)}),r.size>Ym&&r.delete(r.keys().next().value);let s=ny(e);if(s)try{let i=new Map(oy(s));for(let[a,c]of r)i.delete(a),i.set(a,c);s.setItem(ey,JSON.stringify(Array.from(i).slice(-Ym)))}catch{}},Xm=(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)},tO=(t,e,n,o,r,s,i)=>{n.restore&&n.restore.end("replaced"),n.restore=o;let a=typeof i=="number"&&i>=0?i:Jv,c=()=>Math.max(0,(Number(r.scrollHeight)||0)-(Number(r.clientHeight)||0)),l=(h,_)=>{typeof r.scrollTo=="function"?r.scrollTo({top:h,left:_,behavior:"instant"}):(r.scrollTop=h,r.scrollLeft=_)},u=typeof t.addEventListener=="function",f=()=>o.end("visitor");if(o.end=h=>{if(!o.outcome&&(o.outcome=h,u))for(let _ of Zm)t.removeEventListener(_,f,!0)},c()>=s.top-1)return l(s.top,s.left),o.end("placed");Number(r.scrollTop)>0&&l(0,0);let d=Number(r.scrollTop)||0,p=Date.now();if(u)for(let h of Zm)t.addEventListener(h,f,{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=c()>=s.top-1;if(!h&&Date.now()-p<a)return Xm(t,e,g);l(Math.min(s.top,c()),s.left),o.end(h?"placed":"clamped")};Xm(t,e,g)},eO=(t,e)=>{let{win:n,history:o,track:r}=t,s=r.pops.get(e);if(s)return s;let i=No(n,We(o)),a=r.expect;r.expect=null;let c;if(a&&i.key===a.key&&i.url===a.url)c={echo:!0};else{let l=r.current,u=!!(i.key&&l&&l.key===i.key),f=u?null:l;f&&f.key&&t.scrollNode&&Af(r,n,f.key,t.scrollNode),c={to:i,from:f,stay:u,seq:r.seq,settled:!1,committed:!1},r.pending=c}return r.pops.set(e,c),c},nO=t=>{let{win:e,history:n,track:o}=t,r=We(n);if(o.pending&&Yr(e,r,o.pending.to)||o.expect&&Yr(e,r,o.expect.away))return;let s=o.current;if(s&&(s.key?ty(r,s):Yr(e,r,s))){s.url=Zr(e),s.state=r;return}o.current=t.restore?Tf(e,n):No(e,r),o.pending=null,o.seq++},sy=(t,e,n)=>{let o=e.scrollRestoration==="restore",r=xf(t),s=o||Array.isArray(e.guards)&&e.guards.length>0,i=r&&Qv(r,s);if(!i)return null;let a={win:t,history:r,track:i,restore:o,scrollNode:o&&n?n:null,pop:null};a.scrollNode&&(i.scrollNode=a.scrollNode);let c=e.event;return c&&c.type==="popstate"?a.pop=eO(a,c):nO(a),a},Bi=(t,e)=>{e.settled=!0,t.pending===e&&(t.pending=null)},vf=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 Bi(r,e),r.seq!==e.seq||!Yr(n,We(o),e.to)?!1:(r.current=t.restore&&!e.to.key?Tf(n,o):e.to,r.seq++,e.committed=!0,!0)},iy=t=>{let e=t&&t.pop;e&&!e.echo&&!e.settled&&Bi(t.track,e)},oO=(t,e,n)=>{try{t.addEventListener("popstate",()=>{e.expect===n&&(e.expect=null)},{once:!0})}catch{}},Of=(t,e)=>{let n=t&&t.pop;if(!n||n.echo||n.settled)return;let{win:o,history:r,track:s}=t;Bi(s,n);let i=n.from;if(!i||s.seq!==n.seq||!Yr(o,We(r),n.to))return;let a=n.to;if(!e&&i.key&&a.key&&i.chain===a.chain&&i.index!==a.index){let u=s.expect={key:i.key,url:i.url,away:a};oO(o,s,u);try{r.go(i.index-a.index)}catch{s.expect=null}return}let c=kf(),l=wf(i.state,c);try{r.replaceState(l||i.state,null,i.url)}catch{return}s.current=l?Cf(c,i.url,l):No(o,We(r)),s.seq++},ay=(t,e)=>{let n=Zr(e);t&&n!==null&&(t.__routerAddress=n)},Ef=(t,e,n)=>{let o=t&&t.pop;if(o&&!o.echo&&o.from)return Of(t,!0);o&&!o.settled&&Bi(t.track,o);let r=xf(n),s=e&&e.__routerAddress;if(!(!r||!s||s===Zr(n)))try{r.replaceState(We(r),null,s)}catch{}},cy=(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:s,track:i}=t,a=i.current;!o&&a&&a.key&&t.scrollNode&&Af(i,r,a.key,t.scrollNode);let c=o?No(r,We(s)):Tf(r,s),l=c.key?o?{key:c.key,index:c.index,chain:c.chain}:{key:Sf(),index:c.index+1,chain:c.chain}:kf(),u=wf(e,l);try{o?s.replaceState(u||e,null,n):s.pushState(u||e,null,n)}catch{return}i.current=u?Cf(l,n,u):No(r,We(s)),i.pending=null,i.expect=null,i.seq++},ly=(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:s,track:i}=t,a=i.current,c=a&&a.key&&ry(i,s).get(a.key);if(!c)return!1;let l=i.restore;return!!l&&l.key===a.key&&(r?l.pop===r:!l.pop&&l.seq===i.seq)&&l.outcome==="visitor"||tO(s,o,i,{key:a.key,pop:r,seq:i.seq,outcome:null},e,c,n.scrollRestoreTimeout),!0},fy=t=>{let e=xf(t),n=e&&bf.get(e);!n||!n.scrollNode||!n.current||!n.current.key||Af(n,t,n.current.key,n.scrollNode)};var hy=["components","functions","methods","snippets"],gy=new Set(["pages",...hy]),Rf=new Set(["default","__esModule"]),sn=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),at=t=>!!t&&typeof t=="object"&&!Array.isArray(t),Ni=new WeakMap,uy=new WeakMap,Df=new WeakMap,dy=new Set,Hn=(t,e=console.warn)=>{dy.has(t)||(dy.add(t),e(t))},_y=t=>at(t&&t.lazy),my=(t,e)=>{let n=t&&t.lazy;return at(n)&&sn(n,e)?n[e]:void 0},Qr=(t,e)=>{let n=my(t,e);return at(n)&&sn(n,"load")?n.load:n},rO=(t,e)=>{let n=my(t,e);return at(n)&&typeof n.when=="function"?n.when:null},sO=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},If=(t,e)=>{let n=Ni.get(t);n||(Ni.set(t,n=new Map),t.__teardowns=t.__teardowns||[],t.__teardowns.push(()=>{for(let r of n.values())r.disposed=!0,r.waiting.clear();Ni.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},yy=(t,e)=>!_y(e)||!at(t)||!sn(t,"lazy")?null:typeof t.lazy=="string"&&t.lazy?t.lazy:null,Fi=t=>!globalThis.__SMBLS_BUILD_DROP_F_lazyRoutes__&&!!t&&typeof t=="object"&&Df.has(t),by=(t,e)=>(t&&t.lazy&&typeof t.lazy=="object"&&jt("lazyRoutes",e),null),Sy=t=>t&&(t.status==="error"||t.status==="reload"||t.status==="waiting")?t.status:"loading",iO=(t,e)=>typeof Qr(t,e)!="function"?"error":Sy(Ni.get(t)?.get(e)),aO=(t,e)=>{let n=uy.get(t);if(n&&n.group===e)return n;let{lazy:o,state:r,...s}=t,i=r==null||at(r)||typeof r=="function";i?s.state=(c,l)=>{let u=typeof r=="function"?r(c,l):r;return{...at(u)?u:null,lazyStatus:iO(c.context,e)}}:(s.state=r,!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&j()&&Hn(`[smbls/router] the placeholder of lazy group "${e}" binds its state to a path (${JSON.stringify(r)}), so it gets no \`lazyStatus\` \u2014 give it its own state object to show a load failure.`));let a={definition:s,group:e,hasStatus:i};return uy.set(t,a),Df.set(s,a),a},cO=t=>t.__ref&&t.__ref.contentElementKey||"content",Xr=(t,e)=>{let n=t&&t.__ref&&t.__ref.__routerRendered,o=n&&Fi(n.content)?Df.get(n.content):null;return!o||o.group!==e?null:{record:o,page:t[cO(t)]}},$i=(t,e,n)=>{let o=Xr(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(s){console.error(`[smbls/router] lazy group "${e}": could not show the "${n}" status on its placeholder`,s)}},lO=t=>at(t)?!Object.keys(t).some(n=>gy.has(n))&&at(t.default)?t.default:t:{},fO=t=>{let e={};if(!at(t))return e;for(let n of Object.keys(t)){if(Rf.has(n))continue;let o=n.charCodeAt(0)===47,r=o?n:"/"+(n==="index"?"":n);(o||!sn(e,r))&&(e[r]=t[n])}return e},xy=(t,e,n,o,r)=>{if(!at(t))return 0;let s=0;for(let i of Object.keys(t))yy(t[i],o)===e&&(s++,sn(n,i)?t[i]=n[i]:delete t[i]);for(let i of Object.keys(n))sn(t,i)?t[i]!==n[i]&&r.push(`pages['${i}']`):t[i]=n[i];return s},py=(t,e,n)=>{let o=t[e];if(!at(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}},uO=t=>{let e=t.__ref&&t.__ref.origin;if(!at(e))return[];let n=[].concat(e.extends||[],e.extend||[]);if(n.length)return n.filter(s=>typeof s=="string").map(s=>(s.includes(">")?s.split(">")[0]:s).trim());let o=t.key;if(typeof o!="string"||!/^[A-Z]/.test(o))return[];let r=[o.indexOf("_"),o.indexOf(".")].filter(s=>s>0);return[r.length?o.slice(0,Math.min(...r)):o]},dO=(t,e,n,o)=>{let r=new Set;for(let i of o.waiting){let a=Xr(i,e);a&&a.page&&r.add(a.page)}let s=i=>{let a=i&&i.__ref&&i.__ref.__children;if(Array.isArray(a))for(let c of a){let l=i[c];if(!(!l||!l.__ref||r.has(l)||!l.node)){for(let u of uO(l)){if(!n.has(u))continue;let f=(l.__ref.path||[l.key]).join(" \u203A ");Hn(`[smbls/router] lazy group "${e}": ${f} was built before the group loaded, so it renders without "${u}". A built element never takes a later registration \u2014 build it after el.call('loadLazy', '${e}') resolves (an \`if:\` gate does that), or keep "${u}" out of the group.`)}s(l)}}};s(t)},pO=(t,e,n,o)=>{let r=t.context,s=lO(n),i=!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&j(),a=[],c=new Set;if(i)for(let p of Object.keys(s))gy.has(p)||Rf.has(p)||Hn(`[smbls/router] lazy group "${e}" exports \`${p}\`, which a lazy group cannot add \u2014 it adds pages, components, functions, methods and snippets only. Declare the rest with the app.`);let l=!1;for(let p of hy){let g=s[p];if(!at(g))continue;let h=at(r[p])?r[p]:{},_={};for(let b of Object.keys(g))if(!Rf.has(b)){if(sn(h,b)){h[b]!==g[b]&&a.push(`${p}.${b}`);continue}_[b]=g[b]}let m=Object.keys(_);if(m.length&&(py(r,p,_),p==="components"&&m.forEach(b=>c.add(b)),p==="methods"&&(l=!0),(p==="functions"||p==="snippets")&&at(r.utils))){let b={};for(let x of m)sn(r.utils,x)||(b[x]=_[x]);Object.keys(b).length&&py(r,"utils",b)}}l&&al(r);let u=fO(s.pages);o.pages=u;let f=null;try{f=typeof t.getRoot=="function"?t.getRoot():null}catch{}let d=new Set;at(r.pages)&&d.add(r.pages),f&&at(f.routes)&&d.add(f.routes);for(let p of o.maps)d.add(p);for(let p of o.waiting)at(p.routes)&&d.add(p.routes);for(let p of d)xy(p,e,u,r,a);i&&a.length&&Hn(`[smbls/router] lazy group "${e}" redefines ${a.join(", ")}, which the app already has \u2014 the app's own value stays. Rename them: frank refuses the same collision at \`smbls push\`.`),i&&c.size&&f&&dO(f,e,c,o)},wy=(t,e)=>{let n=t&&t.__ref,o=n&&n.__lazyRoute;if(!o||o.group!==e||(n.__lazyRoute=null,typeof t.set!="function")||!Xr(t,e))return;let r=()=>o.rerender({pushState:!1,replace:!1,scrollToTop:!1,guards:[],lazy:{group:e,status:"loaded"}});Promise.resolve().then(r).catch(s=>console.error(`[smbls/router] lazy group "${e}" loaded, but its route failed to render`,s))},Jr=t=>!!t&&(typeof t=="object"||typeof t=="function")&&typeof t.then=="function",hO=(t,e,n)=>!!t&&(Jr(e)&&e===t.returned||!!n&&typeof n=="object"&&n===t.error),ky=(t,e)=>{let n=t.context,o=If(n,e);if(o.status==="loading"||o.status==="loaded")return o.promise;let r=Qr(n,e),s=rO(n,e),i=o.failure;o.status="loading";let a,c=!1,l=!1,u=()=>s?s(t):!0,f=p=>{if(p===!1)throw l=!0,sO(e);return a=r(o.attempts++)},d=Promise.resolve().then(u).then(f).then(p=>{c=!0,o.disposed||pO(t,e,p,o)}).then(()=>{o.status="loaded",o.failure=null;let p=[...o.waiting];o.waiting.clear();for(let g of p)wy(g,e)},p=>{if(l){if(o.status="waiting",o.promise=null,o.disposed)throw p;for(let h of[...o.waiting])Xr(h,e)?$i(h,e,"waiting"):o.waiting.delete(h);throw p}let g=!c&&hO(i,a,p);if(o.failure=c?null:{returned:a,error:p},o.status=g?"reload":"error",o.promise=null,o.disposed)throw p;g?Hn(`[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])Xr(h,e)?$i(h,e,o.status):o.waiting.delete(h);throw p});d.catch(()=>{}),o.promise=d;for(let p of o.waiting)$i(p,e,"loading");return d},Cy=(t,e,n)=>{let o=e&&e.context;if(globalThis.__SMBLS_BUILD_DROP_F_lazyRoutes__)return by(o,e);let r=yy(t,o);if(!r)return null;let s=If(o,r);if(at(n)&&s.maps.add(n),s.status==="loaded"&&xy(n,r,s.pages||{},o,[])>0)return{rematch:!0};let i=typeof Qr(o,r)=="function";return i?ky(e,r):Hn(`[smbls/router] a route names lazy group "${r}", which context.lazy does not declare as a loader (\`lazy: { ${r}: () => import('./\u2026') }\`) \u2014 it shows its placeholder in the error state.`,console.error),{content:aO(t,r).definition,group:r,status:i?"loading":"error"}},Ty=(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 Qr(o,e.group)!="function")return;let s=If(o,e.group);if(r.__lazyRoute={group:e.group,rerender:n},$i(t,e.group,Sy(s)),s.status==="loaded"){let i=()=>wy(t,e.group);Promise.resolve().then(i);return}s.waiting.add(t)};function Ay(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(by(n,e));let o=Qr(n,t);return typeof o!="function"?(o===void 0&&_y(n)&&!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&j()&&Hn(`[smbls/router] loadLazy('${t}'): context.lazy declares no group "${t}" \u2014 nothing to load.`),Promise.resolve()):ky(e,t)}var gO=(t,e,n)=>({...t.context&&t.context.domqlOptions,...e.mountOptions,contentElementKey:n}),vy=(t,e,n)=>{let o=n.mountOptions;if(!o)return;let r=e.context&&e.context.domqlOptions;for(let s in o)t[s]=r&&s in r?r[s]:void 0},Py=t=>{let e=Bo;return typeof e=="function"?e(t.mountYield)>0:t.mountYield===!0},_O=t=>{let e=t&&t.context&&t.context.__hydration;return!!e&&e.adopted>0},mO=t=>{let e=pf;return typeof e!="function"||!e(t)?null:hf(t)},Mf=Object.freeze({holdTail:!0}),yO=t=>typeof t.holdPage=="function"&&typeof ie=="function",My=(t,e)=>{let n=()=>ie(t);Jr(e)?e.then(n,n):n()},bO=(t,e)=>{let n=null;try{n=t.holdPage(e)}catch{}My(e,n)},By=Object.freeze({holdTail:!0,deferAttach:!0}),SO=(t,e,n,o)=>{let r=t.firstView;if(!r||typeof ie!="function"||typeof Fr!="function")return null;if(!r.committed)return Mf;if(!Py(o))return null;let s=e.node;return!e[n]&&s&&s.isConnected?By:(o.mountYield=void 0,null)},xO=async()=>{await Li();let t=df;if(typeof t=="function")for(;!t();)await Li()},wO=(t,e,n,o)=>{if(e===Mf){t.firstView.page=n,My(n,t.firstView.commit);return}e===By&&xO().then(()=>{n.__ref&&o()&&Fr(n),ie(n)})},Ny=/^:(.+)/,$y=/^\*$/,Oy=new Map,Bf=t=>{let e=Oy.get(t);if(e)return e;let n=t.replace(/^\//,"").split("/"),o=[],r=!1;for(let i=0;i<n.length;i++){let a=n[i].match(Ny);a?o.push({index:i,name:a[1]}):$y.test(n[i])&&(r=!0)}let s={segments:n,params:o,hasWildcard:r,pattern:t};return Oy.set(t,s),s},Fy=(t,e,n=0)=>{let r=t.replace(/^\//,"").split("/").filter(Boolean).slice(n),s="/"+(r[0]||"");if(!e)return{key:null,content:null,params:{},routePath:s};let i=null,a=-1,c={};for(let l in e){if(l==="/*")continue;let u=Bf(l),f=kO(r,u);f>a&&(a=f,i=l,c=jy(r,u))}return!i&&e["/*"]&&(i="/*"),{key:i,content:i?e[i]:null,params:c,routePath:s}},kO=(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,s=Math.min(n.length,t.length);for(let i=0;i<s;i++)if(n[i]===t[i])r+=3;else if(Ny.test(n[i]))r+=1;else if($y.test(n[i]))r+=.5;else return-1;return r},jy=(t,e)=>{let n={};for(let{index:o,name:r}of e.params)t[o]&&(n[r]=decodeURIComponent(t[o]));return n},Vy=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},Pf=t=>!!t&&typeof t=="object"&&typeof t.route=="string",Ey=t=>t===!1||typeof t=="string"||Pf(t)?t:void 0,CO=10,Nf=(t,e,n=0)=>{for(let o=n;o<t.length;o++){let r=t[o](e);if(Jr(r))return Promise.resolve(r).then(i=>{let a=Ey(i);return a===void 0?Nf(t,e,o+1):a});let s=Ey(r);if(s!==void 0)return s}return!0},TO=async(t,e)=>!t||!t.length?!0:Nf(t,e),Ry=(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 s=e.replace(/^\//,"").split("/").filter(Boolean).slice(o||0);return{route:t,content:r,params:t==="/*"?{}:jy(s,Bf(t))}},Uy=(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},AO=(t,e)=>{let n=e.customRouterElement;if(!n||!t.__ref||t.__ref.root!==t)return t;let o=Uy(t,n);return!o||o===t?t:(t.routes&&(o.routes=t.routes),o)},Wy=(t=0,e)=>{e||(e=typeof un<"u"?un.location.pathname:"/");let o=e.split("/")[t+1];if(o)return`/${o}`},ts,$f=0,Dy=0,Lf=t=>!t||t==="srcdoc"||t==="about:srcdoc"?"/":t,vO=t=>t&&(t.scrollingElement||t.documentElement)||null,zy={level:$f,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},Hy=(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},Gy=t=>{let e=t.__routeExit;e&&(t.__routeExit=null,e.abort())},OO=(t,e,n,o,r,s,i)=>{let a=e.__routeExit;if(a&&a.page===n)return a.wait;if(Gy(e),!n||!n.node||typeof t.onRouteExit>"u"||!Hy(s,i))return null;let c=typeof r=="number"&&r>=0?r:zy.exitTimeout,l=typeof AbortController=="function"?new AbortController:null,u={...o,page:n,timeout:c,signal:l?l.signal:void 0},f;try{f=oo("routeExit",t,u)}catch{return null}if(!f||typeof f.then!="function")return null;let d={page:n,abort:()=>{l&&!l.signal.aborted&&l.abort()}};return d.wait=new Promise(p=>{let g=setTimeout(()=>{d.abort(),p()},c),h=()=>{clearTimeout(g),p()};f.then(h,h)}),e.__routeExit=d,d.wait},es=new WeakMap,EO=t=>t===!0?{}:t&&typeof t=="object"&&!Array.isArray(t)?t:null,RO=(t,e,n,o)=>{let r=EO(t.transition);return!r||!e||Fi(e.content)||!n||typeof n.startViewTransition!="function"||es.get(n)>0||!Hy(n,o)?null:r},DO=t=>{let e=t.__routeTransition;if(!(!e||e.updating))try{e.transition.skipTransition()}catch{}},IO=t=>{let e=typeof t.types=="string"?[t.types]:t.types;return Array.isArray(e)?e.filter(n=>typeof n=="string"&&n):[]},LO=t=>{try{let e=t&&t.ViewTransition;return!!e&&"types"in e.prototype}catch{return!1}},PO=100,MO=1e3,Iy=(t,e)=>t===!1?1/0:typeof t=="number"&&t>=0?t:e,Ly=t=>{let e=t&&t.performance;return e&&typeof e.now=="function"?e.now():Date.now()},BO=t=>{t&&typeof t.then=="function"&&t.then(null,()=>{})},NO=(t,e,n,o,r,s,i)=>{let a=t.node,c=a&&a.style,l=typeof n.name=="string"&&n.name?n.name:null,u=e.__routeTransition,f={transition:null,updating:!1,name:l,previousName:u&&u.name&&c?u.previousName:c&&c.viewTransitionName||""},d=()=>{if(e.__routerNavSeq===s){f.updating=!0,f.swapStarted=Ly(r),es.set(o,(es.get(o)||0)+1);try{return i()}finally{es.set(o,es.get(o)-1),f.updating=!1}}},p=()=>{l&&c&&c.viewTransitionName===l&&(c.viewTransitionName=f.previousName)};l&&c&&(c.viewTransitionName=l);let g=IO(n),h=null;try{h=g.length&&LO(r)?o.startViewTransition({update:d,types:g}):o.startViewTransition(d)}catch{}if(!h)return p(),null;f.transition=h,e.__routeTransition=f,BO(h.ready);let _=!1,m=null,b=()=>{_=!0,m!==null&&(r.clearTimeout(m),m=null),e.__routeTransition===f&&(e.__routeTransition=null,p())},x=()=>{if(!(_||e.__routeTransition!==f))try{h.skipTransition()}catch{}};h.finished&&typeof h.finished.then=="function"?h.finished.then(b,b):b();let D=Iy(n.swapBudget,PO),y=Iy(n.timeout,MO);y!==1/0&&h.ready&&typeof h.ready.then=="function"&&r&&typeof r.setTimeout=="function"&&h.ready.then(()=>{_||(m=r.setTimeout(()=>{m=null,x()},y))},()=>{});let S=h.updateCallbackDone;return!S||typeof S.then!="function"?Promise.resolve():(D!==1/0&&S.then(()=>{f.swapStarted!==void 0&&Ly(r)-f.swapStarted>D&&x()},()=>{}),S)},Gn=async(t,e,n={},o={})=>{let r=e||void 0,s=r?.context?.window||un,i=r?.context?.document||qt,a={...zy,...r.context.routerOptions,...o};$f=a.lastLevel,r=AO(r,a);let c=!(o&&o.render===!1),l=r.__ref;(a.contentElementKey!=="content"&&a.contentElementKey!==l.contentElementKey||!l.contentElementKey)&&(l.contentElementKey=a.contentElementKey||"content");let u=l.contentElementKey||a.contentElementKey||"content",f=s.location.origin!=="null"?s.location.origin:"http://localhost";t=Lf(t);let d=typeof s.URL=="function"?s.URL:typeof globalThis<"u"&&globalThis.URL||URL,p=new d(f+t),{pathname:g,search:h,hash:_}=p,m=Vy(h),b=r.node,x=_&&_!==s.location.hash.slice(1),D=g!==ts,y=ts,S=++Dy;ts=g;let w=()=>{Dy===S&&(ts=y)},k=l.__routerRendered,v,R,O,$;if(a.useParamsMatching){let M=Fy(g,r.routes,a.level);v=M.key,R=M.routePath,O=M.content,$=M.params}else{v=Wy(a.level,g),R=v;let M=r.routes;O=M?M[v||"/"]||M["/*"]:null,$={}}if(o&&o.route!=null){let M=Ry(o.route,g,r.routes,a.level);!M&&!a.silent&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("[smbls/router] route",o.route,"chosen for",g,"is not one of the routes:",Object.keys(r.routes||{}))),v=M?M.route:o.route,O=M?M.content:null,$=M?M.params:{}}a.scrollNode===void 0&&(a.scrollNode=vO(i));let B=a.scrollToNode?b:a.scrollNode;if(r.state?.root?.debugging){r.state.root.debugging=!1;return}let P=sy(s,a,B);if(P&&P.pop&&P.pop.echo)return;if(!O){w(),a.onNotFound?a.onNotFound({pathname:g,route:v,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"&&Ef(P,l,s));return}let Gt=o&&o.lazy?l.__routerStartSeq:l.__routerStartSeq=(l.__routerStartSeq||0)+1;if(a.guards&&a.guards.length){let M={pathname:g,route:v,params:$,query:m,hash:_,element:r,state:n},X=Nf(a.guards,M);if(Jr(X)&&(X=await X,l.__routerStartSeq!==Gt)){w(),iy(P);return}if(X===!1){w(),Of(P);return}let cn=pt=>{let kt=new d(f+Lf(pt));return kt.pathname===g&&kt.search===h&&kt.hash===_},Q=typeof X=="string"?X:Pf(X)&&typeof X.path=="string"&&!cn(X.path)?X.path:null;if(Pf(X)&&Q===null){let pt=Ry(X.route,g,r.routes,a.level);if(!pt){a.silent||globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("[smbls/router] a guard chose route",X.route,"for",g,"\u2014 not one of the routes:",Object.keys(r.routes||{})),w(),a.onNotFound?a.onNotFound({pathname:g,route:X.route,element:r}):a.event&&a.event.type==="popstate"&&Ef(P,l,s);return}v=pt.route,O=pt.content,$=pt.params,o={...o,route:pt.route}}else if(Q!==null){let pt=!!(P&&P.pop);if(pt&&!vf(P))return;let kt=[...o&&o.__redirectChain||[],g],ft=new d(f+Lf(Q)).pathname,be=kt.includes(ft)||kt.length>=CO;be&&!a.silent&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("[smbls/router] redirect loop:",[...kt,ft].join(" \u2192 "),"\u2014 rendering",ft,"without its guards"));let Ct={...o,__redirectChain:kt};return be&&(Ct.guards=[]),typeof X=="string"?delete Ct.route:Ct.route=X.route,pt&&(Ct.event=void 0),delete Ct.render,(pt||a.initialRender)&&(Ct.pushState=!0,Ct.replace=!0),Gn(Q,e,n,Ct)}}let ct=c?Cy(O,r,r.routes):null;if(ct&&ct.rematch)return Gn(t,r,n,o);ct&&(O=ct.content,a.lazy={group:ct.group,status:ct.status});let Kt=l.__routerNavSeq=(l.__routerNavSeq||0)+1,He=!k||k.content!==O||k.route!==v,ye=!!k&&k.content===O,mt=!(!c||a.keepSamePage===!0&&ye&&a.force!==!0)&&(D||He||a.force===!0);if(mt&&k&&!Fi(k.content)){let M=OO(r,l,r[u],{from:k.route,to:v,pathname:g,params:$,query:m,hash:_},a.exitTimeout,i,s);if(M&&(await M,l.__routerNavSeq!==Kt||(l.__routeExit&&l.__routeExit.wait===M&&(l.__routeExit=null),typeof r?.set!="function")))return}else Gy(l);let et=mt?RO(a,k,i,s):null;if(mt&&DO(l),a.pushState){let M=g+(h||"")+(_||"");cy(P,n,M,a.replace,s)}else P&&vf(P);ay(l,s);let wt=gO(r,a,u),Z=()=>{let M=mt?SO(a,r,u,wt):null,X=(!!k||Py(wt))&&!!B&&B.scrollTop===0&&!B.scrollLeft,cn=!k&&!!a.initialRender&&!!B&&_O(r)&&(Number(B.scrollTop)>0||Number(B.scrollLeft)>0),pt=D||!x?{route:v,routePath:R,hash:_,params:$,query:m,debugging:!1}:{params:$,query:m};a.updateState&&r.state.update(pt,{preventContentUpdate:!0});let kt=null;if(mt){u&&a.removeOldElement&&r[u].remove();let be=r.__ref?.origin?.content,Ct={};if(be)for(let Dt in be){let Ft=be[Dt];Dt==="__ref"||Dt==="props"||Dt==="node"||Dt==="parent"||Dt==="key"||(typeof Ft=="string"||typeof Ft=="number"||typeof Ft=="boolean"||typeof Ft=="object"&&Ft!==null&&!Ft.node&&!Ft.__ref)&&(Ct[Dt]=Ft)}let Ge={...Ct,...typeof O=="object"?O:{extends:O}};a.useFragment&&(Ge.tag="fragment");let Uo={content:O,route:v},ia=l.__routerRendered;try{if(typeof r?.set!="function")return;l.__routerRendered=Uo;let Dt=!M&&yO(a),Ft=r.set(Ge,wt,M||(Dt?Mf:void 0));Ft&&M?wO(a,M,Ft,()=>l.__routerNavSeq===Kt):Ft&&Dt&&bO(a,Ft),kt=mO(r[u])}catch(Dt){l.__routerRendered===Uo&&(l.__routerRendered=ia),console.error("[smbls/router] failed to render route content",g,Dt)}}else ye&&k.route!==v&&l.__routerRendered===k&&(l.__routerRendered={content:O,route:v});let ft=()=>{let be=!D&&x,Ct=!c||ly(P,B,a,i);if(!Ct&&!cn&&a.scrollToTop&&!be&&!X&&B?.scrollTo&&B.scrollTo({...a.scrollToOptions||{},top:0,left:0}),!Ct&&!cn&&a.scrollToNode&&O[u]?.node?.scrollTo&&O[u].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),!Ct&&_){let Ge=i.getElementById(_.slice(1));if(Ge&&B?.scrollTo){let Uo=s.getComputedStyle?s.getComputedStyle(Ge):null,ia=Uo&&parseFloat(Uo.scrollMarginTop)||0,Dt=Ge.getBoundingClientRect().top+B.scrollTop-ia-(a.scrollToOffset||0);B.scrollTo({...a.scrollToOptions||{},top:Dt,left:0})}}ct&&Ty(r,ct,Ge=>Gn(t,r,n,{...o,...Ge})),oo("routeChanged",r,a)};if(kt)return kt.then(()=>{vy(wt,r,a),l.__routerNavSeq===Kt&&ft()});vy(wt,r,a),ft()},lt=et?NO(r,l,et,i,s,Kt,Z):null;if(lt){await lt;return}return Z()},$O=Gn;var JE=/*@__PURE__*/__smblsNs({},{A:()=>hS,AssetPicture:()=>pb,Audio:()=>_b,Avatar:()=>FS,B:()=>Mb,Block:()=>Zy,Box:()=>$b,Br:()=>jb,Bridge:()=>qb,Button:()=>mS,ButtonSet:()=>xS,COMPONENTS:()=>bx,Caption:()=>Ab,Checkbox:()=>Xb,CheckboxHgroup:()=>Qb,Circle:()=>fb,CircleButton:()=>bS,Clickable:()=>ab,Data:()=>Nb,Dialog:()=>vS,DialogFooter:()=>ES,DialogHeader:()=>OS,Dropdown:()=>dx,DropdownDisclosure:()=>gx,DropdownList:()=>px,DropdownParent:()=>hx,DropdownParentFocus:()=>_x,DropdownSiblingFocus:()=>mx,FileIcon:()=>dS,Flex:()=>Qy,Focusable:()=>cb,FocusableComponent:()=>lb,Footnote:()=>Pb,Form:()=>rb,Grid:()=>tb,Gutter:()=>nb,H1:()=>bb,H2:()=>Sb,H3:()=>xb,H4:()=>wb,H5:()=>kb,H6:()=>Cb,Headline:()=>Ib,Hgroup:()=>Hb,HgroupButton:()=>Kb,HgroupRows:()=>Gb,Hoverable:()=>ib,Hr:()=>Fb,I:()=>Bb,Icon:()=>fS,IconButton:()=>wS,IconText:()=>uS,Iframe:()=>sb,Img:()=>ob,Inline:()=>Xy,InlineFlex:()=>Jy,InlineGrid:()=>eb,Input:()=>Yb,Italic:()=>Rb,KangorooButton:()=>SS,Li:()=>Vb,Link:()=>pu,Notification:()=>yx,NumberInput:()=>Zb,Ol:()=>Wb,P:()=>Tb,Picture:()=>db,Radio:()=>Jb,RadioHgroup:()=>tS,Range:()=>jS,RouteLink:()=>gS,RouterLink:()=>hu,SHAPES:()=>Vi,Select:()=>_S,Shape:()=>Gf,Span:()=>yb,SquareButton:()=>yS,Strong:()=>vb,Subhead:()=>Lb,Svg:()=>hb,Text:()=>mb,Textarea:()=>oS,TextareaWithButton:()=>rS,Theme:()=>ub,Title:()=>Db,Toggle:()=>eS,ToggleHgroup:()=>nS,Tooltip:()=>BS,TooltipHidden:()=>NS,TooltipLayer:()=>Cu,TooltipParent:()=>$S,U:()=>Ob,Ul:()=>Ub,Underline:()=>Eb,Video:()=>gb,depth:()=>Ui,focusableRingEnabled:()=>ns,focusableRingToken:()=>zf,focusableRingValue:()=>Kn,getSystemGlobalTheme:()=>os});var jf=/*@__PURE__*/__smblsNs({},{Block:()=>Zy,Flex:()=>Qy,Grid:()=>tb,Gutter:()=>nb,Inline:()=>Xy,InlineFlex:()=>Jy,InlineGrid:()=>eb});var Ky=new Set,jO=t=>t==="icon"?"build.treeShakeIcons":"build.treeShakeComponents",Ff=(t,e,n)=>{let o=t+":"+e;if(Ky.has(o)||(Ky.add(o),typeof console>"u"||!console.error))return;let r=n&&n.__ref&&n.__ref.path,s=r&&r.length?` (at <${r.join(".")}>)`:"",i=jO(t);console.error(`[smbls] ${t==="icon"?"Icon":"Component"} "${e}"${s} is not in this build: symbols.json ${i} left it out because the project source never names it. Add "${e}" to ${i}.keep.`)},T=t=>({onInit:{always:!0,handler:e=>Ff("component",t,e)}}),qy=new Set,s$=t=>{for(let e of t)e&&qy.add(e)},Yy=t=>qy.has(t);var Zy=globalThis.__SMBLS_BUILD_DROP_C_Block__?T("Block"):{display:"block"},Xy=globalThis.__SMBLS_BUILD_DROP_C_Inline__?T("Inline"):{display:"inline"},Qy=globalThis.__SMBLS_BUILD_DROP_C_Flex__?T("Flex"):{display:"flex"},Jy=globalThis.__SMBLS_BUILD_DROP_C_InlineFlex__?T("InlineFlex"):{display:"inline-flex"},tb=globalThis.__SMBLS_BUILD_DROP_C_Grid__?T("Grid"):{display:"grid"},eb=globalThis.__SMBLS_BUILD_DROP_C_InlineGrid__?T("InlineGrid"):{display:"inline-grid"},nb=globalThis.__SMBLS_BUILD_DROP_C_Gutter__?T("Gutter"):{boxSize:"C1"};var Vf=/*@__PURE__*/__smblsNs({},{Img:()=>ob});var ob={tag:"img",attr:{title:t=>t.title,alt:t=>t.alt!=null?t.alt:t.title||"",src:t=>{let e=ue(t);return e&&e.src||t.src},srcset:t=>{let e=ue(t);return(e?vd(e):"")||t.srcset||t.srcSet}}};var Uf=/*@__PURE__*/__smblsNs({},{Form:()=>rb});var rb=globalThis.__SMBLS_BUILD_DROP_C_Form__?T("Form"):{tag:"form"};var Wf=/*@__PURE__*/__smblsNs({},{Iframe:()=>sb});var sb=globalThis.__SMBLS_BUILD_DROP_C_Iframe__?T("Iframe"):{tag:"iframe",position:"relative",minWidth:"G",minHeight:"G"};var Hf=/*@__PURE__*/__smblsNs({},{Clickable:()=>ab,Focusable:()=>cb,FocusableComponent:()=>lb,Hoverable:()=>ib,focusableRingEnabled:()=>ns,focusableRingToken:()=>zf,focusableRingValue:()=>Kn});var VO={appearance:"none",fontFamily:"inherit"},ib=globalThis.__SMBLS_BUILD_DROP_C_Hoverable__?T("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}}},ab=globalThis.__SMBLS_BUILD_DROP_C_Clickable__?T("Clickable"):{extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}};function ns(t){let e=t.context&&t.context.designSystem;return!e||e.focusableRing!==!1}function zf(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 Kn(t,e,n){let o=zf(t);return o&&o[e]!==void 0?o[e]:n}var cb=globalThis.__SMBLS_BUILD_DROP_C_Focusable__?T("Focusable"):{border:"none",outline:t=>ns(t)?"solid 0 currentColor":"none",":focus-visible":{opacity:1,outline:t=>ns(t)?Kn(t,"outline","solid X currentColor"):"none",outlineOffset:t=>ns(t)?Kn(t,"outlineOffset"):void 0}},lb=globalThis.__SMBLS_BUILD_DROP_C_FocusableComponent__?T("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:VO};var Yf=/*@__PURE__*/__smblsNs({},{Picture:()=>db});var qf=/*@__PURE__*/__smblsNs({},{Theme:()=>ub,getSystemGlobalTheme:()=>os});var Kf=/*@__PURE__*/__smblsNs({},{Circle:()=>fb,SHAPES:()=>Vi,Shape:()=>Gf,default:()=>UO,depth:()=>Ui});var ae=A(),Ui={4:{boxShadow:`rgba(0,0,0,.10) 0 2${ae.unit.default} 4${ae.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${ae.unit.default} 6${ae.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${ae.unit.default} 10${ae.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${ae.unit.default} 16${ae.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${ae.unit.default} 26${ae.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${ae.unit.default} 42${ae.unit.default}`}},$o=t=>z(t.shapeDirectionColor)||z(t.borderColor)||z(t.backgroundColor)||z(t.background),ji=t=>{let e=ii.transition(t.transition,t);return e&&e.transition},Vi={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:$o(t),transition:ji(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:$o(t),transition:ji(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:$o(t),transition:ji(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:ji(t),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${$o(t)} 25%, transparent 25%), linear-gradient(315deg, ${$o(t)} 25%, transparent 25%)`},"&:after":{background:$o(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)"}}}},Gf={deps:{exec:Ke,getSpacingBasedOnRatio:pe,getMediaColor:yt},classlist:{shape:t=>t.deps.exec(Vi[t.shape],t),shapeDirection:t=>{if(!t.shape||!t.shapeDirection)return;let e=Vi[t.shape+"Direction"];return t.shape&&e?e[t.shapeDirection||"left"]:null},shapeDirectionColor:t=>{let e={borderColor:t.deps.getMediaColor(t.background||t.backgroundColor)};return t.shapeDirection?e:null}}},fb=globalThis.__SMBLS_BUILD_DROP_C_Circle__?T("Circle"):{round:"100%"},UO=Gf;var os=({context:t,state:e})=>{let n=e&&e.root,o=n&&n.globalTheme||t.designSystem&&t.designSystem.globalTheme;return o==="auto"?null:o},ub=globalThis.__SMBLS_BUILD_DROP_C_Theme__?T("Theme"):{deps:{depth:Ui},classlist:{depth:t=>!cs(t.depth)&&t.deps.depth[t.depth]}};var db=globalThis.__SMBLS_BUILD_DROP_C_Picture__?T("Picture"):{deps:{getSystemGlobalTheme:os},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:os},tag:"source",attr:{media:t=>{let{key:e,context:n,deps:o}=t,{media:r}=n.designSystem,s=o.getSystemGlobalTheme(t),i=(t.media||e).slice(1);return i===s?"(min-width: 0px)":i==="dark"||i==="light"?"(max-width: 0px)":r[i]}}},Img:{width:"inherit",ignoreChildExtends:!0,height:"inherit",src:(t,e)=>t.parent?.src||e.src}};var Zf=/*@__PURE__*/__smblsNs({},{AssetPicture:()=>pb});var pb=globalThis.__SMBLS_BUILD_DROP_C_AssetPicture__?T("AssetPicture"):{tag:"picture",children:t=>{let e=ue(t);if(e)return Od(e,t.alt)}};var Xf=/*@__PURE__*/__smblsNs({},{Svg:()=>hb});var hb={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,s=t.spriteId||n&&n.useSvgSprite,i=t.call("exec",t.src,t),a=d=>`<use xlink:href="#${d}" />`;if(typeof i=="string"){let d=i.match(/^\s*<symbol\b[^>]*\bid="([^"]+)"/);if(d){let p=d[1],g=e.document||(typeof document<"u"?document:null);if(!(g&&typeof g.getElementById=="function"&&g.getElementById(p))){let _=o&&o.scratchSystem&&o.scratchSystem.appendSVGSprite;n&&!n.__svgCache&&(n.__svgCache={}),typeof _=="function"?_({[p]:i},{document:g}):o&&typeof o.init=="function"&&o.init({svg:{[p]:i}},{document:g,emotion:e.emotion})}return a(p)}}if(!s&&i)return i;let c=t.spriteId;if(c)return a(c);if(r&&r[i])return a(i);let l=Symbol.for(i),u=r[l];if(u&&r[u])return a(u);if(!i)return a("");if(typeof i=="string"&&!i.includes("<"))return typeof console<"u"&&console.warn&&console.warn(`[Svg] Unknown sprite symbol "${i}" \u2014 not registered in design-system sprite. Set the icon name to one that exists in designSystem.icons / context.svg, or register the SVG body via utils.init({ svg: { '${i}': '<svg>...</svg>' } }).`),a("");let f=0;for(let d=0;d<i.length;d++)f=(f<<5)-f+i.charCodeAt(d)|0;return u=r[l]=`svg-${(f>>>0).toString(36)}`,o.init({svg:{[u]:i}},{document:e.document,emotion:e.emotion}),a(u)}};var Qf=/*@__PURE__*/__smblsNs({},{Video:()=>gb});var gb=globalThis.__SMBLS_BUILD_DROP_C_Video__?T("Video"):{tag:"video",controls:!0,attr:{src:t=>{let e=ue(t);return e&&e.src||t.src}},children:t=>{let e=ue(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 Jf=/*@__PURE__*/__smblsNs({},{Audio:()=>_b});var _b=globalThis.__SMBLS_BUILD_DROP_C_Audio__?T("Audio"):{tag:"audio",controls:!0,attr:{src:t=>{let e=ue(t);return e&&e.src||t.src}},children:t=>{let e=ue(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 tu=/*@__PURE__*/__smblsNs({},{B:()=>Mb,Caption:()=>Ab,Data:()=>Nb,Footnote:()=>Pb,H1:()=>bb,H2:()=>Sb,H3:()=>xb,H4:()=>wb,H5:()=>kb,H6:()=>Cb,Headline:()=>Ib,I:()=>Bb,Italic:()=>Rb,P:()=>Tb,Span:()=>yb,Strong:()=>vb,Subhead:()=>Lb,Text:()=>mb,Title:()=>Db,U:()=>Ob,Underline:()=>Eb});var mb=globalThis.__SMBLS_BUILD_DROP_C_Text__?T("Text"):{},yb=globalThis.__SMBLS_BUILD_DROP_C_Span__?T("Span"):{tag:"span"},bb=globalThis.__SMBLS_BUILD_DROP_C_H1__?T("H1"):{tag:"h1"},Sb=globalThis.__SMBLS_BUILD_DROP_C_H2__?T("H2"):{tag:"h2"},xb=globalThis.__SMBLS_BUILD_DROP_C_H3__?T("H3"):{tag:"h3"},wb=globalThis.__SMBLS_BUILD_DROP_C_H4__?T("H4"):{tag:"h4"},kb=globalThis.__SMBLS_BUILD_DROP_C_H5__?T("H5"):{tag:"h5"},Cb=globalThis.__SMBLS_BUILD_DROP_C_H6__?T("H6"):{tag:"h6"},Tb=globalThis.__SMBLS_BUILD_DROP_C_P__?T("P"):{tag:"p"},Ab=globalThis.__SMBLS_BUILD_DROP_C_Caption__?T("Caption"):{tag:"caption"},vb=globalThis.__SMBLS_BUILD_DROP_C_Strong__?T("Strong"):{tag:"strong",fontWeight:"700"},Ob=globalThis.__SMBLS_BUILD_DROP_C_U__?T("U"):{tag:"u"},Eb=globalThis.__SMBLS_BUILD_DROP_C_Underline__?T("Underline"):{tag:"u"},Rb=globalThis.__SMBLS_BUILD_DROP_C_Italic__?T("Italic"):{tag:"i"},Db=globalThis.__SMBLS_BUILD_DROP_C_Title__?T("Title"):{},Ib=globalThis.__SMBLS_BUILD_DROP_C_Headline__?T("Headline"):{tag:"h6",fontSize:"B",fontWeight:500},Lb=globalThis.__SMBLS_BUILD_DROP_C_Subhead__?T("Subhead"):{tag:"span",fontSize:"Z1"},Pb=globalThis.__SMBLS_BUILD_DROP_C_Footnote__?T("Footnote"):{tag:"span",fontSize:"Z"},Mb=globalThis.__SMBLS_BUILD_DROP_C_B__?T("B"):{tag:"b"},Bb=globalThis.__SMBLS_BUILD_DROP_C_I__?T("I"):{tag:"i"},Nb=globalThis.__SMBLS_BUILD_DROP_C_Data__?T("Data"):{tag:"data"};var eu=/*@__PURE__*/__smblsNs({},{Box:()=>$b,Br:()=>jb,Hr:()=>Fb,Li:()=>Vb,Ol:()=>Wb,Ul:()=>Ub});var WO=t=>{if(!t.context)return;let{props:e,__ref:n}=t,o=ne(e,t,{unpack:!1});n.__class=o},$b=globalThis.__SMBLS_BUILD_DROP_C_Box__?T("Box"):{extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:WO},Fb=globalThis.__SMBLS_BUILD_DROP_C_Hr__?T("Hr"):{tag:"hr",margin:"C1 0"},jb=globalThis.__SMBLS_BUILD_DROP_C_Br__?T("Br"):{tag:"br"},Vb=globalThis.__SMBLS_BUILD_DROP_C_Li__?T("Li"):{tag:"li"},Ub=globalThis.__SMBLS_BUILD_DROP_C_Ul__?T("Ul"):{tag:"ul",childExtends:{extends:"Li"}},Wb=globalThis.__SMBLS_BUILD_DROP_C_Ol__?T("Ol"):{tag:"ol",childExtends:{extends:"Li"}};var nu=/*@__PURE__*/__smblsNs({},{Hgroup:()=>Hb,HgroupButton:()=>Kb,HgroupRows:()=>Gb});var zb=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},Hb=globalThis.__SMBLS_BUILD_DROP_C_Hgroup__?T("Hgroup"):{display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{if:zb,color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{if:zb,margin:"0",color:"paragraph"}},Gb=globalThis.__SMBLS_BUILD_DROP_C_HgroupRows__?T("HgroupRows"):{extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},Kb=globalThis.__SMBLS_BUILD_DROP_C_HgroupButton__?T("HgroupButton"):{extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}};var ou=/*@__PURE__*/__smblsNs({},{Bridge:()=>qb});var qb=globalThis.__SMBLS_BUILD_DROP_C_Bridge__?T("Bridge"):{tag:"div"};var ru=/*@__PURE__*/__smblsNs({},{Input:()=>Yb});var Yb={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 su=/*@__PURE__*/__smblsNs({},{NumberInput:()=>Zb});var Zb={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 iu=/*@__PURE__*/__smblsNs({},{Checkbox:()=>Xb,CheckboxHgroup:()=>Qb});var Xb={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=>Kn(t,"outline","solid X currentColor"),outlineOffset:t=>Kn(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"}}},Qb=globalThis.__SMBLS_BUILD_DROP_C_CheckboxHgroup__?T("CheckboxHgroup"):{display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}};var au=/*@__PURE__*/__smblsNs({},{Radio:()=>Jb,RadioHgroup:()=>tS});var Jb=globalThis.__SMBLS_BUILD_DROP_C_Radio__?T("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}},tS=globalThis.__SMBLS_BUILD_DROP_C_RadioHgroup__?T("RadioHgroup"):{extends:"CheckboxHgroup",Checkbox:null,Radio:{}};var cu=/*@__PURE__*/__smblsNs({},{Toggle:()=>eS,ToggleHgroup:()=>nS});var eS={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}},nS=globalThis.__SMBLS_BUILD_DROP_C_ToggleHgroup__?T("ToggleHgroup"):{extends:"CheckboxHgroup",Checkbox:null,Toggle:{}};var lu=/*@__PURE__*/__smblsNs({},{Textarea:()=>oS,TextareaWithButton:()=>rS});var oS=globalThis.__SMBLS_BUILD_DROP_C_Textarea__?T("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"}},rS=globalThis.__SMBLS_BUILD_DROP_C_TextareaWithButton__?T("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 du=/*@__PURE__*/__smblsNs({},{FileIcon:()=>dS,Icon:()=>fS,IconText:()=>uS});var sS=new Set,iS=(t,e)=>{if(!sS.has(t)&&(sS.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.`)}},aS=(t,e)=>{let n=t.find(o=>o&&Yy(o));return n?(Ff("icon",n,e),!0):!1},cS=new WeakMap,zO=t=>{let e=cS.get(t);return e||(e={pending:new Map,waiting:new Map,failed:new Set},cS.set(t,e)),e},HO=(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},GO=(t,e,n)=>{let o=n&&n.context&&n.context.document||(typeof document<"u"?document:null);dt(t);try{let r=A();r&&!r.__svgCache&&(r.__svgCache={}),t.__svgCache||(t.__svgCache={});let s={};for(let i in e){let a=hr(e[i],i);a&&(t.icons[i]=a,s[i]=a)}return t.useIconSprite&&o&&Object.keys(s).length&&rc(s,{document:o}),Object.keys(s).length>0}finally{ot()}},KO=(t,e,n,o,r)=>{let s=t&&t.designSystem,i=s&&s.iconsLoader;if(typeof i!="function"||!s.icons)return!1;let a=zO(s);if(a.failed.has(e))return!1;let c=a.waiting.get(e);if(c||(c=new Set,a.waiting.set(e,c)),c.add(r),a.pending.has(e))return!0;let l=()=>i(e,t),u=Promise.resolve().then(l).then(f=>{let d=HO(f,n);return d?GO(s,d,o):!1}).catch(f=>(typeof console<"u"&&console.error&&console.error(`[Icon] iconsLoader failed for "${e}":`,f),!1)).then(f=>{a.pending.delete(e);let d=a.waiting.get(e);a.waiting.delete(e),f||a.failed.add(e),d&&d.forEach(p=>{try{p(f)}catch(g){console.error("[Icon] repaint error:",g)}})});return a.pending.set(e,u),!0},qO="0 0 24 24",YO=/<(symbol|svg)\b[^>]*>/i,ZO={viewBox:/\sviewBox\s*=\s*(?:"([^"]*)"|'([^']*)')/i,width:/\swidth\s*=\s*(?:"([^"]*)"|'([^']*)')/i,height:/\sheight\s*=\s*(?:"([^"]*)"|'([^']*)')/i},fu=(t,e)=>{let n=t.match(ZO[e]);return n?n[1]!==void 0?n[1]:n[2]:void 0},lS=t=>{let e=typeof t=="string"&&t.match(/^\s*(\d*\.?\d+)\s*(?:px)?\s*$/);return e?Number(e[1]):void 0},XO=(t,e)=>{if(typeof t!="string")return;let n=t.match(YO);if(!n)return;let o=(fu(n[0],"viewBox")||"").trim().split(/[\s,]+/).map(Number),r=o.length===4&&o[2]>0&&o[3]>0?[o[2],o[3]]:void 0,s=lS(fu(n[0],"width")),i=lS(fu(n[0],"height")),a=s>0&&i>0?[s,i]:void 0,c=n[1].toLowerCase()==="symbol"||e?r||a:a||r;return c?`0 0 ${c[0]} ${c[1]}`:void 0},uu=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 XO(t.call("exec",t.src,t),o)||qO},fS={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:s,verbose:i}=n&&n.designSystem,{toCamelCase:a}=n&&n.utils,c=!1,l=(h,_)=>{try{return{value:t.call("exec",h,_)}}catch(m){if(t.__ref&&(t.__ref.__iconNameError=m),!c&&typeof console<"u"&&console.warn){c=!0;let b=t.__ref&&t.__ref.path,x=b&&b.length?` at <${b.join(".")}>`:"";console.warn(`[Icon] name/icon factory threw${x} \u2014 treated as no name (a painted glyph stays):`,m&&m.message||m)}return{threw:!0}}},u=(h,_)=>{let{semanticIcons:m}=_&&_.designSystem,{toCamelCase:b}=_&&_.utils,D=b(h).split(/([a-z])([A-Z])/g),y=D[1]?D[0]:h.split(".")[0].split(" ")[0],S=m&&m[y];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'"}}}}},f=h=>{let{key:_}=h,m=l(h.name||h.icon||_,h);if(m.threw)return{name:_,threw:!0};let b=m.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=f(t);if(h.threw&&t.node&&t.node.innerHTML)return;let _=h.name,m=_;if(_.includes(" ")){let B=_.split(" ");_=B[0]+B.slice(1).map(P=>P.charAt(0).toUpperCase()+P.slice(1)).join("")}let b=a(_),x=b.split(/([a-z])([A-Z])/g),D=u(m,n);if(D){Object.assign(t,D);return}let y,S=t[".isActive"];S&&(S.name||S.icon)&&t.isActive&&(y=l(S.name||S.icon,t).value);let w=o&&o[".isActive"];w&&w.icon&&o.isActive&&(y=l(w.icon||w.Icon.name||w.Icon.icon,t).value),t.call("isString",y)&&y.includes("{{")&&(y=t.call("replaceLiteralsWithObjectFields",y));let k;r[y]&&(k=y),r[b]?k=b:r[x[0]+x[1]]?k=x[0]+x[1]:r[x[0]]?k=x[0]:i&&t.warn("Can't find icon:",_,k);let v=r[k],R=o&&o.src||d;!v&&!R&&(KO(n,m,b,t,P=>{if(!(p&&p._disposed)){if(!P)return globalThis.__SMBLS_BUILD_DROP_ICONS__&&aS([y,b,x[0]+x[1],x[0]],t)||iS(m,t);g()}})||globalThis.__SMBLS_BUILD_DROP_ICONS__&&aS([y,b,x[0]+x[1],x[0]],t)||iS(m,t));let O=s&&k,$=v||R||r.noIcon;if(!(t.spriteId===O&&t.src===$&&t.node&&t.node.innerHTML)){if(t.spriteId=O,t.src=$,typeof t.html=="function"&&t.node){let B=t.context&&t.context.designSystem;B&&dt(B);try{let P=t.html(t,t.state,t.context);P!=null&&typeof P!="function"&&(t.node.innerHTML=P)}finally{B&&ot()}}t.node&&t.attr&&t.attr.viewBox===uu&&t.node.setAttribute("viewBox",uu(t))}};p=N(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:uu,"aria-hidden":t=>t.ariaLabel||t.role==="img"?null:"true",focusable:"false"}},uS=globalThis.__SMBLS_BUILD_DROP_C_IconText__?T("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},dS=globalThis.__SMBLS_BUILD_DROP_C_FileIcon__?T("FileIcon"):{display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z2",Icon:{fontSize:"B",margin:"auto",icon:"file"}};var gu=/*@__PURE__*/__smblsNs({},{A:()=>hS,Link:()=>pu,RouteLink:()=>gS,RouterLink:()=>hu});var QO=(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")},JO=(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()))},pS=(t,e,n)=>{let{context:o}=e,{href:r,scrollToTop:s,stopPropagation:i}=e,a=e.call("exec",r,e);if(e.call("isString",a)&&a.includes("{{")&&(a=e.call("replaceLiteralsWithObjectFields",a)),i&&t.stopPropagation(),!a||QO(t,e))return;if(a.startsWith("#")){t.preventDefault(),JO(a,e);return}let{utils:c,snippets:l,functions:u,routerOptions:f}=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(f&&f.customRouterElement){let h=Array.isArray(f.customRouterElement)?f.customRouterElement:f.customRouterElement.split("."),_=d;for(let m of h){if(!_||!_[m]){_=null;break}_=_[m]}_&&(g=_,d.routes&&(g.routes=d.routes))}(u.router||l.router||c.router||Gn)(a,g,{},{scrollToOptions:{behavior:"instant"},scrollToTop:e.call("isDefined",s)?s:!0,...f,...e.routerOptions})}catch(g){console.warn(g)}}},pu={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:t=>Bn(t,t.href)||Bn(t,t.call("exec",t,t).href),"aria-label":t=>t.aria?t.aria.label:t.text},onClick:pS},hS=globalThis.__SMBLS_BUILD_DROP_C_A__?T("A"):{extends:"Link"},hu={onClick:pS},gS=globalThis.__SMBLS_BUILD_DROP_C_RouteLink__?T("RouteLink"):{extends:[pu,hu]};var _u=/*@__PURE__*/__smblsNs({},{Select:()=>_S});var _S=globalThis.__SMBLS_BUILD_DROP_C_Select__?T("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 mu=/*@__PURE__*/__smblsNs({},{Button:()=>mS,ButtonSet:()=>xS,CircleButton:()=>bS,IconButton:()=>wS,KangorooButton:()=>SS,SquareButton:()=>yS});var mS=globalThis.__SMBLS_BUILD_DROP_C_Button__?T("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)},yS=globalThis.__SMBLS_BUILD_DROP_C_SquareButton__?T("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"},bS=globalThis.__SMBLS_BUILD_DROP_C_CircleButton__?T("CircleButton"):{extends:"SquareButton",round:"C"},SS=globalThis.__SMBLS_BUILD_DROP_C_KangorooButton__?T("KangorooButton"):{extends:"Button",childExtends:"IconText"},xS=globalThis.__SMBLS_BUILD_DROP_C_ButtonSet__?T("ButtonSet"):{tag:"nav",display:"flex",childExtends:"SquareButton"},wS={extends:["SquareButton","ClickableItem"],round:"Z"};var bu=/*@__PURE__*/__smblsNs({},{Dialog:()=>vS,DialogFooter:()=>ES,DialogHeader:()=>OS});var tE={ok:1,cancel:1},qn=new WeakMap,eE=0,ce=t=>{let e=t&&t.node;return e&&e.nodeType===1?e:null},yu=t=>{let e=qn.get(t);return e||(e={id:"smbls-dialog-"+ ++eE,want:void 0,waiting:!1},qn.set(t,e)),e},rs=(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,Fo=(t,e,n)=>{n===null?t.removeAttribute(e):t.setAttribute(e,n)},kS=["methods","functions","utils"],nE=t=>{for(let e=0;e<kS.length;e++){let n=t[kS[e]];if(n&&typeof n.polyglot=="function")return!0}return!1},Wi=(t,e,n)=>{let o=t.context;if(!o||!nE(o))return n;let r=t.call("polyglot",e);return typeof r=="string"&&r&&r!==e?r:n},CS=t=>{let e=qn.get(t),n=ce(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},TS=t=>{queueMicrotask(()=>{if(CS(t))return;let e=qn.get(t);!e||e.waiting||typeof t.whenConnected!="function"||(e.waiting=!0,t.whenConnected(()=>{e.waiting=!1,CS(t)}))})},oE=t=>{let e=t.__ref;if(!e||!ce(t)||!Object.prototype.hasOwnProperty.call(t,"modal")||rs(t,"data-dialog"))return;let n=N(()=>{let o=t.modal,r=ce(t);if(!r)return;if(o==null){Fo(r,"data-dialog",null);return}Fo(r,"data-dialog","modal");let s=yu(t),i=!!o;s.want!==i&&(s.want=i,TS(t))},{depth:e.path&&e.path.length||0});e.__effects||(e.__effects=[]),e.__effects.push(n)},rE=t=>t.dialogTitle===!0,sE=t=>{for(let e=t;e;e=e.parent)if(e.tag==="dialog")return e;return null},AS=t=>{let e=sE(t);return!e||!e.locked},iE=t=>t.key==="Escape"||t.key==="Esc",aE=t=>{let e=t.__ref,n=ce(t);if(!e||!n||!Object.prototype.hasOwnProperty.call(t,"locked"))return;let o=yu(t),r=!rs(t,"closedby","closedBy"),s=N(()=>{let l=!!t.locked,u=ce(t);u&&r&&Fo(u,"closedby",l?"none":null)},{depth:e.path&&e.path.length||0});e.__effects||(e.__effects=[]),e.__effects.push(s);let i=l=>{t.locked&&l.preventDefault()},a=t.context&&t.context.window||n.ownerDocument.defaultView,c=l=>{let u=ce(t);u&&u.open&&u.isConnected&&iE(l)&&t.locked&&l.preventDefault()};n.addEventListener("cancel",i),a&&a.addEventListener("keydown",c),o.unlock=()=>{n.removeEventListener("cancel",i),a&&a.removeEventListener("keydown",c)}},cE=t=>{let e=ce(t);if(!e||e.hasAttribute("aria-labelledby")||e.hasAttribute("aria-label")||rs(t,"aria-labelledby","ariaLabelledby","labelledby"))return;let n=typeof t.lookdown=="function"?t.lookdown(rE):null,o=ce(n);if(!o)return;let r=o.getAttribute("id");if(!r){if(rs(n,"id"))return;r=yu(t).id+"-title",Fo(o,"id",r)}Fo(e,"aria-labelledby",r)},lE=(t,e)=>{let n=ce(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 s=r.getAttribute("data-dialog-action");if(tE[s]!==1)return;let i=n.ownerDocument.defaultView,a=new i.Event(s,{cancelable:!0});n.dispatchEvent(a),!a.defaultPrevented&&n.open&&typeof n.close=="function"&&n.close(s)},fE=t=>{let e=qn.get(t);e&&e.unlock&&(e.unlock(),e.unlock=null);let n=ce(t);e&&e.want!==void 0&&n&&n.open&&typeof n.close=="function"&&n.close()},uE=t=>{let e=qn.get(t),n=ce(t);e&&e.want!==void 0&&n&&!n.isConnected&&n.hasAttribute("open")&&n.removeAttribute("open")},dE=t=>{let e=qn.get(t);e&&e.want&&TS(t)},pE=t=>{let e=ce(t);if(!e||!Object.prototype.hasOwnProperty.call(t,"modal")||rs(t,"data-dialog"))return;let n=t.modal;if(typeof n=="function")try{n=n(t,t.state)}catch{return}n!=null&&Fo(e,"data-dialog","modal")},vS=globalThis.__SMBLS_BUILD_DROP_C_Dialog__?T("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=>pE(t)},onComplete:{always:!0,handler:t=>{oE(t),aE(t),cE(t)}},onRender:{always:!0,handler:t=>dE(t)},onClick:(t,e)=>lE(t,e),onBeforeRemove:{always:!0,handler:t=>fE(t)},onRemove:{always:!0,handler:t=>uE(t)}},OS=globalThis.__SMBLS_BUILD_DROP_C_DialogHeader__?T("DialogHeader"):{extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{dialogTitle:!0,text:t=>Wi(t,"dialog.title","Title")},SquareButton:{if:AS,icon:"x",theme:"transparent",aria:{label:t=>Wi(t,"dialog.close","Close")},data:{dialogAction:"cancel"}}},Paragraph:{color:"caption"}},ES=globalThis.__SMBLS_BUILD_DROP_C_DialogFooter__?T("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:AS,text:t=>Wi(t,"dialog.cancel","Cancel"),data:{dialogAction:"cancel"}},Ok:{text:t=>Wi(t,"dialog.ok","OK"),data:{dialogAction:"ok"}}};var Tu=/*@__PURE__*/__smblsNs({},{Tooltip:()=>BS,TooltipHidden:()=>NS,TooltipLayer:()=>Cu,TooltipParent:()=>$S});var hE='[data-tooltip]:not([data-tooltip=""])',RS={top:1,bottom:1,left:1,right:1},Su={top:"bottom",bottom:"top",left:"right",right:"left"},Yn=6,DS=new WeakMap,gE=0,Nt=t=>{let e=DS.get(t);return e||(e={id:"smbls-tooltip-"+ ++gE,hover:null,focus:null,shown:null,dismissed:null,showTimer:null,hideTimer:null},DS.set(t,e)),e},xu=t=>{let e=t&&t.nodeType!==1?t.parentElement:t;return e&&typeof e.closest=="function"?e:null},_E=t=>{let e=t.parent&&t.parent.node;return e&&e.nodeType===1?e:null},mE=t=>{for(let e=t.firstElementChild;e;e=e.nextElementSibling)if(e.hasAttribute("data-tooltip-layer"))return!0;return!1},IS=(t,e)=>{let n=_E(t);if(!e||!n)return null;let o;try{o=e.closest(hE)}catch{return null}if(!o||!n.contains(o))return null;for(let r=o;r&&r!==n;r=r.parentElement)if(mE(r))return null;return o},yE=(t,e)=>!!(e&&t.node&&t.node.contains(e)),bE=t=>{try{return t.matches(":focus-visible")}catch{return!0}},LS=(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)},wu=t=>!!(t.node&&t.node.isConnected&&t.state&&typeof t.state.update=="function"),SE=(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(" "))},ku=(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")},xE=(t,e,n,o,r)=>{let s={top:t.top,bottom:r-t.bottom,left:t.left,right:o-t.right},i=u=>(u==="top"||u==="bottom"?e.height:e.width)+Yn;s[n]<i(n)&&s[Su[n]]>=i(Su[n])&&(n=Su[n]);let a,c;n==="top"||n==="bottom"?(a=t.left+(t.width-e.width)/2,c=n==="bottom"?t.bottom+Yn:t.top-e.height-Yn):(c=t.top+(t.height-e.height)/2,a=n==="right"?t.right+Yn:t.left-e.width-Yn);let l=(u,f)=>Math.max(Yn,Math.min(f-Yn,u));return{left:l(a,o-e.width),top:l(c,r-e.height),side:n}},wE=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}},kE=t=>(t.title||"")+(t.description||""),Hi=(t,e=0)=>{let o=Nt(t).shown;if(!o||!wu(t))return;if(!o.isConnected){Gi(t);return}let r=t.node,s=t.state;if(r.textContent!==kE(s)){e<3&&setTimeout(()=>Hi(t,e+1),0);return}let i=o.getBoundingClientRect(),a=r.getBoundingClientRect(),c=a.left-(s.x||0),l=a.top-(s.y||0),u=wE(r),f=o.getAttribute("data-tooltip-placement"),d=RS[f]?f:RS[t.tooltipPlacement]?t.tooltipPlacement:"bottom",p=xE(i,{width:a.width,height:a.height},d,u.width,u.height);s.update({x:Math.round(p.left-c),y:Math.round(p.top-l),side:p.side,placed:!0})},CE=t=>{typeof queueMicrotask=="function"?queueMicrotask(t):Promise.resolve().then(t)},PS=(t,e)=>{let n=Nt(t);Ki(n),!(!wu(t)||!e.isConnected)&&(n.shown&&n.shown!==e&&ku(n.shown,n.id),n.shown=e,SE(e,n.id),t.state.update({open:!0,placed:!1,title:e.getAttribute("data-tooltip")||"",description:e.getAttribute("data-tooltip-description")||""}),CE(()=>Hi(t)))};function Gi(t){let e=Nt(t);Ki(e),e.shown&&ku(e.shown,e.id),e.shown=null,wu(t)&&t.state.open&&t.state.update({open:!1})}var zi=(t,e)=>{let n=Nt(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){Gi(t);return}n.hideTimer=setTimeout(()=>{n.hideTimer=null,Gi(t)},LS(t.tooltipHideDelay,100));return}if(n.hideTimer&&(clearTimeout(n.hideTimer),n.hideTimer=null),e||n.shown){PS(t,o);return}n.showTimer&&clearTimeout(n.showTimer),n.showTimer=setTimeout(()=>{n.showTimer=null,PS(t,o)},LS(t.tooltipDelay,250))},MS=t=>{let e=Nt(t);e.shown&&(e.dismissed=e.shown,Gi(t))},Cu=globalThis.__SMBLS_BUILD_DROP_C_TooltipLayer__?T("TooltipLayer"):{role:"tooltip",id:t=>Nt(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=Nt(e),o=xu(t.target),r=yE(e,o)?n.shown:IS(e,o);r===n.hover&&(r||!n.shown)||(n.hover=r,zi(e,!1))}},onDocumentPointerout:{capture:!0,passive:!0,handler:(t,e)=>{if(t.relatedTarget)return;let n=Nt(e);n.hover&&(n.hover=null,zi(e,!1))}},onDocumentPointerdown:{capture:!0,passive:!0,handler:(t,e)=>{let n=Nt(e),o=xu(t.target);n.shown&&o&&n.shown.contains(o)&&MS(e)}},onDocumentFocusin:{capture:!0,handler:(t,e)=>{let n=Nt(e),o=xu(t.target),r=o&&bE(o)?IS(e,o):null;r!==n.focus&&(n.focus=r,zi(e,!0))}},onDocumentFocusout:{capture:!0,handler:(t,e)=>{if(t.relatedTarget)return;let n=Nt(e);n.focus&&(n.focus=null,zi(e,!0))}},onDocumentKeydown:{capture:!0,handler:(t,e)=>{(t.key==="Escape"||t.key==="Esc")&&MS(e)}},onDocumentScroll:{capture:!0,passive:!0,handler:(t,e)=>{Nt(e).shown&&Hi(e)}},onWindowResize:(t,e)=>{Nt(e).shown&&Hi(e)},onBeforeRemove:t=>{let e=Nt(t);Ki(e),e.shown&&ku(e.shown,e.id),e.shown=e.hover=e.focus=e.dismissed=null}};var BS=globalThis.__SMBLS_BUILD_DROP_C_Tooltip__?T("Tooltip"):{display:"flex",theme:"dialog",background:"black",flow:"column",shape:"tooltip",shapeDirection:"left",padding:"Z1 A",round:"Y2",width:"fit-content",minWidth:"D2",maxWidth:"F2",gap:"X",textAlign:"center",attr:{tooltip:!0},Title:{if:t=>St(t.parent.title)||t.parent.title,width:"fit-content",fontWeight:500,color:"gray12",text:t=>t.parent.title},P:{if:(t,e)=>t.call("isDefined",t.call("exec",t.parent.description,t))||t.text,width:"fit-content",fontSize:"Z2",margin:"0",color:"gray6",fontWeight:"400",text:(t,e)=>t.call("exec",t.parent.description,t)}},NS=globalThis.__SMBLS_BUILD_DROP_C_TooltipHidden__?T("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)}},$S=globalThis.__SMBLS_BUILD_DROP_C_TooltipParent__?T("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 Au=/*@__PURE__*/__smblsNs({},{Avatar:()=>FS});var TE=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)},FS=globalThis.__SMBLS_BUILD_DROP_C_Avatar__?T("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=TE(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 vu=/*@__PURE__*/__smblsNs({},{Range:()=>jS});var jS={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:ks("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:ks("#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 Nu=/*@__PURE__*/__smblsNs({},{Dropdown:()=>dx,DropdownDisclosure:()=>gx,DropdownList:()=>px,DropdownParent:()=>hx,DropdownParentFocus:()=>_x,DropdownSiblingFocus:()=>mx});var Ji="hover",zS="focus",ss="sibling",ze="disclosure",VS={menu:1,listbox:1,tree:1,grid:1,dialog:1},AE={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},vE={BUTTON:1,INPUT:1,SELECT:1,TEXTAREA:1},OE='button, a[href], [role^="menuitem"], [role="option"]',EE={ArrowDown:1,Down:1,ArrowUp:-1,Up:-1,Home:"first",End:"last"},Yi=new WeakMap,Zi=new WeakMap,Xi=new WeakMap,Eu=new WeakMap,HS=new WeakSet,RE=0,G=t=>{let e=t&&t.node;return e&&e.nodeType===1?e:null},jo=(t,e)=>{let n=G(t);return n?n.getAttribute(e):null},nt=(t,e)=>{let n=G(t);return!!n&&!!e&&(n===e||n.contains(e))},Ou=t=>{let e=G(t);return!!e&&e.hasAttribute("dropdown")},Ru=t=>{let e=G(t);return!!e&&e.tagName==="BUTTON"},qi=t=>Ru(t)||jo(t,"role")==="button",US=t=>{let e=G(t);return!!e&&AE[e.tagName]===1&&!e.isContentEditable},GS=t=>{let e=G(t);return!!e&&!e.disabled&&!e.hidden&&e.getAttribute("aria-disabled")!=="true"},is=t=>{let e=jo(t,"role");return!!e&&e.indexOf("menuitem")===0&&GS(t)},DE=t=>{let e=G(t);if(!e||!GS(t))return!1;if(vE[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},Zn=t=>t&&typeof t.getChildren=="function"?t.getChildren():[],$t=t=>t&&typeof t.dropdownMode=="string"?t.dropdownMode:null,Du=t=>{let e=t&&t.Input_trigger;return e&&e.__ref?e:null},KS={tabindex:"tabIndex","aria-expanded":"ariaExpanded","aria-haspopup":"ariaHaspopup","aria-controls":"ariaControls","aria-labelledby":"ariaLabelledby","aria-label":"ariaLabel","aria-hidden":"ariaHidden"},qS=(t,e)=>{if(t[e]!==void 0)return!0;let n=KS[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},IE=(t,e)=>{let n=KS[e],o=t.attr;return typeof t[e]=="function"||n!==void 0&&typeof t[n]=="function"||!!o&&typeof o=="object"&&typeof o[e]=="function"},Le=(t,e,n)=>!e.hasAttribute(n)&&!qS(t,n),an=(t,e,n)=>{n===null?t.removeAttribute(e):t.setAttribute(e,n)},LE=(t,e)=>{let n=G(t);if(n)for(let o in e)an(n,o,e[o])},Qi=t=>{let e=G(t);return!e||typeof e.focus!="function"?!1:(e.focus(),e.ownerDocument.activeElement===e)},PE=t=>{let e=Yi.get(t);return e||(e={id:"smbls-dropdown-"+ ++RE,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},WS=(t,e)=>!!e&&!!G(e)&&!!t&&t[e.key]===e,ME=(t,e)=>{let n=null,o=null;if(e===ss){let s=t.parent?Zn(t.parent):[];for(let i=s.indexOf(t)+1;i>0&&i<s.length&&s[i];i++)if(Ou(s[i])){n=s[i];break}return(qi(t)||US(t))&&(o=t),{panel:n,trigger:o}}let r=Zn(t);for(let s=0;s<r.length;s++)if(Ou(r[s])){n=r[s];break}if(qi(t))return{panel:n,trigger:t};for(let s=0;s<r.length;s++){let i=r[s];if(!(!G(i)||i.key==="Input_trigger"||Ou(i))){(qi(i)||US(i))&&(o=i);break}}return{panel:n,trigger:o}},BE=t=>{let e=jo(t,"role");if(e&&VS[e]===1)return{el:t,role:e};let n=Zn(t);for(let o=0;o<n.length;o++){let r=jo(n[o],"role");if(r&&VS[r]===1)return{el:n[o],role:r}}return null},le=t=>{let e=$t(t);if(!e||!G(t))return null;let n=PE(t);if(n.trigger){let p=e===ss?t.parent:t;if((n.trigger===t||WS(t,n.trigger))&&WS(p,n.panel))return n}let{panel:o,trigger:r}=ME(t,e);if(!o||!r)return n.trigger=n.panel=n.popup=null,null;n.trigger=r,n.panel=o;let s=e===ze?null:BE(o);n.popup=s?s.el:null,n.popupRole=s?s.role:null;let i=G(r),a={},c=i.getAttribute("id");n.popupRole==="menu"&&!c&&Le(r,i,"id")&&(a.id=c=n.id+"-trigger"),qi(r)||(Le(r,i,"role")&&(a.role="button"),Le(r,i,"tabindex")&&(a.tabindex="0")),n.popupRole&&Le(r,i,"aria-haspopup")&&(a["aria-haspopup"]=n.popupRole);let l=G(o),u=l.getAttribute("id");if(!u&&Le(o,l,"id")&&(u=n.id+"-panel",an(l,"id",u)),u&&Le(r,i,"aria-controls")&&(a["aria-controls"]=u),n.owns=Le(r,i,"aria-expanded"),n.written={open:null,expanded:null},n.owns&&(n.written.expanded=ta(t,n)?"true":"false",a["aria-expanded"]=n.written.expanded),LE(r,a),n.popupRole==="menu"&&c){let p=G(n.popup);Le(n.popup,p,"aria-label")&&Le(n.popup,p,"aria-labelledby")&&an(p,"aria-labelledby",c)}r!==t&&e===zS&&jo(t,"tabindex")==="0"&&!IE(t,"tabindex")&&an(G(t),"tabindex","-1");let f=Du(t),d=G(f);return d&&!d.hasAttribute("tabindex")&&(qS(f,"tabindex")||an(d,"tabindex","-1"),Le(f,d,"aria-hidden")&&an(d,"aria-hidden","true")),Xn(t,n),n},YS=t=>{let e=G(t),n=e&&e.ownerDocument.activeElement;return n&&n!==e.ownerDocument.body?n:null},ZS=t=>nt(t,YS(t)),ta=(t,e,n)=>{if(e.open!==null)return e.open;let o=$t(t);return n||o===Ji||o===ze?!1:ZS(t)},Xn=(t,e,n)=>{let o=e.open===null?null:String(e.open);if(e.written.open!==o){e.written.open=o;let s=G(t);s&&an(s,"data-dropdown-open",o)}if(!e.owns)return;let r=ta(t,e,n)?"true":"false";if(e.written.expanded!==r){e.written.expanded=r;let s=G(e.trigger);s&&an(s,"aria-expanded",r)}},Jn=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},XS=(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)},QS=(t,e)=>{let n=Jn(t);n.chosen=!0,XS(n,e)},JS=t=>{let e=Jn(t);if(e.settling=!1,e.chosen)return;let n=Zn(t);for(let o=0;o<n.length;o++)if(is(n[o])){XS(e,n[o]);return}},tx=(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 s=typeof n[r].getAnimations=="function"?n[r].getAnimations():[];for(let i=0;i<s.length;i++)s[i].transitionProperty==="visibility"&&(s[i].finish(),o=!0)}return o},ex=(t,e)=>{let n=G(t);if(!n)return;let o=n.ownerDocument.activeElement,r=Qi(t);!r&&e&&n.ownerDocument.activeElement===o&&tx(n,G(e))&&(r=Qi(t));let s=t.parent;r&&s&&Zi.has(s)&&QS(s,t)},NE=t=>{let e=t.popupRole==="menu"?t.popup:t.panel;return!e||typeof e.lookdownAll!="function"?[]:e.lookdownAll(t.popupRole==="menu"?is:DE)},$E=(t,e,n)=>{if(n==="trigger"){let s=YS(t);(!nt(t,s)&&!nt(e.panel,s)||nt(Du(t),s))&&Qi(e.trigger);return}let o=NE(e);if(!o.length)return;let r=n==="last"?o[o.length-1]:null;if(!r)for(let s=0;s<o.length&&!r;s++)jo(o[s],"aria-checked")==="true"&&(r=o[s]);ex(r||o[0],e.panel)},Iu=(t,e,n)=>{let o=G(t),r=o&&o.ownerDocument;n&&!e.outside&&r?(e.outside=s=>{if(!G(t)||!G(t).isConnected){Iu(t,e,!1);return}nt(t,s.target)||nt(e.panel,s.target)||Rt(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)},nx=(t,e)=>{let n=G(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)},Vo=(t,e,n)=>{let o=e.open===!0;if(e.open=!0,Xn(t,e),$t(t)===ze){Iu(t,e,!0);let r=G(e.panel);r&&tx(r,r),o||nx(t,!0)}n&&$E(t,e,n)},Rt=(t,e,n)=>{let o=e.open===!0;e.open=!1,Xn(t,e),e.outside&&Iu(t,e,!1),n&&Qi(e.trigger),o&&$t(t)===ze&&nx(t,!1)},FE=t=>{let e=t.__ref;if(!e||$t(t)!==ze||!Object.prototype.hasOwnProperty.call(t,"open"))return;let n=N(()=>{let o=t.open;o!=null&&Wo(()=>{let r=le(t);!r||!!o==(r.open===!0)||(o?Vo(t,r,null):Rt(t,r,ZS(t)))})},{depth:e.path&&e.path.length||0});e.__effects||(e.__effects=[]),e.__effects.push(n)},ea=(t,e,n)=>e.trigger===t?!nt(e.panel,n):nt(e.trigger,n)?!0:nt(Du(t),n),Lu=(t,e)=>{let n=e&&typeof e.closest=="function"?e.closest(OE):null;return!!n&&nt(t,n)},ox=(t,e,n)=>{let o=t.key;o==="Escape"||o==="Esc"?(t.preventDefault(),Rt(e,n,!0)):o==="Tab"&&n.popupRole==="menu"&&nt(n.popup,t.target)&&Rt(e,n,!1)},na=t=>{$t(t)===ss&&t.parent&&HS.add(t.parent),le(t),FE(t)},oa=(t,e)=>{let n=le(e);n&&(n.pressedOpen=ta(e,n))},jE=(t,e)=>{let n=Yi.get(e);!n||!n.trigger||n.open!==!1||$t(e)!==Ji||(n.open=null,Xn(e,n))},ra=(t,e)=>{if($t(e)===ze){UE(t,e);return}if(t.defaultPrevented)return;let n=le(e);if(!n)return;let o=t.target;if(nt(n.panel,o)){if($t(e)!==Ji||!Lu(n.panel,o))return;(n.open===!0||t.detail===0)&&Rt(e,n,!0);return}if(!ea(e,n,o))return;let r=t.detail===0?n.open===!0:n.pressedOpen;n.pressedOpen=!1,r?Rt(e,n,!0):Vo(e,n,n.popupRole==="menu"?"first":"trigger")},sa=(t,e)=>{if(t.defaultPrevented)return;if($t(e)===ze){WE(t,e);return}let n=le(e);if(!n)return;let o=t.target;if(nt(n.panel,o)){ox(t,e,n);return}if(!ea(e,n,o))return;let r=t.key;if(r==="ArrowDown"||r==="Down"||r==="ArrowUp"||r==="Up")t.preventDefault(),Vo(e,n,r==="ArrowUp"||r==="Up"?"last":"first");else if(r==="Escape"||r==="Esc"){if(!ta(e,n))return;t.preventDefault(),Rt(e,n,!1)}else(r==="Enter"||r===" "||r==="Spacebar")&&!Ru(n.trigger)&&(t.preventDefault(),n.open===!0?Rt(e,n,!0):Vo(e,n,n.popupRole==="menu"?"first":"trigger"))},VE=t=>!!(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey),UE=(t,e)=>{let n=le(e);if(!n)return;let o=t.target;if(nt(n.panel,o)){n.open===!0&&!VE(t)&&e.keepOpen!==!0&&Lu(n.panel,o)&&Rt(e,n,!0);return}if(t.defaultPrevented||!ea(e,n,o))return;let r=t.detail===0?n.open===!0:n.pressedOpen;n.pressedOpen=!1,r?Rt(e,n,!0):Vo(e,n,"trigger")},WE=(t,e)=>{let n=le(e);if(!n)return;let o=t.key;if(o==="Escape"||o==="Esc"){if(n.open!==!0)return;t.preventDefault(),Rt(e,n,!0);return}(o==="Enter"||o===" "||o==="Spacebar")&&!Ru(n.trigger)&&!nt(n.panel,t.target)&&ea(e,n,t.target)&&(t.preventDefault(),n.open===!0?Rt(e,n,!0):Vo(e,n,"trigger"))},Pu=(t,e)=>{let n=le(e);n&&(n.open===null&&nt(n.panel,t.target)&&(n.open=!0),Xn(e,n))},as=(t,e)=>{let n=Yi.get(e);if(!n||!n.trigger)return;let o=t.relatedTarget;if($t(e)===ze){n.open===!0&&o&&!nt(e,o)&&!nt(n.panel,o)&&Rt(e,n,!1);return}if(o&&(nt(e,o)||nt(n.panel,o))){n.open===null&&nt(n.panel,o)&&(n.open=!0,Xn(e,n));return}n.open=null,Xn(e,n,!0)},rx=t=>{let e=t.parent;if(!e||!HS.has(e))return null;let n=Zn(e);for(let o=n.indexOf(t)-1;o>=0&&n[o];o--)if($t(n[o])===ss)return n[o];return null},Mu=t=>{let e=rx(t),n=e?le(e):null;return n&&n.panel===t?{ctrl:e,rec:n}:null},sx=t=>{let e=rx(t);e&&le(e)},ix=(t,e)=>{if(t.defaultPrevented)return;let n=Mu(e);n&&ox(t,n.ctrl,n.rec)},ax=(t,e)=>{if(t.defaultPrevented||!Lu(e,t.target))return;let n=Mu(e);n&&Rt(n.ctrl,n.rec,!0)},cx=(t,e)=>{let n=Mu(e);n&&as(t,n.ctrl)},zE=(t,e)=>{let n=e.parent,o=$t(n)?le(n):null;if(o&&o.panel===e){Rt(n,o,!0);return}let r=G(e),s=r&&r.ownerDocument.activeElement;s&&typeof s.blur=="function"&&s.blur()},lx=(t,e)=>{if($t(e.parent)&&le(e.parent))return;let n=G(e);n&&n===n.ownerDocument.activeElement&&n.blur()},HE=(t,e)=>{if(t.defaultPrevented)return;let n=EE[t.key];if(!n)return;let o=typeof e.lookdownAll=="function"?e.lookdownAll(is):[];if(!o.length)return;let r=-1;for(let i=0;i<o.length&&r===-1;i++)nt(o[i],t.target)&&(r=i);let s;n==="first"?s=0:n==="last"?s=o.length-1:r===-1?s=n>0?0:o.length-1:s=(r+n+o.length)%o.length,t.preventDefault(),ex(o[s])},GE=(t,e)=>{let n=Zn(e);for(let o=0;o<n.length;o++)if(nt(n[o],t.target)){is(n[o])&&QS(e,n[o]);return}},KE=t=>{let e=t.parent;if(!e)return"0";let n=Jn(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(()=>JS(e))),o=ln(r),Xi.set(t,o)}return o.get()?"0":"-1"},qE=t=>{sx(t);let e=Jn(t);e.ready=!0,!(e.stopItem&&e.stopItem.parent===t&&is(e.stopItem))&&JS(t)},YE=t=>{let e=Eu.get(t),n=!e;n&&(e={tick:ln(0),seen:0,checked:!1},Eu.set(t,e));let o=e.tick.get();return o===e.seen&&(e.checked=!!Wo(()=>t.isActive)),e.seen=o,n&&t.parent&&XE(t.parent),e.checked?"true":"false"},ZE=(t,e)=>{if(e.checkRows.get(),!t.node){ux(t);return}let n=Zn(t);for(let o=0;o<n.length;o++){let r=Eu.get(n[o]);if(!r)continue;let s=!!n[o].isActive;s!==r.checked&&(r.checked=s,r.tick.set(r.tick.peek()+1))}},fx=t=>{let e=Jn(t);e.checks||(e.checkRows||(e.checkRows=ln(0)),e.checks=N(()=>ZE(t,e),{label:"DropdownList.checks"}))},ux=t=>{let e=Zi.get(t);!e||!e.checks||(e.checks.dispose(),e.checks=null)},XE=t=>{let e=Jn(t);e.checks?e.checkRows.set(e.checkRows.peek()+1):e.owned||fx(t)},QE=t=>{Jn(t).owned=!0},Qn={transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"},Bu={opacity:0,visibility:"hidden"},dx=globalThis.__SMBLS_BUILD_DROP_C_Dropdown__?T("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:sx},onKeydown:ix,onClick:ax,onFocusout:cx},px=globalThis.__SMBLS_BUILD_DROP_C_DropdownList__?T("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)=>{HE(t,e),ix(t,e)},onInit:{always:!0,handler:QE},onComplete:{always:!0,handler:qE},onRender:{always:!0,handler:fx},onBeforeRemove:{always:!0,handler:ux},onFocusin:GE,onClick:ax,onFocusout:cx,childExtends:{extends:"Button",state:{},role:"menuitemradio",tabindex:t=>KE(t),aria:{checked:t=>YE(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"}}},hx=globalThis.__SMBLS_BUILD_DROP_C_DropdownParent__?T("DropdownParent"):{position:"relative",zIndex:999,dropdownMode:Ji,":hover":{zIndex:1e3,"& [dropdown]":{...Qn}},'[data-dropdown-open="true"]':{zIndex:1e3,"& [dropdown]":{...Qn}},'[data-dropdown-open="false"]:hover':{"& [dropdown]":{...Bu}},onComplete:{always:!0,handler:na},onPointerdown:oa,onPointerenter:jE,onClick:ra,onKeydown:sa,onFocusin:Pu,onFocusout:as},gx=globalThis.__SMBLS_BUILD_DROP_C_DropdownDisclosure__?T("DropdownDisclosure"):{position:"relative",dropdownMode:ze,'[data-dropdown-open="true"]':{zIndex:1e3,"& > [dropdown]":{...Qn}},onComplete:{always:!0,handler:na},onPointerdown:oa,onClick:ra,onKeydown:sa,onFocusout:as},_x=globalThis.__SMBLS_BUILD_DROP_C_DropdownParentFocus__?T("DropdownParentFocus"):{position:"relative",tabindex:"0",dropdownMode:zS,":focus-within":{zIndex:1e3,"& [dropdown]":{...Qn}},'[data-dropdown-open="true"]':{zIndex:1e3,"& [dropdown]":{...Qn}},'[data-dropdown-open="false"]:focus-within':{"& [dropdown]":{...Bu}},onComplete:{always:!0,handler:na},onPointerdown:oa,onClick:ra,onKeydown:sa,onFocusin:Pu,onFocusout:as,Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(t,e)=>lx(t,e)},Dropdown:{onClick:(t,e)=>zE(t,e)}},mx=globalThis.__SMBLS_BUILD_DROP_C_DropdownSiblingFocus__?T("DropdownSiblingFocus"):{position:"relative",tabindex:"0",dropdownMode:ss,":focus-within":{zIndex:1e3,"& ~ [dropdown]":{...Qn}},'[data-dropdown-open="true"]':{zIndex:1e3,"& ~ [dropdown]":{...Qn}},'[data-dropdown-open="false"]:focus-within':{"& ~ [dropdown]":{...Bu}},onComplete:{always:!0,handler:na},onPointerdown:oa,onClick:ra,onKeydown:sa,onFocusin:Pu,onFocusout:as,Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(t,e)=>lx(t,e)}};var $u=/*@__PURE__*/__smblsNs({},{Notification:()=>yx});var yx=globalThis.__SMBLS_BUILD_DROP_C_Notification__?T("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 bx=Object.assign({},jf,Vf,Uf,Wf,Hf,Yf,Zf,Xf,Kf,Qf,Jf,qf,tu,eu,nu,ou,ru,su,iu,au,cu,lu,du,gu,_u,mu,bu,Tu,Au,vu,Nu,$u);export{pn as a,hn as b,Sx as c,no as d,ds as e,Ko as f,ps as g,la as h,aR as i,kx as j,Cx as k,Tx as l,Ax as m,cR as n,vx as o,lR as p,fR as q,uR as r,Ox as s,dR as t,pR as u,qo as v,od as w,hR as x,id as y,Rx as z,oo as A,Dx as B,yR as C,SR as D,cd as E,ud as F,ER as G,RR as H,DR as I,Ix as J,IR as K,LR as L,PR as M,MR as N,BR as O,dd as P,NR as Q,ua as R,pd as S,hd as T,gd as U,_d as V,md as W,$R as X,Lx as Y,Px as Z,fd as _,da as $,FR as aa,yd as ba,_s as ca,bd as da,Sd as ea,xd as fa,jR as ga,wd as ha,kd as ia,VR as ja,Wx as ka,zR as la,Td as ma,ms as na,zx as oa,Hx as pa,Gx as qa,HR as ra,GR as sa,KR as ta,Yo as ua,YR as va,QR as wa,JR as xa,tD as ya,bs as za,eD as Aa,Ad as Ba,nD as Ca,Ss as Da,ue as Ea,pa as Fa,vd as Ga,Od as Ha,ws as Ia,xe as Ja,qx as Ka,Yx as La,Ed as Ma,Zx as Na,Rd as Oa,Xx as Pa,Qx as Qa,Jx as Ra,Dd as Sa,Id as Ta,Ld as Ua,Pd as Va,ks as Wa,ut as Xa,Xo as Ya,gn as Za,Qo as _a,ha as $a,Md as ab,Cs as bb,Ts as cb,_n as db,vt as eb,we as fb,Pe as gb,W as hb,xs as ib,Zo as jb,As as kb,Bd as lb,Nd as mb,ga as nb,$d as ob,_a as pb,Fd as qb,ma as rb,Jo as sb,Me as tb,rw as ub,ke as vb,mn as wb,jd as xb,vs as yb,Os as zb,Vd as Ab,ya as Bb,ro as Cb,tr as Db,sw as Eb,Ud as Fb,iw as Gb,yn as Hb,aw as Ib,ba as Jb,lw as Kb,fw as Lb,uw as Mb,dw as Nb,pw as Ob,gw as Pb,_w as Qb,mw as Rb,yw as Sb,bw as Tb,Sw as Ub,xw as Vb,kw as Wb,Cw as Xb,Tw as Yb,Aw as Zb,vw as _b,Wd as $b,Ow as ac,Ew as bc,Dw as cc,Iw as dc,Mw as ec,Bw as fc,Nw as gc,$w as hc,Fw as ic,Es as jc,zd as kc,Hd as lc,bn as mc,Sa as nc,or as oc,Is as pc,JD as qc,Ls as rc,tI as sc,de as tc,eI as uc,dt as vc,ot as wc,A as xc,Gd as yc,Ps as zc,nI as Ac,oI as Bc,Be as Cc,Sn as Dc,Ce as Ec,xn as Fc,Ca as Gc,Yd as Hc,Ta as Ic,Aa as Jc,va as Kc,Zt as Lc,Zw as Mc,Ms as Nc,rr as Oc,Oa as Pc,Ye as Qc,Xd as Rc,Ea as Sc,Xw as Tc,Ra as Uc,wn as Vc,so as Wc,Da as Xc,Ia as Yc,ep as Zc,sp as _c,ip as $c,ap as ad,sr as bd,ir as cd,ar as dd,io as ed,cr as fd,z as gd,lr as hd,ao as id,Ba as jd,Cn as kd,fr as ld,ur as md,yt as nd,co as od,kn as pd,lo as qd,Ns as rd,jt as sd,gp as td,pk as ud,$a as vd,Fa as wd,gt as xd,pe as yd,ja as zd,dr as Ad,$s as Bd,fo as Cd,Va as Dd,Vt as Ed,Ua as Fd,Ak as Gd,Ga as Hd,Fs as Id,Te as Jd,Ka as Kd,qa as Ld,js as Md,Rp as Nd,Dp as Od,Ya as Pd,Za as Qd,Xa as Rd,Qa as Sd,he as Td,Qt as Ud,Ja as Vd,Vs as Wd,Pk as Xd,hr as Yd,rc as Zd,sc as _d,jk as $d,ac as ae,Vk as be,Wp as ce,zp as de,Hp as ee,Gp as fe,lc as ge,Kp as he,fc as ie,uc as je,gr as ke,qp as le,Yp as me,Gk as ne,dc as oe,Zp as pe,rt as qe,I as re,Tn as se,Xp as te,Xk as ue,Qk as ve,hP as we,Jk as xe,gP as ye,mP as ze,e0 as Ae,yP as Be,bP as Ce,tt as De,Ae as Ee,zs as Fe,Hs as Ge,mc as He,_0 as Ie,y0 as Je,br as Ke,_h as Le,b0 as Me,k0 as Ne,te as Oe,Oc as Pe,vn as Qe,En as Re,On as Se,j0 as Te,V0 as Ue,vc as Ve,Js as We,U0 as Xe,xt as Ye,z0 as Ze,Rn as _e,Lc as $e,Oh as af,Eh as bf,Nc as cf,Fh as df,jh as ef,Vh as ff,Uh as gf,Wh as hf,Vc as if,Uc as jf,Pt as kf,Hh as lf,ii as mf,Gh as nf,RC as of,Kh as pf,DC as qf,Wc as rf,Zh as sf,Xh as tf,Y as uf,st as vf,eg as wf,ng as xf,WC as yf,zC as zf,HC as Af,ne as Bf,JM as Cf,ag as Df,Yc as Ef,Jc as Ff,Xc as Gf,bo as Hf,Mn as If,Qc as Jf,kr as Kf,rl as Lf,Ar as Mf,el as Nf,il as Of,al as Pf,cl as Qf,se as Rf,gT as Sf,Rg as Tf,mT as Uf,yT as Vf,sB as Wf,Xe as Xf,vT as Yf,Qe as Zf,OT as _f,xo as $f,je as ag,_e as bg,Vg as cg,iB as dg,aB as eg,Bn as fg,Bg as gg,Nn as hg,Ug as ig,Wg as jg,R_ as kg,zt as lg,Fr as mg,Am as ng,Bo as og,Ev as pg,Im as qg,Li as rg,df as sg,hf as tg,Yv as ug,s$ as vg,$b as wg,fy as xg,Ay as yg,Bf as zg,Fy as Ag,Vy as Bg,TO as Cg,Uy as Dg,Wy as Eg,ts as Fg,$f as Gg,Gn as Hg,FO as Ig,bx as Jg,JE as Kg};
36
- //# sourceMappingURL=smbls.core.chunk-7RWDIF2S.esm.js.map
35
+ `),f&&(s+=f)}}s&&(r.textContent+=s)}var r_=new Set;function s_(t){if(!Array.isArray(t))return"";let e=[];for(let n=0;n<t.length;n++)typeof t[n]=="string"&&t[n].length&&e.push(t[n]);return e.sort(),e.join("|")}function mA(t,e,n){let o=s_(n);queueMicrotask(()=>{if(!t.__ref)return;let r;try{r=e(t,t.state,t.context)}catch{return}if(s_(r)===o)return;let s=t.__ref.path?t.__ref.path.join("."):t.key||"?";r_.has(s)||(r_.add(s),console.warn(`[smbls] subscribeTo function at "${s}" resolved to a DIFFERENT key list one microtask after create \u2014 wired [${n.join(", ")||"(none)"}], probed [${Array.isArray(r)?r.join(", "):String(r)}]. subscribeTo's function form is resolved ONCE at element-create time (registerSubscribeToEffects, @symbo.ls/element core.js) \u2014 this element stays wired to the ORIGINAL list for its whole lifetime, so this drift is invisible to the reactive effect and any key only present in the new list will never trigger onUpdate. If the watched key genuinely is not known until later (e.g. a module config that loads after shell boot), route the write through an imperative call instead of subscribeTo \u2014 see functions/moduleOpenBridge.js's moduleOpenPage (workspace repo) for the house pattern.`))})}function yA(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(n&&!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&j()&&mA(t,e,Array.isArray(o)?o:[]),!Array.isArray(o)||o.length===0)return;let r=t.__ref;for(let s=0;s<o.length;s++){let i=o[s];if(typeof i!="string"||i.length===0)continue;let a=i.split("."),c=a[0],l=a.slice(1),u={value:!1},f=N(()=>{let d=t.state&&(J(t.state)?t.state.root:null);if(!d||!J(d))return;let p=d;p=p[c];for(let h=0;h<l.length&&!(p==null||typeof p!="object");h++)if(J(p))p=p[l[h]];else break;if(!u.value)return;let g=!1;if(typeof t.onBeforeUpdate=="function"&&oe(t,()=>{try{if(Ti(r)){let h=t.onBeforeUpdate(t,t.state,t.context,{updateBySubscription:!0});h&&typeof h.then=="function"?h.then(()=>Re(r,!1),_=>{Re(r,!0),Oe("error",t,{hook:"onBeforeUpdate",error:_})||console.error("[DOMQL] subscribeTo onBeforeUpdate error:",_)}):(Re(r,!1),h===!1&&(g=!0))}}catch(h){Re(r,!0),Oe("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];_&&_!==f&&!_._disposed&&!_._isSubscribeToEffect&&typeof _._execute=="function"&&_._execute()}!g&&typeof t.onUpdate=="function"&&oe(t,()=>{try{t.onUpdate(t,t.state,t.context)}catch(h){Oe("error",t,{hook:"onUpdate",error:h})||console.error("[DOMQL] subscribeTo onUpdate error:",h)}})},{depth:r.path.length,label:H(r,"subscribeTo("+i+")")});u.value=!0,f._isSubscribeToEffect=!0,r.__effects.push(f)}}function Ll(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 Pl(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=bA(e);if(o){let r=Kh(n);if(r)return`@container ${o} ${r}`}}return/^@(media|supports|container)\b/.test(n)?n:`@media ${n}`}function Ml(t,e,n,o){return ir(t)?sr(()=>Br(e,n,!1,o)):Br(e,n,!1,o)}function bA(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=Uc(r,o);break}}return e&&(e.__breakpointContainer=n),n}var i_=new Set;function SA(t,e){let n=e?.__ref?.path?e.__ref.path.join("."):e?.key||"?",o=n+"::"+t;i_.has(o)||(i_.add(o),console.warn(`[smbls/css] "${t}" at ${n} is a CHILD-COMPONENT key nested inside a pseudo/selector block (":hover", "@dark", etc.) \u2014 that is never a valid CSS selector fragment. The rule is DROPPED (not shipped as a dead/never-matching selector). To reveal a child on a parent state, target the child's OWN class from the parent selector instead, e.g. move the declaration onto the child element itself, or use a sibling-selector combinator in a top-level style block.`))}var a_=new Map;function xA(t){let e=a_.get(t);if(e)return e;e=[];let n=o=>{if(o)for(let r of o)e.push(wr(r))};return n(Ze[t]),n(ci[t]),a_.set(t,e),e}function c_(t,e,n){if(Al(t,e)||n&&n.has(e))return!0;let o=xA(De(e));for(let r=0;r<o.length;r++){let s=o[r];if(Al(t,s)||n&&n.has(s))return!0}return!1}function Br(t,e,n,o){let r={},s=new Set,i=(a,c,l)=>{let u=l?new Set(Object.keys(r)):null;if(Y[a]){let f=Y[a](c,e,e.state,e.context);if(f){let d=Array.isArray(f)?f:[f];for(let p of d)p&&Object.assign(r,p)}}else r[a]=c;if(l)for(let f in r)u.has(f)||s.add(f)};for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a))continue;let c=t[a];if(typeof c=="function"&&(c=c(e,e.state,e.context)),!(c==null||typeof c=="function")){if(typeof c=="object"&&!Array.isArray(c)){if(a==="style"){for(let f in c){let d=c[f];typeof d=="function"&&(d=d(e,e.state,e.context)),!(d==null||typeof d=="function")&&i(f,d,c_(e,f,o))}continue}if(a==="vars"){let f=ki(c,e);if(f)for(let d in f)i(d,f[d],Al(e,d)||!!(o&&o.has(d)));continue}if(Ll(a,e)){let f=Br(c,e,!1,o);Object.keys(f).length&&(r[`[data-theme="${a.slice(1)}"] &`]=f);continue}if(/^[A-Z][A-Za-z0-9]*$/.test(a)){!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&j()&&SA(a,e);continue}let l=Pl(a,e),u=Ml(l,c,e,o);Object.keys(u).length&&(r[l]=u);continue}i(a,c,c_(e,a,o))}}if(n)for(let a in r)s.add(a);for(let a of s){let c=r[a];typeof c=="string"&&!c.includes("!important")&&(r[a]=c+" !important")}return r}var nn=t=>!!t&&typeof t=="object"&&!Array.isArray(t);function Z_(t,e){for(let n in e){let o=e[n];t[n]=nn(o)?Z_(nn(t[n])?t[n]:{},o):o}return t}function wA(t,e){if(!nn(e))return;let n;for(let o of t.split(" ")){let r=o?e[o]:null;nn(r)&&(n=Z_(n||{},r))}return n}function Bl(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)&&Bl(t[n],e+1))return!0}return!1}function X_(t,e,n){if(!e||typeof e!="object"||Array.isArray(e))return null;if(Ll(t,n)){let s=Br(e,n,!1);return Object.keys(s).length?{cssProp:`[data-theme="${t.slice(1)}"] &`,block:s}:null}let o=Pl(t,n),r=Ml(o,e,n);return Object.keys(r).length?{cssProp:o,block:r}:null}function kA(t){let e=t.__ref;for(let n of Object.keys(t)){if(!E_(n))continue;let o=t[n];if(!o||typeof o!="object"||Array.isArray(o)||!Bl(o))continue;let r=null,s,i=N(()=>{if(!t.node)return;let a=t.context?.designSystem;a&&dt(a);let c,l=!1;try{let u=X_(n,o,t),f=u?Co(u.block)+"::"+u.cssProp:null;if(f!==null&&f===s)l=!0;else if(s=f,u){let d=En({[u.cssProp]:u.block},null,t.context?.cssPrefix);c=d?d.split(" ").filter(Boolean):null}else c=null}finally{a&&ot()}if(!(l||!t.node.classList)){if(r)for(let u of r)t.node.classList.remove(u);if(c&&c.length)for(let u of c)t.node.classList.add(u);r=c}},{depth:e.path.length,label:H(e,"cssBlock("+n+")")});e.__effects.push(i)}}var CA=()=>!0,TA=(t,e)=>{let n=t.charAt(0);return(n===":"||n==="@"||n==="&"||n==="[")&&e&&typeof e=="object"&&!Array.isArray(e)?!0:!!Y[t]||!!(st&&st.has(t))||Mr(t)||t==="vars"};function AA(t,e,n){let o={},r=!1;for(let a in n)Object.prototype.hasOwnProperty.call(n,a)&&(a!=="data"&&a!=="aria"&&(TA(a,n[a])||xt.has(a))?o[a]=!0:r=!0);if(!r)return null;let s=Vg({[e]:n},t.tag||"div",o,CA),i=null;for(let a in s)/^on/i.test(a)||(i||(i={}),i[a]=s[a]);return i}function l_(t,e,n,o,r,s){let i=t.node,a=null,c=l=>{(a||(a=[])).push(l)};for(let l in o){let u=e.owners.get(l),f=u===n;if(!s&&u!==void 0&&!f)continue;let d;try{d=o[l](t)}catch(g){bt(t.__ref,"conditional("+n+")."+l,g),f&&c(l);continue}if(typeof d=="string"&&d.includes("{{")&&(d=Tt.call(t,d,t.state)),f&&i.getAttribute(l)!==e.written.get(l)){c(l);continue}if(d==null||typeof d=="object"||typeof d=="function"){f&&Q_(i,e,l);continue}let p=d===!1&&!xo(l)?null:String(je(l,d));c(l),!(f&&p===e.written.get(l))&&(u===void 0&&e.base.set(l,i.getAttribute(l)),mi(i,l,p),e.owners.set(l,n),e.written.set(l,p))}r.appliedAttrs=a}function Q_(t,e,n){t.getAttribute(n)===e.written.get(n)&&mi(t,n,e.base.get(n)),e.owners.delete(n),e.base.delete(n),e.written.delete(n)}function vA(t,e,n,o){let r=o.appliedAttrs;if(o.appliedAttrs=null,!!r)for(let s of r)e.owners.get(s)===n&&Q_(t.node,e,s)}function J_(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),s=n.getAttribute(o);s!==r&&(e.base.set(o,s),r==null?n.removeAttribute(o):n.setAttribute(o,r))}}var gl,OA=()=>gl===void 0?gl=!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&j():gl;function f_(t,e){let n=ju;typeof n=="function"?t.untrackedReads+=n(e):e()}function EA(t){let e=t.__ref;e.__conditionalRunners=[];let n=null,o=new Map;for(let r of Object.keys(t)){let s=r.charAt(0);if(s!=="."&&s!=="!")continue;let i=r.slice(1);if(!i)continue;if(/[:@\s>~+[\]]/.test(i)){if(typeof console<"u"&&console.warn){let _=i.split(/[:@\s>~+[\]]/)[0];globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(`[smbls] conditional \`${r}\` on ${t.key||"?"} will never match \u2014 the whole string after \`${s}\` is read as one prop name. Nest the selector inside instead: \`${s}${_}: { '${i.slice(_.length)}': {...} }\`.`)}continue}let a=t[r];if(!a||typeof a!="object")continue;let c=s==="!",l={lastMatch:!1,appliedKeys:null,appliedClasses:null,appliedAttrs:null,hides:!1,probe:!1,untrackedReads:0},u=AA(t,r,a);u&&!n&&(n=e.__conditionalAttrs={owners:new Map,base:new Map,written:new Map});let f=new Set;for(let _ in a){if(!Object.prototype.hasOwnProperty.call(a,_))continue;let m=_.charAt(0),b=a[_];if(!((m===":"||m==="@"||m==="&"||m==="[")&&b&&typeof b=="object"&&!Array.isArray(b))){if(_==="vars"&&nn(b)){for(let x of Object.keys(b))x&&f.add(wi(x));continue}f.add(_)}}let d=()=>{let _,m=l.probe,b;if(m?f_(l,()=>{b=t[i]}):b=t[i],b===void 0){let y=!!t.state&&i in t.state,S=t.state?t.state[i]:void 0;if(y||S!==void 0)_=S;else{let w=t.context?.cases?.[i];if(w===void 0)return;try{_=typeof w=="function"?w.call(t,t):w}catch(k){_=!1,e.__conditionalError=k,typeof console<"u"&&console.warn&&console.warn(`[smbls] conditional \`${r}\` case fn threw on ${t.key||"?"} \u2014 treating as false:`,k?.message||k)}}}else if(typeof b=="function")try{m?f_(l,()=>{_=b(t,t.state,t.context)}):_=b(t,t.state,t.context)}catch(y){_=!1,e.__conditionalError=y,typeof console<"u"&&console.warn&&console.warn(`[smbls] conditional \`${r}\` predicate threw on ${t.key||"?"} \u2014 treating as false:`,y?.message||y)}else _=b;m&&(l.probe=!1);let x=c?!_:!!_;if(!t.node)return;let D=t.context?.designSystem;if(x===l.lastMatch){if(x&&u&&t.node.setAttribute){D&&dt(D);try{l_(t,n,r,u,l,!1)}finally{D&&ot()}}return}l.lastMatch=x,D&&dt(D);try{if(x){let y={},S={},w=!1,k=!1;for(let R in a){if(!Object.prototype.hasOwnProperty.call(a,R))continue;let O=a[R],$=R.charAt(0);if(($===":"||$==="@"||$==="&"||$==="[")&&O&&typeof O=="object"&&!Array.isArray(O)){if(Ll(R,t)){let P=Br(O,t,!1,f);Object.keys(P).length&&(S[`[data-theme="${R.slice(1)}"] &`]=P,w=!0)}else{let P=Pl(R,t),Gt=Ml(P,O,t,f);Object.keys(Gt).length&&(S[P]=Gt,w=!0)}continue}let B=typeof O=="function"?O(t,t.state,t.context):O;if(B!=null){if(R==="hide"||R==="show"){let P=Y[R](B,t,t.state,t.context);P&&P.display&&(k=!0)}else if(Y[R]){let P=Y[R](B,t,t.state,t.context);if(P){let Gt=Array.isArray(P)?P:[P];for(let ct of Gt)ct&&Object.assign(y,ct)}}else if(st&&st.has(R))y[R]=B;else if(Mr(R))y[R]=B;else if(R==="vars"){let P=ki(B,t);P&&Object.assign(y,P)}}}(k||l.hides)&&(l.hides=k,yi(t,r,k));let v=Object.keys(y);if(v.length){Ie(t.node,y,t);for(let R of v){let O=o.get(R);O||(O=[],o.set(R,O));let $=O.findIndex(B=>B.key===r);$!==-1&&O.splice($,1),O.push({key:r,value:y[R]})}l.appliedKeys=v}else l.appliedKeys=null;if(w){let R=En(S,null,t.context?.cssPrefix,{state:!0}),O=R?R.split(" ").filter(Boolean):[];if(O.length&&t.node.classList){for(let $ of O)t.node.classList.add($);l.appliedClasses=O}else l.appliedClasses=null}else if(l.appliedClasses){for(let R of l.appliedClasses)t.node.classList.remove(R);l.appliedClasses=null}u&&t.node.setAttribute&&l_(t,n,r,u,l,!0)}else{if(l.appliedAttrs&&vA(t,n,r,l),l.appliedKeys){for(let y of l.appliedKeys){let S=o.get(y);if(!S)continue;let w=S.findIndex(k=>k.key===r);if(w!==-1)if(S.splice(w,1),S.length){let k=S[S.length-1].value,v=Fe(y),R=String(k).trim().replace(/\s*!important\s*$/,"");Ro(t,t.node.style,v)!==R&&Ie(t.node,{[y]:k},t)}else o.delete(y),Mr(y)?t.node.style.removeProperty(y):Fe(y)==="display"?jr(t,""):t.node.style[y]=""}l.appliedKeys=null}if(l.hides&&(l.hides=!1,yi(t,r,!1)),l.appliedClasses){for(let y of l.appliedClasses)t.node.classList.remove(y);l.appliedClasses=null}}}finally{D&&ot()}};e.__conditionalRunners.push(d);let p=t[i+"Deps"],g=it(t,p,d);OA()&&typeof(e.__exec&&e.__exec[i]||t[i])=="function"&&!(Array.isArray(p)&&p.length===0)&&(l.probe=!0);let h=N(g,{depth:e.path.length,label:H(e,"conditional("+r+")")});l.probe&&(l.probe=!1),l.untrackedReads>0&&h._sources.size===0&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn(`[smbls] conditional \`${r}\` on ${t.key||"?"} subscribed to nothing \u2014 its predicate read state on its first run without subscribing to it (\`in\`, Object.keys, a \`__\` key, parse()), so no state write will ever re-evaluate it (only a direct element.update() on this element re-runs it). Declare \`${i}Deps: [...]\` (state-key strings or \`(el, s) => \u2026\` selectors) so the subscription is armed unconditionally, or \`${i}Deps: []\` when it is static on purpose.`)),e.__effects.push(h)}}var _l=new WeakSet,ml=new WeakMap;function RA(t){let e=ml.get(t);if(e==="painted")return!1;if(e===void 0){ml.set(t,"open");let n=t.defaultView,o=()=>{ml.set(t,"painted")};n&&typeof n.requestAnimationFrame=="function"?n.requestAnimationFrame(o):setTimeout(o,0)}return!0}var yl=new WeakSet;function DA(t){if(yl.has(t))return;yl.add(t);let e=()=>{yl.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)}function IA(t,e){let n=t.ownerDocument;if(n&&!RA(n)){if(V.hydration!==null&&e&&e.context&&e.context.__hydration){DA(n);return}_l.has(n)||(_l.add(n),queueMicrotask(()=>{_l.delete(n);let o=n.body||n.documentElement;o&&o.offsetWidth}))}}var bl=new WeakSet,u_=!1;function d_(t){return t.startsWith("[data-theme=")||t.startsWith("@media")&&t.includes("prefers-color-scheme")}function vl(t,e){let n={...t};for(let o in e){let r=e[o],s=n[o];n[o]=r&&typeof r=="object"&&s&&typeof s=="object"?vl(s,r):r}return n}function tm(t,e){let n={};for(let o in t){let r=t[o];if(r&&typeof r=="object"){let s=tm(r,e);Object.keys(s).length&&(n[o]=s)}else e(o)||(n[o]=r)}return n}function p_(t,e,n){let o=Nl(t);if(!o)return!1;for(let r=0;r<o.length;r+=3){let s=o[r+1];if(!n.has(s))continue;let i=e[s];if(!(i==null||typeof i=="object")&&ig(o[r],i,o[r+2]))return!0}return!1}function LA(t,e,n){let o=1/0,r=-1/0;for(let i of e.values())i<o&&(o=i),i>r&&(r=i);if(n)for(let i of n.values())i>r&&(r=i);if(r<=o)return null;let s=null;for(let[i,a]of e){if(a===r)continue;let c=Nl(i);if(c)for(let l=0;l<c.length;l+=3){let u=c[l],f=c[l+1],d=c[l+2],p=t[f]!=null?e.get(f):void 0,g=n&&n.get(u),h=p!==void 0&&p>a&&li(u,t[f],d),_=!h&&g!==void 0&&g>a&&li(u,void 0,d);if(h||_){h&&delete t[i],s||(s=new Set),s.add(i);break}}}return s}var h_=new Map;function Nl(t){let e=h_.get(t);if(e!==void 0)return e;let n=De(t),o=Ze[n];if(e=null,Array.isArray(o)){e=[];for(let r of o)e.push(r,wr(r),n)}return h_.set(t,e),e}var em=new Set(["page","zoom"]),PA=(t,e)=>{em.add(t);let n=typeof CSS<"u"?CSS:null;if(!n||typeof n.supports!="function")return;let o=!1;try{o=n.supports(De(t),String(e))}catch{o=!1}o&&console.warn(`[smbls] css: "${t}: ${e}" is valid CSS, but smbls has no entry for "${t}", so the element gets no CSS for it. Write it in style: { ${t}: \u2026 } for now, and report the missing property.`)};function nm(t){let{node:e}=t;if(!e)return;if(u_||(u_=!0,En({display:"none"})),bl.has(t)){console.error("[applyCssInProps] re-entry detected for element",t.key,"prop path:",t.__ref?.path);return}bl.add(t);let n=t.context?.designSystem;n&&dt(n),jc();try{let o={},r=!1,s=[],i=null,a=null,c=null,l=null,u=t.__ref&&t.__ref.__mergeLayer,f,d=null,p=null,g=!1,h=(y,S)=>{if(S&&typeof S=="object"&&d_(y)){c||(c={});let w=c[y];w&&(S=vl(w,S)),c[y]=S}else(S===null||typeof S!="object")&&(l||(l=new Set),l.add(y),f!==void 0&&(d||(d=new Map),d.set(y,f)));o[y]=S};if(Object.prototype.hasOwnProperty.call(t,"theme")&&typeof t.theme!="function"&&Y.theme){let y=Y.theme(t.theme,t,t.state,t.context);if(y){let S=w=>{for(let k in w){let v=w[k];v&&typeof v=="object"?d_(k)&&(i||(i={}),i[k]=v):Nl(k)&&(a||(a=[])).push(k),o[k]=v}};if(Array.isArray(y))for(let w of y)w&&S(w);else S(y);r=!0}}let _=(y,S)=>{if(y==="vars"){let w=ki(S);if(w){for(let k in w)h(k,w[k]);r=!0}return}if(y==="hide"||y==="show"){let w=Y[y](S,t,t.state,t.context);w&&w.display&&(g=!0);return}if(Y[y]){let w=Y[y](S,t,t.state,t.context);if(w){if(Array.isArray(w)){for(let k of w)if(k)for(let v in k)h(v,k[v])}else for(let k in w)h(k,w[k]);r=!0}}else if(st&&st.has(y))S!=null&&typeof S!="object"&&(h(y,S),r=!0);else if(y.charCodeAt(0)===45)S!=null&&typeof S!="object"&&(h(y,S),r=!0);else if(y.charAt(0)==="&"||y.charAt(0)==="@"||y.charAt(0)===":"||y.charAt(0)==="["){if(S&&typeof S=="object"&&!Array.isArray(S)){if(Bl(S))return;let w=X_(y,S,t);w&&(h(w.cssProp,w.block),r=!0)}}else(typeof S=="string"||typeof S=="number")&&!em.has(y)&&!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&j()&&PA(y,S)};if(typeof t.class=="string"){let y=wA(t.class,t.context?.designSystem?.class);if(y)for(let S in y)_(S,y[S])}let m=l?new Set(l):null,b=t.tag||"div";for(let y of Object.keys(t)){if(typeof t[y]=="function"){let w=u&&u.get(y);w!==void 0&&Je(b,y)&&(p||(p=new Map),p.set(De(y),w));continue}if(f=u?u.get(y):void 0,y==="vars"){_(y,t[y]);continue}if(xt.has(y)||y==="theme")continue;let S=y.charCodeAt(0);S>=65&&S<=90||ee(y)||di(b,y)||_(y,t[y])}f=void 0;let x=d?LA(o,d,p):null;if(a&&l)for(let y of a)l.has(y)||!(y in o)||p_(y,o,l)&&delete o[y];if(i){let y=l?S=>l.has(S)||p_(S,o,l):null;for(let S in i){let w=y?tm(i[S],y):i[S];c&&c[S]&&(w=vl(w,c[S])),Object.keys(w).length?o[S]=w:delete o[S]}}if(hA(t,o,l,x?new Set([...m||[],...x]):m),yi(t,"static",g),r){o.display&&String(o.display).includes("!important")&&(Ie(e,{display:o.display},t),delete o.display);let y=t.display!=null&&typeof t.display!="function"?t.display:t.hide===!0||t.show===!1?"none":null;typeof y=="string"&&y!==""&&o.display&&o.display!==y&&(o.display=y);let S=En(o,null,t.context?.cssPrefix);if(s=S?S.split(" ").filter(Boolean):[],S&&e.classList){let w=s,k=!1;for(let v of w)e.classList.add(v),k||(v.charCodeAt(0)===95&&v.charCodeAt(1)===99||v.charCodeAt(0)===95&&v.indexOf("_c",1)!==-1)&&(k=!0);k&&IA(e,t)}}let D=t.__ref;if(D){let y=D.__staticCssClasses;if(y&&e.classList){let S=new Set(s);for(let w of y)S.has(w)||e.classList.remove(w)}D.__staticCssClasses=s}gA(t)}finally{Vc(),n&&ot(),bl.delete(t)}}var $l=t=>!!Y[t]||!!(st&&st.has(t))||typeof t=="string"&&t.charCodeAt(0)===45;function Fl(t){t&&t.node&&nm(t)}function MA(t){let{node:e}=t;if(!e||!e.setAttribute)return;if(t.aria&&typeof t.aria=="object")for(let r in t.aria){let s=t.aria[r];if(typeof s=="function"||typeof s=="object"||s==null||typeof s=="string"&&s.includes("{{"))continue;let i="aria-"+r.replace(/[A-Z]/g,a=>"-"+a.toLowerCase());e.setAttribute(i,je(i,s))}let n=jg(t);for(let r in n){let s=n[r];s!=null&&s!==!1&&typeof s!="function"&&typeof s!="object"&&e.setAttribute(r,s===!0?"":s)}let o=t.tag||"div";for(let r of Object.keys(t)){if(typeof t[r]=="function"||xt.has(r)||r==="on"||n[r]!==void 0)continue;let s=r.charCodeAt(0);if(!(s>=65&&s<=90)&&!ee(r)&&!Je(o,r)&&_e(o,r)){let i=t[r];if(i==null)continue;if(typeof i=="string"&&i.includes("{{")){if(!Nn[r])continue;i=Tt.call(t,i,t.state)}if(i==null||typeof i=="function"||typeof i=="object"||i===!1&&!xo(Qe(r)||r))continue;let a=Qe(r)||r;e.setAttribute(a,je(a,i))}}}function jl(t,e){let{node:n}=t;if(!n||!n.setAttribute)return;let o=e.charCodeAt(0);if(o>=65&&o<=90||ee(e))return;let r=t.tag||"div";if(Je(r,e)||!_e(r,e))return;let s=Qe(e)||e,i=s.toLowerCase(),a=t.__ref&&t.__ref.__effects,c=!1;if(a)for(let f=0;f<a.length;f++){let d=a[f];d&&d._attrName===i&&!d._disposed&&typeof d._execute=="function"&&(c=!0,d._execute())}if(c)return;let l=t[e],u=Nn[e];if(u&&l!=null){let f=u(t);f!==void 0&&(l=f)}typeof l=="string"&&l.includes("{{")&&(l=Tt.call(t,l,t.state)),$n(n,s,l)}function BA(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{}__(r),tn.delete(t),n.style.height="",r.appliedMax!=null&&n.style.maxHeight===r.appliedMax&&(n.style.maxHeight=""),y_(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){Nr(t,!0);return}if(!(n.scrollHeight>0)){r.awaitingLayout=!0,g_(t,r);return}r.awaitingLayout=!1;let i=FA(n),a=jA(i),c=n.style.height;n.style.height="0px",a&&Sl(n);let l=n.scrollHeight;if(!(l>0)){n.style.height=c,a&&Sl(n);return}let u=VA(n,i),f=u!=null&&l<u?u:l,d=zA(i),p=d!=null&&f>d;n.style.height=WA(p?d:f,i)+"px",a&&Sl(n),y_(n,r,p),r.lastMeasure=l,r.lastWidth=n.clientWidth,g_(t,r)}},o.__eventCleanup||(o.__eventCleanup=[]),o.__eventCleanup.push(()=>{try{n.removeEventListener("input",r.resize)}catch{}__(r),tn.delete(t)})),r.active||(n.addEventListener("input",r.resize),r.active=!0,$A(t,r));let s=typeof e=="object"&&e.max!=null?String(e.max):null;s!==r.appliedMax&&(s==null?r.appliedMax!=null&&n.style.maxHeight===r.appliedMax&&(n.style.maxHeight=""):n.style.maxHeight=s,r.appliedMax=s),r.resize()}function Nr(t,e){let n=t.__ref?.__autoGrow;n&&(e&&(n.attachAttempts=0,n.firstAttemptAt=null),tn.add(t),$r())}function NA(){let t=Array.from(tn);tn.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=Oo()),r.attachAttempts+=1,r.attachAttempts<=A_&&Oo()-r.firstAttemptAt<v_&&(tn.add(n),$r());continue}r.attachAttempts=0,r.firstAttemptAt=null,r.resize()}}}function g_(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 s=()=>{if(!e.active||!n.isConnected||!(n.scrollHeight>0))return;if(e.awaitingLayout){e.awaitingLayout=!1,Nr(t,!0);return}let a=n.clientWidth;e.lastWidth!=null&&Math.abs(a-e.lastWidth)<.5||(e.lastWidth=a,Nr(t,!0))},i;try{i=new r(s),i.observe(n)}catch{return}e.watch=i}function __(t){let e=t.watch;if(e){t.watch=null;try{e.disconnect()}catch{}}}function $A(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&&Nr(t,!0)},()=>{})}function FA(t){let e=t.ownerDocument&&t.ownerDocument.defaultView;try{return e&&e.getComputedStyle?e.getComputedStyle(t):null}catch{return null}}var Un=t=>typeof t=="string"&&/^\s*-?\d*\.?\d+px\s*$/.test(t)?parseFloat(t):null,Vl=t=>(Un(t.paddingTop)||0)+(Un(t.paddingBottom)||0),om=t=>(Un(t.borderTopWidth)||0)+(Un(t.borderBottomWidth)||0);function jA(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 Sl(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 VA(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=Un(e.lineHeight)||UA(t,e);return o>0?n*o+Vl(e):null}var Or=["fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontFamily","lineHeight","letterSpacing"],m_=new WeakMap;function UA(t,e){let n=t.ownerDocument,o=n&&(n.body||n.documentElement);if(!o||!n.createElement)return null;let r=m_.get(n);r||(r=new Map,m_.set(n,r));let s=Or.map(l=>e[l]||"").join("|");if(r.has(s))return r.get(s);let i=n.createElement("textarea");i.rows=1,i.setAttribute("aria-hidden","true"),i.tabIndex=-1;let a=i.style;a.position="absolute",a.visibility="hidden",a.top="0",a.left="-9999px",a.height="auto",a.minHeight="0",a.maxHeight="none",a.padding="0",a.border="0",a.boxSizing="content-box",a.overflow="hidden";for(let l=0;l<Or.length;l++)e[Or[l]]&&(a[Or[l]]=e[Or[l]]);let c=0;try{o.appendChild(i),c=i.clientHeight}catch{c=0}finally{i.parentNode&&i.parentNode.removeChild(i)}return c>0?(r.set(s,c),c):null}function WA(t,e){return e?e.boxSizing==="border-box"?t+om(e):e.boxSizing==="content-box"?Math.max(0,t-Vl(e)):t:t}function zA(t){if(!t)return null;let e=Un(t.maxHeight);if(e==null||!(e>0))return null;let n=Vl(t),o=om(t),r=t.boxSizing==="border-box"?e-o:e+n,s=Un(t.lineHeight);if(!(s>0))return r;let i=Math.floor((r-n)/s+1e-6);return i>=1?i*s+n:r}function y_(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 b_=["srcObject","muted"],HA=(t,e)=>t==="muted"?e===!0||e===""||e==="true"||e==="muted":e??null;function GA(t){let e=t.node,n=t.__ref;if(!(!e||!n))for(let o=0;o<b_.length;o++){let r=b_[o],s=t[r];if(s===void 0||!(r in e))continue;let i=a=>{let c=HA(r,a);if(e[r]!==c)try{e[r]=c}catch(l){bt(n,r,l)}};if(typeof s=="function"){let a=it(t,t[r+"Deps"],s),c=N(()=>{try{i(a(t,t.state,t.context))}catch(l){bt(n,r,l)}},{depth:n.path.length,label:H(n,r)});n.__effects.push(c),n.__exec[r]=s}else i(s);r==="srcObject"&&(n.__releaseMedia=()=>{try{e.srcObject!=null&&(e.srcObject=null)}catch{}})}}function qA(t){if(!t.autoGrow)return;if(globalThis.__SMBLS_BUILD_DROP_F_autoGrow__)return jt("autoGrow",t);let e=t.node;if(!e||e.tagName!=="TEXTAREA")return;let n=t.__ref,o=t.autoGrow,r=typeof o=="function"?it(t,t.autoGrowDeps,o):null,s=N(()=>{let i=t.autoGrow,a=i;if(typeof i=="function")try{a=(i===o&&r?r:i)(t,t.state,t.context)}catch{a=null}BA(t,a)},{depth:n.path.length,label:H(n,"autoGrow")});n.__effects||(n.__effects=[]),n.__effects.push(s),r&&(n.__exec.autoGrow=o)}var rm=new Set(["onSwipe","onSwipeLeft","onSwipeRight","onSwipeUp","onSwipeDown"]);function sm(t,e){let n=!1;for(let o of Object.keys(t)){if(!ee(o)||rm.has(o))continue;if(o==="onInView"||o==="onLeaveView"){n=!0;continue}let r=Nc(o);if(r){$c(r,t,t[o]);continue}let s=t[o],i=null;if(s&&typeof s=="object"&&!Array.isArray(s)&&(i=s,s=i.handler),s=Sr(t,s),typeof s!="function")continue;let a=ei(o);Rn.has(a)||Bc(LT(a),t,s,i)}KA(t),n&&V.viewEvents&&V.viewEvents(t)}function KA(t){let e=t.node;if(!e||!e.addEventListener)return;let n={},o=!1;for(let d of rm){let p=t[d];typeof p=="function"&&(n[d]=p,o=!0)}if(!o)return;let r=typeof t.swipeThreshold=="number"?t.swipeThreshold:40,s=typeof t.swipeMaxDuration=="number"?t.swipeMaxDuration:600,i=0,a=0,c=0,l=!1,u=d=>{let p=d.touches&&d.touches[0]||d.changedTouches&&d.changedTouches[0];p&&(i=p.clientX,a=p.clientY,c=Date.now(),l=!0)},f=d=>{if(!l)return;l=!1;let p=d.changedTouches&&d.changedTouches[0]||d.touches&&d.touches[0];if(!p)return;let g=p.clientX-i,h=p.clientY-a,_=Date.now()-c;if(_>s)return;let m=Math.abs(g),b=Math.abs(h);if(Math.max(m,b)<r)return;let x;if(m>b*1.2)x=g<0?"left":"right";else if(b>m*1.2)x=h<0?"up":"down";else return;let D="onSwipe"+x.charAt(0).toUpperCase()+x.slice(1),y=n[D],S=n.onSwipe;y&&y.call(t,d,t,t.state,t.context),S&&S.call(t,{direction:x,dx:g,dy:h,dt:_,event:d},t,t.state,t.context)};e.addEventListener("touchstart",u,{passive:!0}),e.addEventListener("touchend",f,{passive:!0}),t.__ref.__eventCleanup||(t.__ref.__eventCleanup=[]),t.__ref.__eventCleanup.push(()=>{try{e.removeEventListener("touchstart",u)}catch{}try{e.removeEventListener("touchend",f)}catch{}})}function Ul(t,e,n,o,r,s,i,a){let c=e;(typeof c=="string"||typeof c=="number")&&(c={text:c});let l=o;if(typeof o=="function")try{l=o(t,c)}catch{l=null}let u=typeof o=="function"?Lr(l):r;if(a&&!i&&(u=Pr(u,Lr(e))),i){let f=e;(typeof e=="string"||typeof e=="number")&&(f={value:e,text:e}),c=l?{...l,state:f}:{state:f}}else l&&(c=Wt(l,c));return c=Vr(c,s),{def:c,key:R_(c?.key,e,n,t),supplied:u,props:l}}function Vr(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 Ve=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},im=(t,e)=>e?e.nextSibling:Cr(t.node,t.__ref.__textNode),Ci=(t,e,n)=>{let o=im(t,n);return e!==o&&t.node.insertBefore(e,o),e},Ur=(t,e)=>{let n=im(t,e);return n?{position:"before",node:n}:void 0};function Wl(t,e,n){let o=null;for(let r=0;r<e.length;r++){if(n&&n.has(e[r]))continue;let s=Ve(t[e[r]]);s&&(o=Ci(t,s,o))}}function S_(t,e,n,o){let r=V.rows,s=r!==null&&t.childrenAs!=="state"&&t.tag!=="fragment"?r.track(t):null,i=zl(t,e,n,o,!0,s);return t.__ref.__plainRows=s&&(i||e==null||e===!1)?s:null,i}function zl(t,e,n,o,r,s){if(!e||!t.node)return;let i=t.childExtends,a=en(t,"childProps"),c=t.__ref,l=V.mount,u=o>0&&t.tag!=="fragment"&&c?o:0;if(Array.isArray(e)){let f=t.childProps,d=t.childrenAs==="state",p=(g,h)=>{let _=Ul(t,e[g],g,f,a,i,d,r);s&&s.add(_.key,e[g],_,f,i);try{let m=zt(jn(_.def,_.supplied),t,_.key,n,h);return!m&&s&&s.none(_.key),_i(t,m),m}catch(m){if(s&&s.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):`,m?.message||m)}return null}};if(!u){for(let g=0;g<e.length&&!(c&&c.__disposed);g++)p(g);return!0}return l.rows(t,e.length,p,u),!0}if(typeof e=="string"){let f=P_(e,t);if(Array.isArray(f))return zl(t,f,n,o,!0,s)}if(typeof e=="object"){let f=(p,g)=>{if(xt.has(p))return!1;let h=e[p];if(h==null||h===!1)return!1;let _=r?Pr(a,Lr(h)):a;(typeof h=="string"||typeof h=="number")&&(h={text:h}),t.childProps&&(h=Wt(t.childProps,h)),h=Vr(h,i);let m=zt(jn(h,_),t,Si(t,p),n,g);return _i(t,m),m};if(!u){for(let p in e)f(p);return}let d=[];for(let p in e)d.push(p);l.rows(t,d.length,(p,g)=>f(d[p],g),u)}}function vo(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,s=r&&r.__exec&&r.__exec.value,i=typeof s=="function",a=t.value!=null&&typeof t.value!="function";if(i||a){let u;if(i)try{u=s(t,t.state,t.context)}catch{return}else u=t.value,typeof u=="string"&&u.includes("{{")&&(u=Tt.call(t,u,t.state));let f=u==null?"":String(u);n.value!==f&&(n.value=f);return}let c=e||!(r&&r.__selectSynced);if(r&&(r.__selectSynced=!0),!c)return;let l=-1;for(let u=0;u<o.length;u++)o[u].defaultSelected&&(l=u);l>=0&&n.selectedIndex!==l&&(n.selectedIndex=l)}function am(t,e){let{children:n,content:o}=t,r=t.childExtends,s=typeof n=="function",i=s||B_(t,"children");if(typeof n=="function"){let f=n,d=t.__ref,p=!1,g,h=it(t,t.childrenDeps,f),_=N(()=>{let m=p;p=!0;let b;try{b=h(t,t.state,t.context)}catch(R){if(typeof console<"u"&&console.error){let O=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] \`children:\` factory threw at ${O}${m?"":" (initial run, treating as empty)"}:`,R?.message||R)}return}if(!m){g=b;return}if(b===t.children)return;Qg(t,b),t.children=b,d.__mount&&d.__mount.chunkGen++;let x=typeof t.onContentUpdate=="function",D=x?[]:null,y=x?[]:null,S=x?[]:null;if(Array.isArray(b)&&t.childrenAs==="state"){let R=t.childProps,O=[],$=new Map;for(let K=0;K<b.length;K++){let mt=b[K],et=R;if(typeof R=="function")try{et=R(t,mt)}catch{et=null}let wt=R_(et&&et.key,mt,K,t);O.push(wt),$.set(wt,{rawChild:mt,childProps:et})}let B=new Set(O),P=Gg(d,d.__children.slice());for(let K of P)if(!B.has(K)){let mt=t[K];mt?.remove&&mt.remove(),delete t[K],y&&y.push(K)}let Gt=t.childExtends,qt=!(t.tag==="fragment")&&!!t.node,He=null,ye=new Set;for(let K of O){let mt=$.get(K),et=mt.rawChild,wt=t[K];if(wt&&wt.state){if(et&&typeof et=="object"){let Q=wt.state,pt=Q.$replace||Q.replace,kt=Q.$update||Q.update;try{if(typeof pt=="function")pt.call(Q,et);else if(typeof kt=="function"){for(let ft in Q)if(!(ft==="__element"||ft==="root"||ft==="parent"||ft==="update")&&!Object.prototype.hasOwnProperty.call(et,ft))try{Q[ft]=void 0}catch{}kt.call(Q,et)}else for(let ft in et)Q[ft]=et[ft]}catch(ft){if(typeof console<"u"&&console.error){let be=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] child "${K}" failed to patch at ${be} (reconcile, keeping its previous data for this pass):`,ft?.message||ft)}}}if(S&&S.push(K),qt){let Q=Ve(wt);Q&&(He=Ci(t,Q,He))}continue}let Z=et;(typeof et=="string"||typeof et=="number")&&(Z={value:et,text:et});let lt=mt.childProps,M=Vr(lt?{...lt,state:Z}:{state:Z},Gt),X=typeof R=="function"?Lr(lt):en(t,"childProps"),cn;try{cn=zt(jn(M,X),t,K,e,qt?Ur(t,He):void 0)}catch(Q){if(typeof console<"u"&&console.error){let pt=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] child "${K}" failed to construct at ${pt} (reconcile, skipping this row):`,Q?.message||Q)}ye.add(K);continue}if(d.__disposed)return;if(qt){let Q=Ve(cn);Q&&(He=Q)}D&&D.push(K)}qt&&Wl(t,O,ye.size?ye:null),d.__children=ye.size?O.filter(K=>!ye.has(K)):O,x&&(D.length||y.length)&&hi(t,{added:D,removed:y,kept:S}),vo(t,!1);return}if(t.childrenAs!=="state"&&d.__plainRows&&V.rows.reconcile(t,d,b,e,x)){vo(t,!1);return}let v=x?[...d.__children]:null;for(let R of Gg(d,[...d.__children])){let O=t[R];O?.remove&&O.remove(),delete t[R]}d.__children=[],S_(t,b,e,0),vo(t,!1),x&&hi(t,{added:[...d.__children],removed:v,kept:[]})},{depth:d.path.length,label:H(d,"children")});d.__effects.push(_),n=g,Qg(t,n),t.children=n}let a=V.mount,c=a!==null?a.budgetOf(t,e):0,l=Tr(t.__ref),u=s?S_(t,n,e,c):zl(t,n,e,c,i);if(c&&Tr(t.__ref)>l){a.defer(t,c,()=>x_(t,e,n,o,r,u,c));return}x_(t,e,n,o,r,u,c)}function x_(t,e,n,o,r,s,i){let a=Tr(t.__ref);if(o!=null&&!(o&&o.__ref)){let c=o;typeof c=="string"||typeof c=="number"?c={text:c}:typeof c!="object"&&(c={}),t.childProps&&(c=Wt(t.childProps,c)),c=Vr(c,r);let l=Pr(en(t,"childProps"),en(t,"content"));_i(t,zt(jn(c,l),t,"content",e))}if(!(n&&!s)){if(i&&Tr(t.__ref)>a){V.mount.defer(t,i,()=>w_(t,e,r,i));return}w_(t,e,r,i)}}function w_(t,e,n,o){let r=t.context?.components||{},s=t.__ref&&t.__ref.__runtimeSource,i=s?{}:null;{let l=Object.keys(t);for(let u=0;u<l.length;u++){let f=l[u];if(!f.endsWith("Extends")||typeof t[f]!="string")continue;let d=f.slice(0,-7);if(!d||d.charCodeAt(0)<65||d.charCodeAt(0)>90)continue;let p={extends:t[f]};delete t[f];for(let g=u+1;g<l.length;g++){let h=l[g],_=h.charCodeAt(0);if(_>=65&&_<=90||xt.has(h)||typeof t[h]=="function"&&(h.startsWith("on")||h.startsWith(".")))break;let m=t[h];m!==void 0&&(p[h]=m,delete t[h],i&&Ir(s,h)&&(i[d]||(i[d]={}),i[d][h]=s[h]))}t[d]&&typeof t[d]=="object"?t[d]={...p,...t[d]}:t[d]=p}}let a=Object.keys(t),c=l=>{if(xt.has(l)||typeof t[l]!="object"||t[l]===null)return!1;let u=l.charCodeAt(0);if(u<65||u>90)return!1;let f=t[l];if(f.__ref)return!1;if(!f.extends&&!f.extend){let p=r[l]||r[`smbls.${l}`];p&&(f={...f,extends:p})}t.childProps&&(f=Wt(t.childProps,f)),f=Vr(f,n);let d=s?Pr(en(t,"childProps"),Pr(i[l]||null,en(t,l))):null;_i(t,zt(jn(f,d),t,l,e))};if(!o){for(let l of a)c(l);return}V.mount.run(t,a.length,l=>c(a[l]),o)}function Eo(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 c=r.parentNode;if(c){if(n?.position==="before"&&n.node)c.insertBefore(o,n.node);else if(n?.position==="after"&&n.node){let l=n.node.nextSibling;c.insertBefore(o,l||r)}else c.insertBefore(o,r);ti();return}}let s=e?.node||(e?.nodeType?e:null);if(!s)return;if(!n&&V.hydration!==null){let c=t.context&&t.context.__hydration;if(c&&V.hydration.place(c,t,e,s,o))return}let i=n?.node,a=o.parentNode===s;if(i&&i.parentNode!==s)(!a||o.nextSibling)&&s.appendChild(o);else if(n?.position==="before"&&i)i!==o&&(!a||o.nextSibling!==i)&&s.insertBefore(o,i);else if(n?.position==="after"&&n.node){let c=n.node.nextSibling;c===o||(c?s.insertBefore(o,c):s.appendChild(o))}else(!a||o.nextSibling)&&s.appendChild(o);ti()}var bi=3;function Ti(t){return!t||t.__inBeforeUpdate||(t.__beforeUpdateFailCount||0)>=bi?!1:(t.__inBeforeUpdate=!0,!0)}function Re(t,e){t&&(t.__inBeforeUpdate=!1,e?(t.__beforeUpdateFailCount=(t.__beforeUpdateFailCount||0)+1,t.__beforeUpdateFailCount===bi&&typeof console<"u"&&console.error&&console.error(`[DOMQL] onBeforeUpdate failed ${bi}x in a row on this element \u2014 pausing automatic retries until a future prop/state change re-arms it.`)):t.__beforeUpdateFailCount=0)}function _t(t,e,n){let o=t.charAt(0).toLowerCase()+t.slice(1);Oe(o,e,n);let r="on"+t,s=e[r];if(typeof s=="function"){let c=t==="Render"?"__inRender":t==="RenderRouter"?"__inRenderRouter":null;if(c){if(e.__ref[c])return!0;e.__ref[c]=!0}let l=e.context?.designSystem;l&&dt(l);let u=!!c;try{let f=s(e,e.state,e.context,n);if(f&&typeof f.then=="function"){let d=e.__ref;return f.catch(p=>{re(e,r,p)}).finally(()=>{c&&d&&(d[c]=!1)}),u=!1,!0}if(f===!1)return!1}catch(f){if(re(e,r,f),e.context?.strictMode)throw f}finally{l&&ot(),u&&e.__ref&&(e.__ref[c]=!1)}}return!0}function ol(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"&&Ti(o))try{let a=n.onBeforeUpdate(n,n.state,n.context,e);if(a&&typeof a.then=="function")a.then(()=>Re(o,!1),c=>{Re(o,!0),Oe("error",n,{hook:"onBeforeUpdate",error:c})||console.error("[DOMQL] onBeforeUpdate error:",c)});else if(Re(o,!1),a===!1)return n}catch(a){throw Re(o,!0),a}let r=!t||Object.keys(t).length===0,s=[],i=!1;$u(()=>{if(t.state&&J(n.state)&&n.state.$update(t.state),t.text!==void 0&&(n.text=t.text,!o.__exec.text&&n.node&&Vn(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=Fn(n,t.style);for(let c in a){let l=a[c];if(l==null)continue;let u=Fe(c),f=String(l).replace(/\s*!important\s*$/,"");n.node.style.setProperty(u,f,"important")}}n.style||(n.style={}),Object.assign(n.style,t.style)}if(t.attr&&n.node?.setAttribute){for(let a in t.attr){let c=t.attr[a];$n(n.node,a,c)}n.attr||(n.attr={}),Object.assign(n.attr,t.attr)}if(t.data&&n.node?.dataset){for(let a in t.data)n.node.dataset[a]=t.data[a];n.data||(n.data={}),Object.assign(n.data,t.data)}if(t.vars&&typeof t.vars=="object"&&!Array.isArray(t.vars)){let a=n.vars&&typeof n.vars=="object"&&!Array.isArray(n.vars)?n.vars:null;n.vars={...a,...t.vars},i=!0}for(let a in t){if(xt.has(a)||a==="state")continue;let c=t[a],l=n[a];if(l&&l.__ref&&typeof l.update=="function")l.update(c,e);else if(typeof c=="object"&&c!==null){let u=a.charCodeAt(0);u>=65&&u<=90&&zt(c,n,a,e)}else a!=="text"&&a!=="html"&&a!=="style"&&a!=="attr"&&a!=="data"&&(n[a]=c,typeof c!="function"&&s.push(a))}});for(let a=0;a<s.length;a++)jl(n,s[a]);if(n.node){let a=i;for(let c=0;!a&&c<s.length;c++)$l(s[c])&&(a=!0);a&&Fl(n)}if(n.node&&r&&o.__effects&&o.__effects.length)for(let a=0;a<o.__effects.length;a++){let c=o.__effects[a];c&&!c._disposed&&!c._isSubscribeToEffect&&typeof c._execute=="function"&&c._execute()}else if(n.node&&o.__conditionalRunners)for(let a of o.__conditionalRunners)a();return Oe("update",n),!e.preventListeners&&typeof n.onUpdate=="function"&&n.onUpdate(n,n.state,n.context,e),n}var Hl=Symbol("handlerChain.none"),YA=new Set(["inView","leaveView"]),ZA=new Set(["bridgeMount","bridgeUpdate","bridgeDestroy"]),Do=new WeakMap,cm=new WeakMap,Yl=!1,Gl=t=>t!==null&&typeof t=="object"&&t.always===!0;function XA(t){let e=ei(t);return YA.has(e)?!0:Rn.has(e)&&!ZA.has(e)}var lm=new Set;function QA(t){lm.has(t)||!(!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&j())||(lm.add(t),console.warn(`[smbls] \`${t}: { always: true, \u2026 }\` \u2014 \`always\` composes the lifecycle hooks (onInit, onRender, onCreate, onMounted, onUpdate, onRemove, \u2026; not the bridge hooks) and onInView / onLeaveView only. \`${t}\` keeps the default merge: an extender's own \`${t}\` replaces this one. Run the shared step from a lifecycle hook, or call it from the extender's handler.`))}function ql(t){return t&&typeof t=="object"?{handler:t.handler,options:t}:{handler:t,options:null}}function Wr(t,e){let n={always:t,own:e,list:e?t.concat(e):t,next:null,prims:null,cleared:null},o=function(...s){return ev(n,this,s)};return Do.set(o,n),Yl=!0,o}function Kl(t){let e=cm.get(t);return e||(e=Wr([ql(t)],null),cm.set(t,e)),e}function JA(t,e){let n=Do.get(t);if(e==null||e===!1)return n.own?n.cleared||(n.cleared=Wr(n.always,null)):t;if(typeof e!="object"&&typeof e!="function"){let i=n.prims||(n.prims=new Map),a=i.get(e);return a||i.set(e,a=Wr(n.always,ql(e))),a}let o=n.next||(n.next=new WeakMap),r=o.get(e);if(r)return r;let s=Gl(e)?Do.get(Kl(e)):typeof e=="function"?Do.get(e):void 0;return r=s?Wr(n.always.concat(s.always),s.own):Wr(n.always,ql(e)),o.set(e,r),r}function tv(t,e,n){let o=Gl(e),r=!o&&Yl&&typeof e=="function"&&Do.has(e);if(!o&&!r&&!Gl(n))return Hl;if(!XA(t))return QA(t),Hl;let s=o?Kl(e):r?e:null;return s?JA(s,n):Kl(n)}function fm(t,e,n,o){if(!ee(e))return!1;let r=tv(e,n,o);return r===Hl?!1:(t[e]=r,!0)}function Zl(t){if(typeof t=="function"){let e=Yl?Do.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 ev(t,e,n){let o=t.list,r,s=!1,i=null,a=!1,c;for(let l=0;l<o.length;l++){let u=o[l].handler;if(typeof u!="function")continue;let f;try{f=u.apply(e,n)}catch(d){a?console.error("[smbls] lifecycle handler error:",d):(a=!0,c=d);continue}f===!1?s=!0:f&&typeof f.then=="function"&&(i||(i=[])).push(f),r=f}if(a){if(i)for(let l of i)l.then(null,u=>console.error("[smbls] lifecycle handler error:",u));throw c}return s?!1:i?i.length===1?i[0]:nv(i):r}function nv(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 ov=1e-6,um=new WeakMap;function rv(t,e,n){let o=t.defaultView,r=o&&o.IntersectionObserver;if(typeof r!="function")return null;let s=um.get(t);s||um.set(t,s=new Map);let i=e+"|"+n,a=s.get(i);if(a)return a;a={id:i,byKey:s,threshold:e,targets:new Map,observer:null};try{let c=n?{threshold:e,rootMargin:n}:{threshold:e};a.observer=new r(l=>sv(a,l),c)}catch{return null}return s.set(i,a),a}function sv(t,e){for(let n=0;n<e.length;n++){let o=e[n],r=t.targets.get(o.target);if(!r)continue;let s=!!o.isIntersecting&&o.intersectionRatio>=t.threshold-ov;if(s===r.inView)continue;r.inView=s;let i=s?"in":"leave",a=r.subs.slice();for(let c=0;c<a.length;c++){let l=a[c];if(!(l.kind!==i||l.dead)){l.once&&pm(t,r,l);try{l.run(o)}catch(u){iv(u)}}}}}function iv(t){typeof globalThis.reportError=="function"?globalThis.reportError(t):queueMicrotask(()=>{throw t})}function pm(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 dm(t,e,n,o,r){let s=Sr(t,r.handler),i=r.options;if(typeof s!="function")return;let a=i&&i.threshold,c=typeof a=="number"&&a>=0&&a<=1?a:0,l=i&&typeof i.rootMargin=="string"?i.rootMargin.trim():"",u=rv(n,c,l);if(!u)return;let f=u.targets.get(e);f||(f={node:e,inView:!1,subs:[]},u.targets.set(e,f),u.observer.observe(e));let d={kind:o,once:!!(i&&i.once===!0),run:ni(t,s),dead:!1};f.subs.push(d);let p=t.__ref;p.__eventCleanup||(p.__eventCleanup=[]),p.__eventCleanup.push(()=>pm(u,f,d))}function hm(t){if(globalThis.__SMBLS_BUILD_DROP_F_viewEvents__)return jt("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=Zl(t.onInView);for(let i=0;i<r.length;i++)dm(t,e,n,"in",r[i]);let s=Zl(t.onLeaveView);for(let i=0;i<s.length;i++)dm(t,e,n,"leave",s[i])}var zr=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),ym=1e3,bm=24,Xl=Object.freeze({}),tf=Object.freeze({}),Io=0,Ai=t=>{if(J(t)||zr(t,"__ref"))return!1;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null};function Ql(t,e,n){if(t===null||typeof t!="object")return t;if(--Io<0||e>bm){Io=-1;return}if(Array.isArray(t)){let r=new Array(t.length);for(let s=0;s<t.length;s++)r[s]=n?t[s]:Ql(t[s],e+1,!1);return r}if(n||!Ai(t))return t;let o={};for(let r in t)zr(t,r)&&(o[r]=Ql(t[r],e+1,r==="extends"||r==="childExtends"));return o}function gm(t){Io=ym;let e;try{e=Ql(t,0,!1)}catch{return Xl}return Io<0?Xl:e}function Jl(t,e,n,o){if(t===e)return!0;if(t===null||typeof t!="object"||e===null||typeof e!="object"||--Io<0||n>bm)return!1;if(Array.isArray(t)){if(!Array.isArray(e)||e.length!==t.length)return!1;for(let s=0;s<t.length;s++)if(o?t[s]!==e[s]:!Jl(t[s],e[s],n+1,!1))return!1;return!0}if(o||Array.isArray(e)||!Ai(t)||!Ai(e))return!1;let r=0;for(let s in t)if(zr(t,s)&&(r++,!zr(e,s)||!Jl(t[s],e[s],n+1,s==="extends"||s==="childExtends")))return!1;for(let s in e)zr(e,s)&&r--;return r===0}function _m(t,e){if(e===Xl||e===tf)return!1;Io=ym;try{return Jl(t,e,0,!1)}catch{return!1}}var vi=t=>fe()?Mt(()=>gm(t)):gm(t),mm=(t,e)=>fe()?Mt(()=>_m(t,e)):_m(t,e);function Sm(t,e,n,o){let r=t;return r&&typeof r=="object"&&!Array.isArray(r)&&!Ai(r)&&(o||n&&!r.ignoreChildExtends)&&(r=o?Wt({},r):{...r}),typeof e=="function"?{item:r,props:o}:r}var xm=t=>({childProps:typeof t.childProps=="function"?void 0:t.childProps,childExtends:t.childExtends}),Oi=class{constructor(e,n){this.shared=e,this.rows=n}add(e,n,o,r,s){this.rows.set(e,vi(Sm(n,r,s,o.props)))}failed(e){this.rows.set(e,tf)}none(e){this.rows.delete(e)}},av=Object.freeze([]);function cv(t,e,n,o,r){let s=e.__plainRows.rows,i=e.__plainRows.shared,a=xm(t),c=mm(a,i),l=t.childProps,u=en(t,"childProps"),f=t.childExtends,d=new Array(n.length),p=new Map;for(let w=0;w<n.length;w++){let k=Ul(t,n[w],w,l,u,f,!1,!0);if(p.has(k.key))return!1;p.set(k.key,k),d[w]=k}for(let w=0;w<d.length;w++){let k=d[w];k.input=Sm(n[w],l,f,k.props);let v=c?s.get(k.key):void 0;if(v===void 0)continue;let R=t[k.key];R&&R.__ref&&R.parent===t&&mm(k.input,v)&&(k.kept=!0,k.snap=v)}let g=r?[]:null;for(let w of s.keys()){let k=p.get(w);if(k&&k.kept)continue;let v=t[w];v?.remove&&v.remove(),delete t[w],g&&g.push(w)}let h=r?[]:null,_=r?[]:null,m=new Map,b=null,x=null;for(let w=0;w<d.length;w++){let k=d[w];if(k.kept){m.set(k.key,k.snap),_&&_.push(k.key);let O=Ve(t[k.key]);O&&(x=Ci(t,O,x));continue}m.set(k.key,vi(k.input));let v;try{v=zt(jn(k.def,k.supplied),t,k.key,o,Ur(t,x))}catch(O){if(m.set(k.key,tf),b||(b=new Set),b.add(k.key),typeof console<"u"&&console.error){let $=e.path?.join(".")||t.key||"<root>";console.error(`[smbls] child "${k.key}" failed to construct at ${$} (re-run, skipping this row):`,O?.message||O)}continue}if(e.__disposed)return!0;if(!v){m.delete(k.key);continue}let R=Ve(v);R&&(x=R),h&&h.push(k.key)}e.__plainRows=new Oi(c?i:vi(a),m);let D=Array.from(m.keys());Wl(t,D,b);let y=new Set(e.__children),S=[];for(let w=0;w<D.length;w++)y.has(D[w])&&S.push(D[w]);for(let w of e.__children)m.has(w)||S.push(w);return e.__children=S,r&&(h.length||g.length)&&hi(t,{added:h,removed:g,kept:_}),!0}var wm={track:t=>new Oi(vi(xm(t)),new Map),reconcile(t,e,n,o,r){let s=Array.isArray(n)?n:n==null||n===!1?av:null;return!!s&&cv(t,e,s,o,r)}};var ef=t=>{let e=t.__ref;if(e&&e.__hydrationPath!==void 0)return e.__hydrationPath;let n=t.parent,o=n&&n.__ref?ef(n):null,r=o===null?"":o?o+"."+t.key:String(t.key);return e&&(e.__hydrationPath=r),r},lv=new Set(["src","srcset"]),fv=new Set(["class","style","id","data-br"]),uv=new Set(["sizes","loading","fetchpriority","decoding","crossorigin","referrerpolicy","width","height"]),dv=new Set(["sizes","media","type","width","height"]),pv=t=>t==="img"?uv:t==="source"?dv:null,hv=t=>t.charCodeAt(0)===97&&t.startsWith("aria-")||t.charCodeAt(0)===100&&t.startsWith("data-")&&t!=="data-br"&&t!=="data-key",km=(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))}},gv=(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 s=new Map;o=t.built={nodes:s,observer:null},o.observer=new r(i=>km(o,i))}return o.nodes.set(e,new Set(n)),o.observer.observe(e,{attributes:!0,attributeFilter:n}),!0};function Cm(t){let e=t&&t.built;if(!e)return 0;t.built=null,km(e,e.observer.takeRecords()),e.observer.disconnect();let n=0;for(let[o,r]of e.nodes)for(let s of r)o.hasAttribute(s)&&(o.removeAttribute(s),n++);return e.nodes.clear(),n}function Tm(t){let e=t?.context?.__hydration;if(!e)return null;let n=t.tag=Mn(t);if(n==="string"||n==="fragment")return null;let o=ef(t),r=e.registry[o===""?"__root":o],s=r!==void 0?e.nodes[r]:null;if(!s||s.nodeType!==1||e.claimed.has(s))return r!==void 0&&e.misses++,null;let i=bo(n)&&(n==="svg"||t.parent?.node?.namespaceURI===Pn),a=bo(n)&&!i&&n!=="svg"?"div":n,c=i?s.namespaceURI===Pn:s.namespaceURI!==Pn;if(s.localName!==a||!c)return e.misses++,null;e.claimed.add(s),e.adopted++;let l=e.pending;if(l&&l.delete(s)){let p=s.parentNode,g=p?(e.pendingIn.get(p)||1)-1:0;g>0?e.pendingIn.set(p,g):p&&e.pendingIn.delete(p)}let u=null,f=null,d=pv(s.localName);for(let p of Array.from(s.getAttributeNames?s.getAttributeNames():[]))lv.has(p)||p==="data-key"||(fv.has(p)||(f||(f=new Map)).set(p,s.getAttribute(p)),!(d&&d.has(p))&&(hv(p)?(u||(u=[])).push(p):s.removeAttribute(p)));if(u&&!gv(e,s,u))for(let p of u)s.removeAttribute(p);if(f&&t.__ref&&(t.__ref.__builtAttrs={node:s,values:f}),l){let p=0,g=0,h=s.firstChild,_=t.text!=null&&h&&h.nodeType===3&&!l.has(h)?h:null;_&&t.__ref&&(t.__ref.__builtText=_);for(let m=s.firstChild;m;){let b=m.nextSibling;m!==_&&!l.has(m)&&(m.nodeType===3?p++:m.nodeType!==8&&g++,s.removeChild(m)),m=b}(g||p>(t.text!=null&&!_?1:0))&&(e.whole||(e.whole=new Set)).add(t)}else for(;s.firstChild;)s.removeChild(s.firstChild);return s.localName==="img"&&s.complete&&s.naturalWidth>0&&mv(s),s}var _v=500;function mv(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),_v)}},0)}function yv(t,e,n,o,r){if(r.parentNode===o&&t.claimed.has(r))return!0;let s=t.pendingIn;if(!s||!s.has(o))return!1;let i,a=n&&n.__ref,c=a&&a.__children,l=c?c.lastIndexOf(e.key):-1;for(let u=l-1;u>=0;u--){let f=n[c[u]],d=f&&f.node;if(d&&d!==r&&d.parentNode===o){i=d.nextSibling;break}}return i===void 0&&(i=Cr(o,a&&a.__textNode)),i===r||o.insertBefore(r,i),!0}function bv(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 Sv(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 xv(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 Am={adopt:Tm,place:yv,whole:bv,settle:Cm,handBack:Sv,settleHandBack:xv};var Mo=50;function Bo(t){return t===!0?Mo:typeof t=="number"&&t>0?t:0}var me=[],Po=!1,on=0,Ue=Mo,qr=!1,Ri=[],Di=typeof performance<"u"&&typeof performance.now=="function"?()=>performance.now():()=>Date.now(),Ei=[],Hr=null;function wv(t){if(!Hr){let e=new MessageChannel;e.port1.onmessage=()=>{let n=Ei.shift();!Ei.length&&typeof e.port1.unref=="function"&&e.port1.unref(),n&&n()},Hr=e}Ei.push(t),Ei.length===1&&typeof Hr.port1.ref=="function"&&Hr.port1.ref(),Hr.port2.postMessage(0)}function sf(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"){wv(t);return}setTimeout(t,0)}function kv(){return new Promise(t=>sf(t))}var Gr=0,of=0,rf=0,Lo=0;function af(){Gr=0,of=on,rf=0,Lo=0}function vm(){if(!on)return!1;if(Gr++,Lo>0)return Lo--,!1;let t=Di(),e=t-on,n=e/Gr,o=(t-of)/(Gr-rf),r=o>n?o:n;of=t,rf=Gr;let s=Ue-e-r;return s<=0?(qr=!0,!0):(Lo=r>0?Math.floor(s/r/2):0,!1)}var Wn=0;function Om(t=Mo){Wn===0&&!on?(on=Di(),qr=!1,Ue=t,af()):t<Ue&&(Ue=t,Lo=0),Wn++}var Ht=null,nf=!1,Cv=typeof queueMicrotask=="function"?queueMicrotask:t=>Promise.resolve().then(t);function cf(){on=0,qr=!1,Ue=Mo,af()}function Tv(){nf||(nf=!0,Cv(()=>{nf=!1,Wn===0&&cf()}))}function Em(){Wn>0&&Wn--,!(Wn!==0||Ht!==null)&&(Po?Tv():cf())}function lf(t,e=Mo,n=null){let o={fn:t,budget:e,lease:n};Ht?Ht.push(o):me.push(o),Po||(Po=!0,sf(Dm))}function ff(t){let e=t&&t.context;return e&&e.__mountLease||null}function Rm(t){if(!t)return;let e=0;for(let n=0;n<me.length;n++){let o=me[n];o.lease!==t&&(me[e++]=o)}if(me.length=e,Ht){let n=0;for(let o=0;o<Ht.length;o++)Ht[o].lease!==t&&(Ht[n++]=Ht[o]);Ht.length=n}typeof t.lost=="function"&&t.lost()}function Av(t){if(t.lease!==null&&!t.lease.live()){Rm(t.lease);return}let e=Ht;Ht=[];try{t.fn()}catch(n){typeof console<"u"&&console.error&&console.error("[smbls] deferred mount chunk failed:",n?.message||n)}finally{let n=Ht;Ht=e,n.length&&me.unshift(...n)}}function Ii(){return!Po&&!me.length?Promise.resolve():new Promise(t=>Ri.push(t))}function uf(){return!Po&&!me.length}function vv(){if(!Ri.length)return;let t=Ri;Ri=[];for(let e=0;e<t.length;e++)t[e]()}function Dm(){for(on=Di(),qr=!1,Ue=1/0,af();me.length;){let t=me.shift();if(t.budget<Ue&&(Ue=t.budget,Lo=0),Av(t),qr||Di()-on>=Ue)break}if(Wn=0,cf(),me.length){sf(Dm);return}Po=!1,vv()}function Li(t){So(t.__ref).pending++}function ie(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 df(t){let e=t&&t.__ref&&t.__ref.__mount;return!!(e&&e.tail)}function pf(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 hf(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 Im(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,hf(t,e),o&&ie(o)}function Ov(t,e){let n=e&&e.mountYield;if(!n&&!t.yieldChildren)return 0;let o=V.hydration!==null&&t.context?t.context.__hydration:null;if(o&&V.hydration.whole(o,t))return 0;let r=n?Bo(n):0,s=Bo(t.yieldChildren);return r&&s?r<s?r:s:r||s}function Lm(t,e,n,o,r){Om(o);try{Pm(t,t.__ref,0,e,n,o,r,!1)}finally{Em()}}function Pm(t,e,n,o,r,s,i,a){try{for(let c=n;c<o;c++){let l=e.__mount,u=l?l.pending:0;if(r(c)===!1)continue;if(e.__disposed)break;let f=vm(),d=e.__mount;if(c+1<o&&(f||(d?d.pending:0)>u)){i&&i.onSuspend&&i.onSuspend(),a||Li(t);let p=c+1;lf(()=>Ev(t,e,p,o,r,s,i),s,ff(t));return}}}catch(c){if(!a)throw c;xi(t,c)}a&&ie(t)}function Ev(t,e,n,o,r,s,i){if(e.__disposed||i&&i.isStale&&i.isStale()){ie(t);return}Pm(t,e,n,o,r,s,i,!0)}function Rv(t,e,n){Li(t),lf(()=>{try{let o=t.__ref;o&&!o.__disposed&&n()}catch(o){xi(t,o)}finally{ie(t)}},e,ff(t))}function Dv(t,e,n,o){let r=t.__ref,s=So(r),i=++s.chunkGen,a=t.node,c=[],l=!1;Lm(t,e,u=>{let f=n(u,l?Ur(t,Iv(a,c)):void 0),d=Mm(f);return d?c.push(d):f&&f.__ref.__mount&&f.__ref.__mount.held&&c.push(f),f},o,{isStale:()=>s.chunkGen!==i,onSuspend:()=>{l=!0}})}function Mm(t){let e=Ve(t);if(e)return e;let n=t&&t.__ref;return n&&n.__if!==!1&&t.tag==="fragment"&&n.__fragmentAnchor||null}function Iv(t,e){for(let n=e.length-1;n>=0;n--){let o=e[n].__ref?Mm(e[n]):e[n];if(o&&o.parentNode===t)return o}return null}function Lv(t,e){let n=t.__ref;try{vo(t,!0),D_(t),El(t,e)}finally{hf(t,n);let o=n.__mount,r=o&&o.holder;r&&(o.holder=null,ie(r))}}var Bm={budgetOf:Ov,run:Lm,rows:Dv,defer:Rv,hold:Li,finish:Lv,abandon:Im};function Nm(){V.viewEvents=hm,V.chains=fm,V.rows=wm,V.hydration=globalThis.__SMBLS_BUILD_DROP_F_prerender__?null:Am,V.mount=Bm}Nm();var zn="inertOutside",Mv=new Set(["SCRIPT","STYLE","LINK","META","TEMPLATE","NOSCRIPT","BASE","TITLE"]),Bv='a[href], button, input:not([type="hidden"]), select, textarea, summary, [tabindex], [contenteditable]:not([contenteditable="false"])',Nv={attributes:!0,attributeFilter:["inert"]},$m=new WeakMap,Fm=new WeakMap,Kr=new Set,jm=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);function rn(t){try{return Mt(t)}catch(e){console.error("[smbls] inertOutside:",e)}}function Vm(t){let e=()=>rn(t);typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e)}function $v(t){if(!t||!t.defaultView||!("activeElement"in t))return null;let e=$m.get(t);if(e)return e;let n=t.defaultView.MutationObserver||globalThis.MutationObserver;return typeof n!="function"?null:(e={doc:t,layers:[],held:new Map,top:null,observer:null},e.observer=new n(o=>rn(()=>Pi(e,o))),$m.set(t,e),e)}function gf(t,e){let n=t.element.node;return!!n&&n.nodeType===1&&n.isConnected&&n.ownerDocument===e}function Fv(t){let e=t.activeElement;return e&&e!==t.body&&e!==t.documentElement?e:null}var Um=t=>!!(t.closest&&t.closest("[inert]"));function jv(t){let e=t.ownerDocument,n=new Set,o=[];for(let r=t;r!==e.body;r=r.parentNode){let s=r.parentNode;if(!s||s.nodeType!==1||s===e.documentElement)break;o.push(s);for(let i=s.firstElementChild;i;i=i.nextElementSibling)i!==r&&!Mv.has(i.tagName)&&n.add(i)}return{outside:n,parents:o}}function Wm(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 Pi(t,e){let{doc:n,held:o,observer:r}=t;e&&Wm(t,e),Wm(t,r.takeRecords());let s=t.top,i=[];for(let f of t.layers){let d=gf(f,n);d&&!f.live&&(i.push(f),f.returnFocus=Fv(n)),f.live=d}i.length&&(t.layers=t.layers.filter(f=>!i.includes(f)).concat(i));let a=null;for(let f=t.layers.length-1;f>=0&&!a;f--)t.layers[f].live&&(a=t.layers[f]);t.top=a;let{outside:c,parents:l}=a?jv(a.element.node):{outside:new Set,parents:[]};for(let[f,d]of o)c.has(f)||(d&&f.removeAttribute("inert"),o.delete(f));for(let f of c)o.has(f)||o.set(f,!1),f.hasAttribute("inert")||(f.setAttribute("inert",""),o.set(f,!0));r.takeRecords(),r.disconnect();for(let f of l)r.observe(f,{childList:!0});for(let f of o.keys())r.observe(f,Nv);t.layers.some(f=>!f.live)?Kr.add(t):Kr.delete(t);for(let f of t.layers)!f.live&&!f.connecting&&!yo(f.element)&&(f.connecting=!0,In(f.element,()=>rn(()=>{f.connecting=!1,f.declared&&!f.live&&gf(f,t.doc)&&Pi(t)})));if(a===s)return;let u=s&&!(s.declared&&s.live)?s:null;if(a&&i.includes(a))u&&u.returnFocus&&(a.returnFocus=u.returnFocus),Vm(()=>Hm(t,a));else if(u){let f=u.returnFocus;Vm(()=>Vv(t,u,f))}u&&(u.returnFocus=null)}function Hm(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 s=new Set,i=(a,c)=>{if(s.has(a)||(s.add(a),a.matches(":disabled")))return!1;let l=c&&a.getAttribute("tabindex");return l&&parseInt(l,10)<0?!1:(a.focus(),o.activeElement===a)};for(let a of n.querySelectorAll("[autofocus]"))if(i(a,!1))return;for(let a of n.querySelectorAll(Bv))if(i(a,!0))return;r&&r!==o.body&&typeof r.blur=="function"&&r.blur()}function Vv(t,e,n){if(e.declared&&e.live)return;let o=t.doc,r=o.activeElement,s=e.element.node;(!r||r===o.body||s&&s.contains(r)||Um(r))&&(n&&n.isConnected&&n.ownerDocument===o&&!Um(n)&&(n.focus({preventScroll:!0}),o.activeElement===n)||t.top&&Hm(t,t.top))}function _f(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)}Pi(n)}function Gm(t){let e=t[zn];if(typeof e=="function")try{e=e(t,t.state,t.context)}catch{e=!1}return!!e}function zm(t){let e=Fm.get(t);if(e)return e;let n=t.__ref,o=t.node;if(!n||!o||o.nodeType!==1)return null;let r=$v(o.ownerDocument);if(!r)return null;e={element:t,manager:r,declared:!1,live:!1,connecting:!1,returnFocus:null},Fm.set(t,e);let s=N(()=>{let i=Gm(t);rn(()=>_f(e,i))},{depth:n.path.length,label:()=>n.path.join(".")+"::"+zn});return n.__effects||(n.__effects=[]),n.__effects.push(s),n.__eventCleanup||(n.__eventCleanup=[]),n.__eventCleanup.push(()=>rn(()=>_f(e,!1))),e}function Uv(){for(let t of Kr){if(!t.doc.defaultView){Kr.delete(t);continue}t.layers.some(e=>!e.live&&gf(e,t.doc))&&Pi(t)}}var Wv={name:zn,create(t){if(jm(t,zn)){if(globalThis.__SMBLS_BUILD_DROP_F_inertOutside__)return jt(zn,t);rn(()=>zm(t))}},render(){globalThis.__SMBLS_BUILD_DROP_F_inertOutside__||Kr.size&&rn(Uv)},update(t){if(jm(t,zn)){if(globalThis.__SMBLS_BUILD_DROP_F_inertOutside__)return jt(zn,t);rn(()=>{let e=zm(t);e&&_f(e,Gm(t))})}}};var LO=/*@__PURE__*/__smblsNs({},{default:()=>IO,getActiveRoute:()=>Vy,lastLevel:()=>Nf,lastPathname:()=>ts,loadLazy:()=>Cy,matchRoute:()=>Ny,parseQuery:()=>Fy,parseRoutePattern:()=>Mf,resolveRouterElement:()=>jy,router:()=>Gn,runGuards:()=>bO,saveScrollPosition:()=>cy});var mf="__smblsRouter",yf=new WeakMap,Hv=0,bf=()=>Date.now().toString(36)+(++Hv).toString(36)+Math.random().toString(36).slice(2,6),Sf=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},We=t=>{try{return t.state}catch{return}},Zr=t=>{try{let{pathname:e,search:n,hash:o}=t.location;return e+n+o}catch{return null}},Zm=t=>{if(!t||typeof t!="object"||Array.isArray(t))return!1;let e=Object.getPrototypeOf(t);return e===null||Object.getPrototypeOf(e)===null},Xm=t=>{let e=Zm(t)?t[mf]:null;return e&&typeof e.key=="string"&&typeof e.chain=="string"&&Number.isInteger(e.index)?e:null},xf=(t,e)=>t==null?{[mf]:e}:Zm(t)?{...t,[mf]:e}:null,wf=()=>({key:bf(),index:0,chain:bf()}),No=(t,e)=>{let n=Xm(e);return{key:n?n.key:null,index:n?n.index:null,chain:n?n.chain:null,url:Zr(t),state:e}},Qm=(t,e)=>{let n=Xm(t);return e.key?!!n&&n.key===e.key:!n&&t===e.state},Yr=(t,e,n)=>!!n&&Zr(t)===n.url&&Qm(e,n),kf=(t,e,n)=>({...t,url:e,state:n}),Cf=(t,e)=>{let n=We(e),o=No(t,n);if(o.key)return o;let r=wf(),s=xf(n,r);if(!s)return o;try{e.replaceState(s,null)}catch{return o}return kf(r,o.url,s)},Gv=(t,e)=>{let n=yf.get(t);return!n&&e&&(n={current:null,pending:null,expect:null,seq:0,pops:new WeakMap,positions:null,scrollNode:null,restore:null},yf.set(t,n)),n||null},Jm="smbls.router.scroll",qm=100,qv=1e3,Km=["wheel","touchstart","keydown","pointerdown"],ty=t=>{try{return t.sessionStorage||null}catch{return null}},ey=t=>{try{let e=JSON.parse(t.getItem(Jm)||"[]");return Array.isArray(e)?e.filter(n=>Array.isArray(n)&&typeof n[0]=="string"):[]}catch{return[]}},ny=(t,e)=>{if(!t.positions){t.positions=new Map;let n=ty(e);if(n)for(let[o,r]of ey(n))r&&Number.isFinite(r.top)&&Number.isFinite(r.left)&&t.positions.set(o,{top:r.top,left:r.left})}return t.positions},Tf=(t,e,n,o)=>{let r=ny(t,e);r.delete(n),r.set(n,{top:Math.round(Number(o.scrollTop)||0),left:Math.round(Number(o.scrollLeft)||0)}),r.size>qm&&r.delete(r.keys().next().value);let s=ty(e);if(s)try{let i=new Map(ey(s));for(let[a,c]of r)i.delete(a),i.set(a,c);s.setItem(Jm,JSON.stringify(Array.from(i).slice(-qm)))}catch{}},Ym=(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)},Kv=(t,e,n,o,r,s,i)=>{n.restore&&n.restore.end("replaced"),n.restore=o;let a=typeof i=="number"&&i>=0?i:qv,c=()=>Math.max(0,(Number(r.scrollHeight)||0)-(Number(r.clientHeight)||0)),l=(h,_)=>{typeof r.scrollTo=="function"?r.scrollTo({top:h,left:_,behavior:"instant"}):(r.scrollTop=h,r.scrollLeft=_)},u=typeof t.addEventListener=="function",f=()=>o.end("visitor");if(o.end=h=>{if(!o.outcome&&(o.outcome=h,u))for(let _ of Km)t.removeEventListener(_,f,!0)},c()>=s.top-1)return l(s.top,s.left),o.end("placed");Number(r.scrollTop)>0&&l(0,0);let d=Number(r.scrollTop)||0,p=Date.now();if(u)for(let h of Km)t.addEventListener(h,f,{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=c()>=s.top-1;if(!h&&Date.now()-p<a)return Ym(t,e,g);l(Math.min(s.top,c()),s.left),o.end(h?"placed":"clamped")};Ym(t,e,g)},Yv=(t,e)=>{let{win:n,history:o,track:r}=t,s=r.pops.get(e);if(s)return s;let i=No(n,We(o)),a=r.expect;r.expect=null;let c;if(a&&i.key===a.key&&i.url===a.url)c={echo:!0};else{let l=r.current,u=!!(i.key&&l&&l.key===i.key),f=u?null:l;f&&f.key&&t.scrollNode&&Tf(r,n,f.key,t.scrollNode),c={to:i,from:f,stay:u,seq:r.seq,settled:!1,committed:!1},r.pending=c}return r.pops.set(e,c),c},Zv=t=>{let{win:e,history:n,track:o}=t,r=We(n);if(o.pending&&Yr(e,r,o.pending.to)||o.expect&&Yr(e,r,o.expect.away))return;let s=o.current;if(s&&(s.key?Qm(r,s):Yr(e,r,s))){s.url=Zr(e),s.state=r;return}o.current=t.restore?Cf(e,n):No(e,r),o.pending=null,o.seq++},oy=(t,e,n)=>{let o=e.scrollRestoration==="restore",r=Sf(t),s=o||Array.isArray(e.guards)&&e.guards.length>0,i=r&&Gv(r,s);if(!i)return null;let a={win:t,history:r,track:i,restore:o,scrollNode:o&&n?n:null,pop:null};a.scrollNode&&(i.scrollNode=a.scrollNode);let c=e.event;return c&&c.type==="popstate"?a.pop=Yv(a,c):Zv(a),a},Mi=(t,e)=>{e.settled=!0,t.pending===e&&(t.pending=null)},Af=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 Mi(r,e),r.seq!==e.seq||!Yr(n,We(o),e.to)?!1:(r.current=t.restore&&!e.to.key?Cf(n,o):e.to,r.seq++,e.committed=!0,!0)},ry=t=>{let e=t&&t.pop;e&&!e.echo&&!e.settled&&Mi(t.track,e)},Xv=(t,e,n)=>{try{t.addEventListener("popstate",()=>{e.expect===n&&(e.expect=null)},{once:!0})}catch{}},vf=(t,e)=>{let n=t&&t.pop;if(!n||n.echo||n.settled)return;let{win:o,history:r,track:s}=t;Mi(s,n);let i=n.from;if(!i||s.seq!==n.seq||!Yr(o,We(r),n.to))return;let a=n.to;if(!e&&i.key&&a.key&&i.chain===a.chain&&i.index!==a.index){let u=s.expect={key:i.key,url:i.url,away:a};Xv(o,s,u);try{r.go(i.index-a.index)}catch{s.expect=null}return}let c=wf(),l=xf(i.state,c);try{r.replaceState(l||i.state,null,i.url)}catch{return}s.current=l?kf(c,i.url,l):No(o,We(r)),s.seq++},sy=(t,e)=>{let n=Zr(e);t&&n!==null&&(t.__routerAddress=n)},Of=(t,e,n)=>{let o=t&&t.pop;if(o&&!o.echo&&o.from)return vf(t,!0);o&&!o.settled&&Mi(t.track,o);let r=Sf(n),s=e&&e.__routerAddress;if(!(!r||!s||s===Zr(n)))try{r.replaceState(We(r),null,s)}catch{}},iy=(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:s,track:i}=t,a=i.current;!o&&a&&a.key&&t.scrollNode&&Tf(i,r,a.key,t.scrollNode);let c=o?No(r,We(s)):Cf(r,s),l=c.key?o?{key:c.key,index:c.index,chain:c.chain}:{key:bf(),index:c.index+1,chain:c.chain}:wf(),u=xf(e,l);try{o?s.replaceState(u||e,null,n):s.pushState(u||e,null,n)}catch{return}i.current=u?kf(l,n,u):No(r,We(s)),i.pending=null,i.expect=null,i.seq++},ay=(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:s,track:i}=t,a=i.current,c=a&&a.key&&ny(i,s).get(a.key);if(!c)return!1;let l=i.restore;return!!l&&l.key===a.key&&(r?l.pop===r:!l.pop&&l.seq===i.seq)&&l.outcome==="visitor"||Kv(s,o,i,{key:a.key,pop:r,seq:i.seq,outcome:null},e,c,n.scrollRestoreTimeout),!0},cy=t=>{let e=Sf(t),n=e&&yf.get(e);!n||!n.scrollNode||!n.current||!n.current.key||Tf(n,t,n.current.key,n.scrollNode)};var dy=["components","functions","methods","snippets"],py=new Set(["pages",...dy]),Ef=new Set(["default","__esModule"]),sn=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),at=t=>!!t&&typeof t=="object"&&!Array.isArray(t),Bi=new WeakMap,ly=new WeakMap,Rf=new WeakMap,fy=new Set,Hn=(t,e=console.warn)=>{fy.has(t)||(fy.add(t),e(t))},hy=t=>at(t&&t.lazy),gy=(t,e)=>{let n=t&&t.lazy;return at(n)&&sn(n,e)?n[e]:void 0},Qr=(t,e)=>{let n=gy(t,e);return at(n)&&sn(n,"load")?n.load:n},Qv=(t,e)=>{let n=gy(t,e);return at(n)&&typeof n.when=="function"?n.when:null},Jv=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},Df=(t,e)=>{let n=Bi.get(t);n||(Bi.set(t,n=new Map),t.__teardowns=t.__teardowns||[],t.__teardowns.push(()=>{for(let r of n.values())r.disposed=!0,r.waiting.clear();Bi.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},_y=(t,e)=>!hy(e)||!at(t)||!sn(t,"lazy")?null:typeof t.lazy=="string"&&t.lazy?t.lazy:null,$i=t=>!globalThis.__SMBLS_BUILD_DROP_F_lazyRoutes__&&!!t&&typeof t=="object"&&Rf.has(t),my=(t,e)=>(t&&t.lazy&&typeof t.lazy=="object"&&jt("lazyRoutes",e),null),yy=t=>t&&(t.status==="error"||t.status==="reload"||t.status==="waiting")?t.status:"loading",tO=(t,e)=>typeof Qr(t,e)!="function"?"error":yy(Bi.get(t)?.get(e)),eO=(t,e)=>{let n=ly.get(t);if(n&&n.group===e)return n;let{lazy:o,state:r,...s}=t,i=r==null||at(r)||typeof r=="function";i?s.state=(c,l)=>{let u=typeof r=="function"?r(c,l):r;return{...at(u)?u:null,lazyStatus:tO(c.context,e)}}:(s.state=r,!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&j()&&Hn(`[smbls/router] the placeholder of lazy group "${e}" binds its state to a path (${JSON.stringify(r)}), so it gets no \`lazyStatus\` \u2014 give it its own state object to show a load failure.`));let a={definition:s,group:e,hasStatus:i};return ly.set(t,a),Rf.set(s,a),a},nO=t=>t.__ref&&t.__ref.contentElementKey||"content",Xr=(t,e)=>{let n=t&&t.__ref&&t.__ref.__routerRendered,o=n&&$i(n.content)?Rf.get(n.content):null;return!o||o.group!==e?null:{record:o,page:t[nO(t)]}},Ni=(t,e,n)=>{let o=Xr(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(s){console.error(`[smbls/router] lazy group "${e}": could not show the "${n}" status on its placeholder`,s)}},oO=t=>at(t)?!Object.keys(t).some(n=>py.has(n))&&at(t.default)?t.default:t:{},rO=t=>{let e={};if(!at(t))return e;for(let n of Object.keys(t)){if(Ef.has(n))continue;let o=n.charCodeAt(0)===47,r=o?n:"/"+(n==="index"?"":n);(o||!sn(e,r))&&(e[r]=t[n])}return e},by=(t,e,n,o,r)=>{if(!at(t))return 0;let s=0;for(let i of Object.keys(t))_y(t[i],o)===e&&(s++,sn(n,i)?t[i]=n[i]:delete t[i]);for(let i of Object.keys(n))sn(t,i)?t[i]!==n[i]&&r.push(`pages['${i}']`):t[i]=n[i];return s},uy=(t,e,n)=>{let o=t[e];if(!at(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}},sO=t=>{let e=t.__ref&&t.__ref.origin;if(!at(e))return[];let n=[].concat(e.extends||[],e.extend||[]);if(n.length)return n.filter(s=>typeof s=="string").map(s=>(s.includes(">")?s.split(">")[0]:s).trim());let o=t.key;if(typeof o!="string"||!/^[A-Z]/.test(o))return[];let r=[o.indexOf("_"),o.indexOf(".")].filter(s=>s>0);return[r.length?o.slice(0,Math.min(...r)):o]},iO=(t,e,n,o)=>{let r=new Set;for(let i of o.waiting){let a=Xr(i,e);a&&a.page&&r.add(a.page)}let s=i=>{let a=i&&i.__ref&&i.__ref.__children;if(Array.isArray(a))for(let c of a){let l=i[c];if(!(!l||!l.__ref||r.has(l)||!l.node)){for(let u of sO(l)){if(!n.has(u))continue;let f=(l.__ref.path||[l.key]).join(" \u203A ");Hn(`[smbls/router] lazy group "${e}": ${f} was built before the group loaded, so it renders without "${u}". A built element never takes a later registration \u2014 build it after el.call('loadLazy', '${e}') resolves (an \`if:\` gate does that), or keep "${u}" out of the group.`)}s(l)}}};s(t)},aO=(t,e,n,o)=>{let r=t.context,s=oO(n),i=!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&j(),a=[],c=new Set;if(i)for(let p of Object.keys(s))py.has(p)||Ef.has(p)||Hn(`[smbls/router] lazy group "${e}" exports \`${p}\`, which a lazy group cannot add \u2014 it adds pages, components, functions, methods and snippets only. Declare the rest with the app.`);let l=!1;for(let p of dy){let g=s[p];if(!at(g))continue;let h=at(r[p])?r[p]:{},_={};for(let b of Object.keys(g))if(!Ef.has(b)){if(sn(h,b)){h[b]!==g[b]&&a.push(`${p}.${b}`);continue}_[b]=g[b]}let m=Object.keys(_);if(m.length&&(uy(r,p,_),p==="components"&&m.forEach(b=>c.add(b)),p==="methods"&&(l=!0),(p==="functions"||p==="snippets")&&at(r.utils))){let b={};for(let x of m)sn(r.utils,x)||(b[x]=_[x]);Object.keys(b).length&&uy(r,"utils",b)}}l&&il(r);let u=rO(s.pages);o.pages=u;let f=null;try{f=typeof t.getRoot=="function"?t.getRoot():null}catch{}let d=new Set;at(r.pages)&&d.add(r.pages),f&&at(f.routes)&&d.add(f.routes);for(let p of o.maps)d.add(p);for(let p of o.waiting)at(p.routes)&&d.add(p.routes);for(let p of d)by(p,e,u,r,a);i&&a.length&&Hn(`[smbls/router] lazy group "${e}" redefines ${a.join(", ")}, which the app already has \u2014 the app's own value stays. Rename them: frank refuses the same collision at \`smbls push\`.`),i&&c.size&&f&&iO(f,e,c,o)},Sy=(t,e)=>{let n=t&&t.__ref,o=n&&n.__lazyRoute;if(!o||o.group!==e||(n.__lazyRoute=null,typeof t.set!="function")||!Xr(t,e))return;let r=()=>o.rerender({pushState:!1,replace:!1,scrollToTop:!1,guards:[],lazy:{group:e,status:"loaded"}});Promise.resolve().then(r).catch(s=>console.error(`[smbls/router] lazy group "${e}" loaded, but its route failed to render`,s))},Jr=t=>!!t&&(typeof t=="object"||typeof t=="function")&&typeof t.then=="function",cO=(t,e,n)=>!!t&&(Jr(e)&&e===t.returned||!!n&&typeof n=="object"&&n===t.error),xy=(t,e)=>{let n=t.context,o=Df(n,e);if(o.status==="loading"||o.status==="loaded")return o.promise;let r=Qr(n,e),s=Qv(n,e),i=o.failure;o.status="loading";let a,c=!1,l=!1,u=()=>s?s(t):!0,f=p=>{if(p===!1)throw l=!0,Jv(e);return a=r(o.attempts++)},d=Promise.resolve().then(u).then(f).then(p=>{c=!0,o.disposed||aO(t,e,p,o)}).then(()=>{o.status="loaded",o.failure=null;let p=[...o.waiting];o.waiting.clear();for(let g of p)Sy(g,e)},p=>{if(l){if(o.status="waiting",o.promise=null,o.disposed)throw p;for(let h of[...o.waiting])Xr(h,e)?Ni(h,e,"waiting"):o.waiting.delete(h);throw p}let g=!c&&cO(i,a,p);if(o.failure=c?null:{returned:a,error:p},o.status=g?"reload":"error",o.promise=null,o.disposed)throw p;g?Hn(`[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])Xr(h,e)?Ni(h,e,o.status):o.waiting.delete(h);throw p});d.catch(()=>{}),o.promise=d;for(let p of o.waiting)Ni(p,e,"loading");return d},wy=(t,e,n)=>{let o=e&&e.context;if(globalThis.__SMBLS_BUILD_DROP_F_lazyRoutes__)return my(o,e);let r=_y(t,o);if(!r)return null;let s=Df(o,r);if(at(n)&&s.maps.add(n),s.status==="loaded"&&by(n,r,s.pages||{},o,[])>0)return{rematch:!0};let i=typeof Qr(o,r)=="function";return i?xy(e,r):Hn(`[smbls/router] a route names lazy group "${r}", which context.lazy does not declare as a loader (\`lazy: { ${r}: () => import('./\u2026') }\`) \u2014 it shows its placeholder in the error state.`,console.error),{content:eO(t,r).definition,group:r,status:i?"loading":"error"}},ky=(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 Qr(o,e.group)!="function")return;let s=Df(o,e.group);if(r.__lazyRoute={group:e.group,rerender:n},Ni(t,e.group,yy(s)),s.status==="loaded"){let i=()=>Sy(t,e.group);Promise.resolve().then(i);return}s.waiting.add(t)};function Cy(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(my(n,e));let o=Qr(n,t);return typeof o!="function"?(o===void 0&&hy(n)&&!globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__&&j()&&Hn(`[smbls/router] loadLazy('${t}'): context.lazy declares no group "${t}" \u2014 nothing to load.`),Promise.resolve()):xy(e,t)}var lO=(t,e,n)=>({...t.context&&t.context.domqlOptions,...e.mountOptions,contentElementKey:n}),Ty=(t,e,n)=>{let o=n.mountOptions;if(!o)return;let r=e.context&&e.context.domqlOptions;for(let s in o)t[s]=r&&s in r?r[s]:void 0},Iy=t=>{let e=Bo;return typeof e=="function"?e(t.mountYield)>0:t.mountYield===!0},fO=t=>{let e=t&&t.context&&t.context.__hydration;return!!e&&e.adopted>0},uO=t=>{let e=df;return typeof e!="function"||!e(t)?null:pf(t)},Pf=Object.freeze({holdTail:!0}),dO=t=>typeof t.holdPage=="function"&&typeof ie=="function",Ly=(t,e)=>{let n=()=>ie(t);Jr(e)?e.then(n,n):n()},pO=(t,e)=>{let n=null;try{n=t.holdPage(e)}catch{}Ly(e,n)},Py=Object.freeze({holdTail:!0,deferAttach:!0}),hO=(t,e,n,o)=>{let r=t.firstView;if(!r||typeof ie!="function"||typeof Fr!="function")return null;if(!r.committed)return Pf;if(!Iy(o))return null;let s=e.node;return!e[n]&&s&&s.isConnected?Py:(o.mountYield=void 0,null)},gO=async()=>{await Ii();let t=uf;if(typeof t=="function")for(;!t();)await Ii()},_O=(t,e,n,o)=>{if(e===Pf){t.firstView.page=n,Ly(n,t.firstView.commit);return}e===Py&&gO().then(()=>{n.__ref&&o()&&Fr(n),ie(n)})},My=/^:(.+)/,By=/^\*$/,Ay=new Map,Mf=t=>{let e=Ay.get(t);if(e)return e;let n=t.replace(/^\//,"").split("/"),o=[],r=!1;for(let i=0;i<n.length;i++){let a=n[i].match(My);a?o.push({index:i,name:a[1]}):By.test(n[i])&&(r=!0)}let s={segments:n,params:o,hasWildcard:r,pattern:t};return Ay.set(t,s),s},Ny=(t,e,n=0)=>{let r=t.replace(/^\//,"").split("/").filter(Boolean).slice(n),s="/"+(r[0]||"");if(!e)return{key:null,content:null,params:{},routePath:s};let i=null,a=-1,c={};for(let l in e){if(l==="/*")continue;let u=Mf(l),f=mO(r,u);f>a&&(a=f,i=l,c=$y(r,u))}return!i&&e["/*"]&&(i="/*"),{key:i,content:i?e[i]:null,params:c,routePath:s}},mO=(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,s=Math.min(n.length,t.length);for(let i=0;i<s;i++)if(n[i]===t[i])r+=3;else if(My.test(n[i]))r+=1;else if(By.test(n[i]))r+=.5;else return-1;return r},$y=(t,e)=>{let n={};for(let{index:o,name:r}of e.params)t[o]&&(n[r]=decodeURIComponent(t[o]));return n},Fy=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},Lf=t=>!!t&&typeof t=="object"&&typeof t.route=="string",vy=t=>t===!1||typeof t=="string"||Lf(t)?t:void 0,yO=10,Bf=(t,e,n=0)=>{for(let o=n;o<t.length;o++){let r=t[o](e);if(Jr(r))return Promise.resolve(r).then(i=>{let a=vy(i);return a===void 0?Bf(t,e,o+1):a});let s=vy(r);if(s!==void 0)return s}return!0},bO=async(t,e)=>!t||!t.length?!0:Bf(t,e),Oy=(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 s=e.replace(/^\//,"").split("/").filter(Boolean).slice(o||0);return{route:t,content:r,params:t==="/*"?{}:$y(s,Mf(t))}},jy=(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},SO=(t,e)=>{let n=e.customRouterElement;if(!n||!t.__ref||t.__ref.root!==t)return t;let o=jy(t,n);return!o||o===t?t:(t.routes&&(o.routes=t.routes),o)},Vy=(t=0,e)=>{e||(e=typeof un<"u"?un.location.pathname:"/");let o=e.split("/")[t+1];if(o)return`/${o}`},ts,Nf=0,Ey=0,If=t=>!t||t==="srcdoc"||t==="about:srcdoc"?"/":t,xO=t=>t&&(t.scrollingElement||t.documentElement)||null,Uy={level:Nf,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},Wy=(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},zy=t=>{let e=t.__routeExit;e&&(t.__routeExit=null,e.abort())},wO=(t,e,n,o,r,s,i)=>{let a=e.__routeExit;if(a&&a.page===n)return a.wait;if(zy(e),!n||!n.node||typeof t.onRouteExit>"u"||!Wy(s,i))return null;let c=typeof r=="number"&&r>=0?r:Uy.exitTimeout,l=typeof AbortController=="function"?new AbortController:null,u={...o,page:n,timeout:c,signal:l?l.signal:void 0},f;try{f=oo("routeExit",t,u)}catch{return null}if(!f||typeof f.then!="function")return null;let d={page:n,abort:()=>{l&&!l.signal.aborted&&l.abort()}};return d.wait=new Promise(p=>{let g=setTimeout(()=>{d.abort(),p()},c),h=()=>{clearTimeout(g),p()};f.then(h,h)}),e.__routeExit=d,d.wait},es=new WeakMap,kO=t=>t===!0?{}:t&&typeof t=="object"&&!Array.isArray(t)?t:null,CO=(t,e,n,o)=>{let r=kO(t.transition);return!r||!e||$i(e.content)||!n||typeof n.startViewTransition!="function"||es.get(n)>0||!Wy(n,o)?null:r},TO=t=>{let e=t.__routeTransition;if(!(!e||e.updating))try{e.transition.skipTransition()}catch{}},AO=t=>{let e=typeof t.types=="string"?[t.types]:t.types;return Array.isArray(e)?e.filter(n=>typeof n=="string"&&n):[]},vO=t=>{try{let e=t&&t.ViewTransition;return!!e&&"types"in e.prototype}catch{return!1}},OO=100,EO=1e3,Ry=(t,e)=>t===!1?1/0:typeof t=="number"&&t>=0?t:e,Dy=t=>{let e=t&&t.performance;return e&&typeof e.now=="function"?e.now():Date.now()},RO=t=>{t&&typeof t.then=="function"&&t.then(null,()=>{})},DO=(t,e,n,o,r,s,i)=>{let a=t.node,c=a&&a.style,l=typeof n.name=="string"&&n.name?n.name:null,u=e.__routeTransition,f={transition:null,updating:!1,name:l,previousName:u&&u.name&&c?u.previousName:c&&c.viewTransitionName||""},d=()=>{if(e.__routerNavSeq===s){f.updating=!0,f.swapStarted=Dy(r),es.set(o,(es.get(o)||0)+1);try{return i()}finally{es.set(o,es.get(o)-1),f.updating=!1}}},p=()=>{l&&c&&c.viewTransitionName===l&&(c.viewTransitionName=f.previousName)};l&&c&&(c.viewTransitionName=l);let g=AO(n),h=null;try{h=g.length&&vO(r)?o.startViewTransition({update:d,types:g}):o.startViewTransition(d)}catch{}if(!h)return p(),null;f.transition=h,e.__routeTransition=f,RO(h.ready);let _=!1,m=null,b=()=>{_=!0,m!==null&&(r.clearTimeout(m),m=null),e.__routeTransition===f&&(e.__routeTransition=null,p())},x=()=>{if(!(_||e.__routeTransition!==f))try{h.skipTransition()}catch{}};h.finished&&typeof h.finished.then=="function"?h.finished.then(b,b):b();let D=Ry(n.swapBudget,OO),y=Ry(n.timeout,EO);y!==1/0&&h.ready&&typeof h.ready.then=="function"&&r&&typeof r.setTimeout=="function"&&h.ready.then(()=>{_||(m=r.setTimeout(()=>{m=null,x()},y))},()=>{});let S=h.updateCallbackDone;return!S||typeof S.then!="function"?Promise.resolve():(D!==1/0&&S.then(()=>{f.swapStarted!==void 0&&Dy(r)-f.swapStarted>D&&x()},()=>{}),S)},Gn=async(t,e,n={},o={})=>{let r=e||void 0,s=r?.context?.window||un,i=r?.context?.document||Kt,a={...Uy,...r.context.routerOptions,...o};Nf=a.lastLevel,r=SO(r,a);let c=!(o&&o.render===!1),l=r.__ref;(a.contentElementKey!=="content"&&a.contentElementKey!==l.contentElementKey||!l.contentElementKey)&&(l.contentElementKey=a.contentElementKey||"content");let u=l.contentElementKey||a.contentElementKey||"content",f=s.location.origin!=="null"?s.location.origin:"http://localhost";t=If(t);let d=typeof s.URL=="function"?s.URL:typeof globalThis<"u"&&globalThis.URL||URL,p=new d(f+t),{pathname:g,search:h,hash:_}=p,m=Fy(h),b=r.node,x=_&&_!==s.location.hash.slice(1),D=g!==ts,y=ts,S=++Ey;ts=g;let w=()=>{Ey===S&&(ts=y)},k=l.__routerRendered,v,R,O,$;if(a.useParamsMatching){let M=Ny(g,r.routes,a.level);v=M.key,R=M.routePath,O=M.content,$=M.params}else{v=Vy(a.level,g),R=v;let M=r.routes;O=M?M[v||"/"]||M["/*"]:null,$={}}if(o&&o.route!=null){let M=Oy(o.route,g,r.routes,a.level);!M&&!a.silent&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("[smbls/router] route",o.route,"chosen for",g,"is not one of the routes:",Object.keys(r.routes||{}))),v=M?M.route:o.route,O=M?M.content:null,$=M?M.params:{}}a.scrollNode===void 0&&(a.scrollNode=xO(i));let B=a.scrollToNode?b:a.scrollNode;if(r.state?.root?.debugging){r.state.root.debugging=!1;return}let P=oy(s,a,B);if(P&&P.pop&&P.pop.echo)return;if(!O){w(),a.onNotFound?a.onNotFound({pathname:g,route:v,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"&&Of(P,l,s));return}let Gt=o&&o.lazy?l.__routerStartSeq:l.__routerStartSeq=(l.__routerStartSeq||0)+1;if(a.guards&&a.guards.length){let M={pathname:g,route:v,params:$,query:m,hash:_,element:r,state:n},X=Bf(a.guards,M);if(Jr(X)&&(X=await X,l.__routerStartSeq!==Gt)){w(),ry(P);return}if(X===!1){w(),vf(P);return}let cn=pt=>{let kt=new d(f+If(pt));return kt.pathname===g&&kt.search===h&&kt.hash===_},Q=typeof X=="string"?X:Lf(X)&&typeof X.path=="string"&&!cn(X.path)?X.path:null;if(Lf(X)&&Q===null){let pt=Oy(X.route,g,r.routes,a.level);if(!pt){a.silent||globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("[smbls/router] a guard chose route",X.route,"for",g,"\u2014 not one of the routes:",Object.keys(r.routes||{})),w(),a.onNotFound?a.onNotFound({pathname:g,route:X.route,element:r}):a.event&&a.event.type==="popstate"&&Of(P,l,s);return}v=pt.route,O=pt.content,$=pt.params,o={...o,route:pt.route}}else if(Q!==null){let pt=!!(P&&P.pop);if(pt&&!Af(P))return;let kt=[...o&&o.__redirectChain||[],g],ft=new d(f+If(Q)).pathname,be=kt.includes(ft)||kt.length>=yO;be&&!a.silent&&(globalThis.__SMBLS_DEV_DIAGNOSTICS_OFF__||console.warn("[smbls/router] redirect loop:",[...kt,ft].join(" \u2192 "),"\u2014 rendering",ft,"without its guards"));let Ct={...o,__redirectChain:kt};return be&&(Ct.guards=[]),typeof X=="string"?delete Ct.route:Ct.route=X.route,pt&&(Ct.event=void 0),delete Ct.render,(pt||a.initialRender)&&(Ct.pushState=!0,Ct.replace=!0),Gn(Q,e,n,Ct)}}let ct=c?wy(O,r,r.routes):null;if(ct&&ct.rematch)return Gn(t,r,n,o);ct&&(O=ct.content,a.lazy={group:ct.group,status:ct.status});let qt=l.__routerNavSeq=(l.__routerNavSeq||0)+1,He=!k||k.content!==O||k.route!==v,ye=!!k&&k.content===O,mt=!(!c||a.keepSamePage===!0&&ye&&a.force!==!0)&&(D||He||a.force===!0);if(mt&&k&&!$i(k.content)){let M=wO(r,l,r[u],{from:k.route,to:v,pathname:g,params:$,query:m,hash:_},a.exitTimeout,i,s);if(M&&(await M,l.__routerNavSeq!==qt||(l.__routeExit&&l.__routeExit.wait===M&&(l.__routeExit=null),typeof r?.set!="function")))return}else zy(l);let et=mt?CO(a,k,i,s):null;if(mt&&TO(l),a.pushState){let M=g+(h||"")+(_||"");iy(P,n,M,a.replace,s)}else P&&Af(P);sy(l,s);let wt=lO(r,a,u),Z=()=>{let M=mt?hO(a,r,u,wt):null,X=(!!k||Iy(wt))&&!!B&&B.scrollTop===0&&!B.scrollLeft,cn=!k&&!!a.initialRender&&!!B&&fO(r)&&(Number(B.scrollTop)>0||Number(B.scrollLeft)>0),pt=D||!x?{route:v,routePath:R,hash:_,params:$,query:m,debugging:!1}:{params:$,query:m};a.updateState&&r.state.update(pt,{preventContentUpdate:!0});let kt=null;if(mt){u&&a.removeOldElement&&r[u].remove();let be=r.__ref?.origin?.content,Ct={};if(be)for(let Dt in be){let Ft=be[Dt];Dt==="__ref"||Dt==="props"||Dt==="node"||Dt==="parent"||Dt==="key"||(typeof Ft=="string"||typeof Ft=="number"||typeof Ft=="boolean"||typeof Ft=="object"&&Ft!==null&&!Ft.node&&!Ft.__ref)&&(Ct[Dt]=Ft)}let Ge={...Ct,...typeof O=="object"?O:{extends:O}};a.useFragment&&(Ge.tag="fragment");let Uo={content:O,route:v},sa=l.__routerRendered;try{if(typeof r?.set!="function")return;l.__routerRendered=Uo;let Dt=!M&&dO(a),Ft=r.set(Ge,wt,M||(Dt?Pf:void 0));Ft&&M?_O(a,M,Ft,()=>l.__routerNavSeq===qt):Ft&&Dt&&pO(a,Ft),kt=uO(r[u])}catch(Dt){l.__routerRendered===Uo&&(l.__routerRendered=sa),console.error("[smbls/router] failed to render route content",g,Dt)}}else ye&&k.route!==v&&l.__routerRendered===k&&(l.__routerRendered={content:O,route:v});let ft=()=>{let be=!D&&x,Ct=!c||ay(P,B,a,i);if(!Ct&&!cn&&a.scrollToTop&&!be&&!X&&B?.scrollTo&&B.scrollTo({...a.scrollToOptions||{},top:0,left:0}),!Ct&&!cn&&a.scrollToNode&&O[u]?.node?.scrollTo&&O[u].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),!Ct&&_){let Ge=i.getElementById(_.slice(1));if(Ge&&B?.scrollTo){let Uo=s.getComputedStyle?s.getComputedStyle(Ge):null,sa=Uo&&parseFloat(Uo.scrollMarginTop)||0,Dt=Ge.getBoundingClientRect().top+B.scrollTop-sa-(a.scrollToOffset||0);B.scrollTo({...a.scrollToOptions||{},top:Dt,left:0})}}ct&&ky(r,ct,Ge=>Gn(t,r,n,{...o,...Ge})),oo("routeChanged",r,a)};if(kt)return kt.then(()=>{Ty(wt,r,a),l.__routerNavSeq===qt&&ft()});Ty(wt,r,a),ft()},lt=et?DO(r,l,et,i,s,qt,Z):null;if(lt){await lt;return}return Z()},IO=Gn;var qE=/*@__PURE__*/__smblsNs({},{A:()=>dS,AssetPicture:()=>ub,Audio:()=>hb,Avatar:()=>NS,B:()=>Lb,Block:()=>Ky,Box:()=>Bb,Br:()=>$b,Bridge:()=>Gb,Button:()=>gS,ButtonSet:()=>bS,COMPONENTS:()=>mx,Caption:()=>Cb,Checkbox:()=>Yb,CheckboxHgroup:()=>Zb,Circle:()=>cb,CircleButton:()=>mS,Clickable:()=>sb,Data:()=>Mb,Dialog:()=>TS,DialogFooter:()=>vS,DialogHeader:()=>AS,Dropdown:()=>fx,DropdownDisclosure:()=>px,DropdownList:()=>ux,DropdownParent:()=>dx,DropdownParentFocus:()=>hx,DropdownSiblingFocus:()=>gx,FileIcon:()=>fS,Flex:()=>Zy,Focusable:()=>ib,FocusableComponent:()=>ab,Footnote:()=>Ib,Form:()=>nb,Grid:()=>Qy,Gutter:()=>tb,H1:()=>mb,H2:()=>yb,H3:()=>bb,H4:()=>Sb,H5:()=>xb,H6:()=>wb,Headline:()=>Rb,Hgroup:()=>Wb,HgroupButton:()=>Hb,HgroupRows:()=>zb,Hoverable:()=>rb,Hr:()=>Nb,I:()=>Pb,Icon:()=>cS,IconButton:()=>SS,IconText:()=>lS,Iframe:()=>ob,Img:()=>eb,Inline:()=>Yy,InlineFlex:()=>Xy,InlineGrid:()=>Jy,Input:()=>qb,Italic:()=>Ob,KangorooButton:()=>yS,Li:()=>Fb,Link:()=>du,Notification:()=>_x,NumberInput:()=>Kb,Ol:()=>Vb,P:()=>kb,Picture:()=>fb,Radio:()=>Xb,RadioHgroup:()=>Qb,Range:()=>$S,RouteLink:()=>pS,RouterLink:()=>pu,SHAPES:()=>ji,Select:()=>hS,Shape:()=>Hf,Span:()=>_b,SquareButton:()=>_S,Strong:()=>Tb,Subhead:()=>Db,Svg:()=>db,Text:()=>gb,Textarea:()=>eS,TextareaWithButton:()=>nS,Theme:()=>lb,Title:()=>Eb,Toggle:()=>Jb,ToggleHgroup:()=>tS,Tooltip:()=>PS,TooltipHidden:()=>MS,TooltipLayer:()=>ku,TooltipParent:()=>BS,U:()=>Ab,Ul:()=>jb,Underline:()=>vb,Video:()=>pb,depth:()=>Vi,focusableRingEnabled:()=>ns,focusableRingToken:()=>Wf,focusableRingValue:()=>qn,getSystemGlobalTheme:()=>os});var Ff=/*@__PURE__*/__smblsNs({},{Block:()=>Ky,Flex:()=>Zy,Grid:()=>Qy,Gutter:()=>tb,Inline:()=>Yy,InlineFlex:()=>Xy,InlineGrid:()=>Jy});var Hy=new Set,PO=t=>t==="icon"?"build.treeShakeIcons":"build.treeShakeComponents",$f=(t,e,n)=>{let o=t+":"+e;if(Hy.has(o)||(Hy.add(o),typeof console>"u"||!console.error))return;let r=n&&n.__ref&&n.__ref.path,s=r&&r.length?` (at <${r.join(".")}>)`:"",i=PO(t);console.error(`[smbls] ${t==="icon"?"Icon":"Component"} "${e}"${s} is not in this build: symbols.json ${i} left it out because the project source never names it. Add "${e}" to ${i}.keep.`)},T=t=>({onInit:{always:!0,handler:e=>$f("component",t,e)}}),Gy=new Set,qN=t=>{for(let e of t)e&&Gy.add(e)},qy=t=>Gy.has(t);var Ky=globalThis.__SMBLS_BUILD_DROP_C_Block__?T("Block"):{display:"block"},Yy=globalThis.__SMBLS_BUILD_DROP_C_Inline__?T("Inline"):{display:"inline"},Zy=globalThis.__SMBLS_BUILD_DROP_C_Flex__?T("Flex"):{display:"flex"},Xy=globalThis.__SMBLS_BUILD_DROP_C_InlineFlex__?T("InlineFlex"):{display:"inline-flex"},Qy=globalThis.__SMBLS_BUILD_DROP_C_Grid__?T("Grid"):{display:"grid"},Jy=globalThis.__SMBLS_BUILD_DROP_C_InlineGrid__?T("InlineGrid"):{display:"inline-grid"},tb=globalThis.__SMBLS_BUILD_DROP_C_Gutter__?T("Gutter"):{boxSize:"C1"};var jf=/*@__PURE__*/__smblsNs({},{Img:()=>eb});var eb={tag:"img",attr:{title:t=>t.title,alt:t=>t.alt!=null?t.alt:t.title||"",src:t=>{let e=ue(t);return e&&e.src||t.src},srcset:t=>{let e=ue(t);return(e?Td(e):"")||t.srcset||t.srcSet}}};var Vf=/*@__PURE__*/__smblsNs({},{Form:()=>nb});var nb=globalThis.__SMBLS_BUILD_DROP_C_Form__?T("Form"):{tag:"form"};var Uf=/*@__PURE__*/__smblsNs({},{Iframe:()=>ob});var ob=globalThis.__SMBLS_BUILD_DROP_C_Iframe__?T("Iframe"):{tag:"iframe",position:"relative",minWidth:"G",minHeight:"G"};var zf=/*@__PURE__*/__smblsNs({},{Clickable:()=>sb,Focusable:()=>ib,FocusableComponent:()=>ab,Hoverable:()=>rb,focusableRingEnabled:()=>ns,focusableRingToken:()=>Wf,focusableRingValue:()=>qn});var MO={appearance:"none",fontFamily:"inherit"},rb=globalThis.__SMBLS_BUILD_DROP_C_Hoverable__?T("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}}},sb=globalThis.__SMBLS_BUILD_DROP_C_Clickable__?T("Clickable"):{extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}};function ns(t){let e=t.context&&t.context.designSystem;return!e||e.focusableRing!==!1}function Wf(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 qn(t,e,n){let o=Wf(t);return o&&o[e]!==void 0?o[e]:n}var ib=globalThis.__SMBLS_BUILD_DROP_C_Focusable__?T("Focusable"):{border:"none",outline:t=>ns(t)?"solid 0 currentColor":"none",":focus-visible":{opacity:1,outline:t=>ns(t)?qn(t,"outline","solid X currentColor"):"none",outlineOffset:t=>ns(t)?qn(t,"outlineOffset"):void 0}},ab=globalThis.__SMBLS_BUILD_DROP_C_FocusableComponent__?T("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:MO};var Kf=/*@__PURE__*/__smblsNs({},{Picture:()=>fb});var qf=/*@__PURE__*/__smblsNs({},{Theme:()=>lb,getSystemGlobalTheme:()=>os});var Gf=/*@__PURE__*/__smblsNs({},{Circle:()=>cb,SHAPES:()=>ji,Shape:()=>Hf,default:()=>BO,depth:()=>Vi});var ae=A(),Vi={4:{boxShadow:`rgba(0,0,0,.10) 0 2${ae.unit.default} 4${ae.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${ae.unit.default} 6${ae.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${ae.unit.default} 10${ae.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${ae.unit.default} 16${ae.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${ae.unit.default} 26${ae.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${ae.unit.default} 42${ae.unit.default}`}},$o=t=>z(t.shapeDirectionColor)||z(t.borderColor)||z(t.backgroundColor)||z(t.background),Fi=t=>{let e=si.transition(t.transition,t);return e&&e.transition},ji={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:$o(t),transition:Fi(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:$o(t),transition:Fi(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:$o(t),transition:Fi(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:Fi(t),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${$o(t)} 25%, transparent 25%), linear-gradient(315deg, ${$o(t)} 25%, transparent 25%)`},"&:after":{background:$o(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)"}}}},Hf={deps:{exec:qe,getSpacingBasedOnRatio:pe,getMediaColor:yt},classlist:{shape:t=>t.deps.exec(ji[t.shape],t),shapeDirection:t=>{if(!t.shape||!t.shapeDirection)return;let e=ji[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}}},cb=globalThis.__SMBLS_BUILD_DROP_C_Circle__?T("Circle"):{round:"100%"},BO=Hf;var os=({context:t,state:e})=>{let n=e&&e.root,o=n&&n.globalTheme||t.designSystem&&t.designSystem.globalTheme;return o==="auto"?null:o},lb=globalThis.__SMBLS_BUILD_DROP_C_Theme__?T("Theme"):{deps:{depth:Vi},classlist:{depth:t=>!cs(t.depth)&&t.deps.depth[t.depth]}};var fb=globalThis.__SMBLS_BUILD_DROP_C_Picture__?T("Picture"):{deps:{getSystemGlobalTheme:os},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:os},tag:"source",attr:{media:t=>{let{key:e,context:n,deps:o}=t,{media:r}=n.designSystem,s=o.getSystemGlobalTheme(t),i=(t.media||e).slice(1);return i===s?"(min-width: 0px)":i==="dark"||i==="light"?"(max-width: 0px)":r[i]}}},Img:{width:"inherit",ignoreChildExtends:!0,height:"inherit",src:(t,e)=>t.parent?.src||e.src}};var Yf=/*@__PURE__*/__smblsNs({},{AssetPicture:()=>ub});var ub=globalThis.__SMBLS_BUILD_DROP_C_AssetPicture__?T("AssetPicture"):{tag:"picture",children:t=>{let e=ue(t);if(e)return Ad(e,t.alt)}};var Zf=/*@__PURE__*/__smblsNs({},{Svg:()=>db});var db={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,s=t.spriteId||n&&n.useSvgSprite,i=t.call("exec",t.src,t),a=d=>`<use xlink:href="#${d}" />`;if(typeof i=="string"){let d=i.match(/^\s*<symbol\b[^>]*\bid="([^"]+)"/);if(d){let p=d[1],g=e.document||(typeof document<"u"?document:null);if(!(g&&typeof g.getElementById=="function"&&g.getElementById(p))){let _=o&&o.scratchSystem&&o.scratchSystem.appendSVGSprite;n&&!n.__svgCache&&(n.__svgCache={}),typeof _=="function"?_({[p]:i},{document:g}):o&&typeof o.init=="function"&&o.init({svg:{[p]:i}},{document:g,emotion:e.emotion})}return a(p)}}if(!s&&i)return i;let c=t.spriteId;if(c)return a(c);if(r&&r[i])return a(i);let l=Symbol.for(i),u=r[l];if(u&&r[u])return a(u);if(!i)return a("");if(typeof i=="string"&&!i.includes("<"))return typeof console<"u"&&console.warn&&console.warn(`[Svg] Unknown sprite symbol "${i}" \u2014 not registered in design-system sprite. Set the icon name to one that exists in designSystem.icons / context.svg, or register the SVG body via utils.init({ svg: { '${i}': '<svg>...</svg>' } }).`),a("");let f=0;for(let d=0;d<i.length;d++)f=(f<<5)-f+i.charCodeAt(d)|0;return u=r[l]=`svg-${(f>>>0).toString(36)}`,o.init({svg:{[u]:i}},{document:e.document,emotion:e.emotion}),a(u)}};var Xf=/*@__PURE__*/__smblsNs({},{Video:()=>pb});var pb=globalThis.__SMBLS_BUILD_DROP_C_Video__?T("Video"):{tag:"video",controls:!0,attr:{src:t=>{let e=ue(t);return e&&e.src||t.src}},children:t=>{let e=ue(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 Qf=/*@__PURE__*/__smblsNs({},{Audio:()=>hb});var hb=globalThis.__SMBLS_BUILD_DROP_C_Audio__?T("Audio"):{tag:"audio",controls:!0,attr:{src:t=>{let e=ue(t);return e&&e.src||t.src}},children:t=>{let e=ue(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 Jf=/*@__PURE__*/__smblsNs({},{B:()=>Lb,Caption:()=>Cb,Data:()=>Mb,Footnote:()=>Ib,H1:()=>mb,H2:()=>yb,H3:()=>bb,H4:()=>Sb,H5:()=>xb,H6:()=>wb,Headline:()=>Rb,I:()=>Pb,Italic:()=>Ob,P:()=>kb,Span:()=>_b,Strong:()=>Tb,Subhead:()=>Db,Text:()=>gb,Title:()=>Eb,U:()=>Ab,Underline:()=>vb});var gb=globalThis.__SMBLS_BUILD_DROP_C_Text__?T("Text"):{},_b=globalThis.__SMBLS_BUILD_DROP_C_Span__?T("Span"):{tag:"span"},mb=globalThis.__SMBLS_BUILD_DROP_C_H1__?T("H1"):{tag:"h1"},yb=globalThis.__SMBLS_BUILD_DROP_C_H2__?T("H2"):{tag:"h2"},bb=globalThis.__SMBLS_BUILD_DROP_C_H3__?T("H3"):{tag:"h3"},Sb=globalThis.__SMBLS_BUILD_DROP_C_H4__?T("H4"):{tag:"h4"},xb=globalThis.__SMBLS_BUILD_DROP_C_H5__?T("H5"):{tag:"h5"},wb=globalThis.__SMBLS_BUILD_DROP_C_H6__?T("H6"):{tag:"h6"},kb=globalThis.__SMBLS_BUILD_DROP_C_P__?T("P"):{tag:"p"},Cb=globalThis.__SMBLS_BUILD_DROP_C_Caption__?T("Caption"):{tag:"caption"},Tb=globalThis.__SMBLS_BUILD_DROP_C_Strong__?T("Strong"):{tag:"strong",fontWeight:"700"},Ab=globalThis.__SMBLS_BUILD_DROP_C_U__?T("U"):{tag:"u"},vb=globalThis.__SMBLS_BUILD_DROP_C_Underline__?T("Underline"):{tag:"u"},Ob=globalThis.__SMBLS_BUILD_DROP_C_Italic__?T("Italic"):{tag:"i"},Eb=globalThis.__SMBLS_BUILD_DROP_C_Title__?T("Title"):{},Rb=globalThis.__SMBLS_BUILD_DROP_C_Headline__?T("Headline"):{tag:"h6",fontSize:"B",fontWeight:500},Db=globalThis.__SMBLS_BUILD_DROP_C_Subhead__?T("Subhead"):{tag:"span",fontSize:"Z1"},Ib=globalThis.__SMBLS_BUILD_DROP_C_Footnote__?T("Footnote"):{tag:"span",fontSize:"Z"},Lb=globalThis.__SMBLS_BUILD_DROP_C_B__?T("B"):{tag:"b"},Pb=globalThis.__SMBLS_BUILD_DROP_C_I__?T("I"):{tag:"i"},Mb=globalThis.__SMBLS_BUILD_DROP_C_Data__?T("Data"):{tag:"data"};var tu=/*@__PURE__*/__smblsNs({},{Box:()=>Bb,Br:()=>$b,Hr:()=>Nb,Li:()=>Fb,Ol:()=>Vb,Ul:()=>jb});var NO=t=>{if(!t.context)return;let{props:e,__ref:n}=t,o=ne(e,t,{unpack:!1});n.__class=o},Bb=globalThis.__SMBLS_BUILD_DROP_C_Box__?T("Box"):{extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:NO},Nb=globalThis.__SMBLS_BUILD_DROP_C_Hr__?T("Hr"):{tag:"hr",margin:"C1 0"},$b=globalThis.__SMBLS_BUILD_DROP_C_Br__?T("Br"):{tag:"br"},Fb=globalThis.__SMBLS_BUILD_DROP_C_Li__?T("Li"):{tag:"li"},jb=globalThis.__SMBLS_BUILD_DROP_C_Ul__?T("Ul"):{tag:"ul",childExtends:{extends:"Li"}},Vb=globalThis.__SMBLS_BUILD_DROP_C_Ol__?T("Ol"):{tag:"ol",childExtends:{extends:"Li"}};var eu=/*@__PURE__*/__smblsNs({},{Hgroup:()=>Wb,HgroupButton:()=>Hb,HgroupRows:()=>zb});var Ub=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},Wb=globalThis.__SMBLS_BUILD_DROP_C_Hgroup__?T("Hgroup"):{display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{if:Ub,color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{if:Ub,margin:"0",color:"paragraph"}},zb=globalThis.__SMBLS_BUILD_DROP_C_HgroupRows__?T("HgroupRows"):{extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},Hb=globalThis.__SMBLS_BUILD_DROP_C_HgroupButton__?T("HgroupButton"):{extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}};var nu=/*@__PURE__*/__smblsNs({},{Bridge:()=>Gb});var Gb=globalThis.__SMBLS_BUILD_DROP_C_Bridge__?T("Bridge"):{tag:"div"};var ou=/*@__PURE__*/__smblsNs({},{Input:()=>qb});var qb={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 ru=/*@__PURE__*/__smblsNs({},{NumberInput:()=>Kb});var Kb={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 su=/*@__PURE__*/__smblsNs({},{Checkbox:()=>Yb,CheckboxHgroup:()=>Zb});var Yb={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=>qn(t,"outline","solid X currentColor"),outlineOffset:t=>qn(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"}}},Zb=globalThis.__SMBLS_BUILD_DROP_C_CheckboxHgroup__?T("CheckboxHgroup"):{display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}};var iu=/*@__PURE__*/__smblsNs({},{Radio:()=>Xb,RadioHgroup:()=>Qb});var Xb=globalThis.__SMBLS_BUILD_DROP_C_Radio__?T("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}},Qb=globalThis.__SMBLS_BUILD_DROP_C_RadioHgroup__?T("RadioHgroup"):{extends:"CheckboxHgroup",Checkbox:null,Radio:{}};var au=/*@__PURE__*/__smblsNs({},{Toggle:()=>Jb,ToggleHgroup:()=>tS});var Jb={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}},tS=globalThis.__SMBLS_BUILD_DROP_C_ToggleHgroup__?T("ToggleHgroup"):{extends:"CheckboxHgroup",Checkbox:null,Toggle:{}};var cu=/*@__PURE__*/__smblsNs({},{Textarea:()=>eS,TextareaWithButton:()=>nS});var eS=globalThis.__SMBLS_BUILD_DROP_C_Textarea__?T("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"}},nS=globalThis.__SMBLS_BUILD_DROP_C_TextareaWithButton__?T("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 uu=/*@__PURE__*/__smblsNs({},{FileIcon:()=>fS,Icon:()=>cS,IconText:()=>lS});var oS=new Set,rS=(t,e)=>{if(!oS.has(t)&&(oS.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.`)}},sS=(t,e)=>{let n=t.find(o=>o&&qy(o));return n?($f("icon",n,e),!0):!1},iS=new WeakMap,$O=t=>{let e=iS.get(t);return e||(e={pending:new Map,waiting:new Map,failed:new Set},iS.set(t,e)),e},FO=(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},jO=(t,e,n)=>{let o=n&&n.context&&n.context.document||(typeof document<"u"?document:null);dt(t);try{let r=A();r&&!r.__svgCache&&(r.__svgCache={}),t.__svgCache||(t.__svgCache={});let s={};for(let i in e){let a=hr(e[i],i);a&&(t.icons[i]=a,s[i]=a)}return t.useIconSprite&&o&&Object.keys(s).length&&oc(s,{document:o}),Object.keys(s).length>0}finally{ot()}},VO=(t,e,n,o,r)=>{let s=t&&t.designSystem,i=s&&s.iconsLoader;if(typeof i!="function"||!s.icons)return!1;let a=$O(s);if(a.failed.has(e))return!1;let c=a.waiting.get(e);if(c||(c=new Set,a.waiting.set(e,c)),c.add(r),a.pending.has(e))return!0;let l=()=>i(e,t),u=Promise.resolve().then(l).then(f=>{let d=FO(f,n);return d?jO(s,d,o):!1}).catch(f=>(typeof console<"u"&&console.error&&console.error(`[Icon] iconsLoader failed for "${e}":`,f),!1)).then(f=>{a.pending.delete(e);let d=a.waiting.get(e);a.waiting.delete(e),f||a.failed.add(e),d&&d.forEach(p=>{try{p(f)}catch(g){console.error("[Icon] repaint error:",g)}})});return a.pending.set(e,u),!0},UO="0 0 24 24",WO=/<(symbol|svg)\b[^>]*>/i,zO={viewBox:/\sviewBox\s*=\s*(?:"([^"]*)"|'([^']*)')/i,width:/\swidth\s*=\s*(?:"([^"]*)"|'([^']*)')/i,height:/\sheight\s*=\s*(?:"([^"]*)"|'([^']*)')/i},lu=(t,e)=>{let n=t.match(zO[e]);return n?n[1]!==void 0?n[1]:n[2]:void 0},aS=t=>{let e=typeof t=="string"&&t.match(/^\s*(\d*\.?\d+)\s*(?:px)?\s*$/);return e?Number(e[1]):void 0},HO=(t,e)=>{if(typeof t!="string")return;let n=t.match(WO);if(!n)return;let o=(lu(n[0],"viewBox")||"").trim().split(/[\s,]+/).map(Number),r=o.length===4&&o[2]>0&&o[3]>0?[o[2],o[3]]:void 0,s=aS(lu(n[0],"width")),i=aS(lu(n[0],"height")),a=s>0&&i>0?[s,i]:void 0,c=n[1].toLowerCase()==="symbol"||e?r||a:a||r;return c?`0 0 ${c[0]} ${c[1]}`:void 0},fu=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 HO(t.call("exec",t.src,t),o)||UO},cS={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:s,verbose:i}=n&&n.designSystem,{toCamelCase:a}=n&&n.utils,c=!1,l=(h,_)=>{try{return{value:t.call("exec",h,_)}}catch(m){if(t.__ref&&(t.__ref.__iconNameError=m),!c&&typeof console<"u"&&console.warn){c=!0;let b=t.__ref&&t.__ref.path,x=b&&b.length?` at <${b.join(".")}>`:"";console.warn(`[Icon] name/icon factory threw${x} \u2014 treated as no name (a painted glyph stays):`,m&&m.message||m)}return{threw:!0}}},u=(h,_)=>{let{semanticIcons:m}=_&&_.designSystem,{toCamelCase:b}=_&&_.utils,D=b(h).split(/([a-z])([A-Z])/g),y=D[1]?D[0]:h.split(".")[0].split(" ")[0],S=m&&m[y];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'"}}}}},f=h=>{let{key:_}=h,m=l(h.name||h.icon||_,h);if(m.threw)return{name:_,threw:!0};let b=m.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=f(t);if(h.threw&&t.node&&t.node.innerHTML)return;let _=h.name,m=_;if(_.includes(" ")){let B=_.split(" ");_=B[0]+B.slice(1).map(P=>P.charAt(0).toUpperCase()+P.slice(1)).join("")}let b=a(_),x=b.split(/([a-z])([A-Z])/g),D=u(m,n);if(D){Object.assign(t,D);return}let y,S=t[".isActive"];S&&(S.name||S.icon)&&t.isActive&&(y=l(S.name||S.icon,t).value);let w=o&&o[".isActive"];w&&w.icon&&o.isActive&&(y=l(w.icon||w.Icon.name||w.Icon.icon,t).value),t.call("isString",y)&&y.includes("{{")&&(y=t.call("replaceLiteralsWithObjectFields",y));let k;r[y]&&(k=y),r[b]?k=b:r[x[0]+x[1]]?k=x[0]+x[1]:r[x[0]]?k=x[0]:i&&t.warn("Can't find icon:",_,k);let v=r[k],R=o&&o.src||d;!v&&!R&&(VO(n,m,b,t,P=>{if(!(p&&p._disposed)){if(!P)return globalThis.__SMBLS_BUILD_DROP_ICONS__&&sS([y,b,x[0]+x[1],x[0]],t)||rS(m,t);g()}})||globalThis.__SMBLS_BUILD_DROP_ICONS__&&sS([y,b,x[0]+x[1],x[0]],t)||rS(m,t));let O=s&&k,$=v||R||r.noIcon;if(!(t.spriteId===O&&t.src===$&&t.node&&t.node.innerHTML)){if(t.spriteId=O,t.src=$,typeof t.html=="function"&&t.node){let B=t.context&&t.context.designSystem;B&&dt(B);try{let P=t.html(t,t.state,t.context);P!=null&&typeof P!="function"&&(t.node.innerHTML=P)}finally{B&&ot()}}t.node&&t.attr&&t.attr.viewBox===fu&&t.node.setAttribute("viewBox",fu(t))}};p=N(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:fu,"aria-hidden":t=>t.ariaLabel||t.role==="img"?null:"true",focusable:"false"}},lS=globalThis.__SMBLS_BUILD_DROP_C_IconText__?T("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},fS=globalThis.__SMBLS_BUILD_DROP_C_FileIcon__?T("FileIcon"):{display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z2",Icon:{fontSize:"B",margin:"auto",icon:"file"}};var hu=/*@__PURE__*/__smblsNs({},{A:()=>dS,Link:()=>du,RouteLink:()=>pS,RouterLink:()=>pu});var GO=(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")},qO=(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()))},uS=(t,e,n)=>{let{context:o}=e,{href:r,scrollToTop:s,stopPropagation:i}=e,a=e.call("exec",r,e);if(e.call("isString",a)&&a.includes("{{")&&(a=e.call("replaceLiteralsWithObjectFields",a)),i&&t.stopPropagation(),!a||GO(t,e))return;if(a.startsWith("#")){t.preventDefault(),qO(a,e);return}let{utils:c,snippets:l,functions:u,routerOptions:f}=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(f&&f.customRouterElement){let h=Array.isArray(f.customRouterElement)?f.customRouterElement:f.customRouterElement.split("."),_=d;for(let m of h){if(!_||!_[m]){_=null;break}_=_[m]}_&&(g=_,d.routes&&(g.routes=d.routes))}(u.router||l.router||c.router||Gn)(a,g,{},{scrollToOptions:{behavior:"instant"},scrollToTop:e.call("isDefined",s)?s:!0,...f,...e.routerOptions})}catch(g){console.warn(g)}}},du={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:t=>Bn(t,t.href)||Bn(t,t.call("exec",t,t).href),"aria-label":t=>t.aria?t.aria.label:t.text},onClick:uS},dS=globalThis.__SMBLS_BUILD_DROP_C_A__?T("A"):{extends:"Link"},pu={onClick:uS},pS=globalThis.__SMBLS_BUILD_DROP_C_RouteLink__?T("RouteLink"):{extends:[du,pu]};var gu=/*@__PURE__*/__smblsNs({},{Select:()=>hS});var hS=globalThis.__SMBLS_BUILD_DROP_C_Select__?T("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 _u=/*@__PURE__*/__smblsNs({},{Button:()=>gS,ButtonSet:()=>bS,CircleButton:()=>mS,IconButton:()=>SS,KangorooButton:()=>yS,SquareButton:()=>_S});var gS=globalThis.__SMBLS_BUILD_DROP_C_Button__?T("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)},_S=globalThis.__SMBLS_BUILD_DROP_C_SquareButton__?T("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"},mS=globalThis.__SMBLS_BUILD_DROP_C_CircleButton__?T("CircleButton"):{extends:"SquareButton",round:"C"},yS=globalThis.__SMBLS_BUILD_DROP_C_KangorooButton__?T("KangorooButton"):{extends:"Button",childExtends:"IconText"},bS=globalThis.__SMBLS_BUILD_DROP_C_ButtonSet__?T("ButtonSet"):{tag:"nav",display:"flex",childExtends:"SquareButton"},SS={extends:["SquareButton","ClickableItem"],round:"Z"};var yu=/*@__PURE__*/__smblsNs({},{Dialog:()=>TS,DialogFooter:()=>vS,DialogHeader:()=>AS});var KO={ok:1,cancel:1},Kn=new WeakMap,YO=0,ce=t=>{let e=t&&t.node;return e&&e.nodeType===1?e:null},mu=t=>{let e=Kn.get(t);return e||(e={id:"smbls-dialog-"+ ++YO,want:void 0,waiting:!1},Kn.set(t,e)),e},rs=(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,Fo=(t,e,n)=>{n===null?t.removeAttribute(e):t.setAttribute(e,n)},xS=["methods","functions","utils"],ZO=t=>{for(let e=0;e<xS.length;e++){let n=t[xS[e]];if(n&&typeof n.polyglot=="function")return!0}return!1},Ui=(t,e,n)=>{let o=t.context;if(!o||!ZO(o))return n;let r=t.call("polyglot",e);return typeof r=="string"&&r&&r!==e?r:n},wS=t=>{let e=Kn.get(t),n=ce(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},kS=t=>{queueMicrotask(()=>{if(wS(t))return;let e=Kn.get(t);!e||e.waiting||typeof t.whenConnected!="function"||(e.waiting=!0,t.whenConnected(()=>{e.waiting=!1,wS(t)}))})},XO=t=>{let e=t.__ref;if(!e||!ce(t)||!Object.prototype.hasOwnProperty.call(t,"modal")||rs(t,"data-dialog"))return;let n=N(()=>{let o=t.modal,r=ce(t);if(!r)return;if(o==null){Fo(r,"data-dialog",null);return}Fo(r,"data-dialog","modal");let s=mu(t),i=!!o;s.want!==i&&(s.want=i,kS(t))},{depth:e.path&&e.path.length||0});e.__effects||(e.__effects=[]),e.__effects.push(n)},QO=t=>t.dialogTitle===!0,JO=t=>{for(let e=t;e;e=e.parent)if(e.tag==="dialog")return e;return null},CS=t=>{let e=JO(t);return!e||!e.locked},tE=t=>t.key==="Escape"||t.key==="Esc",eE=t=>{let e=t.__ref,n=ce(t);if(!e||!n||!Object.prototype.hasOwnProperty.call(t,"locked"))return;let o=mu(t),r=!rs(t,"closedby","closedBy"),s=N(()=>{let l=!!t.locked,u=ce(t);u&&r&&Fo(u,"closedby",l?"none":null)},{depth:e.path&&e.path.length||0});e.__effects||(e.__effects=[]),e.__effects.push(s);let i=l=>{t.locked&&l.preventDefault()},a=t.context&&t.context.window||n.ownerDocument.defaultView,c=l=>{let u=ce(t);u&&u.open&&u.isConnected&&tE(l)&&t.locked&&l.preventDefault()};n.addEventListener("cancel",i),a&&a.addEventListener("keydown",c),o.unlock=()=>{n.removeEventListener("cancel",i),a&&a.removeEventListener("keydown",c)}},nE=t=>{let e=ce(t);if(!e||e.hasAttribute("aria-labelledby")||e.hasAttribute("aria-label")||rs(t,"aria-labelledby","ariaLabelledby","labelledby"))return;let n=typeof t.lookdown=="function"?t.lookdown(QO):null,o=ce(n);if(!o)return;let r=o.getAttribute("id");if(!r){if(rs(n,"id"))return;r=mu(t).id+"-title",Fo(o,"id",r)}Fo(e,"aria-labelledby",r)},oE=(t,e)=>{let n=ce(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 s=r.getAttribute("data-dialog-action");if(KO[s]!==1)return;let i=n.ownerDocument.defaultView,a=new i.Event(s,{cancelable:!0});n.dispatchEvent(a),!a.defaultPrevented&&n.open&&typeof n.close=="function"&&n.close(s)},rE=t=>{let e=Kn.get(t);e&&e.unlock&&(e.unlock(),e.unlock=null);let n=ce(t);e&&e.want!==void 0&&n&&n.open&&typeof n.close=="function"&&n.close()},sE=t=>{let e=Kn.get(t),n=ce(t);e&&e.want!==void 0&&n&&!n.isConnected&&n.hasAttribute("open")&&n.removeAttribute("open")},iE=t=>{let e=Kn.get(t);e&&e.want&&kS(t)},aE=t=>{let e=ce(t);if(!e||!Object.prototype.hasOwnProperty.call(t,"modal")||rs(t,"data-dialog"))return;let n=t.modal;if(typeof n=="function")try{n=n(t,t.state)}catch{return}n!=null&&Fo(e,"data-dialog","modal")},TS=globalThis.__SMBLS_BUILD_DROP_C_Dialog__?T("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=>aE(t)},onComplete:{always:!0,handler:t=>{XO(t),eE(t),nE(t)}},onRender:{always:!0,handler:t=>iE(t)},onClick:(t,e)=>oE(t,e),onBeforeRemove:{always:!0,handler:t=>rE(t)},onRemove:{always:!0,handler:t=>sE(t)}},AS=globalThis.__SMBLS_BUILD_DROP_C_DialogHeader__?T("DialogHeader"):{extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{dialogTitle:!0,text:t=>Ui(t,"dialog.title","Title")},SquareButton:{if:CS,icon:"x",theme:"transparent",aria:{label:t=>Ui(t,"dialog.close","Close")},data:{dialogAction:"cancel"}}},Paragraph:{color:"caption"}},vS=globalThis.__SMBLS_BUILD_DROP_C_DialogFooter__?T("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:CS,text:t=>Ui(t,"dialog.cancel","Cancel"),data:{dialogAction:"cancel"}},Ok:{text:t=>Ui(t,"dialog.ok","OK"),data:{dialogAction:"ok"}}};var Cu=/*@__PURE__*/__smblsNs({},{Tooltip:()=>PS,TooltipHidden:()=>MS,TooltipLayer:()=>ku,TooltipParent:()=>BS});var cE='[data-tooltip]:not([data-tooltip=""])',OS={top:1,bottom:1,left:1,right:1},bu={top:"bottom",bottom:"top",left:"right",right:"left"},Yn=6,ES=new WeakMap,lE=0,Nt=t=>{let e=ES.get(t);return e||(e={id:"smbls-tooltip-"+ ++lE,hover:null,focus:null,shown:null,dismissed:null,showTimer:null,hideTimer:null},ES.set(t,e)),e},Su=t=>{let e=t&&t.nodeType!==1?t.parentElement:t;return e&&typeof e.closest=="function"?e:null},fE=t=>{let e=t.parent&&t.parent.node;return e&&e.nodeType===1?e:null},uE=t=>{for(let e=t.firstElementChild;e;e=e.nextElementSibling)if(e.hasAttribute("data-tooltip-layer"))return!0;return!1},RS=(t,e)=>{let n=fE(t);if(!e||!n)return null;let o;try{o=e.closest(cE)}catch{return null}if(!o||!n.contains(o))return null;for(let r=o;r&&r!==n;r=r.parentElement)if(uE(r))return null;return o},dE=(t,e)=>!!(e&&t.node&&t.node.contains(e)),pE=t=>{try{return t.matches(":focus-visible")}catch{return!0}},DS=(t,e)=>typeof t=="number"&&t>=0?t:e,Gi=t=>{t.showTimer&&(clearTimeout(t.showTimer),t.showTimer=null),t.hideTimer&&(clearTimeout(t.hideTimer),t.hideTimer=null)},xu=t=>!!(t.node&&t.node.isConnected&&t.state&&typeof t.state.update=="function"),hE=(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(" "))},wu=(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")},gE=(t,e,n,o,r)=>{let s={top:t.top,bottom:r-t.bottom,left:t.left,right:o-t.right},i=u=>(u==="top"||u==="bottom"?e.height:e.width)+Yn;s[n]<i(n)&&s[bu[n]]>=i(bu[n])&&(n=bu[n]);let a,c;n==="top"||n==="bottom"?(a=t.left+(t.width-e.width)/2,c=n==="bottom"?t.bottom+Yn:t.top-e.height-Yn):(c=t.top+(t.height-e.height)/2,a=n==="right"?t.right+Yn:t.left-e.width-Yn);let l=(u,f)=>Math.max(Yn,Math.min(f-Yn,u));return{left:l(a,o-e.width),top:l(c,r-e.height),side:n}},_E=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}},mE=t=>(t.title||"")+(t.description||""),zi=(t,e=0)=>{let o=Nt(t).shown;if(!o||!xu(t))return;if(!o.isConnected){Hi(t);return}let r=t.node,s=t.state;if(r.textContent!==mE(s)){e<3&&setTimeout(()=>zi(t,e+1),0);return}let i=o.getBoundingClientRect(),a=r.getBoundingClientRect(),c=a.left-(s.x||0),l=a.top-(s.y||0),u=_E(r),f=o.getAttribute("data-tooltip-placement"),d=OS[f]?f:OS[t.tooltipPlacement]?t.tooltipPlacement:"bottom",p=gE(i,{width:a.width,height:a.height},d,u.width,u.height);s.update({x:Math.round(p.left-c),y:Math.round(p.top-l),side:p.side,placed:!0})},yE=t=>{typeof queueMicrotask=="function"?queueMicrotask(t):Promise.resolve().then(t)},IS=(t,e)=>{let n=Nt(t);Gi(n),!(!xu(t)||!e.isConnected)&&(n.shown&&n.shown!==e&&wu(n.shown,n.id),n.shown=e,hE(e,n.id),t.state.update({open:!0,placed:!1,title:e.getAttribute("data-tooltip")||"",description:e.getAttribute("data-tooltip-description")||""}),yE(()=>zi(t)))};function Hi(t){let e=Nt(t);Gi(e),e.shown&&wu(e.shown,e.id),e.shown=null,xu(t)&&t.state.open&&t.state.update({open:!1})}var Wi=(t,e)=>{let n=Nt(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){Gi(n);return}if(!o){if(n.showTimer&&(clearTimeout(n.showTimer),n.showTimer=null),!n.shown||n.hideTimer)return;if(e){Hi(t);return}n.hideTimer=setTimeout(()=>{n.hideTimer=null,Hi(t)},DS(t.tooltipHideDelay,100));return}if(n.hideTimer&&(clearTimeout(n.hideTimer),n.hideTimer=null),e||n.shown){IS(t,o);return}n.showTimer&&clearTimeout(n.showTimer),n.showTimer=setTimeout(()=>{n.showTimer=null,IS(t,o)},DS(t.tooltipDelay,250))},LS=t=>{let e=Nt(t);e.shown&&(e.dismissed=e.shown,Hi(t))},ku=globalThis.__SMBLS_BUILD_DROP_C_TooltipLayer__?T("TooltipLayer"):{role:"tooltip",id:t=>Nt(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=Nt(e),o=Su(t.target),r=dE(e,o)?n.shown:RS(e,o);r===n.hover&&(r||!n.shown)||(n.hover=r,Wi(e,!1))}},onDocumentPointerout:{capture:!0,passive:!0,handler:(t,e)=>{if(t.relatedTarget)return;let n=Nt(e);n.hover&&(n.hover=null,Wi(e,!1))}},onDocumentPointerdown:{capture:!0,passive:!0,handler:(t,e)=>{let n=Nt(e),o=Su(t.target);n.shown&&o&&n.shown.contains(o)&&LS(e)}},onDocumentFocusin:{capture:!0,handler:(t,e)=>{let n=Nt(e),o=Su(t.target),r=o&&pE(o)?RS(e,o):null;r!==n.focus&&(n.focus=r,Wi(e,!0))}},onDocumentFocusout:{capture:!0,handler:(t,e)=>{if(t.relatedTarget)return;let n=Nt(e);n.focus&&(n.focus=null,Wi(e,!0))}},onDocumentKeydown:{capture:!0,handler:(t,e)=>{(t.key==="Escape"||t.key==="Esc")&&LS(e)}},onDocumentScroll:{capture:!0,passive:!0,handler:(t,e)=>{Nt(e).shown&&zi(e)}},onWindowResize:(t,e)=>{Nt(e).shown&&zi(e)},onBeforeRemove:t=>{let e=Nt(t);Gi(e),e.shown&&wu(e.shown,e.id),e.shown=e.hover=e.focus=e.dismissed=null}};var PS=globalThis.__SMBLS_BUILD_DROP_C_Tooltip__?T("Tooltip"):{display:"flex",theme:"dialog",background:"black",flow:"column",shape:"tooltip",shapeDirection:"left",padding:"Z1 A",round:"Y2",width:"fit-content",minWidth:"D2",maxWidth:"F2",gap:"X",textAlign:"center",attr:{tooltip:!0},Title:{if:t=>St(t.parent.title)||t.parent.title,width:"fit-content",fontWeight:500,color:"gray12",text:t=>t.parent.title},P:{if:(t,e)=>t.call("isDefined",t.call("exec",t.parent.description,t))||t.text,width:"fit-content",fontSize:"Z2",margin:"0",color:"gray6",fontWeight:"400",text:(t,e)=>t.call("exec",t.parent.description,t)}},MS=globalThis.__SMBLS_BUILD_DROP_C_TooltipHidden__?T("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)}},BS=globalThis.__SMBLS_BUILD_DROP_C_TooltipParent__?T("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 Tu=/*@__PURE__*/__smblsNs({},{Avatar:()=>NS});var bE=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)},NS=globalThis.__SMBLS_BUILD_DROP_C_Avatar__?T("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=bE(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 Au=/*@__PURE__*/__smblsNs({},{Range:()=>$S});var $S={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:ws("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:ws("#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 Bu=/*@__PURE__*/__smblsNs({},{Dropdown:()=>fx,DropdownDisclosure:()=>px,DropdownList:()=>ux,DropdownParent:()=>dx,DropdownParentFocus:()=>hx,DropdownSiblingFocus:()=>gx});var Qi="hover",US="focus",ss="sibling",ze="disclosure",FS={menu:1,listbox:1,tree:1,grid:1,dialog:1},SE={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},xE={BUTTON:1,INPUT:1,SELECT:1,TEXTAREA:1},wE='button, a[href], [role^="menuitem"], [role="option"]',kE={ArrowDown:1,Down:1,ArrowUp:-1,Up:-1,Home:"first",End:"last"},Ki=new WeakMap,Yi=new WeakMap,Zi=new WeakMap,Ou=new WeakMap,WS=new WeakSet,CE=0,G=t=>{let e=t&&t.node;return e&&e.nodeType===1?e:null},jo=(t,e)=>{let n=G(t);return n?n.getAttribute(e):null},nt=(t,e)=>{let n=G(t);return!!n&&!!e&&(n===e||n.contains(e))},vu=t=>{let e=G(t);return!!e&&e.hasAttribute("dropdown")},Eu=t=>{let e=G(t);return!!e&&e.tagName==="BUTTON"},qi=t=>Eu(t)||jo(t,"role")==="button",jS=t=>{let e=G(t);return!!e&&SE[e.tagName]===1&&!e.isContentEditable},zS=t=>{let e=G(t);return!!e&&!e.disabled&&!e.hidden&&e.getAttribute("aria-disabled")!=="true"},is=t=>{let e=jo(t,"role");return!!e&&e.indexOf("menuitem")===0&&zS(t)},TE=t=>{let e=G(t);if(!e||!zS(t))return!1;if(xE[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},Zn=t=>t&&typeof t.getChildren=="function"?t.getChildren():[],$t=t=>t&&typeof t.dropdownMode=="string"?t.dropdownMode:null,Ru=t=>{let e=t&&t.Input_trigger;return e&&e.__ref?e:null},HS={tabindex:"tabIndex","aria-expanded":"ariaExpanded","aria-haspopup":"ariaHaspopup","aria-controls":"ariaControls","aria-labelledby":"ariaLabelledby","aria-label":"ariaLabel","aria-hidden":"ariaHidden"},GS=(t,e)=>{if(t[e]!==void 0)return!0;let n=HS[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},AE=(t,e)=>{let n=HS[e],o=t.attr;return typeof t[e]=="function"||n!==void 0&&typeof t[n]=="function"||!!o&&typeof o=="object"&&typeof o[e]=="function"},Le=(t,e,n)=>!e.hasAttribute(n)&&!GS(t,n),an=(t,e,n)=>{n===null?t.removeAttribute(e):t.setAttribute(e,n)},vE=(t,e)=>{let n=G(t);if(n)for(let o in e)an(n,o,e[o])},Xi=t=>{let e=G(t);return!e||typeof e.focus!="function"?!1:(e.focus(),e.ownerDocument.activeElement===e)},OE=t=>{let e=Ki.get(t);return e||(e={id:"smbls-dropdown-"+ ++CE,open:null,trigger:null,panel:null,popup:null,popupRole:null,owns:!1,pressedOpen:!1,written:null,outside:null,outsideDoc:null},Ki.set(t,e)),e},VS=(t,e)=>!!e&&!!G(e)&&!!t&&t[e.key]===e,EE=(t,e)=>{let n=null,o=null;if(e===ss){let s=t.parent?Zn(t.parent):[];for(let i=s.indexOf(t)+1;i>0&&i<s.length&&s[i];i++)if(vu(s[i])){n=s[i];break}return(qi(t)||jS(t))&&(o=t),{panel:n,trigger:o}}let r=Zn(t);for(let s=0;s<r.length;s++)if(vu(r[s])){n=r[s];break}if(qi(t))return{panel:n,trigger:t};for(let s=0;s<r.length;s++){let i=r[s];if(!(!G(i)||i.key==="Input_trigger"||vu(i))){(qi(i)||jS(i))&&(o=i);break}}return{panel:n,trigger:o}},RE=t=>{let e=jo(t,"role");if(e&&FS[e]===1)return{el:t,role:e};let n=Zn(t);for(let o=0;o<n.length;o++){let r=jo(n[o],"role");if(r&&FS[r]===1)return{el:n[o],role:r}}return null},le=t=>{let e=$t(t);if(!e||!G(t))return null;let n=OE(t);if(n.trigger){let p=e===ss?t.parent:t;if((n.trigger===t||VS(t,n.trigger))&&VS(p,n.panel))return n}let{panel:o,trigger:r}=EE(t,e);if(!o||!r)return n.trigger=n.panel=n.popup=null,null;n.trigger=r,n.panel=o;let s=e===ze?null:RE(o);n.popup=s?s.el:null,n.popupRole=s?s.role:null;let i=G(r),a={},c=i.getAttribute("id");n.popupRole==="menu"&&!c&&Le(r,i,"id")&&(a.id=c=n.id+"-trigger"),qi(r)||(Le(r,i,"role")&&(a.role="button"),Le(r,i,"tabindex")&&(a.tabindex="0")),n.popupRole&&Le(r,i,"aria-haspopup")&&(a["aria-haspopup"]=n.popupRole);let l=G(o),u=l.getAttribute("id");if(!u&&Le(o,l,"id")&&(u=n.id+"-panel",an(l,"id",u)),u&&Le(r,i,"aria-controls")&&(a["aria-controls"]=u),n.owns=Le(r,i,"aria-expanded"),n.written={open:null,expanded:null},n.owns&&(n.written.expanded=Ji(t,n)?"true":"false",a["aria-expanded"]=n.written.expanded),vE(r,a),n.popupRole==="menu"&&c){let p=G(n.popup);Le(n.popup,p,"aria-label")&&Le(n.popup,p,"aria-labelledby")&&an(p,"aria-labelledby",c)}r!==t&&e===US&&jo(t,"tabindex")==="0"&&!AE(t,"tabindex")&&an(G(t),"tabindex","-1");let f=Ru(t),d=G(f);return d&&!d.hasAttribute("tabindex")&&(GS(f,"tabindex")||an(d,"tabindex","-1"),Le(f,d,"aria-hidden")&&an(d,"aria-hidden","true")),Xn(t,n),n},qS=t=>{let e=G(t),n=e&&e.ownerDocument.activeElement;return n&&n!==e.ownerDocument.body?n:null},KS=t=>nt(t,qS(t)),Ji=(t,e,n)=>{if(e.open!==null)return e.open;let o=$t(t);return n||o===Qi||o===ze?!1:KS(t)},Xn=(t,e,n)=>{let o=e.open===null?null:String(e.open);if(e.written.open!==o){e.written.open=o;let s=G(t);s&&an(s,"data-dropdown-open",o)}if(!e.owns)return;let r=Ji(t,e,n)?"true":"false";if(e.written.expanded!==r){e.written.expanded=r;let s=G(e.trigger);s&&an(s,"aria-expanded",r)}},Jn=t=>{let e=Yi.get(t);return e||(e={stop:null,stopItem:null,chosen:!1,ready:!1,settling:!1,checks:null,checkRows:null,owned:!1},Yi.set(t,e)),e},YS=(t,e)=>{if(t.stopItem===e&&t.stop===e.key)return;let n=t.stopItem&&Zi.get(t.stopItem);t.stop=e.key,t.stopItem=e,n&&n.set(!1);let o=Zi.get(e);o&&o.set(!0)},ZS=(t,e)=>{let n=Jn(t);n.chosen=!0,YS(n,e)},XS=t=>{let e=Jn(t);if(e.settling=!1,e.chosen)return;let n=Zn(t);for(let o=0;o<n.length;o++)if(is(n[o])){YS(e,n[o]);return}},QS=(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 s=typeof n[r].getAnimations=="function"?n[r].getAnimations():[];for(let i=0;i<s.length;i++)s[i].transitionProperty==="visibility"&&(s[i].finish(),o=!0)}return o},JS=(t,e)=>{let n=G(t);if(!n)return;let o=n.ownerDocument.activeElement,r=Xi(t);!r&&e&&n.ownerDocument.activeElement===o&&QS(n,G(e))&&(r=Xi(t));let s=t.parent;r&&s&&Yi.has(s)&&ZS(s,t)},DE=t=>{let e=t.popupRole==="menu"?t.popup:t.panel;return!e||typeof e.lookdownAll!="function"?[]:e.lookdownAll(t.popupRole==="menu"?is:TE)},IE=(t,e,n)=>{if(n==="trigger"){let s=qS(t);(!nt(t,s)&&!nt(e.panel,s)||nt(Ru(t),s))&&Xi(e.trigger);return}let o=DE(e);if(!o.length)return;let r=n==="last"?o[o.length-1]:null;if(!r)for(let s=0;s<o.length&&!r;s++)jo(o[s],"aria-checked")==="true"&&(r=o[s]);JS(r||o[0],e.panel)},Du=(t,e,n)=>{let o=G(t),r=o&&o.ownerDocument;n&&!e.outside&&r?(e.outside=s=>{if(!G(t)||!G(t).isConnected){Du(t,e,!1);return}nt(t,s.target)||nt(e.panel,s.target)||Rt(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)},tx=(t,e)=>{let n=G(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)},Vo=(t,e,n)=>{let o=e.open===!0;if(e.open=!0,Xn(t,e),$t(t)===ze){Du(t,e,!0);let r=G(e.panel);r&&QS(r,r),o||tx(t,!0)}n&&IE(t,e,n)},Rt=(t,e,n)=>{let o=e.open===!0;e.open=!1,Xn(t,e),e.outside&&Du(t,e,!1),n&&Xi(e.trigger),o&&$t(t)===ze&&tx(t,!1)},LE=t=>{let e=t.__ref;if(!e||$t(t)!==ze||!Object.prototype.hasOwnProperty.call(t,"open"))return;let n=N(()=>{let o=t.open;o!=null&&Wo(()=>{let r=le(t);!r||!!o==(r.open===!0)||(o?Vo(t,r,null):Rt(t,r,KS(t)))})},{depth:e.path&&e.path.length||0});e.__effects||(e.__effects=[]),e.__effects.push(n)},ta=(t,e,n)=>e.trigger===t?!nt(e.panel,n):nt(e.trigger,n)?!0:nt(Ru(t),n),Iu=(t,e)=>{let n=e&&typeof e.closest=="function"?e.closest(wE):null;return!!n&&nt(t,n)},ex=(t,e,n)=>{let o=t.key;o==="Escape"||o==="Esc"?(t.preventDefault(),Rt(e,n,!0)):o==="Tab"&&n.popupRole==="menu"&&nt(n.popup,t.target)&&Rt(e,n,!1)},ea=t=>{$t(t)===ss&&t.parent&&WS.add(t.parent),le(t),LE(t)},na=(t,e)=>{let n=le(e);n&&(n.pressedOpen=Ji(e,n))},PE=(t,e)=>{let n=Ki.get(e);!n||!n.trigger||n.open!==!1||$t(e)!==Qi||(n.open=null,Xn(e,n))},oa=(t,e)=>{if($t(e)===ze){BE(t,e);return}if(t.defaultPrevented)return;let n=le(e);if(!n)return;let o=t.target;if(nt(n.panel,o)){if($t(e)!==Qi||!Iu(n.panel,o))return;(n.open===!0||t.detail===0)&&Rt(e,n,!0);return}if(!ta(e,n,o))return;let r=t.detail===0?n.open===!0:n.pressedOpen;n.pressedOpen=!1,r?Rt(e,n,!0):Vo(e,n,n.popupRole==="menu"?"first":"trigger")},ra=(t,e)=>{if(t.defaultPrevented)return;if($t(e)===ze){NE(t,e);return}let n=le(e);if(!n)return;let o=t.target;if(nt(n.panel,o)){ex(t,e,n);return}if(!ta(e,n,o))return;let r=t.key;if(r==="ArrowDown"||r==="Down"||r==="ArrowUp"||r==="Up")t.preventDefault(),Vo(e,n,r==="ArrowUp"||r==="Up"?"last":"first");else if(r==="Escape"||r==="Esc"){if(!Ji(e,n))return;t.preventDefault(),Rt(e,n,!1)}else(r==="Enter"||r===" "||r==="Spacebar")&&!Eu(n.trigger)&&(t.preventDefault(),n.open===!0?Rt(e,n,!0):Vo(e,n,n.popupRole==="menu"?"first":"trigger"))},ME=t=>!!(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey),BE=(t,e)=>{let n=le(e);if(!n)return;let o=t.target;if(nt(n.panel,o)){n.open===!0&&!ME(t)&&e.keepOpen!==!0&&Iu(n.panel,o)&&Rt(e,n,!0);return}if(t.defaultPrevented||!ta(e,n,o))return;let r=t.detail===0?n.open===!0:n.pressedOpen;n.pressedOpen=!1,r?Rt(e,n,!0):Vo(e,n,"trigger")},NE=(t,e)=>{let n=le(e);if(!n)return;let o=t.key;if(o==="Escape"||o==="Esc"){if(n.open!==!0)return;t.preventDefault(),Rt(e,n,!0);return}(o==="Enter"||o===" "||o==="Spacebar")&&!Eu(n.trigger)&&!nt(n.panel,t.target)&&ta(e,n,t.target)&&(t.preventDefault(),n.open===!0?Rt(e,n,!0):Vo(e,n,"trigger"))},Lu=(t,e)=>{let n=le(e);n&&(n.open===null&&nt(n.panel,t.target)&&(n.open=!0),Xn(e,n))},as=(t,e)=>{let n=Ki.get(e);if(!n||!n.trigger)return;let o=t.relatedTarget;if($t(e)===ze){n.open===!0&&o&&!nt(e,o)&&!nt(n.panel,o)&&Rt(e,n,!1);return}if(o&&(nt(e,o)||nt(n.panel,o))){n.open===null&&nt(n.panel,o)&&(n.open=!0,Xn(e,n));return}n.open=null,Xn(e,n,!0)},nx=t=>{let e=t.parent;if(!e||!WS.has(e))return null;let n=Zn(e);for(let o=n.indexOf(t)-1;o>=0&&n[o];o--)if($t(n[o])===ss)return n[o];return null},Pu=t=>{let e=nx(t),n=e?le(e):null;return n&&n.panel===t?{ctrl:e,rec:n}:null},ox=t=>{let e=nx(t);e&&le(e)},rx=(t,e)=>{if(t.defaultPrevented)return;let n=Pu(e);n&&ex(t,n.ctrl,n.rec)},sx=(t,e)=>{if(t.defaultPrevented||!Iu(e,t.target))return;let n=Pu(e);n&&Rt(n.ctrl,n.rec,!0)},ix=(t,e)=>{let n=Pu(e);n&&as(t,n.ctrl)},$E=(t,e)=>{let n=e.parent,o=$t(n)?le(n):null;if(o&&o.panel===e){Rt(n,o,!0);return}let r=G(e),s=r&&r.ownerDocument.activeElement;s&&typeof s.blur=="function"&&s.blur()},ax=(t,e)=>{if($t(e.parent)&&le(e.parent))return;let n=G(e);n&&n===n.ownerDocument.activeElement&&n.blur()},FE=(t,e)=>{if(t.defaultPrevented)return;let n=kE[t.key];if(!n)return;let o=typeof e.lookdownAll=="function"?e.lookdownAll(is):[];if(!o.length)return;let r=-1;for(let i=0;i<o.length&&r===-1;i++)nt(o[i],t.target)&&(r=i);let s;n==="first"?s=0:n==="last"?s=o.length-1:r===-1?s=n>0?0:o.length-1:s=(r+n+o.length)%o.length,t.preventDefault(),JS(o[s])},jE=(t,e)=>{let n=Zn(e);for(let o=0;o<n.length;o++)if(nt(n[o],t.target)){is(n[o])&&ZS(e,n[o]);return}},VE=t=>{let e=t.parent;if(!e)return"0";let n=Jn(e),o=Zi.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(()=>XS(e))),o=ln(r),Zi.set(t,o)}return o.get()?"0":"-1"},UE=t=>{ox(t);let e=Jn(t);e.ready=!0,!(e.stopItem&&e.stopItem.parent===t&&is(e.stopItem))&&XS(t)},WE=t=>{let e=Ou.get(t),n=!e;n&&(e={tick:ln(0),seen:0,checked:!1},Ou.set(t,e));let o=e.tick.get();return o===e.seen&&(e.checked=!!Wo(()=>t.isActive)),e.seen=o,n&&t.parent&&HE(t.parent),e.checked?"true":"false"},zE=(t,e)=>{if(e.checkRows.get(),!t.node){lx(t);return}let n=Zn(t);for(let o=0;o<n.length;o++){let r=Ou.get(n[o]);if(!r)continue;let s=!!n[o].isActive;s!==r.checked&&(r.checked=s,r.tick.set(r.tick.peek()+1))}},cx=t=>{let e=Jn(t);e.checks||(e.checkRows||(e.checkRows=ln(0)),e.checks=N(()=>zE(t,e),{label:"DropdownList.checks"}))},lx=t=>{let e=Yi.get(t);!e||!e.checks||(e.checks.dispose(),e.checks=null)},HE=t=>{let e=Jn(t);e.checks?e.checkRows.set(e.checkRows.peek()+1):e.owned||cx(t)},GE=t=>{Jn(t).owned=!0},Qn={transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"},Mu={opacity:0,visibility:"hidden"},fx=globalThis.__SMBLS_BUILD_DROP_C_Dropdown__?T("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:ox},onKeydown:rx,onClick:sx,onFocusout:ix},ux=globalThis.__SMBLS_BUILD_DROP_C_DropdownList__?T("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)=>{FE(t,e),rx(t,e)},onInit:{always:!0,handler:GE},onComplete:{always:!0,handler:UE},onRender:{always:!0,handler:cx},onBeforeRemove:{always:!0,handler:lx},onFocusin:jE,onClick:sx,onFocusout:ix,childExtends:{extends:"Button",state:{},role:"menuitemradio",tabindex:t=>VE(t),aria:{checked:t=>WE(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"}}},dx=globalThis.__SMBLS_BUILD_DROP_C_DropdownParent__?T("DropdownParent"):{position:"relative",zIndex:999,dropdownMode:Qi,":hover":{zIndex:1e3,"& [dropdown]":{...Qn}},'[data-dropdown-open="true"]':{zIndex:1e3,"& [dropdown]":{...Qn}},'[data-dropdown-open="false"]:hover':{"& [dropdown]":{...Mu}},onComplete:{always:!0,handler:ea},onPointerdown:na,onPointerenter:PE,onClick:oa,onKeydown:ra,onFocusin:Lu,onFocusout:as},px=globalThis.__SMBLS_BUILD_DROP_C_DropdownDisclosure__?T("DropdownDisclosure"):{position:"relative",dropdownMode:ze,'[data-dropdown-open="true"]':{zIndex:1e3,"& > [dropdown]":{...Qn}},onComplete:{always:!0,handler:ea},onPointerdown:na,onClick:oa,onKeydown:ra,onFocusout:as},hx=globalThis.__SMBLS_BUILD_DROP_C_DropdownParentFocus__?T("DropdownParentFocus"):{position:"relative",tabindex:"0",dropdownMode:US,":focus-within":{zIndex:1e3,"& [dropdown]":{...Qn}},'[data-dropdown-open="true"]':{zIndex:1e3,"& [dropdown]":{...Qn}},'[data-dropdown-open="false"]:focus-within':{"& [dropdown]":{...Mu}},onComplete:{always:!0,handler:ea},onPointerdown:na,onClick:oa,onKeydown:ra,onFocusin:Lu,onFocusout:as,Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(t,e)=>ax(t,e)},Dropdown:{onClick:(t,e)=>$E(t,e)}},gx=globalThis.__SMBLS_BUILD_DROP_C_DropdownSiblingFocus__?T("DropdownSiblingFocus"):{position:"relative",tabindex:"0",dropdownMode:ss,":focus-within":{zIndex:1e3,"& ~ [dropdown]":{...Qn}},'[data-dropdown-open="true"]':{zIndex:1e3,"& ~ [dropdown]":{...Qn}},'[data-dropdown-open="false"]:focus-within':{"& ~ [dropdown]":{...Mu}},onComplete:{always:!0,handler:ea},onPointerdown:na,onClick:oa,onKeydown:ra,onFocusin:Lu,onFocusout:as,Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(t,e)=>ax(t,e)}};var Nu=/*@__PURE__*/__smblsNs({},{Notification:()=>_x});var _x=globalThis.__SMBLS_BUILD_DROP_C_Notification__?T("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 mx=Object.assign({},Ff,jf,Vf,Uf,zf,Kf,Yf,Zf,Gf,Xf,Qf,qf,Jf,tu,eu,nu,ou,ru,su,iu,au,cu,uu,hu,gu,_u,yu,Cu,Tu,Au,Bu,Nu);export{pn as a,hn as b,yx as c,no as d,ds as e,qo as f,ps as g,ca as h,eR as i,xx as j,wx as k,kx as l,Cx as m,nR as n,Tx as o,oR as p,rR as q,sR as r,Ax as s,iR as t,aR as u,Ko as v,nd as w,cR as x,sd as y,Ox as z,oo as A,Ex as B,dR as C,hR as D,ad as E,fd as F,kR as G,CR as H,TR as I,Rx as J,AR as K,vR as L,OR as M,ER as N,RR as O,ud as P,DR as Q,fa as R,dd as S,pd as T,hd as U,gd as V,_d as W,IR as X,Dx as Y,Ix as Z,ld as _,ua as $,LR as aa,md as ba,_s as ca,yd as da,bd as ea,Sd as fa,PR as ga,xd as ha,wd as ia,MR as ja,Yo as ka,NR as la,jR as ma,VR as na,UR as oa,ys as pa,WR as qa,Cd as ra,zR as sa,bs as ta,ue as ua,da as va,Td as wa,Ad as xa,xs as ya,xe as za,Ux as Aa,Wx as Ba,vd as Ca,zx as Da,Od as Ea,Hx as Fa,Gx as Ga,qx as Ha,Ed as Ia,Rd as Ja,Dd as Ka,Id as La,ws as Ma,ut as Na,Xo as Oa,gn as Pa,Qo as Qa,pa as Ra,Ld as Sa,ks as Ta,Cs as Ua,_n as Va,vt as Wa,we as Xa,Pe as Ya,W as Za,Ss as _a,Zo as $a,Ts as ab,Pd as bb,Md as cb,ha as db,Bd as eb,ga as fb,Nd as gb,_a as hb,Jo as ib,Me as jb,Qx as kb,ke as lb,mn as mb,$d as nb,As as ob,vs as pb,Fd as qb,ma as rb,ro as sb,tr as tb,Jx as ub,jd as vb,tw as wb,yn as xb,ew as yb,ya as zb,ow as Ab,rw as Bb,sw as Cb,iw as Db,aw as Eb,lw as Fb,fw as Gb,uw as Hb,dw as Ib,pw as Jb,hw as Kb,gw as Lb,mw as Mb,yw as Nb,bw as Ob,Sw as Pb,xw as Qb,Vd as Rb,ww as Sb,kw as Tb,Tw as Ub,Aw as Vb,Ew as Wb,Rw as Xb,Dw as Yb,Iw as Zb,Lw as _b,Os as $b,Ud as ac,Wd as bc,bn as cc,ba as dc,or as ec,Ds as fc,VD as gc,Is as hc,UD as ic,de as jc,WD as kc,dt as lc,ot as mc,A as nc,zd as oc,Ls as pc,zD as qc,HD as rc,Be as sc,Sn as tc,Ce as uc,xn as vc,ka as wc,qd as xc,Ca as yc,Ta as zc,Aa as Ac,Zt as Bc,zw as Cc,Ps as Dc,rr as Ec,va as Fc,Ye as Gc,Yd as Hc,Oa as Ic,Hw as Jc,Ea as Kc,wn as Lc,so as Mc,Ra as Nc,Da as Oc,Jd as Pc,op as Qc,rp as Rc,sp as Sc,sr as Tc,ir as Uc,ar as Vc,io as Wc,cr as Xc,z as Yc,lr as Zc,ao as _c,Ma as $c,Cn as ad,fr as bd,ur as cd,yt as dd,co as ed,kn as fd,lo as gd,Bs as hd,jt as id,pp as jd,ak as kd,Na as ld,$a as md,gt as nd,pe as od,Fa as pd,dr as qd,Ns as rd,fo as sd,ja as td,Vt as ud,Va as vd,Sk as wd,Ha as xd,$s as yd,Te as zd,Ga as Ad,qa as Bd,Fs as Cd,Op as Dd,Ep as Ed,Ka as Fd,Ya as Gd,Za as Hd,Xa as Id,he as Jd,Qt as Kd,Qa as Ld,js as Md,Ok as Nd,hr as Od,oc as Pd,rc as Qd,Pk as Rd,ic as Sd,Mk as Td,Vp as Ud,Up as Vd,Wp as Wd,zp as Xd,cc as Yd,Hp as Zd,lc as _d,fc as $d,gr as ae,Gp as be,qp as ce,jk as de,uc as ee,Kp as fe,rt as ge,I as he,Tn as ie,Yp as je,Hk as ke,Gk as le,nP as me,qk as ne,oP as oe,sP as pe,Yk as qe,iP as re,aP as se,tt as te,Ae as ue,Ws as ve,zs as we,_c as xe,f0 as ye,d0 as ze,br as Ae,hh as Be,p0 as Ce,m0 as De,te as Ee,vc as Fe,vn as Ge,En as He,On as Ie,P0 as Je,M0 as Ke,Ac as Le,Qs as Me,B0 as Ne,xt as Oe,$0 as Pe,Rn as Qe,Ic as Re,Ah as Se,vh as Te,Bc as Ue,Nh as Ve,$h as We,Fh as Xe,jh as Ye,Vh as Ze,jc as _e,Vc as $e,Pt as af,Wh as bf,si as cf,zh as df,CC as ef,Hh as ff,TC as gf,Uc as hf,Kh as if,Yh as jf,Y as kf,st as lf,Jh as mf,tg as nf,NC as of,$C as pf,FC as qf,ne as rf,VM as sf,sg as tf,Kc as uf,Qc as vf,Zc as wf,bo as xf,Mn as yf,Xc as zf,kr as Af,ol as Bf,Ar as Cf,tl as Df,sl as Ef,il as Ff,al as Gf,se as Hf,lT as If,Og as Jf,uT as Kf,dT as Lf,q1 as Mf,Xe as Nf,xT as Of,Qe as Pf,wT as Qf,xo as Rf,je as Sf,_e as Tf,Fg as Uf,K1 as Vf,Y1 as Wf,Bn as Xf,Pg as Yf,Nn as Zf,jg as _f,Vg as $f,O_ as ag,zt as bg,Fr as cg,Cm as dg,Bo as eg,kv as fg,Rm as gg,Ii as hg,uf as ig,pf as jg,Wv as kg,qN as lg,Bb as mg,cy as ng,Cy as og,Mf as pg,Ny as qg,Fy as rg,bO as sg,jy as tg,Vy as ug,ts as vg,Nf as wg,Gn as xg,LO as yg,mx as zg,qE as Ag};
36
+ //# sourceMappingURL=smbls.core.chunk-GC6GDPKF.esm.js.map