@exponential_app/eui-element 0.0.0-stage → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,499 @@
1
+ const Bf=(e,t)=>e===t,_o=Symbol("solid-proxy"),xd=typeof Proxy=="function",$d=Symbol("solid-track"),Mo={equals:Bf};let xr=null,wd=Td;const jt=1,Do=2,kd={owned:null,cleanups:null,context:null,owner:null};var Ce=null;let Ri=null,Wf=null,Fe=null,Je=null,Ct=null,ui=0;function Kt(e,t){const n=Fe,r=Ce,o=e.length===0,i=t===void 0?r:t,s=o?kd:{owned:null,cleanups:null,context:i?i.context:null,owner:i},a=o?e:()=>e(()=>L(()=>kr(s)));Ce=s,Fe=null;try{return Mn(a,!0)}finally{Fe=n,Ce=r}}function Y(e,t){t=t?Object.assign({},Mo,t):Mo;const n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},r=o=>(typeof o=="function"&&(o=o(n.value)),Ad(n,o));return[Cd.bind(n),r]}function Xt(e,t,n){const r=Lr(e,t,!0,jt);or(r)}function te(e,t,n){const r=Lr(e,t,!1,jt);or(r)}function fe(e,t,n){wd=Vf;const r=Lr(e,t,!1,jt);(!n||!n.render)&&(r.user=!0),Ct?Ct.push(r):or(r)}function N(e,t,n){n=n?Object.assign({},Mo,n):Mo;const r=Lr(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,or(r),Cd.bind(r)}function vs(e){return Mn(e,!1)}function L(e){if(Fe===null)return e();const t=Fe;Fe=null;try{return e()}finally{Fe=t}}function De(e,t,n){const r=Array.isArray(e);let o,i=n&&n.defer;return s=>{let a;if(r){a=Array(e.length);for(let c=0;c<e.length;c++)a[c]=e[c]()}else a=e();if(i)return i=!1,s;const l=L(()=>t(a,o,s));return o=a,l}}function je(e){fe(()=>L(e))}function le(e){return Ce===null||(Ce.cleanups===null?Ce.cleanups=[e]:Ce.cleanups.push(e)),e}function Hf(e,t){xr||(xr=Symbol("error")),Ce=Lr(void 0,void 0,!0),Ce.context={...Ce.context,[xr]:[t]};try{return e()}catch(n){jr(n)}finally{Ce=Ce.owner}}function oa(){return Ce}function Sd(e,t){const n=Ce,r=Fe;Ce=e,Fe=null;try{return Mn(t,!0)}catch(o){jr(o)}finally{Ce=n,Fe=r}}const[DI,PI]=Y(!1);function pn(e,t){const n=Symbol("context");return{id:n,Provider:Gf(n),defaultValue:e}}function Zt(e){let t;return Ce&&Ce.context&&(t=Ce.context[e.id])!==void 0?t:e.defaultValue}function Po(e){const t=N(e),n=N(()=>xs(t()));return n.toArray=()=>{const r=n();return Array.isArray(r)?r:r!=null?[r]:[]},n}function Cd(){if(this.sources&&this.state)if(this.state===jt)or(this);else{const e=Je;Je=null,Mn(()=>Fo(this),!1),Je=e}if(Fe){const e=this.observers;if(!e||e[e.length-1]!==Fe){const t=e?e.length:0;Fe.sources?(Fe.sources.push(this),Fe.sourceSlots.push(t)):(Fe.sources=[this],Fe.sourceSlots=[t]),e?(e.push(Fe),this.observerSlots.push(Fe.sources.length-1)):(this.observers=[Fe],this.observerSlots=[Fe.sources.length-1])}}return this.value}function Ad(e,t,n){let r=e.value;return(!e.comparator||!e.comparator(r,t))&&(e.value=t,e.observers&&e.observers.length&&Mn(()=>{for(let o=0;o<e.observers.length;o+=1){const i=e.observers[o],s=Ri&&Ri.running;s&&Ri.disposed.has(i),(s?!i.tState:!i.state)&&(i.pure?Je.push(i):Ct.push(i),i.observers&&Id(i)),s||(i.state=jt)}if(Je.length>1e6)throw Je=[],new Error},!1)),t}function or(e){if(!e.fn)return;kr(e);const t=ui;Uf(e,e.value,t)}function Uf(e,t,n){let r;const o=Ce,i=Fe;Fe=Ce=e;try{r=e.fn(t)}catch(s){return e.pure&&(e.state=jt,e.owned&&e.owned.forEach(kr),e.owned=null),e.updatedAt=n+1,jr(s)}finally{Fe=i,Ce=o}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?Ad(e,r):e.value=r,e.updatedAt=n)}function Lr(e,t,n,r=jt,o){const i={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:Ce,context:Ce?Ce.context:null,pure:n};return Ce===null||Ce!==kd&&(Ce.owned?Ce.owned.push(i):Ce.owned=[i]),i}function Oo(e){if(e.state===0)return;if(e.state===Do)return Fo(e);if(e.suspense&&L(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<ui);)e.state&&t.push(e);for(let n=t.length-1;n>=0;n--)if(e=t[n],e.state===jt)or(e);else if(e.state===Do){const r=Je;Je=null,Mn(()=>Fo(e,t[0]),!1),Je=r}}function Mn(e,t){if(Je)return e();let n=!1;t||(Je=[]),Ct?n=!0:Ct=[],ui++;try{const r=e();return qf(n),r}catch(r){n||(Ct=null),Je=null,jr(r)}}function qf(e){if(Je&&(Td(Je),Je=null),e)return;const t=Ct;Ct=null,t.length&&Mn(()=>wd(t),!1)}function Td(e){for(let t=0;t<e.length;t++)Oo(e[t])}function Vf(e){let t,n=0;for(t=0;t<e.length;t++){const r=e[t];r.user?e[n++]=r:Oo(r)}for(t=0;t<n;t++)Oo(e[t])}function Fo(e,t){e.state=0;for(let n=0;n<e.sources.length;n+=1){const r=e.sources[n];if(r.sources){const o=r.state;o===jt?r!==t&&(!r.updatedAt||r.updatedAt<ui)&&Oo(r):o===Do&&Fo(r,t)}}}function Id(e){for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t];n.state||(n.state=Do,n.pure?Je.push(n):Ct.push(n),n.observers&&Id(n))}}function kr(e){let t;if(e.sources)for(;e.sources.length;){const n=e.sources.pop(),r=e.sourceSlots.pop(),o=n.observers;if(o&&o.length){const i=o.pop(),s=n.observerSlots.pop();r<o.length&&(i.sourceSlots[s]=r,o[r]=i,n.observerSlots[r]=s)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)kr(e.tOwned[t]);delete e.tOwned}if(e.owned){for(t=e.owned.length-1;t>=0;t--)kr(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}e.state=0}function Kf(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function ll(e,t,n){try{for(const r of t)r(e)}catch(r){jr(r,n&&n.owner||null)}}function jr(e,t=Ce){const n=xr&&t&&t.context&&t.context[xr],r=Kf(e);if(!n)throw r;Ct?Ct.push({fn(){ll(r,n,t)},state:jt}):ll(r,n,t)}function xs(e){if(typeof e=="function"&&!e.length)return xs(e());if(Array.isArray(e)){const t=[];for(let n=0;n<e.length;n++){const r=xs(e[n]);if(Array.isArray(r))if(r.length<32768)t.push.apply(t,r);else for(let o=0;o<r.length;o++)t.push(r[o]);else t.push(r)}return t}return e}function Gf(e,t){return function(r){let o;return te(()=>o=L(()=>(Ce.context={...Ce.context,[e]:r.value},Po(()=>r.children))),void 0),o}}const $s=Symbol("fallback");function zo(e){for(let t=0;t<e.length;t++)e[t]()}function Yf(e,t,n={}){let r=[],o=[],i=[],s=0,a=t.length>1?[]:null;return le(()=>zo(i)),()=>{let l=e()||[],c=l.length,d,u;return l[$d],L(()=>{let h,f,b,m,v,g,y,k,w;if(c===0)s!==0&&(zo(i),i=[],r=[],o=[],s=0,a&&(a=[])),n.fallback&&(r=[$s],o[0]=Kt(_=>(i[0]=_,n.fallback())),s=1);else if(s===0){for(o=new Array(c),u=0;u<c;u++)r[u]=l[u],o[u]=Kt(p);s=c}else{for(b=new Array(c),m=new Array(c),a&&(v=new Array(c)),g=0,y=Math.min(s,c);g<y&&r[g]===l[g];g++);for(y=s-1,k=c-1;y>=g&&k>=g&&r[y]===l[k];y--,k--)b[k]=o[y],m[k]=i[y],a&&(v[k]=a[y]);for(h=new Map,f=new Array(k+1),u=k;u>=g;u--)w=l[u],d=h.get(w),f[u]=d===void 0?-1:d,h.set(w,u);for(d=g;d<=y;d++)w=r[d],u=h.get(w),u!==void 0&&u!==-1?(b[u]=o[d],m[u]=i[d],a&&(v[u]=a[d]),u=f[u],h.set(w,u)):i[d]();for(u=g;u<c;u++)u in b?(o[u]=b[u],i[u]=m[u],a&&(a[u]=v[u],a[u](u))):o[u]=Kt(p);o=o.slice(0,s=c),r=l.slice(0)}return o});function p(h){if(i[u]=h,a){const[f,b]=Y(u);return a[u]=b,t(l[u],f)}return t(l[u])}}}function Xf(e,t,n={}){let r=[],o=[],i=[],s=[],a=0,l;return le(()=>zo(i)),()=>{const c=e()||[],d=c.length;return c[$d],L(()=>{if(d===0)return a!==0&&(zo(i),i=[],r=[],o=[],a=0,s=[]),n.fallback&&(r=[$s],o[0]=Kt(p=>(i[0]=p,n.fallback())),a=1),o;for(r[0]===$s&&(i[0](),i=[],r=[],o=[],a=0),l=0;l<d;l++)l<r.length&&r[l]!==c[l]?s[l](()=>c[l]):l>=r.length&&(o[l]=Kt(u));for(;l<r.length;l++)i[l]();return a=s.length=i.length=d,r=c.slice(0),o=o.slice(0,a)});function u(p){i[l]=p;const[h,f]=Y(c[l]);return s[l]=f,t(h,l)}}}function x(e,t){return L(()=>e(t||{}))}function oo(){return!0}const ws={get(e,t,n){return t===_o?n:e.get(t)},has(e,t){return t===_o?!0:e.has(t)},set:oo,deleteProperty:oo,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:oo,deleteProperty:oo}},ownKeys(e){return e.keys()}};function Ni(e){return(e=typeof e=="function"?e():e)?e:{}}function Zf(){for(let e=0,t=this.length;e<t;++e){const n=this[e]();if(n!==void 0)return n}}function S(...e){let t=!1;for(let s=0;s<e.length;s++){const a=e[s];t=t||!!a&&_o in a,e[s]=typeof a=="function"?(t=!0,N(a)):a}if(xd&&t)return new Proxy({get(s){for(let a=e.length-1;a>=0;a--){const l=Ni(e[a])[s];if(l!==void 0)return l}},has(s){for(let a=e.length-1;a>=0;a--)if(s in Ni(e[a]))return!0;return!1},keys(){const s=[];for(let a=0;a<e.length;a++)s.push(...Object.keys(Ni(e[a])));return[...new Set(s)]}},ws);const n={},r=Object.create(null);for(let s=e.length-1;s>=0;s--){const a=e[s];if(!a)continue;const l=Object.getOwnPropertyNames(a);for(let c=l.length-1;c>=0;c--){const d=l[c];if(d==="__proto__"||d==="constructor")continue;const u=Object.getOwnPropertyDescriptor(a,d);if(!r[d])r[d]=u.get?{enumerable:!0,configurable:!0,get:Zf.bind(n[d]=[u.get.bind(a)])}:u.value!==void 0?u:void 0;else{const p=n[d];p&&(u.get?p.push(u.get.bind(a)):u.value!==void 0&&p.push(()=>u.value))}}}const o={},i=Object.keys(r);for(let s=i.length-1;s>=0;s--){const a=i[s],l=r[a];l&&l.get?Object.defineProperty(o,a,l):o[a]=l?l.value:void 0}return o}function Br(e,...t){const n=t.length;if(xd&&_o in e){const o=n>1?t.flat():t[0],i=new Set,s=t.map(a=>{const l=a.filter(c=>!i.has(c)&&(i.add(c),!0));return new Proxy({get(c){return l.includes(c)?e[c]:void 0},has(c){return l.includes(c)&&c in e},keys(){return l.filter(c=>c in e)}},ws)});return s.push(new Proxy({get(a){return o.includes(a)?void 0:e[a]},has(a){return o.includes(a)?!1:a in e},keys(){return Object.keys(e).filter(a=>!o.includes(a))}},ws)),s}const r=[];for(let o=0;o<=n;o++)r[o]={};for(const o of Object.getOwnPropertyNames(e)){let i=n;for(let l=0;l<t.length;l++)if(t[l].includes(o)){i=l;break}const s=Object.getOwnPropertyDescriptor(e,o);!s.get&&!s.set&&s.enumerable&&s.writable&&s.configurable?r[i][o]=s.value:Object.defineProperty(r[i],o,s)}return r}let Qf=0;function Ae(){return`cl-${Qf++}`}const Jf=e=>`Stale read from <${e}>.`;function xe(e){const t="fallback"in e&&{fallback:()=>e.fallback};return N(Yf(()=>e.each,e.children,t||void 0))}function ft(e){const t="fallback"in e&&{fallback:()=>e.fallback};return N(Xf(()=>e.each,e.children,t||void 0))}function J(e){const t=e.keyed,n=N(()=>e.when,void 0,void 0),r=t?n:N(n,void 0,{equals:(o,i)=>!o==!i});return N(()=>{const o=r();if(o){const i=e.children;return typeof i=="function"&&i.length>0?L(()=>i(t?o:()=>{if(!L(r))throw Jf("Show");return n()})):i}return e.fallback},void 0,void 0)}let io;function eh(e){let t;const[n,r]=Y(t,void 0);return io||(io=new Set),io.add(r),le(()=>io.delete(r)),N(()=>{let o;if(o=n()){const i=e.fallback;return typeof i=="function"&&i.length?L(()=>i(o,()=>r())):i}return Hf(()=>e.children,r)},void 0,void 0)}const th=["allowfullscreen","async","alpha","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","adauctionheaders","browsingtopics","credentialless","defaultchecked","defaultmuted","defaultselected","defer","disablepictureinpicture","disableremoteplayback","preservespitch","shadowrootclonable","shadowrootcustomelementregistry","shadowrootdelegatesfocus","shadowrootserializable","sharedstoragewritable"],nh=new Set(["className","value","readOnly","noValidate","formNoValidate","isMap","noModule","playsInline","adAuctionHeaders","allowFullscreen","browsingTopics","defaultChecked","defaultMuted","defaultSelected","disablePictureInPicture","disableRemotePlayback","preservesPitch","shadowRootClonable","shadowRootCustomElementRegistry","shadowRootDelegatesFocus","shadowRootSerializable","sharedStorageWritable",...th]),rh=new Set(["innerHTML","textContent","innerText","children"]),oh=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),ih=Object.assign(Object.create(null),{class:"className",novalidate:{$:"noValidate",FORM:1},formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1},adauctionheaders:{$:"adAuctionHeaders",IFRAME:1},allowfullscreen:{$:"allowFullscreen",IFRAME:1},browsingtopics:{$:"browsingTopics",IMG:1},defaultchecked:{$:"defaultChecked",INPUT:1},defaultmuted:{$:"defaultMuted",AUDIO:1,VIDEO:1},defaultselected:{$:"defaultSelected",OPTION:1},disablepictureinpicture:{$:"disablePictureInPicture",VIDEO:1},disableremoteplayback:{$:"disableRemotePlayback",AUDIO:1,VIDEO:1},preservespitch:{$:"preservesPitch",AUDIO:1,VIDEO:1},shadowrootclonable:{$:"shadowRootClonable",TEMPLATE:1},shadowrootdelegatesfocus:{$:"shadowRootDelegatesFocus",TEMPLATE:1},shadowrootserializable:{$:"shadowRootSerializable",TEMPLATE:1},sharedstoragewritable:{$:"sharedStorageWritable",IFRAME:1,IMG:1}});function sh(e,t){const n=ih[e];return typeof n=="object"?n[t]?n.$:void 0:n}const ah=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),lh=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),ch={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},Z=e=>N(()=>e());function dh(e,t,n){let r=n.length,o=t.length,i=r,s=0,a=0,l=t[o-1].nextSibling,c=null;for(;s<o||a<i;){if(t[s]===n[a]){s++,a++;continue}for(;t[o-1]===n[i-1];)o--,i--;if(o===s){const d=i<r?a?n[a-1].nextSibling:n[i-a]:l;for(;a<i;)e.insertBefore(n[a++],d)}else if(i===a)for(;s<o;)(!c||!c.has(t[s]))&&t[s].remove(),s++;else if(t[s]===n[i-1]&&n[a]===t[o-1]){const d=t[--o].nextSibling;e.insertBefore(n[a++],t[s++].nextSibling),e.insertBefore(n[--i],d),t[o]=n[i]}else{if(!c){c=new Map;let u=a;for(;u<i;)c.set(n[u],u++)}const d=c.get(t[s]);if(d!=null)if(a<d&&d<i){let u=s,p=1,h;for(;++u<o&&u<i&&!((h=c.get(t[u]))==null||h!==d+p);)p++;if(p>d-a){const f=t[s];for(;a<d;)e.insertBefore(n[a++],f)}else e.replaceChild(n[a++],t[s++])}else s++;else t[s++].remove()}}}const cl="_$DX_DELEGATE";function uh(e,t,n,r={}){let o;return Kt(i=>{o=i,t===document?e():$(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{o(),t.textContent=""}}function F(e,t,n,r){let o;const i=()=>{const a=r?document.createElementNS("http://www.w3.org/1998/Math/MathML","template"):document.createElement("template");return a.innerHTML=e,n?a.content.firstChild.firstChild:r?a.firstChild:a.content.firstChild},s=t?()=>L(()=>document.importNode(o||(o=i()),!0)):()=>(o||(o=i())).cloneNode(!0);return s.cloneNode=s,s}function _t(e,t=window.document){const n=t[cl]||(t[cl]=new Set);for(let r=0,o=e.length;r<o;r++){const i=e[r];n.has(i)||(n.add(i),t.addEventListener(i,yh))}}function V(e,t,n){n==null?e.removeAttribute(t):e.setAttribute(t,n)}function ph(e,t,n,r){r==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r)}function fh(e,t,n){n?e.setAttribute(t,""):e.removeAttribute(t)}function an(e,t){t==null?e.removeAttribute("class"):e.className=t}function Hn(e,t,n,r){if(r)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){const o=n[0];e.addEventListener(t,n[0]=i=>o.call(e,n[1],i))}else e.addEventListener(t,n,typeof n!="function"&&n)}function hh(e,t,n={}){const r=Object.keys(t||{}),o=Object.keys(n);let i,s;for(i=0,s=o.length;i<s;i++){const a=o[i];!a||a==="undefined"||t[a]||(dl(e,a,!1),delete n[a])}for(i=0,s=r.length;i<s;i++){const a=r[i],l=!!t[a];!a||a==="undefined"||n[a]===l||!l||(dl(e,a,!0),n[a]=l)}return n}function Ee(e,t,n){if(!t)return n?V(e,"style"):t;const r=e.style;if(typeof t=="string")return r.cssText=t;typeof n=="string"&&(r.cssText=n=void 0),n||(n={}),t||(t={});let o,i;for(i in n)t[i]==null&&r.removeProperty(i),delete n[i];for(i in t)o=t[i],o!==n[i]&&(r.setProperty(i,o),n[i]=o);return n}function I(e,t={},n,r){const o={};return r||te(()=>o.children=Sr(e,t.children,o.children)),te(()=>typeof t.ref=="function"&&oe(t.ref,e)),te(()=>gh(e,t,n,!0,o,!0)),o}function oe(e,t,n){return L(()=>e(t,n))}function $(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!="function")return Sr(e,t,r,n);te(o=>Sr(e,t(),o,n),r)}function gh(e,t,n,r,o={},i=!1){t||(t={});for(const s in o)if(!(s in t)){if(s==="children")continue;o[s]=ul(e,s,null,o[s],n,i,t)}for(const s in t){if(s==="children")continue;const a=t[s];o[s]=ul(e,s,a,o[s],n,i,t)}}function mh(e){return e.toLowerCase().replace(/-([a-z])/g,(t,n)=>n.toUpperCase())}function dl(e,t,n){const r=t.trim().split(/\s+/);for(let o=0,i=r.length;o<i;o++)e.classList.toggle(r[o],n)}function ul(e,t,n,r,o,i,s){let a,l,c,d,u;if(t==="style")return Ee(e,n,r);if(t==="classList")return hh(e,n,r);if(n===r)return r;if(t==="ref")i||n(e);else if(t.slice(0,3)==="on:"){const p=t.slice(3);r&&e.removeEventListener(p,r,typeof r!="function"&&r),n&&e.addEventListener(p,n,typeof n!="function"&&n)}else if(t.slice(0,10)==="oncapture:"){const p=t.slice(10);r&&e.removeEventListener(p,r,!0),n&&e.addEventListener(p,n,!0)}else if(t.slice(0,2)==="on"){const p=t.slice(2).toLowerCase(),h=ah.has(p);if(!h&&r){const f=Array.isArray(r)?r[0]:r;e.removeEventListener(p,f)}(h||n)&&(Hn(e,p,n,h),h&&_t([p]))}else if(t.slice(0,5)==="attr:")V(e,t.slice(5),n);else if(t.slice(0,5)==="bool:")fh(e,t.slice(5),n);else if((u=t.slice(0,5)==="prop:")||(c=rh.has(t))||!o&&((d=sh(t,e.tagName))||(l=nh.has(t)))||(a=e.nodeName.includes("-")||"is"in s))u&&(t=t.slice(5),l=!0),t==="class"||t==="className"?an(e,n):a&&!l&&!c?e[mh(t)]=n:(t==="value"||t==="defaultValue")&&(e.nodeName==="INPUT"||e.nodeName==="TEXTAREA")?e[d||t]=n??"":e[d||t]=n;else{const p=o&&t.indexOf(":")>-1&&ch[t.split(":")[0]];p?ph(e,p,t,n):V(e,oh[t]||t,n)}return n}function yh(e){let t=e.target;const n=`$$${e.type}`,r=e.target,o=e.currentTarget,i=l=>Object.defineProperty(e,"target",{configurable:!0,value:l}),s=()=>{const l=t[n];if(l&&!t.disabled){const c=t[`${n}Data`];if(c!==void 0?l.call(t,c,e):l.call(t,e),e.cancelBubble)return}return t.host&&typeof t.host!="string"&&!t.host._$host&&t.contains(e.target)&&i(t.host),!0},a=()=>{for(;s()&&(t=t._$host||t.parentNode||t.host););};Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return t||document}});try{if(e.composedPath){const l=e.composedPath();i(l[0]);for(let c=0;c<l.length-2&&(t=l[c],!!s());c++){if(t._$host){t=t._$host,a();break}if(t.parentNode===o)break}}else a();i(r)}finally{e=t=null}}function Sr(e,t,n,r,o){for(;typeof n=="function";)n=n();if(t===n)return n;const i=typeof t,s=r!==void 0;if(e=s&&n[0]&&n[0].parentNode||e,i==="string"||i==="number"){if(i==="number"&&(t=t.toString(),t===n))return n;if(s){let a=n[0];a&&a.nodeType===3?a.data!==t&&(a.data=t):a=document.createTextNode(t),n=Fn(e,n,r,a)}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t}else if(t==null||i==="boolean")n=Fn(e,n,r);else{if(i==="function")return te(()=>{let a=t();for(;typeof a=="function";)a=a();n=Sr(e,a,n,r)}),()=>n;if(Array.isArray(t)){const a=[],l=n&&Array.isArray(n);if(ks(a,t,n,o))return te(()=>n=Sr(e,a,n,r,!0)),()=>n;if(a.length===0){if(n=Fn(e,n,r),s)return n}else l?n.length===0?pl(e,a,r):dh(e,n,a):(n&&Fn(e),pl(e,a));n=a}else if(t.nodeType){if(Array.isArray(n)){if(s)return n=Fn(e,n,r,t);Fn(e,n,null,t)}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}}return n}function ks(e,t,n,r){let o=!1;for(let i=0,s=t.length;i<s;i++){let a=t[i],l=n&&n[e.length],c;if(!(a==null||a===!0||a===!1))if((c=typeof a)=="object"&&a.nodeType)e.push(a);else if(Array.isArray(a))o=ks(e,a,l)||o;else if(c==="function")if(r){for(;typeof a=="function";)a=a();o=ks(e,Array.isArray(a)?a:[a],Array.isArray(l)?l:[l])||o}else e.push(a),o=!0;else{const d=String(a);l&&l.nodeType===3&&l.data===d?e.push(l):e.push(document.createTextNode(d))}}return o}function pl(e,t,n=null){for(let r=0,o=t.length;r<o;r++)e.insertBefore(t[r],n)}function Fn(e,t,n,r){if(n===void 0)return e.textContent="";const o=r||document.createTextNode("");if(t.length){let i=!1;for(let s=t.length-1;s>=0;s--){const a=t[s];if(o!==a){const l=a.parentNode===e;!i&&!s?l?e.replaceChild(o,a):e.insertBefore(o,n):l&&a.remove()}else i=!0}}else e.insertBefore(o,n);return[o]}const bh="http://www.w3.org/2000/svg";function Ed(e,t=!1,n=void 0){return t?document.createElementNS(bh,e):document.createElement(e,{is:n})}function vh(e){const{useShadow:t}=e,n=document.createTextNode(""),r=()=>e.mount||document.body,o=oa();let i;return fe(()=>{i||(i=Sd(o,()=>N(()=>e.children)));const s=r();if(s instanceof HTMLHeadElement){const[a,l]=Y(!1),c=()=>l(!0);Kt(d=>$(s,()=>a()?d():i(),null)),le(c)}else{const a=Ed(e.isSVG?"g":"div",e.isSVG),l=t&&a.attachShadow?a.attachShadow({mode:"open"}):a;Object.defineProperty(a,"_$host",{get(){return n.parentNode},configurable:!0}),$(l,i),s.appendChild(a),e.ref&&e.ref(a),le(()=>s.contains(a)&&s.removeChild(a))}},void 0,{render:!0}),n}function xh(e,t){const n=N(e);return N(()=>{const r=n();switch(typeof r){case"function":return L(()=>r(t));case"string":const o=lh.has(r),i=Ed(r,o,L(()=>t.is));return I(i,t,o),i}})}function Dn(e){const[,t]=Br(e,["component"]);return xh(()=>e.component,t)}const $h="https://ui.exponential.at/catalogs/core/v1",wh="https://ui.exponential.at/catalogs/core-lite/v1",kh="Unknown",Sh={variant:["default","secondary","outline","ghost","destructive","link"],size:["sm","default","lg","icon"],tone:["neutral","primary","success","warning","danger","info"],gap:["none","xs","sm","md","lg","xl"],align:["start","center","end","stretch"],justify:["start","center","end","between","around","evenly"],textVariant:["body","caption","muted","lead","code","label","title"],headingLevel:["h1","h2","h3","h4"],imageFit:["contain","cover","fill","none","scaleDown"],orientation:["horizontal","vertical"],side:["top","right","bottom","left"],inputType:["text","email","password","number","search","url","tel"],validateOn:["change","blur","submit"],alertType:["info","success","warning","error"],controlSize:["sm","default","lg"],spinnerSize:["xs","sm","default","lg"],tabClosable:["none","hover","always"],groupType:["single","multiple"],rowChevron:["none","right","selector"],rowSurface:["flat","card"],chipShape:["pill","rect"],density:["default","compact"],listDirection:["vertical","horizontal"],chartKind:["bar","stackedBar","line","area","pie","donut","sparkline"],segmentedVariant:["segmented","toggles","outline","bar"],liveTone:["live","attention","done","unread","idle","muted"],menuItemKind:["item","checkbox","separator","label","submenu"],openOn:["press","hover"],menuOpenOn:["press","contextmenu"],live:["off","polite","assertive"],selectable:["none","single","multiple"],cellType:["text","number","date","boolean","badge","slot","currency","percent","relativeTime"],sortDirection:["asc","desc"],imageLoading:["lazy","eager"],scrollDirection:["vertical","horizontal","both"],collapseBelow:["never","sm","md","lg","xl"],codeLanguage:["plain","json","js","ts","tsx","rust","swift","kotlin","python","bash","html","css","sql","yaml","markdown","ansi"],codeToken:["plain","keyword","string","number","comment","punctuation","operator","type","function","property","tag","attribute","success","warning","error"],codeBlockVariant:["default","destructive"],codeBlockSize:["default","sm"],traceStatus:["running","error","pending","done","skipped"],traceSize:["default","sm"],voiceWaveActivity:["idle","listening","thinking","speaking","muted"],voiceWaveSize:["sm","md","lg","xl"],messageSide:["in","out"],messageStatus:["sending","sent","read"],callState:["ringing","connecting","talking","ended"],voiceWaveVariant:["ring","bars"],qrLevel:["L","M","Q","H"],planState:["proposed","running","done","declined"]},Ch={option:{properties:{label:{type:"string",required:!0,bindable:!0},value:{type:"string",required:!0},icon:{type:"icon"},disabled:{type:"boolean"},description:{type:"string"},image:{type:"url"},count:{type:"number",bindable:!0}}},check:{properties:{condition:{type:"boolean",required:!0,bindable:!0},message:{type:"string",required:!0}}},tab:{properties:{label:{type:"string",required:!0,bindable:!0},value:{type:"string",required:!0},icon:{type:"icon"},count:{type:"number"}}},menuItem:{properties:{label:{type:"string"},value:{type:"string"},kind:{type:"enum",enum:"menuItemKind",default:"item"},icon:{type:"icon"},shortcut:{type:"string"},checked:{type:"boolean",bindable:!0},destructive:{type:"boolean"},disabled:{type:"boolean"},items:{type:"array",items:{type:"object",shape:"menuItem"},bindable:!0},searchable:{type:"boolean"},placeholder:{type:"string"}}},searchItem:{properties:{label:{type:"string",required:!0,bindable:!0},value:{type:"string",required:!0},icon:{type:"icon"},identifier:{type:"string"},disabled:{type:"boolean"}}},accordionItem:{properties:{title:{type:"string",required:!0,bindable:!0},value:{type:"string",required:!0},count:{type:"number"}}},segment:{properties:{value:{type:"number",required:!0},tone:{type:"enum",enum:"tone"},label:{type:"string"}}},series:{properties:{name:{type:"string",required:!0},values:{type:"array",items:{type:"number"},required:!0},tone:{type:"enum",enum:"tone"}}},pageItem:{properties:{title:{type:"string"}}},step:{properties:{label:{type:"string",required:!0},description:{type:"string"}}},column:{properties:{key:{type:"string",required:!0},label:{type:"string",required:!0},type:{type:"enum",enum:"cellType",default:"text"},slot:{type:"string"},width:{type:"number"},align:{type:"enum",values:["start","center","end"],default:"start"},sortable:{type:"boolean",default:!1},currency:{type:"string"},decimals:{type:"number"}}},sort:{properties:{key:{type:"string",required:!0},direction:{type:"enum",enum:"sortDirection",required:!0}}},panel:{properties:{min:{type:"number"},max:{type:"number"},collapsible:{type:"boolean"}}},file:{properties:{name:{type:"string",required:!0},size:{type:"number"},type:{type:"string"},url:{type:"url"}}},planStep:{properties:{title:{type:"string",required:!0},detail:{type:"string"},icon:{type:"icon"},status:{type:"enum",enum:"traceStatus"}}}},Ah={names:["required","regex","length","numeric","email","formatString","formatNumber","formatCurrency","formatDate","pluralize","openUrl","and","or","not","percent","add","sub","eq","lt","clamp","cond","fallback","concat","coalesce","text","map","len","fill","set","formatPercent","formatRelativeTime","filter","bind"]},Th={"Accordion.trigger":"ui-chevron-down","Carousel.previous":"ui-chevron-left","Carousel.next":"ui-chevron-right","Checkbox.check":"ui-check","ChipInput.remove":"ui-close","CodeBlock.copy":"ui-copy","CodeBlock.copied":"ui-check","Composer.attachment":"ui-attach","Composer.send":"ui-send","Composer.stop":"ui-stop","DatePicker.trigger":"calendar","DatePicker.previousMonth":"ui-chevron-left","DatePicker.nextMonth":"ui-chevron-right","DateRangePicker.trigger":"calendar","Dialog.close":"ui-close","Menu.check":"ui-check","Menu.submenuIndicator":"ui-chevron-right","FileUpload.icon":"upload","FileUpload.file":"ui-file","FileUpload.remove":"ui-close","Image.fallback":"ui-icon-placeholder","NumberField.decrement":"ui-minus","NumberField.increment":"ui-add","Select.trigger":"ui-selector","Select.search":"search","Select.check":"ui-check","SearchList.search":"search","SearchList.check":"ui-check","Table.sortIcon.asc":"ui-chevron-up","Table.sortIcon.desc":"ui-chevron-down","Tabs.close":"ui-close","Tabs.new":"ui-add","TimePicker.trigger":"ui-clock","Toast.close":"ui-close","Toast.icon.info":"ui-info","Toast.icon.success":"ui-success","Toast.icon.warning":"ui-warning","Toast.icon.error":"ui-error","Unknown.root":"ui-warning"},Ih=JSON.parse('{"Box":{"kind":"native","group":"layout","lite":true,"children":"many","props":{"style":{"type":"style"},"pressable":{"type":"boolean"}},"events":["press"]},"Stack":{"kind":"macro","group":"layout","lite":true,"children":"many","props":{"direction":{"type":"enum","enum":"orientation","default":"vertical","responsive":true,"bindable":true},"gap":{"type":"enum","enum":"gap","default":"md","responsive":true},"align":{"type":"enum","enum":"align","responsive":true,"bindable":true},"justify":{"type":"enum","enum":"justify","default":"start","responsive":true,"bindable":true},"wrap":{"type":"boolean","default":false,"responsive":true},"style":{"type":"style"}}},"Grid":{"kind":"macro","group":"layout","lite":true,"children":"many","props":{"columns":{"type":"number","default":2,"responsive":true},"gap":{"type":"enum","enum":"gap","default":"md","responsive":true},"style":{"type":"style"}}},"Card":{"kind":"macro","group":"layout","lite":true,"children":"many","props":{"title":{"type":"string"},"description":{"type":"string"},"padded":{"type":"boolean","default":true},"style":{"type":"style"}}},"Separator":{"kind":"macro","group":"layout","lite":true,"children":"none","props":{"orientation":{"type":"enum","enum":"orientation","default":"horizontal"}}},"List":{"kind":"native","group":"layout","lite":true,"children":"many","slots":["section"],"slotScope":"row","props":{"direction":{"type":"enum","enum":"listDirection","default":"vertical"},"gap":{"type":"enum","enum":"gap","default":"none"},"divided":{"type":"boolean","default":false},"sectionBy":{"type":"string"},"stickyHeaders":{"type":"boolean","default":false},"style":{"type":"style"}}},"Resizable":{"kind":"native","group":"layout","lite":true,"children":"many","props":{"direction":{"type":"enum","enum":"orientation","default":"horizontal","responsive":true},"sizes":{"type":"array","items":{"type":"number"},"bindable":true},"panels":{"type":"array","items":{"type":"object","shape":"panel"}},"handle":{"type":"boolean","default":false},"style":{"type":"style"}},"events":["change"]},"ScrollArea":{"kind":"macro","group":"layout","lite":true,"children":"many","props":{"direction":{"type":"enum","enum":"scrollDirection","default":"vertical"},"maxHeight":{"type":"number"},"style":{"type":"style"}}},"Sidebar":{"kind":"macro","group":"layout","lite":true,"children":"many","slots":["sidebar"],"props":{"side":{"type":"enum","values":["left","right"],"default":"left"},"width":{"type":"number","default":240},"collapseBelow":{"type":"enum","enum":"collapseBelow","default":"md"},"collapsed":{"type":"boolean","default":false,"bindable":true}}},"SplitView":{"kind":"macro","group":"layout","lite":true,"children":"many","slots":["list"],"props":{"open":{"type":"boolean","default":false,"bindable":true},"width":{"type":"number","default":320}},"events":["back"]},"AppBar":{"kind":"macro","group":"layout","lite":true,"children":"none","slots":["leading","trailing"],"props":{"title":{"type":"string","required":true,"bindable":true},"subtitle":{"type":"string","bindable":true},"back":{"type":"boolean","default":false}},"events":["back"]},"Page":{"kind":"macro","group":"layout","lite":true,"children":"many","slots":["leading","trailing"],"props":{"title":{"type":"string","required":true,"bindable":true},"subtitle":{"type":"string","bindable":true},"back":{"type":"boolean","default":false},"padded":{"type":"boolean","default":true}},"events":["back"]},"Toolbar":{"kind":"macro","group":"layout","lite":true,"children":"many","slots":["trailing"],"props":{"gap":{"type":"enum","enum":"gap","default":"sm"}}},"Section":{"kind":"macro","group":"list","lite":true,"children":"many","slots":["leading","trailing"],"props":{"title":{"type":"string","bindable":true},"caption":{"type":"string","bindable":true},"count":{"type":"number","bindable":true},"icon":{"type":"icon"},"collapsible":{"type":"boolean","default":false},"open":{"type":"boolean","default":true,"bindable":true},"tint":{"type":"enum","enum":"tone","default":"neutral"},"tree":{"type":"boolean","default":false},"loading":{"type":"boolean","default":false,"bindable":true},"style":{"type":"style"}},"events":["change"]},"Group":{"kind":"macro","group":"list","lite":true,"children":"many","props":{"title":{"type":"string"},"footer":{"type":"string"}}},"Text":{"kind":"native","group":"text","lite":true,"children":"none","props":{"text":{"type":"string","required":true,"bindable":true},"variant":{"type":"enum","enum":"textVariant","default":"body"},"align":{"type":"enum","values":["start","center","end"]},"lines":{"type":"number"},"tone":{"type":"enum","enum":"tone"},"shimmer":{"type":"boolean","default":false},"live":{"type":"enum","enum":"live","default":"off"},"style":{"type":"style"}}},"Heading":{"kind":"macro","group":"text","lite":true,"children":"none","props":{"text":{"type":"string","required":true,"bindable":true},"level":{"type":"enum","enum":"headingLevel","default":"h2"}}},"Markdown":{"kind":"native","group":"text","lite":true,"children":"none","props":{"text":{"type":"markdown","required":true,"bindable":true},"lines":{"type":"number"},"style":{"type":"style"}}},"CodeBlock":{"kind":"native","group":"text","lite":true,"children":"none","props":{"code":{"type":"string","required":true,"bindable":true},"language":{"type":"enum","enum":"codeLanguage","default":"plain"},"title":{"type":"string"},"lineNumbers":{"type":"boolean","default":false},"wrap":{"type":"boolean","default":false},"copyable":{"type":"boolean","default":true},"highlight":{"type":"array","items":{"type":"number"}},"maxLines":{"type":"number"},"variant":{"type":"enum","enum":"codeBlockVariant","default":"default","bindable":true},"size":{"type":"enum","enum":"codeBlockSize","default":"default"}}},"Kbd":{"kind":"macro","group":"text","lite":true,"children":"none","props":{"keys":{"type":"string","required":true}}},"Label":{"kind":"macro","group":"text","lite":true,"children":"none","props":{"text":{"type":"string","required":true,"bindable":true},"for":{"type":"string"},"required":{"type":"boolean","default":false}}},"Image":{"kind":"native","group":"media","lite":false,"children":"none","props":{"src":{"type":"url","bindable":true},"alt":{"type":"string","required":true,"bindable":true},"fit":{"type":"enum","enum":"imageFit","default":"cover"},"width":{"type":"number"},"height":{"type":"number"},"aspectRatio":{"type":"number"},"fallback":{"type":"icon"},"loading":{"type":"enum","enum":"imageLoading","default":"lazy"},"focalX":{"type":"number"},"focalY":{"type":"number"},"style":{"type":"style"}}},"Icon":{"kind":"native","group":"media","lite":true,"children":"none","props":{"name":{"type":"icon","required":true,"bindable":true},"size":{"type":"enum","enum":"controlSize","default":"default"},"tone":{"type":"enum","enum":"tone","bindable":true},"label":{"type":"string"}}},"Video":{"kind":"native","group":"media","lite":false,"children":"none","props":{"src":{"type":"url","required":true,"bindable":true},"poster":{"type":"url"},"durationMs":{"type":"number"},"autoplay":{"type":"boolean","default":false},"aspectRatio":{"type":"number","default":1.7777778},"style":{"type":"style"}}},"AudioPlayer":{"kind":"native","group":"media","lite":false,"children":"none","props":{"src":{"type":"url","required":true,"bindable":true},"title":{"type":"string"},"durationMs":{"type":"number"}}},"Avatar":{"kind":"native","group":"media","lite":true,"children":"none","props":{"name":{"type":"string","required":true,"bindable":true},"src":{"type":"url","bindable":true},"size":{"type":"enum","enum":"controlSize","default":"default"},"seed":{"type":"string"}}},"QrCode":{"kind":"native","group":"media","lite":false,"children":"none","props":{"value":{"type":"string","required":true,"bindable":true},"size":{"type":"number","default":160},"level":{"type":"enum","enum":"qrLevel","default":"M"},"label":{"type":"string"}}},"Carousel":{"kind":"native","group":"media","lite":false,"children":"many","props":{"page":{"type":"number","default":0,"bindable":true},"loop":{"type":"boolean","default":false},"indicators":{"type":"boolean","default":true}},"events":["change"]},"Tabs":{"kind":"native","group":"navigation","lite":true,"children":"many","props":{"tabs":{"type":"array","items":{"type":"object","shape":"tab"},"required":true},"value":{"type":"string","bindable":true},"fill":{"type":"boolean","default":false},"closable":{"type":"enum","enum":"tabClosable","default":"none"},"addable":{"type":"boolean","default":false}},"events":["change","close","new"]},"Segmented":{"kind":"native","group":"navigation","lite":true,"children":"none","props":{"items":{"type":"array","items":{"type":"object","shape":"option"},"required":true},"type":{"type":"enum","enum":"groupType","default":"single"},"value":{"type":"string","bindable":true},"variant":{"type":"enum","enum":"segmentedVariant","default":"segmented"},"size":{"type":"enum","enum":"controlSize","default":"default"},"fill":{"type":"boolean","default":false},"orientation":{"type":"enum","enum":"orientation","default":"horizontal"}},"events":["change"]},"Accordion":{"kind":"native","group":"navigation","lite":false,"children":"many","props":{"items":{"type":"array","items":{"type":"object","shape":"accordionItem"},"required":true},"type":{"type":"enum","enum":"groupType","default":"single"},"value":{"type":"string","bindable":true}},"events":["change"]},"Collapsible":{"kind":"macro","group":"navigation","lite":true,"children":"many","props":{"title":{"type":"string","required":true},"open":{"type":"boolean","default":false,"bindable":true},"count":{"type":"number"}},"events":["change"]},"Trace":{"kind":"macro","group":"list","lite":true,"children":"many","props":{"size":{"type":"enum","enum":"traceSize","default":"default"}}},"TraceItem":{"kind":"macro","group":"list","lite":true,"children":"many","props":{"title":{"type":"string","required":true,"bindable":true},"icon":{"type":"icon"},"description":{"type":"string"},"status":{"type":"enum","enum":"traceStatus"},"size":{"type":"enum","enum":"traceSize","default":"default"},"collapsible":{"type":"boolean","default":false},"open":{"type":"boolean","default":false,"bindable":true}},"events":["change"]},"Plan":{"kind":"macro","group":"list","lite":true,"children":"none","props":{"title":{"type":"string","required":true,"bindable":true},"description":{"type":"string","bindable":true},"steps":{"type":"array","items":{"type":"object","shape":"planStep"}},"state":{"type":"enum","enum":"planState","default":"proposed","bindable":true},"progress":{"type":"number","bindable":true},"approveLabel":{"type":"string","default":"$string.yes"},"declineLabel":{"type":"string","default":"$string.no"},"stopLabel":{"type":"string","default":"$string.stop"}},"events":["approve","decline","stop"]},"Pagination":{"kind":"macro","group":"navigation","lite":false,"children":"none","props":{"totalPages":{"type":"number","required":true},"page":{"type":"number","default":1,"bindable":true}},"events":["change"]},"Breadcrumb":{"kind":"macro","group":"navigation","lite":true,"children":"none","props":{"items":{"type":"array","items":{"type":"object","shape":"option"},"required":true}},"events":["select"]},"Stepper":{"kind":"macro","group":"navigation","lite":true,"children":"none","props":{"steps":{"type":"array","items":{"type":"object","shape":"step"},"required":true},"current":{"type":"number","default":0,"bindable":true},"orientation":{"type":"enum","enum":"orientation","default":"horizontal"}}},"Dialog":{"kind":"native","group":"overlay","lite":false,"children":"many","slots":["trigger","footer"],"props":{"title":{"type":"string"},"description":{"type":"string"},"open":{"type":"boolean","default":false,"bindable":true},"dismissible":{"type":"boolean","default":true}},"events":["change"]},"Drawer":{"kind":"native","group":"overlay","lite":false,"children":"many","slots":["trigger","footer"],"props":{"title":{"type":"string"},"description":{"type":"string"},"open":{"type":"boolean","default":false,"bindable":true},"side":{"type":"enum","enum":"side","default":"bottom","responsive":true},"dismissible":{"type":"boolean","default":true},"dragToDismiss":{"type":"boolean","default":true}},"events":["change"]},"DockCard":{"kind":"macro","group":"overlay","lite":false,"children":"many","slots":["footer"],"props":{"label":{"type":"string","required":true,"bindable":true},"title":{"type":"string","required":true,"bindable":true},"caption":{"type":"string","bindable":true},"meta":{"type":"string","bindable":true},"icon":{"type":"icon"},"tone":{"type":"enum","enum":"tone","default":"neutral"},"open":{"type":"boolean","default":false,"bindable":true}},"events":["press","change"]},"AlertDialog":{"kind":"macro","group":"overlay","lite":false,"children":"many","slots":["trigger"],"props":{"title":{"type":"string","required":true},"description":{"type":"string"},"confirmLabel":{"type":"string","default":"$string.confirm"},"cancelLabel":{"type":"string","default":"$string.cancel"},"destructive":{"type":"boolean","default":false},"open":{"type":"boolean","default":false,"bindable":true}},"events":["confirm","cancel","change"]},"Popover":{"kind":"native","group":"overlay","lite":false,"children":"many","slots":["trigger"],"props":{"open":{"type":"boolean","default":false,"bindable":true},"side":{"type":"enum","enum":"side","default":"bottom"},"openOn":{"type":"enum","enum":"openOn","default":"press"}},"events":["change"]},"Tooltip":{"kind":"native","group":"overlay","lite":false,"children":"many","props":{"content":{"type":"string","required":true},"side":{"type":"enum","enum":"side","default":"top"}}},"Menu":{"kind":"native","group":"overlay","lite":false,"children":"one","props":{"label":{"type":"string"},"icon":{"type":"icon"},"items":{"type":"array","items":{"type":"object","shape":"menuItem"},"required":true},"openOn":{"type":"enum","enum":"menuOpenOn","default":"press"}},"events":["select"]},"Toast":{"kind":"native","group":"overlay","lite":false,"children":"none","props":{"title":{"type":"string","required":true,"bindable":true},"description":{"type":"string","bindable":true},"type":{"type":"enum","enum":"alertType","default":"info"},"open":{"type":"boolean","default":true,"bindable":true},"duration":{"type":"number","default":5000},"actionLabel":{"type":"string"},"dismissible":{"type":"boolean","default":true}},"events":["dismiss","action","change"]},"Badge":{"kind":"macro","group":"feedback","lite":true,"children":"none","props":{"text":{"type":"string","required":true,"bindable":true},"variant":{"type":"enum","enum":"variant","default":"default","bindable":true},"icon":{"type":"icon"}}},"Alert":{"kind":"macro","group":"feedback","lite":true,"children":"none","props":{"title":{"type":"string","required":true},"message":{"type":"string"},"type":{"type":"enum","enum":"alertType","default":"info"}}},"Chip":{"kind":"macro","group":"feedback","lite":true,"children":"none","slots":["leading"],"props":{"label":{"type":"string","required":true,"bindable":true},"shape":{"type":"enum","enum":"chipShape","default":"pill"},"selected":{"type":"boolean","default":false},"tone":{"type":"enum","enum":"tone","default":"neutral","bindable":true},"dot":{"type":"color"},"icon":{"type":"icon"},"image":{"type":"url"},"detail":{"type":"string"},"removable":{"type":"boolean","default":false},"pressable":{"type":"boolean","default":false}},"events":["press","remove"]},"EmptyState":{"kind":"macro","group":"feedback","lite":true,"children":"none","props":{"icon":{"type":"icon","required":true},"title":{"type":"string","required":true},"description":{"type":"string"},"actionLabel":{"type":"string"},"size":{"type":"enum","values":["page","list"],"default":"page"}},"events":["press"]},"Progress":{"kind":"macro","group":"feedback","lite":true,"children":"none","props":{"value":{"type":"number","required":true,"bindable":true},"max":{"type":"number","default":100},"label":{"type":"string"},"tone":{"type":"enum","enum":"tone","default":"primary"}}},"Meter":{"kind":"macro","group":"feedback","lite":true,"children":"none","props":{"segments":{"type":"array","items":{"type":"object","shape":"segment"},"required":true},"max":{"type":"number","default":100},"label":{"type":"string"},"value":{"type":"string"}}},"Ring":{"kind":"native","group":"feedback","lite":true,"children":"none","props":{"value":{"type":"number","required":true,"bindable":true},"size":{"type":"enum","enum":"controlSize","default":"default"},"tone":{"type":"enum","enum":"tone","default":"primary"},"label":{"type":"string"}}},"Spinner":{"kind":"native","group":"feedback","lite":false,"children":"none","props":{"size":{"type":"enum","enum":"spinnerSize","default":"default"},"label":{"type":"string"}}},"Skeleton":{"kind":"native","group":"feedback","lite":true,"children":"none","props":{"width":{"type":"string"},"height":{"type":"string"},"rounded":{"type":"boolean","default":false},"rows":{"type":"number"},"rowHeight":{"type":"number"},"dot":{"type":"boolean","default":true}}},"VoiceWave":{"kind":"native","group":"feedback","lite":false,"children":"one","props":{"activity":{"type":"enum","enum":"voiceWaveActivity","default":"idle","bindable":true},"variant":{"type":"enum","enum":"voiceWaveVariant","default":"ring"},"level":{"type":"number","default":0,"bindable":true},"bands":{"type":"array","items":{"type":"number"},"bindable":true},"size":{"type":"enum","enum":"voiceWaveSize","default":"md"},"label":{"type":"string"}}},"CallSurface":{"kind":"macro","group":"media","lite":false,"children":"none","props":{"name":{"type":"string","required":true,"bindable":true},"avatar":{"type":"url","bindable":true},"state":{"type":"enum","enum":"callState","default":"talking","bindable":true},"activity":{"type":"enum","enum":"voiceWaveActivity","default":"speaking","bindable":true},"level":{"type":"number","bindable":true},"bands":{"type":"array","items":{"type":"number"},"bindable":true},"status":{"type":"string","bindable":true},"caption":{"type":"string","bindable":true},"muted":{"type":"boolean","default":false,"bindable":true},"speaker":{"type":"boolean","bindable":true}},"events":["mute","speaker","hangUp"]},"Table":{"kind":"native","group":"data","lite":false,"children":"none","slots":["*"],"slotScope":"row","props":{"columns":{"type":"array","items":{"type":"object","shape":"column"},"required":true},"rows":{"type":"array","items":{"type":"object"},"required":true,"bindable":true},"rowKey":{"type":"string","default":"id"},"sort":{"type":"object","shape":"sort","bindable":true},"selectable":{"type":"enum","enum":"selectable","default":"none"},"selected":{"type":"array","items":{"type":"string"},"bindable":true},"caption":{"type":"string"},"emptyText":{"type":"string","default":"$string.noResults"},"striped":{"type":"boolean","default":false},"density":{"type":"enum","enum":"density","default":"default"},"stickyHeader":{"type":"boolean","default":false}},"events":["sort","select","rowPress"]},"Chart":{"kind":"native","group":"data","lite":false,"children":"none","props":{"kind":{"type":"enum","enum":"chartKind","required":true},"categories":{"type":"array","items":{"type":"string"},"bindable":true},"series":{"type":"array","items":{"type":"object","shape":"series"},"required":true,"bindable":true},"title":{"type":"string"},"height":{"type":"number","default":200},"xLabel":{"type":"string"},"yLabel":{"type":"string"},"min":{"type":"number"},"max":{"type":"number"},"showAxes":{"type":"boolean","default":true},"showGrid":{"type":"boolean","default":true},"showLegend":{"type":"boolean","default":true},"showValues":{"type":"boolean","default":false}}},"Sparkline":{"kind":"macro","group":"data","lite":false,"children":"none","props":{"values":{"type":"array","items":{"type":"number"},"required":true,"bindable":true},"tone":{"type":"enum","enum":"tone","default":"primary"},"height":{"type":"number","default":24}}},"StatTile":{"kind":"macro","group":"data","lite":true,"children":"none","props":{"label":{"type":"string","required":true,"bindable":true},"value":{"type":"string","required":true,"bindable":true},"delta":{"type":"string","bindable":true},"tone":{"type":"enum","enum":"tone","default":"neutral","bindable":true},"trend":{"type":"array","items":{"type":"number"},"bindable":true}}},"Button":{"kind":"native","group":"action","lite":true,"children":"one","props":{"label":{"type":"string","bindable":true},"icon":{"type":"icon","bindable":true},"variant":{"type":"enum","enum":"variant","default":"default"},"size":{"type":"enum","enum":"size","default":"default"},"disabled":{"type":"boolean","default":false,"bindable":true},"loading":{"type":"boolean","default":false},"pendingLabel":{"type":"string"},"submit":{"type":"boolean","default":false},"hold":{"type":"boolean","default":false},"holdingLabel":{"type":"string"}},"events":["press","holdStart","holdEnd","holdCancel"]},"Link":{"kind":"native","group":"action","lite":true,"children":"none","props":{"label":{"type":"string","required":true,"bindable":true},"href":{"type":"url"},"external":{"type":"boolean","default":false}},"events":["press"]},"Toggle":{"kind":"native","group":"action","lite":false,"children":"none","props":{"label":{"type":"string","required":true},"icon":{"type":"icon"},"pressed":{"type":"boolean","default":false,"bindable":true},"variant":{"type":"enum","values":["default","outline"],"default":"default"},"size":{"type":"enum","enum":"controlSize","default":"default"}},"events":["change"]},"Form":{"kind":"native","group":"input","lite":true,"children":"many","props":{"name":{"type":"string","required":true},"disabled":{"type":"boolean","default":false,"bindable":true},"busy":{"type":"boolean","default":false,"bindable":true},"summary":{"type":"boolean","default":false}},"events":["submit","invalid","change"]},"FieldGroup":{"kind":"macro","group":"input","lite":true,"children":"many","props":{"columns":{"type":"number","default":2}}},"FormActions":{"kind":"macro","group":"input","lite":true,"children":"many","props":{"submit":{"type":"string","required":true,"bindable":true},"cancel":{"type":"boolean","default":false},"destructive":{"type":"boolean","default":false}},"events":["cancel"]},"Input":{"kind":"native","group":"input","lite":true,"children":"none","props":{"label":{"type":"string","required":true},"name":{"type":"string","required":true},"type":{"type":"enum","enum":"inputType","default":"text"},"placeholder":{"type":"string"},"value":{"type":"string","bindable":true},"disabled":{"type":"boolean","default":false},"checks":{"type":"array","items":{"type":"object","shape":"check"}},"validateOn":{"type":"enum","enum":"validateOn","default":"blur"}},"events":["change","submit","focus","blur"]},"Textarea":{"kind":"native","group":"input","lite":true,"children":"none","props":{"label":{"type":"string","required":true},"name":{"type":"string","required":true},"placeholder":{"type":"string"},"rows":{"type":"number","default":3},"autosize":{"type":"boolean","default":false},"maxRows":{"type":"number"},"value":{"type":"string","bindable":true},"disabled":{"type":"boolean","default":false},"checks":{"type":"array","items":{"type":"object","shape":"check"}},"validateOn":{"type":"enum","enum":"validateOn","default":"blur"}},"events":["change","focus","blur"]},"NumberField":{"kind":"native","group":"input","lite":true,"children":"none","props":{"label":{"type":"string","required":true},"name":{"type":"string","required":true},"value":{"type":"number","bindable":true},"min":{"type":"number"},"max":{"type":"number"},"step":{"type":"number","default":1},"precision":{"type":"number"},"unit":{"type":"string"},"placeholder":{"type":"string"},"disabled":{"type":"boolean","default":false},"checks":{"type":"array","items":{"type":"object","shape":"check"}},"validateOn":{"type":"enum","enum":"validateOn","default":"blur"}},"events":["change","submit","focus","blur"]},"Checkbox":{"kind":"native","group":"input","lite":true,"children":"none","props":{"label":{"type":"string","required":true,"bindable":true},"name":{"type":"string","required":true},"checked":{"type":"boolean","default":false,"bindable":true},"disabled":{"type":"boolean","default":false},"checks":{"type":"array","items":{"type":"object","shape":"check"}}},"events":["change"]},"Radio":{"kind":"native","group":"input","lite":false,"children":"none","props":{"label":{"type":"string"},"name":{"type":"string","required":true},"options":{"type":"array","items":{"type":"object","shape":"option"},"required":true},"value":{"type":"string","bindable":true},"orientation":{"type":"enum","enum":"orientation","default":"vertical"},"checks":{"type":"array","items":{"type":"object","shape":"check"}}},"events":["change"]},"ChoiceTiles":{"kind":"native","group":"input","lite":false,"children":"none","props":{"name":{"type":"string","required":true},"options":{"type":"array","items":{"type":"object","shape":"option"},"required":true},"type":{"type":"enum","enum":"groupType","default":"single"},"value":{"type":"string","bindable":true},"columns":{"type":"number","default":2},"disabled":{"type":"boolean","default":false},"checks":{"type":"array","items":{"type":"object","shape":"check"}}},"events":["change"]},"Switch":{"kind":"native","group":"input","lite":true,"children":"none","props":{"label":{"type":"string","required":true,"bindable":true},"name":{"type":"string","required":true},"checked":{"type":"boolean","default":false,"bindable":true},"description":{"type":"string"},"disabled":{"type":"boolean","default":false}},"events":["change"]},"Slider":{"kind":"native","group":"input","lite":false,"children":"none","props":{"label":{"type":"string"},"min":{"type":"number","default":0,"bindable":true},"max":{"type":"number","required":true,"bindable":true},"step":{"type":"number","default":1},"value":{"type":"number","bindable":true}},"events":["change"]},"Rating":{"kind":"macro","group":"input","lite":true,"children":"none","props":{"value":{"type":"number","default":0,"bindable":true},"max":{"type":"number","default":5,"minimum":1,"maximum":100},"readOnly":{"type":"boolean","default":false},"size":{"type":"enum","enum":"controlSize","default":"default"}},"events":["change"]},"Select":{"kind":"native","group":"input","lite":true,"children":"none","props":{"label":{"type":"string"},"name":{"type":"string","required":true},"options":{"type":"array","items":{"type":"object","shape":"option"},"bindable":true},"source":{"type":"string"},"placeholder":{"type":"string"},"value":{"type":"string","bindable":true},"multiple":{"type":"boolean","default":false},"searchable":{"type":"boolean","default":false},"emptyText":{"type":"string","default":"$string.noResults"},"disabled":{"type":"boolean","default":false},"checks":{"type":"array","items":{"type":"object","shape":"check"}},"validateOn":{"type":"enum","enum":"validateOn","default":"change"}},"events":["change","search"]},"SearchList":{"kind":"native","group":"input","lite":true,"children":"none","props":{"items":{"type":"array","items":{"type":"object","shape":"searchItem"},"required":true,"bindable":true},"query":{"type":"string","bindable":true},"placeholder":{"type":"string","default":"$string.search"},"value":{"type":"string","bindable":true},"emptyText":{"type":"string","default":"$string.noResults"},"maxRows":{"type":"number","default":8},"showCount":{"type":"boolean","default":true}},"events":["search","select"]},"ChipInput":{"kind":"native","group":"input","lite":true,"children":"none","props":{"label":{"type":"string"},"name":{"type":"string","required":true},"values":{"type":"array","items":{"type":"string"},"bindable":true},"suggestions":{"type":"array","items":{"type":"object","shape":"option"},"bindable":true},"placeholder":{"type":"string"},"max":{"type":"number"},"disabled":{"type":"boolean","default":false},"checks":{"type":"array","items":{"type":"object","shape":"check"}}},"events":["change","add","remove"]},"DatePicker":{"kind":"native","group":"input","lite":true,"children":"none","props":{"label":{"type":"string"},"name":{"type":"string","required":true},"value":{"type":"date","bindable":true},"min":{"type":"date"},"max":{"type":"date"},"placeholder":{"type":"string"},"firstDayOfWeek":{"type":"number"}},"events":["change"]},"DateRangePicker":{"kind":"native","group":"input","lite":true,"children":"none","props":{"label":{"type":"string"},"name":{"type":"string","required":true},"start":{"type":"date","bindable":true},"end":{"type":"date","bindable":true},"min":{"type":"date"},"max":{"type":"date"},"placeholder":{"type":"string"},"firstDayOfWeek":{"type":"number"}},"events":["change"]},"TimePicker":{"kind":"native","group":"input","lite":true,"children":"none","props":{"label":{"type":"string"},"name":{"type":"string","required":true},"value":{"type":"string","bindable":true},"min":{"type":"string"},"max":{"type":"string"},"step":{"type":"number","default":15},"placeholder":{"type":"string"},"disabled":{"type":"boolean","default":false}},"events":["change"]},"FileUpload":{"kind":"native","group":"input","lite":true,"children":"none","props":{"label":{"type":"string"},"name":{"type":"string","required":true},"accept":{"type":"string"},"multiple":{"type":"boolean","default":false},"maxSize":{"type":"number"},"files":{"type":"array","items":{"type":"object","shape":"file"},"bindable":true},"hint":{"type":"string"},"disabled":{"type":"boolean","default":false}},"events":["upload","remove"]},"QrScanner":{"kind":"native","group":"input","lite":false,"children":"none","props":{"hint":{"type":"string","bindable":true},"formats":{"type":"array","items":{"type":"string"},"default":["qr"]},"label":{"type":"string","default":"$string.scanQrCode"},"disabled":{"type":"boolean","default":false}},"events":["scanned"]},"Composer":{"kind":"native","group":"input","lite":true,"children":"none","props":{"placeholder":{"type":"string"},"value":{"type":"string","bindable":true},"submitLabel":{"type":"string","default":"$string.send"},"attachments":{"type":"boolean","default":false},"busy":{"type":"boolean","default":false}},"events":["submit","change","stop"]},"Row":{"kind":"macro","group":"list","lite":true,"children":"none","slots":["leading","trailing"],"props":{"title":{"type":"string","required":true,"bindable":true},"identifier":{"type":"string","bindable":true},"subtitle":{"type":"string","bindable":true},"meta":{"type":"string","bindable":true},"value":{"type":"string","bindable":true},"placeholder":{"type":"string"},"icon":{"type":"icon","bindable":true},"chevron":{"type":"enum","enum":"rowChevron","default":"none","bindable":true},"selected":{"type":"boolean","default":false,"bindable":true},"density":{"type":"enum","enum":"density","default":"default"},"surface":{"type":"enum","enum":"rowSurface","default":"flat"},"pressable":{"type":"boolean","default":false},"depth":{"type":"number","default":0}},"events":["press"]},"MessageBubble":{"kind":"macro","group":"list","lite":true,"children":"none","slots":["attachment"],"props":{"text":{"type":"markdown","required":true,"bindable":true},"side":{"type":"enum","enum":"messageSide","default":"in"},"time":{"type":"string","bindable":true},"status":{"type":"enum","enum":"messageStatus","bindable":true},"author":{"type":"string","bindable":true}}},"TreeGuides":{"kind":"native","group":"list","lite":true,"children":"none","hidden":true,"props":{"depth":{"type":"number","required":true},"elbowAt":{"type":"number"},"tee":{"type":"boolean","default":false},"passThrough":{"type":"array","items":{"type":"number"}}}},"Unknown":{"kind":"native","group":"feedback","lite":true,"children":"none","hidden":true,"props":{"component":{"type":"string","required":true},"catalogId":{"type":"string"}}}}'),Eh={id:$h,liteId:wh,unknownComponent:kh,enums:Sh,defs:Ch,functions:Ah,builtinIcons:Th,components:Ih},_h="VAPP-85: the token NAMES the core catalog's macros and Box styles reference as `$<group>.<name>` (e.g. `$color.primary`, `$spacing.md`). VALUES come from a theme (VAPP-92); this file only fixes the vocabulary. `color` = the shadcn semantic set plus success/warning/info and the eight chart hues (round 1 added chart6..8); `spacing`/`radius`/`type` mirror packages/design-tokens' scales by NAME (xl2 because 2xl is not an identifier in Swift/Kotlin/Rust); `control` = the per-kind control heights the VAPP-4 spike asked for instead of px (round 1 adds `appBar`, `tabBar`, `toast`); `shadow` = the boxShadow presets, ALSO the elevation scale (none < sm < md < lg < xl: flat, card, popover, dialog, toast; paint order inside a layer stays tree order, overlays stack by layer, never by zIndex); `opacity` = the text-emphasis ladder; VAPP-92 adds `border` (the border-width ladder, px) and `motion` (durations, ms). Round 1 (docs/round-1-contract.md) adds `breakpoint` (px, the ONLY tokens a style CONDITION may reference: `\"@media (min-width: $breakpoint.md)\"`; resolved against the theme before matching), `ease` (cubic-bezier control points [x1, y1, x2, y2], referenced by `transitionEasing`) and `density` (multipliers over `control` and `spacing` for the surface density `compact`/`comfortable`; `default` = 1, never a token). Round 2 (docs/round-2-contract.md §2) adds `blur` (px radii, the ONLY values `backdropBlur` takes). EXP-1259 (EXP-1243, packages/design-tokens motion.scale) adds `scale` (unitless multipliers the PAINTERS read, never a style value): `press` = what a pressed button scales to, `popoverFrom` = what a popover or menu scales FROM while it fades in (never from 0); reduce motion = no scale. VAPP-162 appends `type.family.serif` (the platform's system serif, `ui-serif` in every built-in theme). Every group is append-only: a theme is validated against these names.",Mh=["background","foreground","card","cardForeground","popover","popoverForeground","primary","primaryForeground","secondary","secondaryForeground","muted","mutedForeground","accent","accentForeground","destructive","destructiveForeground","success","successForeground","warning","warningForeground","info","infoForeground","border","input","ring","chart1","chart2","chart3","chart4","chart5","chart6","chart7","chart8"],Dh=["none","xxs","xs","sm","md","lg","xl","xl2","xl3"],Ph=["none","sm","md","lg","xl","xl2","xl3","full"],Oh={size:["xs","sm","base","lg","xl","xl2","xl3"],lineHeight:["xs","sm","base","lg","xl","xl2","xl3"],weight:["regular","medium","semibold","bold"],family:["sans","mono","serif"]},Fh=["buttonSm","buttonMd","buttonLg","buttonIcon","input","textarea","row","rowCompact","pill","badge","chip","toggle","switch","checkbox","slider","progress","meter","avatarSm","avatarMd","avatarLg","iconSm","iconMd","iconLg","hairline","appBar","tabBar","toast"],zh=["none","sm","md","lg","xl"],Rh=["primary","secondary","tertiary","quaternary","disabled"],Nh=["none","hairline","thick"],Lh=["fast","standard","slow"],jh=["sm","md","lg","xl"],Bh=["standard","decelerate","accelerate"],Wh=["compact","comfortable"],Hh=["sm","md","lg","xl"],Uh=["press","popoverFrom"],qh={$comment:_h,color:Mh,spacing:Dh,radius:Ph,type:Oh,control:Fh,shadow:zh,opacity:Rh,border:Nh,motion:Lh,breakpoint:jh,ease:Bh,density:Wh,blur:Hh,scale:Uh},Vh="https://a2ui.org/specification/v0_9/basic_catalog.json",Kh="v0.9",Gh="ui-icon-placeholder",Yh={Text:{to:"Text",props:{text:"text"},transform:"textVariant"},Image:{to:"Image",props:{src:"url",alt:{from:"description",default:""},fit:{from:"fit",default:"cover"}},transform:"imageVariant"},Icon:{to:"Icon",props:{},transform:"iconName"},Video:{to:"Video",props:{src:"url"}},AudioPlayer:{to:"AudioPlayer",props:{src:"url",title:"description"}},Row:{to:"Stack",children:"children",props:{direction:{const:"horizontal"},justify:{from:"justify",map:{spaceBetween:"between",spaceAround:"around",spaceEvenly:"evenly",stretch:"start"},default:"start"},align:{from:"align",default:"stretch"},gap:{const:"sm"}}},Column:{to:"Stack",children:"children",props:{direction:{const:"vertical"},justify:{from:"justify",map:{spaceBetween:"between",spaceAround:"around",spaceEvenly:"evenly",stretch:"start"},default:"start"},align:{from:"align",default:"stretch"},gap:{const:"sm"}}},List:{to:"List",children:"children",props:{direction:{from:"direction",default:"vertical"},gap:{const:"sm"}}},Card:{to:"Card",children:"child",props:{}},Tabs:{to:"Tabs",props:{},transform:"tabs"},Modal:{to:"Dialog",props:{},transform:"modal"},Divider:{to:"Separator",props:{orientation:{from:"axis",default:"horizontal"}}},Button:{to:"Button",props:{variant:{from:"variant",map:{primary:"default",default:"secondary",borderless:"ghost"},default:"secondary"}},transform:"buttonChild"},TextField:{to:"Input",props:{label:"label",value:"value",checks:"checks"},transform:"textField"},CheckBox:{to:"Checkbox",props:{label:"label",checked:"value",checks:"checks"},transform:"fieldName"},ChoicePicker:{to:"Radio",props:{label:"label",options:"options",checks:"checks"},transform:"choicePicker"},Slider:{to:"Slider",props:{label:"label",min:{from:"min",default:0},max:"max",value:"value"}},DateTimeInput:{to:"DatePicker",props:{label:"label",value:"value",min:"min",max:"max"},transform:"fieldName"}},Xh={accountCircle:"ui-assignee",add:"ui-add",arrowBack:"ui-back",arrowForward:"ui-arrow-right",attachFile:"ui-attach",calendarToday:"calendar",call:"phone",camera:"camera",check:"ui-check",close:"ui-close",delete:"ui-delete",download:"ui-download",edit:"ui-edit",event:"ui-due-date",error:"ui-error",fastForward:"media-fast-forward",favorite:"heart",favoriteOff:"ui-favorite-off",folder:"ui-folder",help:"ui-help",home:"house",info:"ui-info",locationOn:"map-pin",lock:"ui-private",lockOpen:"ui-unlock",mail:"ui-mail",menu:"ui-menu",moreVert:"ui-more-vertical",moreHoriz:"ui-more",notificationsOff:"ui-unsubscribe",notifications:"ui-subscribe",pause:"run-pause",payment:"credit-card",person:"ui-avatar-placeholder",phone:"smartphone",photo:"image",play:"action-run",print:"ui-print",refresh:"ui-refresh",rewind:"media-rewind",search:"nav-search",send:"ui-send",settings:"nav-settings",share:"ui-share",shoppingCart:"shopping-cart",skipNext:"media-skip-next",skipPrevious:"media-skip-previous",star:"star",starHalf:"ui-star-half",starOff:"ui-star-off",stop:"ui-stop",upload:"sc-push",visibility:"ui-watch",visibilityOff:"ui-hide",volumeDown:"media-volume-down",volumeMute:"media-volume-mute",volumeOff:"media-volume-off",volumeUp:"media-volume-up",warning:"ui-warning"},ia={from:Vh,version:Kh,placeholderIcon:Gh,components:Yh,icons:Xh},Zh=JSON.parse('{"Stack":{"recipeProps":[],"root":{"part":"root","component":"Box","style":{"display":"flex","flexDirection":{"$map":{"from":"props.direction","cases":{"horizontal":"row"},"default":"column"}},"flexWrap":{"$cond":["props.wrap","wrap","nowrap"]},"gap":"$spacing.{props.gap|md}","alignItems":{"$coalesce":["{props.align}",{"$map":{"from":"props.direction","cases":{"horizontal":"center"},"default":"stretch"}}]},"justifyContent":{"$map":{"from":"props.justify","cases":{"between":"space-between","around":"space-around","evenly":"space-evenly"},"default":"{props.justify|start}"}}},"children":["$children"]}},"Grid":{"recipeProps":[],"root":{"part":"root","component":"Box","style":{"display":"grid","gridTemplateColumns":"repeat({props.columns|2}, minmax(0, 1fr))","gap":"$spacing.{props.gap|md}"},"children":["$children"]}},"Card":{"recipeProps":[],"root":{"part":"root","component":"Box","$a11y":{"role":"group","label":"{props.title}"},"style":{"display":"flex","flexDirection":"column","borderRadius":"$radius.xl","overflow":"hidden"},"children":[{"part":"header","component":"Box","$any":["props.title","props.description"],"style":{"display":"flex","flexDirection":"column","gap":"$spacing.xxs","paddingTop":"$spacing.lg","paddingHorizontal":"$spacing.lg"},"children":[{"part":"title","component":"Text","$if":"props.title","props":{"text":"{props.title}","variant":"title"}},{"part":"description","component":"Text","$if":"props.description","props":{"text":"{props.description}","variant":"muted"}}]},{"part":"body","component":"Box","style":{"display":"flex","flexDirection":"column","gap":"$spacing.md","padding":{"$map":{"from":"props.padded","cases":{"false":"$spacing.none"},"default":"$spacing.lg"}}},"children":["$children"]}]}},"Separator":{"recipeProps":[],"root":{"part":"root","component":"Box","$a11y":{"role":"separator"},"style":{"alignSelf":"stretch","flexShrink":0,"width":{"$map":{"from":"props.orientation","cases":{"vertical":1},"default":"auto"}},"height":{"$map":{"from":"props.orientation","cases":{"vertical":"auto"},"default":1}}}}},"Section":{"recipeProps":["tint","tree","open","collapsible"],"root":{"part":"root","component":"Box","style":{"display":"flex","flexDirection":"column","gap":"$spacing.sm"},"children":[{"part":"header","component":"Box","$if":["props.title",{"$not":"props.collapsible"}],"$a11y":{"role":"heading","level":3},"style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.sm","height":"$control.row","paddingHorizontal":"$spacing.md","borderRadius":"$radius.md"},"children":[{"part":"chevron","component":"Icon","$if":"props.collapsible","props":{"name":"ui-chevron-right","size":"sm","tone":"neutral"}},"$slot:leading",{"part":"icon","component":"Icon","$if":"props.icon","props":{"name":"{props.icon}","size":"sm"}},{"part":"title","component":"Text","props":{"text":"{props.title}","variant":"label","lines":1},"style":{"flexShrink":1,"minWidth":0}},{"part":"caption","component":"Text","$if":"props.caption","props":{"text":"{props.caption}","variant":"muted","lines":1},"style":{"flexShrink":1,"minWidth":0}},{"part":"loading","component":"Spinner","$if":"props.loading","props":{"size":"xs","label":"$string.loading"}},{"part":"count","component":"Text","$if":"props.count","props":{"text":{"$text":"props.count"},"variant":"muted"}},{"part":"spacer","component":"Box","style":{"flexGrow":1,"minWidth":0}},"$slot:trailing"]},{"part":"header","component":"Box","$if":["props.title","props.collapsible"],"$a11y":{"role":"button","expanded":"{props.open|true}"},"props":{"pressable":true},"style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.sm","height":"$control.row","paddingHorizontal":"$spacing.md","borderRadius":"$radius.md"},"$on":{"press":"change"},"$context":{"open":{"$not":"props.open|true"}},"$set":{"press":{"prop":"open","value":{"$not":"props.open|true"}}},"children":[{"part":"chevron","component":"Icon","$if":"props.collapsible","props":{"name":"ui-chevron-right","size":"sm","tone":"neutral"}},"$slot:leading",{"part":"icon","component":"Icon","$if":"props.icon","props":{"name":"{props.icon}","size":"sm"}},{"part":"title","component":"Text","props":{"text":"{props.title}","variant":"label","lines":1},"style":{"flexShrink":1,"minWidth":0}},{"part":"caption","component":"Text","$if":"props.caption","props":{"text":"{props.caption}","variant":"muted","lines":1},"style":{"flexShrink":1,"minWidth":0}},{"part":"loading","component":"Spinner","$if":"props.loading","props":{"size":"xs","label":"$string.loading"}},{"part":"count","component":"Text","$if":"props.count","props":{"text":{"$text":"props.count"},"variant":"muted"}},{"part":"spacer","component":"Box","style":{"flexGrow":1,"minWidth":0}},"$slot:trailing"]},{"part":"body","component":"List","$if":"props.open|true","$a11y":{"role":{"$cond":["props.tree","tree","list"]}},"props":{"divided":true,"gap":"none","style":"{props.style}"},"children":["$children"]}]}},"Group":{"recipeProps":[],"root":{"part":"root","component":"Box","$a11y":{"role":"group","label":"{props.title}","description":"{props.footer}"},"style":{"display":"flex","flexDirection":"column","gap":"$spacing.xs"},"children":[{"part":"title","component":"Text","$if":"props.title","props":{"text":"{props.title}","variant":"label"},"style":{"paddingHorizontal":"$spacing.md"}},{"part":"body","component":"Box","style":{"display":"flex","flexDirection":"column","borderRadius":"$radius.lg","overflow":"hidden"},"children":["$children"]},{"part":"footer","component":"Text","$if":"props.footer","props":{"text":"{props.footer}","variant":"muted"},"style":{"paddingHorizontal":"$spacing.md"}}]}},"Heading":{"recipeProps":["level"],"root":{"part":"root","component":"Text","$a11y":{"role":"heading","level":{"$map":{"from":"props.level","cases":{"h1":1,"h2":2,"h3":3,"h4":4},"default":2}}},"props":{"text":"{props.text}","variant":"title"}}},"Collapsible":{"recipeProps":[],"root":{"part":"root","component":"Box","style":{"display":"flex","flexDirection":"column","gap":"$spacing.xs"},"children":[{"part":"trigger","component":"Box","$a11y":{"role":"button","expanded":"{props.open|false}"},"props":{"pressable":true},"style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.sm","minHeight":"$control.row","paddingHorizontal":"$spacing.sm","borderRadius":"$radius.md"},"$recipe":{"open":"{props.open|false}"},"$on":{"press":"change"},"$context":{"open":"{!props.open}"},"$set":{"press":{"prop":"open","value":"{!props.open}"}},"children":[{"part":"chevron","component":"Icon","props":{"name":"ui-chevron-right","size":"sm","tone":"neutral"},"$recipe":{"open":"{props.open|false}"}},{"part":"title","component":"Text","props":{"text":"{props.title}","variant":"label","lines":1},"style":{"flexGrow":1,"minWidth":0}},{"part":"count","component":"Text","$if":"props.count","props":{"text":{"$text":"props.count"},"variant":"muted"}}]},{"part":"body","component":"Box","$if":"props.open","style":{"display":"flex","flexDirection":"column","gap":"$spacing.md","paddingHorizontal":"$spacing.sm"},"children":["$children"]}]}},"Trace":{"recipeProps":["size"],"root":{"part":"root","component":"Box","style":{"display":"flex","flexDirection":"column","gap":{"$map":{"from":"props.size","cases":{"sm":6},"default":8}},"minWidth":0},"children":["$children"]}},"TraceItem":{"recipeProps":["status","size","collapsible","open"],"root":{"part":"root","component":"Box","style":{"display":"flex","flexDirection":"column","minWidth":0},"children":[{"part":"line","component":"Box","$if":{"$not":"props.collapsible"},"style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":{"$map":{"from":"props.size","cases":{"sm":6},"default":8}},"minHeight":{"$map":{"from":"props.size","cases":{"sm":18},"default":20}},"alignSelf":"flex-start","maxWidth":"100%","minWidth":0,"borderRadius":"$radius.md"},"children":[{"part":"icon","component":"Icon","$if":"props.icon","props":{"name":"{props.icon}","size":"sm"},"style":{"width":{"$map":{"from":"props.size","cases":{"sm":14},"default":16}},"height":{"$map":{"from":"props.size","cases":{"sm":14},"default":16}},"flexShrink":0}},{"part":"title","component":"Text","props":{"text":"{props.title}","lines":1,"shimmer":{"$eq":["{props.status}","running"]}},"style":{"flexShrink":1,"minWidth":0,"fontSize":{"$map":{"from":"props.size","cases":{"sm":12},"default":14}},"lineHeight":{"$map":{"from":"props.size","cases":{"sm":18},"default":20}}}},{"part":"description","component":"Text","$if":"props.description","props":{"text":"{props.description}","lines":1},"style":{"flexShrink":0,"fontSize":{"$map":{"from":"props.size","cases":{"sm":12},"default":14}},"lineHeight":{"$map":{"from":"props.size","cases":{"sm":18},"default":20}}}}]},{"part":"line","component":"Box","$if":"props.collapsible","$a11y":{"role":"button","expanded":"{props.open|false}"},"props":{"pressable":true},"style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":{"$map":{"from":"props.size","cases":{"sm":6},"default":8}},"minHeight":{"$map":{"from":"props.size","cases":{"sm":18},"default":20}},"alignSelf":"flex-start","maxWidth":"100%","minWidth":0,"borderRadius":"$radius.md"},"$on":{"press":"change"},"$context":{"open":"{!props.open}"},"$set":{"press":{"prop":"open","value":"{!props.open}"}},"children":[{"part":"icon","component":"Icon","$if":"props.icon","props":{"name":"{props.icon}","size":"sm"},"style":{"width":{"$map":{"from":"props.size","cases":{"sm":14},"default":16}},"height":{"$map":{"from":"props.size","cases":{"sm":14},"default":16}},"flexShrink":0}},{"part":"title","component":"Text","props":{"text":"{props.title}","lines":1,"shimmer":{"$eq":["{props.status}","running"]}},"style":{"flexShrink":1,"minWidth":0,"fontSize":{"$map":{"from":"props.size","cases":{"sm":12},"default":14}},"lineHeight":{"$map":{"from":"props.size","cases":{"sm":18},"default":20}}}},{"part":"description","component":"Text","$if":"props.description","props":{"text":"{props.description}","lines":1},"style":{"flexShrink":0,"fontSize":{"$map":{"from":"props.size","cases":{"sm":12},"default":14}},"lineHeight":{"$map":{"from":"props.size","cases":{"sm":18},"default":20}}}},{"part":"chevron","component":"Icon","props":{"name":"trace-chevron","size":"sm"},"$recipe":{"open":"{props.open|false}"},"style":{"width":{"$map":{"from":"props.size","cases":{"sm":14},"default":16}},"height":{"$map":{"from":"props.size","cases":{"sm":14},"default":16}},"flexShrink":0,"marginLeft":{"$map":{"from":"props.size","cases":{"sm":-2},"default":-4}}}}]},{"part":"content","component":"Box","$if":["props.collapsible","props.open"],"style":{"display":"flex","flexDirection":"column","gap":{"$map":{"from":"props.size","cases":{"sm":6},"default":8}},"minWidth":0,"marginTop":{"$map":{"from":"props.size","cases":{"sm":6},"default":8}},"marginBottom":{"$map":{"from":"props.size","cases":{"sm":4},"default":4}},"marginLeft":{"$map":{"from":"props.size","cases":{"sm":6},"default":7}},"borderLeftWidth":1,"paddingLeft":{"$map":{"from":"props.size","cases":{"sm":13},"default":16}},"paddingRight":{"$map":{"from":"props.size","cases":{"sm":4},"default":4}}},"children":["$children"]}]}},"Pagination":{"recipeProps":[],"root":{"part":"root","component":"Box","$a11y":{"role":"navigation","label":"$string.pagination"},"style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.sm"},"children":[{"part":"prev","component":"Button","props":{"icon":"ui-chevron-left","variant":"outline","size":"icon","label":"$string.previous","disabled":{"$not":{"$lt":[1,"{props.page|1}"]}}},"$on":{"press":"change"},"$context":{"page":{"$clamp":[{"$add":["{props.page|1}",-1]},1,"{props.totalPages}"]}},"$set":{"press":{"prop":"page","value":{"$clamp":[{"$add":["{props.page|1}",-1]},1,"{props.totalPages}"]}}}},{"part":"label","component":"Text","props":{"text":"{props.page|1} / {props.totalPages}","variant":"muted"},"$a11y":{"role":"status","label":{"$fill":["$string.pageOf",{"page":"{props.page|1}","total":"{props.totalPages}"}]}}},{"part":"next","component":"Button","props":{"icon":"ui-chevron-right","variant":"outline","size":"icon","label":"$string.next","disabled":{"$not":{"$lt":["{props.page|1}","{props.totalPages}"]}}},"$on":{"press":"change"},"$context":{"page":{"$clamp":[{"$add":["{props.page|1}",1]},1,"{props.totalPages}"]}},"$set":{"press":{"prop":"page","value":{"$clamp":[{"$add":["{props.page|1}",1]},1,"{props.totalPages}"]}}}}]}},"Badge":{"recipeProps":["variant"],"root":{"part":"root","component":"Box","style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.xxs","height":"$control.badge","paddingHorizontal":"$spacing.sm","borderRadius":"$radius.full","alignSelf":"flex-start"},"children":[{"part":"icon","component":"Icon","$if":"props.icon","props":{"name":"{props.icon}","size":"sm"}},{"part":"label","component":"Text","props":{"text":"{props.text}","variant":"caption","lines":1}}]}},"Alert":{"recipeProps":["type"],"root":{"part":"root","component":"Box","$a11y":{"role":{"$map":{"from":"props.type","cases":{"warning":"alert","error":"alert"},"default":"status"}}},"style":{"display":"flex","flexDirection":"row","alignItems":"flex-start","gap":"$spacing.sm","padding":"$spacing.md","borderRadius":"$radius.lg"},"children":[{"part":"icon","component":"Icon","props":{"name":{"$map":{"from":"props.type","cases":{"success":"ui-success","warning":"ui-warning","error":"ui-error"},"default":"ui-info"}},"size":"sm","tone":{"$map":{"from":"props.type","cases":{"success":"success","warning":"warning","error":"danger"},"default":"info"}}}},{"part":"body","component":"Box","style":{"display":"flex","flexDirection":"column","gap":"$spacing.xxs","flexGrow":1,"minWidth":0},"children":[{"part":"title","component":"Text","props":{"text":"{props.title}","variant":"label"}},{"part":"message","component":"Text","$if":"props.message","props":{"text":"{props.message}","variant":"muted"}}]}]}},"Chip":{"recipeProps":["shape","selected","tone"],"root":{"part":"root","component":"Box","$a11y":{"role":{"$cond":["props.pressable","button","none"]},"pressed":{"$cond":["props.pressable","{props.selected|false}"]}},"props":{"pressable":"{props.pressable|false}"},"style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.xs","paddingHorizontal":"$spacing.sm","alignSelf":"flex-start","height":{"$map":{"from":"props.shape","cases":{"rect":"$control.chip"},"default":"$control.pill"}},"borderRadius":{"$map":{"from":"props.shape","cases":{"rect":"$radius.md"},"default":"$radius.full"}}},"children":["$slot:leading",{"part":"dot","component":"Box","$if":"props.dot","style":{"width":8,"height":8,"borderRadius":"$radius.full","backgroundColor":"{props.dot}","flexShrink":0}},{"part":"image","component":"Image","$if":"props.image","props":{"src":"{props.image}","alt":"{props.label}","width":16,"height":16,"fit":"cover"},"style":{"borderRadius":"$radius.full"}},{"part":"icon","component":"Icon","$if":["props.icon","!props.image"],"props":{"name":"{props.icon}","size":"sm"}},{"part":"label","component":"Text","props":{"text":"{props.label}","variant":"caption","lines":1}},{"part":"detail","component":"Text","$if":"props.detail","props":{"text":"{props.detail}","variant":"muted","lines":1}},{"part":"remove","component":"Button","$if":"props.removable","props":{"icon":"ui-close","variant":"ghost","size":"icon","label":"$string.remove"},"$on":{"press":"remove"}}]}},"EmptyState":{"recipeProps":["size"],"root":{"part":"root","component":"Box","$a11y":{"role":"status"},"style":{"display":"flex","flexDirection":"column","alignItems":"center","gap":{"$map":{"from":"props.size","cases":{"list":"$spacing.xs"},"default":"$spacing.md"}},"paddingVertical":{"$map":{"from":"props.size","cases":{"list":"$spacing.xl"},"default":"$spacing.xl3"}},"paddingHorizontal":{"$map":{"from":"props.size","cases":{"list":"$spacing.md"},"default":"$spacing.xl"}}},"children":[{"part":"disc","component":"Box","$if":{"$not":{"$eq":["{props.size|page}","list"]}},"style":{"display":"flex","alignItems":"center","justifyContent":"center","width":48,"height":48,"borderRadius":"$radius.full","flexShrink":0},"children":[{"part":"icon","component":"Icon","props":{"name":"{props.icon}","size":"lg","tone":"neutral"}}]},{"part":"icon","component":"Icon","$if":{"$eq":["{props.size|page}","list"]},"props":{"name":"{props.icon}","size":"default","tone":"neutral"}},{"part":"title","component":"Text","props":{"text":"{props.title}","variant":{"$map":{"from":"props.size","cases":{"list":"muted"},"default":"title"}},"align":"center"}},{"part":"description","component":"Text","$if":["props.description",{"$not":{"$eq":["{props.size|page}","list"]}}],"props":{"text":"{props.description}","variant":"muted","align":"center"}},{"part":"action","component":"Button","$if":["props.actionLabel",{"$not":{"$eq":["{props.size|page}","list"]}}],"props":{"label":"{props.actionLabel}","variant":"outline"},"$on":{"press":"press"}}]}},"Progress":{"recipeProps":["tone"],"root":{"part":"root","component":"Box","$a11y":{"role":"progressbar","label":"{props.label}","valueNow":"{props.value}","valueMin":0,"valueMax":"{props.max|100}"},"style":{"display":"flex","flexDirection":"column","gap":"$spacing.xs","width":"100%"},"children":[{"part":"label","component":"Text","$if":"props.label","props":{"text":"{props.label}","variant":"caption"}},{"part":"track","component":"Box","style":{"height":"$control.progress","borderRadius":"$radius.full","overflow":"hidden","width":"100%"},"children":[{"part":"fill","component":"Box","style":{"height":"100%","width":{"$percent":["{props.value}","{props.max|100}"]},"borderRadius":"$radius.full"}}]}]}},"Meter":{"recipeProps":[],"root":{"part":"root","component":"Box","$a11y":{"role":"meter","label":"{props.label}"},"style":{"display":"flex","flexDirection":"column","gap":"$spacing.xs","width":"100%"},"children":[{"part":"header","component":"Box","$any":["props.label","props.value"],"style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.sm"},"children":[{"part":"label","component":"Text","$if":"props.label","props":{"text":"{props.label}","variant":"caption"},"style":{"flexGrow":1,"minWidth":0}},{"part":"value","component":"Text","$if":"props.value","props":{"text":"{props.value}","variant":"muted"}}]},{"part":"track","component":"Box","style":{"display":"flex","flexDirection":"row","height":"$control.meter","borderRadius":"$radius.full","overflow":"hidden","width":"100%"},"children":[{"part":"segment","component":"Box","$each":"props.segments","$as":"item","style":{"height":"100%","width":{"$percent":["{item.value}","{props.max|100}"]}},"$recipe":{"tone":"{item.tone|neutral}"}}]}]}},"Row":{"recipeProps":["selected","density","surface","depth"],"root":{"part":"root","component":"Box","$a11y":{"role":{"$cond":["props.pressable","button","none"]},"selected":{"$cond":["props.pressable","{props.selected|false}"]}},"props":{"pressable":"{props.pressable|false}"},"style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.sm","minHeight":{"$map":{"from":"props.density","cases":{"compact":"$control.rowCompact"},"default":"$control.row"}},"paddingHorizontal":"$spacing.md","borderRadius":{"$map":{"from":"props.surface","cases":{"card":"$radius.lg"},"default":"$radius.md"}}},"children":[{"part":"guides","component":"TreeGuides","$if":{"$lt":[0,"{props.depth|0}"]},"props":{"depth":"{props.depth}"}},"$slot:leading",{"part":"icon","component":"Icon","$if":"props.icon","props":{"name":"{props.icon}","size":"sm"}},{"part":"identifier","component":"Text","$if":"props.identifier","props":{"text":"{props.identifier}","variant":"code","lines":1},"style":{"flexShrink":0}},{"part":"body","component":"Box","style":{"display":"flex","flexDirection":"column","gap":"$spacing.xxs","flexGrow":1,"minWidth":0,"paddingVertical":{"$map":{"from":"props.surface","cases":{"card":"$spacing.md"},"default":"$spacing.xs"}}},"children":[{"part":"title","component":"Text","props":{"text":"{props.title}","variant":"body","lines":1}},{"part":"subtitle","component":"Text","$if":"props.subtitle","props":{"text":"{props.subtitle}","variant":"muted","lines":1}}]},{"part":"meta","component":"Text","$if":"props.meta","props":{"text":"{props.meta}","variant":"muted","lines":1}},{"part":"value","component":"Text","$any":["props.value","props.placeholder"],"props":{"text":{"$coalesce":["{props.value}","{props.placeholder}"]},"variant":{"$cond":["props.value","body","muted"]},"lines":1,"align":"end"}},"$slot:trailing",{"part":"chevron","component":"Icon","$if":{"$not":{"$eq":["{props.chevron|none}","none"]}},"props":{"name":{"$map":{"from":"props.chevron","cases":{"selector":"ui-selector"},"default":"ui-chevron-right"}},"size":"sm","tone":"neutral"}}]}},"ScrollArea":{"recipeProps":[],"root":{"part":"root","component":"Box","$a11y":{"role":"region"},"style":{"display":"flex","flexDirection":{"$map":{"from":"props.direction","cases":{"horizontal":"row"},"default":"column"}},"overflowX":{"$map":{"from":"props.direction","cases":{"horizontal":"auto","both":"auto"},"default":"hidden"}},"overflowY":{"$map":{"from":"props.direction","cases":{"vertical":"auto","both":"auto"},"default":"hidden"}},"minWidth":0,"minHeight":0,"maxHeight":"{props.maxHeight}"},"children":["$children"]}},"Sidebar":{"recipeProps":["side"],"root":{"part":"root","component":"Box","style":{"display":"flex","flexDirection":{"$map":{"from":"props.side","cases":{"right":"row-reverse"},"default":"row"}},"alignItems":"stretch","width":"100%","minHeight":0},"children":[{"part":"sidebar","component":"Box","$if":"!props.collapsed","$a11y":{"role":"navigation"},"style":{"display":"flex","flexDirection":"column","width":"{props.width|240}","flexShrink":0,"minHeight":0,"@media (max-width: $breakpoint.{props.collapseBelow|md})":{"$cond":[{"$not":{"$eq":["{props.collapseBelow|md}","never"]}},{"display":"none"}]}},"children":["$slot:sidebar"]},{"part":"main","component":"Box","$a11y":{"role":"main"},"style":{"display":"flex","flexDirection":"column","flexGrow":1,"minWidth":0,"minHeight":0},"children":["$children"]}]}},"AppBar":{"recipeProps":[],"root":{"part":"root","component":"Box","$a11y":{"role":"banner"},"style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.sm","height":"$control.appBar","paddingHorizontal":"$spacing.md","width":"100%"},"children":[{"part":"back","component":"Button","$if":"props.back","props":{"icon":"ui-back","variant":"ghost","size":"icon","label":"$string.back"},"$on":{"press":"back"}},"$slot:leading",{"part":"body","component":"Box","style":{"display":"flex","flexDirection":"column","flexGrow":1,"minWidth":0},"children":[{"part":"title","component":"Text","props":{"text":"{props.title}","variant":"title","lines":1},"$a11y":{"role":"heading","level":1}},{"part":"subtitle","component":"Text","$if":"props.subtitle","props":{"text":"{props.subtitle}","variant":"muted","lines":1}}]},"$slot:trailing"]}},"Kbd":{"recipeProps":[],"root":{"part":"root","component":"Box","style":{"display":"flex","flexDirection":"row","alignItems":"center","height":"$control.badge","paddingHorizontal":"$spacing.xs","borderRadius":"$radius.sm","alignSelf":"flex-start"},"children":[{"part":"label","component":"Text","props":{"text":"{props.keys}","variant":"code","lines":1}}]}},"Label":{"recipeProps":["required"],"root":{"part":"root","component":"Box","style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.xxs"},"children":[{"part":"text","component":"Text","props":{"text":"{props.text}","variant":"label"}},{"part":"mark","component":"Text","$if":"props.required","props":{"text":"*","variant":"label","tone":"danger"}}]}},"Breadcrumb":{"recipeProps":[],"root":{"part":"root","component":"Box","$a11y":{"role":"navigation","label":"$string.breadcrumb"},"style":{"display":"flex","flexDirection":"row","alignItems":"center","flexWrap":"wrap","gap":"$spacing.xs"},"children":[{"part":"item","component":"Box","$each":"props.items","$as":"item","style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.xs"},"$recipe":{"current":{"$eq":["{index}",{"$sub":["{len(props.items)}",1]}]}},"children":[{"part":"separator","component":"Icon","$if":{"$lt":[0,"{index}"]},"props":{"name":"ui-chevron-right","size":"sm","tone":"neutral"},"$a11y":{"hidden":true}},{"part":"link","component":"Button","$if":{"$not":{"$eq":["{index}",{"$sub":["{len(props.items)}",1]}]}},"props":{"label":"{item.label}","icon":"{item.icon}","variant":"link","size":"sm"},"$on":{"press":"select"},"$context":{"value":"{item.value}"}},{"part":"current","component":"Text","$if":{"$eq":["{index}",{"$sub":["{len(props.items)}",1]}]},"props":{"text":"{item.label}","variant":"label","lines":1},"$a11y":{"current":"page"}}]}]}},"Stepper":{"recipeProps":["orientation"],"root":{"part":"root","component":"Box","$a11y":{"role":"list"},"style":{"display":"flex","flexDirection":{"$map":{"from":"props.orientation","cases":{"vertical":"column"},"default":"row"}},"alignItems":{"$map":{"from":"props.orientation","cases":{"vertical":"stretch"},"default":"flex-start"}},"gap":"$spacing.md","width":"100%"},"children":[{"part":"step","component":"Box","$each":"props.steps","$as":"step","style":{"display":"flex","flexDirection":{"$map":{"from":"props.orientation","cases":{"vertical":"row"},"default":"column"}},"alignItems":{"$map":{"from":"props.orientation","cases":{"vertical":"flex-start"},"default":"center"}},"gap":"$spacing.xs","flexGrow":1,"flexBasis":0,"minWidth":0},"$recipe":{"status":{"$cond":[{"$lt":["{index}","{props.current|0}"]},"done",{"$cond":[{"$eq":["{index}","{props.current|0}"]},"current","upcoming"]}]}},"$a11y":{"role":"listitem","current":{"$cond":[{"$eq":["{index}","{props.current|0}"]},"step",false]},"label":{"$fill":[{"$cond":[{"$lt":["{index}","{props.current|0}"]},"$string.stepDone",{"$cond":[{"$eq":["{index}","{props.current|0}"]},"$string.stepCurrent","$string.stepUpcoming"]}]},{"step":{"$add":["{index}",1]},"total":"{len(props.steps)}","label":"{step.label}"}]}},"children":[{"part":"marker","component":"Box","$a11y":{"hidden":true},"style":{"display":"flex","alignItems":"center","justifyContent":"center","width":"$control.iconLg","height":"$control.iconLg","borderRadius":"$radius.full","flexShrink":0},"$recipe":{"status":{"$cond":[{"$lt":["{index}","{props.current|0}"]},"done",{"$cond":[{"$eq":["{index}","{props.current|0}"]},"current","upcoming"]}]}},"children":[{"part":"check","component":"Icon","$if":{"$lt":["{index}","{props.current|0}"]},"props":{"name":"ui-check","size":"sm"}},{"part":"number","component":"Text","$if":{"$not":{"$lt":["{index}","{props.current|0}"]}},"props":{"text":{"$text":{"$add":["{index}",1]}},"variant":"caption"},"$recipe":{"status":{"$cond":[{"$eq":["{index}","{props.current|0}"]},"current","upcoming"]}}}]},{"part":"body","component":"Box","style":{"display":"flex","flexDirection":"column","gap":"$spacing.xxs","minWidth":0},"children":[{"part":"label","component":"Text","props":{"text":"{step.label}","variant":"label","lines":1},"$recipe":{"status":{"$cond":[{"$lt":["{index}","{props.current|0}"]},"done",{"$cond":[{"$eq":["{index}","{props.current|0}"]},"current","upcoming"]}]}}},{"part":"description","component":"Text","$if":"step.description","props":{"text":"{step.description}","variant":"muted","lines":2}}]}]}]}},"Rating":{"recipeProps":["size","readOnly"],"root":{"part":"root","component":"Box","$a11y":{"role":{"$cond":["props.readOnly","img","group"]},"label":{"$cond":["props.readOnly",{"$fill":["$string.ratingValue",{"value":"{props.value|0}","max":"{props.max|5}"}]}]}},"style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.xxs","alignSelf":"flex-start"},"children":[{"part":"star","component":"Box","$each":"range(props.max|5)","$as":"star","props":{"pressable":{"$not":"props.readOnly"}},"style":{"display":"flex","alignItems":"center","justifyContent":"center"},"$recipe":{"filled":{"$lt":["{index}","{props.value|0}"]}},"$a11y":{"role":{"$cond":["props.readOnly","hidden","button"]},"label":{"$fill":["$string.ratingStar",{"value":{"$add":["{index}",1]},"max":"{props.max|5}"}]},"pressed":{"$eq":[{"$add":["{index}",1]},"{props.value|0}"]}},"$on":{"press":"change"},"$context":{"value":{"$add":["{index}",1]}},"$set":{"press":{"prop":"value","value":{"$add":["{index}",1]}}},"children":[{"part":"icon","component":"Icon","props":{"name":"star","size":"{props.size|default}"},"$recipe":{"filled":{"$lt":["{index}","{props.value|0}"]}}}]}]}},"AlertDialog":{"recipeProps":["destructive"],"root":{"part":"root","component":"Dialog","$a11y":{"role":"alertdialog"},"props":{"title":"{props.title}","description":"{props.description}","open":"{props.open|false}","dismissible":false},"slots":{"trigger":"$slot:trigger","footer":{"part":"footer","component":"Box","style":{"display":"flex","flexDirection":"row","justifyContent":"flex-end","flexWrap":"wrap","gap":"$spacing.sm"},"children":[{"part":"cancel","component":"Button","props":{"label":"{props.cancelLabel|$string.cancel}","variant":"outline"},"$a11y":{"autoFocus":true},"$on":{"press":"cancel"},"$set":{"press":{"prop":"open","value":false}}},{"part":"confirm","component":"Button","props":{"label":"{props.confirmLabel|$string.confirm}","variant":{"$cond":["props.destructive","destructive","default"]}},"$on":{"press":"confirm"},"$set":{"press":{"prop":"open","value":false}}}]}},"$on":{"change":"change"},"children":["$children"]}},"DockCard":{"recipeProps":["tone"],"root":{"part":"root","component":"Box","style":{"display":"flex","flexDirection":"column"},"children":[{"part":"trigger","component":"Box","$a11y":{"role":"button","label":"{props.label}: {props.title}"},"props":{"pressable":true},"style":{"display":"flex","flexDirection":"row","alignItems":"flex-start","gap":"$spacing.sm","padding":"$spacing.md","borderRadius":"$radius.xl"},"$on":{"press":"press"},"$set":{"press":{"prop":"open","value":true}},"children":[{"part":"icon","component":"Icon","$if":"props.icon","props":{"name":"{props.icon}","size":"sm","tone":"{props.tone|neutral}"},"style":{"flexShrink":0}},{"part":"body","component":"Box","style":{"display":"flex","flexDirection":"column","gap":"$spacing.xxs","flexGrow":1,"minWidth":0},"children":[{"part":"header","component":"Box","style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.sm"},"children":[{"part":"label","component":"Text","props":{"text":"{props.label}","variant":"caption","tone":"{props.tone|neutral}","lines":1}},{"part":"caption","component":"Text","$if":"props.caption","props":{"text":"{props.caption}","variant":"muted","lines":1},"style":{"flexShrink":1,"minWidth":0}},{"part":"spacer","component":"Box","style":{"flexGrow":1,"minWidth":0}},{"part":"meta","component":"Text","$if":"props.meta","props":{"text":"{props.meta}","variant":"muted","lines":1}}]},{"part":"row","component":"Box","style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.sm"},"children":[{"part":"title","component":"Text","props":{"text":"{props.title}","lines":1},"style":{"flexGrow":1,"minWidth":0}},{"part":"chevron","component":"Icon","props":{"name":"ui-chevron-right","size":"sm","tone":"neutral"}}]}]}]},{"part":"sheet","component":"Drawer","props":{"title":"{props.label}","description":"{props.caption}","open":"{props.open|false}","side":"bottom"},"slots":{"footer":"$slot:footer"},"$on":{"change":"change"},"children":["$children"]}]}},"Sparkline":{"recipeProps":["tone"],"root":{"part":"root","component":"Chart","props":{"kind":"sparkline","series":[{"name":"","values":"{props.values}","tone":"{props.tone|primary}"}],"height":"{props.height|24}","showAxes":false,"showGrid":false,"showLegend":false},"style":{"width":"100%"}}},"Page":{"recipeProps":[],"root":{"part":"root","component":"Box","style":{"display":"flex","flexDirection":"column","flexGrow":1,"minHeight":0,"width":"100%"},"children":[{"part":"header","component":"AppBar","props":{"title":"{props.title}","subtitle":"{props.subtitle}","back":"{props.back|false}"},"slots":{"leading":"$slot:leading","trailing":"$slot:trailing"},"$on":{"back":"back"}},{"part":"body","component":"Box","$a11y":{"role":"main"},"style":{"display":"flex","flexDirection":"column","flexGrow":1,"minHeight":0,"overflowY":"auto","gap":"$spacing.lg","padding":{"$map":{"from":"props.padded","cases":{"false":"$spacing.none"},"default":"$spacing.lg"}}},"children":["$children"]}]}},"Toolbar":{"recipeProps":[],"root":{"part":"root","component":"Box","$a11y":{"role":"group"},"style":{"display":"flex","flexDirection":"row","flexWrap":"wrap","alignItems":"flex-end","gap":"$spacing.{props.gap|sm}","width":"100%"},"children":["$children",{"part":"spacer","component":"Box","style":{"flexGrow":1,"minWidth":0}},"$slot:trailing"]}},"SplitView":{"recipeProps":[],"root":{"part":"root","component":"Box","style":{"display":"flex","flexDirection":"row","alignItems":"stretch","width":"100%","flexGrow":1,"minHeight":0},"children":[{"part":"list","component":"Box","$a11y":{"role":"navigation"},"style":{"display":"flex","flexDirection":"column","width":"{props.width|320}","flexShrink":0,"minHeight":0,"overflowY":"auto","@media (max-width: $breakpoint.md)":{"width":"100%","flexShrink":1,"display":{"$cond":["props.open","none","flex"]}}},"children":["$slot:list"]},{"part":"divider","component":"Separator","props":{"orientation":"vertical"},"style":{"@media (max-width: $breakpoint.md)":{"display":"none"}}},{"part":"detail","component":"Box","$a11y":{"role":"main"},"style":{"display":"flex","flexDirection":"column","flexGrow":1,"minWidth":0,"minHeight":0,"@media (max-width: $breakpoint.md)":{"display":{"$cond":["props.open","flex","none"]}}},"children":[{"part":"backBar","component":"Box","style":{"display":"none","flexDirection":"row","alignItems":"center","height":"$control.appBar","paddingHorizontal":"$spacing.sm","@media (max-width: $breakpoint.md)":{"display":"flex"}},"children":[{"part":"back","component":"Button","props":{"icon":"ui-back","variant":"ghost","size":"icon","label":"$string.back"},"$on":{"press":"back"},"$set":{"press":{"prop":"open","value":false}}}]},"$children"]}]}},"FieldGroup":{"recipeProps":[],"root":{"part":"root","component":"Box","$a11y":{"role":"group"},"style":{"display":"grid","gridTemplateColumns":"repeat(1, minmax(0, 1fr))","gap":"$spacing.md","alignItems":"start","@media (min-width: $breakpoint.md)":{"gridTemplateColumns":"repeat({props.columns|2}, minmax(0, 1fr))"}},"children":["$children"]}},"FormActions":{"recipeProps":[],"root":{"part":"root","component":"Box","$a11y":{"role":"group"},"style":{"display":"flex","flexDirection":"row","flexWrap":"wrap","justifyContent":"flex-end","alignItems":"center","gap":"$spacing.sm","width":"100%"},"children":["$children",{"part":"cancel","component":"Button","$if":"props.cancel","props":{"label":"$string.cancel","variant":"outline"},"$on":{"press":"cancel"}},{"part":"submit","component":"Button","props":{"label":"{props.submit}","variant":{"$cond":["props.destructive","destructive","default"]},"submit":true}}]}},"StatTile":{"recipeProps":[],"root":{"part":"root","component":"Box","$a11y":{"role":"group","label":"{props.label}"},"style":{"display":"flex","flexDirection":"column","minWidth":0},"children":[{"part":"card","component":"Card","children":[{"part":"header","component":"Box","style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.sm"},"children":[{"part":"label","component":"Text","props":{"text":"{props.label}","variant":"muted","lines":1},"style":{"flexGrow":1,"flexShrink":1,"minWidth":0}},{"part":"delta","component":"Text","$if":"props.delta","props":{"text":"{props.delta}","variant":"caption","tone":"{props.tone|neutral}"}}]},{"part":"value","component":"Text","props":{"text":"{props.value}","variant":"title","lines":1}},{"part":"trend","component":"Sparkline","$if":"props.trend","props":{"values":"{props.trend}","height":32}}]}]}},"CallSurface":{"recipeProps":["state","muted"],"root":{"part":"root","component":"Box","$a11y":{"role":"group","label":"{props.name}"},"style":{"display":"flex","flexDirection":"column","alignItems":"center","width":"100%","height":"100%","minHeight":0,"paddingHorizontal":"$spacing.xl","paddingTop":"$spacing.xl3","paddingBottom":"$spacing.xl3"},"children":[{"part":"head","component":"Box","style":{"display":"flex","flexDirection":"column","alignItems":"center","width":"100%","maxWidth":384,"minWidth":0},"children":[{"part":"wave","component":"VoiceWave","props":{"activity":{"$cond":["props.muted","muted",{"$map":{"from":"props.state","cases":{"ringing":"thinking","connecting":"thinking","ended":"idle"},"default":"{props.activity|speaking}"}}]},"level":"{props.level}","bands":"{props.bands}","size":"xl"},"$a11y":{"hidden":true},"children":[{"part":"avatar","component":"Avatar","props":{"name":"{props.name}","src":"{props.avatar}","size":"lg"}}]},{"part":"name","component":"Text","$a11y":{"role":"heading","level":2},"props":{"text":"{props.name}","variant":"title","align":"center","lines":1},"style":{"marginTop":"$spacing.sm","maxWidth":"100%"}},{"part":"status","component":"Text","$if":"props.status","props":{"text":"{props.status}","variant":"muted","align":"center","lines":1},"style":{"marginTop":"$spacing.xs"}},{"part":"caption","component":"Text","$if":"props.caption","props":{"text":"{props.caption}","align":"center","lines":4,"live":"polite"},"style":{"marginTop":"$spacing.xl2","maxWidth":"100%"}}]},{"part":"spacer","component":"Box","style":{"flexGrow":1,"minHeight":"$spacing.xl"}},{"part":"controls","component":"Box","style":{"display":"flex","flexDirection":"row","justifyContent":"center","alignItems":"flex-start","gap":32},"children":[{"part":"muteTip","component":"Tooltip","$if":{"$not":{"$eq":["{props.state|talking}","ringing"]}},"props":{"content":{"$cond":["props.muted","$string.unmute","$string.mute"]}},"children":[{"part":"mute","component":"Button","props":{"variant":"secondary","size":"icon"},"$a11y":{"label":{"$cond":["props.muted","$string.unmute","$string.mute"]}},"style":{"width":56,"height":56,"borderRadius":"$radius.full","flexShrink":0},"$on":{"press":"mute"},"$context":{"muted":"{!props.muted}"},"$set":{"press":{"prop":"muted","value":"{!props.muted}"}},"children":[{"part":"muteIcon","component":"Icon","props":{"name":{"$cond":["props.muted","call-unmute","call-mute"]},"size":"lg"}}]}]},{"part":"speakerTip","component":"Tooltip","$if":[{"$not":{"$eq":["{props.state|talking}","ringing"]}},{"$not":{"$eq":["{props.speaker|none}","none"]}}],"props":{"content":{"$cond":["props.speaker","$string.speaker","$string.speakerOff"]}},"children":[{"part":"speaker","component":"Button","props":{"variant":"secondary","size":"icon"},"$a11y":{"label":{"$cond":["props.speaker","$string.speaker","$string.speakerOff"]}},"style":{"width":56,"height":56,"borderRadius":"$radius.full","flexShrink":0},"$on":{"press":"speaker"},"$context":{"speaker":"{!props.speaker}"},"$set":{"press":{"prop":"speaker","value":"{!props.speaker}"}},"children":[{"part":"speakerIcon","component":"Icon","props":{"name":{"$cond":["props.speaker","call-speaker","call-speaker-off"]},"size":"lg"}}]}]},{"part":"endTip","component":"Tooltip","$if":{"$not":{"$eq":["{props.state|talking}","ringing"]}},"props":{"content":"$string.endCall"},"children":[{"part":"end","component":"Button","props":{"variant":"destructive","size":"icon"},"$a11y":{"label":"$string.endCall"},"style":{"width":56,"height":56,"borderRadius":"$radius.full","flexShrink":0},"$on":{"press":"hangUp"},"children":[{"part":"endIcon","component":"Icon","props":{"name":"call-end","size":"lg"}}]}]},{"part":"cancel","component":"Box","$if":{"$eq":["{props.state|talking}","ringing"]},"style":{"display":"flex","flexDirection":"column","alignItems":"center","gap":"$spacing.xs"},"children":[{"part":"end","component":"Button","props":{"variant":"destructive","size":"icon"},"$a11y":{"label":"$string.cancel"},"style":{"width":56,"height":56,"borderRadius":"$radius.full","flexShrink":0},"$on":{"press":"hangUp"},"children":[{"part":"endIcon","component":"Icon","props":{"name":"call-end","size":"lg"}}]},{"part":"cancelLabel","component":"Text","props":{"text":"$string.cancel","variant":"caption"},"$a11y":{"hidden":true}}]}]}]}},"MessageBubble":{"recipeProps":["side","status"],"root":{"part":"root","component":"Box","$a11y":{"role":"group","label":{"$coalesce":["{props.author}","{props.time}"]}},"style":{"display":"flex","flexDirection":"column","alignItems":{"$map":{"from":"props.side","cases":{"out":"flex-end"},"default":"flex-start"}},"width":"100%","minWidth":0},"children":[{"part":"bubble","component":"Box","style":{"display":"flex","flexDirection":"column","gap":"$spacing.xxs","maxWidth":"80%","minWidth":0,"paddingHorizontal":"$spacing.md","paddingVertical":"$spacing.sm","borderRadius":"$radius.xl","borderTopLeftRadius":{"$map":{"from":"props.side","cases":{"out":"$radius.xl"},"default":6}}},"children":[{"part":"author","component":"Text","$if":["props.author",{"$not":{"$eq":["{props.side|in}","out"]}}],"props":{"text":"{props.author}","variant":"caption","lines":1}},"$slot:attachment",{"part":"text","component":"Markdown","props":{"text":"{props.text}"}},{"part":"footer","component":"Box","$any":["props.time","props.status"],"style":{"display":"flex","flexDirection":"row","alignItems":"center","justifyContent":"flex-end","alignSelf":"flex-end","gap":"$spacing.xs"},"children":[{"part":"time","component":"Text","$if":"props.time","props":{"text":"{props.time}","variant":"caption","lines":1}},{"part":"status","component":"Icon","$if":["props.status",{"$eq":["{props.side|in}","out"]}],"props":{"name":{"$map":{"from":"props.status","cases":{"sending":"ui-clock","sent":"ui-check","read":"ui-read"},"default":"ui-check"}},"size":"sm","label":{"$map":{"from":"props.status","cases":{"sending":"$string.sending","sent":"$string.sent","read":"$string.read"},"default":"$string.sent"}}},"style":{"width":14,"height":14,"flexShrink":0}}]}]}]}},"Plan":{"recipeProps":["state"],"root":{"part":"root","component":"Box","$a11y":{"role":"group","label":"{props.title}"},"style":{"display":"flex","flexDirection":"column","minWidth":0},"children":[{"part":"card","component":"Card","children":[{"part":"header","component":"Box","style":{"display":"flex","flexDirection":"column","gap":"$spacing.xxs","minWidth":0},"children":[{"part":"title","component":"Heading","props":{"text":"{props.title}","level":"h3"}},{"part":"description","component":"Text","$if":"props.description","props":{"text":"{props.description}","variant":"muted"}}]},{"part":"steps","component":"Trace","$if":"props.steps","children":[{"part":"step","component":"TraceItem","$each":"props.steps","$as":"step","props":{"title":"{step.title}","icon":"{step.icon}","description":"{step.detail}","status":"{step.status}"}}]},{"part":"footer","component":"Box","$if":{"$eq":["{props.state|proposed}","proposed"]},"style":{"display":"flex","flexDirection":"row","alignItems":"center","justifyContent":"flex-end","flexWrap":"wrap","gap":"$spacing.sm"},"children":[{"part":"decline","component":"Button","props":{"label":"{props.declineLabel|$string.no}","variant":"outline"},"$on":{"press":"decline"}},{"part":"approve","component":"Button","props":{"label":"{props.approveLabel|$string.yes}","icon":"ui-check","variant":"default"},"$on":{"press":"approve"}}]},{"part":"running","component":"Box","$if":{"$eq":["{props.state|proposed}","running"]},"style":{"display":"flex","flexDirection":"row","alignItems":"center","gap":"$spacing.md"},"children":[{"part":"progress","component":"Progress","props":{"value":"{props.progress|0}","max":1,"tone":"primary"},"style":{"flexGrow":1,"flexShrink":1,"flexBasis":0,"minWidth":0}},{"part":"stop","component":"Button","props":{"label":"{props.stopLabel|$string.stop}","icon":"ui-stop","variant":"destructive"},"$on":{"press":"stop"}}]}]}]}}}'),Qh={macros:Zh},rt=Eh,Cr=rt.id,_d=rt.liteId,sa=ia.from,aa=ia.version,Ar=rt.unknownComponent,Jh=Qh.macros,Ge=(()=>{const e={};for(const[t,n]of Object.entries(qh))if(!t.startsWith("$"))if(Array.isArray(n))e[t]=n;else for(const[r,o]of Object.entries(n))e[`${t}.${r}`]=o;return e})(),eg=/^\$([a-z][a-zA-Z0-9]*(?:\.[a-z][a-zA-Z0-9]*)*)\.([a-zA-Z0-9]+)$/;function Qt(e){if(typeof e!="string")return null;const t=eg.exec(e);return t?{group:t[1],name:t[2]}:null}function Md(e){const t=Qt(e);return t!==null&&(Ge[t.group]?.includes(t.name)??!1)}function so(e){return Object.assign(Object.create(null),e)}function er(e=[]){const t={components:so(rt.components),enums:so(rt.enums),defs:so(rt.defs),macros:so(Jh)};for(const n of e)Object.assign(t.components,n.components),Object.assign(t.enums,n.enums??{}),Object.assign(t.defs,n.defs??{}),Object.assign(t.macros,n.macros??{});return t}let tg;const fl=new WeakMap;function Wr(e=[]){if(e.length===0)return tg??=er();let t=fl.get(e);return t||fl.set(e,t=er(e)),t}const ng=["Box","Stack","Grid","Card","Separator","List","Resizable","ScrollArea","Sidebar","SplitView","AppBar","Page","Toolbar","Section","Group","Text","Heading","Markdown","CodeBlock","Kbd","Label","Image","Icon","Video","AudioPlayer","Avatar","QrCode","Carousel","Tabs","Segmented","Accordion","Collapsible","Trace","TraceItem","Plan","Pagination","Breadcrumb","Stepper","Dialog","Drawer","DockCard","AlertDialog","Popover","Tooltip","Menu","Toast","Badge","Alert","Chip","EmptyState","Progress","Meter","Ring","Spinner","Skeleton","VoiceWave","CallSurface","Table","Chart","Sparkline","StatTile","Button","Link","Toggle","Form","FieldGroup","FormActions","Input","Textarea","NumberField","Checkbox","Radio","ChoiceTiles","Switch","Slider","Rating","Select","SearchList","ChipInput","DatePicker","DateRangePicker","TimePicker","FileUpload","QrScanner","Composer","Row","MessageBubble","TreeGuides","Unknown"],rg=["a-large-small","action-chat","action-create","action-default","action-repository","action-run","action-suggestion","activity","anchor","app-editor-chat","archive","archive-restore","arrow-down","arrow-down-left","arrow-left","arrow-left-right","arrow-right","arrow-up-right","at-sign","atom","audio-lines","auth-passkey","award","ban","bell","bell-off","bold","book-open","bookmark","bot","boxes","braces","brain","briefcase","brush-cleaning","bug","building","building-2","calculator","calendar","calendar-days","call-end","call-incoming","call-mute","call-speaker","call-speaker-off","call-unmute","camera","car","chart-line","check","check-check","chevron-down","chevron-left","chevron-right","chevron-up","chevrons-up-down","circle","circle-arrow-up","circle-check","circle-dashed","circle-dot","circle-question-mark","circle-slash","circle-stop","circle-user","circle-x","clipboard-list","clock","cloud","code","coding-assistant","coding-command","coding-compact","coding-diff","coding-ended","coding-in-review","coding-needs-input","coding-plan","coding-running","coding-stop","coding-subagent","coding-tool","coffee","compass","computer","copy","corner-down-right","cpu","credit-card","crown","database","download","droplet","dumbbell","ear","editor-bold","editor-clear-formatting","editor-code","editor-emoji","editor-heading-1","editor-heading-2","editor-heading-3","editor-image","editor-issue-ref","editor-italic","editor-link","editor-list","editor-list-ordered","editor-list-todo","editor-mention","editor-quote","editor-strikethrough","editor-text","editor-text-format","editor-unlink","ellipsis","ellipsis-vertical","event-assignee-changed","event-board-moved","event-estimate-changed","event-label-added","event-label-removed","event-priority-changed","event-relation-added","event-relation-removed","event-status-changed","event-title-changed","external-link","eye","eye-off","fast-forward","file","file-diff","file-pen-line","file-text","fingerprint","flag","flame","flask-conical","fold-vertical","folder","folder-kanban","folder-open","gamepad-2","gauge","gem","gift","git-branch","git-merge","git-pull-request","github","globe","graduation-cap","guide-changes","hammer","hand","hard-drive","hash","heading-1","heading-2","heading-3","headphones","heart","heart-off","history","hourglass","house","image","images","inbox","info","italic","key","landmark","laptop","layers","layers-2","layout-grid","leaf","lightbulb","link","link-2","list","list-checks","list-end","list-ordered","list-todo","list-tree","loader-circle","lock","lock-open","log-in","log-out","mail","mail-open","map","map-pin","maximize-2","media-fast-forward","media-rewind","media-skip-next","media-skip-previous","media-volume-down","media-volume-mute","media-volume-off","media-volume-up","megaphone","menu","message-circle","message-square","message-square-plus","message-square-reply","mic","mic-off","microscope","minimize-2","minus","monitor","monitor-off","moon","mountain","move","music","nav-account","nav-actions","nav-admin","nav-apps","nav-boards","nav-changelog","nav-computer","nav-create-issue","nav-devices","nav-drafts","nav-files","nav-getting-started","nav-inbox","nav-issues","nav-my-issues","nav-notifications","nav-rail-collapse","nav-rail-expand","nav-report-bug","nav-search","nav-settings","nav-sign-out","nav-source-control","nav-team-switcher","nav-terminal","nav-threads","newspaper","notification-agent-message","notification-issue-assigned","notification-issue-comment","notification-issue-created","notification-issue-mention","notification-issue-status-changed","notification-mark-read","notification-mute","notification-pr-merged","notification-pr-opened","notification-reporter-reply","notification-session-blocked","os-apple","os-linux","os-windows","package","paintbrush","palette","panel-left-close","panel-left-open","paperclip","pause","pen-tool","pencil","phone","phone-incoming","phone-off","pin","pin-off","plane","play","plug","plus","pr-batch","pr-closed","pr-draft","pr-merged","pr-open","pr-stack","printer","priority-high","priority-low","priority-medium","priority-none","priority-urgent","progress-1-4","progress-1-5","progress-2-4","progress-2-5","progress-3-4","progress-3-5","progress-4-5","puzzle","qr-code","quote","refresh-cw","relation-blocked-by","relation-blocks","relation-duplicate","relation-parent","relation-related","relation-section","relation-sub-issue","remove-formatting","repeat","rewind","rocket","rotate-ccw","run-pause","run-resume","sc-push","scale","scan-line","search","search-x","send","server","session-shell","session-tree","settings","settings-about","settings-account","settings-agents","settings-api","settings-billing","settings-boards","settings-general","settings-import","settings-issues","settings-labels","settings-licenses","settings-local-repos","settings-mcp","settings-members","settings-notifications","settings-rate","settings-repositories","settings-servers","settings-sessions","settings-statuses","settings-storage","settings-sync","settings-tools","settings-voice","settings-widget","share-2","shield","shield-check","shield-question-mark","shopping-bag","shopping-cart","signal-high","signal-low","signal-medium","skip-back","skip-forward","sliders-horizontal","smartphone","smile","sparkles","square","square-check","square-kanban","square-minus","square-pen","square-slash","square-terminal","star","star-half","star-off","status-backlog","status-cancelled","status-done","status-duplicate","status-in-progress","status-in-review","status-todo","stethoscope","store","strikethrough","sun","support-open","support-resolved","tag","target","terminal","thread-stories","tool-script","trace-background","trace-chevron","trace-completed","trace-edit","trace-failed","trace-fetch","trace-read","trace-reasoning","trace-search","trace-subagent","trace-task-done","trace-task-pending","trace-task-running","trace-terminal","trace-todo","trace-tool","trash-2","tree-pine","triangle-alert","trigger-event","trigger-schedule","trophy","truck","type","ui-add","ui-agent-source","ui-archive","ui-arrow-down","ui-arrow-right","ui-assignee","ui-attach","ui-avatar-placeholder","ui-back","ui-branch","ui-check","ui-checklist","ui-chevron-down","ui-chevron-left","ui-chevron-right","ui-chevron-up","ui-clean","ui-clear","ui-clock","ui-close","ui-cloud","ui-copy","ui-delete","ui-delete-account","ui-device","ui-device-default","ui-device-offline","ui-dock-side","ui-docs","ui-download","ui-due-date","ui-edit","ui-empty-search","ui-error","ui-estimate","ui-external-link","ui-favorite-off","ui-file","ui-float","ui-folder","ui-folder-open","ui-fullscreen","ui-fullscreen-exit","ui-github","ui-help","ui-hide","ui-history","ui-hold","ui-icon-placeholder","ui-indeterminate","ui-info","ui-invite","ui-issue","ui-link","ui-loading","ui-mail","ui-mark-read","ui-mark-unread","ui-mcp","ui-member","ui-menu","ui-minus","ui-more","ui-more-vertical","ui-offline","ui-organization","ui-owner","ui-permission","ui-pin","ui-print","ui-private","ui-properties","ui-qr-code","ui-queued","ui-read","ui-redock","ui-refresh","ui-remove-member","ui-repeat","ui-repository","ui-scan","ui-selected","ui-selector","ui-send","ui-server","ui-share","ui-sign-in","ui-sign-out","ui-staging","ui-star-half","ui-star-off","ui-stop","ui-submit","ui-subscribe","ui-success","ui-swap","ui-team","ui-unarchive","ui-unassigned","ui-undo","ui-undock","ui-unlock","ui-unpin","ui-unselected","ui-unsubscribe","ui-update","ui-usage","ui-warning","ui-watch","ui-widget","undo-2","unlink","upload","user","user-minus","user-plus","user-x","users","video","voice-call","voice-level","volume-1","volume-2","volume-off","volume-x","wallet","wifi-off","work-faces","work-results","workflow","wrench","x","zap"],og=["required","regex","length","numeric","email","formatString","formatNumber","formatCurrency","formatDate","pluralize","openUrl","and","or","not","percent","add","sub","eq","lt","clamp","cond","fallback","concat","coalesce","text","map","len","fill","set","formatPercent","formatRelativeTime","filter","bind"],ig={display:{enum:["flex","grid","block","none"]},flexDirection:{enum:["row","column","row-reverse","column-reverse"]},flexWrap:{enum:["nowrap","wrap","wrap-reverse"]},justifyContent:{enum:["flex-start","flex-end","start","end","center","stretch","space-between","space-around","space-evenly"]},alignItems:{enum:["flex-start","flex-end","start","end","center","stretch","baseline"]},alignContent:{enum:["flex-start","flex-end","start","end","center","stretch","space-between","space-around","space-evenly"]},alignSelf:{enum:["flex-start","flex-end","start","end","center","stretch","baseline"]},justifySelf:{enum:["flex-start","flex-end","start","end","center","stretch","baseline"]},flexGrow:{type:"number"},flexShrink:{type:"number"},flexBasis:{type:"length"},gap:{type:"length"},rowGap:{type:"length"},columnGap:{type:"length"},direction:{enum:["ltr","rtl"]},overflow:{enum:["visible","hidden","clip","scroll","auto"]},overflowX:{enum:["visible","hidden","clip","scroll","auto"]},overflowY:{enum:["visible","hidden","clip","scroll","auto"]},width:{type:"length"},height:{type:"length"},minWidth:{type:"length"},minHeight:{type:"length"},maxWidth:{type:"length"},maxHeight:{type:"length"},aspectRatio:{type:"ratio"},position:{enum:["relative","absolute","sticky"]},top:{type:"length"},right:{type:"length"},bottom:{type:"length"},left:{type:"length"},inset:{type:"length"},insetInlineStart:{type:"length"},insetInlineEnd:{type:"length"},insetBlockStart:{type:"length"},insetBlockEnd:{type:"length"},padding:{type:"length"},paddingTop:{type:"length"},paddingRight:{type:"length"},paddingBottom:{type:"length"},paddingLeft:{type:"length"},paddingHorizontal:{type:"length"},paddingVertical:{type:"length"},paddingInlineStart:{type:"length"},paddingInlineEnd:{type:"length"},margin:{type:"length"},marginTop:{type:"length"},marginRight:{type:"length"},marginBottom:{type:"length"},marginLeft:{type:"length"},marginHorizontal:{type:"length"},marginVertical:{type:"length"},marginInlineStart:{type:"length"},marginInlineEnd:{type:"length"},gridTemplateColumns:{type:"tracks"},gridTemplateRows:{type:"tracks"},gridTemplateAreas:{type:"areas"},gridArea:{type:"string"},gridColumn:{type:"string"},gridRow:{type:"string"}},sg={backgroundColor:{type:"color"},backgroundGradient:{type:"gradient"},color:{type:"color"},borderWidth:{type:"number",layoutEffect:!0},borderTopWidth:{type:"number",layoutEffect:!0},borderRightWidth:{type:"number",layoutEffect:!0},borderBottomWidth:{type:"number",layoutEffect:!0},borderLeftWidth:{type:"number",layoutEffect:!0},borderColor:{type:"color"},borderStyle:{enum:["solid","dashed","dotted"]},borderRadius:{type:"length"},borderTopLeftRadius:{type:"length"},borderTopRightRadius:{type:"length"},borderBottomRightRadius:{type:"length"},borderBottomLeftRadius:{type:"length"},opacity:{type:"number"},boxShadow:{type:"token",group:"shadow"},fontSize:{type:"length"},fontWeight:{enum:[300,400,500,600,700,800]},lineHeight:{type:"length"},letterSpacing:{type:"length"},textAlign:{enum:["left","right","center","start","end","justify"]},textDecoration:{enum:["none","underline","line-through"]},textTransform:{enum:["none","uppercase","lowercase","capitalize"]},fontStyle:{enum:["normal","italic"]},fontFamily:{type:"token",group:"type.family"},transition:{type:"token",group:"motion"},transitionEasing:{type:"token",group:"ease"},transform:{type:"transform"},visibility:{enum:["visible","hidden"]},pointerEvents:{enum:["auto","none"]},userSelect:{enum:["auto","none","text"]},cursor:{enum:["auto","default","pointer","text","not-allowed","grab","grabbing","move","col-resize","row-resize"]},backdropBlur:{type:"token",group:"blur"},animation:{enum:["pulse","spin","fade-in","slide-in-up","slide-in-down","slide-in-left","slide-in-right","shimmer"]},animationDuration:{type:"token",group:"motion"}},ag={$comment:"Round 2 (docs/round-2-contract.md §2): the keyframes behind the `animation` key. Channels: `opacity` (multiplies the node's), `translateX`/`translateY` (px), `rotate` (deg), `scale`, applied OUTSIDE the node's own `transform` about the box centre; `band` = the shimmer highlight's position across the box (-1 = one box width before it, 1 = one after), painted over the content and clipped to the border box. Duration = the theme's `duration` token (or the node's `animationDuration`) × `factor`; `easing` applies PER keyframe segment (CSS) and is a `$ease` token or `linear`; `iterations` = a count or `infinite`. An animation starts when the node enters the tree (first paint, `visible` turning true, a template item appearing). Reduced motion: no animation, the node shows the keyframe at `rest` (0 = the first, 1 = the last; shimmer draws no band). Channels are PHYSICAL, like `transform`: `direction` never mirrors them (in rtl too, `slide-in-left` moves leftwards and the shimmer band sweeps left → right).",pulse:{duration:"$motion.slow",factor:7,easing:"$ease.standard",iterations:"infinite",rest:0,keyframes:[{offset:0,opacity:1},{offset:.5,opacity:.5},{offset:1,opacity:1}]},spin:{duration:"$motion.slow",factor:4,easing:"linear",iterations:"infinite",rest:0,keyframes:[{offset:0,rotate:0},{offset:1,rotate:360}]},"fade-in":{duration:"$motion.standard",factor:1,easing:"$ease.decelerate",iterations:1,rest:1,keyframes:[{offset:0,opacity:0},{offset:1,opacity:1}]},"slide-in-up":{duration:"$motion.standard",factor:1,easing:"$ease.decelerate",iterations:1,rest:1,keyframes:[{offset:0,opacity:0,translateY:8},{offset:1,opacity:1,translateY:0}]},"slide-in-down":{duration:"$motion.standard",factor:1,easing:"$ease.decelerate",iterations:1,rest:1,keyframes:[{offset:0,opacity:0,translateY:-8},{offset:1,opacity:1,translateY:0}]},"slide-in-left":{duration:"$motion.standard",factor:1,easing:"$ease.decelerate",iterations:1,rest:1,keyframes:[{offset:0,opacity:0,translateX:8},{offset:1,opacity:1,translateX:0}]},"slide-in-right":{duration:"$motion.standard",factor:1,easing:"$ease.decelerate",iterations:1,rest:1,keyframes:[{offset:0,opacity:0,translateX:-8},{offset:1,opacity:1,translateX:0}]},shimmer:{duration:"$motion.slow",factor:5,easing:"linear",iterations:"infinite",rest:0,keyframes:[{offset:0,band:-1},{offset:1,band:1}],band:{color:"$color.background",stops:[{offset:0,alpha:0},{offset:.5,alpha:.5},{offset:1,alpha:0}]}}},lg={media:"^@media \\((min-width|max-width|min-height|max-height): (\\d+(\\.\\d+)?px|\\$breakpoint\\.[a-zA-Z0-9]+)\\)$|^@media \\(orientation: (portrait|landscape)\\)$|^@media \\(hover: (hover|none)\\)$|^@media \\(prefers-reduced-motion: (reduce|no-preference)\\)$",states:[":hover",":focus-visible",":pressed"],transform:"^((translate\\(-?\\d+(\\.\\d+)?px, -?\\d+(\\.\\d+)?px\\)|scale\\(-?\\d+(\\.\\d+)?\\)|rotate\\(-?\\d+(\\.\\d+)?deg\\))( (?=\\S)|$))+$"},cg={durationMs:2e3,angleDeg:20,spreadPx:60,highlightLightnessMin:.8,highlightLightnessBoost:.4,highlightAlphaBoost:.4,lightAlphaFactor:.2},dg={steps:120,radius:[.33,.3,.26],harmonics:[[11,17,23],[9,15,21],[7,13]],phase0:[.4,1.9,3.1],ringAmp:[1,.85,.45],ampBase:2,ampLevel:6,thinkingAmp:2.5,phaseSpeed:.9,fillAlpha:[.1,.1,.15],strokeAlpha:[.7,.8,.4],strokeWidth:[1.5,1.5,1],childScale:.3,childScaleLarge:.22,maxBands:8,bars:{count:20,minFraction:.12,envelope:.5,shapeFreq:1.7,shapeBase:.35,sizes:{sm:{height:16,barWidth:2,gap:2},md:{height:24,barWidth:3,gap:3},lg:{height:40,barWidth:4,gap:4},xl:{height:56,barWidth:5,gap:5}}}},ug={quietZone:4},pg={maxWidth:280,aspectRatio:1,cornerLength:24,cornerStroke:3,feedAlpha:.06,scanLineHeight:2,scanLineInset:16,sweepMs:2e3,placeholderIcon:"ui-scan",placeholderIconSize:32},Mt={layout:ig,visual:sg,animations:ag,conditions:lg,textShimmer:cg,voiceWave:dg,qrCode:ug,qrScanner:pg},Dd=Mt.layout,la=Mt.visual,fg=[...Object.keys(Dd),...Object.keys(la)];Object.entries(la).filter(([,e])=>e.layoutEffect).map(([e])=>e);const ca={...Dd,...la},hg=new Set(fg),da=new RegExp(Mt.conditions.media),Pd=new RegExp(Mt.conditions.transform),gg=Mt.conditions.states,mg=/^-?\d+(\.\d+)?(px|%)$/,yg=/^\d+(\.\d+)?\/\d+(\.\d+)?$/,hl=new Set(["spacing","radius","control","type.size","type.lineHeight","opacity","border"]);function xo(e,t){const n=Qt(e);return n!==null&&t.has(n.group)&&Md(e)}function Od(e){return xo(e,new Set(["color"]))}function bg(e,t){const n=`${e}: expected {angle, stops: [{color, offset 0..1}, …]} with two or more stops`;if(typeof t!="object"||t===null||Array.isArray(t))return n;const r=t;if(typeof r.angle!="number"||!Number.isFinite(r.angle)||!Array.isArray(r.stops)||r.stops.length<2)return n;for(const o of r.stops){if(typeof o!="object"||o===null)return n;const i=o;if(!Od(i.color)||typeof i.offset!="number"||i.offset<0||i.offset>1)return n}for(const o of Object.keys(r))if(o!=="angle"&&o!=="stops")return n;return null}function vg(e,t){const n=ca[e];if(n.enum)return n.enum.includes(t)?null:`${e}: expected one of ${n.enum.join("|")}`;switch(n.type){case"number":return typeof t=="number"&&Number.isFinite(t)||xo(t,hl)?null:`${e}: expected a number or a numeric token`;case"length":return typeof t=="number"&&Number.isFinite(t)||t==="auto"||typeof t=="string"&&mg.test(t)||xo(t,hl)?null:`${e}: expected px, "N%", "auto" or a numeric token`;case"color":return Od(t)?null:`${e}: expected $color.<name>`;case"gradient":return bg(e,t);case"token":return xo(t,new Set([n.group??""]))?null:`${e}: expected $${n.group}.<name>`;case"transform":return typeof t=="string"&&Pd.test(t)?null:`${e}: expected translate(Xpx, Ypx), scale(N) and/or rotate(Ndeg)`;case"ratio":return typeof t=="number"&&t>0||typeof t=="string"&&yg.test(t)?null:`${e}: expected a number or "w/h"`;case"tracks":case"string":return typeof t=="string"?null:`${e}: expected a string`;case"areas":return Array.isArray(t)&&t.every(r=>typeof r=="string")?null:`${e}: expected an array of row strings`;default:return`${e}: unknown spec`}}function gl(e){return ca[e]?.enum}function xg(e){return da.test(e)||gg.includes(e)}function Fd(e,t={}){const n=[],r=t.path??"style",o=(i,s,a)=>{for(const[l,c]of Object.entries(i)){if(c===void 0)continue;if(xg(l)){const u=/\$breakpoint\.([a-zA-Z0-9]+)/.exec(l);u&&!Ge.breakpoint.includes(u[1])&&n.push({path:`${s}.${l}`,message:`unknown breakpoint $breakpoint.${u[1]}; known: ${Ge.breakpoint.join("|")}`}),a?n.push({path:`${s}.${l}`,message:"conditions do not nest"}):typeof c!="object"||c===null||Array.isArray(c)?n.push({path:`${s}.${l}`,message:"must be an object"}):o(c,`${s}.${l}`,!0);continue}if(!hg.has(l)){n.push({path:`${s}.${l}`,message:l.startsWith("@media")||l.startsWith(":")?"not a supported condition":"not in the Box style whitelist"});continue}ca[l].rootOnly&&t.root===!1&&n.push({path:`${s}.${l}`,message:"allowed on the root only"});const d=vg(l,c);d&&n.push({path:`${s}.${l}`,message:d})}};return typeof e!="object"||e===null||Array.isArray(e)?[{path:r,message:"expected an object"}]:(o(e,r,!1),n)}const $g=/^@media \(([a-z-]+): ([^)]+)\)$/;function ua(e){if(!da.test(e))return null;const t=$g.exec(e);return t?{feature:t[1],value:t[2]}:null}function wg(e,t){const n=Qt(e);if(n){if(n.group!=="breakpoint")return null;const o=t.breakpoints?.[n.name];return typeof o=="number"?o:null}const r=parseFloat(e);return Number.isFinite(r)?r:null}function kg(e,t){switch(e.feature){case"min-width":case"max-width":case"min-height":case"max-height":{const n=wg(e.value,t);if(n===null)return!1;const r=e.feature.endsWith("width")?t.width:t.height;return r===void 0?!1:e.feature.startsWith("min")?r>=n:r<n}case"orientation":{const n=t.height!==void 0&&t.height>=t.width;return e.value===(n?"portrait":"landscape")}case"hover":return e.value===(t.hover?"hover":"none");case"prefers-reduced-motion":return e.value===(t.reducedMotion?"reduce":"no-preference")}}function Sg(e,t){let n=null;for(const r of Ge.breakpoint){const o=t[r];typeof o=="number"&&e>=o&&(n=r)}return n}const Cg={back:"Back",breadcrumb:"Breadcrumb",browse:"Browse",cameraUnavailable:"Camera unavailable",cancel:"Cancel",carousel:"Carousel",chartSummary:"Chart of {series}, values from {min} to {max}",choose:"Choose",clear:"Clear",close:"Close",closeTab:"Close {name}",codeBlock:"Code",collapse:"Collapse",confirm:"Confirm",copied:"Copied",copy:"Copy",decrement:"Decrease",dialog:"Dialog",dismiss:"Dismiss",dropFiles:"Drop files here",endCall:"End call",expand:"Expand",fileTooLarge:"File too large",fileTooLargeNamed:"{name}: File too large",increment:"Increase",invalidFields:"Check the highlighted fields",invalidValue:"Invalid value",loading:"Loading",menu:"Menu",message:"Message",more:"More",mute:"Mute",newTab:"New tab",next:"Next",nextMonth:"Next month",no:"No",noResults:"No results",optional:"Optional",pageOf:"Page {page} of {total}",pagination:"Pagination",previous:"Previous",previousMonth:"Previous month",ratingStar:"{value} of {max}",ratingValue:"Rated {value} of {max}",read:"Read",remove:"Remove",removeItem:"Remove {name}",required:"Required",resize:"Resize",scanQrCode:"Scan a QR code",search:"Search…",selectAll:"Select all",selectedCount:"{count} selected",selectRow:"Select row",send:"Send",sending:"Sending",sent:"Sent",showLess:"Show less",showMore:"Show more",slide:"Slide",sortAscending:"Sort ascending",sortByAscending:"{name}: Sort ascending",sortByDescending:"{name}: Sort descending",sortDescending:"Sort descending",sparklineSummary:"Trend from {first} to {last}, low {min}, high {max}",speaker:"Speaker",speakerOff:"Speaker off",stepCurrent:"Step {step} of {total}: {label}, current",stepDone:"Step {step} of {total}: {label}, completed",stepUpcoming:"Step {step} of {total}: {label}",stop:"Stop",submit:"Submit",table:"Table",today:"Today",unknownComponent:"Unknown component",unmute:"Unmute",unsupportedFile:"Unsupported file",unsupportedFileNamed:"{name}: Unsupported file",yes:"Yes"},Ag={strings:Cg},pi=Ag.strings,Tg=/^\$string\.([a-zA-Z][a-zA-Z0-9]*)$/,Ig=/\{([a-zA-Z][a-zA-Z0-9]*)\}/g;function pa(e){if(typeof e!="string")return null;const t=Tg.exec(e);return t?t[1]:null}function Eg(e){const t=pa(e);return t!==null&&t in pi}function _g(e={}){return{...pi,...e}}function zd(e,t={}){return e.replace(Ig,(n,r)=>r in t&&t[r]!==void 0&&t[r]!==null?String(t[r]):n)}function Mg(e,t=pi){const n=pa(e);return n===null?e:t[n]??n}const Dg={default:1,regions:{0:["AG","AS","BD","BR","BS","BT","BW","BZ","CA","CN","CO","DM","DO","ET","GT","GU","HK","HN","ID","IL","IN","JM","JP","KE","KH","KR","LA","MH","MM","MO","MT","MX","MZ","NI","NP","PA","PE","PH","PK","PR","PT","PY","SA","SG","SV","TH","TT","TW","UM","US","VE","VI","WS","YE","ZA","ZW"],5:["MV"],6:["AE","AF","BH","DJ","DZ","EG","IQ","IR","JO","KW","LY","OM","QA","SD","SY"]}},Pg={af:"ZA",am:"ET",ar:"EG",az:"AZ",be:"BY",bg:"BG",bn:"BD",bs:"BA",ca:"ES",ckb:"IQ",cs:"CZ",cy:"GB",da:"DK",de:"DE",dv:"MV",el:"GR",en:"US",es:"ES",et:"EE",eu:"ES",fa:"IR",fi:"FI",fil:"PH",fr:"FR",ga:"IE",gl:"ES",gu:"IN",ha:"NG",he:"IL",hi:"IN",hr:"HR",hu:"HU",hy:"AM",id:"ID",ig:"NG",is:"IS",it:"IT",ja:"JP",jv:"ID",ka:"GE",kk:"KZ",km:"KH",kn:"IN",ko:"KR",ku:"TR",ky:"KG",lo:"LA",lt:"LT",lv:"LV",mk:"MK",ml:"IN",mn:"MN",mr:"IN",ms:"MY",mt:"MT",my:"MM",nb:"NO",ne:"NP",nl:"NL",nn:"NO",no:"NO",or:"IN",pa:"IN",pl:"PL",ps:"AF",pt:"BR",ro:"RO",ru:"RU",sd:"PK",si:"LK",sk:"SK",sl:"SI",so:"SO",sq:"AL",sr:"RS",sv:"SE",sw:"TZ",ta:"IN",te:"IN",th:"TH",tl:"PH",tr:"TR",ug:"CN",uk:"UA",ur:"PK",uz:"UZ",vi:"VN",yi:"001",yo:"NG",zh:"CN",zu:"ZA"},Og={in:"id",iw:"he",ji:"yi",jw:"jv",mo:"ro",tl:"fil"},Fg=["ar","ckb","dv","fa","he","ps","sd","ug","ur","yi"],zg=["ui-back","ui-chevron-left","ui-chevron-right","ui-arrow-right","ui-send","ui-undo","ui-external-link","arrow-left","arrow-right","chevron-left","chevron-right","send","undo-2","external-link"],Rg={months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayPeriods:["AM","PM"],currencyPrefix:{USD:"$",EUR:"€",GBP:"£",JPY:"¥",CNY:"CN¥",INR:"₹",KRW:"₩",CAD:"CA$",AUD:"A$",MXN:"MX$",BRL:"R$",ILS:"₪",NZD:"NZ$",HKD:"HK$",TWD:"NT$",VND:"₫",PHP:"₱",XAF:"FCFA ",XOF:"F CFA "},currencyDigits:{JPY:0,KRW:0,VND:0,CLP:0,ISK:0,UGX:0,PYG:0,XAF:0,XOF:0,BHD:3,IQD:3,JOD:3,KWD:3,OMR:3,TND:3},relative:{units:{second:["second","seconds"],minute:["minute","minutes"],hour:["hour","hours"],day:["day","days"],week:["week","weeks"],month:["month","months"],year:["year","years"]},auto:{second:{0:"now"},day:{1:"tomorrow","-1":"yesterday"},week:{1:"next week","-1":"last week"},month:{1:"next month","-1":"last month"},year:{1:"next year","-1":"last year"}},past:"{value} {unit} ago",future:"in {value} {unit}"},unknownCurrency:"{code} ",datePatterns:{short:"M/d/yy",medium:"MMM d, y",long:"MMMM d, y",full:"EEEE, MMMM d, y"},timePattern:"h:mm a",dateTimeJoin:{short:"{date}, {time}",medium:"{date}, {time}",long:"{date} at {time}",full:"{date} at {time}"}},fn={default:"en-US",weekStart:Dg,likelyRegion:Pg,languageAliases:Og,rtl:Fg,rtlMirroredIcons:zg,englishFallback:Rg},$t=fn.englishFallback,it={second:1e3,minute:6e4,hour:36e5,day:864e5};function Hr(e){return typeof e=="string"?e:typeof e=="number"?Number.isFinite(e)?String(e):"":typeof e=="boolean"?String(e):""}function Rd(e){const t=/^(\d+)(?:\.(\d+))?(?:e([+-]\d+))?$/.exec(String(e));if(!t)return{int:"0",frac:""};const n=t[1]+(t[2]??"");let r=t[1].length+(t[3]?Number(t[3]):0),o=n;return r<=0&&(o="0".repeat(1-r)+o,r=1),r>o.length&&(o=o+"0".repeat(r-o.length)),{int:o.slice(0,r).replace(/^0+(?=\d)/,""),frac:o.slice(r).replace(/0+$/,"")}}function Ng(e,t){const n=e.frac+"0".repeat(Math.max(0,t-e.frac.length));return{int:(e.int+n.slice(0,t)).replace(/^0+(?=\d)/,""),frac:n.slice(t).replace(/0+$/,"")}}function Nd(e,t,n){let{int:r,frac:o}=e;if(o.length>n){const i=o.charCodeAt(n)>=53;let s=r+o.slice(0,n);if(i){const l=s.split("");let c=l.length-1;for(;c>=0;c--)if(l[c]==="9")l[c]="0";else{l[c]=String(Number(l[c])+1);break}s=(c<0?"1":"")+l.join("")}const a=s.length-n;r=s.slice(0,a)||"0",o=s.slice(a).replace(/0+$/,"")}return o.length<t&&(o=o+"0".repeat(t-o.length)),{int:r,frac:o}}function Ld(e,t){if(!t||e.length<4)return e;let n="";for(let r=0;r<e.length;r++)r>0&&(e.length-r)%3===0&&(n+=","),n+=e[r];return n}function ao(e,t,n,r){const o=e<0||Object.is(e,-0);if(Number.isNaN(e))return{sign:"",body:"NaN"};if(!Number.isFinite(e))return{sign:o?"-":"",body:"∞"};const i=Nd(Rd(Math.abs(e)),t,n);return{sign:o?"-":"",body:`${Ld(i.int,r)}${i.frac?`.${i.frac}`:""}`}}const qn=e=>typeof e=="number"&&Number.isFinite(e)?Math.max(0,Math.min(20,Math.trunc(e))):void 0;function Lg(e){return $t.currencyDigits[e.toUpperCase()]??2}function Tr(e){if(typeof e=="number")return Number.isFinite(e)?{ms:e,dateOnly:!1}:null;if(typeof e!="string"||e.trim()==="")return null;const t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e);if(t){const o=Date.UTC(Number(t[1]),Number(t[2])-1,Number(t[3]));return Number.isFinite(o)?{ms:o,dateOnly:!0}:null}if(!/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2}(\.\d+)?)?(Z|[+-]\d{2}:\d{2})?$/.test(e))return null;const n=/(Z|[+-]\d{2}:\d{2})$/.test(e)?e:`${e}Z`,r=Date.parse(n);return Number.isFinite(r)?{ms:r,dateOnly:!1}:null}function jd(e){const t=new Date(e);return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),weekday:t.getUTCDay(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds()}}const tn=(e,t)=>String(e).padStart(t,"0");function $o(e,t,n){let r="",o=0;for(;o<e.length;){const i=e[o];if(i==="'"){if(e[o+1]==="'"){r+="'",o+=2;continue}for(o++;o<e.length;){if(e[o]==="'"){if(e[o+1]==="'"){r+="'",o+=2;continue}o++;break}r+=e[o],o++}continue}if(!/[A-Za-z]/.test(i)){r+=i,o++;continue}let s=1;for(;e[o+s]===i;)s++;const a=e.slice(o,o+s);o+=s;const l=t.hour%12===0?12:t.hour%12;switch(i){case"y":r+=s===2?tn(t.year%100,2):tn(t.year,s);break;case"M":r+=s>=4?n.months[t.month-1]:s===3?n.monthsShort[t.month-1]:tn(t.month,s);break;case"d":r+=tn(t.day,s);break;case"E":r+=s>=4?n.weekdays[t.weekday]:n.weekdaysShort[t.weekday];break;case"h":r+=tn(l,s);break;case"H":r+=tn(t.hour,s);break;case"m":r+=tn(t.minute,s);break;case"s":r+=tn(t.second,s);break;case"a":r+=n.dayPeriods[t.hour<12?0:1];break;default:r+=a}}return r}const jg=$t.datePatterns,Bg=$t.timePattern,Wg=$t.dateTimeJoin,Hg=e=>()=>e;function Bd(e){const t=Math.abs(e),n=r=>Math.trunc(e/r)||0;return t<it.minute?{value:n(it.second),unit:"second"}:t<it.hour?{value:n(it.minute),unit:"minute"}:t<it.day?{value:n(it.hour),unit:"hour"}:t<7*it.day?{value:n(it.day),unit:"day"}:t<30*it.day?{value:n(7*it.day),unit:"week"}:t<365*it.day?{value:n(30*it.day),unit:"month"}:{value:n(365*it.day),unit:"year"}}const Li=$t;function Ug(e=Hg(0)){return{locale:"en-US",number(t,n={}){const r=qn(n.decimals),{sign:o,body:i}=ao(t,r??0,r??3,n.grouping!==!1);return`${o}${i}`},currency(t,n,r={}){const o=n.toUpperCase(),i=qn(r.decimals)??Lg(o),{sign:s,body:a}=ao(t,i,i,r.grouping!==!1),l=$t.currencyPrefix[o]??$t.unknownCurrency.replace("{code}",o);return`${s}${l}${a}`},percent(t,n={}){const r=qn(n.decimals)??0;if(!Number.isFinite(t)){const{sign:s,body:a}=ao(t,0,0,!0);return`${s}${a}%`}const o=t<0||Object.is(t,-0),i=Nd(Ng(Rd(Math.abs(t)),2),r,r);return`${o?"-":""}${Ld(i.int,!0)}${i.frac?`.${i.frac}`:""}%`},date(t,n={}){const r=Tr(t);if(!r)return"";const o=jd(r.dateOnly?r.ms:r.ms+e(r.ms)*6e4);if(n.format)return $o(n.format,o,Li);const i=n.style??"medium",s=$o(jg[i],o,Li);if(!n.time)return s;const a=$o(Bg,o,Li);return Wg[i].replace("{date}",s).replace("{time}",a)},relativeTime(t,n){const r=Tr(t);if(!r)return"";const{value:o,unit:i}=Bd(r.ms-n),s=$t.relative.auto[i]?.[String(o)];if(s)return s;const[a,l]=$t.relative.units[i],c=ao(Math.abs(o),0,0,!0).body,d=Math.abs(o)===1?a:l;return(o<0?$t.relative.past:$t.relative.future).replace("{value}",c).replace("{unit}",d)},plural(t){return Math.abs(t)===1?"one":"other"}}}function Wd(e,t="UTC"){const n=s=>new Intl.NumberFormat(e,s);let r=null;const o=()=>{if(r)return r;const s=(d,u)=>new Intl.DateTimeFormat(e,{...d,timeZone:"UTC"}).format(new Date(u)),a=Array.from({length:12},(d,u)=>Date.UTC(2026,u,1)),l=Array.from({length:7},(d,u)=>Date.UTC(2026,0,4+u)),c=d=>new Intl.DateTimeFormat(e,{hour:"numeric",hour12:!0,timeZone:"UTC"}).formatToParts(new Date(Date.UTC(2026,0,1,d))).find(u=>u.type==="dayPeriod")?.value??(d<12?"AM":"PM");return r={months:a.map(d=>s({month:"long"},d)),monthsShort:a.map(d=>s({month:"short"},d)),weekdays:l.map(d=>s({weekday:"long"},d)),weekdaysShort:l.map(d=>s({weekday:"short"},d)),dayPeriods:[c(9),c(15)]},r},i=s=>{const a=new Intl.DateTimeFormat("en-US",{timeZone:t,year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",weekday:"short",hourCycle:"h23"}).formatToParts(new Date(s)),l=c=>a.find(d=>d.type===c)?.value??"0";return{year:Number(l("year")),month:Number(l("month")),day:Number(l("day")),weekday:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"].indexOf(l("weekday")),hour:Number(l("hour"))%24,minute:Number(l("minute")),second:Number(l("second"))}};return{locale:e,number(s,a={}){const l=qn(a.decimals);return n({minimumFractionDigits:l??0,maximumFractionDigits:l??3,useGrouping:a.grouping!==!1}).format(s)},currency(s,a,l={}){const c=qn(l.decimals);return n({style:"currency",currency:a,...c!==void 0?{minimumFractionDigits:c,maximumFractionDigits:c}:{},useGrouping:l.grouping!==!1}).format(s)},percent(s,a={}){const l=qn(a.decimals)??0;return n({style:"percent",minimumFractionDigits:l,maximumFractionDigits:l}).format(s)},date(s,a={}){const l=Tr(s);if(!l)return"";const c=l.dateOnly?"UTC":t;return a.format?$o(a.format,l.dateOnly?jd(l.ms):i(l.ms),o()):new Intl.DateTimeFormat(e,{dateStyle:a.style??"medium",...a.time?{timeStyle:"short"}:{},timeZone:c}).format(new Date(l.ms))},relativeTime(s,a){const l=Tr(s);if(!l)return"";const{value:c,unit:d}=Bd(l.ms-a);return new Intl.RelativeTimeFormat(e,{numeric:"auto"}).format(c,d)},plural(s){return new Intl.PluralRules(e).select(s)}}}const Hd=["formatNumber","formatCurrency","formatPercent","formatDate","formatRelativeTime","pluralize"],qg=/^[ \t\n\r]*[+-]?(\d+\.?\d*|\.\d+)([eE][+-]?\d+)?[ \t\n\r]*$/,Ss=e=>typeof e=="number"?e:typeof e=="string"&&qg.test(e)?Number(e):NaN,ji=e=>e==null?void 0:Ss(e);function Ud(e,t=()=>Date.now()){const n=(r,o)=>{const i=Ss(r);return Number.isFinite(i)?o(i):""};return{formatNumber:({value:r,decimals:o,grouping:i})=>n(r,s=>e.number(s,{decimals:ji(o),grouping:i===void 0?void 0:i!==!1})),formatCurrency:({value:r,currency:o,decimals:i,grouping:s})=>n(r,a=>typeof o=="string"&&/^[A-Za-z]{3}$/.test(o)?e.currency(a,o,{decimals:ji(i),grouping:s===void 0?void 0:s!==!1}):""),formatPercent:({value:r,decimals:o})=>n(r,i=>e.percent(i,{decimals:ji(o)})),formatDate:({value:r,format:o,style:i,time:s})=>e.date(r,{...typeof o=="string"&&o?{format:o}:{},...i==="short"||i==="medium"||i==="long"||i==="full"?{style:i}:{},...s===!0?{time:!0}:{}}),formatRelativeTime:({value:r,now:o})=>e.relativeTime(r,typeof o=="number"?o:Tr(o)?.ms??t()),pluralize:r=>{const o=Ss(r.value);if(!Number.isFinite(o))return r.other;if(o===0&&r.zero!==void 0)return r.zero;const i=e.plural(o);return r[i]??r.other}}}const Cs=Ud(Ug()),qd=/^\{([^{}]+)\}$/,Vg=/\{([^{}]+)\}/g,Kg=/^(len|range)\((.+)\)$/;function fa(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&typeof e.path=="string"&&Object.keys(e).length===1}function Ur(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&typeof e.call=="string"}function Me(e){return fa(e)||Ur(e)}function Ft(e){return e!=null&&e!==!1&&e!==""}function Qe(e,t){const n={};for(const[r,o]of Object.entries(t))o!==void 0&&(n[r]=o);return{call:e,args:n}}function Gg(e){return e==="true"?!0:e==="false"?!1:e==="null"?null:/^-?\d+(\.\d+)?$/.test(e)?Number(e):e}function Yg(e,t){if(e==="id")return t.id;const[n,...r]=e.split(".");let o;if(n==="props")o=t.props;else if(n in t.vars)o=t.vars[n];else return;for(const i of r){if(o==null)return;o=o[i]}return o}function qe(e){return typeof e=="number"?e:Number(e??0)||0}function ml(e){const t=e.trim();if(t==="")return;const n=Number(t);return Number.isFinite(n)?n:void 0}function ha(e,t){return e===t?!0:typeof e=="number"&&typeof t=="string"?ml(t)===e:typeof t=="number"&&typeof e=="string"?ml(e)===t:!1}function Vd(e,t,n){let r=qe(e);return n!=null&&(r=Math.min(r,qe(n))),t!=null&&(r=Math.max(r,qe(t))),r}function Xg(e,t){const n=e==null?"":String(e);return zd(n,typeof t=="object"&&t!==null?t:{})}const Zg=1e4;function Gt(e,t){const n=e.trim(),r=Kg.exec(n);if(r){const i=Gt(r[2],t);if(r[1]==="len")return Me(i)?Qe("len",{value:i}):Array.isArray(i)||typeof i=="string"?i.length:0;if(Me(i))return;const s=Math.min(Zg,Math.max(0,Math.floor(qe(i)))||0);return Array.from({length:s},(a,l)=>l)}const o=n.indexOf("|");if(o>=0){const i=Gt(n.slice(0,o),t),s=Gg(n.slice(o+1));return i==null?s:Me(i)?Qe("fallback",{value:i,default:s}):i}if(n.startsWith("!")){const i=Gt(n.slice(1),t);return Me(i)?Qe("not",{value:i}):!Ft(i)}return Yg(n,t)}function Qg(e){return Ur(e)&&e.call==="fallback"&&Me(e.args?.value)?e.args?.value:e}function Ke(e,t){if(typeof e=="string"){const n=qd.exec(e);if(n)return Gt(n[1],t)}return dt(e,t)}function Ro(e,t){const n=typeof e=="string"?Gt(e,t):Ke(e,t);return Me(n)?n:Ft(n)}function Jg(e,t){const n=[];let r=!1,o=0;for(const i of e.matchAll(Vg)){const s=i.index??0;s>o&&n.push(e.slice(o,s));const a=Gt(i[1],t);Me(a)&&(r=!0),n.push(a),o=s+i[0].length}return o<e.length&&n.push(e.slice(o)),r?Qe("concat",{values:n.filter(i=>i!=null&&i!=="")}):n.map(i=>i==null?"":String(i)).join("")}function dt(e,t){if(typeof e=="string"){const o=qd.exec(e);return o?Qg(Gt(o[1],t)):Jg(e,t)}if(Array.isArray(e))return e.map(o=>dt(o,t)).filter(o=>o!==void 0);if(typeof e!="object"||e===null)return e;const n=e;if("$map"in n){const o=n.$map,i=Gt(o.from,t);if(Me(i)){const l={};for(const[c,d]of Object.entries(o.cases)){const u=Ke(d,t);u!==void 0&&(l[c]=u)}return Qe("map",{value:i,cases:l,default:Ke(o.default,t)})}const s=i==null?"":String(i),a=Object.prototype.hasOwnProperty.call(o.cases,s)?o.cases[s]:o.default;return Ke(a,t)}if("$cond"in n){const[o,i,s]=n.$cond,a=Ro(o,t);return Me(a)?Qe("cond",{if:a,then:Ke(i,t),else:Ke(s,t)}):Ke(a?i:s,t)}if("$eq"in n){const[o,i]=n.$eq.map(s=>Ke(s,t));return Me(o)||Me(i)?Qe("eq",{a:o,b:i}):ha(o,i)}if("$lt"in n){const[o,i]=n.$lt.map(s=>Ke(s,t));return Me(o)||Me(i)?Qe("lt",{a:o,b:i}):qe(o)<qe(i)}if("$add"in n){const[o,i]=n.$add.map(s=>Ke(s,t));return Me(o)||Me(i)?Qe("add",{a:o,b:i}):qe(o)+qe(i)}if("$sub"in n){const[o,i]=n.$sub.map(s=>Ke(s,t));return Me(o)||Me(i)?Qe("sub",{a:o,b:i}):qe(o)-qe(i)}if("$clamp"in n){const[o,i,s]=n.$clamp.map(a=>Ke(a,t));return Me(o)||Me(i)||Me(s)?Qe("clamp",{value:o,min:i,max:s}):Vd(o,i,s)}if("$fill"in n){const[o,i]=n.$fill,s={};for(const[a,l]of Object.entries(i??{})){const c=Ke(l,t);c!==void 0&&(s[a]=c)}return Qe("fill",{template:Ke(o,t),params:s})}if("$percent"in n){const[o,i]=n.$percent.map(s=>Ke(s,t));return Me(o)||Me(i)?Qe("percent",{value:o,max:i}):Kd(o,i)}if("$text"in n){const o=n.$text,i=typeof o=="string"?Gt(o,t):Ke(o,t);return Me(i)?Qe("text",{value:i}):i==null?void 0:String(i)}if("$coalesce"in n){const o=[];for(const i of n.$coalesce){const s=Ke(i,t);if(s!==void 0){if(Me(s)){o.push(s);continue}if(Ft(s)){if(o.length===0)return s;o.push(s);break}}}return o.length===0?void 0:o.length===1?o[0]:Qe("coalesce",{values:o})}if("$not"in n){const o=Ro(n.$not,t);return Me(o)?Qe("not",{value:o}):!o}const r={};for(const[o,i]of Object.entries(n)){const s=dt(i,t);if(s===void 0)continue;const a=o.includes("{")?dt(o,t):o;r[typeof a=="string"?a:o]=s}return r}function Kd(e,t){const n=qe(t),r=n>0?qe(e)/n*100:0,o=Math.min(100,Math.max(0,r));return`${Math.round(o*100)/100}%`}function em(e,t,n,r){if(!Array.isArray(e))return[];const o=typeof t=="string"?t.trim().toLowerCase():typeof t=="number"?String(t):"",i=Array.isArray(n)?n.filter(l=>typeof l=="string"):null,s=typeof r=="object"&&r!==null&&!Array.isArray(r)?Object.entries(r).filter(([,l])=>l!=null&&l!==""):[],a=l=>typeof l=="string"?l:typeof l=="number"?String(l):null;return e.filter(l=>{const c=typeof l=="object"&&l!==null&&!Array.isArray(l)?l:null;for(const[u,p]of s)if(!ha(c?.[u],p))return!1;return o===""?!0:(c?(i??Object.keys(c)).map(u=>c[u]):[l]).some(u=>a(u)?.toLowerCase().includes(o)??!1)})}const tm={percent:({value:e,max:t})=>Kd(e,t),add:({a:e,b:t})=>qe(e)+qe(t),sub:({a:e,b:t})=>qe(e)-qe(t),eq:({a:e,b:t})=>ha(e,t),lt:({a:e,b:t})=>qe(e)<qe(t),clamp:({value:e,min:t,max:n})=>Vd(e,t,n),cond:({if:e,then:t,else:n})=>Ft(e)?t:n,fallback:({value:e,default:t})=>e??t,concat:({values:e})=>Array.isArray(e)?e.map(t=>t==null?"":String(t)).join(""):"",coalesce:({values:e})=>Array.isArray(e)?e.find(Ft):void 0,text:({value:e})=>e==null?void 0:String(e),map:({value:e,cases:t,default:n})=>{const r=e==null?"":String(e),o=t??{};return Object.prototype.hasOwnProperty.call(o,r)?o[r]:n},len:({value:e})=>Array.isArray(e)||typeof e=="string"?e.length:0,fill:({template:e,params:t})=>Xg(e,t),filter:({items:e,query:t,fields:n,where:r})=>em(e,t,n,r),formatPercent:Cs.formatPercent,formatRelativeTime:Cs.formatRelativeTime},nm="VAPP-103: the input LIMITS every core enforces (the TS reference, the Rust core and through it Swift, Compose and gpui). An agent's input past a limit is refused with an issue, never worked on. `maxComponents` = nodes the reducer places in one surface's tree, template nodes included (the rest is dropped: `surface: more than N components; the rest is dropped`); a renderer's build holds at most `maxComponents` nodes too: the reduced tree's (after expansion, children and slots) plus, per template ITEM, its template subtree's (nested items charged when they are instantiated); the first item that does not fit and every later one are not rendered, with ONE issue on the template component (the same message). `maxDepth` = nesting levels of the REDUCED tree, after macro expansion (the root and every lifted template = 1, children and slots one level down; a Card, Section or Group macro adds a level; a deeper node is the Unknown placeholder, its subtree dropped: `nesting deeper than N levels`); 48 keeps every tree a core emits (2 JSON levels per node) inside serde_json's default recursion limit of 128, so reduced trees, fixtures and the FFI's JSON round-trip; the Rust core's recursive passes switch to a heap-allocated stack segment when the host thread runs low, so an iOS secondary thread's 512 KB never decides (a 48-level surface lays out on a 128 KB thread, debug build). `maxMessageBytes` = one server message as UTF-8 JSON (host routers refuse it: INVALID_MESSAGE). `maxTemplateItems` = template items one surface instantiates (beyond it the items are not rendered: `template: more than N items; the rest is not rendered`). `maxPointerBytes` / `maxPointerSegments` = a data pointer's length and token count (a longer write is refused). Generated into every target; src/limits.ts reads it.",rm=2e4,om=48,im=4194304,sm=1e4,am=1024,lm=64,Pn={$comment:nm,maxComponents:rm,maxDepth:om,maxMessageBytes:im,maxTemplateItems:sm,maxPointerBytes:am,maxPointerSegments:lm};Object.fromEntries(Object.entries(Pn).filter(([e])=>!e.startsWith("$")));const qr=Pn.maxComponents,Ir=Pn.maxDepth,wn=Pn.maxMessageBytes,Gd=Pn.maxTemplateItems,Yd=Pn.maxPointerBytes,Xd=Pn.maxPointerSegments,Tt={usedTwice:"id used twice; only its first place renders",depth:`nesting deeper than ${Ir} levels`,components:`surface: more than ${qr} components; the rest is dropped`,templateItems:`template: more than ${Gd} items; the rest is not rendered`,messageBytes:`message larger than ${wn} bytes`},Zd=e=>e.replace(/~1/g,"/").replace(/~0/g,"~");function Qd(e,t={}){if(e.startsWith("/"))return e;const n=t.base??"";return e===""?n:`${n}/${e}`}function cm(e){return e!==void 0&&Object.prototype.hasOwnProperty.call(e,"item")}const Jd=/^[0-9]+$/;function fi(e,t){if(t===""||t==="/")return e;let n=e;for(const r of(t.startsWith("/")?t.slice(1):t).split("/")){if(n==null||typeof n!="object")return;const o=Zd(r);Array.isArray(n)?n=o==="-"?n.at(-1):Jd.test(o)?n[Number(o)]:void 0:n=Object.prototype.hasOwnProperty.call(n,o)?n[o]:void 0}return n}const dm=e=>new TextEncoder().encode(e).length;function um(e){if(dm(e)>Yd)return No.bytes;if(e===""||e==="/")return[];const t=(e.startsWith("/")?e.slice(1):e).split("/");return t.length>Xd?No.segments:t.map(Zd)}const No={bytes:`data: pointer longer than ${Yd} bytes`,segments:`data: pointer has more than ${Xd} segments`,notIndex:e=>`data: ${JSON.stringify(e)} is not an array index`,pastEnd:(e,t)=>`data: index ${e} is past the end of the array (${t} items)`};function pm(e,t){if(e==="-")return t;if(!Jd.test(e))return No.notIndex(e);const n=Number(e);return n<=t?n:No.pastEnd(e,t)}function Bi(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function ga(e,t,n){const r=um(t);if(typeof r=="string")return{data:e,error:r};if(r.length===0)return{data:n===void 0?{}:n};const o=[],i=[];let s=e;for(let a=0;a<r.length;a++){const l=r[a],c=a===r.length-1;if(Array.isArray(s)){const d=pm(l,s.length);if(typeof d=="string")return{data:e,error:d};const u=[...s];c?n===void 0?d<u.length&&u.splice(d,1):u[d]=n:s=u[d],o.push(u),i.push(d)}else{const d={};if(s!==null&&typeof s=="object")for(const[u,p]of Object.entries(s))Bi(d,u,p);c?n===void 0?delete d[l]:Bi(d,l,n):s=Object.prototype.hasOwnProperty.call(d,l)?d[l]:void 0,o.push(d),i.push(l)}}for(let a=o.length-2;a>=0;a--){const l=o[a];Array.isArray(l)?l[i[a]]=o[a+1]:Bi(l,i[a],o[a+1])}return{data:o[0]}}({...Cs});new Set(Hd);function fm(e,t,n,r={}){let o=e;for(const[i,s]of Object.entries(n??{})){const a=t[i];fa(a)&&(!a.path.startsWith("/")&&cm(r)||(o=ga(o,Qd(a.path,r),s).data))}return o}const hm=["Dialog","Drawer","AlertDialog","Popover","Tooltip","Menu","Toast"];new Set(hm);function ma(e){return e?e.type==="object"?e.shape===void 0:e.type==="array"?e.items!==void 0&&ma(e.items):!1:!1}function yl(e,t,n){for(let r=t+1;r<e.length;r+=1){const o=e[r];if(o<=n)return!1;if(o===n+1)return!0}return!1}function gm(e){return e.map((t,n)=>{if(t<=0)return{elbowAt:null,tee:!1,passThrough:[]};const r=[];for(let o=0;o<=t-2;o+=1)yl(e,n,o)&&r.push(o);return{elbowAt:t-1,tee:yl(e,n,t-1),passThrough:r}})}function ya(e){return e.recipe?.macro==="Row"&&e.recipe.part==="root"}function mm(e){const t=ya(e)?e.recipe?.props.depth:e.props.depth;return typeof t=="number"&&Number.isFinite(t)&&t>0?Math.floor(t):0}function ym(e){return!ya(e)&&e.component!=="TreeGuides"&&typeof e.props.depth=="number"}function bl(e,t){const n={depth:e};return t.elbowAt!==null&&(n.elbowAt=t.elbowAt),n.tee=t.tee,n.passThrough=t.passThrough,n}function Wi(e){const t=e.map(mm),n=gm(t);e.forEach((r,o)=>{const i=n[o];if(ya(r)){const s=bm(r);s&&(s.props=bl(t[o],i))}else if(ym(r)){const{depth:s,...a}=bl(t[o],i);r.props={...r.props,guide:a}}})}function bm(e){return e.children.find(t=>t.component==="TreeGuides"&&t.recipe?.part==="guides")}function vm(e){const t=n=>{Wi(n.children);for(const r of Object.values(n.slots??{}))Wi([r]),t(r);n.children.forEach(t)};return Wi([e]),t(e),e}const vl=16,hi=Ge.breakpoint;function eu(e){return e===void 0?e:JSON.parse(JSON.stringify(e))}const xm=e=>typeof e=="object"&&e!==null&&!Array.isArray(e);function gi(e){return!xm(e)||!("base"in e)?!1:Object.keys(e).every(t=>t==="base"||hi.includes(t))}function tu(e,t){let n=e.base;if(t===null)return n;for(const r of hi)if(r in e&&(n=e[r]),r===t)break;return n}function nu(e,t){const n={};for(const[r,o]of Object.entries(e))n[r]=gi(o)?tu(o,t):o;return n}function $m(e){const t=new Set;for(const n of Object.values(e))if(gi(n))for(const r of Object.keys(n))r!=="base"&&t.add(r);return hi.filter(n=>t.has(n)).map(n=>({breakpoint:n,props:nu(e,n)}))}function wm(e,t){if(!e&&!t)return;const n={...e??{}};for(const[r,o]of Object.entries(t??{})){const i=typeof o=="object"&&o!==null&&!Array.isArray(o);n[r]=i?{...n[r]??{},...o}:o}return n}function km(e,t){const n=eu(e);return t&&n.event&&(n.event.context={...n.event.context??{},...t}),n}function Sm(e,t,n){const r={},o=e.view.components[e.macro]?.props??{};for(const i of e.def.recipeProps){const s=e.baseProps[i]??o[i]?.default;s!==void 0&&(r[i]=s)}if(n){const i=dt(n,t);for(const[s,a]of Object.entries(i))r[s]=a}return r}function xl(e,t){return e.length===1?e[0]:{call:t,args:{values:e}}}function Cm(e,t){const n=[];if(e.$if!==void 0){const r=Array.isArray(e.$if)?e.$if:[e.$if];for(const o of r){const i=Ro(o,t);if(i===!1)return!1;i!==!0&&n.push(i)}}if(e.$any!==void 0){let r=!1;const o=[];for(const i of e.$any){const s=Ro(i,t);if(s===!0){r=!0;break}s!==!1&&o.push(s)}if(!r){if(o.length===0)return!1;n.push(xl(o,"or"))}}return n.length===0?!0:xl(n,"and")}function As(e,t,n,r){const o=Cm(e,n);if(o===!1)return[];const i=o===!0?void 0:o;if(e.$each!==void 0){const a=dt(`{${e.$each}}`,n);if(!Array.isArray(a))return[];const l=e.$as??"item";return a.map((c,d)=>wl(e,t,{...n,vars:{...n.vars,[l]:c,index:d}},`${r}.${e.part}.${d}`,i))}const s=e.part==="root"?t.source.id:`${r}.${e.part}`;return[wl(e,t,n,s,i)]}const $l=e=>JSON.stringify(e);function Am(e,t,n){if(!e.style)return;const r=dt(e.style,n);let o=r;for(const i of t.variants){const s=dt(e.style,{...n,props:i.props}),a={};for(const[l,c]of Object.entries(s))!l.startsWith("@")&&!l.startsWith(":")&&$l(o[l])!==$l(c)&&(a[l]=c);if(Object.keys(a).length>0){const l=`@media (min-width: $breakpoint.${i.breakpoint})`;r[l]={...r[l]??{},...a}}o=s}return Object.keys(r).length>0?r:void 0}function wl(e,t,n,r,o){const i=dt(e.props??{},n)??{},s=Am(e,t,n),a={id:r,component:e.component,props:i,children:[]};if(s&&(a.style=s),o!==void 0&&(a.visible=o),a.recipe={macro:t.macro,part:e.part,props:Sm(t,n,e.$recipe)},e.$on){const l={};for(const[c,d]of Object.entries(e.$on)){const u=t.source.on?.[d];if(!u)continue;t.claimed.add(d);const p=e.$context?dt(e.$context,n):void 0;l[c]=km(u,p)}Object.keys(l).length>0&&(a.on=l)}if(e.$set)for(const[l,c]of Object.entries(e.$set)){const d=t.baseProps[c.prop];if(!fa(d))continue;const u=a.on??={};if(u[l]?.functionCall){const f=`on.${e.$on?.[l]??l}: a function action replaces the two-way set of props.${c.prop}; write it in that function's handler or use an event`;t.issues?.some(b=>b.id===t.source.id&&b.message===f)||t.issues?.push({id:t.source.id,message:f});continue}const p=dt(c.value,n);u[l]={...u[l]??{},functionCall:{call:"set",args:p===void 0?{path:d.path}:{path:d.path,value:p}}}}if(e.$a11y){const l=dt(e.$a11y,n);Object.keys(l).length>0&&(a.accessibility=l)}if(e.slots)for(const[l,c]of Object.entries(e.slots)){if(typeof c=="string"){const u=c.startsWith("$slot:")?c.slice(6):null,p=u?t.source.slots?.[u]:void 0;p&&((a.slots??={})[l]=p);continue}const[d]=As(c,t,n,r);d&&((a.slots??={})[l]=d)}for(const l of e.children??[]){if(l==="$children"){a.children.push(...t.source.children),t.source.template&&(a.template=t.source.template);continue}if(typeof l=="string"){if(l.startsWith("$slot:")){const c=t.source.slots?.[l.slice(6)];c&&a.children.push(c)}continue}a.children.push(...As(l,t,n,r))}return a}function Tm(e,t,n,r,o,i){if(o>vl)throw new Error(`macro ${t}: expansion deeper than ${vl}`);const s=nu(e.props,null);e.on?.press&&s.pressable===void 0&&r.components[t]?.props.pressable&&(s.pressable=!0);const a={view:r,macro:t,def:n,source:e,baseProps:s,variants:$m(e.props),claimed:new Set,issues:i},l={id:e.id,props:s,vars:{}},[c]=As(n.root,a,l,e.id);c.style=wm(c.style,e.style),c.style&&Object.keys(c.style).length===0&&delete c.style;const d=e.recipe?[...e.recipe.authored??[]]:Object.keys(e.style??{}).sort();d.length>0&&c.recipe&&(c.recipe={...c.recipe,authored:d}),e.visible!==void 0&&(c.visible=e.visible),e.accessibility&&(c.accessibility={...c.accessibility??{},...e.accessibility});const u={...c.on??{}};for(const[p,h]of Object.entries(e.on??{}))a.claimed.has(p)||(u[p]=h);return Object.keys(u).length>0?c.on=u:delete c.on,Lo(c,r,o+1,i)}function Lo(e,t,n,r){const o={...e,children:e.children.map(s=>Lo(s,t,n,r))};if(e.slots){o.slots={};for(const[s,a]of Object.entries(e.slots))o.slots[s]=Lo(a,t,n,r)}const i=t.macros[o.component];return i&&t.components[o.component]?.kind==="macro"?Tm(o,o.component,i,t,n,r):o}function kl(e,t={}){return vm(Lo(eu(e),Wr(t.extensions),0,t.issues))}const Im=new Set(rg),ru=e=>Wr(e),Em=new Set(og),_m=/^\d{4}-\d{2}-\d{2}$/;function Sl(e,t,n,r,o){switch(e.type){case"string":case"markdown":case"url":typeof t!="string"?o.push({path:n,message:"expected a string"}):pa(t)!==null&&!Eg(t)&&o.push({path:n,message:`unknown built-in string ${t} (catalog/strings.json)`});return;case"date":(typeof t!="string"||t!==""&&!_m.test(t))&&o.push({path:n,message:"expected yyyy-mm-dd"});return;case"number":typeof t!="number"||!Number.isFinite(t)?o.push({path:n,message:"expected a number"}):e.minimum!==void 0&&t<e.minimum?o.push({path:n,message:`expected at least ${e.minimum}`}):e.maximum!==void 0&&t>e.maximum&&o.push({path:n,message:`expected at most ${e.maximum}`});return;case"boolean":typeof t!="boolean"&&o.push({path:n,message:"expected a boolean"});return;case"enum":{const i=e.values??(e.enum?r.enums[e.enum]:void 0);i?i.includes(t)||o.push({path:n,message:`expected one of ${i.join("|")}`}):o.push({path:n,message:`enum ${e.enum} is not defined`});return}case"icon":(typeof t!="string"||!Im.has(t))&&o.push({path:n,message:"not an icons.json name"});return;case"color":if(Md(t)&&Qt(t)?.group==="color")return;o.push({path:n,message:"expected $color.<name>"});return;case"style":for(const i of Fd(t,{path:n,root:!1}))o.push(i);return;case"array":if(!Array.isArray(t)){o.push({path:n,message:"expected an array"});return}e.items&&t.forEach((i,s)=>ou(e.items,i,`${n}[${s}]`,r,o));return;case"object":{if(typeof t!="object"||t===null||Array.isArray(t)){o.push({path:n,message:"expected an object"});return}if(!e.shape)return;const i=r.defs[e.shape];if(!i){o.push({path:n,message:`shape ${e.shape} is not defined`});return}iu(i.properties,t,n,r,o);return}}}function ou(e,t,n,r,o){if(!(e.bindable&&Me(t))){if(e.responsive&&gi(t)){for(const[i,s]of Object.entries(t))Sl(e,s,`${n}.${i}`,r,o);return}if(e.responsive&&typeof t=="object"&&t!==null&&!Array.isArray(t)&&!Me(t)){o.push({path:n,message:`a responsive value needs base and only ${hi.join("|")} besides`});return}Sl(e,t,n,r,o)}}function iu(e,t,n,r,o){for(const[i,s]of Object.entries(e)){const a=t[i];if(a==null){s.required&&o.push({path:`${n}.${i}`,message:"required"});continue}ou(s,a,`${n}.${i}`,r,o)}for(const i of Object.keys(t))i in e||o.push({path:`${n}.${i}`,message:"unknown prop"})}function Mm(e){return Em.has(e)||/^[A-Za-z_][\w-]*(\.[A-Za-z_][\w-]*)+$/.test(e)}function ba(e,t,n){Mm(e.call)||n.push({path:t,message:`unknown function "${e.call}"; known: the catalog functions, or a namespaced host function (app.toast)`})}function Sn(e,t,n){if(Array.isArray(e)){e.forEach((r,o)=>Sn(r,`${t}[${o}]`,n));return}if(!(typeof e!="object"||e===null)){Ur(e)&&ba(e,t,n);for(const[r,o]of Object.entries(e))Sn(o,`${t}.${r}`,n)}}function Ts(e,t,n,r,o){if(Ur(e)){ba(e,n,o),Sn(e.args,`${n}.args`,o);return}if(!t||ma(t))return;if(t.type==="style")return Sn(e,n,o);if(t.type==="array"&&t.items&&Array.isArray(e)){e.forEach((s,a)=>Ts(s,t.items,`${n}[${a}]`,r,o));return}const i=t.type==="object"&&t.shape?r.defs[t.shape]:void 0;if(i&&typeof e=="object"&&e!==null&&!Array.isArray(e))for(const[s,a]of Object.entries(e))Ts(a,i.properties[s],`${n}.${s}`,r,o)}function Dm(e,t,n){if(typeof e!="object"||e===null)return;const{functionCall:r,event:o}=e;Ur(r)&&(ba(r,`${t}.functionCall`,n),Sn(r.args,`${t}.functionCall.args`,n)),typeof o=="object"&&o!==null&&Sn(o.context,`${t}.event.context`,n)}function su(e,t={}){const n=[],r=ru(t.extensions),o=r.components[e.component];if(e.style!==void 0)for(const i of Fd(e.style,{path:"style"}))n.push(i);for(const[i,s]of Object.entries(e.props))Ts(s,o?.props[i],`props.${i}`,r,n);e.visible!==void 0&&Sn(e.visible,"visible",n);for(const[i,s]of Object.entries(e.on??{}))Dm(s,`on.${i}`,n);if(e.component==="Table"&&Array.isArray(e.props.columns)){const i=Object.keys(e.slots??{});e.props.columns.forEach((s,a)=>{if(typeof s!="object"||s===null||s.type!=="slot")return;const l=s.slot;typeof l!="string"?n.push({path:`props.columns[${a}].slot`,message:"a slot column names one of the Table's slots"}):i.includes(l)||n.push({path:`props.columns[${a}].slot`,message:`no slot "${l}" on this Table; slots: ${i.join("|")||"none"}`})})}return n}function au(e,t,n={}){const r=[];return iu(e.props,t,n.path??"props",ru(n.extensions),r),r}const Pm="Round 2 (docs/round-2-contract.md §7): the layout NUMBERS every painter shares where no theme token decides (px unless noted). `windowThreshold` = items past which List and Table window; `windowOverscan` = items rendered beyond each viewport edge; `resizeStep` = percentage points per arrow key on a Resizable handle; `panelMin` = a panel's min (percent) when unset; `resizeHandleHit` = a handle's hit area across its hairline; `fieldIntrinsicWidth` = the max-content width of a text field (Input, Textarea, NumberField, ChipInput: never the browser's `size` default) — picker triggers (Select, DatePicker, DateRangePicker, TimePicker) size to their content; `mediaIntrinsicWidth` = the max-content width of an Image/Video without a width (its min-content is 0); `mediaAspectRatio` = width/height of an Image without `aspectRatio` or a height (Video: its `aspectRatio` default); `treeGuideColumn` = one TreeGuides gutter column (the recipe's `line` width is the STROKE; round 3: 14, the ×4 app indent, the elbow lands on the parent's lead glyph); `treeGuideRadius` = the elbow's corner radius; `treeGuideBridge` = how far the guide verticals overshoot the row's TOP edge (paint only) so a Section's hairline divider never breaks the line. EXP-1259 (packages/domain-contract/fixtures/feedback-states.json + search-list.json): `pendingDelayMs` = how long a `loading` Button waits before it shows the spinner and its `pendingLabel` (a fast action never flashes; presses are refused at once); `skeletonPulseMs` / `skeletonOpacityLow` / `skeletonOpacityHigh` = the placeholder's ONE opacity pulse (low → high → low, ease-in-out), `skeletonReducedOpacity` = its static opacity under reduce motion; `searchListFade` = the bottom fade over a SearchList (or a searchable submenu) while more rows sit below. Generated into every target; src/layout.ts reads it.",Om=50,Fm=5,zm=10,Rm=10,Nm=8,Lm=160,jm=320,Bm=1.7777778,Wm=14,Hm=3,Um=1,qm=150,Vm=1600,Km=.45,Gm=.9,Ym=.6,Xm=24,Ye={$comment:Pm,windowThreshold:Om,windowOverscan:Fm,resizeStep:zm,panelMin:Rm,resizeHandleHit:Nm,fieldIntrinsicWidth:Lm,mediaIntrinsicWidth:jm,mediaAspectRatio:Bm,treeGuideColumn:Wm,treeGuideRadius:Hm,treeGuideBridge:Um,pendingDelayMs:qm,skeletonPulseMs:Vm,skeletonOpacityLow:Km,skeletonOpacityHigh:Gm,skeletonReducedOpacity:Ym,searchListFade:Xm};Object.fromEntries(Object.entries(Ye).filter(([e])=>!e.startsWith("$")));const va=Ye.windowThreshold,lu=Ye.windowOverscan,Zm=Ye.resizeStep,Qm=Ye.panelMin,Cl=Ye.resizeHandleHit,Jm=Ye.mediaIntrinsicWidth,Is=Ye.mediaAspectRatio,Hi=Ye.treeGuideColumn,ey=Ye.treeGuideRadius,Ui=Ye.treeGuideBridge,ty=Ye.pendingDelayMs,ny=Ye.skeletonPulseMs,Al=Ye.skeletonOpacityLow,ry=Ye.skeletonOpacityHigh,oy=Ye.skeletonReducedOpacity,iy=Ye.searchListFade;function cu(e,t){const n=new Set;return e.map((r,o)=>{let i=String(o);if(t!==void 0){const s=fi(r,t.startsWith("/")?t:`/${t}`),a=s==null||s===""?null:typeof s=="object"?JSON.stringify(s):String(s);for(i=a!==null&&!n.has(a)?a:`#${o}`;n.has(i);)i=`#${i}`}return n.add(i),i})}const sy=e=>e.replace(/~/g,"~0").replace(/\//g,"~1");function ay(e,t="id"){return cu(e,`/${sy(t)}`)}const ly=e=>e.replace(/~/g,"~0").replace(/\./g,"~1"),du=(e,t)=>`${e}\0${t}`;function Tl(e){let t=0;const n=[e];for(;n.length;){const r=n.pop();t++;for(const o of Object.values(r.slots??{}))n.push(o);for(const o of r.children)n.push(o)}return t}function cy(e,t,n){const r=new Map,o=new Map,i=d=>{let u=o.get(d);return u===void 0&&o.set(d,u=Tl(d)),u};let s=0,a=Tl(e),l=null;const c=[{node:e,scope:""}];for(;c.length;){const d=c.pop();if("site"in d){if(l||d.index>=d.length||(s>=Gd?l={id:d.component,message:Tt.templateItems}:a+d.size>qr&&(l={id:d.component,message:Tt.components}),l))continue;s++,a+=d.size,r.set(d.site,d.index+1),c.push({...d,index:d.index+1}),c.push({node:d.tpl,scope:`${d.path}/${d.index}`});continue}const{node:u,scope:p}=d,h=[];for(const m of Object.values(u.slots??{}))h.push({node:m,scope:p});for(const m of u.children)h.push({node:m,scope:p});const f=u.template,b=f?n(f.component):void 0;if(f&&b){const m=Qd(f.path,{base:p}),v=fi(t,m),g=Array.isArray(v)&&u.component==="List"&&u.children.length+v.length>va;if(Array.isArray(v)&&!g){const y=du(u.id,p);r.set(y,0),h.push({site:y,component:f.component,tpl:b,path:m,size:i(b),index:0,length:v.length})}}for(let m=h.length-1;m>=0;m--)c.push(h[m])}return{allowed:r,issue:l}}function xa(e,t=0){const n=new Array(e.length+1);let r=0;for(let o=0;o<e.length;o++)n[o]=r,r+=e[o]+(o<e.length-1?t:0);return n[e.length]=r,n}function dy(e,t){let n=0,r=0;for(const i of e)typeof i=="number"&&(n+=i,r++);const o=r?n/r:t;return e.map(i=>typeof i=="number"?i:o)}function Es(e,t,n){for(;e<t;){const r=e+t>>>1;n(r)?t=r:e=r+1}return e}function uy(e,t,n,r,o=lu,i){const s=e.length,a=i??xa(e,t),l=a[s];let c=Es(0,s,h=>a[h]+e[h]>=n),d=Es(c,s,h=>a[h]>=n+r);if(c=Math.max(0,c-o),d=Math.min(s,d+o),d<=c)return{start:c,end:c,before:0,after:l,total:l};const u=a[c],p=l-(a[d-1]+e[d-1]);return{start:c,end:d,before:u,after:p,total:l}}function py(e,t,n,r,o,i="nearest",s=0,a){const l=xa(e,t),c=l[e.length];if(n<0||n>=e.length)return o;const d=l[n],u=e[n];let p=o;return i==="start"?p=d-s:i==="end"?p=d+u-r:i==="center"?p=d+u/2-(r+s)/2:d-s<o?p=d-s:d+u>o+r&&(p=d+u-r),Math.max(0,Math.min(Math.max(0,c-r),p))}function fy(e,t){const n=[],r=t.startsWith("/")?t:`/${t}`;return e.forEach((o,i)=>{const s=fi(o,r),a=s==null?"":typeof s=="object"?JSON.stringify(s):String(s),l=n.at(-1);l&&l.value===a?l.count++:n.push({value:a,start:i,count:1})}),n}function hy(e){const t=[];return e.forEach((n,r)=>{t.push({header:r});for(let o=0;o<n.count;o++)t.push({item:n.start+o})}),t}function gy(e,t,n,r){const o=Es(0,n.length,c=>e[n[c]]>r)-1;if(o<0)return null;const i=n[o],s=n[o+1],a=t[i],l=s===void 0?r:Math.min(r,e[s]-a);return{row:i,offset:l}}const Vt=1e-9,Vn=(e,t,n)=>Math.max(t,Math.min(n,e)),at=e=>{const t=Math.round(e*1e6)/1e6;return Object.is(t,-0)?0:t};function Er(e,t,n){const r=e?.[t]??{},o=100/Math.max(1,n),i=Vn(typeof r.min=="number"&&Number.isFinite(r.min)?r.min:Qm,0,o),s=Vn(typeof r.max=="number"&&Number.isFinite(r.max)?r.max:100,i,100);return{min:i,max:s,collapsible:r.collapsible===!0}}function my(e,t,n){if(t<=0)return[];const r=Array.from({length:t},(c,d)=>{const u=e?.[d];return typeof u=="number"&&Number.isFinite(u)&&u>=0?u:null}),o=r.filter(c=>c===null).length;let i;if(o===t)i=r.map(()=>100/t);else{const c=r.reduce((u,p)=>u+(p??0),0),d=Math.max(0,100-c);i=r.map(u=>u??d/o)}const s=i.reduce((c,d)=>c+d,0);i=s>Vt?i.map(c=>c*100/s):i.map(()=>100/t);const a=i.map((c,d)=>Er(n,d,t));i=i.map((c,d)=>a[d].collapsible&&c<=Vt?0:Vn(c,a[d].min,a[d].max));let l=100-i.reduce((c,d)=>c+d,0);for(let c=0;c<t&&Math.abs(l)>Vt;c++){if(a[c].collapsible&&i[c]===0)continue;const d=l>0?a[c].max-i[c]:a[c].min-i[c],u=l>0?Math.min(l,d):Math.max(l,d);i[c]+=u,l-=u}return i.map(at)}function wo(e,t,n,r){const o=[...e],i=t,s=t+1;if(i<0||s>=e.length||!Number.isFinite(n))return o.map(at);const a=Er(r,i,e.length),l=Er(r,s,e.length),c=Math.max(a.min-e[i],e[s]-l.max),d=Math.min(a.max-e[i],e[s]-l.min);let u=Vn(n,Math.min(c,0),Math.max(d,0));return a.collapsible&&n<0&&e[i]>0&&e[i]+n<a.min/2&&e[s]+e[i]<=l.max+Vt?u=-e[i]:l.collapsible&&n>0&&e[s]>0&&e[s]-n<l.min/2&&e[i]+e[s]<=a.max+Vt?u=e[s]:a.collapsible&&e[i]===0?u=n>=a.min/2&&d>=a.min-Vt?Vn(n,a.min,d):0:l.collapsible&&e[s]===0&&(u=-n>=l.min/2&&-c>=l.min-Vt?-Vn(-n,l.min,-c):0),o[i]=e[i]+u,o[s]=e[s]-u,o.map(at)}function yy(e,t,n,r,o="ltr",i){const s=t,a=t+1;if(s<0||a>=e.length)return e.map(at);const l=Er(i,s,e.length),c=Er(i,a,e.length),d=r==="horizontal"&&o==="rtl"?-1:1,u=p=>wo(e,t,p*Zm,i);switch(n){case"ArrowRight":return r==="horizontal"?u(d):e.map(at);case"ArrowLeft":return r==="horizontal"?u(-d):e.map(at);case"ArrowDown":return r==="vertical"?u(1):e.map(at);case"ArrowUp":return r==="vertical"?u(-1):e.map(at);case"Home":return wo(e,t,l.min-e[s],i);case"End":return wo(e,t,l.max-e[s],i);case"Enter":{const p=[...e];if(l.collapsible){const h=e[s]>0?-e[s]:Math.min(l.min,e[a]-c.min);if(e[a]-h>c.max+Vt||h===0)return e.map(at);p[s]+=h,p[a]-=h}else if(c.collapsible){const h=e[a]>0?e[a]:-Math.min(c.min,e[s]-l.min);if(e[s]+h>l.max+Vt||h===0)return e.map(at);p[s]+=h,p[a]-=h}return p.map(at)}default:return e.map(at)}}function by(e,t,n,r,o="ltr",i=1){const s=Math.max(1,t-Math.max(0,n-1)*i),a=r==="horizontal"&&o==="rtl"?-1:1;return at(e*100/s*a)}const Vr=Object.fromEntries(Object.entries(Mt.animations).filter(([e])=>!e.startsWith("$"))),vy=Object.keys(Vr),xy=e=>{const t=Math.round(e*1e4)/1e4;return Object.is(t,-0)?0:t},gn=e=>String(xy(e)),$y='@property --xui-a-opacity{syntax:"<number>";inherits:false;initial-value:1}@property --xui-band{syntax:"<number>";inherits:true;initial-value:1}';function wy(e){return Vr[e]?.keyframes.some(t=>t.opacity!==void 0)??!1}function ky(e){const t=Vr[e];if(!t)return"";const n=t.keyframes.map(r=>{const o=[];return r.opacity!==void 0&&o.push(`--xui-a-opacity:${gn(r.opacity)}`),(r.translateX!==void 0||r.translateY!==void 0)&&o.push(`translate:${gn(r.translateX??0)}px ${gn(r.translateY??0)}px`),r.rotate!==void 0&&o.push(`rotate:${gn(r.rotate)}deg`),r.scale!==void 0&&o.push(`scale:${gn(r.scale)}`),r.band!==void 0&&o.push(`--xui-band:${gn(r.band)}`),`${gn(r.offset*100)}%{${o.join(";")}}`});return`@keyframes xui-${e}{${n.join("")}}`}const uu=fn.default,Sy=fn.languageAliases;function pu(e){const t=e.replace(/_/g,"-").split("-").filter(Boolean),n=(t[0]??"").toLowerCase(),r=Sy[n]??n,o=t.slice(1).find(i=>/^[A-Za-z]{2}$|^\d{3}$/.test(i));return{language:r,region:o?o.toUpperCase():null}}const Il=(()=>{const e={};for(const[t,n]of Object.entries(fn.weekStart.regions))for(const r of n)e[r]=Number(t);return e})();function Cy(e){const{language:t,region:n}=pu(e);return n??fn.likelyRegion[t]??null}function Ay(e){const t=Cy(e);return t!==null&&t in Il?Il[t]:fn.weekStart.default}function Ty(e){return fn.rtl.includes(pu(e).language)?"rtl":"ltr"}const Iy=fn.rtlMirroredIcons,Ey={operators:"+-*/%=&|<>!?^~:@#",punctuation:"()[]{},.;"},_y={plain:{plain:!0},json:{strings:['"'],keywords:["true","false","null"],keyStrings:!0},js:{lineComment:["//"],blockComment:[["/*","*/"]],strings:['"',"'","`"],multiline:["`"],types:"capitalized",keywords:["async","await","break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","false","finally","for","from","function","if","import","in","instanceof","let","new","null","of","return","static","super","switch","this","throw","true","try","typeof","undefined","var","void","while","with","yield"]},ts:{lineComment:["//"],blockComment:[["/*","*/"]],strings:['"',"'","`"],multiline:["`"],types:"capitalized",typeNames:["any","bigint","boolean","never","number","object","string","symbol","unknown"],keywords:["abstract","as","async","await","break","case","catch","class","const","continue","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","if","implements","import","in","infer","instanceof","interface","is","keyof","let","namespace","new","null","of","private","protected","public","readonly","return","satisfies","static","super","switch","this","throw","true","try","type","typeof","undefined","var","void","while","yield"]},tsx:{lineComment:["//"],blockComment:[["/*","*/"]],strings:['"',"'","`"],multiline:["`"],types:"capitalized",typeNames:["any","bigint","boolean","never","number","object","string","symbol","unknown"],keywords:["abstract","as","async","await","break","case","catch","class","const","continue","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","if","implements","import","in","infer","instanceof","interface","is","keyof","let","namespace","new","null","of","private","protected","public","readonly","return","satisfies","static","super","switch","this","throw","true","try","type","typeof","undefined","var","void","while","yield"]},rust:{lineComment:["//"],blockComment:[["/*","*/"]],strings:['"'],multiline:['"'],types:"capitalized",typeNames:["bool","char","f32","f64","i8","i16","i32","i64","i128","isize","str","u8","u16","u32","u64","u128","usize"],keywords:["as","async","await","break","const","continue","crate","dyn","else","enum","extern","false","fn","for","if","impl","in","let","loop","match","mod","move","mut","pub","ref","return","self","Self","static","struct","super","trait","true","type","unsafe","use","where","while"]},swift:{lineComment:["//"],blockComment:[["/*","*/"]],strings:['"'],types:"capitalized",keywords:["any","as","associatedtype","async","await","break","case","catch","class","continue","default","defer","do","else","enum","extension","fallthrough","false","for","func","guard","if","import","in","init","inout","internal","is","let","nil","private","protocol","public","repeat","rethrows","return","self","Self","some","static","struct","subscript","super","switch","throw","throws","true","try","typealias","var","where","while"]},kotlin:{lineComment:["//"],blockComment:[["/*","*/"]],strings:['"',"'"],types:"capitalized",keywords:["as","break","by","catch","class","companion","constructor","continue","data","do","else","enum","false","finally","for","fun","if","import","in","init","interface","internal","is","lateinit","null","object","open","override","package","private","protected","public","return","sealed","super","suspend","this","throw","true","try","typealias","val","var","when","while"]},python:{lineComment:["#"],strings:['"',"'"],types:"capitalized",keywords:["False","None","True","and","as","assert","async","await","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","nonlocal","not","or","pass","raise","return","self","try","while","with","yield"]},bash:{lineComment:["#"],strings:['"',"'"],multiline:['"',"'"],keywords:["case","do","done","echo","elif","else","esac","exit","export","fi","for","function","if","in","local","readonly","return","then","until","while"]},html:{markup:!0,blockComment:[["<!--","-->"]],strings:['"',"'"],numbers:!1},css:{blockComment:[["/*","*/"]],strings:['"',"'"],identExtra:"-@",keyIdents:!0,operators:"+*/%=&|<>!?^~:#",keywords:["@container","@font-face","@import","@keyframes","@layer","@media","@supports","auto","important","inherit","initial","none","unset"]},sql:{lineComment:["--"],blockComment:[["/*","*/"]],strings:["'",'"'],caseInsensitive:!0,keywords:["all","alter","and","as","asc","between","by","case","create","default","delete","desc","distinct","drop","else","end","exists","foreign","from","group","having","in","index","inner","insert","into","is","join","key","left","like","limit","not","null","offset","on","or","order","outer","primary","references","returning","right","select","set","table","then","union","update","values","when","where","with"]},yaml:{lineComment:["#"],strings:['"',"'"],keyIdents:!0,identExtra:"-",keywords:["true","false","null","yes","no"]},markdown:{lineKinds:{"#":"keyword",">":"comment"},strings:["`"],numbers:!1,operators:"",punctuation:""},ansi:{ansi:!0,numbers:!1,operators:"",punctuation:"",lineKinds:{"$ ":"comment","> ":"comment","BUILD SUCCESSFUL":"success","BUILD FAILED":"error","PASS ":"success","FAIL ":"error",FAILED:"error","(pass)":"success","(fail)":"error","test result: ok":"success","test result: FAILED":"error","error:":"error","error[":"error","Error:":"error","warning:":"warning","✓":"success","✔":"success","✗":"error","✘":"error"}}},_s={defaults:Ey,languages:_y},Ms=_s.languages,zn=e=>e!==void 0&&e>="0"&&e<="9",Rn=e=>e!==void 0&&(e>="a"&&e<="z"||e>="A"&&e<="Z"),rn=e=>e===" "||e===" ";function El(e,t){let n=t;for(;rn(e[n]);)n++;return e[n]}function fu(e,t,n=!0){const r=[],o=e.length,i=t.operators??_s.defaults.operators,s=t.punctuation??_s.defaults.punctuation,a=t.identExtra??"",l=m=>Rn(m)||m==="_"||m==="$"||m!==void 0&&a.includes(m),c=m=>l(m)||zn(m),d=new Set(t.keywords??[]),u=new Set(t.typeNames??[]),p=(m,v)=>r.push({kind:m,text:v}),h=()=>{for(let m=r.length-1;m>=0;m--)if(r[m].text.trim()!=="")return r[m]};if(t.plain)return e?[{kind:"plain",text:e}]:[];let f=0,b=!1;for(;f<o;){const m=e[f];if(m===`
2
+ `){p("plain",m),f++;continue}if(t.lineKinds&&(f===0?n:e[f-1]===`
3
+ `||hu(e,f,n))){let y;for(const k of Object.keys(t.lineKinds))e.startsWith(k,f)&&(!y||k.length>y.length)&&(y=k);if(y&&!rn(m)){let k=f;for(;k<o&&e[k]!==`
4
+ `;)k++;p(t.lineKinds[y],e.slice(f,k)),f=k;continue}}if(b?void 0:(t.lineComment??[]).find(y=>e.startsWith(y,f))){let y=f;for(;y<o&&e[y]!==`
5
+ `;)y++;p("comment",e.slice(f,y)),f=y;continue}const g=b?void 0:(t.blockComment??[]).find(([y])=>e.startsWith(y,f));if(g){const y=e.indexOf(g[1],f+g[0].length),k=y<0?o:y+g[1].length;p("comment",e.slice(f,k)),f=k;continue}if((t.strings??[]).includes(m)&&(!t.markup||b)){const y=(t.multiline??[]).includes(m);let k=f+1;for(;k<o;){if(e[k]==="\\"){k+=2;continue}if(e[k]===m){k++;break}if(e[k]===`
6
+ `&&!y)break;k++}k=Math.min(k,o);const w=t.keyStrings&&El(e,k)===":"?"property":"string";p(w,e.slice(f,k)),f=k;continue}if(t.markup){if(!b){if(m==="<"&&(Rn(e[f+1])||e[f+1]==="/"||e[f+1]==="!")){const k=e[f+1]==="/"?"</":"<";p("punctuation",k);let w=f+k.length;const _=w;for(;w<o&&(Rn(e[w])||zn(e[w])||e[w]==="-"||e[w]===":"||e[w]==="!");)w++;w>_&&p("tag",e.slice(_,w)),b=!0,f=w;continue}let y=f;for(;y<o&&e[y]!=="<"&&e[y]!==`
7
+ `;)y++;y===f&&(y=f+1),p("plain",e.slice(f,y)),f=y;continue}if(m===">"||e.startsWith("/>",f)){const y=m===">"?">":"/>";p("punctuation",y),b=!1,f+=y.length;continue}if(m==="="){p("operator",m),f++;continue}if(Rn(m)||m==="_"||m===":"||m==="@"){let y=f;for(;y<o&&(Rn(e[y])||zn(e[y])||"_:@.-".includes(e[y]));)y++;p("attribute",e.slice(f,y)),f=y;continue}if(rn(m)){let y=f;for(;rn(e[y]);)y++;p("plain",e.slice(f,y)),f=y;continue}p("plain",m),f++;continue}if(t.numbers!==!1&&(zn(m)||m==="."&&zn(e[f+1]))){let y=f+1;for(;y<o&&(zn(e[y])||Rn(e[y])||e[y]==="_"||e[y]===".");)y++;p("number",e.slice(f,y)),f=y;continue}if(l(m)){let y=f+1;for(;y<o&&c(e[y]);)y++;const k=e.slice(f,y),w=t.caseInsensitive?k.toLowerCase():k,_=El(e,y),T=(()=>{let P=y;for(;rn(e[P]);)P++;return e[P+1]})(),C=h();let M="plain";d.has(w)?M="keyword":t.keyIdents&&_===":"&&T!==":"?M="property":_==="("?M="function":C&&C.kind==="punctuation"&&C.text.endsWith(".")?M="property":(u.has(k)||t.types==="capitalized"&&k[0]>="A"&&k[0]<="Z")&&(M="type"),p(M,k),f=y;continue}if(rn(m)){let y=f;for(;rn(e[y]);)y++;p("plain",e.slice(f,y)),f=y;continue}if(i.includes(m)){let y=f;for(;y<o&&i.includes(e[y]);)y++;p("operator",e.slice(f,y)),f=y;continue}p(s.includes(m)?"punctuation":"plain",m),f++}return r}function hu(e,t,n=!0){let r=t-1;for(;r>=0&&rn(e[r]);)r--;return r<0?n:e[r]===`
8
+ `}const My=e=>e>=48&&e<=63,Dy=e=>e>=32&&e<=47,Py=e=>e>=64&&e<=126;function Oy(e,t){let n=t;for(const r of e.split(";")){const o=r===""?0:Number(r);o===0||o===39?n=null:o===31||o===91?n="error":o===32||o===92?n="success":o===33||o===93?n="warning":(o===2||o===90)&&(n="comment")}return n}function gu(e){const t=[];let n=null,r="";const o=()=>{if(r==="")return;const a=t.at(-1);a&&a.kind===n?a.text+=r:t.push({kind:n,text:r}),r=""};let i=0;const s=e.length;for(;i<s;){if(e.charCodeAt(i)===27&&e[i+1]==="["){let a=i+2;for(;a<s&&My(e.charCodeAt(a));)a++;const l=e.slice(i+2,a);for(;a<s&&Dy(e.charCodeAt(a));)a++;if(a<s&&Py(e.charCodeAt(a))){if(e[a]==="m"){const c=Oy(l,n);c!==n&&(o(),n=c)}i=a+1;continue}}r+=e[i],i++}return o(),t}function Fy(e,t){const n=[];let r=!0;for(const o of gu(e))o.kind?n.push({kind:o.kind,text:o.text}):n.push(...fu(o.text,t,r)),r=hu(o.text,o.text.length,r);return n}function zy(e,t){const n=e.replace(/\r\n?/g,`
9
+ `);return Ms[t]?.ansi?gu(n).map(r=>r.text).join(""):n}function Ry(e,t){const n=e.replace(/\r\n?/g,`
10
+ `),r=Ms[t]??Ms.plain,o=[[]];for(const i of r.ansi?Fy(n,r):fu(n,r))i.text.split(`
11
+ `).forEach((a,l)=>{if(l>0&&o.push([]),a==="")return;const c=o.at(-1),d=c.at(-1);d&&d.kind===i.kind?d.text+=a:c.push({kind:i.kind,text:a})});return o}const Ny=/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/;function jo(e){return Math.max(0,Math.min(1,e))}function qi(e){const t=jo(e);return t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055}function _l(e,t,n){const r=e+.3963377774*t+.2158037573*n,o=e-.1055613458*t-.0638541728*n,i=e-.0894841775*t-1.291485548*n,s=r*r*r,a=o*o*o,l=i*i*i;return[qi(4.0767416621*s-3.3077115913*a+.2309699292*l),qi(-1.2684380046*s+2.6097574011*a-.3413193965*l),qi(-.0041960863*s-.7034186147*a+1.707614701*l)]}function Ml(e,t,n){const r=s=>(s+e/30)%12,o=t*Math.min(n,1-n),i=s=>n-o*Math.max(-1,Math.min(r(s)-3,Math.min(9-r(s),1)));return[i(0),i(8),i(4)]}function Ly(e){if(e===void 0)return 1;const t=e.trim();return t.endsWith("%")?jo(parseFloat(t)/100):jo(parseFloat(t))}function lo(e){const t=e.trim();return t.endsWith("%")?parseFloat(t)/100:parseFloat(t)}function Vi(e){const t=e.trim();return t.endsWith("deg")?parseFloat(t):t.endsWith("turn")?parseFloat(t)*360:t.endsWith("rad")?parseFloat(t)*180/Math.PI:parseFloat(t)}function Bo(e){if(typeof e!="string")return null;const t=e.trim(),n=Ny.exec(t);if(n){let s=n[1];s.length<=4&&(s=[...s].map(l=>l+l).join(""));const a=l=>parseInt(s.slice(l,l+2),16);return{r:a(0),g:a(2),b:a(4),a:s.length===8?a(6)/255:1}}const r={white:"#ffffff",black:"#000000",transparent:"#00000000"};if(r[t.toLowerCase()])return Bo(r[t.toLowerCase()]);const o=/^([a-z]+)\((.*)\)$/i.exec(t);if(o){const s=o[1].toLowerCase(),[a,l]=o[2].split("/"),c=a.trim().split(/[\s,]+/).filter(Boolean),d=Ly(l??(c.length===4?c[3]:void 0));if(s==="oklch"&&c.length>=3){const u=lo(c[0]),p=c[1].endsWith("%")?parseFloat(c[1])/100*.4:parseFloat(c[1]),h=Vi(c[2]),[f,b,m]=_l(u,p*Math.cos(h*Math.PI/180),p*Math.sin(h*Math.PI/180));return{r:st(f),g:st(b),b:st(m),a:d}}if(s==="oklab"&&c.length>=3){const[u,p,h]=_l(lo(c[0]),parseFloat(c[1]),parseFloat(c[2]));return{r:st(u),g:st(p),b:st(h),a:d}}if((s==="hsl"||s==="hsla")&&c.length>=3){const[u,p,h]=Ml(Vi(c[0]),lo(c[1]),lo(c[2]));return{r:st(u),g:st(p),b:st(h),a:d}}if((s==="rgb"||s==="rgba")&&c.length>=3){const u=p=>p.endsWith("%")?st(parseFloat(p)/100):Math.round(parseFloat(p));return{r:u(c[0]),g:u(c[1]),b:u(c[2]),a:d}}return null}const i=/^(-?[\d.]+(?:deg)?)\s+([\d.]+)%\s+([\d.]+)%$/.exec(t);if(i){const[s,a,l]=Ml(Vi(i[1]),parseFloat(i[2])/100,parseFloat(i[3])/100);return{r:st(s),g:st(a),b:st(l),a:1}}return null}function st(e){return Math.round(jo(e)*255)}function $a(e){return typeof e=="string"&&/^#([0-9a-f]{6}|[0-9a-f]{8})$/.test(e)}function Dl(e){const t=n=>{const r=n/255;return r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)};return .2126*t(e.r)+.7152*t(e.g)+.0722*t(e.b)}const jy=Mt.textShimmer,mi=Mt.voiceWave,wa=["idle","listening","thinking","speaking","muted"],By=["outer","mid","inner"],Wo=e=>Number.isFinite(e)?Math.min(1,Math.max(0,e)):0,ut=e=>Math.round(e*100)/100;function mu(e,t,n=!1){const r=ka(e);return n||r==="idle"||r==="muted"?0:(Number.isFinite(t)?Math.max(0,t):0)*mi.phaseSpeed}function yu(e){const t=mi;return e<40?0:ut(e*(e>=100?t.childScaleLarge:t.childScale))}function bu(e,t){const n=yu(e),r=Math.max(0,t.width),o=Math.max(0,t.height),i=Math.max(r,o),s=n===0?0:i<=n||i===0?1:Math.round(n/i*1e4)/1e4,a=ut(r*s),l=ut(o*s);return{x:ut((e-a)/2),y:ut((e-l)/2),width:a,height:l,scale:s}}function ka(e){return wa.includes(e)?e:"idle"}function Wy(e){const t={...e,activity:ka(e.activity)},n=mi,r=Math.max(0,t.size),o=r/2,i=Wo(t.level??0),s=(t.bands??[]).slice(0,n.maxBands).map(Wo),a=mu(t.activity,t.elapsed??0,t.reducedMotion),l=t.activity==="listening"||t.activity==="speaking"?n.ampBase+n.ampLevel*i:t.activity==="thinking"?n.thinkingAmp:0,c=s.length===0||t.activity==="thinking",u={rings:By.map((p,h)=>{const f=n.harmonics[h],b=n.ringAmp[h]*r*l/200,m=[];for(let v=0;v<=n.steps;v+=1){const g=v/n.steps*Math.PI*2;let y=r*n.radius[h];f.forEach((k,w)=>{const _=c?1:s[(3*h+w)%s.length];y+=b/(w+1)*_*Math.sin(k*g+(n.phase0[h]+a)*(w+1))}),m.push([ut(o+y*Math.cos(g)),ut(o+y*Math.sin(g))])}return{part:p,points:m,fillAlpha:n.fillAlpha[h],strokeAlpha:n.strokeAlpha[h],strokeWidth:ut(Math.max(1,n.strokeWidth[h]*r/200))}}),childSize:yu(r),phase:ut(a)};return t.child&&(u.child=bu(r,t.child)),u}function Hy(e){return`${e.points.map(([t,n],r)=>`${r===0?"M":"L"}${t} ${n}`).join(" ")}Z`}const Ds=Mt.voiceWave.bars,Uy=["sm","md","lg","xl"],qy=["ring","bars"];function Vy(e){return qy.includes(e)?e:"ring"}function Ky(e){const t=Uy.includes(e)?e:"md",n=Ds.sizes[t],r=Ds.count;return{width:r*n.barWidth+(r-1)*n.gap,height:n.height,barWidth:n.barWidth,gap:n.gap}}function Gy(e){const t=ka(e.activity),n=mi,r=Ds,o=Ky(e.size),i=Wo(e.level??0),s=(e.bands??[]).slice(0,n.maxBands).map(Wo),a=mu(t,e.elapsed??0,e.reducedMotion),l=n.ampBase+n.ampLevel,c=t==="listening"||t==="speaking"?(n.ampBase+n.ampLevel*i)/l:t==="thinking"?n.thinkingAmp/l:0,d=s.length===0||t==="thinking",u=r.count,p=[];for(let h=0;h<u;h+=1){const f=d?1:s[h%s.length],b=1-r.envelope*Math.abs(2*h/(u-1)-1),m=.5+.5*Math.sin(r.shapeFreq*h+a*(1+h%3*.5)),v=r.minFraction+(1-r.minFraction)*c*f*b*(r.shapeBase+(1-r.shapeBase)*m),g=ut(o.height*v);p.push({x:h*(o.barWidth+o.gap),y:ut((o.height-g)/2),width:o.barWidth,height:g,radius:o.barWidth/2})}return{width:o.width,height:o.height,phase:ut(a),bars:p}}const Yy=Mt.qrCode,Xy=["L","M","Q","H"];function Zy(e){return Xy.includes(e)?e:"M"}const vu=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],xu=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],Qy={L:1,M:0,Q:3,H:2},$u={L:0,M:1,Q:2,H:3},Pl=3,Jy=3,co=40,e0=10;function t0(e){return[...new TextEncoder().encode(e)]}function wu(e){let t=(16*e+128)*e+64;if(e>=2){const n=Math.floor(e/7)+2;t-=(25*n-10)*n-55,e>=7&&(t-=36)}return t}function ku(e,t){const n=$u[t];return Math.floor(wu(e)/8)-vu[n][e]*xu[n][e]}const Ps=e=>e<10?8:16;function Os(e,t){let n=0;for(let r=7;r>=0;r--)n=n<<1^(n>>>7)*285,n^=(t>>>r&1)*e;return n&255}function n0(e){const t=new Array(e-1).fill(0);t.push(1);let n=1;for(let r=0;r<e;r++){for(let o=0;o<t.length;o++)t[o]=Os(t[o],n),o+1<t.length&&(t[o]=t[o]^t[o+1]);n=Os(n,2)}return t}function r0(e,t){const n=t.map(()=>0);for(const r of e){const o=r^n.shift();n.push(0),t.forEach((i,s)=>n[s]=n[s]^Os(i,o))}return n}class o0{constructor(t,n){this.version=t,this.level=n,this.size=t*4+17,this.modules=Array.from({length:this.size},()=>new Array(this.size).fill(!1)),this.isFunction=Array.from({length:this.size},()=>new Array(this.size).fill(!1))}version;level;size;modules;isFunction;setFunction(t,n,r){this.modules[n][t]=r,this.isFunction[n][t]=!0}drawFunctionPatterns(){for(let r=0;r<this.size;r++)this.setFunction(6,r,r%2===0),this.setFunction(r,6,r%2===0);this.drawFinder(3,3),this.drawFinder(this.size-4,3),this.drawFinder(3,this.size-4);const t=this.alignmentPositions(),n=t.length;for(let r=0;r<n;r++)for(let o=0;o<n;o++)r===0&&o===0||r===0&&o===n-1||r===n-1&&o===0||this.drawAlignment(t[r],t[o]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(t){const n=Qy[this.level]<<3|t;let r=n;for(let s=0;s<10;s++)r=r<<1^(r>>>9)*1335;const o=(n<<10|r)^21522,i=s=>(o>>>s&1)!==0;for(let s=0;s<=5;s++)this.setFunction(8,s,i(s));this.setFunction(8,7,i(6)),this.setFunction(8,8,i(7)),this.setFunction(7,8,i(8));for(let s=9;s<15;s++)this.setFunction(14-s,8,i(s));for(let s=0;s<8;s++)this.setFunction(this.size-1-s,8,i(s));for(let s=8;s<15;s++)this.setFunction(8,this.size-15+s,i(s));this.setFunction(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let t=this.version;for(let r=0;r<12;r++)t=t<<1^(t>>>11)*7973;const n=this.version<<12|t;for(let r=0;r<18;r++){const o=(n>>>r&1)!==0,i=this.size-11+r%3,s=Math.floor(r/3);this.setFunction(i,s,o),this.setFunction(s,i,o)}}drawFinder(t,n){for(let r=-4;r<=4;r++)for(let o=-4;o<=4;o++){const i=Math.max(Math.abs(o),Math.abs(r)),s=t+o,a=n+r;s>=0&&s<this.size&&a>=0&&a<this.size&&this.setFunction(s,a,i!==2&&i!==4)}}drawAlignment(t,n){for(let r=-2;r<=2;r++)for(let o=-2;o<=2;o++)this.setFunction(t+o,n+r,Math.max(Math.abs(o),Math.abs(r))!==1)}alignmentPositions(){if(this.version===1)return[];const t=Math.floor(this.version/7)+2,n=Math.floor((this.version*8+t*3+5)/(t*4-4))*2,r=[6];for(let o=this.size-7;r.length<t;o-=n)r.splice(1,0,o);return r}addEccAndInterleave(t){const n=$u[this.level],r=xu[n][this.version],o=vu[n][this.version],i=Math.floor(wu(this.version)/8),s=r-i%r,a=Math.floor(i/r),l=[],c=n0(o);for(let u=0,p=0;u<r;u++){const h=t.slice(p,p+a-o+(u<s?0:1));p+=h.length;const f=r0(h,c);u<s&&h.push(0),l.push(h.concat(f))}const d=[];for(let u=0;u<l[0].length;u++)l.forEach((p,h)=>{(u!==a-o||h>=s)&&d.push(p[u])});return d}drawCodewords(t){let n=0;for(let r=this.size-1;r>=1;r-=2){r===6&&(r=5);for(let o=0;o<this.size;o++)for(let i=0;i<2;i++){const s=r-i,l=(r+1&2)===0?this.size-1-o:o;!this.isFunction[l][s]&&n<t.length*8&&(this.modules[l][s]=(t[n>>>3]>>>7-(n&7)&1)!==0,n++)}}}applyMask(t){for(let n=0;n<this.size;n++)for(let r=0;r<this.size;r++){let o;switch(t){case 0:o=(r+n)%2===0;break;case 1:o=n%2===0;break;case 2:o=r%3===0;break;case 3:o=(r+n)%3===0;break;case 4:o=(Math.floor(r/3)+Math.floor(n/2))%2===0;break;case 5:o=r*n%2+r*n%3===0;break;case 6:o=(r*n%2+r*n%3)%2===0;break;default:o=((r+n)%2+r*n%3)%2===0;break}!this.isFunction[n][r]&&o&&(this.modules[n][r]=!this.modules[n][r])}}penaltyScore(){let t=0;const n=this.size;for(let s=0;s<n;s++){let a=!1,l=0;const c=[0,0,0,0,0,0,0];for(let d=0;d<n;d++)this.modules[s][d]===a?(l++,l===5?t+=Pl:l>5&&t++):(this.finderPenaltyAddHistory(l,c),a||(t+=this.finderPenaltyCountPatterns(c)*co),a=this.modules[s][d],l=1);t+=this.finderPenaltyTerminateAndCount(a,l,c)*co}for(let s=0;s<n;s++){let a=!1,l=0;const c=[0,0,0,0,0,0,0];for(let d=0;d<n;d++)this.modules[d][s]===a?(l++,l===5?t+=Pl:l>5&&t++):(this.finderPenaltyAddHistory(l,c),a||(t+=this.finderPenaltyCountPatterns(c)*co),a=this.modules[d][s],l=1);t+=this.finderPenaltyTerminateAndCount(a,l,c)*co}for(let s=0;s<n-1;s++)for(let a=0;a<n-1;a++){const l=this.modules[s][a];l===this.modules[s][a+1]&&l===this.modules[s+1][a]&&l===this.modules[s+1][a+1]&&(t+=Jy)}let r=0;for(const s of this.modules)r=s.reduce((a,l)=>a+(l?1:0),r);const o=n*n,i=Math.ceil(Math.abs(r*20-o*10)/o)-1;return t+=i*e0,t}finderPenaltyCountPatterns(t){const n=t[1],r=n>0&&t[2]===n&&t[3]===n*3&&t[4]===n&&t[5]===n;return(r&&t[0]>=n*4&&t[6]>=n?1:0)+(r&&t[6]>=n*4&&t[0]>=n?1:0)}finderPenaltyTerminateAndCount(t,n,r){return t&&(this.finderPenaltyAddHistory(n,r),n=0),n+=this.size,this.finderPenaltyAddHistory(n,r),this.finderPenaltyCountPatterns(r)}finderPenaltyAddHistory(t,n){n[0]===0&&(t+=this.size),n.pop(),n.unshift(t)}}function i0(e,t,n){const r=[],o=(a,l)=>{for(let c=l-1;c>=0;c--)r.push(a>>>c&1)};o(4,4),o(e.length,Ps(t));for(const a of e)o(a,8);const i=ku(t,n)*8;o(0,Math.min(4,i-r.length)),o(0,(8-r.length%8)%8);for(let a=236;r.length<i;a^=253)o(a,8);const s=new Array(r.length/8).fill(0);return r.forEach((a,l)=>s[l>>>3]=s[l>>>3]|a<<7-(l&7)),s}function s0(e,t){for(let n=1;n<=40;n++){const r=4+Ps(n)+e*8;if(e<1<<Ps(n)&&r<=ku(n,t)*8)return n}return null}function a0(e,t="M"){const n=Zy(t);if(typeof e!="string"||e.length===0)return null;const r=t0(e),o=s0(r.length,n);if(o===null)return null;const i=new o0(o,n);i.drawFunctionPatterns(),i.drawCodewords(i.addEccAndInterleave(i0(r,o,n)));let s=0,a=1/0;for(let l=0;l<8;l++){i.applyMask(l),i.drawFormatBits(l);const c=i.penaltyScore();c<a&&(s=l,a=c),i.applyMask(l)}return i.applyMask(s),i.drawFormatBits(s),{size:i.size,version:o,mask:s,rows:i.modules.map(l=>l.map(c=>c?"1":"0").join(""))}}function l0(e,t,n,r){let o=1/0,i=-1/0;if(e==="stackedBar"){let s=0;for(const a of t)s=Math.max(s,a.values.length);for(let a=0;a<s;a++){let l=0,c=0;for(const d of t){const u=d.values[a];Number.isFinite(u)&&(u>0?l+=u:c+=u)}l>i&&(i=l),c<o&&(o=c)}}else for(const s of t)for(const a of s.values)Number.isFinite(a)&&(a<o&&(o=a),a>i&&(i=a));return e!=="sparkline"&&(o=Math.min(0,o),i=Math.max(0,i)),Number.isFinite(o)||(o=0),Number.isFinite(i)||(i=0),o=n??o,i=r??i,i<=o&&(i=o+1),{min:o,max:i}}function c0(e){let t=1/0,n=-1/0;for(const r of e)for(const o of r.values)Number.isFinite(o)&&(o<t&&(t=o),o>n&&(n=o));return{series:e.map(r=>r.name).filter(Boolean).join(", "),min:Number.isFinite(t)?t:0,max:Number.isFinite(n)?n:0}}function Ol(e,t){const n=Math.floor(Math.log10(e)),r=e/10**n;return(t?r<1.5?1:r<3?2:r<7?5:10:r<=1?1:r<=2?2:r<=5?5:10)*10**n}function d0(e,t,n=5){const r=Math.min(e,t),o=t===e?e+1:Math.max(e,t),i=Ol(o-r,!1),s=Ol(i/Math.max(1,n-1),!0),a=Math.max(0,-Math.floor(Math.log10(s))),l=p=>Number(p.toFixed(a)),c=l(Math.floor(r/s)*s),d=l(Math.ceil(o/s)*s),u=[];for(let p=c,h=0;p<=d+s/2&&h<100;h++,p=c+h*s)u.push(l(p));return{min:c,max:d,step:s,ticks:u}}function u0(e,t){return t?t==="danger"?"$color.destructive":t==="neutral"?"$color.mutedForeground":`$color.${t}`:`$color.chart${e%8+1}`}const p0=.6,Un=ia;function Fl(e){return typeof e!="string"?Un.placeholderIcon:(Fs(Un.icons,e)?Un.icons[e]:void 0)??Un.placeholderIcon}function f0(e){return typeof e=="object"&&e!==null&&typeof e.path=="string"}const h0={textVariant(e,t){const n=t.variant;if(n==="h1"||n==="h2"||n==="h3"||n==="h4"){e.component="Heading",e.props={text:e.props.text,level:n};return}e.props.variant=n==="h5"?"label":n==="caption"?"caption":"body"},imageVariant(e,t){const n=t.variant??"mediumFeature";if(n==="avatar"){e.component="Avatar",e.props={src:e.props.src,name:t.description??""};return}const r=n==="icon"?{width:24,height:24}:n==="smallFeature"?{width:120,height:120}:n==="header"?{width:"100%",aspectRatio:3}:{width:"100%",aspectRatio:1.7777778};e.style={...e.style??{},...r}},iconName(e,t){e.props.name=Fl(t.name)},tabs(e,t){const n=Array.isArray(t.tabs)?t.tabs:[];e.props.tabs=n.map(r=>({label:r.title,value:r.child})),e.childrenIds=n.map(r=>r.child),n.length>0&&(e.props.value=n[0].child)},modal(e,t){typeof t.trigger=="string"&&(e.slots.trigger=t.trigger),typeof t.content=="string"&&(e.childrenIds=[t.content]),e.props.open=!1},buttonChild(e,t,n){const r=typeof t.child=="string"?t.child:void 0,o=r?n(r):void 0;o?.component==="Text"?e.props.label=o.text:o?.component==="Icon"?e.props.icon=Fl(o.name):r&&(e.childrenIds=[r]),e.props.icon!==void 0&&e.props.label===void 0&&(e.props.size="icon"),t.action!==void 0&&(e.on={press:t.action})},textField(e,t){e.props.name=t.id;const n=t.variant??"shortText";if(n==="longText"?e.component="Textarea":e.props.type=n==="number"?"number":n==="obscured"?"password":"text",typeof t.validationRegexp=="string"){const r=f0(t.value)?t.value.path:t.id,o=Array.isArray(e.props.checks)?[...e.props.checks]:[];o.push({condition:{call:"regex",args:{value:{path:r},pattern:t.validationRegexp}},message:"Invalid value"}),e.props.checks=o}},fieldName(e,t){e.props.name=t.id},choicePicker(e,t){e.props.name=t.id;const n=t.variant==="multipleSelection",r=t.value,o=Array.isArray(r)?n?r.join(","):r[0]??"":r;o!==void 0&&(e.props.value=o),t.filterable===!0?(e.component="Select",e.props.searchable=!0,e.props.multiple=n):t.displayStyle==="chips"?(e.component="Segmented",e.props={items:e.props.options,type:n?"multiple":"single",variant:"outline",value:e.props.value}):n&&(e.component="Select",e.props.multiple=!0)}};function Fs(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function g0(e,t){const n=Fs(Un.components,e.component)?Un.components[e.component]:void 0;if(!n)return null;const r={};for(const[i,s]of Object.entries(n.props)){if(typeof s=="string"){e[s]!==void 0&&(r[i]=e[s]);continue}if("const"in s){r[i]=s.const;continue}let a=s.from!==void 0?e[s.from]:void 0;s.map&&typeof a=="string"&&Fs(s.map,a)&&(a=s.map[a]),a===void 0&&s.default!==void 0&&(a=s.default),a!==void 0&&(r[i]=a)}const o={component:n.to,props:r,childrenIds:[],slots:{}};if(n.children==="children"){const i=e.children;Array.isArray(i)?o.childrenIds=i:i&&typeof i=="object"&&(o.template={component:i.componentId,path:i.path,...typeof i.key=="string"?{key:i.key}:{}})}else n.children==="child"&&typeof e.child=="string"&&(o.childrenIds=[e.child]);if(n.transform){const i=h0[n.transform];if(!i)throw new Error(`basic-map.json names an unimplemented transform: ${n.transform}`);i(o,e,t)}return o}const m0=["id","component","children","slots","on","style","visible","accessibility","template"],y0=new Set(m0);function Su(e,t,n){const r=[],o=new Set,i=new Map,s=new Set;let a=!1;const l=new Map,c=h=>{const f=h.template?.component;f===e.id?a=!0:f!==void 0&&!o.has(f)&&(o.add(f),r.push(f));for(const b of Object.values(h.slots??{}))c(b);h.children.forEach(c)},d=h=>{if((h.children.some(b=>o.has(b.id))||Object.values(h.slots??{}).some(b=>o.has(b.id)))&&!l.has(h)&&l.set(h,{children:[...h.children],...h.slots?{slots:{...h.slots}}:{}}),h.children=h.children.filter(b=>o.has(b.id)?(i.has(b.id)||i.set(b.id,b),!1):!0),h.slots){for(const[b,m]of Object.entries(h.slots))o.has(m.id)&&(i.has(m.id)||i.set(m.id,m),delete h.slots[b]);Object.keys(h.slots).length===0&&delete h.slots}for(const b of Object.values(h.slots??{}))d(b);h.children.forEach(d)};c(e);for(let h="";h!==`${o.size}/${i.size}/${s.size}`;){h=`${o.size}/${i.size}/${s.size}`,d(e);for(let f=-1;f!==i.size;){f=i.size;for(const b of[...i.values()])d(b)}for(const f of r){if(i.has(f)||s.has(f))continue;const b=n?.(f);b?i.set(f,b):(s.add(f),t.push({id:f,message:"template: no component with this id"}))}for(const f of[...i.values()])c(f)}a&&t.push({id:e.id,message:"template: cycle through this id"});const u=new Set(i.keys());for(;;){for(const[m,v]of l)if(m.children=v.children.filter(g=>!u.has(g.id)),v.slots){const g=Object.entries(v.slots).filter(([,y])=>!u.has(y.id));g.length>0?m.slots=Object.fromEntries(g):delete m.slots}const h=new Map;for(const m of u){const v=new Set,g=y=>{const k=y.template?.component;k!==void 0&&u.has(k)&&v.add(k);for(const w of Object.values(y.slots??{}))g(w);y.children.forEach(g)};g(i.get(m)),h.set(m,v)}const f=(m,v)=>{const g=new Set,y=[...h.get(m)??[]];for(;y.length>0;){const k=y.pop();if(k===v)return!0;g.has(k)||(g.add(k),y.push(...h.get(k)??[]))}return!1},b=r.filter(m=>u.has(m)&&f(m,m));if(b.length===0)break;for(const m of b)u.delete(m),t.push({id:m,message:"template: cycle through this id"})}const p=new Map;for(const h of r){const f=i.get(h);f&&u.has(h)&&p.set(h,f)}return p}function Cu(e,t,n,r,o,i){const s={left:qr,reported:i.some(l=>l.message===Tt.components)};if(e=zl(Rl(n?kl(e,{extensions:r,issues:i}):e,o,i),s,i),t.size===0)return{root:e,issues:i};const a={};for(const[l,c]of t)a[l]=zl(Rl(n?kl(c,{extensions:r,issues:i}):c,o,i),s,i);return{root:e,issues:i,templates:a}}function zl(e,t,n){Kn(t,e.id,n);const r=o=>{if(o.children=o.children.filter(i=>Kn(t,i.id,n)?(r(i),!0):!1),o.slots)for(const[i,s]of Object.entries(o.slots))Kn(t,s.id,n)?r(s):delete o.slots[i]};return r(e),e}function Rl(e,t,n){const r=new Set(n.filter(i=>i.message===Tt.depth).map(i=>i.id)),o=[{node:e,depth:1}];for(;o.length;){const{node:i,depth:s}=o.pop(),a=c=>s+1<=Ir||c.component===Ar&&c.children.length===0&&c.slots===void 0?c:(r.has(c.id)||(r.add(c.id),n.push({id:c.id,message:Tt.depth})),Ut(c.id,c.component,t)),l=[];if(i.children=i.children.map(c=>{const d=a(c);return l.push(d),d}),i.slots)for(const[c,d]of Object.entries(i.slots)){const u=a(d);i.slots[c]=u,l.push(u)}if(!(s+1>Ir))for(let c=l.length-1;c>=0;c--)o.push({node:l[c],depth:s+1})}return e}function Ut(e,t,n){return{id:e,component:Ar,props:{component:t,catalogId:n},children:[]}}function b0(e){const t={};for(const[n,r]of Object.entries(e))!y0.has(n)&&r!==void 0&&(t[n]=r);return t}function v0(e,t){return e===Cr||e===_d||e===sa||t.some(n=>n.id===e)}function Au(e){return typeof e=="boolean"||Me(e)}function x0(e){const t={component:e.componentId,path:e.path};return typeof e.key=="string"&&(t.key=e.key),t}function Tu(e,t){const n=t.extensions??[],r=Wr(n),o=[],i=new Map;e.forEach((m,v)=>{if(!m||typeof m!="object"||typeof m.id!="string"||typeof m.component!="string"){o.push({id:t.rootId??"root",message:`components[${v}] is not a component (an object with a string id and component)`});return}i.has(m.id)&&o.push({id:m.id,message:"duplicate id; the last definition wins"}),i.set(m.id,m)});const s=m=>i.get(m),a=t.catalogId===sa;v0(t.catalogId,n)||o.push({id:t.rootId??"root",message:`unsupported catalog ${t.catalogId}`});const l=new Set,c=new Set,d=new Set,u={left:qr,reported:!1},p=(m,v)=>{const g=i.get(m);if(g){if(l.has(m))return Kn(u,m,o)?(o.push({id:m,message:"cycle through this id"}),Ut(m,g.component,t.catalogId)):void 0;if(c.has(m)){d.has(m)||(d.add(m),o.push({id:m,message:Tt.usedTwice}));return}}if(!Kn(u,m,o))return;if(!g)return o.push({id:m,message:"no component with this id"}),Ut(m,`#${m}`,t.catalogId);if(c.add(m),v>Ir)return o.push({id:m,message:Tt.depth}),Ut(m,g.component,t.catalogId);const y=_=>p(_,v+1),k=_=>_.map(y).filter(T=>T!==void 0);l.add(m);let w;if(a){const _=g0(g,s);if(!_)o.push({id:m,message:`basic component ${g.component} has no mapping`}),w=Ut(m,g.component,t.catalogId);else{w={id:m,component:_.component,props:_.props,children:k(_.childrenIds)},_.template&&(w.template=_.template),_.style&&(w.style=_.style),_.on&&(w.on=_.on);for(const[T,C]of Object.entries(_.slots)){const M=y(C);M&&((w.slots??={})[T]=M)}}}else if(!r.components[g.component])o.push({id:m,message:`unknown component ${g.component}`}),w=Ut(m,g.component,t.catalogId);else{w={id:m,component:g.component,props:b0(g),children:[]},Array.isArray(g.children)?w.children=k(g.children):g.children&&typeof g.children=="object"&&(w.template=x0(g.children)),g.style&&(w.style=g.style),g.on&&(w.on=g.on);for(const[T,C]of Object.entries(g.slots??{})){const M=y(C);M&&((w.slots??={})[T]=M)}}if(g.visible!==void 0&&(Au(g.visible)?w.visible=g.visible:o.push({id:m,message:"visible: expected a boolean, a binding or a function call"})),g.accessibility&&(w.accessibility=g.accessibility),l.delete(m),t.validate!==!1&&w.component!==Ar){const _=r.components[w.component];if(_){for(const T of au(_,w.props,{path:"props",extensions:n}))o.push({id:m,message:`${T.path}: ${T.message}`});_.children==="none"&&w.children.length>0&&o.push({id:m,message:`${w.component} takes no children`});for(const T of Object.keys(w.slots??{}))Iu(_.slots,T)||o.push({id:m,message:`slots.${T}: ${w.component} has no such slot`});for(const T of su(w,{extensions:n}))o.push({id:m,message:`${T.path}: ${T.message}`})}}return w},h=t.rootId??"root";let f=p(h,1)??Ut(h,`#${h}`,t.catalogId);const b=Su(f,o,m=>i.has(m)&&!c.has(m)?p(m,1):void 0);return Cu(f,b,t.expand!==!1,n,t.catalogId,o)}function Kn(e,t,n){return e.left>0?(e.left-=1,!0):(e.reported||n.push({id:t,message:Tt.components}),e.reported=!0,!1)}function Iu(e,t){return(e??[]).some(n=>n==="*"||n===t)}function $0(e,t){const n=t.extensions??[],r=Wr(n),o=[],i={left:qr,reported:!1},s=(c,d)=>{if(!Kn(i,c.id,o))return;if(d>Ir)return o.push({id:c.id,message:Tt.depth}),Ut(c.id,c.component,t.catalogId);const u=r.components[c.component];if(!u)return o.push({id:c.id,message:`unknown component ${c.component}`}),Ut(c.id,c.component,t.catalogId);const p=(c.children??[]).map(f=>s(f,d+1)).filter(f=>f!==void 0),h={id:c.id,component:c.component,props:{...c.props??{}},children:p};if(c.style&&(h.style=c.style),c.visible!==void 0&&(Au(c.visible)?h.visible=c.visible:o.push({id:c.id,message:"visible: expected a boolean, a binding or a function call"})),c.on&&(h.on=c.on),c.accessibility&&(h.accessibility=c.accessibility),c.template&&(h.template=c.template),c.slots){h.slots={};for(const[f,b]of Object.entries(c.slots)){const m=s(b,d+1);m&&(h.slots[f]=m)}}if(t.validate!==!1){for(const f of au(u,h.props,{path:"props",extensions:n}))o.push({id:c.id,message:`${f.path}: ${f.message}`});u.children==="none"&&h.children.length>0&&o.push({id:c.id,message:`${c.component} takes no children`});for(const f of Object.keys(h.slots??{}))Iu(u.slots,f)||o.push({id:c.id,message:`slots.${f}: ${c.component} has no such slot`});for(const f of su(h,{extensions:n}))o.push({id:c.id,message:`${f.path}: ${f.message}`})}return h};let a=s(e,1);const l=Su(a,o);return Cu(a,l,t.expand!==!1,n,t.catalogId,o)}const w0=/^https?:\/\/[^\s]+$/,k0=/^[A-Z][A-Za-z0-9]*$/;function S0(e){const t=[];w0.test(e.id)||t.push("id must be a URL-shaped catalog id"),e.extends!==Cr&&t.push(`extends must be ${Cr}`),e.name||t.push("name is required"),Object.keys(e.components).length===0&&t.push("an extension defines at least one component");for(const[r,o]of Object.entries(e.components)){k0.test(r)||t.push(`${r}: component names are PascalCase`),r in rt.components&&t.push(`${r}: shadows a core component`),o.description||t.push(`${r}: description is required`);for(const[i,s]of Object.entries(o.props))s.description||t.push(`${r}.${i}: description is required`),s.type==="enum"&&s.enum&&!(s.enum in rt.enums)&&!(s.enum in(e.enums??{}))&&t.push(`${r}.${i}: enum ${s.enum} is not defined`),s.type==="object"&&s.shape&&!(s.shape in rt.defs)&&!(s.shape in(e.defs??{}))&&t.push(`${r}.${i}: shape ${s.shape} is not defined`);o.kind==="macro"&&!e.macros?.[r]&&t.push(`${r}: a macro needs a template in macros`)}for(const r of Object.keys(e.macros??{}))e.components[r]?.kind!=="macro"&&t.push(`macros.${r}: no macro component of that name`);for(const r of Object.keys(e.enums??{}))r in rt.enums&&t.push(`enums.${r}: shadows a core enum`);return t}function C0(e){const t=S0(e);if(t.length>0)throw new Error(`extension ${e.id}:
12
+ ${t.join(`
13
+ `)}`);return e}Object.fromEntries(ng.map(e=>[e,((t,n,r)=>({component:e,props:t,...n?{children:n}:{},...r}))]));const A0=["hover","pressed","focus","disabled","checked","open","selected","invalid","dragover"],T0=["backgroundColor","color","borderColor","borderWidth","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderRadius","borderStyle","padding","paddingHorizontal","paddingVertical","gap","width","height","minWidth","minHeight","fontSize","fontWeight","lineHeight","fontFamily","letterSpacing","textDecoration","textTransform","fontStyle","boxShadow","opacity","transition","transitionEasing","transform","backdropBlur","animation","native"],I0={Box:{parts:["root"],props:["pressable"]},List:{parts:["root","divider","section"],props:["direction","divided","stickyHeaders"]},Resizable:{parts:["root","panel","handle","grip"],props:["direction","handle"]},Text:{parts:["root"],props:["variant","tone"]},Markdown:{parts:["root","paragraph","heading","link","code","codeBlock","quote","table","listItem"],props:[]},Image:{parts:["root","fallback"],props:["fit"]},Icon:{parts:["root"],props:["size","tone"]},Video:{parts:["root","controls","poster"],props:["autoplay"]},AudioPlayer:{parts:["root","controls","track"],props:[]},Avatar:{parts:["root","image","fallback"],props:["size"]},QrCode:{parts:["root","plate","module","label"],props:["level"]},Carousel:{parts:["root","page","indicator","controls","previous","next"],props:["loop","indicators"]},Tabs:{parts:["root","list","tab","indicator","content","close","new"],props:["fill","closable","addable"]},Segmented:{parts:["root","item","icon","label","badge"],props:["type","variant","size","fill","orientation"]},Accordion:{parts:["root","item","trigger","content","count"],props:["type"]},Dialog:{parts:["overlay","content","title","description","footer","close"],props:["dismissible"]},Drawer:{parts:["overlay","content","handle","title","description","footer"],props:["side","dismissible"]},Popover:{parts:["content","arrow"],props:["side","openOn"]},Tooltip:{parts:["content","arrow","anchor"],props:["side"]},Menu:{parts:["trigger","content","item","separator","label","shortcut","check","submenuIndicator","head","search","count","list","empty","fade"],props:["openOn"]},Toast:{parts:["root","icon","title","description","action","close"],props:["type"]},Ring:{parts:["root","track","fill","label"],props:["size","tone"]},Spinner:{parts:["root"],props:["size"]},Skeleton:{parts:["root","row","dot","bar"],props:["rounded","dot"]},VoiceWave:{parts:["root","outer","mid","inner","child","bar"],props:["activity","size","variant"]},Chart:{parts:["root","title","axis","grid","legend","tooltip","valueLabel"],props:["kind"]},Table:{parts:["root","caption","header","headerCell","sortIcon","row","cell","checkbox","empty","body"],props:["selectable","striped","density","stickyHeader","align"]},Button:{parts:["root","icon","label","spinner"],props:["variant","size","disabled","loading"]},Link:{parts:["root"],props:["external"]},Toggle:{parts:["root","icon","label"],props:["variant","size","pressed"]},Form:{parts:["root","summary"],props:["disabled","busy"]},Input:{parts:["root","label","field","placeholder","description","error"],props:["type","disabled"]},Textarea:{parts:["root","label","field","placeholder","description","error"],props:["disabled"]},NumberField:{parts:["root","label","field","decrement","increment","unit","description","error","input"],props:["disabled"]},Checkbox:{parts:["root","box","check","label","description"],props:["checked","disabled"]},Radio:{parts:["root","item","dot","label","items"],props:["orientation"]},ChoiceTiles:{parts:["root","tile","picture","label","description"],props:["type","columns"]},Switch:{parts:["root","track","thumb","label","description","body"],props:["checked","disabled"]},Slider:{parts:["root","track","range","thumb","label","value","header"],props:[]},Select:{parts:["root","label","trigger","placeholder","content","search","item","check","empty"],props:["multiple","searchable","disabled"]},SearchList:{parts:["root","head","search","count","list","item","icon","identifier","label","check","empty","fade"],props:[]},ChipInput:{parts:["root","label","field","chip","chipLabel","remove","placeholder","description","error","input"],props:["disabled"]},DatePicker:{parts:["root","label","trigger","calendar","day"],props:[]},DateRangePicker:{parts:["root","label","trigger","calendar","day","range"],props:[]},TimePicker:{parts:["root","label","trigger","placeholder","list","item"],props:["disabled"]},FileUpload:{parts:["root","label","dropzone","icon","hint","file","fileName","fileMeta","remove","description","error","title","browse","fileIcon"],props:["multiple","disabled"]},QrScanner:{parts:["root","viewfinder","feed","corner","scanLine","placeholder","placeholderIcon","hint"],props:["disabled"]},CodeBlock:{parts:["root","header","title","copy","gutter","line","lineNumber","token","body","code"],props:["lineNumbers","wrap","kind","variant","size"]},Composer:{parts:["root","field","placeholder","attachment","send"],props:["attachments","busy"]},TreeGuides:{parts:["root","line"],props:["tee"]},Unknown:{parts:["root","label"],props:[]}},Sa={states:A0,keys:T0,native:I0},Nl=Sa.states,Ll=Sa.keys,Ki=Sa.native;function zs(e,t,n){if(typeof e!="string"){t.add(e.part);for(const r of Object.keys(e.$recipe??{}))n.add(r);for(const r of e.children??[])zs(r,t,n);for(const r of Object.values(e.slots??{}))typeof r!="string"&&zs(r,t,n)}}function E0(e){const t=new Set,n=new Set(e.recipeProps);return zs(e.root,t,n),{parts:[...t],props:[...n]}}function Rs(e=[]){const t=er(e),n={};for(const[r,o]of Object.entries(t.components)){if(o.kind==="macro"){const s=t.macros[r];s&&(n[r]=E0(s));continue}const i=o.recipe;Ki[r]?n[r]={parts:[...Ki[r].parts],props:[...Ki[r].props]}:i?n[r]={parts:[...i.parts],props:[...i.props]}:n[r]={parts:["root"],props:Object.entries(o.props).filter(([,s])=>s.type==="enum"||s.type==="boolean").map(([s])=>s)}}return n}let _0;const jl=new WeakMap;function M0(e){if(e.length===0)return _0??={view:er(),parts:Rs()};let t=jl.get(e);return t||jl.set(e,t={view:er(e),parts:Rs(e)}),t}function ln(e,t,n=[]){const{view:r,parts:o}=M0(n),i=r.components[e],s=o[e],a={};if(!i||!s)return a;for(const l of s.props){const c=t[l]??i.props[l]?.default;c!==void 0&&(a[l]=c)}return a}const Kr=["light","dark"],Bl="https://ui.exponential.at/schemas/theme/v1.json",D0=/^[a-z][a-z0-9-]*$/,Ho=new Set(["color","shadow"]),P0=new Set(["type.family"]),O0=new Set(["ease"]),F0=["spacing","radius","control","opacity","border","motion","breakpoint","density","blur","scale"],z0=["size","lineHeight","weight","family"],R0={backgroundColor:["color"],color:["color"],borderColor:["color"],borderWidth:["border","control"],borderTopWidth:["border","control"],borderRightWidth:["border","control"],borderBottomWidth:["border","control"],borderLeftWidth:["border","control"],borderRadius:["radius","spacing"],borderStyle:[],padding:["spacing"],paddingHorizontal:["spacing"],paddingVertical:["spacing"],gap:["spacing"],width:["control","spacing","border"],height:["control","spacing","border"],minWidth:["control","spacing"],minHeight:["control","spacing"],fontSize:["type.size"],fontWeight:["type.weight"],lineHeight:["type.lineHeight"],fontFamily:["type.family"],letterSpacing:[],textDecoration:[],textTransform:[],fontStyle:[],boxShadow:["shadow"],opacity:["opacity"],transition:["motion"],transitionEasing:["ease"],transform:[],backdropBlur:["blur"],animation:[]},N0=new Set(["backgroundColor","color","borderColor"]),L0=/^[A-Za-z0-9 ,'"-]+$/,Eu="letters, digits, spaces, hyphens, commas and balanced quotes only";function _u(e){if(typeof e!="string"||e.length===0||!L0.test(e))return!1;const t=n=>e.split(n).length-1;return t('"')%2===0&&t("'")%2===0}const j0=new Set(["fontFamily","boxShadow","transition","transitionEasing","backdropBlur"]),B0=new Set(["borderStyle","textDecoration","textTransform","fontStyle","animation"]);class W0 extends Error{issues;constructor(t,n){super(`Theme "${t}" is invalid:
14
+ ${n.map(r=>` ${r.path}: ${r.message}`).join(`
15
+ `)}`),this.name="ThemeError",this.issues=n}}const Be=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),ot=e=>e.join("|");function Wl(e,t,n,r,o){if(!Be(e))return void r.push({path:t,message:"expected an object of token values"});for(const[i,s]of Object.entries(e))n.includes(i)?typeof s!="number"||!Number.isFinite(s)?r.push({path:`${t}.${i}`,message:"expected a number"}):o&&(s<o[0]||s>o[1])&&r.push({path:`${t}.${i}`,message:`expected ${o[0]}–${o[1]}`}):r.push({path:`${t}.${i}`,message:`unknown token; known: ${ot(n)}`})}function H0(e,t,n,r){if(!Be(e))return void r.push({path:t,message:"expected an object of easing curves"});for(const[o,i]of Object.entries(e))n.includes(o)?(!Array.isArray(i)||i.length!==4||!i.every(s=>typeof s=="number"&&Number.isFinite(s)))&&r.push({path:`${t}.${o}`,message:"expected [x1, y1, x2, y2]"}):r.push({path:`${t}.${o}`,message:`unknown token; known: ${ot(n)}`})}function U0(e,t,n){if(!Array.isArray(e))return void n.push({path:t,message:"expected a list of shadow layers"});e.forEach((r,o)=>{const i=`${t}[${o}]`;if(!Be(r))return void n.push({path:i,message:"expected {x, y, blur, spread, color}"});for(const s of["x","y","blur","spread"])typeof r[s]!="number"&&n.push({path:`${i}.${s}`,message:"expected a number"});$a(r.color)||n.push({path:`${i}.color`,message:"expected #rrggbb or #rrggbbaa"})})}function q0(e,t,n){if(!Be(e))return void n.push({path:t,message:"expected {color, shadow}"});for(const[r,o]of Object.entries(e)){if(!Ho.has(r)){n.push({path:`${t}.${r}`,message:"unknown mode group; known: color|shadow"});continue}if(!Be(o)){n.push({path:`${t}.${r}`,message:"expected an object of token values"});continue}const i=Ge[r];for(const[s,a]of Object.entries(o)){const l=`${t}.${r}.${s}`;i.includes(s)?r==="color"&&!$a(a)?n.push({path:l,message:"expected #rrggbb or #rrggbbaa (lowercase); the builder converts oklch/hsl on import"}):r==="shadow"&&U0(a,l,n):n.push({path:l,message:`unknown token; known: ${ot(i)}`})}}}function Hl(e,t,n){if(!Be(e))return void n.push({path:t,message:"expected {light, dark}"});for(const[r,o]of Object.entries(e))Kr.includes(r)?q0(o,`${t}.${r}`,n):n.push({path:`${t}.${r}`,message:"unknown mode; known: light|dark"})}function V0(e,t,n){if(!Be(e))return void n.push({path:t,message:"expected the token groups"});for(const[r,o]of Object.entries(e)){const i=`${t}.${r}`;if(r==="type"){if(!Be(o)){n.push({path:i,message:"expected {size, lineHeight, weight, family}"});continue}for(const[s,a]of Object.entries(o)){const l=`type.${s}`;if(!Ge[l])n.push({path:`${i}.${s}`,message:"unknown type group; known: size|lineHeight|weight|family"});else if(P0.has(l))if(!Be(a))n.push({path:`${i}.${s}`,message:"expected an object of family names"});else for(const[c,d]of Object.entries(a))Ge[l].includes(c)?typeof d!="string"||d.length===0?n.push({path:`${i}.${s}.${c}`,message:"expected a font family name"}):_u(d)||n.push({path:`${i}.${s}.${c}`,message:`expected a font family name: ${Eu}`}):n.push({path:`${i}.${s}.${c}`,message:`unknown token; known: ${ot(Ge[l])}`});else Wl(a,`${i}.${s}`,Ge[l],n)}continue}if(Ho.has(r)){n.push({path:i,message:`${r} values live under modes.light / modes.dark`});continue}if(!Ge[r]){n.push({path:i,message:`unknown token group; known: ${ot(Object.keys(Ge).filter(s=>!s.startsWith("type.")&&!Ho.has(s)))}|type`});continue}O0.has(r)?H0(o,i,Ge[r],n):Wl(o,i,Ge[r],n,r==="opacity"?[0,1]:r==="density"?[.5,2]:r==="scale"?[.5,1.5]:void 0)}}function K0(e,t,n){if(!Be(e))return void n.push({path:t,message:"expected an object keyed by family name"});for(const[r,o]of Object.entries(e)){const i=`${t}.${r}`;if(!Be(o)){n.push({path:i,message:"expected {fallback?, weights?, source?}"});continue}for(const s of Object.keys(o))["fallback","weights","source"].includes(s)||n.push({path:`${i}.${s}`,message:"unknown font key; known: fallback|weights|source"});o.fallback!==void 0&&typeof o.fallback!="string"?n.push({path:`${i}.fallback`,message:"expected a string"}):o.fallback!==void 0&&!_u(o.fallback)&&n.push({path:`${i}.fallback`,message:`expected a font fallback list: ${Eu}`}),o.weights!==void 0&&(!Array.isArray(o.weights)||!o.weights.every(s=>typeof s=="number"))&&n.push({path:`${i}.weights`,message:"expected a list of numbers"}),o.source!==void 0&&o.source!=="system"&&o.source!=="host"&&n.push({path:`${i}.source`,message:"expected system|host"})}}function G0(e,t,n,r){if(e==="native"){typeof t!="boolean"&&r.push({path:n,message:"expected true|false"});return}if(B0.has(e)){const a=gl(e)??[];a.includes(t)||r.push({path:n,message:`expected ${ot(a.map(String))}`});return}if(e==="transform"){(typeof t!="string"||!Pd.test(t))&&r.push({path:n,message:"expected translate(Xpx, Ypx), scale(N) and/or rotate(Ndeg)"});return}const o=R0[e],i=Qt(t);if(i){o.includes(i.group)?Ge[i.group]?.includes(i.name)||r.push({path:n,message:`unknown token ${t}; known: ${ot(Ge[i.group]??[])}`}):r.push({path:n,message:o.length?`expected a $${o.join("|$")} token, got $${i.group}`:"expected a number, not a token"});return}if(N0.has(e)){$a(t)||r.push({path:n,message:"expected #rrggbb, #rrggbbaa or $color.<name>"});return}if(j0.has(e)){r.push({path:n,message:`expected a $${o[0]}.<name> token`});return}const s=gl("fontWeight")??[];typeof t!="number"||!Number.isFinite(t)?r.push({path:n,message:o.length?`expected a number or a $${o.join("|$")} token`:"expected a number"}):e==="opacity"&&(t<0||t>1)?r.push({path:n,message:"expected 0–1"}):e==="fontWeight"&&!s.includes(t)&&r.push({path:n,message:`expected ${ot(s.map(String))} or $type.weight.<name>`})}function Y0(e,t,n,r){if(!Be(e))return void r.push({path:t,message:"expected {when?, style}"});for(const o of Object.keys(e))o!=="when"&&o!=="style"&&r.push({path:`${t}.${o}`,message:"unknown rule key; known: when|style"});if(e.when!==void 0)if(!Be(e.when))r.push({path:`${t}.when`,message:"expected an object of recipe props"});else for(const[o,i]of Object.entries(e.when)){const s=`${t}.when.${o}`;if(o==="state"){const a=Array.isArray(i)?i:[i];for(const l of a)Nl.includes(l)||r.push({path:s,message:`unknown state; known: ${ot(Nl)}`})}else if(!n.props.includes(o))r.push({path:s,message:`not a recipe prop of this part; known: ${ot(["state",...n.props])}`});else{const a=l=>["string","number","boolean"].includes(typeof l);a(i)||Array.isArray(i)&&i.every(a)||r.push({path:s,message:"expected a value or a list of values"})}}if(!Be(e.style))return void r.push({path:`${t}.style`,message:"expected a style object"});for(const[o,i]of Object.entries(e.style)){const s=`${t}.style.${o}`;Ll.includes(o)?G0(o,i,s,r):r.push({path:s,message:`not a recipe key; known: ${ot(Ll)}`})}}function X0(e,t,n,r){if(!Be(e))return void r.push({path:t,message:"expected an object keyed by component"});for(const[o,i]of Object.entries(e)){const s=`${t}.${o}`,a=n[o];if(!a){r.push({path:s,message:"unknown component"});continue}if(!Be(i)){r.push({path:s,message:`expected an object keyed by part; known: ${ot(a.parts)}`});continue}for(const[l,c]of Object.entries(i)){const d=`${s}.${l}`;if(!a.parts.includes(l)){r.push({path:d,message:`unknown part; known: ${ot(a.parts)}`});continue}if(!Array.isArray(c)){r.push({path:d,message:"expected a list of rules [{when?, style}]"});continue}c.forEach((u,p)=>Y0(u,`${d}[${p}]`,a,r))}}}const Z0=["$schema","$comment","id","name","extends","modes","contrast","tokens","fonts","recipes"];function Ul(e,t={}){const n=[];if(!Be(e))return[{path:"theme",message:"expected a theme object {id, name, modes, tokens, recipes}"}];e.$schema!==Bl&&n.push({path:"$schema",message:`expected "${Bl}"`}),(typeof e.id!="string"||!D0.test(e.id))&&n.push({path:"id",message:"expected a kebab-case id"}),(typeof e.name!="string"||e.name.length===0)&&n.push({path:"name",message:"expected a name"});for(const r of Object.keys(e))Z0.includes(r)||n.push({path:r,message:"unknown theme key; known: id|name|extends|modes|contrast|tokens|fonts|recipes"});if(e.extends!==void 0){const r=(t.themes??[]).map(o=>o.id);typeof e.extends!="string"?n.push({path:"extends",message:"expected a theme id"}):r.includes(e.extends)?e.extends===e.id&&n.push({path:"extends",message:"a theme cannot extend itself"}):n.push({path:"extends",message:`unknown theme "${e.extends}"; known: ${ot(r)}`})}return e.modes!==void 0&&Hl(e.modes,"modes",n),e.contrast!==void 0&&Hl(e.contrast,"contrast",n),e.tokens!==void 0&&V0(e.tokens,"tokens",n),e.fonts!==void 0&&K0(e.fonts,"fonts",n),e.recipes!==void 0&&X0(e.recipes,"recipes",Rs(t.extensions),n),n}const uo=()=>({color:{},shadow:{}});function Q0(e){return{id:e.id,name:e.name,chain:[],modes:{light:uo(),dark:uo()},contrast:{light:uo(),dark:uo()},tokens:{spacing:{},radius:{},type:{size:{},lineHeight:{},weight:{},family:{}},control:{},opacity:{},border:{},motion:{},breakpoint:{},ease:{},density:{},blur:{},scale:{}},fonts:{},recipes:{}}}function Mu(e){return Array.isArray(e.chain)}function kn(e){return JSON.parse(JSON.stringify(e))}function Uo(e,t){t&&(Object.assign(e.color,t.color??{}),Object.assign(e.shadow,kn(t.shadow??{})))}function J0(e,t){for(const r of Kr)Uo(e.modes[r],t.modes?.[r]),Uo(e.contrast[r],t.contrast?.[r]);const n=t.tokens;if(n){for(const r of F0)Object.assign(e.tokens[r],n[r]??{});Object.assign(e.tokens.ease,kn(n.ease??{}));for(const r of z0)Object.assign(e.tokens.type[r],n.type?.[r]??{})}Object.assign(e.fonts,kn(t.fonts??{}));for(const[r,o]of Object.entries(t.recipes??{})){const i=e.recipes[r]??={};for(const[s,a]of Object.entries(o))(i[s]??=[]).push(...kn(a))}}function eb(e,t){for(const n of Kr)Uo(e.modes[n],t.modes[n]),Uo(e.contrast[n],t.contrast?.[n]);e.tokens=kn(t.tokens),e.fonts=kn(t.fonts),e.recipes=kn(t.recipes)}function tb(e){const t=[];for(const[n,r]of Object.entries(Ge))for(const o of r){if(Ho.has(n)){for(const s of Kr)e.modes[s][n][o]===void 0&&t.push({path:`modes.${s}.${n}.${o}`,message:`missing value for $${n}.${o}`});continue}(n.startsWith("type.")?e.tokens.type[n.slice(5)]:e.tokens[n])?.[o]===void 0&&t.push({path:`tokens.${n}.${o}`,message:`missing value for $${n}.${o}`})}for(const n of Object.values(e.tokens.type.family))e.fonts[n]||t.push({path:`fonts.${n}`,message:"family named by tokens.type.family has no fonts entry"});return t}function nb(e,t){const n=t.themes??[],r=[e],o=new Set([e.id]);let i=e;for(;!Mu(i)&&i.extends;){const s=i.extends,a=n.find(l=>l.id===s);if(!a)return{path:"extends",message:`unknown theme "${s}"`};if(o.has(a.id))return{path:"extends",message:`cycle: ${[...o,a.id].join(" → ")}`};o.add(a.id),r.unshift(a),i=a}return r}function Ca(e,t={}){const n=Ul(e,t);if(n.length>0)return{theme:null,issues:n};const r=e,o=nb(r,t);if(!Array.isArray(o))return{theme:null,issues:[o]};const i=Q0(r);for(const a of o){if(Mu(a)){eb(i,a),i.chain.push(...a.chain);continue}if(a!==r){const l=Ul(a,t);if(l.length>0)return{theme:null,issues:l.map(c=>({path:`extends(${a.id}).${c.path}`,message:c.message}))}}J0(i,a),i.chain.push(a.id)}const s=tb(i);return s.length>0?{theme:null,issues:s}:{theme:i,issues:[]}}function rb(e,t={}){const{theme:n,issues:r}=Ca(e,t);if(!n)throw new W0(Be(e)&&typeof e.id=="string"?e.id:"?",r);return n}function ob(e,t){return t?"dark":"light"}function ql(e,t){const n={};for(const[r,o]of Object.entries(e))n[r]=Math.round(o*t);return n}function ib(e,t){if(t==="default")return e;const n=e.tokens.density[t];return typeof n!="number"?e:{...e,tokens:{...e.tokens,control:ql(e.tokens.control,n),spacing:ql(e.tokens.spacing,n)}}}function sb(e){const t={};for(const n of Kr)t[n]={color:{...e.modes[n].color,...e.contrast[n].color},shadow:{...e.modes[n].shadow,...e.contrast[n].shadow}};return{...e,modes:t}}function ab(e,t,n){const r=Qt(t);if(!r)return;const{group:o,name:i}=r;return o==="color"?e.modes[n].color[i]:o==="shadow"?e.modes[n].shadow[i]:o.startsWith("type.")?e.tokens.type[o.slice(5)]?.[i]:e.tokens[o]?.[i]}const lb=/\$breakpoint\.([a-zA-Z0-9]+)/;function cb(e,t){return da.test(t)?t.replace(lb,(n,r)=>{const o=e.tokens.breakpoint[r];return typeof o=="number"?`${o}px`:n}):t}function Du(e,t,n){const r=i=>{if(Array.isArray(i))return i.map(r);if(Be(i))return Du(e,i,n);if(typeof i=="string"&&i.startsWith("$")){const s=ab(e,i,n);return s===void 0?i:s}return i},o={};for(const[i,s]of Object.entries(t))o[cb(e,i)]=r(s);return o}function db(e,t,n){if(!e.when)return!0;for(const[r,o]of Object.entries(e.when)){if(r==="state"){if(!(Array.isArray(o)?o:[o]).every(a=>n.includes(a)))return!1;continue}const i=t[r];if(Array.isArray(o)?!o.includes(i):i!==o)return!1}return!0}function ub(e){if(!e.when)return 0;let t=0;for(const[n,r]of Object.entries(e.when))t+=n==="state"&&Array.isArray(r)?r.length:1;return t}function pb(e,t){const n=e.recipes[t.component]?.[t.part]??[],r=t.props??{},o=t.states??[],i=n.map((a,l)=>({rule:a,index:l,specificity:ub(a)})).sort((a,l)=>a.specificity-l.specificity||a.index-l.index),s={};for(const{rule:a}of i)db(a,r,o)&&Object.assign(s,a.style);return s}function tr(e,t,n){return Du(e,pb(e,t),n)}function Pu(e){return e.length===0?"none":e.map(t=>`${t.x}px ${t.y}px ${t.blur}px ${t.spread}px ${t.color}`).join(", ")}function Ou(e){return`cubic-bezier(${e.join(", ")})`}const fb=`AUTO-GENERATED by packages/exponential-ui/scripts/generate.ts — do not edit.
16
+ Source of truth: packages/exponential-ui/themes/*.theme.json, themes/exponential.recipes.json, catalog/recipes.json, catalog/tokens.json (+ packages/design-tokens/tokens.json and packages/ui/src/styles.css for the exponential theme). Composed by scripts/generate-themes.ts composeExponential(): edit themes/exponential.recipes.json, packages/design-tokens/tokens.json or packages/ui/src/styles.css and regenerate.`,hb="https://ui.exponential.at/schemas/theme/v1.json",gb="exponential",mb="Exponential",yb={light:{color:{background:"#ffffff",foreground:"#0a0a0a",card:"#ffffff",cardForeground:"#0a0a0a",popover:"#ffffff",popoverForeground:"#0a0a0a",primary:"#171717",primaryForeground:"#fafafa",secondary:"#f5f5f5",secondaryForeground:"#171717",muted:"#f5f5f5",mutedForeground:"#737373",accent:"#f5f5f5",accentForeground:"#171717",destructive:"#e7000b",border:"#e5e5e5",input:"#e5e5e5",ring:"#a1a1a1",chart1:"#f54900",chart2:"#009689",chart3:"#104e64",chart4:"#ffb900",chart5:"#fe9a00",success:"#22c55e",warning:"#facc15",info:"#3b82f6",warningForeground:"#1c1917",infoForeground:"#ffffff",successForeground:"#ffffff",destructiveForeground:"#ffffff"},shadow:{none:[],sm:[{x:0,y:1,blur:2,spread:0,color:"#00000014"}],md:[{x:0,y:4,blur:12,spread:-2,color:"#00000014"}],lg:[{x:0,y:12,blur:32,spread:-8,color:"#00000014"}],xl:[{x:0,y:20,blur:48,spread:-12,color:"#00000014"}]}},dark:{color:{background:"#0a0a0a",foreground:"#fafafa",card:"#ffffff0f",cardForeground:"#fafafa",popover:"#171717",popoverForeground:"#fafafa",primary:"#e5e5e5",primaryForeground:"#171717",secondary:"#ffffff0f",secondaryForeground:"#fafafa",muted:"#ffffff0a",mutedForeground:"#a1a1a1",accent:"#ffffff1c",accentForeground:"#fafafa",destructive:"#ff6467",border:"#ffffff1a",input:"#ffffff26",ring:"#737373",chart1:"#1447e6",chart2:"#00bc7d",chart3:"#fe9a00",chart4:"#ad46ff",chart5:"#ff2056",success:"#22c55e",warning:"#facc15",info:"#3b82f6",warningForeground:"#1c1917",infoForeground:"#ffffff",successForeground:"#052e16",destructiveForeground:"#0a0a0a"},shadow:{none:[],sm:[{x:0,y:1,blur:2,spread:0,color:"#00000066"}],md:[{x:0,y:4,blur:12,spread:-2,color:"#00000066"}],lg:[{x:0,y:12,blur:32,spread:-8,color:"#00000066"}],xl:[{x:0,y:20,blur:48,spread:-12,color:"#00000066"}]}}},bb={spacing:{none:0,xxs:2,xs:4,sm:8,md:12,lg:16,xl:24,xl2:32,xl3:48},radius:{none:0,sm:8,md:10,lg:12,xl:16,xl2:20,xl3:24,full:9999},type:{size:{xs:12,sm:14,base:16,lg:18,xl:20,xl2:24,xl3:30},lineHeight:{xs:16,sm:20,base:24,lg:28,xl:28,xl2:32,xl3:36},weight:{regular:400,medium:500,semibold:600,bold:700},family:{sans:"Inter",mono:"ui-monospace",serif:"ui-serif"}},control:{buttonSm:24,buttonMd:32,buttonLg:36,buttonIcon:32,input:36,textarea:64,row:32,rowCompact:28,pill:24,badge:20,chip:24,toggle:32,switch:20,checkbox:16,slider:16,progress:8,meter:8,avatarSm:24,avatarMd:32,avatarLg:40,iconSm:16,iconMd:20,iconLg:24,hairline:1,appBar:48,tabBar:56,toast:56},opacity:{primary:1,secondary:.7,tertiary:.5,quaternary:.3,disabled:.5},border:{none:0,hairline:1,thick:2},motion:{fast:120,standard:180,slow:280},ease:{standard:[.2,0,0,1],decelerate:[0,0,.2,1],accelerate:[.3,0,1,1]},scale:{press:.97,popoverFrom:.96}},vb={Inter:{fallback:"ui-sans-serif, system-ui, sans-serif",weights:[400,500,600,700],source:"host"},"ui-monospace":{fallback:"SFMono-Regular, Menlo, Consolas, monospace",source:"system"},"ui-serif":{fallback:"Georgia, serif",source:"system"}},xb={Card:{root:[{style:{boxShadow:"$shadow.none"}}]},Group:{body:[{style:{backgroundColor:"$color.card"}}]},Section:{header:[{style:{backgroundColor:"$color.muted"}}]},Button:{root:[{style:{boxShadow:"$shadow.none",fontWeight:"$type.weight.medium"}},{when:{variant:"outline"},style:{backgroundColor:"$color.secondary",borderColor:"$color.border",boxShadow:"$shadow.none"}},{when:{variant:"outline",state:"hover"},style:{backgroundColor:"$color.accent"}},{when:{variant:"secondary"},style:{backgroundColor:"$color.secondary"}}]},Input:{field:[{style:{backgroundColor:"$color.card",borderColor:"$color.input",boxShadow:"$shadow.none"}}]},Textarea:{field:[{style:{backgroundColor:"$color.card",borderColor:"$color.input",boxShadow:"$shadow.none"}}]},Select:{trigger:[{style:{backgroundColor:"$color.card",borderColor:"$color.input",boxShadow:"$shadow.none"}}]},DatePicker:{trigger:[{style:{backgroundColor:"$color.card",borderColor:"$color.input",boxShadow:"$shadow.none"}}]},Composer:{root:[{style:{backgroundColor:"$color.card",borderColor:"$color.border",boxShadow:"$shadow.none"}}]},Tabs:{list:[{style:{backgroundColor:"$color.muted"}}],tab:[{when:{state:"selected"},style:{backgroundColor:"$color.accent",boxShadow:"$shadow.none"}}]},Segmented:{root:[{when:{variant:"bar"},style:{backgroundColor:"$color.card"}}],item:[{when:{variant:"segmented",state:"selected"},style:{backgroundColor:"$color.accent",boxShadow:"$shadow.none"}}]},Chip:{root:[{style:{backgroundColor:"$color.secondary",borderColor:"$color.border"}},{when:{shape:"rect"},style:{backgroundColor:"$color.secondary"}},{when:{selected:!0},style:{backgroundColor:"$color.accent",borderColor:"$color.ring"}}]},Row:{root:[{when:{state:"hover"},style:{backgroundColor:"$color.secondary"}},{when:{selected:!0},style:{backgroundColor:"$color.accent"}}]},Menu:{item:[{when:{state:"hover"},style:{backgroundColor:"$color.secondary"}},{when:{state:"selected"},style:{backgroundColor:"$color.accent"}}]},Alert:{root:[{style:{backgroundColor:"$color.card"}}]},Dialog:{content:[{style:{backgroundColor:"$color.popover",borderRadius:"$radius.xl"}}]},Drawer:{content:[{style:{backgroundColor:"$color.popover",borderRadius:"$radius.xl3"}}]},Checkbox:{box:[{style:{backgroundColor:"$color.card",boxShadow:"$shadow.none"}}],check:[{style:{width:14,height:14}}]},Radio:{item:[{style:{backgroundColor:"$color.card",boxShadow:"$shadow.none"}}]},ChoiceTiles:{tile:[{style:{backgroundColor:"$color.card"}},{when:{state:"hover"},style:{backgroundColor:"$color.secondary"}},{when:{state:"selected"},style:{backgroundColor:"$color.accent"}}]},Switch:{track:[{style:{backgroundColor:"$color.input"}}],thumb:[{style:{boxShadow:"$shadow.none"}}]},Skeleton:{root:[{style:{backgroundColor:"$color.secondary"}}]},NumberField:{field:[{style:{backgroundColor:"$color.card",borderColor:"$color.input",boxShadow:"$shadow.none"}}]},ChipInput:{field:[{style:{backgroundColor:"$color.card",borderColor:"$color.input",boxShadow:"$shadow.none"}}],chip:[{style:{backgroundColor:"$color.accent",color:"$color.foreground"}}]},TimePicker:{trigger:[{style:{backgroundColor:"$color.card",borderColor:"$color.input",boxShadow:"$shadow.none"}}],item:[{when:{state:"hover"},style:{backgroundColor:"$color.secondary"}}]},DateRangePicker:{trigger:[{style:{backgroundColor:"$color.card",borderColor:"$color.input",boxShadow:"$shadow.none"}}]},Toast:{root:[{style:{backgroundColor:"$color.popover",borderColor:"$color.border",borderRadius:"$radius.xl"}}]},CodeBlock:{root:[{style:{backgroundColor:"$color.muted"}}]},Table:{row:[{when:{state:"hover"},style:{backgroundColor:"$color.secondary"}},{when:{striped:!0},style:{backgroundColor:"$color.card"}}]},FileUpload:{dropzone:[{style:{backgroundColor:"$color.card",borderColor:"$color.border"}},{when:{state:"dragover"},style:{backgroundColor:"$color.accent",borderColor:"$color.ring"}}]},Sidebar:{sidebar:[{style:{backgroundColor:"$color.card"}}]}},$b={$comment:fb,$schema:hb,id:gb,name:mb,extends:"neutral",modes:yb,tokens:bb,fonts:vb,recipes:xb},wb="https://ui.exponential.at/schemas/theme/v1.json",kb="neutral",Sb="Neutral",Cb={light:{color:{background:"#ffffff",foreground:"#0a0a0a",card:"#ffffff",cardForeground:"#0a0a0a",popover:"#ffffff",popoverForeground:"#0a0a0a",primary:"#171717",primaryForeground:"#fafafa",secondary:"#f5f5f5",secondaryForeground:"#171717",muted:"#f5f5f5",mutedForeground:"#737373",accent:"#f5f5f5",accentForeground:"#171717",destructive:"#e7000b",destructiveForeground:"#fafafa",success:"#16a34a",successForeground:"#ffffff",warning:"#d97706",warningForeground:"#ffffff",info:"#2563eb",infoForeground:"#ffffff",border:"#e5e5e5",input:"#e5e5e5",ring:"#a1a1a1",chart1:"#f54900",chart2:"#009689",chart3:"#104e64",chart4:"#ffb900",chart5:"#fe9a00",chart6:"#7c3aed",chart7:"#db2777",chart8:"#0891b2"},shadow:{none:[],sm:[{x:0,y:1,blur:2,spread:0,color:"#0000000d"}],md:[{x:0,y:4,blur:6,spread:-1,color:"#0000001a"},{x:0,y:2,blur:4,spread:-2,color:"#0000001a"}],lg:[{x:0,y:10,blur:15,spread:-3,color:"#0000001a"},{x:0,y:4,blur:6,spread:-4,color:"#0000001a"}],xl:[{x:0,y:20,blur:25,spread:-5,color:"#0000001a"},{x:0,y:8,blur:10,spread:-6,color:"#0000001a"}]}},dark:{color:{background:"#0a0a0a",foreground:"#fafafa",card:"#171717",cardForeground:"#fafafa",popover:"#171717",popoverForeground:"#fafafa",primary:"#e5e5e5",primaryForeground:"#171717",secondary:"#262626",secondaryForeground:"#fafafa",muted:"#262626",mutedForeground:"#a1a1a1",accent:"#262626",accentForeground:"#fafafa",destructive:"#ff6467",destructiveForeground:"#fafafa",success:"#22c55e",successForeground:"#052e16",warning:"#f59e0b",warningForeground:"#1c1917",info:"#3b82f6",infoForeground:"#ffffff",border:"#ffffff1a",input:"#ffffff26",ring:"#737373",chart1:"#1447e6",chart2:"#00bc7d",chart3:"#fe9a00",chart4:"#ad46ff",chart5:"#ff2056",chart6:"#a78bfa",chart7:"#f472b6",chart8:"#22d3ee"},shadow:{none:[],sm:[{x:0,y:1,blur:2,spread:0,color:"#00000033"}],md:[{x:0,y:4,blur:6,spread:-1,color:"#00000066"},{x:0,y:2,blur:4,spread:-2,color:"#00000066"}],lg:[{x:0,y:10,blur:15,spread:-3,color:"#00000066"},{x:0,y:4,blur:6,spread:-4,color:"#00000066"}],xl:[{x:0,y:20,blur:25,spread:-5,color:"#00000080"},{x:0,y:8,blur:10,spread:-6,color:"#00000080"}]}}},Ab={light:{color:{foreground:"#000000",mutedForeground:"#404040",border:"#737373",input:"#737373",ring:"#000000",cardForeground:"#000000",popoverForeground:"#000000"}},dark:{color:{foreground:"#ffffff",mutedForeground:"#d4d4d4",border:"#a3a3a3",input:"#a3a3a3",ring:"#ffffff",cardForeground:"#ffffff",popoverForeground:"#ffffff"}}},Tb={spacing:{none:0,xxs:2,xs:4,sm:8,md:12,lg:16,xl:24,xl2:32,xl3:48},radius:{none:0,sm:6,md:8,lg:10,xl:14,xl2:18,xl3:22,full:9999},type:{size:{xs:12,sm:14,base:16,lg:18,xl:20,xl2:24,xl3:30},lineHeight:{xs:16,sm:20,base:24,lg:28,xl:28,xl2:32,xl3:36},weight:{regular:400,medium:500,semibold:600,bold:700},family:{sans:"Geist",mono:"Geist Mono",serif:"ui-serif"}},control:{buttonSm:32,buttonMd:36,buttonLg:40,buttonIcon:36,input:36,textarea:64,row:40,rowCompact:32,pill:24,badge:20,chip:28,toggle:36,switch:20,checkbox:16,slider:16,progress:8,meter:8,avatarSm:24,avatarMd:32,avatarLg:40,iconSm:16,iconMd:20,iconLg:24,hairline:1,appBar:56,tabBar:56,toast:64},opacity:{primary:1,secondary:.7,tertiary:.5,quaternary:.3,disabled:.5},border:{none:0,hairline:1,thick:2},motion:{fast:120,standard:180,slow:280},breakpoint:{sm:640,md:768,lg:1024,xl:1280},ease:{standard:[.2,0,0,1],decelerate:[0,0,.2,1],accelerate:[.3,0,1,1]},density:{compact:.875,comfortable:1.125},blur:{sm:4,md:12,lg:16,xl:24},scale:{press:1,popoverFrom:.95}},Ib={Geist:{fallback:"ui-sans-serif, system-ui, sans-serif",weights:[400,500,600,700],source:"host"},"Geist Mono":{fallback:"ui-monospace, SFMono-Regular, Menlo, monospace",weights:[400,500],source:"host"},"ui-serif":{fallback:"Georgia, serif",source:"system"}},Eb=JSON.parse('{"Text":{"root":[{"style":{"fontFamily":"$type.family.sans","fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","fontWeight":"$type.weight.regular","color":"$color.foreground"}},{"when":{"variant":"caption"},"style":{"fontSize":"$type.size.xs","lineHeight":"$type.lineHeight.xs"}},{"when":{"variant":"muted"},"style":{"color":"$color.mutedForeground"}},{"when":{"variant":"lead"},"style":{"fontSize":"$type.size.lg","lineHeight":"$type.lineHeight.lg","color":"$color.mutedForeground"}},{"when":{"variant":"code"},"style":{"fontFamily":"$type.family.mono","fontSize":"$type.size.xs","lineHeight":"$type.lineHeight.xs"}},{"when":{"variant":"label"},"style":{"fontWeight":"$type.weight.medium"}},{"when":{"variant":"title"},"style":{"fontSize":"$type.size.lg","lineHeight":"$type.lineHeight.lg","fontWeight":"$type.weight.semibold"}},{"when":{"tone":"primary"},"style":{"color":"$color.primary"}},{"when":{"tone":"success"},"style":{"color":"$color.success"}},{"when":{"tone":"warning"},"style":{"color":"$color.warning"}},{"when":{"tone":"danger"},"style":{"color":"$color.destructive"}},{"when":{"tone":"info"},"style":{"color":"$color.info"}},{"when":{"tone":"neutral"},"style":{"color":"$color.mutedForeground"}}]},"Heading":{"root":[{"when":{"level":"h1"},"style":{"fontSize":"$type.size.xl3","lineHeight":"$type.lineHeight.xl3","fontWeight":"$type.weight.bold"}},{"when":{"level":"h2"},"style":{"fontSize":"$type.size.xl2","lineHeight":"$type.lineHeight.xl2","fontWeight":"$type.weight.semibold"}},{"when":{"level":"h3"},"style":{"fontSize":"$type.size.xl","lineHeight":"$type.lineHeight.xl","fontWeight":"$type.weight.semibold"}},{"when":{"level":"h4"},"style":{"fontSize":"$type.size.lg","lineHeight":"$type.lineHeight.lg","fontWeight":"$type.weight.semibold"}}]},"Markdown":{"root":[{"style":{"fontFamily":"$type.family.sans","fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","color":"$color.foreground","gap":"$spacing.md"}}],"heading":[{"style":{"fontWeight":"$type.weight.semibold","fontSize":"$type.size.lg","lineHeight":"$type.lineHeight.lg"}}],"link":[{"style":{"color":"$color.primary"}}],"code":[{"style":{"fontFamily":"$type.family.mono","fontSize":"$type.size.xs","backgroundColor":"$color.muted","borderRadius":"$radius.sm","paddingHorizontal":"$spacing.xs"}}],"codeBlock":[{"style":{"fontFamily":"$type.family.mono","fontSize":"$type.size.xs","lineHeight":"$type.lineHeight.sm","backgroundColor":"$color.muted","borderRadius":"$radius.md","padding":"$spacing.md"}}],"quote":[{"style":{"borderWidth":"$border.thick","borderColor":"$color.border","color":"$color.mutedForeground","paddingHorizontal":"$spacing.md"}}],"table":[{"style":{"borderWidth":"$border.hairline","borderColor":"$color.border","borderRadius":"$radius.md"}}]},"Icon":{"root":[{"style":{"width":"$control.iconMd","height":"$control.iconMd","color":"$color.foreground"}},{"when":{"size":"sm"},"style":{"width":"$control.iconSm","height":"$control.iconSm"}},{"when":{"size":"lg"},"style":{"width":"$control.iconLg","height":"$control.iconLg"}},{"when":{"tone":"primary"},"style":{"color":"$color.primary"}},{"when":{"tone":"success"},"style":{"color":"$color.success"}},{"when":{"tone":"warning"},"style":{"color":"$color.warning"}},{"when":{"tone":"danger"},"style":{"color":"$color.destructive"}},{"when":{"tone":"info"},"style":{"color":"$color.info"}},{"when":{"tone":"neutral"},"style":{"color":"$color.mutedForeground"}}]},"Avatar":{"root":[{"style":{"width":"$control.avatarMd","height":"$control.avatarMd","borderRadius":"$radius.full"}},{"when":{"size":"sm"},"style":{"width":"$control.avatarSm","height":"$control.avatarSm"}},{"when":{"size":"lg"},"style":{"width":"$control.avatarLg","height":"$control.avatarLg"}}],"fallback":[{"style":{"backgroundColor":"$color.muted","color":"$color.mutedForeground","fontSize":"$type.size.sm","fontWeight":"$type.weight.medium","fontFamily":"$type.family.sans"}}]},"QrCode":{"root":[{"style":{"gap":"$spacing.sm"}}],"plate":[{"style":{"backgroundColor":"$color.background","borderRadius":"$radius.md"}}],"module":[{"style":{"color":"$color.foreground"}}],"label":[{"style":{"color":"$color.mutedForeground","fontFamily":"$type.family.sans","fontSize":"$type.size.xs","lineHeight":"$type.lineHeight.xs"}}]},"Button":{"root":[{"style":{"transition":"$motion.fast","transitionEasing":"$ease.standard"}},{"style":{"height":"$control.buttonMd","paddingHorizontal":"$spacing.lg","gap":"$spacing.sm","borderRadius":"$radius.md","borderWidth":"$border.none","fontFamily":"$type.family.sans","fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","fontWeight":"$type.weight.medium","backgroundColor":"$color.primary","color":"$color.primaryForeground","boxShadow":"$shadow.sm"}},{"when":{"variant":"default","state":"hover"},"style":{"opacity":0.9}},{"when":{"variant":"secondary"},"style":{"backgroundColor":"$color.secondary","color":"$color.secondaryForeground"}},{"when":{"variant":"secondary","state":"hover"},"style":{"opacity":0.8}},{"when":{"variant":"outline"},"style":{"backgroundColor":"$color.background","color":"$color.foreground","borderWidth":"$border.hairline","borderColor":"$color.input"}},{"when":{"variant":"outline","state":"hover"},"style":{"backgroundColor":"$color.accent","color":"$color.accentForeground"}},{"when":{"variant":"ghost"},"style":{"backgroundColor":"#00000000","color":"$color.foreground","boxShadow":"$shadow.none"}},{"when":{"variant":"ghost","state":"hover"},"style":{"backgroundColor":"$color.accent","color":"$color.accentForeground"}},{"when":{"variant":"destructive"},"style":{"backgroundColor":"$color.destructive","color":"$color.destructiveForeground"}},{"when":{"variant":"destructive","state":"hover"},"style":{"opacity":0.9}},{"when":{"variant":"link"},"style":{"backgroundColor":"#00000000","color":"$color.primary","paddingHorizontal":"$spacing.none","boxShadow":"$shadow.none"}},{"when":{"variant":"link","state":"hover"},"style":{"opacity":0.8}},{"when":{"size":"sm"},"style":{"height":"$control.buttonSm","paddingHorizontal":"$spacing.md","gap":"$spacing.xs"}},{"when":{"size":"lg"},"style":{"height":"$control.buttonLg","paddingHorizontal":"$spacing.xl"}},{"when":{"size":"icon"},"style":{"height":"$control.buttonIcon","width":"$control.buttonIcon","paddingHorizontal":"$spacing.none"}},{"when":{"state":"pressed"},"style":{"opacity":0.8}},{"when":{"state":"focus"},"style":{"borderWidth":"$border.hairline","borderColor":"$color.ring"}},{"when":{"state":"disabled"},"style":{"opacity":"$opacity.disabled"}}],"icon":[{"style":{"width":"$control.iconSm","height":"$control.iconSm"}}],"spinner":[{"style":{"width":"$control.iconSm","height":"$control.iconSm"}}]},"Link":{"root":[{"style":{"color":"$color.primary","fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","fontFamily":"$type.family.sans"}},{"when":{"state":"hover"},"style":{"opacity":0.8}}]},"Toggle":{"root":[{"style":{"transition":"$motion.fast","transitionEasing":"$ease.standard"}},{"style":{"height":"$control.toggle","paddingHorizontal":"$spacing.md","gap":"$spacing.sm","borderRadius":"$radius.md","fontSize":"$type.size.sm","fontWeight":"$type.weight.medium","fontFamily":"$type.family.sans","backgroundColor":"#00000000","color":"$color.foreground"}},{"when":{"variant":"outline"},"style":{"borderWidth":"$border.hairline","borderColor":"$color.input","boxShadow":"$shadow.sm"}},{"when":{"size":"sm"},"style":{"height":"$control.buttonSm","paddingHorizontal":"$spacing.sm"}},{"when":{"size":"lg"},"style":{"height":"$control.buttonLg","paddingHorizontal":"$spacing.lg"}},{"when":{"state":"hover"},"style":{"backgroundColor":"$color.muted","color":"$color.mutedForeground"}},{"when":{"pressed":true},"style":{"backgroundColor":"$color.accent","color":"$color.accentForeground"}},{"when":{"state":"checked"},"style":{"backgroundColor":"$color.accent","color":"$color.accentForeground"}},{"when":{"state":"disabled"},"style":{"opacity":"$opacity.disabled"}}]},"Segmented":{"root":[{"when":{"variant":["toggles","outline","segmented"]},"style":{"gap":"$spacing.xxs"}},{"when":{"variant":"segmented"},"style":{"backgroundColor":"$color.muted","borderRadius":"$radius.md","padding":"$spacing.xxs"}},{"when":{"variant":"bar"},"style":{"backgroundColor":"$color.background","borderTopWidth":"$border.hairline","borderColor":"$color.border"}},{"when":{"variant":"bar","orientation":"vertical"},"style":{"width":72,"borderTopWidth":"$border.none","borderRightWidth":"$border.hairline"}}],"item":[{"when":{"variant":["toggles","outline","segmented"]},"style":{"height":"$control.toggle","paddingHorizontal":"$spacing.md","borderRadius":"$radius.md","fontSize":"$type.size.sm","fontWeight":"$type.weight.medium","fontFamily":"$type.family.sans","backgroundColor":"#00000000","color":"$color.mutedForeground"}},{"when":{"variant":"outline"},"style":{"borderWidth":"$border.hairline","borderColor":"$color.input","color":"$color.foreground"}},{"when":{"variant":"segmented"},"style":{"height":"$control.buttonSm","borderRadius":"$radius.sm"}},{"when":{"variant":["toggles","outline","segmented"],"size":"sm"},"style":{"height":"$control.buttonSm","paddingHorizontal":"$spacing.sm"}},{"when":{"variant":["toggles","outline","segmented"],"size":"lg"},"style":{"height":"$control.buttonLg","paddingHorizontal":"$spacing.lg"}},{"when":{"variant":["toggles","outline","segmented"],"state":"hover"},"style":{"backgroundColor":"$color.muted","color":"$color.foreground"}},{"when":{"variant":["toggles","outline"],"state":"selected"},"style":{"backgroundColor":"$color.accent","color":"$color.accentForeground"}},{"when":{"variant":"segmented","state":"selected"},"style":{"backgroundColor":"$color.background","color":"$color.foreground","boxShadow":"$shadow.sm"}},{"when":{"variant":"bar"},"style":{"color":"$color.mutedForeground","transition":"$motion.fast","transitionEasing":"$ease.standard"}},{"when":{"variant":"bar","state":"pressed"},"style":{"opacity":0.7}},{"when":{"variant":"bar","orientation":"vertical"},"style":{"width":72,"height":"$control.tabBar"}}],"icon":[{"when":{"variant":"bar"},"style":{"color":"$color.mutedForeground"}},{"when":{"variant":"bar","state":"selected"},"style":{"color":"$color.primary"}}],"label":[{"when":{"variant":"bar"},"style":{"color":"$color.mutedForeground"}},{"when":{"variant":"bar","state":"selected"},"style":{"color":"$color.foreground","fontWeight":"$type.weight.medium"}}],"badge":[{"style":{"minWidth":16,"height":16,"paddingHorizontal":"$spacing.xxs","borderRadius":"$radius.full","backgroundColor":"$color.primary","color":"$color.primaryForeground","fontSize":"$type.size.xs","lineHeight":"$type.lineHeight.xs","fontWeight":"$type.weight.medium"}}]},"Tabs":{"list":[{"style":{"backgroundColor":"$color.muted","borderRadius":"$radius.md","padding":"$spacing.xxs","gap":"$spacing.xxs"}}],"tab":[{"style":{"transition":"$motion.fast","transitionEasing":"$ease.standard"}},{"style":{"height":"$control.buttonSm","paddingHorizontal":"$spacing.md","borderRadius":"$radius.sm","fontSize":"$type.size.sm","fontWeight":"$type.weight.medium","fontFamily":"$type.family.sans","color":"$color.mutedForeground","backgroundColor":"#00000000"}},{"when":{"state":"hover"},"style":{"color":"$color.foreground"}},{"when":{"state":"selected"},"style":{"backgroundColor":"$color.background","color":"$color.foreground","boxShadow":"$shadow.sm"}},{"when":{"state":"disabled"},"style":{"opacity":"$opacity.disabled"}}],"indicator":[{"style":{"height":"$border.none","backgroundColor":"#00000000"}}],"content":[{"style":{"paddingVertical":"$spacing.md"}}],"close":[{"style":{"width":"$control.iconSm","height":"$control.iconSm","borderRadius":"$radius.sm","color":"$color.mutedForeground","backgroundColor":"#00000000","transition":"$motion.fast","transitionEasing":"$ease.standard"}},{"when":{"state":"hover"},"style":{"backgroundColor":"$color.accent","color":"$color.accentForeground"}},{"when":{"closable":"hover"},"style":{"opacity":0}},{"when":{"closable":"hover","state":"hover"},"style":{"opacity":1}},{"when":{"closable":"hover","state":"focus"},"style":{"opacity":1}}],"new":[{"style":{"width":"$control.buttonSm","height":"$control.buttonSm","borderRadius":"$radius.sm","color":"$color.mutedForeground","backgroundColor":"#00000000","transition":"$motion.fast","transitionEasing":"$ease.standard"}},{"when":{"state":"hover"},"style":{"backgroundColor":"$color.accent","color":"$color.accentForeground"}}]},"Accordion":{"item":[{"style":{"borderWidth":"$border.hairline","borderColor":"$color.border"}}],"trigger":[{"style":{"paddingVertical":"$spacing.lg","fontSize":"$type.size.sm","fontWeight":"$type.weight.medium","fontFamily":"$type.family.sans","color":"$color.foreground","gap":"$spacing.sm"}},{"when":{"state":"hover"},"style":{"opacity":0.8}}],"content":[{"style":{"paddingVertical":"$spacing.md","fontSize":"$type.size.sm","color":"$color.foreground"}}],"count":[{"style":{"color":"$color.mutedForeground","fontWeight":"$type.weight.regular"}}]},"Dialog":{"overlay":[{"style":{"backgroundColor":"#00000080"}}],"content":[{"style":{"backgroundColor":"$color.background","color":"$color.foreground","borderWidth":"$border.hairline","borderColor":"$color.border","borderRadius":"$radius.lg","boxShadow":"$shadow.lg","padding":"$spacing.xl","gap":"$spacing.lg"}}],"title":[{"style":{"fontSize":"$type.size.lg","lineHeight":"$type.lineHeight.lg","fontWeight":"$type.weight.semibold","fontFamily":"$type.family.sans"}}],"description":[{"style":{"fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","color":"$color.mutedForeground"}}],"footer":[{"style":{"gap":"$spacing.sm"}}],"close":[{"style":{"width":"$control.buttonIcon","height":"$control.buttonIcon","borderRadius":"$radius.sm","color":"$color.mutedForeground","backgroundColor":"#00000000"}},{"when":{"state":"hover"},"style":{"backgroundColor":"$color.accent","color":"$color.accentForeground"}}]},"Drawer":{"overlay":[{"style":{"backgroundColor":"#00000080"}}],"content":[{"style":{"backgroundColor":"$color.background","color":"$color.foreground","borderWidth":"$border.hairline","borderColor":"$color.border","borderRadius":"$radius.lg","boxShadow":"$shadow.lg","padding":"$spacing.xl","gap":"$spacing.lg"}}],"handle":[{"style":{"width":100,"height":8,"borderRadius":"$radius.full","backgroundColor":"$color.muted"}}],"title":[{"style":{"fontSize":"$type.size.lg","lineHeight":"$type.lineHeight.lg","fontWeight":"$type.weight.semibold","fontFamily":"$type.family.sans"}}],"description":[{"style":{"fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","color":"$color.mutedForeground"}}],"footer":[{"style":{"gap":"$spacing.sm"}}]},"Popover":{"content":[{"style":{"backgroundColor":"$color.popover","color":"$color.popoverForeground","borderWidth":"$border.hairline","borderColor":"$color.border","borderRadius":"$radius.md","boxShadow":"$shadow.md","padding":"$spacing.lg"}}],"arrow":[{"style":{"backgroundColor":"$color.popover","borderColor":"$color.border"}}]},"Tooltip":{"content":[{"style":{"backgroundColor":"$color.primary","color":"$color.primaryForeground","borderRadius":"$radius.md","paddingHorizontal":"$spacing.md","paddingVertical":"$spacing.xs","fontSize":"$type.size.xs","lineHeight":"$type.lineHeight.xs","fontFamily":"$type.family.sans"}}],"arrow":[{"style":{"backgroundColor":"$color.primary"}}]},"Menu":{"trigger":[{"style":{"height":"$control.buttonMd","paddingHorizontal":"$spacing.md","gap":"$spacing.xs","borderRadius":"$radius.md","borderWidth":"$border.hairline","borderColor":"$color.input","backgroundColor":"$color.background","color":"$color.foreground","fontFamily":"$type.family.sans","fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","fontWeight":"$type.weight.medium"}},{"when":{"state":"hover"},"style":{"backgroundColor":"$color.accent","color":"$color.accentForeground"}},{"when":{"state":"open"},"style":{"backgroundColor":"$color.accent","color":"$color.accentForeground"}},{"when":{"state":"focus"},"style":{"borderColor":"$color.ring"}}],"content":[{"style":{"backgroundColor":"$color.popover","color":"$color.popoverForeground","borderWidth":"$border.hairline","borderColor":"$color.border","borderRadius":"$radius.md","boxShadow":"$shadow.md","padding":"$spacing.xs"}}],"item":[{"style":{"height":"$control.buttonSm","paddingHorizontal":"$spacing.sm","borderRadius":"$radius.sm","fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","color":"$color.popoverForeground","gap":"$spacing.sm"}},{"when":{"state":"hover"},"style":{"backgroundColor":"$color.accent","color":"$color.accentForeground"}},{"when":{"state":"selected"},"style":{"backgroundColor":"$color.accent","color":"$color.accentForeground"}},{"when":{"state":"disabled"},"style":{"opacity":"$opacity.disabled"}}],"separator":[{"style":{"height":"$control.hairline","backgroundColor":"$color.border"}}],"label":[{"style":{"paddingHorizontal":"$spacing.sm","fontSize":"$type.size.sm","fontWeight":"$type.weight.medium","color":"$color.foreground"}}],"shortcut":[{"style":{"fontSize":"$type.size.xs","lineHeight":"$type.lineHeight.xs","color":"$color.mutedForeground","letterSpacing":1}}],"check":[{"style":{"width":"$control.iconSm","height":"$control.iconSm","color":"$color.foreground"}}],"submenuIndicator":[{"style":{"width":"$control.iconSm","height":"$control.iconSm","color":"$color.mutedForeground"}}],"head":[{"style":{"height":36,"gap":"$spacing.sm","paddingHorizontal":"$spacing.sm","borderBottomWidth":"$border.hairline","borderColor":"$color.border"}}],"search":[{"style":{"fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","fontFamily":"$type.family.sans","color":"$color.foreground"}}],"count":[{"style":{"fontSize":"$type.size.xs","lineHeight":"$type.lineHeight.xs","color":"$color.mutedForeground"}}],"list":[{"style":{"paddingVertical":"$spacing.xs"}}],"empty":[{"style":{"padding":"$spacing.md","fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","color":"$color.mutedForeground"}}],"fade":[{"style":{"height":24,"backgroundColor":"$color.popover"}}]},"Ring":{"root":[{"style":{"width":"$control.avatarMd","height":"$control.avatarMd"}},{"when":{"size":"sm"},"style":{"width":"$control.avatarSm","height":"$control.avatarSm"}},{"when":{"size":"lg"},"style":{"width":"$control.avatarLg","height":"$control.avatarLg"}}],"track":[{"style":{"color":"$color.muted","borderWidth":"$border.thick"}}],"fill":[{"style":{"color":"$color.primary","borderWidth":"$border.thick"}},{"when":{"tone":"primary"},"style":{"color":"$color.primary"}},{"when":{"tone":"success"},"style":{"color":"$color.success"}},{"when":{"tone":"warning"},"style":{"color":"$color.warning"}},{"when":{"tone":"danger"},"style":{"color":"$color.destructive"}},{"when":{"tone":"info"},"style":{"color":"$color.info"}},{"when":{"tone":"neutral"},"style":{"color":"$color.mutedForeground"}}],"label":[{"style":{"fontSize":"$type.size.xs","fontWeight":"$type.weight.medium","color":"$color.foreground"}}]},"Spinner":{"root":[{"style":{"width":"$control.iconMd","height":"$control.iconMd","color":"$color.mutedForeground"}},{"when":{"size":"sm"},"style":{"width":"$control.iconSm","height":"$control.iconSm"}},{"when":{"size":"lg"},"style":{"width":"$control.iconLg","height":"$control.iconLg"}},{"when":{"size":"xs"},"style":{"width":10,"height":10}}]},"VoiceWave":{"root":[{"style":{"width":56,"height":56,"opacity":1}},{"when":{"size":"sm"},"style":{"width":32,"height":32}},{"when":{"size":"lg"},"style":{"width":160,"height":160}},{"when":{"size":"xl"},"style":{"width":200,"height":200}},{"when":{"activity":"idle"},"style":{"opacity":0.35}},{"when":{"activity":"muted"},"style":{"opacity":0.35}},{"when":{"variant":"bars","size":"sm"},"style":{"width":78,"height":16}},{"when":{"variant":"bars","size":"md"},"style":{"width":117,"height":24}},{"when":{"variant":"bars","size":"lg"},"style":{"width":156,"height":40}},{"when":{"variant":"bars","size":"xl"},"style":{"width":195,"height":56}}],"outer":[{"style":{"color":"$color.info"}},{"when":{"activity":"idle"},"style":{"color":"$color.mutedForeground"}},{"when":{"activity":"muted"},"style":{"color":"$color.mutedForeground"}}],"mid":[{"style":{"color":"$color.primary"}},{"when":{"activity":"idle"},"style":{"color":"$color.mutedForeground"}},{"when":{"activity":"muted"},"style":{"color":"$color.mutedForeground"}}],"inner":[{"style":{"color":"$color.primary"}},{"when":{"activity":"idle"},"style":{"color":"$color.mutedForeground"}},{"when":{"activity":"muted"},"style":{"color":"$color.mutedForeground"}}],"child":[{"style":{"color":"$color.foreground"}},{"when":{"activity":"muted"},"style":{"color":"$color.mutedForeground"}}],"bar":[{"style":{"color":"$color.primary"}},{"when":{"activity":"idle"},"style":{"color":"$color.mutedForeground"}},{"when":{"activity":"muted"},"style":{"color":"$color.mutedForeground"}}]},"Skeleton":{"root":[{"style":{"backgroundColor":"$color.accent","borderRadius":"$radius.md"}},{"when":{"rounded":true},"style":{"borderRadius":"$radius.full"}}],"row":[{"style":{"gap":"$spacing.md","paddingHorizontal":"$spacing.md"}}],"dot":[{"style":{"width":12,"height":12,"borderRadius":"$radius.full","backgroundColor":"$color.accent"}}],"bar":[{"style":{"height":8,"borderRadius":4,"backgroundColor":"$color.accent"}}]},"Input":{"field":[{"style":{"height":"$control.input","paddingHorizontal":"$spacing.md","borderRadius":"$radius.md","borderWidth":"$border.hairline","borderColor":"$color.input","backgroundColor":"$color.background","color":"$color.foreground","fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","fontFamily":"$type.family.sans","boxShadow":"$shadow.sm"}},{"when":{"state":"focus"},"style":{"borderColor":"$color.ring"}},{"when":{"state":"disabled"},"style":{"opacity":"$opacity.disabled"}},{"when":{"state":"invalid"},"style":{"borderColor":"$color.destructive"}}],"label":[{"style":{"fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","fontWeight":"$type.weight.medium","color":"$color.foreground"}}],"placeholder":[{"style":{"color":"$color.mutedForeground"}}],"description":[{"style":{"fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","color":"$color.mutedForeground"}}],"error":[{"style":{"fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","color":"$color.destructive"}}]},"Textarea":{"field":[{"style":{"height":"$control.input","paddingHorizontal":"$spacing.md","borderRadius":"$radius.md","borderWidth":"$border.hairline","borderColor":"$color.input","backgroundColor":"$color.background","color":"$color.foreground","fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","fontFamily":"$type.family.sans","boxShadow":"$shadow.sm","minHeight":"$control.textarea","paddingVertical":"$spacing.sm"}},{"when":{"state":"focus"},"style":{"borderColor":"$color.ring"}},{"when":{"state":"disabled"},"style":{"opacity":"$opacity.disabled"}},{"when":{"state":"invalid"},"style":{"borderColor":"$color.destructive"}}],"label":[{"style":{"fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","fontWeight":"$type.weight.medium","color":"$color.foreground"}}],"placeholder":[{"style":{"color":"$color.mutedForeground"}}],"description":[{"style":{"fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","color":"$color.mutedForeground"}}],"error":[{"style":{"fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","color":"$color.destructive"}}]},"Checkbox":{"box":[{"style":{"width":"$control.checkbox","height":"$control.checkbox","borderRadius":4,"borderWidth":"$border.hairline","borderColor":"$color.input","backgroundColor":"$color.background","boxShadow":"$shadow.sm"}},{"when":{"checked":true},"style":{"backgroundColor":"$color.primary","borderColor":"$color.primary"}},{"when":{"state":"focus"},"style":{"borderColor":"$color.ring"}},{"when":{"disabled":true},"style":{"opacity":"$opacity.disabled"}}],"check":[{"style":{"color":"$color.primaryForeground","width":12,"height":12}}],"label":[{"style":{"fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","fontWeight":"$type.weight.medium","color":"$color.foreground"}}],"description":[{"style":{"fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","color":"$color.mutedForeground"}}]},"Radio":{"root":[{"style":{"gap":"$spacing.sm"}}],"item":[{"style":{"width":"$control.checkbox","height":"$control.checkbox","borderRadius":"$radius.full","borderWidth":"$border.hairline","borderColor":"$color.input","backgroundColor":"$color.background","boxShadow":"$shadow.sm"}},{"when":{"state":"checked"},"style":{"borderColor":"$color.primary"}},{"when":{"state":"focus"},"style":{"borderColor":"$color.ring"}}],"dot":[{"style":{"width":8,"height":8,"borderRadius":"$radius.full","backgroundColor":"$color.primary"}}],"label":[{"style":{"fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","fontWeight":"$type.weight.medium","color":"$color.foreground"}}]},"ChoiceTiles":{"root":[{"style":{"gap":"$spacing.sm"}}],"tile":[{"style":{"padding":"$spacing.sm","gap":"$spacing.xs","borderWidth":"$border.hairline","borderColor":"$color.border","borderRadius":"$radius.md","backgroundColor":"$color.card","transition":"$motion.fast","transitionEasing":"$ease.standard"}},{"when":{"state":"hover"},"style":{"borderColor":"$color.input"}},{"when":{"state":"focus"},"style":{"borderColor":"$color.ring"}},{"when":{"state":"selected"},"style":{"borderWidth":"$border.thick","padding":7,"borderColor":"$color.primary"}},{"when":{"state":"invalid"},"style":{"borderColor":"$color.destructive"}},{"when":{"state":"disabled"},"style":{"opacity":"$opacity.disabled"}}],"picture":[{"style":{"borderRadius":6,"backgroundColor":"$color.muted"}}],"label":[{"style":{"fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","fontWeight":"$type.weight.medium","color":"$color.foreground"}}],"description":[{"style":{"fontSize":"$type.size.xs","lineHeight":"$type.lineHeight.xs","color":"$color.mutedForeground"}}]},"Switch":{"root":[{"style":{"gap":"$spacing.sm"}}],"track":[{"style":{"transition":"$motion.standard","transitionEasing":"$ease.standard"}},{"style":{"width":32,"height":"$control.switch","borderRadius":"$radius.full","backgroundColor":"$color.input","native":false}},{"when":{"checked":true},"style":{"backgroundColor":"$color.primary"}},{"when":{"state":"focus"},"style":{"borderWidth":"$border.thick","borderColor":"$color.ring"}},{"when":{"disabled":true},"style":{"opacity":"$opacity.disabled"}}],"thumb":[{"style":{"transition":"$motion.standard","transitionEasing":"$ease.standard"}},{"style":{"width":16,"height":16,"borderRadius":"$radius.full","backgroundColor":"$color.background","boxShadow":"$shadow.sm"}},{"when":{"checked":true},"style":{"backgroundColor":"$color.primaryForeground"}}],"label":[{"style":{"fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","fontWeight":"$type.weight.medium","color":"$color.foreground"}}],"description":[{"style":{"fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","color":"$color.mutedForeground"}}]},"Slider":{"track":[{"style":{"height":6,"borderRadius":"$radius.full","backgroundColor":"$color.muted"}}],"range":[{"style":{"backgroundColor":"$color.primary"}}],"thumb":[{"style":{"width":"$control.slider","height":"$control.slider","borderRadius":"$radius.full","backgroundColor":"$color.background","borderWidth":"$border.hairline","borderColor":"$color.primary","boxShadow":"$shadow.sm"}},{"when":{"state":"focus"},"style":{"borderColor":"$color.ring"}}],"label":[{"style":{"fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","fontWeight":"$type.weight.medium","color":"$color.foreground"}}],"value":[{"style":{"fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","color":"$color.mutedForeground"}}]},"Select":{"trigger":[{"style":{"height":"$control.input","paddingHorizontal":"$spacing.md","borderRadius":"$radius.md","borderWidth":"$border.hairline","borderColor":"$color.input","backgroundColor":"$color.background","color":"$color.foreground","fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","fontFamily":"$type.family.sans","boxShadow":"$shadow.sm"}},{"when":{"state":"focus"},"style":{"borderColor":"$color.ring"}},{"when":{"state":"disabled"},"style":{"opacity":"$opacity.disabled"}},{"when":{"state":"invalid"},"style":{"borderColor":"$color.destructive"}}],"label":[{"style":{"fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","fontWeight":"$type.weight.medium","color":"$color.foreground"}}],"placeholder":[{"style":{"color":"$color.mutedForeground"}}],"content":[{"style":{"backgroundColor":"$color.popover","color":"$color.popoverForeground","borderWidth":"$border.hairline","borderColor":"$color.border","borderRadius":"$radius.md","boxShadow":"$shadow.md","padding":"$spacing.xs"}}],"item":[{"style":{"height":"$control.buttonSm","paddingHorizontal":"$spacing.sm","borderRadius":"$radius.sm","fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","color":"$color.popoverForeground","gap":"$spacing.sm"}},{"when":{"state":"hover"},"style":{"backgroundColor":"$color.accent","color":"$color.accentForeground"}},{"when":{"state":"selected"},"style":{"backgroundColor":"$color.accent","color":"$color.accentForeground"}},{"when":{"state":"disabled"},"style":{"opacity":"$opacity.disabled"}}],"check":[{"style":{"width":"$control.iconSm","height":"$control.iconSm","color":"$color.foreground"}}],"search":[{"style":{"height":"$control.buttonSm","paddingHorizontal":"$spacing.sm","fontSize":"$type.size.sm","color":"$color.foreground","borderBottomWidth":"$border.hairline","borderColor":"$color.border"}}],"empty":[{"style":{"padding":"$spacing.sm","fontSize":"$type.size.sm","color":"$color.mutedForeground"}}]},"SearchList":{"root":[{"style":{"backgroundColor":"$color.popover","color":"$color.popoverForeground","borderWidth":"$border.hairline","borderColor":"$color.border","borderRadius":"$radius.md"}}],"head":[{"style":{"height":40,"gap":"$spacing.sm","paddingHorizontal":"$spacing.md","borderBottomWidth":"$border.hairline","borderColor":"$color.border"}}],"search":[{"style":{"fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","fontFamily":"$type.family.sans","color":"$color.foreground"}}],"count":[{"style":{"fontSize":"$type.size.xs","lineHeight":"$type.lineHeight.xs","color":"$color.mutedForeground"}}],"list":[{"style":{"padding":"$spacing.xs"}}],"item":[{"style":{"height":"$control.row","paddingHorizontal":"$spacing.sm","gap":"$spacing.sm","borderRadius":"$radius.sm","fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","color":"$color.popoverForeground"}},{"when":{"state":"hover"},"style":{"backgroundColor":"$color.accent","color":"$color.accentForeground"}},{"when":{"state":"selected"},"style":{"backgroundColor":"$color.accent","color":"$color.accentForeground"}},{"when":{"state":"disabled"},"style":{"opacity":"$opacity.disabled"}}],"icon":[{"style":{"width":"$control.iconSm","height":"$control.iconSm","color":"$color.mutedForeground"}}],"identifier":[{"style":{"fontFamily":"$type.family.mono","fontSize":"$type.size.xs","lineHeight":"$type.lineHeight.sm","color":"$color.mutedForeground"}}],"label":[{"style":{"fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm"}}],"check":[{"style":{"width":"$control.iconSm","height":"$control.iconSm","color":"$color.foreground"}}],"empty":[{"style":{"padding":"$spacing.md","fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","color":"$color.mutedForeground"}}],"fade":[{"style":{"height":24,"backgroundColor":"$color.popover"}}]},"DatePicker":{"trigger":[{"style":{"height":"$control.input","paddingHorizontal":"$spacing.md","borderRadius":"$radius.md","borderWidth":"$border.hairline","borderColor":"$color.input","backgroundColor":"$color.background","color":"$color.foreground","fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","fontFamily":"$type.family.sans","boxShadow":"$shadow.sm"}},{"when":{"state":"focus"},"style":{"borderColor":"$color.ring"}},{"when":{"state":"disabled"},"style":{"opacity":"$opacity.disabled"}},{"when":{"state":"invalid"},"style":{"borderColor":"$color.destructive"}}],"label":[{"style":{"fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","fontWeight":"$type.weight.medium","color":"$color.foreground"}}],"calendar":[{"style":{"backgroundColor":"$color.popover","color":"$color.popoverForeground","borderWidth":"$border.hairline","borderColor":"$color.border","borderRadius":"$radius.md","boxShadow":"$shadow.md","padding":"$spacing.md"}}],"day":[{"style":{"width":"$control.buttonSm","height":"$control.buttonSm","borderRadius":"$radius.md","fontSize":"$type.size.sm","color":"$color.foreground","backgroundColor":"#00000000"}},{"when":{"state":"hover"},"style":{"backgroundColor":"$color.accent"}},{"when":{"state":"selected"},"style":{"backgroundColor":"$color.primary","color":"$color.primaryForeground"}},{"when":{"state":"disabled"},"style":{"opacity":"$opacity.disabled"}}]},"Composer":{"root":[{"style":{"backgroundColor":"$color.background","borderWidth":"$border.hairline","borderColor":"$color.input","borderRadius":"$radius.lg","padding":"$spacing.sm","gap":"$spacing.sm","boxShadow":"$shadow.sm"}},{"when":{"state":"focus"},"style":{"borderColor":"$color.ring"}}],"field":[{"style":{"fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","fontFamily":"$type.family.sans","color":"$color.foreground","minHeight":"$control.buttonMd"}}],"placeholder":[{"style":{"color":"$color.mutedForeground"}}],"attachment":[{"style":{"height":"$control.chip","paddingHorizontal":"$spacing.sm","borderRadius":"$radius.md","backgroundColor":"$color.muted","color":"$color.foreground","fontSize":"$type.size.xs"}}],"send":[{"style":{"width":"$control.buttonIcon","height":"$control.buttonIcon","borderRadius":"$radius.md","backgroundColor":"$color.primary","color":"$color.primaryForeground"}},{"when":{"busy":true},"style":{"opacity":"$opacity.disabled"}}]},"List":{"divider":[{"style":{"height":"$control.hairline","backgroundColor":"$color.border"}}],"section":[{"style":{"height":"$control.rowCompact","paddingHorizontal":"$spacing.sm","backgroundColor":"$color.background","color":"$color.mutedForeground","fontSize":"$type.size.xs","lineHeight":"$type.lineHeight.xs","fontWeight":"$type.weight.medium"}}]},"Resizable":{"handle":[{"style":{"backgroundColor":"$color.border","transition":"$motion.fast","transitionEasing":"$ease.standard"}},{"when":{"state":"hover"},"style":{"backgroundColor":"$color.ring"}},{"when":{"state":"focus"},"style":{"backgroundColor":"$color.ring"}},{"when":{"state":"pressed"},"style":{"backgroundColor":"$color.ring"}}],"grip":[{"style":{"width":6,"height":24,"borderRadius":"$radius.full","backgroundColor":"$color.border","borderWidth":"$border.hairline","borderColor":"$color.background"}},{"when":{"direction":"vertical"},"style":{"width":24,"height":6}}]},"Carousel":{"root":[{"style":{"gap":"$spacing.sm"}}],"controls":[{"style":{"gap":"$spacing.sm"}}],"previous":[{"style":{"width":28,"height":28,"borderRadius":"$radius.full","color":"$color.foreground","backgroundColor":"#00000000","transition":"$motion.fast"}},{"when":{"state":"hover"},"style":{"backgroundColor":"$color.accent","color":"$color.accentForeground"}},{"when":{"state":"disabled"},"style":{"opacity":"$opacity.disabled"}}],"next":[{"style":{"width":28,"height":28,"borderRadius":"$radius.full","color":"$color.foreground","backgroundColor":"#00000000","transition":"$motion.fast"}},{"when":{"state":"hover"},"style":{"backgroundColor":"$color.accent","color":"$color.accentForeground"}},{"when":{"state":"disabled"},"style":{"opacity":"$opacity.disabled"}}],"indicator":[{"style":{"width":8,"height":8,"borderRadius":"$radius.full","backgroundColor":"$color.border"}},{"when":{"state":"selected"},"style":{"backgroundColor":"$color.primary"}}]},"AudioPlayer":{"controls":[{"style":{"height":"$control.row"}}],"track":[{"style":{"fontFamily":"$type.family.sans","fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","fontWeight":"$type.weight.medium","color":"$color.foreground"}}]},"TreeGuides":{"line":[{"style":{"color":"$color.border","width":"$control.hairline"}}]},"Chart":{"axis":[{"style":{"color":"$color.mutedForeground","fontSize":"$type.size.xs","fontFamily":"$type.family.sans"}}],"grid":[{"style":{"color":"$color.border"}}],"legend":[{"style":{"color":"$color.mutedForeground","fontSize":"$type.size.xs","gap":"$spacing.sm"}}],"tooltip":[{"style":{"backgroundColor":"$color.popover","color":"$color.popoverForeground","borderWidth":"$border.hairline","borderColor":"$color.border","borderRadius":"$radius.md","boxShadow":"$shadow.md","padding":"$spacing.sm","fontSize":"$type.size.xs"}}],"title":[{"style":{"fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","fontWeight":"$type.weight.semibold","color":"$color.foreground","fontFamily":"$type.family.sans"}}],"valueLabel":[{"style":{"fontSize":"$type.size.xs","color":"$color.foreground","fontFamily":"$type.family.sans"}}]},"Unknown":{"root":[{"style":{"borderWidth":"$border.hairline","borderColor":"$color.destructive","borderRadius":"$radius.md","padding":"$spacing.sm"}}],"label":[{"style":{"color":"$color.destructive","fontSize":"$type.size.xs","fontFamily":"$type.family.mono"}}]},"Card":{"root":[{"style":{"backgroundColor":"$color.card","borderWidth":"$border.hairline","borderColor":"$color.border","boxShadow":"$shadow.sm"}}],"title":[{"style":{"color":"$color.cardForeground"}}]},"Separator":{"root":[{"style":{"backgroundColor":"$color.border"}}]},"Section":{"header":[{"style":{"backgroundColor":"$color.muted"}},{"when":{"tint":"primary"},"style":{"backgroundColor":"$color.accent"}},{"when":{"tint":"success"},"style":{"backgroundColor":"$color.accent"}},{"when":{"tint":"warning"},"style":{"backgroundColor":"$color.accent"}},{"when":{"tint":"danger"},"style":{"backgroundColor":"$color.accent"}},{"when":{"tint":"info"},"style":{"backgroundColor":"$color.accent"}},{"when":{"collapsible":true,"state":"hover"},"style":{"backgroundColor":"$color.accent"}}],"chevron":[{"style":{"color":"$color.mutedForeground","transition":"$motion.standard","transitionEasing":"$ease.standard"}},{"when":{"open":true},"style":{"transform":"rotate(90deg)"}}],"title":[{"when":{"tint":"primary"},"style":{"color":"$color.primary"}},{"when":{"tint":"success"},"style":{"color":"$color.success"}},{"when":{"tint":"warning"},"style":{"color":"$color.warning"}},{"when":{"tint":"danger"},"style":{"color":"$color.destructive"}},{"when":{"tint":"info"},"style":{"color":"$color.info"}}],"caption":[{"style":{"color":"$color.mutedForeground"}}],"count":[{"style":{"color":"$color.mutedForeground"}}]},"Group":{"body":[{"style":{"backgroundColor":"$color.card","borderWidth":"$border.hairline","borderColor":"$color.border"}}]},"Alert":{"root":[{"style":{"backgroundColor":"$color.card","borderWidth":"$border.hairline","borderColor":"$color.border"}},{"when":{"type":"success"},"style":{"borderColor":"$color.success"}},{"when":{"type":"warning"},"style":{"borderColor":"$color.warning"}},{"when":{"type":"error"},"style":{"borderColor":"$color.destructive"}},{"when":{"type":"info"},"style":{"borderColor":"$color.info"}}],"title":[{"style":{"color":"$color.foreground"}},{"when":{"type":"error"},"style":{"color":"$color.destructive"}}]},"Badge":{"root":[{"style":{"backgroundColor":"$color.primary","borderWidth":"$border.none"}},{"when":{"variant":"secondary"},"style":{"backgroundColor":"$color.secondary"}},{"when":{"variant":"outline"},"style":{"backgroundColor":"#00000000","borderWidth":"$border.hairline","borderColor":"$color.border"}},{"when":{"variant":"ghost"},"style":{"backgroundColor":"#00000000"}},{"when":{"variant":"destructive"},"style":{"backgroundColor":"$color.destructive"}},{"when":{"variant":"link"},"style":{"backgroundColor":"#00000000","paddingHorizontal":"$spacing.none"}}],"label":[{"style":{"color":"$color.primaryForeground","fontWeight":"$type.weight.medium"}},{"when":{"variant":"secondary"},"style":{"color":"$color.secondaryForeground"}},{"when":{"variant":"outline"},"style":{"color":"$color.foreground"}},{"when":{"variant":"ghost"},"style":{"color":"$color.foreground"}},{"when":{"variant":"destructive"},"style":{"color":"$color.destructiveForeground"}},{"when":{"variant":"link"},"style":{"color":"$color.primary"}}],"icon":[{"style":{"color":"$color.primaryForeground"}},{"when":{"variant":["secondary","outline","ghost"]},"style":{"color":"$color.foreground"}},{"when":{"variant":"destructive"},"style":{"color":"$color.destructiveForeground"}},{"when":{"variant":"link"},"style":{"color":"$color.primary"}}]},"Chip":{"root":[{"style":{"transition":"$motion.fast","transitionEasing":"$ease.standard"}},{"style":{"backgroundColor":"$color.background","borderWidth":"$border.hairline","borderColor":"$color.border"}},{"when":{"shape":"rect"},"style":{"backgroundColor":"$color.card","borderWidth":"$border.hairline","borderColor":"$color.border"}},{"when":{"state":"hover"},"style":{"backgroundColor":"$color.accent"}},{"when":{"selected":true},"style":{"backgroundColor":"$color.accent","borderColor":"$color.ring"}},{"when":{"tone":"primary"},"style":{"borderColor":"$color.primary"}},{"when":{"tone":"success"},"style":{"borderColor":"$color.success"}},{"when":{"tone":"warning"},"style":{"borderColor":"$color.warning"}},{"when":{"tone":"danger"},"style":{"borderColor":"$color.destructive"}},{"when":{"tone":"info"},"style":{"borderColor":"$color.info"}},{"when":{"tone":"neutral","shape":"pill"},"style":{"borderColor":"$color.mutedForeground"}}],"label":[{"style":{"color":"$color.foreground"}},{"when":{"tone":"primary"},"style":{"color":"$color.primary"}},{"when":{"tone":"success"},"style":{"color":"$color.success"}},{"when":{"tone":"warning"},"style":{"color":"$color.warning"}},{"when":{"tone":"danger"},"style":{"color":"$color.destructive"}},{"when":{"tone":"info"},"style":{"color":"$color.info"}},{"when":{"tone":"neutral","shape":"pill"},"style":{"color":"$color.mutedForeground"}}],"icon":[{"style":{"color":"$color.mutedForeground"}},{"when":{"tone":"primary"},"style":{"color":"$color.primary"}},{"when":{"tone":"success"},"style":{"color":"$color.success"}},{"when":{"tone":"warning"},"style":{"color":"$color.warning"}},{"when":{"tone":"danger"},"style":{"color":"$color.destructive"}},{"when":{"tone":"info"},"style":{"color":"$color.info"}},{"when":{"tone":"neutral"},"style":{"color":"$color.mutedForeground"}}],"detail":[{"style":{"color":"$color.mutedForeground"}}]},"EmptyState":{"disc":[{"style":{"backgroundColor":"$color.muted"}}],"icon":[{"style":{"color":"$color.mutedForeground"}}]},"Progress":{"track":[{"style":{"backgroundColor":"$color.muted"}}],"fill":[{"style":{"backgroundColor":"$color.primary"}},{"when":{"tone":"primary"},"style":{"backgroundColor":"$color.primary"}},{"when":{"tone":"success"},"style":{"backgroundColor":"$color.success"}},{"when":{"tone":"warning"},"style":{"backgroundColor":"$color.warning"}},{"when":{"tone":"danger"},"style":{"backgroundColor":"$color.destructive"}},{"when":{"tone":"info"},"style":{"backgroundColor":"$color.info"}},{"when":{"tone":"neutral"},"style":{"backgroundColor":"$color.mutedForeground"}}]},"Meter":{"track":[{"style":{"backgroundColor":"$color.muted"}}],"segment":[{"style":{"backgroundColor":"$color.primary"}},{"when":{"tone":"primary"},"style":{"backgroundColor":"$color.primary"}},{"when":{"tone":"success"},"style":{"backgroundColor":"$color.success"}},{"when":{"tone":"warning"},"style":{"backgroundColor":"$color.warning"}},{"when":{"tone":"danger"},"style":{"backgroundColor":"$color.destructive"}},{"when":{"tone":"info"},"style":{"backgroundColor":"$color.info"}},{"when":{"tone":"neutral"},"style":{"backgroundColor":"$color.mutedForeground"}}]},"Row":{"root":[{"style":{"transition":"$motion.fast","transitionEasing":"$ease.standard"}},{"when":{"surface":"card"},"style":{"backgroundColor":"$color.card","borderWidth":"$border.hairline","borderColor":"$color.border"}},{"when":{"state":"hover"},"style":{"backgroundColor":"$color.accent"}},{"when":{"selected":true},"style":{"backgroundColor":"$color.accent"}}],"identifier":[{"style":{"color":"$color.mutedForeground"}}],"title":[{"when":{"selected":true},"style":{"fontWeight":"$type.weight.medium","color":"$color.accentForeground"}}],"value":[{"style":{"color":"$color.foreground"}}]},"Table":{"root":[{"style":{"fontFamily":"$type.family.sans","fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","color":"$color.foreground"}}],"caption":[{"style":{"fontSize":"$type.size.sm","color":"$color.mutedForeground","paddingVertical":"$spacing.sm"}}],"header":[{"style":{"color":"$color.mutedForeground","borderBottomWidth":"$border.hairline","borderColor":"$color.border"}},{"when":{"stickyHeader":true},"style":{"backgroundColor":"$color.background"}}],"headerCell":[{"style":{"height":"$control.row","paddingHorizontal":"$spacing.sm","fontWeight":"$type.weight.medium","color":"$color.mutedForeground"}},{"when":{"state":"hover"},"style":{"color":"$color.foreground"}}],"sortIcon":[{"style":{"width":"$control.iconSm","height":"$control.iconSm","color":"$color.mutedForeground"}}],"row":[{"style":{"borderBottomWidth":"$border.hairline","borderColor":"$color.border","transition":"$motion.fast","transitionEasing":"$ease.standard"}},{"when":{"striped":true},"style":{"backgroundColor":"$color.muted"}},{"when":{"state":"hover"},"style":{"backgroundColor":"$color.muted"}},{"when":{"state":"selected"},"style":{"backgroundColor":"$color.accent"}}],"cell":[{"style":{"height":"$control.row","paddingHorizontal":"$spacing.sm"}},{"when":{"density":"compact"},"style":{"height":"$control.rowCompact"}}],"checkbox":[{"style":{"width":"$control.checkbox","height":"$control.checkbox"}}],"empty":[{"style":{"padding":"$spacing.xl","color":"$color.mutedForeground"}}]},"Box":{"root":[]},"Toast":{"root":[{"style":{"minHeight":"$control.toast","padding":"$spacing.md","gap":"$spacing.sm","borderRadius":"$radius.lg","borderWidth":"$border.hairline","borderColor":"$color.border","backgroundColor":"$color.popover","color":"$color.popoverForeground","boxShadow":"$shadow.xl","transition":"$motion.standard","transitionEasing":"$ease.decelerate"}},{"when":{"type":"error"},"style":{"borderColor":"$color.destructive"}}],"icon":[{"style":{"width":"$control.iconMd","height":"$control.iconMd","color":"$color.info"}},{"when":{"type":"success"},"style":{"color":"$color.success"}},{"when":{"type":"warning"},"style":{"color":"$color.warning"}},{"when":{"type":"error"},"style":{"color":"$color.destructive"}}],"title":[{"style":{"fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","fontWeight":"$type.weight.semibold","fontFamily":"$type.family.sans"}}],"description":[{"style":{"fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","color":"$color.mutedForeground"}}],"action":[{"style":{"height":"$control.buttonSm","paddingHorizontal":"$spacing.sm","borderRadius":"$radius.md","borderWidth":"$border.hairline","borderColor":"$color.input","fontSize":"$type.size.xs","fontWeight":"$type.weight.medium","color":"$color.foreground","backgroundColor":"#00000000"}},{"when":{"state":"hover"},"style":{"backgroundColor":"$color.accent"}}],"close":[{"style":{"width":"$control.buttonIcon","height":"$control.buttonIcon","borderRadius":"$radius.sm","color":"$color.mutedForeground","backgroundColor":"#00000000","transition":"$motion.fast"}},{"when":{"state":"hover"},"style":{"backgroundColor":"$color.accent","color":"$color.accentForeground"}}]},"CodeBlock":{"root":[{"style":{"backgroundColor":"#00000000","color":"$color.foreground","borderRadius":"$radius.lg","borderWidth":"$border.hairline","borderColor":"$color.input","fontFamily":"$type.family.mono","fontSize":"$type.size.sm","lineHeight":22.75,"paddingVertical":"$spacing.md","gap":"$spacing.sm"}},{"when":{"size":"sm"},"style":{"fontSize":"$type.size.xs","lineHeight":19.5,"paddingVertical":10,"gap":6}},{"when":{"variant":"destructive"},"style":{"borderColor":"#ff646766","color":"$color.destructive","backgroundColor":"#00000000"}}],"header":[{"style":{"height":20,"paddingHorizontal":"$spacing.md","gap":"$spacing.sm","color":"$color.mutedForeground"}},{"when":{"size":"sm"},"style":{"height":16,"paddingHorizontal":10}},{"when":{"variant":"destructive"},"style":{"color":"$color.destructive"}}],"title":[{"style":{"fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","fontWeight":"$type.weight.medium","color":"$color.foreground","fontFamily":"$type.family.sans"}},{"when":{"size":"sm"},"style":{"fontSize":"$type.size.xs","lineHeight":"$type.lineHeight.xs"}},{"when":{"variant":"destructive"},"style":{"color":"$color.destructive"}}],"copy":[{"style":{"width":24,"height":24,"borderRadius":"$radius.md","color":"$color.mutedForeground","backgroundColor":"#00000000","transition":"$motion.fast"}},{"when":{"state":"hover"},"style":{"backgroundColor":"$color.accent","color":"$color.accentForeground"}}],"gutter":[{"style":{"paddingHorizontal":"$spacing.sm","color":"$color.mutedForeground"}}],"line":[{"style":{"paddingHorizontal":"$spacing.md"}},{"when":{"size":"sm"},"style":{"paddingHorizontal":10}},{"when":{"state":"selected"},"style":{"backgroundColor":"$color.muted"}}],"lineNumber":[{"style":{"color":"$color.mutedForeground","opacity":"$opacity.secondary"}}],"token":[{"style":{"color":"$color.foreground"}},{"when":{"kind":"keyword"},"style":{"color":"$color.chart6","fontWeight":"$type.weight.medium"}},{"when":{"kind":"string"},"style":{"color":"$color.success"}},{"when":{"kind":"number"},"style":{"color":"$color.warning"}},{"when":{"kind":"comment"},"style":{"color":"$color.mutedForeground","fontStyle":"italic"}},{"when":{"kind":"type"},"style":{"color":"$color.info"}},{"when":{"kind":"function"},"style":{"color":"$color.chart7"}},{"when":{"kind":["property","attribute"]},"style":{"color":"$color.chart8"}},{"when":{"kind":"tag"},"style":{"color":"$color.destructive"}},{"when":{"kind":["operator","punctuation"]},"style":{"color":"$color.mutedForeground"}},{"when":{"kind":"success"},"style":{"color":"$color.success"}},{"when":{"kind":"warning"},"style":{"color":"$color.warning"}},{"when":{"kind":"error"},"style":{"color":"$color.destructive"}},{"when":{"variant":"destructive"},"style":{"color":"$color.destructive","fontWeight":"$type.weight.regular","fontStyle":"normal"}}]},"Form":{"root":[{"style":{"gap":"$spacing.lg"}},{"when":{"disabled":true},"style":{"opacity":"$opacity.disabled"}}],"summary":[{"style":{"padding":"$spacing.md","gap":"$spacing.xs","borderRadius":"$radius.md","borderWidth":"$border.hairline","borderColor":"$color.destructive","color":"$color.destructive","fontSize":"$type.size.sm"}}]},"NumberField":{"label":[{"style":{"fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","fontWeight":"$type.weight.medium","color":"$color.foreground"}}],"field":[{"style":{"height":"$control.input","paddingHorizontal":"$spacing.md","borderRadius":"$radius.md","borderWidth":"$border.hairline","borderColor":"$color.input","backgroundColor":"$color.background","color":"$color.foreground","fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","fontFamily":"$type.family.sans","boxShadow":"$shadow.sm"}},{"when":{"state":"focus"},"style":{"borderColor":"$color.ring"}},{"when":{"state":"invalid"},"style":{"borderColor":"$color.destructive"}},{"when":{"state":"disabled"},"style":{"opacity":"$opacity.disabled"}}],"decrement":[{"style":{"width":"$control.buttonIcon","height":"$control.buttonIcon","borderRadius":"$radius.sm","color":"$color.mutedForeground","backgroundColor":"#00000000","transition":"$motion.fast","transitionEasing":"$ease.standard"}},{"when":{"state":"hover"},"style":{"backgroundColor":"$color.accent","color":"$color.accentForeground"}},{"when":{"state":"disabled"},"style":{"opacity":"$opacity.disabled"}}],"increment":[{"style":{"width":"$control.buttonIcon","height":"$control.buttonIcon","borderRadius":"$radius.sm","color":"$color.mutedForeground","backgroundColor":"#00000000","transition":"$motion.fast","transitionEasing":"$ease.standard"}},{"when":{"state":"hover"},"style":{"backgroundColor":"$color.accent","color":"$color.accentForeground"}},{"when":{"state":"disabled"},"style":{"opacity":"$opacity.disabled"}}],"unit":[{"style":{"color":"$color.mutedForeground"}}],"description":[{"style":{"fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","color":"$color.mutedForeground"}}],"error":[{"style":{"fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","color":"$color.destructive"}}]},"ChipInput":{"label":[{"style":{"fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","fontWeight":"$type.weight.medium","color":"$color.foreground"}}],"field":[{"style":{"paddingHorizontal":"$spacing.xs","borderRadius":"$radius.md","borderWidth":"$border.hairline","borderColor":"$color.input","backgroundColor":"$color.background","color":"$color.foreground","fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","fontFamily":"$type.family.sans","boxShadow":"$shadow.sm","minHeight":"$control.input","paddingVertical":"$spacing.xxs","gap":"$spacing.xs"}},{"when":{"state":"focus"},"style":{"borderColor":"$color.ring"}},{"when":{"state":"invalid"},"style":{"borderColor":"$color.destructive"}},{"when":{"state":"disabled"},"style":{"opacity":"$opacity.disabled"}}],"chip":[{"style":{"height":"$control.badge","paddingHorizontal":"$spacing.sm","gap":"$spacing.xxs","borderRadius":"$radius.full","backgroundColor":"$color.secondary","color":"$color.secondaryForeground"}},{"when":{"state":"focus"},"style":{"borderWidth":"$border.thick","borderColor":"$color.ring"}}],"chipLabel":[{"style":{"fontSize":"$type.size.xs","fontWeight":"$type.weight.medium"}}],"remove":[{"style":{"width":"$control.iconSm","height":"$control.iconSm","color":"$color.mutedForeground"}},{"when":{"state":"hover"},"style":{"color":"$color.foreground"}}],"placeholder":[{"style":{"color":"$color.mutedForeground"}}],"description":[{"style":{"fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","color":"$color.mutedForeground"}}],"error":[{"style":{"fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","color":"$color.destructive"}}]},"DateRangePicker":{"label":[{"style":{"fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","fontWeight":"$type.weight.medium","color":"$color.foreground"}}],"trigger":[{"style":{"height":"$control.input","paddingHorizontal":"$spacing.md","borderRadius":"$radius.md","borderWidth":"$border.hairline","borderColor":"$color.input","backgroundColor":"$color.background","color":"$color.foreground","fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","fontFamily":"$type.family.sans","boxShadow":"$shadow.sm"}},{"when":{"state":"focus"},"style":{"borderColor":"$color.ring"}},{"when":{"state":"disabled"},"style":{"opacity":"$opacity.disabled"}},{"when":{"state":"invalid"},"style":{"borderColor":"$color.destructive"}}],"calendar":[{"style":{"backgroundColor":"$color.popover","color":"$color.popoverForeground","borderWidth":"$border.hairline","borderColor":"$color.border","borderRadius":"$radius.md","boxShadow":"$shadow.md","padding":"$spacing.md"}}],"day":[{"style":{"width":"$control.buttonSm","height":"$control.buttonSm","borderRadius":"$radius.md","fontSize":"$type.size.sm","color":"$color.foreground","backgroundColor":"#00000000"}},{"when":{"state":"hover"},"style":{"backgroundColor":"$color.accent"}},{"when":{"state":"selected"},"style":{"backgroundColor":"$color.primary","color":"$color.primaryForeground"}},{"when":{"state":"disabled"},"style":{"opacity":"$opacity.disabled"}}],"range":[{"style":{"backgroundColor":"$color.accent","color":"$color.accentForeground"}}]},"TimePicker":{"label":[{"style":{"fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","fontWeight":"$type.weight.medium","color":"$color.foreground"}}],"trigger":[{"style":{"height":"$control.input","paddingHorizontal":"$spacing.md","borderRadius":"$radius.md","borderWidth":"$border.hairline","borderColor":"$color.input","backgroundColor":"$color.background","color":"$color.foreground","fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","fontFamily":"$type.family.sans","boxShadow":"$shadow.sm"}},{"when":{"state":"focus"},"style":{"borderColor":"$color.ring"}},{"when":{"state":"invalid"},"style":{"borderColor":"$color.destructive"}},{"when":{"state":"disabled"},"style":{"opacity":"$opacity.disabled"}}],"placeholder":[{"style":{"color":"$color.mutedForeground"}}],"list":[{"style":{"backgroundColor":"$color.popover","color":"$color.popoverForeground","borderWidth":"$border.hairline","borderColor":"$color.border","borderRadius":"$radius.md","boxShadow":"$shadow.md","padding":"$spacing.xs"}}],"item":[{"style":{"height":"$control.buttonSm","paddingHorizontal":"$spacing.sm","borderRadius":"$radius.sm","fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","color":"$color.popoverForeground","gap":"$spacing.sm"}},{"when":{"state":"hover"},"style":{"backgroundColor":"$color.accent","color":"$color.accentForeground"}},{"when":{"state":"selected"},"style":{"backgroundColor":"$color.accent","color":"$color.accentForeground"}},{"when":{"state":"disabled"},"style":{"opacity":"$opacity.disabled"}}]},"FileUpload":{"label":[{"style":{"fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","fontWeight":"$type.weight.medium","color":"$color.foreground"}}],"dropzone":[{"style":{"padding":"$spacing.xl","gap":"$spacing.sm","borderRadius":"$radius.lg","borderWidth":"$border.hairline","borderStyle":"dashed","borderColor":"$color.input","backgroundColor":"#00000000","color":"$color.foreground","transition":"$motion.fast","transitionEasing":"$ease.standard"}},{"when":{"state":"hover"},"style":{"backgroundColor":"$color.muted"}},{"when":{"state":"dragover"},"style":{"borderColor":"$color.ring","backgroundColor":"$color.accent"}},{"when":{"state":"focus"},"style":{"borderColor":"$color.ring"}},{"when":{"state":"invalid"},"style":{"borderColor":"$color.destructive"}},{"when":{"disabled":true},"style":{"opacity":"$opacity.disabled"}}],"icon":[{"style":{"width":"$control.iconLg","height":"$control.iconLg","color":"$color.mutedForeground"}}],"hint":[{"style":{"fontSize":"$type.size.xs","lineHeight":"$type.lineHeight.xs","color":"$color.mutedForeground"}}],"file":[{"style":{"minHeight":"$control.row","paddingHorizontal":"$spacing.sm","gap":"$spacing.sm","borderRadius":"$radius.md","borderWidth":"$border.hairline","borderColor":"$color.border"}}],"fileName":[{"style":{"fontSize":"$type.size.sm","color":"$color.foreground"}}],"fileMeta":[{"style":{"fontSize":"$type.size.xs","color":"$color.mutedForeground"}}],"remove":[{"style":{"width":"$control.buttonIcon","height":"$control.buttonIcon","borderRadius":"$radius.sm","color":"$color.mutedForeground","backgroundColor":"#00000000","transition":"$motion.fast"}},{"when":{"state":"hover"},"style":{"backgroundColor":"$color.accent","color":"$color.accentForeground"}}],"description":[{"style":{"fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","color":"$color.mutedForeground"}}],"error":[{"style":{"fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm","color":"$color.destructive"}}]},"QrScanner":{"root":[{"style":{"gap":"$spacing.md"}},{"when":{"disabled":true},"style":{"opacity":0.5}}],"viewfinder":[{"style":{"borderRadius":"$radius.xl"}}],"feed":[{"style":{"backgroundColor":"$color.foreground"}}],"corner":[{"style":{"color":"$color.primary"}}],"scanLine":[{"style":{"backgroundColor":"$color.primary"}}],"placeholder":[{"style":{"color":"$color.mutedForeground","fontFamily":"$type.family.sans","fontSize":"$type.size.xs","lineHeight":"$type.lineHeight.xs"}}],"placeholderIcon":[{"style":{"color":"$color.mutedForeground"}}],"hint":[{"style":{"color":"$color.mutedForeground","fontFamily":"$type.family.sans","fontSize":"$type.size.sm","lineHeight":"$type.lineHeight.sm"}}]},"Image":{"root":[{"style":{"borderRadius":"$radius.none"}}],"fallback":[{"style":{"backgroundColor":"$color.muted","color":"$color.mutedForeground"}}]},"Kbd":{"root":[{"style":{"backgroundColor":"$color.muted","borderWidth":"$border.hairline","borderBottomWidth":"$border.thick","borderColor":"$color.border"}}],"label":[{"style":{"color":"$color.mutedForeground","fontFamily":"$type.family.mono","fontSize":"$type.size.xs"}}]},"Label":{"text":[{"style":{"color":"$color.foreground"}}],"mark":[{"style":{"color":"$color.destructive"}}]},"Breadcrumb":{"separator":[{"style":{"color":"$color.mutedForeground"}}],"link":[{"style":{"color":"$color.mutedForeground","paddingHorizontal":"$spacing.none","transition":"$motion.fast","transitionEasing":"$ease.standard"}},{"when":{"state":"hover"},"style":{"color":"$color.foreground","textDecoration":"underline"}}],"current":[{"style":{"color":"$color.foreground"}}]},"AppBar":{"root":[{"style":{"backgroundColor":"$color.background","borderBottomWidth":"$border.hairline","borderColor":"$color.border"}}],"title":[{"style":{"color":"$color.foreground"}}]},"Sidebar":{"sidebar":[{"style":{"backgroundColor":"$color.muted","borderColor":"$color.border"}},{"when":{"side":"left"},"style":{"borderRightWidth":"$border.hairline"}},{"when":{"side":"right"},"style":{"borderLeftWidth":"$border.hairline"}}]},"Collapsible":{"trigger":[{"style":{"transition":"$motion.fast","transitionEasing":"$ease.standard"}},{"when":{"state":"hover"},"style":{"backgroundColor":"$color.accent"}}],"chevron":[{"style":{"color":"$color.mutedForeground","transition":"$motion.standard","transitionEasing":"$ease.standard"}},{"when":{"open":true},"style":{"transform":"rotate(90deg)"}}],"count":[{"style":{"color":"$color.mutedForeground"}}]},"Pagination":{"label":[{"style":{"color":"$color.mutedForeground"}}]},"Stepper":{"marker":[{"style":{"backgroundColor":"$color.background","color":"$color.mutedForeground","borderWidth":"$border.hairline","borderColor":"$color.border","transition":"$motion.standard"}},{"when":{"status":"current"},"style":{"backgroundColor":"$color.primary","color":"$color.primaryForeground","borderColor":"$color.primary"}},{"when":{"status":"done"},"style":{"backgroundColor":"$color.primary","color":"$color.primaryForeground","borderColor":"$color.primary"}}],"check":[{"style":{"color":"$color.primaryForeground"}}],"number":[{"style":{"fontWeight":"$type.weight.medium","color":"$color.mutedForeground"}},{"when":{"status":"current"},"style":{"color":"$color.primaryForeground"}}],"label":[{"style":{"color":"$color.foreground"}},{"when":{"status":"upcoming"},"style":{"color":"$color.mutedForeground"}}],"description":[{"style":{"color":"$color.mutedForeground"}}]},"Rating":{"star":[{"style":{"transition":"$motion.fast"}},{"when":{"state":"hover"},"style":{"transform":"scale(1.15)"}}],"icon":[{"style":{"color":"$color.border"}},{"when":{"filled":true},"style":{"color":"$color.warning"}}]},"AlertDialog":{"footer":[{"style":{"gap":"$spacing.sm"}}]},"ScrollArea":{"root":[]},"TraceItem":{"line":[{"style":{"transition":"$motion.fast","transitionEasing":"$ease.standard"}},{"when":{"status":"pending"},"style":{"opacity":0.6}},{"when":{"status":"skipped"},"style":{"opacity":0.6}}],"icon":[{"style":{"color":"$color.mutedForeground"}},{"when":{"status":"error"},"style":{"color":"$color.destructive"}},{"when":{"status":"done"},"style":{"color":"$color.success"}}],"title":[{"style":{"color":"$color.mutedForeground","fontWeight":"$type.weight.regular"}},{"when":{"status":"error"},"style":{"color":"$color.destructive"}},{"when":{"status":"skipped"},"style":{"textDecoration":"line-through"}}],"description":[{"style":{"color":"$color.mutedForeground","opacity":0.7}},{"when":{"status":"error"},"style":{"color":"$color.destructive"}}],"chevron":[{"style":{"color":"$color.mutedForeground","transition":"$motion.standard","transitionEasing":"$ease.standard"}},{"when":{"open":true},"style":{"transform":"rotate(90deg)"}},{"when":{"status":"error"},"style":{"color":"$color.destructive"}}],"content":[{"style":{"borderColor":"$color.border","color":"$color.mutedForeground"}}]},"MessageBubble":{"bubble":[{"style":{"backgroundColor":"$color.card","color":"$color.cardForeground","borderWidth":"$border.hairline","borderColor":"$color.border"}},{"when":{"side":"out"},"style":{"backgroundColor":"$color.secondary","color":"$color.secondaryForeground"}}],"author":[{"style":{"color":"$color.mutedForeground","fontWeight":"$type.weight.medium"}}],"time":[{"style":{"color":"$color.mutedForeground"}}],"status":[{"style":{"color":"$color.mutedForeground"}}]},"CallSurface":{"name":[{"style":{"fontSize":"$type.size.xl2","lineHeight":"$type.lineHeight.xl2","fontWeight":"$type.weight.semibold"}}],"status":[{"style":{"color":"$color.mutedForeground"}}],"caption":[{"style":{"fontSize":"$type.size.base","lineHeight":"$type.lineHeight.lg","opacity":0.9}}],"mute":[{"style":{"backgroundColor":"$color.secondary","color":"$color.foreground","boxShadow":"$shadow.none"}},{"when":{"muted":true},"style":{"backgroundColor":"$color.foreground","color":"$color.background"}}],"muteIcon":[{"when":{"muted":true},"style":{"color":"$color.background"}}],"speaker":[{"style":{"backgroundColor":"$color.secondary","color":"$color.foreground","boxShadow":"$shadow.none"}}],"end":[{"style":{"backgroundColor":"$color.destructive","color":"$color.destructiveForeground","boxShadow":"$shadow.none"}}],"endIcon":[{"style":{"color":"$color.destructiveForeground"}}],"cancelLabel":[{"style":{"color":"$color.mutedForeground"}}]},"DockCard":{"trigger":[{"style":{"backgroundColor":"$color.card","borderWidth":"$border.hairline","borderColor":"$color.border","transition":"$motion.fast","transitionEasing":"$ease.standard"}},{"when":{"state":"hover"},"style":{"backgroundColor":"$color.accent"}}],"chevron":[{"style":{"color":"$color.mutedForeground"}}]}}'),_b={$schema:wb,id:kb,name:Sb,modes:Cb,contrast:Ab,tokens:Tb,fonts:Ib,recipes:Eb},Mb="FEED-128: the brand-coloured reference theme: the Exponential glass look with an orange primary. It changes only colours (primary, ring, the accent pair, the chart scale) per mode; every size, family and recipe comes from `exponential`, so it also shows what the smallest brand theme looks like.",Db="https://ui.exponential.at/schemas/theme/v1.json",Pb="orange",Ob="Orange",Fb={light:{color:{primary:"#ea580c",primaryForeground:"#ffffff",accent:"#ffedd5",accentForeground:"#7c2d12",ring:"#fb923c",chart1:"#ea580c",chart2:"#f59e0b",chart3:"#b91c1c",chart4:"#0ea5e9",chart5:"#7c3aed",chart6:"#0d9488",chart7:"#db2777",chart8:"#65a30d"}},dark:{color:{primary:"#fb923c",primaryForeground:"#431407",accent:"#431407",accentForeground:"#fed7aa",ring:"#f97316",chart1:"#fb923c",chart2:"#fbbf24",chart3:"#f87171",chart4:"#38bdf8",chart5:"#a78bfa",chart6:"#2dd4bf",chart7:"#f472b6",chart8:"#a3e635"}}},zb={$comment:Mb,$schema:Db,id:Pb,name:Ob,extends:"exponential",modes:Fb},Rb="https://ui.exponential.at/schemas/theme/v1.json",Nb="playful",Lb="Playful",jb={light:{color:{background:"#fffbf5",foreground:"#1f1235",card:"#ffffff",cardForeground:"#1f1235",popover:"#ffffff",popoverForeground:"#1f1235",primary:"#7c3aed",primaryForeground:"#ffffff",secondary:"#ccfbf1",secondaryForeground:"#134e4a",muted:"#f3e8ff",mutedForeground:"#6b5b8a",accent:"#ffe4e6",accentForeground:"#881337",destructive:"#e11d48",destructiveForeground:"#ffffff",success:"#059669",successForeground:"#ffffff",warning:"#d97706",warningForeground:"#ffffff",info:"#0284c7",infoForeground:"#ffffff",border:"#e9d5ff",input:"#ddd6fe",ring:"#a78bfa",chart1:"#7c3aed",chart2:"#14b8a6",chart3:"#f43f5e",chart4:"#f59e0b",chart5:"#0ea5e9",chart6:"#a855f7",chart7:"#ec4899",chart8:"#22c55e"},shadow:{sm:[{x:0,y:2,blur:4,spread:0,color:"#7c3aed1a"}],md:[{x:0,y:6,blur:12,spread:-2,color:"#7c3aed26"}],lg:[{x:0,y:16,blur:32,spread:-6,color:"#7c3aed33"}],xl:[{x:0,y:24,blur:48,spread:-8,color:"#7c3aed40"}]}},dark:{color:{background:"#1a1033",foreground:"#f5f3ff",card:"#2a1b4d",cardForeground:"#f5f3ff",popover:"#2a1b4d",popoverForeground:"#f5f3ff",primary:"#c4b5fd",primaryForeground:"#2e1065",secondary:"#134e4a",secondaryForeground:"#ccfbf1",muted:"#3b2a63",mutedForeground:"#c4b5fd",accent:"#4c1d95",accentForeground:"#f5f3ff",destructive:"#fb7185",destructiveForeground:"#4c0519",success:"#34d399",successForeground:"#022c22",warning:"#fbbf24",warningForeground:"#451a03",info:"#38bdf8",infoForeground:"#082f49",border:"#4c3a7a",input:"#5b4a8a",ring:"#a78bfa",chart1:"#c4b5fd",chart2:"#5eead4",chart3:"#fda4af",chart4:"#fcd34d",chart5:"#7dd3fc",chart6:"#d8b4fe",chart7:"#f9a8d4",chart8:"#86efac"},shadow:{sm:[{x:0,y:2,blur:4,spread:0,color:"#00000040"}],md:[{x:0,y:6,blur:12,spread:-2,color:"#00000059"}],lg:[{x:0,y:16,blur:32,spread:-6,color:"#00000073"}],xl:[{x:0,y:24,blur:48,spread:-8,color:"#00000080"}]}}},Bb={radius:{sm:10,md:14,lg:18,xl:24,xl2:28,xl3:32},type:{family:{sans:"Nunito",mono:"Fira Code",serif:"ui-serif"},weight:{regular:400,medium:600,semibold:700,bold:700}},control:{buttonSm:32,buttonMd:40,buttonLg:48,buttonIcon:40,input:44,pill:28,badge:22,chip:32,toggle:40,switch:24,checkbox:20,row:44},border:{hairline:2,thick:3},motion:{fast:160,standard:240,slow:360},scale:{press:.94,popoverFrom:.9},ease:{standard:[.34,1.56,.64,1]},density:{compact:.9,comfortable:1.2}},Wb={Nunito:{fallback:"Avenir Next, Segoe UI, sans-serif",weights:[400,600,700],source:"host"},"Fira Code":{fallback:"ui-monospace, Menlo, monospace",weights:[400,500],source:"host"}},Hb={Text:{root:[{when:{variant:"title"},style:{fontWeight:"$type.weight.bold",color:"$color.primary"}},{when:{variant:"label"},style:{fontWeight:"$type.weight.bold"}}]},Heading:{root:[{style:{fontWeight:"$type.weight.bold",color:"$color.primary"}}]},Button:{root:[{style:{borderRadius:"$radius.full",fontWeight:"$type.weight.bold",boxShadow:"$shadow.md",paddingHorizontal:"$spacing.xl"}},{when:{variant:"outline"},style:{borderWidth:"$border.thick",borderColor:"$color.primary",color:"$color.primary",backgroundColor:"#00000000"}},{when:{variant:"outline",state:"hover"},style:{backgroundColor:"$color.muted",color:"$color.primary"}},{when:{variant:"ghost"},style:{color:"$color.primary",boxShadow:"$shadow.none"}},{when:{variant:"link"},style:{boxShadow:"$shadow.none",paddingHorizontal:"$spacing.none"}},{when:{size:"icon"},style:{paddingHorizontal:"$spacing.none"}},{when:{size:"sm"},style:{paddingHorizontal:"$spacing.lg"}}]},Badge:{root:[{style:{borderRadius:"$radius.full",paddingHorizontal:"$spacing.md"}},{when:{variant:"outline"},style:{borderWidth:"$border.thick",borderColor:"$color.primary"}}],label:[{style:{fontWeight:"$type.weight.bold"}},{when:{variant:"outline"},style:{color:"$color.primary"}}]},Card:{root:[{style:{borderWidth:"$border.none",borderRadius:"$radius.xl2",boxShadow:"$shadow.md"}}]},Group:{body:[{style:{borderWidth:"$border.none",boxShadow:"$shadow.sm"}}]},Row:{root:[{when:{surface:"card"},style:{borderWidth:"$border.none",boxShadow:"$shadow.sm",borderRadius:"$radius.xl"}},{when:{selected:!0},style:{backgroundColor:"$color.secondary"}},{when:{selected:!0,surface:"flat"},style:{borderRadius:"$radius.full"}}],title:[{when:{selected:!0},style:{color:"$color.secondaryForeground",fontWeight:"$type.weight.bold"}}],icon:[{when:{selected:!0},style:{color:"$color.secondaryForeground"}}]},Section:{header:[{style:{backgroundColor:"$color.secondary",borderRadius:"$radius.full"}}],title:[{style:{color:"$color.secondaryForeground"}}]},Alert:{root:[{style:{borderWidth:"$border.none",backgroundColor:"$color.muted",borderRadius:"$radius.xl2"}}]},Chip:{root:[{style:{backgroundColor:"$color.secondary",borderWidth:"$border.none"}},{when:{shape:"rect"},style:{borderRadius:"$radius.full",borderWidth:"$border.none",backgroundColor:"$color.muted"}},{when:{selected:!0},style:{backgroundColor:"$color.primary",borderColor:"$color.primary"}}],label:[{style:{color:"$color.secondaryForeground",fontWeight:"$type.weight.bold"}},{when:{selected:!0},style:{color:"$color.primaryForeground"}}]},Tabs:{list:[{style:{backgroundColor:"#00000000",borderRadius:"$radius.none",padding:"$spacing.none",gap:"$spacing.lg"}}],tab:[{style:{borderRadius:"$radius.none",paddingHorizontal:"$spacing.none",fontWeight:"$type.weight.bold"}},{when:{state:"selected"},style:{backgroundColor:"#00000000",color:"$color.primary",boxShadow:"$shadow.none"}}],indicator:[{style:{height:"$border.thick",backgroundColor:"$color.primary",borderRadius:"$radius.full"}}]},Segmented:{root:[{when:{variant:"segmented"},style:{borderRadius:"$radius.full",backgroundColor:"$color.secondary"}}],item:[{when:{variant:["toggles","outline"]},style:{borderRadius:"$radius.full",fontWeight:"$type.weight.bold"}},{when:{variant:"segmented"},style:{fontWeight:"$type.weight.bold"}},{when:{variant:"segmented",state:"selected"},style:{backgroundColor:"$color.primary",color:"$color.primaryForeground"}}],icon:[{when:{variant:"bar",state:"selected"},style:{color:"$color.primary",transform:"scale(1.15)"}}],label:[{when:{variant:"bar",state:"selected"},style:{color:"$color.primary",fontWeight:"$type.weight.bold"}}]},Toggle:{root:[{style:{borderRadius:"$radius.full",fontWeight:"$type.weight.bold"}}]},Input:{field:[{style:{borderRadius:"$radius.full",borderWidth:"$border.thick",paddingHorizontal:"$spacing.lg",boxShadow:"$shadow.none"}}]},Textarea:{field:[{style:{borderRadius:"$radius.xl",borderWidth:"$border.thick",boxShadow:"$shadow.none"}}]},Select:{trigger:[{style:{borderRadius:"$radius.full",borderWidth:"$border.thick",paddingHorizontal:"$spacing.lg",boxShadow:"$shadow.none"}}],item:[{style:{borderRadius:"$radius.full"}}]},DatePicker:{trigger:[{style:{borderRadius:"$radius.full",borderWidth:"$border.thick",boxShadow:"$shadow.none"}}],day:[{style:{borderRadius:"$radius.full"}}]},Checkbox:{box:[{style:{borderRadius:"$radius.full",borderWidth:"$border.thick",borderColor:"$color.primary",boxShadow:"$shadow.none"}}]},Radio:{item:[{style:{borderWidth:"$border.thick",borderColor:"$color.primary",boxShadow:"$shadow.none"}}]},Switch:{track:[{style:{width:44,backgroundColor:"$color.muted",borderWidth:"$border.thick",borderColor:"$color.primary"}},{when:{checked:!0},style:{backgroundColor:"$color.primary"}}],thumb:[{style:{width:16,height:16,backgroundColor:"$color.primary"}},{when:{checked:!0},style:{backgroundColor:"$color.primaryForeground"}}]},Slider:{track:[{style:{height:8}}],thumb:[{style:{borderWidth:"$border.thick"}}]},Composer:{root:[{style:{borderRadius:"$radius.xl2",borderWidth:"$border.thick",boxShadow:"$shadow.none"}}],send:[{style:{borderRadius:"$radius.full"}}]},Dialog:{content:[{style:{borderRadius:"$radius.xl3",borderWidth:"$border.none"}}]},Drawer:{content:[{style:{borderRadius:"$radius.xl3",borderWidth:"$border.none"}}]},Popover:{content:[{style:{borderRadius:"$radius.xl",borderWidth:"$border.none"}}]},Menu:{content:[{style:{borderRadius:"$radius.xl",borderWidth:"$border.none",padding:"$spacing.sm"}}],item:[{style:{borderRadius:"$radius.full"}}]},Tooltip:{content:[{style:{borderRadius:"$radius.full",backgroundColor:"$color.accentForeground",color:"$color.accent"}}]},Progress:{track:[{style:{backgroundColor:"$color.secondary"}}]},Meter:{track:[{style:{backgroundColor:"$color.secondary"}}]},Skeleton:{root:[{style:{backgroundColor:"$color.muted",borderRadius:"$radius.lg"}}]},Avatar:{root:[{style:{borderRadius:"$radius.lg"}}],fallback:[{style:{backgroundColor:"$color.secondary",color:"$color.secondaryForeground",fontWeight:"$type.weight.bold"}}]},Unknown:{root:[{style:{borderRadius:"$radius.xl",borderWidth:"$border.thick"}}]},Toast:{root:[{style:{borderRadius:"$radius.xl3",borderWidth:"$border.none",backgroundColor:"$color.primary",color:"$color.primaryForeground"}}],description:[{style:{color:"$color.primaryForeground",opacity:"$opacity.secondary"}}],icon:[{style:{color:"$color.primaryForeground"}}]},CodeBlock:{root:[{style:{borderRadius:"$radius.xl",borderWidth:"$border.none",backgroundColor:"$color.secondary"}}],token:[{when:{kind:"keyword"},style:{color:"$color.primary",fontWeight:"$type.weight.bold"}}]},Table:{header:[{style:{color:"$color.primary",borderBottomWidth:"$border.thick",borderColor:"$color.primary"}}],row:[{when:{striped:!0},style:{backgroundColor:"$color.secondary"}}]},NumberField:{field:[{style:{borderRadius:"$radius.full",borderWidth:"$border.thick",paddingHorizontal:"$spacing.lg",boxShadow:"$shadow.none"}}]},ChipInput:{field:[{style:{borderRadius:"$radius.xl",borderWidth:"$border.thick",boxShadow:"$shadow.none"}}],chip:[{style:{backgroundColor:"$color.primary",color:"$color.primaryForeground"}}]},TimePicker:{trigger:[{style:{borderRadius:"$radius.full",borderWidth:"$border.thick",boxShadow:"$shadow.none"}}],item:[{style:{borderRadius:"$radius.full"}}]},DateRangePicker:{trigger:[{style:{borderRadius:"$radius.full",borderWidth:"$border.thick",boxShadow:"$shadow.none"}}],day:[{style:{borderRadius:"$radius.full"}}],range:[{style:{backgroundColor:"$color.secondary",color:"$color.secondaryForeground"}}]},FileUpload:{dropzone:[{style:{borderRadius:"$radius.xl2",borderWidth:"$border.thick",borderColor:"$color.primary",backgroundColor:"$color.muted"}}]},Kbd:{root:[{style:{borderRadius:"$radius.md",backgroundColor:"$color.secondary",borderColor:"$color.primary"}}]},Stepper:{marker:[{style:{borderWidth:"$border.thick",borderColor:"$color.primary"}},{when:{status:"done"},style:{backgroundColor:"$color.secondary",color:"$color.secondaryForeground",borderColor:"$color.secondary"}}],check:[{style:{color:"$color.secondaryForeground"}}]},Rating:{icon:[{when:{filled:!0},style:{color:"$color.primary"}}]}},Ub={$schema:Rb,id:Nb,name:Lb,extends:"neutral",modes:jb,tokens:Bb,fonts:Wb,recipes:Hb},qb=_b,Vb=$b,Kb=Ub,Gb=zb,_r=[qb,Vb,Kb,Gb],Mr=_r.map(e=>e.id),qo="exponential",Vl=new Map;function Gn(e){const t=Vl.get(e);if(t)return t;const n=_r.find(o=>o.id===e);if(!n)throw new Error(`unknown built-in theme "${e}"; known: ${Mr.join("|")}`);const r=rb(n,{themes:_r});return Vl.set(e,r),r}function Kl(e){if(typeof e=="string")return Mr.includes(e)?{theme:Gn(e),issues:[]}:{theme:Gn(qo),issues:[{path:"theme",message:`unknown built-in theme "${e}"; known: ${Mr.join("|")}`}]};const{theme:t,issues:n}=Ca(e,{themes:_r});return t?{theme:t,issues:[]}:{theme:Gn(qo),issues:n}}const ir=4,sr=8,Yb="v0.9",Xb={a2ui:["createSurface","updateComponents","updateDataModel","deleteSurface"],extensions:["applyTemplate","bindDataModel"]},Zb={defaultSchemes:["https","http","mailto","tel"]},Qb={defaultSchemes:["https","http","data"],limits:{maxBytes:20971520,timeoutMs:3e4,maxPixels:33554432}},Jb={sseEvents:["message","a2ui"]},cn={a2uiVersion:Yb,messages:Xb,urls:Zb,media:Qb,transport:Jb},Gl=[...cn.messages.a2ui,...cn.messages.extensions],Fu=cn.urls.defaultSchemes,zu=cn.media.defaultSchemes,Dr=cn.media.limits,ev="RENDER_FAILED",tv=cn.transport.sseEvents;function wt(e,t,n,r){return{version:cn.a2uiVersion,error:r===void 0?{code:e,surfaceId:t,message:n}:{code:e,surfaceId:t,message:n,path:r}}}function nv(e){const t={name:e.name,surfaceId:e.surfaceId,sourceComponentId:e.sourceComponentId,timestamp:e.timestamp,context:e.context??{}};return e.payload&&Object.keys(e.payload).length&&(t.payload=e.payload),{version:cn.a2uiVersion,action:t}}const rv=rt.functions.names;function Ns(e,t){return e.endsWith("*")?t.startsWith(e.slice(0,-1)):e===t}function Yl(e,t,n){if(rv.includes(t))return"allow";if(!n)return"not_found";const r=e??{},o=i=>(i??[]).some(s=>Ns(s,t));return o(r.deny)?"deny":o(r.allow)?"allow":o(r.ask)?"ask":r.default??"allow"}function ov(e,t){const n={allow:0,ask:1,deny:2,not_found:3};return n[e]>=n[t]?e:t}function iv(e){return{allow:e??[],default:"deny"}}function sv(e,t){try{return new URL(e)}catch{if(!t)return null;try{return new URL(e,t)}catch{return null}}}function Ru(e,t){const n=e.toLowerCase();return n.startsWith("*.")?t.endsWith(n.slice(1))&&t.length>n.length-1:t===n}function av(e){const t=/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/.exec(e);if(!t)return null;const n=t.slice(1).map(Number);return n.every(r=>r<=255)?n:null}function lv(e){if(!e.startsWith("[")||!e.endsWith("]"))return null;const n=e.slice(1,-1).split("::");if(n.length>2)return null;const r=s=>{if(s==="")return[];const a=[];for(const l of s.split(":")){if(!/^[0-9a-f]{1,4}$/.test(l))return null;a.push(parseInt(l,16))}return a},o=r(n[0]),i=n.length===2?r(n[1]):[];return!o||!i?null:n.length===1?o.length===8?o:null:o.length+i.length>7?null:[...o,...new Array(8-o.length-i.length).fill(0),...i]}function Gi([e,t]){return e===0||e===10||e===100&&(t&192)===64||e===127||e===169&&t===254||e===172&&t>=16&&t<=31||e===192&&t===168}function Xl(e,t){return[e>>8,e&255,t>>8,t&255]}function Nu(e){const t=e.toLowerCase().replace(/\.$/,"");if(t==="localhost"||t.endsWith(".localhost")||t.endsWith(".local"))return!0;const n=av(t);if(n)return Gi(n);const r=lv(t);if(!r)return!1;if(r.every(s=>s===0)||r.slice(0,7).every(s=>s===0)&&r[7]===1||(r[0]&65472)===65152||(r[0]&65024)===64512)return!0;const o=r.slice(0,5).every(s=>s===0)&&(r[5]===65535||r[5]===0),i=r[0]===100&&r[1]===65435&&r.slice(2,6).every(s=>s===0);return o||i?Gi(Xl(r[6],r[7])):r[0]===8194?Gi(Xl(r[1],r[2])):!1}function cv(e,t){return(e??[]).some(n=>n==="*"||Ru(n,t))}function Gr(e,t){const n=sv(t.trim(),e?.baseUrl);if(!n)return{allowed:!1,reason:"invalid"};const r=n.protocol.replace(/:$/,"").toLowerCase();if(!(e?.schemes??Fu).includes(r))return{allowed:!1,url:n.href,reason:"scheme"};if(r==="http"||r==="https"){const i=n.hostname.toLowerCase();if(e?.hosts&&!e.hosts.some(s=>Ru(s,i)))return{allowed:!1,url:n.href,reason:"host"};if(Nu(i)&&!cv(e?.allowPrivate,i))return{allowed:!1,url:n.href,reason:"private"}}return{allowed:!0,url:n.href}}function Lu(e,t={}){const n=Gr({baseUrl:t.baseUrl,schemes:t.schemes??zu,hosts:t.hosts,allowPrivate:t.allowPrivate},e);if(!n.allowed||!n.url)return null;const r=n.url,o={};for(const i of t.rules??[])r.startsWith(i.prefix)&&Object.assign(o,i.headers);return{url:r,headers:ju(o)}}function dv(e,t){if(typeof t!="string"||!t)return;const n=Gr(e,t);return n.allowed?n.url:void 0}function ju(e){return Object.fromEntries(Object.entries(e).sort(([t],[n])=>t<n?-1:t>n?1:0))}function uv(e){if(Bu(e))return hv(e);const t=e.length,n=c=>c+2<=t?e[c]<<8|e[c+1]:null,r=c=>c+2<=t?e[c]|e[c+1]<<8:null,o=c=>c+4<=t?(e[c]<<24|e[c+1]<<16|e[c+2]<<8|e[c+3])>>>0:null,i=c=>c+4<=t?(e[c]|e[c+1]<<8|e[c+2]<<16|e[c+3]<<24)>>>0:null,s=c=>c+3<=t?e[c]|e[c+1]<<8|e[c+2]<<16:null,a=(c,d=0)=>c.every((u,p)=>e[d+p]===u),l=(c,d)=>c===null||d===null?null:[c,d];if(a([137,80,78,71,13,10,26,10]))return l(o(16),o(20));if(a([71,73,70,56])&&(e[4]===55||e[4]===57)&&e[5]===97)return l(r(6),r(8));if(a([66,77])){const c=i(22);return l(i(18),c===null?null:Math.abs(c|0))}if(t>=30&&a([82,73,70,70])&&a([87,69,66,80],8)){const c=String.fromCharCode(e[12],e[13],e[14],e[15]);if(c==="VP8 ")return l(r(26)&16383,r(28)&16383);if(c==="VP8L"){const d=i(21);return d===null?null:[(d&16383)+1,(d>>>14&16383)+1]}if(c==="VP8X"){const d=s(24),u=s(27);return d===null||u===null?null:[d+1,u+1]}return null}if(a([255,216])){let c=2;for(;c+4<=t;){if(e[c]!==255){c+=1;continue}const d=e[c+1];if(d===255){c+=1;continue}if(d===216||d===1||d>=208&&d<=215){c+=2;continue}const u=n(c+2);if(u===null)return null;if(d>=192&&d<=207&&d!==196&&d!==200&&d!==204)return l(n(c+7),n(c+5));c+=2+u}}return null}function Bu(e){const t=e.subarray(0,256);let n=0;for(;n<t.length&&(t[n]===32||t[n]===9||t[n]===10||t[n]===12||t[n]===13);)n+=1;const r=String.fromCharCode(...t.subarray(n,n+5)).toLowerCase();return r.startsWith("<svg")||r.startsWith("<?xml")}const pv={"":1,px:1,pt:4/3,pc:16,in:96,cm:96/2.54,mm:96/25.4,em:16,ex:8};function Zl(e){const t=e.trim();let r=/^[0-9.+\-eE]*/.exec(t)[0],o=t.slice(r.length);/[eE]$/.test(r)&&(r=r.slice(0,-1),o=t.slice(r.length));const i=pv[o.trim()];if(i===void 0||!/^[+-]?(\d+\.?\d*|\.\d+)([eE][+-]?\d+)?$/.test(r))return null;const s=Number(r);return Number.isFinite(s)&&s>=0?s*i:null}function fv(e){const t=e.split(/[\s,]+/).filter(o=>o!=="");if(t.length!==4||t.some(o=>!/^[+-]?(\d+\.?\d*|\.\d+)([eE][+-]?\d+)?$/.test(o)))return null;const n=Number(t[2]),r=Number(t[3]);return n>0&&r>0&&Number.isFinite(n)&&Number.isFinite(r)?[n,r]:null}function hv(e){let t=-1;for(let d=0;d+4<=e.length;d++)if(e[d]===60&&e[d+1]===115&&e[d+2]===118&&e[d+3]===103){t=d;break}if(t<0)return null;let n=e.indexOf(62,t);n<0&&(n=e.length);const r=new TextDecoder().decode(e.subarray(t+4,n));let o=null,i=null,s=null;for(const d of r.matchAll(/(?<=\s)([A-Za-z_:][A-Za-z0-9_:.\-]*)\s*=\s*("([^"]*)"?|'([^']*)'?)/g)){const u=d[3]??d[4]??"";d[1]==="width"?o=Zl(u):d[1]==="height"?i=Zl(u):d[1]==="viewBox"&&(s=fv(u))}let a,l;o!==null&&i!==null?[a,l]=[o,i]:o!==null?[a,l]=[o,s?o*s[1]/s[0]:100]:i!==null?[a,l]=[s?i*s[0]/s[1]:100,i]:[a,l]=s??[100,100];const c=d=>Number.isFinite(d)?Math.min(Math.max(Math.ceil(d),0),4294967295):4294967295;return[c(a),c(l)]}function gv(e){const t=e.length,n=a=>a+4<=t?(e[a]<<24|e[a+1]<<16|e[a+2]<<8|e[a+3])>>>0:null,r=a=>a+4<=t?(e[a]|e[a+1]<<8|e[a+2]<<16|e[a+3]<<24)>>>0:null,o=a=>a+4<=t?String.fromCharCode(e[a],e[a+1],e[a+2],e[a+3]):null,i=a=>a.every((l,c)=>e[c]===l);let s=1;if(i([71,73,70,56])&&(e[4]===55||e[4]===57)&&e[5]===97){const a=d=>{for(;d<t;){const u=e[d];if(d+=1+u,u===0)break}return d},l=d=>d&128?3<<(d&7)+1:0;let c=13+(t>10?l(e[10]):0);for(s=0;;)if(e[c]===44){if(s+=1,c+9>=t)break;c=a(c+10+l(e[c+9])+1)}else if(e[c]===33)c=a(c+2);else break}else if(i([137,80,78,71,13,10,26,10])){let a=8;for(;;){const l=n(a),c=o(a+4);if(l===null||c===null||c==="IDAT")break;if(c==="acTL"){s=n(a+8)??1;break}a+=12+l}}else if(t>=21&&o(0)==="RIFF"&&o(8)==="WEBP"&&o(12)==="VP8X"&&e[20]&2){let a=12;for(s=0;;){const l=o(a),c=r(a+4);if(l===null||c===null)break;l==="ANMF"&&(s+=1),a+=8+c+(c&1)}}return Math.max(s,1)}function mv(e,t=Dr){const{maxBytes:n,maxPixels:r}=t;if(e.length>n)return`media is over ${n} bytes`;const o=(d,u=0)=>d.every((p,h)=>e[u+h]===p);if(!(o([137,80,78,71,13,10,26,10])||o([71,73,70,56])&&(e[4]===55||e[4]===57)&&e[5]===97||o([66,77])||o([255,216])||e.length>=12&&o([82,73,70,70])&&o([87,69,66,80],8))&&!Bu(e))return null;const s=uv(e);if(!s)return"media: image dimensions unreadable";const[a,l]=s,c=gv(e);return c<=1?a*l>r?`media is ${a}×${l}, over ${r} pixels`:null:a*l*c>r?`media is ${a}×${l} × ${c} frames, over ${r} pixels`:null}const yv=/^([a-zA-Z][a-zA-Z0-9+.-]*):([^?]+)(?:\?(.*))?$/;function Yi(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return e}}function Yn(e){const t=yv.exec(e.trim());if(!t)return null;const n=Yi(t[2]);if(!n)return null;const r={};for(const o of(t[3]??"").split("&")){if(!o)continue;const i=o.indexOf("="),s=Yi(i<0?o:o.slice(0,i));s&&(r[s]=i<0?"":Yi(o.slice(i+1)))}return{uri:e,scheme:t[1].toLowerCase(),name:n,params:ju(r)}}function bv(e,t){if(!t||typeof t!="object")return e;const n=[];for(const r of Object.keys(t).sort()){const o=t[r];if(o==null)continue;const i=typeof o=="object"?JSON.stringify(o):String(o);n.push(`${encodeURIComponent(r)}=${encodeURIComponent(i)}`)}return n.length?`${e}${e.includes("?")?"&":"?"}${n.join("&")}`:e}function Ql(e,t,n){const r=e.trim();if(r)try{n.messages.push(JSON.parse(r))}catch{n.issues.push({at:t,message:`line ${t} is not JSON`})}}function Ls(e){let t=0;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t+=r<128?1:r<2048||r>=55296&&r<=57343?2:3}return t}class Wu{parts=[];bytes=0;skipping=!1;push(t){const n=[];let r=0;if(this.skipping){const i=t.indexOf(`
17
+ `);if(i<0)return n;this.skipping=!1,r=i+1}let o=t.indexOf(`
18
+ `,r);for(;o>=0;){const i=t.slice(r,o),s=this.bytes+Ls(i)>wn;n.push(s?null:this.parts.length?this.parts.join("")+i:i),this.parts=[],this.bytes=0,r=o+1,o=t.indexOf(`
19
+ `,r)}if(r<t.length){const i=t.slice(r);this.parts.push(i),this.bytes+=Ls(i)}return this.bytes>wn&&(n.push(null),this.parts=[],this.bytes=0,this.skipping=!0),n}end(){const t=this.skipping,n=this.parts.join("");return this.parts=[],this.bytes=0,this.skipping=!1,t?null:n}}const Hu=(e,t)=>({at:e,message:`${t} ${e}: ${Tt.messageBytes}`});class Uu{lines=new Wu;line=0;push(t){const n={messages:[],issues:[]};for(const r of this.lines.push(t))this.line+=1,r===null?n.issues.push(Hu(this.line,"line")):Ql(r,this.line,n);return n}end(){const t={messages:[],issues:[]},n=this.lines.end();return n!==null&&n.trim()&&(this.line+=1,Ql(n,this.line,t)),t}}function qu(e){const t=e.trim();if(t.startsWith("["))try{const i=JSON.parse(t);if(Array.isArray(i))return{messages:i,issues:[]}}catch{}const n=new Uu,r=n.push(e),o=n.end();return{messages:[...r.messages,...o.messages],issues:[...r.issues,...o.issues]}}class vv{retryMs;lines=new Wu;data=[];dataBytes=0;oversized=!1;event="";count=0;push(t){const n={messages:[],issues:[]};for(const r of this.lines.push(t))r===null?this.dropData():this.line(r.endsWith("\r")?r.slice(0,-1):r,n);return n}end(){const t={messages:[],issues:[]},n=this.lines.end();return n===null?this.dropData():n&&this.line(n,t),this.dispatch(t),t}dropData(){this.data=[],this.dataBytes=0,this.oversized=!0}line(t,n){if(t==="")return this.dispatch(n);if(t.startsWith(":"))return;const r=t.indexOf(":"),o=r<0?t:t.slice(0,r);let i=r<0?"":t.slice(r+1);if(i.startsWith(" ")&&(i=i.slice(1)),o==="data"){if(this.oversized)return;if(this.dataBytes+=Ls(i)+1,this.dataBytes>wn)return this.dropData();this.data.push(i)}else o==="event"?this.event=i:o==="retry"&&/^\d+$/.test(i)&&(this.retryMs=Number(i))}dispatch(t){if(this.dataBytes=0,this.oversized){this.oversized=!1,this.count+=1,this.data=[],this.event="",t.issues.push(Hu(this.count,"event"));return}if(!this.data.length){this.event="";return}this.count+=1;const n=this.event||"message",r=this.data.join(`
20
+ `);if(this.data=[],this.event="",!tv.includes(n))return;const o=qu(r);t.messages.push(...o.messages),o.issues.length&&t.issues.push({at:this.count,message:`event ${this.count} is not JSON`})}}const xv=/^[a-z][a-z0-9_]{0,31}$/,$v=["id","createdAt","updatedAt","createdBy","author"],Jl=["string","number","integer","boolean","array"],ec=["string","number","integer","boolean"],tc=["date","date-time","time"],po=e=>!!e&&typeof e=="object"&&!Array.isArray(e),Xi=e=>Array.isArray(e)&&e.every(t=>typeof t=="string");function wv(e,t){const n=[];if(!po(e)||e.type!=="object"||!po(e.properties))return[{path:t,message:'a record schema is {type: "object", properties}'}];for(const r of Object.keys(e.properties).sort()){const o=e.properties[r],i=`${t}/properties/${r}`;if($v.includes(r)&&n.push({path:i,message:`${r} is a reserved record key`}),!po(o)||typeof o.type!="string"||!Jl.includes(o.type)){n.push({path:i,message:`a field is {type: ${Jl.join("|")}}`});continue}if(o.enum!==void 0&&(!Xi(o.enum)||!o.enum.length||o.type!=="string")&&n.push({path:`${i}/enum`,message:"enum is a non-empty list of strings on a string field"}),o.type==="array"){const s=o.items;!po(s)||typeof s.type!="string"||!ec.includes(s.type)?n.push({path:`${i}/items`,message:`items is {type: ${ec.join("|")}}`}):s.enum!==void 0&&(!Xi(s.enum)||!s.enum.length||s.type!=="string")&&n.push({path:`${i}/items/enum`,message:"enum is a non-empty list of strings on a string item"})}else o.items!==void 0&&n.push({path:`${i}/items`,message:"items belongs to an array field"});o.format!==void 0&&(typeof o.format!="string"||!tc.includes(o.format)||o.type!=="string")&&n.push({path:`${i}/format`,message:`format is ${tc.join("|")} on a string field`});for(const s of["maxLength","minimum","maximum"])o[s]!==void 0&&typeof o[s]!="number"&&n.push({path:`${i}/${s}`,message:`${s} is a number`})}return e.required!==void 0&&(Xi(e.required)?e.required.forEach((r,o)=>{Object.prototype.hasOwnProperty.call(e.properties,r)||n.push({path:`${t}/required/${o}`,message:`${r} is not a declared field`})}):n.push({path:`${t}/required`,message:"required is a list of field names"})),e.additionalProperties!==void 0&&typeof e.additionalProperties!="boolean"&&n.push({path:`${t}/additionalProperties`,message:"additionalProperties is a boolean"}),n}const kv="records";Uint8Array.from([48,46,2,1,0,48,5,6,3,43,101,112,4,34,4,32]);const Sv=/^[a-z][a-z0-9_-]{0,31}$/,Cv=["mcp","script"],Av=/^[A-Za-z_][A-Za-z0-9_]*$/,nc=e=>!!e&&typeof e=="object"&&!Array.isArray(e),rc=e=>Array.isArray(e)&&e.every(t=>typeof t=="string");function Tv(e){try{const t=new URL(e);return(t.protocol==="https:"||t.protocol==="http:")&&!!t.host}catch{return!1}}function Iv(e){if(!nc(e))return[{path:"/tools",message:"tools is an object of tools"}];const t=[];for(const n of Object.keys(e).sort()){const r=e[n],o=`/tools/${n}`;if(Sv.test(n)||t.push({path:o,message:"a tool id is lowercase letters, digits, - and _"}),!nc(r)){t.push({path:o,message:"a tool is {kind, title, url | command}"});continue}(typeof r.kind!="string"||!Cv.includes(r.kind))&&t.push({path:`${o}/kind`,message:"kind is mcp or script"}),(typeof r.title!="string"||!r.title.trim())&&t.push({path:`${o}/title`,message:"title is a required string"}),r.description!==void 0&&typeof r.description!="string"&&t.push({path:`${o}/description`,message:"description is a string"});const i=r.url!==void 0,s=r.command!==void 0;r.kind==="mcp"&&i===s&&t.push({path:o,message:"an mcp tool has a url or a command"}),r.kind==="script"&&i&&t.push({path:`${o}/url`,message:"a script runs a command, not a url"}),r.kind==="script"&&!s&&t.push({path:`${o}/command`,message:"command is a non-empty string"}),i&&(typeof r.url!="string"||!Tv(r.url))&&t.push({path:`${o}/url`,message:"url is an absolute http(s) url"}),s&&(typeof r.command!="string"||!r.command.trim())&&t.push({path:`${o}/command`,message:"command is a non-empty string"}),r.args!==void 0&&(!rc(r.args)||i)&&t.push({path:`${o}/args`,message:"args is a list of strings beside a command"}),r.env!==void 0&&(!rc(r.env)||r.env.some(a=>!Av.test(a))||i)&&t.push({path:`${o}/env`,message:"env is a list of variable names beside a command"})}return t}const oc=2;function Aa(e=[]){const t=[];for(const n of[Cr,_d,sa,...e])t.includes(n)||t.push(n);return t}function Ev(e=[]){return{"v0.9":{supportedCatalogIds:Aa(e)}}}function ic(e){return e.map(t=>({id:t.id,...t.version?{version:t.version}:{},components:[...Object.keys(t.components),...Object.keys(t.macros??{})]}))}const js=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$/;function _v(e,t){const n=js.exec(e),r=js.exec(t);if(!n||!r)return!1;const[o,i,s]=[Number(n[1]),Number(n[2]),Number(n[3])],[a,l,c]=[Number(r[1]),Number(r[2]),Number(r[3])];return o===a&&(i>l||i===l&&s>=c)}const Ue=e=>!!e&&typeof e=="object"&&!Array.isArray(e),Mv=/^(\/([^/~]|~[01])*)*$/;function Dv(e,t=Aa(),n){const r=[];if(!Ue(e))return[{path:"",message:"a package is an object"}];e.formatVersion!==void 0&&(typeof e.formatVersion!="number"||!Number.isInteger(e.formatVersion)||e.formatVersion<1?r.push({path:"/formatVersion",message:"formatVersion is a positive integer"}):e.formatVersion>oc&&r.push({path:"/formatVersion",message:`format version ${e.formatVersion} is newer than this host (${oc})`}));for(const o of["id","name","version","catalogId"])(typeof e[o]!="string"||!e[o])&&r.push({path:`/${o}`,message:`${o} is a required string`});if(typeof e.catalogId=="string"&&e.catalogId&&!t.includes(e.catalogId)&&r.push({path:"/catalogId",message:`unsupported catalog ${e.catalogId}`}),!Ue(e.templates)||!Object.keys(e.templates).length)r.push({path:"/templates",message:"templates is a non-empty object"});else for(const[o,i]of Object.entries(e.templates)){const s=`/templates/${o}`;if(!Ue(i)){r.push({path:s,message:"a template is an object"});continue}const a=i.components;if(!Array.isArray(a)||!a.length)r.push({path:`${s}/components`,message:"components is a non-empty array"});else{const l=new Set;a.forEach((c,d)=>{!Ue(c)||typeof c.id!="string"||typeof c.component!="string"?r.push({path:`${s}/components/${d}`,message:"a component needs an id and a component"}):l.has(c.id)?r.push({path:`${s}/components/${d}/id`,message:`duplicate id ${c.id}`}):l.add(c.id)}),l.has("root")||r.push({path:`${s}/components`,message:"no component has the id root"})}i.bindings!==void 0&&(Array.isArray(i.bindings)?i.bindings.forEach((l,c)=>{const d=`${s}/bindings/${c}`;(!Ue(l)||typeof l.path!="string"||!Mv.test(l.path))&&r.push({path:`${d}/path`,message:"path is a JSON pointer"}),(!Ue(l)||typeof l.source!="string"||!Yn(l.source))&&r.push({path:`${d}/source`,message:"source is a scheme:name URI"})}):r.push({path:`${s}/bindings`,message:"bindings is an array"}))}if(e.functions!==void 0&&(!Array.isArray(e.functions)||e.functions.some(o=>typeof o!="string"||!o))&&r.push({path:"/functions",message:"functions is a list of names or prefix* patterns"}),e.records!==void 0)if(!Ue(e.records))r.push({path:"/records",message:"records is an object of kinds"});else for(const o of Object.keys(e.records).sort()){const i=e.records[o],s=`/records/${o}`;xv.test(o)||r.push({path:s,message:"a kind is lowercase letters, digits and underscores"}),Ue(i)?r.push(...wv(i.schema,`${s}/schema`)):r.push({path:s,message:"a kind is {schema, title?}"})}if(e.sources!==void 0&&(!Array.isArray(e.sources)||e.sources.some(o=>typeof o!="string"||!o)))r.push({path:"/sources",message:"sources is a list of scheme:name sources or prefix* patterns"});else if(Array.isArray(e.sources)&&Ue(e.templates))for(const[o,i]of Object.entries(e.templates))!Ue(i)||!Array.isArray(i.bindings)||i.bindings.forEach((s,a)=>{Ue(s)&&typeof s.source=="string"&&Yn(s.source)&&!Vu(e.sources,s.source)&&r.push({path:`/templates/${o}/bindings/${a}/source`,message:`source ${s.source} is not in the package's sources`})});if(Ue(e.templates))for(const[o,i]of Object.entries(e.templates))!Ue(i)||!Array.isArray(i.bindings)||i.bindings.forEach((s,a)=>{const l=Ue(s)&&typeof s.source=="string"?Yn(s.source):null;l?.scheme===kv&&(!Ue(e.records)||!Object.prototype.hasOwnProperty.call(e.records,l.name))&&r.push({path:`/templates/${o}/bindings/${a}/source`,message:`records:${l.name} names no declared kind`})});return e.tools!==void 0&&r.push(...Iv(e.tools)),e.extensions!==void 0&&r.push(...Pv(e.extensions,t,n)),r}function Pv(e,t,n){if(!Array.isArray(e))return[{path:"/extensions",message:"extensions is a list of {id, version, components?}"}];const r=[],o=new Set;return e.forEach((i,s)=>{const a=`/extensions/${s}`;if(!Ue(i))return void r.push({path:a,message:"an extension is {id, version, components?}"});const l=typeof i.id=="string"&&i.id?i.id:null;l||r.push({path:`${a}/id`,message:"id is a required string"});const c=typeof i.version=="string"&&js.test(i.version)?i.version:null;c||r.push({path:`${a}/version`,message:"version is MAJOR.MINOR.PATCH"});const d=i.components===void 0?[]:Array.isArray(i.components)&&i.components.every(p=>typeof p=="string"&&p)?i.components:null;if(d||r.push({path:`${a}/components`,message:"components is a list of component names"}),!l)return;if(o.has(l))return void r.push({path:`${a}/id`,message:`duplicate extension ${l}`});o.add(l);const u=n?.find(p=>p.id===l);if(!t.includes(l)||n&&!u)return void r.push({path:`${a}/id`,message:`extension ${l} is not available on this host`});u&&(c&&u.version!==void 0&&!_v(u.version,c)&&r.push({path:`${a}/version`,message:`extension ${l} ${u.version} does not satisfy ^${c}`}),u.components&&(d??[]).forEach((p,h)=>{u.components.includes(p)||r.push({path:`${a}/components/${h}`,message:`extension ${l} has no component ${p}`})}))}),r}function Vu(e,t){if(e===void 0)return!0;const n=Yn(t);if(!n)return!1;const r=`${n.scheme}:${n.name}`;return e.some(o=>Ns(o,r)||Ns(o,t))}function Ov(e,t,n,r){const o=e.templates[t];if(!o)return null;const i=aa,s=[{version:i,createSurface:{surfaceId:n,catalogId:e.catalogId}},{version:i,updateComponents:{surfaceId:n,components:o.components}}],a=Fv(o.data,r);a!==void 0&&s.push({version:i,updateDataModel:{surfaceId:n,path:"/",value:a}});for(const l of o.bindings??[])s.push({version:i,bindDataModel:{surfaceId:n,path:l.path,source:l.source}});return s}function Fv(e,t){return t===void 0?e:Ue(e)&&Ue(t)?{...e,...t}:t}const ko=e=>!!e&&typeof e=="object"&&!Array.isArray(e);class zv{extensionIds;surfaces=new Map;packages=new Map;extensions;constructor(t={}){this.extensionIds=[...t.extensionIds??[]],this.extensions=t.extensions?[...t.extensions]:void 0}get supportedCatalogIds(){return Aa(this.extensionIds)}registerExtension(t,n){this.extensionIds.includes(t)||this.extensionIds.push(t),this.extensions&&!this.extensions.some(r=>r.id===t)&&this.extensions.push(n??{id:t})}installPackage(t){const n=Dv(t,this.supportedCatalogIds,this.extensions);return n.length||this.packages.set(t.id,t),n}package(t){return this.packages.get(t)}surface(t){return this.surfaces.get(t)}surfaceIds(){return[...this.surfaces.keys()]}route(t){if(Rv(t))return[this.invalid(ko(t)?Zi(t):"",Tt.messageBytes)];if(!ko(t))return[this.invalid("","a message is a JSON object")];if(t.version!==void 0&&t.version!==aa)return[this.invalid(Zi(t),`unsupported version ${String(t.version)}`)];const n=Object.keys(t).filter(s=>s!=="version");if(n.length!==1||!Gl.includes(n[0]))return[this.invalid(Zi(t),`expected exactly one of ${Gl.join(", ")}`)];const r=n[0],o=t[r];if(!ko(o)||typeof o.surfaceId!="string"||!o.surfaceId)return[this.invalid("",`${r}.surfaceId is required`)];const i=o.surfaceId;switch(r){case"createSurface":{if(typeof o.catalogId!="string")return[this.invalid(i,"createSurface.catalogId is required")];if(!this.supportedCatalogIds.includes(o.catalogId))return[{op:"send",message:wt("UNSUPPORTED_CATALOG",i,`catalog ${o.catalogId} is not supported`)}];this.surfaces.set(i,{surfaceId:i,catalogId:o.catalogId});const s={op:"create",surfaceId:i,catalogId:o.catalogId};return o.theme!==void 0&&(s.theme=o.theme),o.sendDataModel===!0&&(s.sendDataModel=!0),[s]}case"updateComponents":return Array.isArray(o.components)?this.surfaces.has(i)?[{op:"components",surfaceId:i,components:o.components}]:[this.missing(i)]:[this.invalid(i,"updateComponents.components is required")];case"updateDataModel":{if(!this.surfaces.has(i))return[this.missing(i)];if(o.path!==void 0&&typeof o.path!="string")return[this.invalid(i,"updateDataModel.path is a string")];const s=Qi(o.path);return["value"in o?{op:"data",surfaceId:i,path:s,value:o.value}:{op:"data",surfaceId:i,path:s}]}case"deleteSurface":return this.surfaces.has(i)?(this.surfaces.delete(i),[{op:"delete",surfaceId:i}]):[this.missing(i)];case"bindDataModel":{const s=this.surfaces.get(i);if(!s)return[this.missing(i)];if(typeof o.path!="string"||typeof o.source!="string"||!Yn(o.source))return[this.invalid(i,"bindDataModel needs a path and a scheme:name source")];const a=s.packageId?this.packages.get(s.packageId):void 0;return a&&!Vu(a.sources,o.source)?[{op:"send",message:wt("SOURCE_DENIED",i,`source ${o.source} is not in package ${a.id}'s sources`,Qi(o.path)||"/")}]:[{op:"bind",surfaceId:i,path:Qi(o.path),source:o.source}]}case"applyTemplate":{if(typeof o.templateId!="string")return[this.invalid(i,"applyTemplate.templateId is required")];const s=this.findPackage(o.templateId,typeof o.packageId=="string"?o.packageId:void 0);if(!s)return[{op:"send",message:wt("TEMPLATE_NOT_FOUND",i,`no installed package has the template ${o.templateId}`)}];const a=[];for(const l of Ov(s,o.templateId,i,o.data)??[]){a.push(...this.route(l));const c=this.surfaces.get(i);c&&(c.packageId=s.id)}return a}}return[this.invalid(i,"unknown message")]}findPackage(t,n){if(n!==void 0){const r=this.packages.get(n);return r&&r.templates[t]?r:void 0}for(const r of this.packages.values())if(r.templates[t])return r}invalid(t,n){return{op:"send",message:wt("INVALID_MESSAGE",t,n)}}missing(t){return{op:"send",message:wt("SURFACE_NOT_FOUND",t,`no surface ${t}; send createSurface first`)}}}function Rv(e){let t;try{t=JSON.stringify(e)}catch{return!1}return t===void 0||t.length*3<=wn?!1:t.length>wn||new TextEncoder().encode(t).length>wn}function Zi(e){for(const t of Object.values(e))if(ko(t)&&typeof t.surfaceId=="string")return t.surfaceId;return""}function Qi(e){return e===void 0||e==="/"?"":e}class Nv extends Error{constructor(t,n){super(`exponential-ui: package ${t} is unusable: ${n.map(r=>`${r.path||"/"} ${r.message}`).join("; ")}`),this.packageId=t,this.issues=n,this.name="PackageError"}packageId;issues}const sc=100;function Lv(e){if(typeof e=="string")return Mr.includes(e)?{theme:Gn(e),issues:[]}:{theme:null,issues:[`unknown built-in theme "${e}"; known: ${Mr.join("|")}`]};const{theme:t,issues:n}=Ca(e,{themes:_r});return{theme:t,issues:n.map(r=>r.path?`${r.path}: ${r.message}`:r.message)}}class jv{constructor(t,n,r){this.extensions=r,this.surfaceId=t,this.catalogId=n}extensions;surfaceId;catalogId;packageId;sendDataModel=!1;list=[];shared=!1;positions=new Map;data={};theme;reduced=null;listeners=new Set;version=0;get components(){return this.shared=!0,this.list}component(t){const n=this.positions.get(t);return n===void 0?void 0:this.list[n]}get root(){return this.reduce().root}get issues(){return this.reduce().issues}get templates(){return this.reduce().templates}reduce(){return this.reduced||(this.reduced=this.list.length?Tu(this.list,{catalogId:this.catalogId,extensions:this.extensions()}):{root:null,issues:[]}),this.reduced}setComponents(t){this.shared&&(this.list=this.list.slice(),this.shared=!1);for(const n of t){const r=this.positions.get(n.id);r===void 0?(this.positions.set(n.id,this.list.length),this.list.push(n)):this.list[r]=n}this.reduced=null,this.notify()}invalidate(){this.reduced=null,this.notify()}setData(t,n){const r=ga(this.data,t,n);if(r.error)return r.error;this.data=r.data,this.notify()}subscribe(t){return this.listeners.add(t),()=>this.listeners.delete(t)}notify(){this.version+=1;for(const t of[...this.listeners])t()}}class Bv{constructor(t={}){this.options=t,this.extensions=[...t.extensions??[]],this.router=new zv({extensionIds:this.extensions.map(n=>n.id),extensions:ic(this.extensions)}),this.functions={...t.functions??{}},this.sources={...t.sources??{}};for(const n of t.packages??[]){const r=this.installPackage(n);if(r.length)throw new Nv(typeof n?.id=="string"&&n.id?n.id:"?",r)}}options;router;stores=new Map;subscriptions=new Map;paintErrors=new Map;listeners=new Set;functions;sources;extensions;status="closed";statusDetail;unsupportedCatalog;issues=[];get hasTransport(){return this.options.transport!==void 0}get supportedCatalogIds(){return this.router.supportedCatalogIds}clientCapabilities(){return Ev(this.extensions.map(t=>t.id))}get extensionDefs(){return this.extensions}registerExtension(t){if(!this.extensions.some(n=>n.id===t.id)){this.extensions.push(t),this.router.registerExtension(t.id,ic([t])[0]);for(const n of this.stores.values())n.invalidate()}}registerFunction(t,n){this.functions[t]=n}registerSource(t,n){this.sources[t.toLowerCase()]=n}installPackage(t){const n=this.router.installPackage(t),r=typeof t?.id=="string"?t.id:void 0;for(const o of n)this.report({code:"PACKAGE_INVALID",message:o.message,path:o.path,...r?{packageId:r}:{}});return n}report(t){const n=[...this.issues,t];this.issues=n.length>sc?n.slice(n.length-sc):n,this.options.onIssue?.(t),this.notify()}surface(t){return this.stores.get(t)}surfaceIds(){return[...this.stores.keys()]}subscribe(t){return this.listeners.add(t),()=>this.listeners.delete(t)}notify(){for(const t of[...this.listeners])t()}connect(){const t=this.options.transport;t&&t.start(n=>this.receive(n),(n,r)=>{this.status=n,this.statusDetail=r,this.notify()})}close(){this.options.transport?.close();for(const t of this.surfaceIds())this.perform({op:"delete",surfaceId:t})}receive(t){const n=this.router.route(t);for(const r of n)this.perform(r);return n}send(t){if(this.options.transport?.send(t),this.options.onSend?.(t),"error"in t){const n=t.error;this.report({code:n.code,message:n.message,...n.surfaceId?{surfaceId:n.surfaceId}:{},...n.path!==void 0?{path:n.path}:{}})}}perform(t){switch(this.options.onOp?.(t),t.op){case"create":{this.unbind(t.surfaceId),this.forgetPaintErrors(t.surfaceId);const n=new jv(t.surfaceId,t.catalogId,()=>this.extensions);if(n.sendDataModel=t.sendDataModel===!0,n.packageId=this.router.surface(t.surfaceId)?.packageId,t.theme!==void 0&&t.theme!==null){const{theme:r,issues:o}=Lv(t.theme);r?n.theme=r:this.send(wt("VALIDATION_FAILED",t.surfaceId,`createSurface.theme is unusable: ${o.join("; ")}`,"/createSurface/theme"))}this.stores.set(t.surfaceId,n),this.notify();return}case"components":{const n=this.paintErrors.get(t.surfaceId);if(n)for(const r of t.components)n.delete(r.id);this.stores.get(t.surfaceId)?.setComponents(t.components);return}case"data":{const n=this.stores.get(t.surfaceId)?.setData(t.path,t.value);n&&this.send(wt("VALIDATION_FAILED",t.surfaceId,n,t.path||"/"));return}case"bind":{const n=this.stores.get(t.surfaceId),r=Yn(t.source),o=r?this.sources[r.scheme]:void 0;if(!n||!r)return;if(!o){this.send(wt("VALIDATION_FAILED",t.surfaceId,`no resolver for the source scheme ${r.scheme}`,t.path||"/"));return}const i=this.subscriptions.get(t.surfaceId)??[];for(const l of i)l.path===t.path&&l.cancel();const s=i.filter(l=>l.path!==t.path),a=o(r,l=>this.stores.get(t.surfaceId)?.setData(t.path,l));this.subscriptions.set(t.surfaceId,a?[...s,{path:t.path,cancel:a}]:s);return}case"delete":this.unbind(t.surfaceId),this.forgetPaintErrors(t.surfaceId),this.stores.delete(t.surfaceId),this.notify();return;case"send":{const n="error"in t.message?t.message.error:void 0;n?.code==="UNSUPPORTED_CATALOG"&&(this.unsupportedCatalog=n.message.replace(/^catalog (\S+).*$/,"$1"),this.notify()),this.send(t.message);return}}}unbind(t){for(const n of this.subscriptions.get(t)??[])n.cancel();this.subscriptions.delete(t)}action(t){const n=nv({name:t.name,surfaceId:t.surfaceId,sourceComponentId:t.componentId,timestamp:t.timestamp??new Date().toISOString(),context:t.context??{},payload:t.payload});return this.send(n),n}decide(t,n){const r=Object.prototype.hasOwnProperty.call(this.functions,n);let o=Yl(this.options.policy?.functions,n,r);const i=this.stores.get(t)?.packageId,s=i?this.router.package(i):void 0;return s&&(o=ov(o,Yl(iv(s.functions),n,r))),o}async callFunction(t){if(t.name==="openUrl"){const i=typeof t.args.url=="string"?t.args.url:"";return{decision:this.openUrl(i)?"allow":"deny"}}if(t.name==="bind")return{decision:this.bind(t.surfaceId,t.args)?"allow":"deny"};let n=this.decide(t.surfaceId,t.name);if(n==="not_found")return this.send(wt("FUNCTION_NOT_FOUND",t.surfaceId,`no function ${t.name}`)),{decision:n};let r;if(n==="ask"){let i=!1;try{i=await this.options.policy?.onFunctionCall?.(t)===!0}catch(s){r=s instanceof Error?s.message:String(s)}i||(n="deny")}if(n==="deny")return this.send(wt("FUNCTION_DENIED",t.surfaceId,r===void 0?`${t.name} was not allowed`:`${t.name} was not allowed: the consent hook failed: ${r}`)),r===void 0?{decision:n}:{decision:n,error:r};const o=Object.prototype.hasOwnProperty.call(this.functions,t.name)?this.functions[t.name]:void 0;if(!o)return{decision:"allow"};try{return{decision:"allow",result:await o(t.args,t)}}catch(i){return{decision:"allow",error:i instanceof Error?i.message:String(i)}}}bind(t,n){const r=typeof n.path=="string"?n.path:"",o=typeof n.source=="string"?n.source:"";if(!o||!this.stores.has(t))return!1;const i=n.params&&typeof n.params=="object"&&!Array.isArray(n.params)?n.params:void 0;return this.receive({version:aa,bindDataModel:{surfaceId:t,path:r,source:bv(o,i)}}).some(a=>a.op==="bind")}urlPolicy(){return{baseUrl:this.options.policy?.media?.baseUrl,...this.options.policy?.urls}}openUrl(t){const n=Gr(this.urlPolicy(),t);return!n.allowed||!n.url?!1:((this.options.policy?.openUrl??(o=>globalThis.window?.open(o,"_blank","noopener")))(n.url),!0)}paintError(t){const n=this.stores.get(t.surfaceId);let r=t.componentId;for(;n&&!n.component(r)&&r.includes(".");)r=r.slice(0,r.lastIndexOf("."));const o=n?.component(r);let i=this.paintErrors.get(t.surfaceId);i||this.paintErrors.set(t.surfaceId,i=new Map);let s=i.get(r);(!s||s.component!==o)&&i.set(r,s={component:o,ids:new Set}),!s.ids.has(t.componentId)&&(s.ids.add(t.componentId),this.send(wt(ev,t.surfaceId,t.message,`/components/${t.componentId}`)))}forgetPaintErrors(t){this.paintErrors.delete(t)}mediaOptions(){return this.options.policy?.media}mediaRequest(t){return Lu(t,this.options.policy?.media)}}class Ku{constructor(t){this.options=t}options;controller;generation=0;start(t,n){this.controller?.abort();const r=++this.generation;this.run(r,t,n)}async run(t,n,r){const o=this.options.fetch??fetch,i=()=>t===this.generation;for(;i();){const s=new AbortController;this.controller=s,r("connecting");let a=this.options.reconnectMs??2e3;try{const l=await o(this.options.url,{headers:{accept:this.accept(),...this.options.headers},signal:s.signal});if(!i())return;if(!l.ok||!l.body)throw new Error(`HTTP ${l.status}`);r("open");const c=l.body.getReader(),d=new TextDecoder,u=this.decoder();for(;;){const{done:h,value:f}=await c.read();if(!i())return;if(h)break;u.push(d.decode(f,{stream:!0})).messages.forEach(n)}if(u.end().messages.forEach(n),r("closed"),!(this.options.resumable===!0||u.retryMs!==void 0)){i()&&(this.generation+=1);return}u.retryMs!==void 0&&this.options.reconnectMs===void 0&&(a=u.retryMs)}catch(l){if(!i())return;r("error",l instanceof Error?l.message:String(l))}if(!a||!i())return;await new Promise(l=>setTimeout(l,a))}}async send(t){await(this.options.fetch??fetch)(this.options.postUrl??this.options.url,{method:"POST",headers:{"content-type":"application/json",...this.options.headers},body:JSON.stringify(t)})}close(){this.generation+=1,this.controller?.abort()}}class Wv extends Ku{decoder(){return new Uu}accept(){return"application/jsonl, application/x-ndjson"}}class Hv extends Ku{decoder(){return new vv}accept(){return"text/event-stream"}}class Uv{constructor(t){this.options=t}options;socket;generation=0;start(t,n){const r=++this.generation,o=()=>r===this.generation,i=this.options.WebSocket??WebSocket;n("connecting");const s=new i(this.options.url,this.options.protocols);this.socket=s,s.onopen=()=>o()&&n("open"),s.onmessage=a=>{o()&&typeof a.data=="string"&&qu(a.data).messages.forEach(t)},s.onerror=()=>o()&&n("error","websocket error"),s.onclose=()=>{if(!o())return;n("closed");const a=this.options.reconnectMs??2e3;a&&setTimeout(()=>o()&&this.start(t,n),a)}}send(t){this.socket?.readyState===1&&this.socket.send(JSON.stringify(t))}close(){this.generation+=1,this.socket?.close()}}const qv="@layer xui-base, xui-recipe, xui-node, xui-part, xui-author;",Vv=new Set(["flexGrow","flexShrink","opacity","fontWeight","aspectRatio","zIndex"]),Gu=e=>e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`);function Kv(e){const t=Qt(e);if(!t)return null;const{group:n,name:r}=t;return n==="type.family"?`--xui-font-${r}`:`--xui-${n.replace(/\./g,"-")}-${r}`}function Cn(e){const t=Kv(e);return t?`var(${t})`:null}function Gv(e){return`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}const Yv=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","math","emoji","fangsong"]);function Yu(e,t){const n=t[e]?.fallback,r=Yv.has(e)?e:Gv(e);return n?`${r}, ${n}`:r}function So(e,t,n={}){if(t==null||typeof t=="boolean")return null;if(typeof t=="string"&&t.startsWith("var(--xd-"))return t;if(typeof t=="string"&&t.startsWith("$")){const r=Cn(t);if(r)return r}return e==="boxShadow"?Array.isArray(t)?Pu(t):String(t):e==="fontFamily"?Yu(String(t),n):e==="gridTemplateAreas"&&Array.isArray(t)?t.map(r=>`"${r}"`).join(" "):e==="backgroundGradient"?Xv(t):e==="transitionEasing"?Array.isArray(t)?Ou(t):String(t):e==="transition"?typeof t=="number"?`${t}ms`:String(t):typeof t=="object"?null:typeof t=="number"?Vv.has(e)?String(t):`${t}px`:(e==="overflow"||e==="overflowX"||e==="overflowY")&&t==="hidden"?"clip":String(t)}function Xv(e){if(typeof e!="object"||e===null)return null;const t=e;if(!Array.isArray(t.stops)||t.stops.length<2)return null;const n=t.stops.map(r=>`${typeof r.color=="string"&&r.color.startsWith("$")?Cn(r.color)??r.color:String(r.color)} ${Math.round(Number(r.offset??0)*1e4)/100}%`);return`linear-gradient(${Number(t.angle??180)}deg, ${n.join(", ")})`}const Zv={paddingHorizontal:["padding-left","padding-right"],paddingVertical:["padding-top","padding-bottom"],marginHorizontal:["margin-left","margin-right"],marginVertical:["margin-top","margin-bottom"],backgroundGradient:["background-image"],transition:["transition-property:all","transition-duration"],transitionEasing:["transition-timing-function"]},Qv=["borderWidth","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"];function Co(e,t={},n){const r=[],o="animation"in e?e.animation:n?.animation,i=typeof o=="string"&&wy(o)&&("animation"in e||"opacity"in e);for(const[s,a]of Object.entries(e)){if(s==="native"||s.startsWith("@")||s.startsWith(":")||typeof a=="object"&&a!==null&&!Array.isArray(a)&&s!=="backgroundGradient")continue;if(s==="backdropBlur"){const c=So(s,a,t);c&&r.push(["-webkit-backdrop-filter",`blur(${c})`],["backdrop-filter",`blur(${c})`]);continue}if(s==="animation"){r.push(...Jv(a,e.animationDuration));continue}if(s==="animationDuration"){const c=typeof a=="string"?Cn(a):null;c&&!("animation"in e)&&r.push(["animation-duration",`calc(${c} * var(--xui-anim-factor, 1))`]);continue}const l=So(s,a,t);if(l!==null)for(const c of Zv[s]??[Gu(s)]){const d=c.indexOf(":");d>0?r.push([c.slice(0,d),c.slice(d+1)]):r.push([c,l])}}if(i){const s=r.findIndex(([d])=>d==="opacity"),a="opacity"in e?e:n&&"opacity"in n?n:null,l=s>=0?r[s][1]:a?So("opacity",a.opacity,t):null,c=l===null?"var(--xui-a-opacity, 1)":`calc(${l} * var(--xui-a-opacity, 1))`;s>=0?r[s]=["opacity",c]:r.push(["opacity",c])}return!("borderStyle"in e)&&Qv.some(s=>s in e)&&r.push(["border-style","solid"]),r}function Jv(e,t){const n=typeof e=="string"?Vr[e]:void 0;if(!n)return[["animation-name","none"]];const r=typeof t=="string"&&Qt(t)?.group==="motion"?t:n.duration,o=n.easing==="linear"?"linear":Cn(n.easing)??"linear";return[["--xui-anim-factor",String(n.factor)],["animation-name",`xui-${e}`],["animation-duration",`calc(${Cn(r)??"0ms"} * ${n.factor})`],["animation-timing-function",o],["animation-iteration-count",n.iterations==="infinite"?"infinite":String(n.iterations)],["animation-fill-mode","both"]]}function Ao(e,t){if(t.animation!=="shimmer")return"";const n=Vr.shimmer?.band,r=(n&&Cn(n.color))??"var(--xui-color-background)",o=(n?.stops??[{offset:0,alpha:0},{offset:.5,alpha:.5},{offset:1,alpha:0}]).map(s=>`color-mix(in srgb, ${r} ${Math.round(s.alpha*100)}%, transparent) calc(var(--xui-band, 1) * 100% + ${Math.round(s.offset*100)}%)`);return`${e.split(",").map(s=>`${s}::after`).join(",")}{content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;background-image:linear-gradient(90deg, ${o.join(", ")})}`}const xn=(e,t)=>t.length===0?"":`${e}{${t.map(([n,r])=>`${n}:${r}`).join(";")}}`,ex={hover:[":hover",'[data-xs~="hover"]'],pressed:[":active",'[data-xs~="pressed"]'],focus:[":focus-visible",'[data-xs~="focus"]'],disabled:[":disabled","[data-disabled]",'[aria-disabled="true"]','[data-xs~="disabled"]'],checked:['[data-state="checked"]','[data-xs~="checked"]'],open:['[data-state="open"]','[data-xs~="open"]'],selected:['[data-state="active"]','[data-state="on"]',"[data-highlighted]",'[data-xs~="selected"]'],invalid:['[aria-invalid="true"]','[data-xs~="invalid"]'],dragover:["[data-dragover]",'[data-xs~="dragover"]']};function tx(e){let t=[""];for(const n of e){const r=ex[n]??[`[data-xs~="${n}"]`];t=t.flatMap(o=>r.map(i=>o+i))}return t}const Pr=(e,t)=>`data-${e?"m":"r"}-${Gu(t)}`;function nx(e,t){if(!e)return[""];let n=[""];for(const[r,o]of Object.entries(e)){if(r==="state")continue;const i=Array.isArray(o)?o:[o];n=n.flatMap(s=>i.map(a=>`${s}[${Pr(t,r)}="${String(a)}"]`))}return n}function rx(e,t,n=!1){const r=t.when?.state===void 0?[]:Array.isArray(t.when.state)?t.when.state.map(String):[String(t.when.state)],o=nx(t.when,n),i=tx(r);return o.flatMap(s=>i.map(a=>`${e}${s}${a}`))}function ox(e){let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return(t>>>0).toString(36)}function ix(e){return`xui-t-${e.id.replace(/[^a-z0-9-]/gi,"-")}-${ox(JSON.stringify(e))}`}const sx=[["--background","background"],["--foreground","foreground"],["--card","card"],["--card-foreground","cardForeground"],["--popover","popover"],["--popover-foreground","popoverForeground"],["--primary","primary"],["--primary-foreground","primaryForeground"],["--secondary","secondary"],["--secondary-foreground","secondaryForeground"],["--muted","muted"],["--muted-foreground","mutedForeground"],["--accent","accent"],["--accent-foreground","accentForeground"],["--destructive","destructive"],["--destructive-foreground","destructiveForeground"],["--success","success"],["--success-foreground","successForeground"],["--warning","warning"],["--warning-foreground","warningForeground"],["--info","info"],["--info-foreground","infoForeground"],["--border","border"],["--input","input"],["--ring","ring"],["--chart-1","chart1"],["--chart-2","chart2"],["--chart-3","chart3"],["--chart-4","chart4"],["--chart-5","chart5"],["--chart-6","chart6"],["--chart-7","chart7"],["--chart-8","chart8"],["--sidebar","background"],["--sidebar-foreground","foreground"],["--sidebar-primary","primary"],["--sidebar-primary-foreground","primaryForeground"],["--sidebar-accent","accent"],["--sidebar-accent-foreground","accentForeground"],["--sidebar-border","border"],["--sidebar-ring","ring"],["--glass-fill-section","muted"],["--glass-fill-row","muted"],["--glass-fill-card","card"],["--glass-fill-panel","popover"],["--glass-fill-active","accent"],["--glass-stroke-row","border"],["--glass-stroke-section","border"],["--glass-stroke-card","border"],["--glass-stroke-strong","input"],["--glass-stroke-active","ring"],["--glass-background-top","background"],["--glass-background-bottom","background"]];function ax(e){const t=[],n=e.tokens;for(const r of["spacing","radius","control","opacity","border","motion"])for(const[o,i]of Object.entries(n[r]??{})){const s=r==="opacity"?"":r==="motion"?"ms":"px";t.push([`--xui-${r}-${o}`,`${i}${s}`])}for(const[r,o]of Object.entries(e.tokens.blur??{}))t.push([`--xui-blur-${r}`,`${o}px`]);for(const[r,o]of Object.entries(e.tokens.scale??{}))t.push([`--xui-scale-${r}`,String(o)]);for(const[r,o]of Object.entries(e.tokens.ease??{}))t.push([`--xui-ease-${r}`,Ou(o)]);for(const[r,o]of Object.entries(e.tokens.breakpoint??{}))t.push([`--xui-breakpoint-${r}`,`${o}px`]);for(const[r,o]of Object.entries(e.tokens.type.size))t.push([`--xui-type-size-${r}`,`${o}px`]);for(const[r,o]of Object.entries(e.tokens.type.lineHeight))t.push([`--xui-type-lineHeight-${r}`,`${o}px`]);for(const[r,o]of Object.entries(e.tokens.type.weight))t.push([`--xui-type-weight-${r}`,String(o)]);for(const[r,o]of Object.entries(e.tokens.type.family))t.push([`--xui-font-${r}`,Yu(o,e.fonts)]);return t.push(["--radius","var(--xui-radius-lg)"],["--font-sans","var(--xui-font-sans)"],["--font-mono","var(--xui-font-mono)"]),t.push(["--xui-duration-fast","var(--xui-motion-fast)"],["--xui-duration-standard","var(--xui-motion-standard)"]),t.map(([r,o])=>`${r}:${o}`).join(";")}function ac(e,t){const n=[];for(const[r,o]of Object.entries(e.modes[t].color))n.push([`--xui-color-${r}`,o]);for(const[r,o]of Object.entries(e.modes[t].shadow))n.push([`--xui-shadow-${r}`,Pu(o)]);for(const[r,o]of sx)n.push([r,`var(--xui-color-${o})`]);return n.push(["color-scheme",t]),n.map(([r,o])=>`${r}:${o}`).join(";")}const lx=new Set(Object.entries(rt.components).filter(([,e])=>e.kind==="macro").map(([e])=>e));function Xu(e,t=new Set){return lx.has(e)||t.has(e)}const An=(e,t)=>`xui-${e}-${t}`;function lc(e,t={}){const n=ix(e),r=`.xui-surface.${n}`,o=[qv];o.push(`${r}{${ax(e)}}`),o.push(`${r}[data-xui-mode="light"]{${ac(e,"light")}}`),o.push(`${r}[data-xui-mode="dark"]{${ac(e,"dark")}}`);const i=[],s=[];for(const[a,l]of Object.entries(e.recipes)){const c=Xu(a,t.extensionMacros),d=c?s:i;for(const[u,p]of Object.entries(l)){const h=`.${n}.${An(a,u)}`;for(const f of p){const b=Co(f.style,e.fonts);if(b.length===0)continue;const m=rx(h,f,c).join(",");d.push(xn(m,b)+Ao(m,f.style))}}}return o.push(`@layer xui-recipe{${i.join("")}}`),o.push(`@layer xui-part{${s.join("")}}`),{scope:n,css:o.join(`
21
+ `),theme:e}}const cc=new WeakMap;function cx(e,t){if(t?.extensionMacros&&t.extensionMacros.size>0)return lc(e,t);let n=cc.get(e);return n||(n=lc(e),cc.set(e,n)),n}function Yr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&typeof e.path=="string"&&Object.keys(e).length===1}function Ta(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&typeof e.call=="string"}function ar(e,t=""){return e.startsWith("/")?e:t?e===""?t:`${t}/${e}`:`/${e}`}const Xr=fi;function Tn(e,t,n){return ga(e,t,n).data}const Vo="/$xuiRows";function dx(e){return e===void 0||e===Vo||e.startsWith(`${Vo}/`)?void 0:e}const mr=e=>typeof e=="number"?e:Number(e);function ux(e,t){return e.replace(/\$\{([^}]+)\}/g,(n,r)=>Hr(Xr(t.data,ar(r.trim(),t.scope))))}function Zu(e,t=4096){const n=new Map,r=(i,s)=>{const a=n.get(i);if(a!==void 0)return a;const l=s();return n.size>=t&&n.clear(),n.set(i,l),l},o=i=>i instanceof Date?`t${i.getTime()}`:typeof i=="string"?`s${i}`:`${typeof i}${String(i)}`;return{locale:e.locale,number:(i,s)=>r(`n|${i}|${s?.decimals}|${s?.grouping}`,()=>e.number(i,s)),currency:(i,s,a)=>r(`c|${s}|${i}|${a?.decimals}|${a?.grouping}`,()=>e.currency(i,s,a)),percent:(i,s)=>r(`p|${i}|${s?.decimals}`,()=>e.percent(i,s)),date:(i,s)=>r(`d|${s?.format}|${s?.style}|${s?.time}|${o(i)}`,()=>e.date(i,s)),relativeTime:(i,s)=>e.relativeTime(i,s),plural:i=>r(`l|${i}`,()=>e.plural(i))}}const dc=new Map;function px(e){if(e.formatter)return e.formatter;const t=e.locale??uu;let n=dc.get(t);return n||dc.set(t,n=Zu(Wd(t,"UTC"))),n}const uc=new WeakMap;function fx(e){return(t,n)=>{const r=px(n);let o=uc.get(r);return(!o||o.now!==n.now)&&uc.set(r,o={now:n.now,table:Ud(r,n.now)}),o.table[e](t)}}const hx=Object.fromEntries(Hd.map(e=>[e,fx(e)])),gx=Object.fromEntries(Object.entries(tm).map(([e,t])=>[e,n=>t(n)])),Qu={required:({value:e})=>Ft(e)&&!(Array.isArray(e)&&e.length===0),regex:({value:e,pattern:t})=>{try{return new RegExp(String(t)).test(String(e??""))}catch{return!1}},length:({value:e,min:t,max:n})=>{const r=String(e??"").length;return(t===void 0||r>=mr(t))&&(n===void 0||r<=mr(n))},numeric:({value:e,min:t,max:n})=>{const r=mr(e);return Number.isFinite(r)&&(t===void 0||r>=mr(t))&&(n===void 0||r<=mr(n))},email:({value:e})=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(String(e??"")),formatString:({value:e},t)=>ux(String(e??""),t),openUrl:({url:e},t)=>{typeof e=="string"&&t.openUrl?.(e)},and:({values:e})=>Array.isArray(e)?e.every(Ft):!1,or:({values:e})=>Array.isArray(e)?e.some(Ft):!1,not:({value:e})=>!Ft(e),...gx,...hx};function At(e,t){if(Yr(e))return Xr(t.data,ar(e.path,t.scope));if(Ta(e)){const n=t.functions?.[e.call]??Qu[e.call];if(!n)return;const r={};for(const[o,i]of Object.entries(e.args??{}))r[o]=At(i,t);return n(r,t)}if(typeof e=="string")return t.strings&&e.startsWith("$string.")?Mg(e,t.strings):e;if(Array.isArray(e))return e.map(n=>At(n,t));if(typeof e=="object"&&e!==null){const n={};for(const[r,o]of Object.entries(e))n[r]=At(o,t);return n}return e}function mx(e){return Wr(e)}const yx=e=>typeof e=="object"&&e!==null&&!Array.isArray(e);function Bs(e,t,n,r){if(Yr(e)||Ta(e))return At(e,n);if(ma(t))return e;if(t?.type==="array"&&t.items&&Array.isArray(e))return e.map(i=>Bs(i,t.items,n,r));const o=t?.type==="object"&&t.shape?r[t.shape]:void 0;if(o&&yx(e)){const i={};for(const[s,a]of Object.entries(e))i[s]=Bs(a,o.properties[s],n,r);return i}return At(e,n)}function bx(e,t,n,r){const o=mx(r),i=o.components[e],s={};for(const[a,l]of Object.entries(t)){const c=Bs(l,i?.props[a],n,o.defs);c!==void 0&&(s[a]=c)}return s}function Or(e,t,n=""){const r=e[t];return Yr(r)?ar(r.path,n):void 0}function vx(e,t){return e===void 0?!0:Ft(At(e,t))}function Ws(e){return Yr(e)||Ta(e)?!0:Array.isArray(e)?e.some(Ws):typeof e=="object"&&e!==null?Object.values(e).some(Ws):!1}function xx(e,t){if(!e||typeof e!="object")return null;const n={};for(const[r,o]of Object.entries(At(e,t)))o!==void 0&&(n[r]=o);return Object.keys(n).length?n:null}function $x(e){const t={};if(!e)return t;const n=e.role;n==="hidden"?t["aria-hidden"]="true":typeof n=="string"&&n!=="text"&&n!==""&&(t.role=n),e.label!==void 0&&e.label!==null&&e.label!==""&&(t["aria-label"]=String(e.label)),e.description!==void 0&&e.description!==null&&e.description!==""&&(t["aria-description"]=String(e.description)),(typeof e.level=="number"||typeof e.level=="string"&&e.level!=="")&&(t["aria-level"]=String(e.level));for(const[r,o]of[["expanded","aria-expanded"],["selected","aria-selected"],["pressed","aria-pressed"],["checked","aria-checked"]]){const i=e[r];(typeof i=="boolean"||i==="mixed")&&(t[o]=String(i))}e.current!==void 0&&e.current!==null&&e.current!==!1&&e.current!==""&&(t["aria-current"]=e.current===!0?"true":String(e.current));for(const[r,o]of[["valueNow","aria-valuenow"],["valueMin","aria-valuemin"],["valueMax","aria-valuemax"]]){const i=e[r];typeof i=="number"&&Number.isFinite(i)&&(t[o]=String(i))}return e.hidden===!0&&(t["aria-hidden"]="true"),e.autoFocus===!0&&(t["data-xui-autofocus"]=""),t}const yi=e=>`xui-n-${Ia(e)}`,Hs=e=>`xui-s-${Ia(e)}`;function Ia(e){return e.replace(/[^a-zA-Z0-9_-]/g,t=>`_${t.charCodeAt(0).toString(16)}_`)}function*Ko(e){yield e;for(const t of Object.values(e.slots??{}))yield*Ko(t);for(const t of e.children)yield*Ko(t)}function Ju(e){const t=[];if(!e)return t;const n=(r,o)=>{for(const[i,s]of Object.entries(o))i.startsWith("@")||i.startsWith(":")||Ws(s)&&t.push({name:`--xd-${t.length}`,block:r,key:i,value:s})};n("",e);for(const[r,o]of Object.entries(e))(r.startsWith("@")||r.startsWith(":"))&&typeof o=="object"&&o!==null&&n(r,o);return t}function Go(e){return Ia(e.replace(/^@media \(|\)$/g,"").replace(/: /,"-"))}function ep(e,t){const n=ua(e);if(!n)return null;if(n.feature==="orientation"||n.feature==="hover"||n.feature==="prefers-reduced-motion")return e;const r=qs(n.value,t);return r===null?null:`@media (${n.feature}: ${r}px)`}const Us=e=>e==="ltr"||e==="rtl";function wx(e,t,n){if(!e)return;let r=Us(e.direction)?e.direction:void 0;for(const[o,i]of Object.entries(e)){if(!o.startsWith("@")||typeof i!="object"||i===null)continue;const s=i.direction;if(!Us(s))continue;const a=ep(o,t);a&&n(a)&&(r=s)}return r}function qs(e,t){const n=Qt(e);if(n){if(n.group!=="breakpoint")return null;const o=t?.tokens.breakpoint?.[n.name];return typeof o=="number"?o:null}const r=parseFloat(e);return Number.isFinite(r)?r:null}const tp="\0";function np(e){const t=[],n=[];for(const r of e){const o=r.indexOf(tp);o<0?t.push(r):(t.push(r.slice(0,o)),n.push(r.slice(o+1)))}return`@layer xui-node{${t.join("")}}${n.length?`@layer xui-author{${n.join("")}}`:""}`}const pc=new WeakMap;function kx(e,t,n,r,o){const i=pc.get(e);if(i&&i.scope===n&&i.theme===r&&i.fonts===o)return i.chunk;const s=new Set,a=Ju(t),l=(f,b)=>{const m=a.filter(g=>g.block===f&&g.key in b);if(m.length===0)return b;const v={...b};for(const g of m)v[g.key]=`var(${g.name})`;return v},c=yi(e.id),d=l("",t);let u=fc(t,d,l,n,c,r,o,s);const p=e.recipe?.authored;if(p?.length){const f={};for(const m of p)m in t&&(f[m]=t[m]);const b=fc(f,d,l,n,c,r,o,s);b&&(u+=tp+b)}const h={css:u,queries:[...s]};return pc.set(e,{scope:n,theme:r,fonts:o,chunk:h}),h}function fc(e,t,n,r,o,i,s,a){const l=`${r} .${o}`,c=[],d=Co(n("",e),s,t);d.length&&c.push(xn(l,d)+Ao(l,e));for(const[p,h]of Object.entries(e)){if(!p.startsWith("@")||typeof h!="object"||h===null)continue;const f=Co(n(p,h),s,t);if(f.length===0)continue;const b=ua(p);if(!b)continue;if(Us(h.direction)){const v=ep(p,i);v&&a.add(v)}const m=v=>Ao(v,h);switch(b.feature){case"min-width":case"max-width":{const g=qs(b.value,i);if(g===null)break;const y=b.feature==="min-width"?">=":"<";c.push(`@container xui (width ${y} ${g}px){${xn(l,f)}${m(l)}}`);break}case"min-height":case"max-height":{const g=qs(b.value,i);if(g===null)break;const y=`@media (${b.feature}: ${g}px)`;a.add(y);const k=`${r}:where([data-xq~="${Go(y)}"]) .${o}`;c.push(xn(k,f)+m(k));break}case"orientation":a.add(p);const v=`${r}:where([data-xq~="${Go(p)}"]) .${o}`;c.push(xn(v,f)+m(v));break;case"hover":case"prefers-reduced-motion":c.push(`@media (${b.feature}: ${b.value}){${xn(l,f)}${m(l)}}`);break}}const u=[[":hover",`${l}:hover,${l}[data-xs~="hover"]`],[":focus-visible",`${l}:focus-visible,${l}[data-xs~="focus-visible"]`],[":pressed",`${l}:active,${l}[data-xs~="pressed"]`]];for(const[p,h]of u){const f=e[p];if(typeof f!="object"||f===null)continue;const b=Co(n(p,f),s,t);b.length&&c.push(xn(h,b)+Ao(h,f))}return c.join("")}function Sx(e,t,n,r=n?.fonts??{}){const o=`.${Hs(t)}`,i=new Map,s=new Set,a=new Set;for(const l of e)for(const c of Ko(l)){const d=c.style;if(!d||a.has(c.id))continue;a.add(c.id);const u=kx(c,d,o,n,r);u.css&&i.set(c.id,u.css);for(const p of u.queries)s.add(p)}return{css:np(i.values()),queries:[...s],chunks:i}}const Ji=e=>({chunks:e,css:np(e.values())});function Cx(e,t){const n=[],r=new Set;for(const i of e){let s=!1;for(const[l,c]of i.chunks)r.add(l),t.get(l)!==c&&(s=!0);if(!s){n.push(i);continue}const a=new Map;for(const l of i.chunks.keys()){const c=t.get(l);c!==void 0&&a.set(l,c)}a.size&&n.push(Ji(a))}const o=new Map;for(const[i,s]of t)r.has(i)||o.set(i,s);for(o.size&&n.push(Ji(o));n.length>1&&n[n.length-1].chunks.size>=n[n.length-2].chunks.size;){const i=n.pop(),s=n.pop();n.push(Ji(new Map([...s.chunks,...i.chunks])))}return n}const Re=Mt.qrScanner;function Ax(e,t,n,r){const o=a0(e,t),i=Bo(n),s=Bo(r),a=i!==null&&s!==null&&Dl(i)<Dl(s),l=a?r:n,c=a?n:r;if(!o)return{matrix:null,modules:0,path:"",plate:l,module:c};const d=Yy.quietZone;let u="";return o.rows.forEach((p,h)=>{let f=0;for(;f<p.length;){if(p[f]!=="1"){f+=1;continue}let b=f;for(;b<p.length&&p[b]==="1";)b+=1;u+=`M${f+d} ${h+d}h${b-f}v1h${f-b}z`,f=b}}),{matrix:o,modules:o.size+2*d,path:u,plate:l,module:c}}function Tx(e){let t=null;return n=>{typeof n!="string"||n===""||n===t||(t=n,e(n))}}const Ix=["tl","tr","bl","br"];function Ex(e,t){const n=Re.cornerLength,r=Re.cornerStroke/2,o=Math.max(0,Math.min(n-r,(Number.isFinite(t)?t:0)-r)),i=c=>e==="tr"||e==="br"?n-c:c,s=c=>e==="bl"||e==="br"?n-c:c,a=e==="tl"||e==="br"?1:0,l=c=>Math.round(c*100)/100;return`M${l(i(r))} ${l(s(n))}V${l(s(r+o))}A${l(o)} ${l(o)} 0 0 ${a} ${l(i(r+o))} ${l(s(r))}H${l(i(n))}`}function _x(e){const t=Bo(e);return t?`rgba(${t.r}, ${t.g}, ${t.b}, ${Math.round(t.a*Re.feedAlpha*1e3)/1e3})`:`color-mix(in srgb, ${e} ${Re.feedAlpha*100}%, transparent)`}function Mx(e){const t=Array.isArray(e)?e.filter(n=>typeof n=="string"&&n!==""):[];return t.length?t:["qr"]}function Vs(e){const t=typeof e=="number"?e:typeof e=="string"&&e.trim()!==""?Number(e):NaN;if(!Number.isFinite(t)||t<=0)return null;const n=Math.floor(t);return n<=0?null:n>99?"99+":String(n)}const Dx=24;function hc(e,t,n,r=Dx){return t>=e.left-r&&t<=e.right+r&&n>=e.top-r&&n<=e.bottom+r}class Px{constructor(t,n,r){this.fire=t,this.pressed=n,this.disabled=r}fire;pressed;disabled;by=null;pointerId=null;get active(){return this.by!==null}start(t,n=null){return this.by!==null||this.disabled()?!1:(this.by=t,this.pointerId=n,this.pressed(!0),this.fire("holdStart"),!0)}finish(t){return this.by===null?!1:(this.by=null,this.pointerId=null,this.pressed(!1),this.fire(t),!0)}pointerDown(t=null){return this.start("pointer",t)}pointerMove(t,n,r,o=null){this.by!=="pointer"||!this.samePointer(o)||hc(t,n,r)||this.finish("holdCancel")}pointerUp(t,n,r,o=null){this.by!=="pointer"||!this.samePointer(o)||this.finish(hc(t,n,r)?"holdEnd":"holdCancel")}pointerCancel(t=null){this.by==="pointer"&&this.samePointer(t)&&this.finish("holdCancel")}keyDown(t,n=!1){return t==="Escape"?this.finish("holdCancel"):t!==" "&&t!=="Enter"?!1:n||this.by!==null?this.by!==null:this.start(t)}keyUp(t){return this.by===null||this.by!==t?t===" "||t==="Enter":this.finish("holdEnd")}blur(){this.finish("holdCancel")}reset(){this.by!==null&&(this.by=null,this.pointerId=null,this.pressed(!1))}samePointer(t){return this.pointerId===null||t===null||t===this.pointerId}}const mn=jy,Ox=`@keyframes xui-shimmer{from{background-position:100% 0}to{background-position:0 0}}
22
+ [data-xui-shimmer]{--_spread:${mn.spreadPx}px;--_base:currentColor;--_highlight:oklch(from currentColor l c h / calc(alpha * ${mn.lightAlphaFactor}));background-image:linear-gradient(calc(90deg + ${mn.angleDeg}deg),var(--_base) calc(50% - var(--_spread)),color-mix(in oklab,var(--_highlight),var(--_base) 50%) calc(50% - var(--_spread) * .5),var(--_highlight) 50%,color-mix(in oklab,var(--_highlight),var(--_base) 50%) calc(50% + var(--_spread) * .5),var(--_base) calc(50% + var(--_spread)));background-repeat:no-repeat;background-size:calc(200% + var(--_spread) * 2) 100%;background-position:0 0;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;animation:xui-shimmer ${mn.durationMs}ms linear infinite}
23
+ [data-xui-mode="dark"] [data-xui-shimmer]{--_highlight:oklch(from currentColor min(1, max(${mn.highlightLightnessMin}, calc(l + ${mn.highlightLightnessBoost}))) c h / min(1, calc(alpha + ${mn.highlightAlphaBoost})))}
24
+ [dir="rtl"] [data-xui-shimmer]{animation-direction:reverse}`,gc=`.xui-surface [data-xui-shimmer]{animation:none !important;background-image:none !important;-webkit-text-fill-color:currentColor !important}.xui-surface [data-xui-c="Button"].xui-el:active,.xui-surface [data-xui-c="Button"][data-hold][data-xs~="pressed"].xui-el{scale:none !important}.xui-surface .xui-QrScanner-scanLine{animation:none !important}.xui-surface [data-xui-c="Skeleton"].xui-el:not([data-rows]),.xui-surface .xui-Skeleton-dot,.xui-surface .xui-Skeleton-bar{animation:none !important;opacity:${oy} !important}`,Fx=`${vy.map(ky).join(`
25
+ `)}
26
+ :is(${Iy.map(e=>`svg[data-icon="${e}"]`).join(",")}):dir(rtl){scale:-1 1}`,zx=`${$y}
27
+ @layer xui-base{
28
+ ${Fx}
29
+ .xui-surface{display:block;position:relative;font-family:var(--xui-font-sans);color:var(--xui-color-foreground);font-size:var(--xui-type-size-sm);line-height:var(--xui-type-lineHeight-sm);-webkit-font-smoothing:antialiased}
30
+ .xui-surface *{box-sizing:border-box}
31
+ .xui-container{container-type:inline-size;container-name:xui;width:100%;position:relative}
32
+ :where([data-xui-part]){border:0 solid transparent}
33
+ .xui-el{box-sizing:border-box;display:flex;flex-direction:row;position:relative;margin:0;padding:0;border:0 solid transparent;min-width:auto;min-height:auto;font:inherit;color:inherit;background:transparent;text-align:start;text-decoration:none;outline:none;appearance:none;-webkit-appearance:none}
34
+ button:where([data-xui-part],.xui-calendar-nav,.xui-table-sort,.xui-carousel-nav){margin:0;padding:0;border:0 solid transparent;background:transparent;color:inherit;font:inherit;appearance:none;-webkit-appearance:none}
35
+ .xui-el:focus-visible{outline:2px solid var(--xui-color-ring);outline-offset:1px}
36
+ .xui-leaf{flex-direction:column}
37
+ .xui-leaf>.xui-measured{flex-shrink:0}
38
+ [data-xui-c="Text"].xui-el{display:block;white-space:pre-wrap;overflow-wrap:anywhere}
39
+ [data-xui-c="Text"][data-lines="1"].xui-el{white-space:nowrap;overflow:clip;text-overflow:ellipsis;min-width:0}
40
+ [data-xui-c="Text"][data-clamp].xui-el{display:-webkit-box;-webkit-box-orient:vertical;overflow:clip}
41
+ [data-xui-c="Text"][data-xui-align="start"].xui-el{text-align:start}
42
+ [data-xui-c="Text"][data-xui-align="center"].xui-el{text-align:center}
43
+ [data-xui-c="Text"][data-xui-align="end"].xui-el{text-align:end}
44
+ [data-xui-c="Button"].xui-el,[data-xui-c="Toggle"].xui-el,[data-xui-c="Link"].xui-el{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;cursor:pointer;user-select:none;flex-shrink:0;transition:background-color var(--xui-motion-fast) var(--xui-ease-standard,ease),color var(--xui-motion-fast) var(--xui-ease-standard,ease),opacity var(--xui-motion-fast) var(--xui-ease-standard,ease),border-color var(--xui-motion-fast) var(--xui-ease-standard,ease),scale var(--xui-motion-fast) var(--xui-ease-standard,ease)}
45
+ [data-xui-c="Button"].xui-el:disabled,[data-xui-c="Toggle"].xui-el:disabled{cursor:default;pointer-events:none}
46
+ [data-xui-c="Link"].xui-el{text-decoration:underline;text-underline-offset:3px}
47
+ .xui-Button-icon,.xui-Button-spinner,.xui-Toggle-icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
48
+ .xui-Button-icon>svg,.xui-Toggle-icon>svg,.xui-Button-spinner>svg,.xui-icon>svg{width:100%;height:100%}
49
+ .xui-icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
50
+ [data-xui-c="Icon"].xui-el{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
51
+ [data-xui-c="Icon"].xui-el>svg{width:100%;height:100%}
52
+ [data-xui-c="Image"].xui-el{overflow:clip}
53
+ [data-xui-c="Image"].xui-el>img{display:block;position:absolute;inset:0;width:100%;height:100%}
54
+ .xui-image-placeholder{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:24px;background:repeating-linear-gradient(45deg,color-mix(in srgb,currentColor 12%,transparent) 0 6px,color-mix(in srgb,currentColor 4%,transparent) 6px 12px);color:var(--xui-color-mutedForeground);font-size:var(--xui-type-size-xs)}
55
+ [data-xui-c="Video"].xui-el{overflow:clip}
56
+ .xui-media-sizer{display:block;max-width:100%;height:0;flex:0 1 auto;visibility:hidden;pointer-events:none}
57
+ [data-xui-c="Video"].xui-el>video{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
58
+ [data-xui-c="AudioPlayer"].xui-el>audio{width:100%;display:block;flex-shrink:0}
59
+ [data-xui-c="Avatar"].xui-el{overflow:clip;flex-shrink:0;align-items:center;justify-content:center}
60
+ .xui-Avatar-image{width:100%;height:100%;object-fit:cover;border-radius:inherit}
61
+ .xui-Avatar-fallback{display:flex;align-items:center;justify-content:center;width:100%;height:100%;border-radius:inherit;text-transform:uppercase;user-select:none}
62
+ [data-xui-c="List"].xui-el{flex-direction:column;overflow:auto;min-height:0}
63
+ [data-xui-c="List"][data-r-direction="horizontal"].xui-el{flex-direction:row}
64
+ .xui-List-divider{flex-shrink:0;align-self:stretch;border-style:solid;border-width:0}
65
+ .xui-list-window{position:relative;width:100%;flex-shrink:0}
66
+ .xui-list-window[data-axis="horizontal"]{width:auto;align-self:flex-start}
67
+ .xui-list-item{position:absolute;left:0;right:0}
68
+ .xui-list-window[data-axis="horizontal"]>.xui-list-item{left:auto;right:auto;top:0}
69
+ .xui-list-row{display:flex;flex-direction:column;position:relative}
70
+ .xui-list-row[data-axis="horizontal"]{flex-direction:row}
71
+ .xui-list-gap{position:absolute;display:flex;pointer-events:none}
72
+ .xui-list-gap[data-axis="vertical"]{left:0;right:0;flex-direction:column;transform:translateY(-50%)}
73
+ .xui-list-gap[data-axis="horizontal"]{top:0;bottom:0;flex-direction:row;transform:translateX(-50%)}
74
+ .xui-list-gap[data-axis="horizontal"]:dir(rtl){transform:translateX(50%)}
75
+ .xui-List-section{display:flex;flex-direction:row;align-items:center;flex-shrink:0}
76
+ [data-xui-c="Resizable"].xui-el{flex-direction:row;align-items:stretch;min-width:0;min-height:0}
77
+ [data-xui-c="Resizable"][data-orientation="vertical"].xui-el{flex-direction:column}
78
+ .xui-Resizable-panel{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:clip}
79
+ .xui-Resizable-handle{position:relative;display:flex;align-items:center;justify-content:center;flex:0 0 var(--xui-control-hairline);min-width:0;min-height:0;touch-action:none;user-select:none;outline:none;z-index:1}
80
+ [data-orientation="horizontal"]>.xui-Resizable-handle{cursor:col-resize}
81
+ [data-orientation="vertical"]>.xui-Resizable-handle{cursor:row-resize}
82
+ .xui-Resizable-handle:focus-visible{outline:2px solid var(--xui-color-ring);outline-offset:1px}
83
+ .xui-resize-hit{position:absolute}
84
+ [data-orientation="horizontal"]>.xui-Resizable-handle>.xui-resize-hit{top:0;bottom:0;left:50%;transform:translateX(-50%)}
85
+ [data-orientation="vertical"]>.xui-Resizable-handle>.xui-resize-hit{left:0;right:0;top:50%;transform:translateY(-50%)}
86
+ .xui-Resizable-grip{flex:none;pointer-events:none}
87
+ [data-xui-c="Carousel"].xui-el{flex-direction:column;overflow:clip}
88
+ .xui-carousel-track{display:flex;flex-direction:row;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;gap:var(--xui-spacing-sm)}
89
+ .xui-carousel-track::-webkit-scrollbar{display:none}
90
+ .xui-Carousel-page{flex:0 0 100%;scroll-snap-align:start;display:flex;flex-direction:column}
91
+ .xui-carousel-dots{display:flex;justify-content:center;gap:var(--xui-spacing-xs);padding-top:var(--xui-spacing-sm)}
92
+ .xui-Carousel-indicator{width:6px;height:6px;border-radius:9999px;background:var(--xui-color-border);padding:0;cursor:pointer}
93
+ .xui-Carousel-indicator[data-xs~="selected"]{background:var(--xui-color-primary)}
94
+ [data-xui-c="Tabs"].xui-el{flex-direction:column}
95
+ .xui-Tabs-list{display:flex;flex-direction:row;align-self:flex-start;flex-shrink:0}
96
+ .xui-Tabs-list[data-fill="true"]{align-self:stretch}
97
+ .xui-Tabs-tab{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--xui-spacing-xs);cursor:pointer;white-space:nowrap;flex:0 0 auto;position:relative}
98
+ .xui-Tabs-list[data-fill="true"]>.xui-Tabs-tab{flex:1 1 0}
99
+ .xui-Tabs-tab-body{display:inline-flex;align-items:center;gap:var(--xui-spacing-xs)}
100
+ .xui-Tabs-close,.xui-Tabs-new{display:inline-flex;align-items:center;justify-content:center;align-self:center;flex-shrink:0;cursor:pointer;padding:0;border:0}
101
+ .xui-Tabs-close>svg{width:12px;height:12px}
102
+ .xui-Tabs-new>svg{width:16px;height:16px}
103
+ .xui-Tabs-indicator{position:absolute;left:0;right:0;bottom:0}
104
+ .xui-Tabs-content{display:flex;flex-direction:column;outline:none}
105
+ .xui-Tabs-content[hidden]{display:none}
106
+ [data-xui-c="Segmented"].xui-el{display:inline-flex;align-items:center;align-self:flex-start;flex-wrap:nowrap}
107
+ [data-xui-c="Segmented"][data-r-fill="true"].xui-el,[data-xui-c="Segmented"][data-r-variant="bar"].xui-el{align-self:stretch}
108
+ .xui-Segmented-item{display:inline-flex;align-items:center;justify-content:center;cursor:pointer;white-space:nowrap;flex:0 0 auto;min-width:0}
109
+ [data-xui-c="Segmented"][data-r-fill="true"].xui-el>.xui-Segmented-item,[data-xui-c="Segmented"][data-r-variant="bar"].xui-el>.xui-Segmented-item{flex:1 1 0}
110
+ [data-xui-c="Segmented"][data-r-variant="bar"].xui-el{align-items:stretch;height:var(--xui-control-tabBar);width:100%}
111
+ [data-xui-c="Segmented"][data-r-variant="bar"].xui-el>.xui-Segmented-item{flex-direction:column;gap:var(--xui-spacing-xxs);padding:var(--xui-spacing-xs) 0}
112
+ [data-xui-c="Segmented"][data-r-variant="bar"].xui-el .xui-Segmented-label{font-size:var(--xui-type-size-xs);line-height:var(--xui-type-lineHeight-xs);white-space:nowrap}
113
+ .xui-Segmented-icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
114
+ [data-xui-c="Segmented"][data-r-orientation="vertical"].xui-el{flex-direction:column;align-items:stretch}
115
+ [data-xui-c="Segmented"][data-r-orientation="vertical"][data-r-variant="bar"].xui-el{height:auto;width:auto;align-self:flex-start}
116
+ [data-xui-c="Segmented"][data-r-orientation="vertical"].xui-el>.xui-Segmented-item{flex:0 0 auto}
117
+ .xui-Segmented-icon{position:relative}
118
+ .xui-Segmented-badge{position:absolute;top:0;left:100%;transform:translate(-50%,-50%);box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;line-height:1;font-variant-numeric:tabular-nums;pointer-events:none}
119
+ [dir="rtl"] .xui-Segmented-badge{left:auto;right:100%;transform:translate(50%,-50%)}
120
+ .xui-Segmented-label{min-width:0;overflow:hidden;text-overflow:ellipsis}
121
+ [data-xui-c="Accordion"].xui-el{flex-direction:column}
122
+ .xui-Accordion-item{display:flex;flex-direction:column}
123
+ .xui-Accordion-trigger{display:flex;align-items:center;justify-content:space-between;width:100%;cursor:pointer;text-align:start}
124
+ .xui-Accordion-trigger>svg{transition:transform var(--xui-motion-fast) var(--xui-ease-standard,ease)}
125
+ .xui-Accordion-trigger[data-state="open"]>svg{transform:rotate(180deg)}
126
+ .xui-Accordion-content{display:flex;flex-direction:column;overflow:clip}
127
+ .xui-Accordion-content[hidden]{display:none}
128
+ .xui-Dialog-overlay,.xui-Drawer-overlay{position:fixed;inset:0;z-index:50}
129
+ .xui-Dialog-content{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:51;display:flex;flex-direction:column;width:calc(100% - 32px);max-width:480px;max-height:calc(100% - 32px);overflow:auto;outline:none}
130
+ .xui-Drawer-content{position:fixed;z-index:51;display:flex;flex-direction:column;overflow:auto;outline:none}
131
+ .xui-Drawer-content[data-side="bottom"]{left:0;right:0;bottom:0;max-height:85%}
132
+ .xui-Drawer-content[data-side="top"]{left:0;right:0;top:0;max-height:85%}
133
+ .xui-Drawer-content[data-side="left"]{left:0;top:0;bottom:0;width:min(85%,360px)}
134
+ .xui-Drawer-content[data-side="right"]{right:0;top:0;bottom:0;width:min(85%,360px)}
135
+ .xui-Drawer-handle{align-self:center;width:36px;height:4px;border-radius:9999px;background:var(--xui-color-border);flex-shrink:0}
136
+ .xui-overlay-head{display:flex;flex-direction:column;gap:var(--xui-spacing-xxs)}
137
+ .xui-overlay-body{display:flex;flex-direction:column;gap:var(--xui-spacing-md);min-height:0}
138
+ .xui-Dialog-footer,.xui-Drawer-footer{display:flex;flex-direction:row;justify-content:flex-end;flex-wrap:wrap}
139
+ .xui-Dialog-close{position:absolute;top:var(--xui-spacing-sm);inset-inline-end:var(--xui-spacing-sm);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
140
+ .xui-Dialog-close>svg{width:16px;height:16px}
141
+ .xui-Popover-content,.xui-Tooltip-content,.xui-Menu-content,.xui-Select-content,.xui-TimePicker-list{z-index:52;display:flex;flex-direction:column;outline:none;max-height:var(--radix-popper-available-height,320px);overflow:auto}
142
+ .xui-Tooltip-content{max-width:280px}
143
+ .xui-Menu-item,.xui-Select-item,.xui-TimePicker-item{display:flex;align-items:center;cursor:pointer;user-select:none;white-space:nowrap;outline:none}
144
+ .xui-Menu-item[data-disabled],.xui-Select-item[data-disabled],.xui-Select-item[aria-disabled="true"]{pointer-events:none}
145
+ .xui-Menu-item>svg,.xui-Select-item>svg{width:16px;height:16px;flex-shrink:0}
146
+ .xui-Menu-separator{align-self:stretch;flex-shrink:0}
147
+ .xui-Menu-label{display:flex;align-items:center}
148
+ .xui-Menu-trigger{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;flex-shrink:0;cursor:pointer}
149
+ [data-xui-overlay-root].xui-el{flex-direction:row;align-self:auto;align-items:flex-start}
150
+ [data-xui-overlay-root="stretch"].xui-el{align-items:stretch}
151
+ [data-xui-overlay-root="none"].xui-el{display:contents}
152
+ .xui-trigger{display:flex;flex-direction:row;align-items:stretch;flex:1 1 auto;min-width:0}
153
+ .xui-Tooltip-anchor{display:flex;flex-direction:row;flex:1 1 auto;min-width:0}
154
+ .xui-field-column{display:flex;flex-direction:column;gap:var(--xui-spacing-xs);min-width:0}
155
+ .xui-field-row{display:flex;flex-direction:row;align-items:flex-start;gap:var(--xui-spacing-sm);min-width:0}
156
+ .xui-field-text{display:flex;flex-direction:column;gap:var(--xui-spacing-xxs);min-width:0}
157
+ [data-xui-c="Input"].xui-el,[data-xui-c="Textarea"].xui-el,[data-xui-c="Select"].xui-el,[data-xui-c="DatePicker"].xui-el,[data-xui-c="DateRangePicker"].xui-el,[data-xui-c="TimePicker"].xui-el,[data-xui-c="NumberField"].xui-el,[data-xui-c="ChipInput"].xui-el,[data-xui-c="FileUpload"].xui-el,[data-xui-c="Slider"].xui-el,[data-xui-c="Radio"].xui-el,[data-xui-c="Composer"].xui-el{flex-direction:column;gap:var(--xui-spacing-xs);min-width:0}
158
+ [data-xui-c="Checkbox"].xui-el{flex-direction:row;align-items:flex-start;gap:var(--xui-spacing-sm);cursor:pointer}
159
+ [data-xui-c="Checkbox"].xui-el>.xui-field-text{flex:1 1 0%}
160
+ .xui-Checkbox-box{margin-top:max(0px,calc((var(--xui-type-lineHeight-sm) - var(--xui-control-checkbox)) / 2))}
161
+ [data-xui-c="Switch"].xui-el{flex-direction:row;align-items:center;cursor:pointer}
162
+ .xui-Switch-body{display:flex;flex-direction:column;gap:var(--xui-spacing-xxs);flex:1 1 0%;min-width:0}
163
+ .xui-Input-field,.xui-Textarea-field{display:block;width:100%;min-width:0;margin:0;outline:none;appearance:none;border:0 solid transparent;background:transparent;color:inherit;font:inherit}
164
+ .xui-Input-field::placeholder,.xui-Textarea-field::placeholder,.xui-Composer-field::placeholder{color:var(--xui-color-mutedForeground)}
165
+ .xui-Textarea-field{resize:vertical;line-height:var(--xui-type-lineHeight-sm);padding-top:var(--xui-spacing-sm);padding-bottom:var(--xui-spacing-sm)}
166
+ .xui-Input-label,.xui-Textarea-label,.xui-Select-label,.xui-DatePicker-label,.xui-DateRangePicker-label,.xui-TimePicker-label,.xui-NumberField-label,.xui-ChipInput-label,.xui-FileUpload-label,.xui-Slider-label,.xui-Radio-label,.xui-Checkbox-label,.xui-Switch-label{display:block;cursor:inherit}
167
+ .xui-Select-trigger,.xui-DatePicker-trigger,.xui-DateRangePicker-trigger,.xui-TimePicker-trigger{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:var(--xui-spacing-sm);width:100%;min-width:0;cursor:pointer;text-align:start;white-space:nowrap}
168
+ .xui-Select-trigger>span,.xui-DatePicker-trigger>span,.xui-DateRangePicker-trigger>span,.xui-TimePicker-trigger>span{overflow:clip;text-overflow:ellipsis;min-width:0;flex:1 1 auto}
169
+ .xui-Select-trigger>svg,.xui-DatePicker-trigger>svg,.xui-DateRangePicker-trigger>svg,.xui-TimePicker-trigger>svg{width:16px;height:16px;flex-shrink:0;opacity:.6}
170
+ .xui-Select-search{display:flex;width:100%;min-width:0;margin:0 0 var(--xui-spacing-xs);padding:var(--xui-spacing-xs) var(--xui-spacing-sm);outline:none;border:0;border-bottom:1px solid var(--xui-color-border);background:transparent;color:inherit;font:inherit}
171
+ .xui-Select-check{display:inline-flex;margin-inline-start:auto;flex-shrink:0}
172
+ .xui-Checkbox-box{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;padding:0;cursor:pointer}
173
+ .xui-Checkbox-check{display:inline-flex;align-items:center;justify-content:center}
174
+ .xui-Checkbox-check>svg{width:100%;height:100%}
175
+ [data-xui-c="Radio"][data-r-orientation="horizontal"].xui-el>.xui-radio-items{flex-direction:row;flex-wrap:wrap}
176
+ .xui-radio-items{display:flex;flex-direction:column;gap:inherit}
177
+ .xui-radio-row{display:flex;align-items:center;gap:var(--xui-spacing-sm);cursor:pointer}
178
+ .xui-Radio-item{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;padding:0;cursor:pointer}
179
+ .xui-ChoiceTiles-tile{display:flex;flex-direction:column;align-items:stretch;min-width:0;margin:0;font:inherit;color:inherit;text-align:start;appearance:none;-webkit-appearance:none;cursor:pointer;outline:none}
180
+ .xui-ChoiceTiles-tile:focus-visible{outline:2px solid var(--xui-color-ring);outline-offset:1px}
181
+ .xui-ChoiceTiles-tile:disabled{cursor:not-allowed}
182
+ .xui-ChoiceTiles-picture{position:relative;display:flex;align-items:center;justify-content:center;align-self:stretch;aspect-ratio:1.6;flex-shrink:0;min-width:0;overflow:clip;color:var(--xui-color-mutedForeground)}
183
+ .xui-ChoiceTiles-picture>img{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
184
+ .xui-ChoiceTiles-picture>svg{width:var(--xui-control-iconMd);height:var(--xui-control-iconMd);opacity:.6}
185
+ .xui-ChoiceTiles-label,.xui-ChoiceTiles-description{display:block;min-width:0;overflow-wrap:anywhere;white-space:pre-wrap}
186
+ .xui-ChoiceTiles-error{grid-column:1/-1;display:flex;flex-direction:column;gap:2px}
187
+ .xui-Switch-track{display:inline-flex;align-items:center;flex-shrink:0;padding:2px;cursor:pointer;transition:background-color var(--xui-motion-fast) var(--xui-ease-standard,ease)}
188
+ .xui-Switch-thumb{display:block;transition:transform var(--xui-motion-fast) var(--xui-ease-standard,ease);transform:translateX(0)}
189
+ .xui-Switch-track[data-state="checked"]>.xui-Switch-thumb{transform:translateX(var(--xui-switch-travel,12px))}
190
+ .xui-Switch-track[data-state="checked"]>.xui-Switch-thumb:dir(rtl){transform:translateX(calc(-1 * var(--xui-switch-travel,12px)))}
191
+ .xui-slider-head{display:flex;justify-content:space-between;gap:var(--xui-spacing-sm)}
192
+ .xui-Slider-track{position:relative;display:flex;align-items:center;width:100%;flex-grow:1;overflow:visible;touch-action:none;user-select:none}
193
+ .xui-slider-root{display:flex;align-items:center;width:100%;min-height:var(--xui-control-slider);touch-action:none;user-select:none;position:relative}
194
+ .xui-Slider-range{position:absolute;height:100%;left:0;border-radius:inherit}
195
+ .xui-Slider-thumb{display:block;cursor:grab;outline:none}
196
+ .xui-DatePicker-calendar,.xui-DateRangePicker-calendar{display:flex;flex-direction:column;gap:var(--xui-spacing-sm);padding:var(--xui-spacing-sm)}
197
+ .xui-calendar-head{display:flex;align-items:center;justify-content:space-between;gap:var(--xui-spacing-sm);font-weight:var(--xui-type-weight-medium)}
198
+ .xui-calendar-nav{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:var(--xui-radius-sm);cursor:pointer;padding:0}
199
+ .xui-calendar-nav:hover{background:var(--xui-color-accent)}
200
+ .xui-calendar-nav>svg{width:16px;height:16px}
201
+ .xui-calendar-grid{display:grid;grid-template-columns:repeat(7,32px);gap:2px}
202
+ .xui-calendar-weekday{display:flex;align-items:center;justify-content:center;height:24px;font-size:var(--xui-type-size-xs);color:var(--xui-color-mutedForeground)}
203
+ .xui-DatePicker-day,.xui-DateRangePicker-day{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:var(--xui-radius-sm);cursor:pointer;padding:0;font-size:var(--xui-type-size-sm)}
204
+ .xui-DatePicker-day:hover,.xui-DateRangePicker-day:hover{background:var(--xui-color-accent)}
205
+ .xui-DatePicker-day[data-xs~="selected"],.xui-DateRangePicker-day[data-xs~="selected"]{background:var(--xui-color-primary);color:var(--xui-color-primaryForeground)}
206
+ .xui-DatePicker-day[data-outside],.xui-DateRangePicker-day[data-outside]{opacity:.4}
207
+ .xui-DatePicker-day:disabled,.xui-DateRangePicker-day:disabled{opacity:.3;cursor:default;pointer-events:none}
208
+ .xui-Composer-field{display:block;width:100%;min-width:0;margin:0;padding:0;outline:none;border:0;background:transparent;color:inherit;font:inherit;resize:none;max-height:200px}
209
+ .xui-composer-bar{display:flex;align-items:center;justify-content:flex-end;gap:var(--xui-spacing-xs)}
210
+ .xui-Composer-attachment{display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
211
+ .xui-Composer-send{display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
212
+ .xui-Composer-send>svg,.xui-Composer-attachment>svg{width:16px;height:16px}
213
+ .xui-Composer-send:disabled{opacity:.5;pointer-events:none}
214
+ [data-xui-c="Ring"].xui-el,[data-xui-c="Spinner"].xui-el{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
215
+ [data-xui-c="Ring"].xui-el>svg,[data-xui-c="Spinner"].xui-el>svg{width:100%;height:100%;display:block}
216
+ .xui-Ring-label{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}
217
+ [data-xui-c="VoiceWave"].xui-el{position:relative;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
218
+ [data-xui-c="VoiceWave"].xui-el>svg{position:absolute;inset:0;width:100%;height:100%;display:block;overflow:visible;pointer-events:none}
219
+ .xui-VoiceWave-child{position:relative;display:flex;align-items:center;justify-content:center;flex-shrink:0}
220
+ .xui-VoiceWave-child[data-hidden]{visibility:hidden;pointer-events:none}
221
+ [data-xui-c="QrCode"].xui-el{flex-direction:column;align-items:center;flex-shrink:0}
222
+ .xui-QrCode-plate{display:block;flex-shrink:0;overflow:hidden}
223
+ .xui-QrCode-plate>svg{display:block;width:100%;height:100%}
224
+ .xui-QrCode-label{text-align:center}
225
+ [data-xui-c="QrScanner"].xui-el{flex-direction:column;align-items:center}
226
+ .xui-QrScanner-viewfinder{position:relative;display:block;width:100%;max-width:${Re.maxWidth}px;aspect-ratio:${Re.aspectRatio};flex-shrink:0;overflow:hidden;isolation:isolate}
227
+ .xui-QrScanner-feed{position:absolute;inset:0;display:block;overflow:hidden}
228
+ .xui-QrScanner-feed>video,.xui-QrScanner-feed>canvas,.xui-QrScanner-feed>img{display:block;width:100%;height:100%;object-fit:cover}
229
+ .xui-QrScanner-corner{position:absolute;width:${Re.cornerLength}px;height:${Re.cornerLength}px;overflow:visible;pointer-events:none}
230
+ .xui-QrScanner-corner[data-corner="tl"]{top:0;left:0}.xui-QrScanner-corner[data-corner="tr"]{top:0;right:0}.xui-QrScanner-corner[data-corner="bl"]{bottom:0;left:0}.xui-QrScanner-corner[data-corner="br"]{bottom:0;right:0}
231
+ .xui-QrScanner-scanLine{position:absolute;left:${Re.scanLineInset}px;right:${Re.scanLineInset}px;height:${Re.scanLineHeight}px;top:calc(50% - ${Re.scanLineHeight/2}px);border-radius:${Re.scanLineHeight/2}px;pointer-events:none;animation:xui-qr-sweep ${Re.sweepMs}ms var(--xui-ease-standard,ease) infinite alternate}
232
+ [data-xui-c="QrScanner"][data-r-disabled="true"].xui-el .xui-QrScanner-scanLine{animation:none}
233
+ .xui-QrScanner-placeholder{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--xui-spacing-xs);text-align:center;padding:var(--xui-spacing-md)}
234
+ .xui-QrScanner-placeholderIcon{display:inline-flex;width:${Re.placeholderIconSize}px;height:${Re.placeholderIconSize}px;flex-shrink:0}
235
+ .xui-QrScanner-placeholderIcon>svg{width:100%;height:100%}
236
+ .xui-QrScanner-hint{text-align:center}
237
+ @keyframes xui-qr-sweep{from{top:0}to{top:calc(100% - ${Re.scanLineHeight}px)}}
238
+ [data-xui-c="Button"][data-hold].xui-el{touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
239
+ [data-xui-c="Button"][data-hold][data-xs~="pressed"].xui-el{scale:var(--xui-scale-press,1)}
240
+ [data-xui-c="Spinner"].xui-el>svg,.xui-Button-spinner>svg{animation:xui-spin 0.8s linear infinite}
241
+ [data-xui-c="Skeleton"].xui-el:not([data-rows]),.xui-Skeleton-dot,.xui-Skeleton-bar{animation:xui-skeleton ${ny}ms ease-in-out infinite;opacity:${Al};flex-shrink:0}
242
+ [data-xui-c="Skeleton"][data-rows].xui-el{display:flex;flex-direction:column;align-self:stretch;flex-shrink:0;background:none;border-radius:0}
243
+ .xui-Skeleton-row{display:flex;flex-direction:row;align-items:center;flex-shrink:0}
244
+ .xui-Skeleton-row+.xui-Skeleton-row{border-top:var(--xui-border-hairline) solid var(--xui-color-border)}
245
+ .xui-Skeleton-dot{display:block}
246
+ .xui-Skeleton-bar{display:block}
247
+ .xui-Skeleton-bar[data-title]{flex-shrink:1;min-width:0}
248
+ @keyframes xui-skeleton{0%,100%{opacity:${Al}}50%{opacity:${ry}}}
249
+ [data-xui-c="SearchList"].xui-el{display:flex;flex-direction:column;overflow:hidden;min-width:0}
250
+ .xui-SearchList-head,.xui-Menu-head{display:flex;flex-direction:row;align-items:center;flex-shrink:0}
251
+ .xui-SearchList-search,.xui-Menu-search{display:flex;align-items:center;gap:8px;flex:1 1 auto;min-width:0;align-self:stretch}
252
+ .xui-SearchList-search>svg,.xui-Menu-search>svg{width:16px;height:16px;opacity:.6;flex-shrink:0}
253
+ .xui-SearchList-search>input,.xui-Menu-search>input{flex:1 1 auto;min-width:0;height:100%;padding:0;border:0;outline:none;background:transparent;color:inherit;font:inherit}
254
+ .xui-SearchList-count,.xui-Menu-count{flex-shrink:0;font-variant-numeric:tabular-nums}
255
+ .xui-SearchList-body,.xui-Menu-body{display:flex;flex-direction:column;position:relative;flex-shrink:1;min-height:0}
256
+ .xui-SearchList-list,.xui-Menu-list{display:flex;flex-direction:column;flex-shrink:1;min-height:0;overflow-y:auto}
257
+ .xui-SearchList-item{display:flex;flex-direction:row;align-items:center;flex-shrink:0;cursor:pointer;user-select:none;white-space:nowrap}
258
+ .xui-SearchList-item[aria-disabled="true"]{pointer-events:none}
259
+ .xui-SearchList-icon,.xui-SearchList-check{display:inline-flex;flex-shrink:0}
260
+ .xui-SearchList-icon>svg,.xui-SearchList-check>svg{width:100%;height:100%}
261
+ .xui-SearchList-identifier{flex-shrink:0}
262
+ .xui-SearchList-label{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
263
+ .xui-SearchList-fade,.xui-Menu-fade{position:absolute;left:0;right:0;bottom:0;height:${iy}px;pointer-events:none;background:linear-gradient(to bottom,transparent,var(--xui-color-popover)) !important}
264
+ .xui-menu-search{display:flex;flex-direction:column;min-width:240px}
265
+ .xui-menu-search .xui-Menu-item{flex-shrink:0}
266
+ [data-xui-c="Markdown"].xui-el{display:block;min-width:0;overflow-wrap:anywhere}
267
+ [data-xui-c="Markdown"][data-lines].xui-el{display:-webkit-box;-webkit-box-orient:vertical;overflow:clip}
268
+ .xui-md>:first-child{margin-top:0}
269
+ .xui-md>:last-child{margin-bottom:0}
270
+ .xui-Markdown-paragraph{margin:0 0 var(--xui-spacing-sm)}
271
+ .xui-Markdown-heading{margin:var(--xui-spacing-md) 0 var(--xui-spacing-xs);font-weight:var(--xui-type-weight-semibold);line-height:1.25}
272
+ .xui-md ul,.xui-md ol{margin:0 0 var(--xui-spacing-sm);padding-inline-start:1.4em}
273
+ .xui-md ul{list-style:disc}
274
+ .xui-md ol{list-style:decimal}
275
+ .xui-md li>ul,.xui-md li>ol{margin-bottom:0}
276
+ .xui-Markdown-listItem{margin:0}
277
+ .xui-md li[data-task]{list-style:none}
278
+ .xui-Markdown-listItem>input[type=checkbox]{appearance:none;display:inline-grid;place-content:center;vertical-align:-3px;width:16px;height:16px;margin:0;border:1px solid var(--xui-color-input);border-radius:4px;background:var(--xui-color-card)}
279
+ .xui-Markdown-listItem>input[type=checkbox]:checked{background:var(--xui-color-primary);border-color:var(--xui-color-primary)}
280
+ .xui-Markdown-listItem>input[type=checkbox]:checked::before{content:"";width:14px;height:14px;background:var(--xui-color-primaryForeground);mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat}
281
+ .xui-Markdown-code{font-family:var(--xui-font-mono);font-size:.925em;padding:0 .3em;border-radius:4px;background:var(--xui-color-muted)}
282
+ .xui-Markdown-codeBlock{display:block;font-family:var(--xui-font-mono);font-size:var(--xui-type-size-xs);white-space:pre;overflow:auto;padding:var(--xui-spacing-sm);margin:0 0 var(--xui-spacing-sm);border-radius:var(--xui-radius-sm);background:var(--xui-color-muted)}
283
+ .xui-Markdown-quote{margin:0 0 var(--xui-spacing-sm);padding-inline-start:var(--xui-spacing-md);border-inline-start:2px solid var(--xui-color-border);color:var(--xui-color-mutedForeground)}
284
+ .xui-Markdown-link{color:var(--xui-color-primary);text-decoration:underline;text-underline-offset:3px}
285
+ .xui-Markdown-table{border-collapse:collapse;margin:0 0 var(--xui-spacing-sm);width:100%}
286
+ .xui-Markdown-table th,.xui-Markdown-table td{border:1px solid var(--xui-color-border);padding:var(--xui-spacing-xs) var(--xui-spacing-sm);text-align:start}
287
+ .xui-Markdown-image{height:160px;margin:0 0 var(--xui-spacing-sm);overflow:hidden}
288
+ .xui-Markdown-image>img{display:block;width:100%;height:100%;object-fit:contain;object-position:0 0}
289
+ .xui-Markdown-image>img:dir(rtl){object-position:100% 0}
290
+ .xui-Markdown-imageAlt{color:var(--xui-color-mutedForeground)}
291
+ [data-xui-c="Chart"].xui-el{flex-direction:column;gap:var(--xui-spacing-xs);min-width:0}
292
+ .xui-Chart-legend,.xui-Chart-title{flex-shrink:0}
293
+ [data-xui-c="Chart"].xui-el>svg{width:100%;display:block}
294
+ .xui-Chart-legend{display:flex;flex-wrap:wrap;gap:var(--xui-spacing-sm);font-size:var(--xui-type-size-xs);color:var(--xui-color-mutedForeground)}
295
+ .xui-Chart-legend>span{display:inline-flex;align-items:center;gap:var(--xui-spacing-xxs)}
296
+ .xui-Chart-legend i{display:inline-block;width:8px;height:8px;border-radius:2px}
297
+ .xui-Chart-title{font-weight:var(--xui-type-weight-medium)}
298
+ [data-xui-c="TreeGuides"].xui-el{flex-direction:row;align-self:stretch;flex-shrink:0}
299
+ [data-xui-c="TreeGuides"].xui-el{overflow:visible}
300
+ .xui-tree-col{position:relative;align-self:stretch;flex-shrink:0;overflow:visible}
301
+ .xui-tree-col>.xui-TreeGuides-line{position:absolute;background:currentColor;display:block;padding:0;margin:0;box-sizing:border-box}
302
+ .xui-tree-col>.xui-TreeGuides-line[data-elbow]{background:none;border-style:solid;border-color:currentColor;border-top-width:0;border-right-width:0}
303
+ [data-xui-c="Unknown"].xui-el{flex-direction:column;gap:var(--xui-spacing-xxs)}
304
+ [data-xui-c="Box"][data-pressable="true"].xui-el{cursor:pointer}
305
+ .xui-layer{position:absolute;top:0;left:0;width:0;height:0;overflow:visible}
306
+ .xui-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
307
+
308
+ .xui-calendar-row{display:contents}
309
+ .xui-calendar-cell{display:flex;align-items:center;justify-content:center}
310
+ .xui-calendar-day-label{position:relative}
311
+ .xui-DatePicker-day[data-today]>.xui-calendar-day-label,.xui-DateRangePicker-day[data-today]>.xui-calendar-day-label{text-decoration:underline;text-underline-offset:3px}
312
+ .xui-DateRangePicker-day{position:relative}
313
+ .xui-DateRangePicker-range{position:absolute;inset:0;border-radius:inherit}
314
+ .xui-DateRangePicker-day[data-range]{background:var(--xui-color-accent)}
315
+ .xui-calendar-nav{color:inherit}
316
+ [data-xui-c="Form"].xui-el{flex-direction:column}
317
+ .xui-form-fields{display:contents;border:0;margin:0;padding:0;min-width:0}
318
+ .xui-Form-summary{display:flex;flex-direction:column}
319
+ .xui-form-summary-list{margin:0;padding-inline-start:1.2em}
320
+ .xui-Input-error,.xui-Textarea-error,.xui-NumberField-error,.xui-ChipInput-error,.xui-FileUpload-error,.xui-Select-error,.xui-Checkbox-error,.xui-Switch-error,.xui-Radio-error,.xui-DatePicker-error,.xui-DateRangePicker-error,.xui-TimePicker-error{display:flex;flex-direction:column;gap:2px}
321
+ [data-xui-numberfield]{display:flex;flex-direction:row;align-items:center;gap:var(--xui-spacing-xxs);min-width:0}
322
+ .xui-NumberField-input{flex:1 1 auto;min-width:0;width:100%;border:0;outline:none;background:transparent;color:inherit;font:inherit;padding:0;text-align:start;font-variant-numeric:tabular-nums}
323
+ .xui-NumberField-decrement,.xui-NumberField-increment,.xui-ChipInput-remove,.xui-FileUpload-remove,.xui-Toast-close,.xui-CodeBlock-copy{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;padding:0;cursor:pointer}
324
+ .xui-NumberField-decrement>svg,.xui-NumberField-increment>svg,.xui-ChipInput-remove>svg,.xui-FileUpload-remove>svg,.xui-Toast-close>svg,.xui-CodeBlock-copy>svg{width:16px;height:16px}
325
+ .xui-NumberField-decrement:disabled,.xui-NumberField-increment:disabled{opacity:.4;pointer-events:none}
326
+ .xui-NumberField-unit{flex-shrink:0}
327
+ [data-xui-chipfield]{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;cursor:text}
328
+ .xui-chip-list{display:contents;list-style:none;margin:0;padding:0}
329
+ .xui-ChipInput-chip{display:inline-flex;align-items:center;flex-shrink:0;outline:none}
330
+ .xui-ChipInput-input{flex:1 1 80px;min-width:80px;border:0;outline:none;background:transparent;color:inherit;font:inherit;padding:0;height:var(--xui-type-lineHeight-sm)}
331
+ .xui-ChipInput-suggestions{display:flex;flex-direction:column;border:1px solid var(--xui-color-border);border-radius:var(--xui-radius-md);background:var(--xui-color-popover);color:var(--xui-color-popoverForeground);padding:var(--xui-spacing-xs);box-shadow:var(--xui-shadow-md)}
332
+ .xui-ChipInput-suggestion{display:flex;align-items:center;padding:var(--xui-spacing-xs) var(--xui-spacing-sm);border-radius:var(--xui-radius-sm);cursor:pointer}
333
+ .xui-ChipInput-suggestion[data-active]{background:var(--xui-color-accent);color:var(--xui-color-accentForeground)}
334
+ .xui-FileUpload-dropzone{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;cursor:pointer;outline:none}
335
+ .xui-FileUpload-dropzone[aria-disabled="true"]{cursor:default}
336
+ .xui-FileUpload-icon{display:inline-flex}
337
+ .xui-FileUpload-icon>svg{width:100%;height:100%}
338
+ .xui-FileUpload-title{font-weight:var(--xui-type-weight-medium)}
339
+ .xui-file-list{display:flex;flex-direction:column;gap:var(--xui-spacing-xs);list-style:none;margin:0;padding:0}
340
+ .xui-FileUpload-file{display:flex;flex-direction:row;align-items:center}
341
+ .xui-FileUpload-fileIcon{display:inline-flex;flex-shrink:0;opacity:.7}
342
+ .xui-FileUpload-fileIcon>svg{width:16px;height:16px}
343
+ .xui-FileUpload-browse{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;flex-shrink:0;height:var(--xui-control-buttonSm)}
344
+ .xui-FileUpload-fileName{flex:1 1 auto;min-width:0;overflow:clip;text-overflow:ellipsis;white-space:nowrap}
345
+ [data-xui-c="CodeBlock"].xui-el{flex-direction:column;min-width:0;overflow:clip}
346
+ .xui-CodeBlock-header{display:flex;flex-direction:row;align-items:center;justify-content:space-between}
347
+ .xui-CodeBlock-copy>svg{width:12px;height:12px}
348
+ .xui-codeblock-scroll{overflow:auto;min-width:0;outline:none}
349
+ .xui-codeblock-scroll[data-max-lines]{max-height:calc(var(--xui-code-lines) * 1lh)}
350
+ .xui-codeblock-pre{margin:0;padding:0;font:inherit;white-space:pre;tab-size:2;min-width:max-content}
351
+ .xui-codeblock-scroll[data-wrap="true"]>.xui-codeblock-pre{white-space:pre-wrap;overflow-wrap:anywhere;min-width:0}
352
+ .xui-codeblock-pre>code{font:inherit;display:block}
353
+ .xui-CodeBlock-line{display:flex;flex-direction:row}
354
+ .xui-codeblock-text{flex:0 1 auto;min-width:0}
355
+ .xui-CodeBlock-gutter{display:flex;flex-direction:row;justify-content:flex-end;flex-shrink:0;user-select:none}
356
+ .xui-CodeBlock-lineNumber{display:block}
357
+ [data-xui-c="Table"].xui-el{flex-direction:column;min-width:0;overflow:auto}
358
+ .xui-Table-header{display:flex;flex-direction:column}
359
+ .xui-Table-header[data-sticky="true"]{position:sticky;top:0;z-index:1}
360
+ .xui-table-row,.xui-Table-row{display:grid;align-items:stretch;min-width:0}
361
+ .xui-table-body{display:flex;flex-direction:column;position:relative}
362
+ .xui-table-check{display:flex;align-items:center;justify-content:center;min-width:0}
363
+ .xui-Table-headerCell,.xui-Table-cell{display:flex;flex-direction:row;align-items:center;min-width:0;overflow:clip;text-overflow:ellipsis;white-space:nowrap;gap:var(--xui-spacing-xs)}
364
+ .xui-Table-headerCell[data-r-align="end"],.xui-Table-cell[data-r-align="end"]{justify-content:flex-end;text-align:end}
365
+ .xui-Table-headerCell[data-r-align="center"],.xui-Table-cell[data-r-align="center"]{justify-content:center;text-align:center}
366
+ .xui-Table-cell[data-type="number"]{font-variant-numeric:tabular-nums}
367
+ .xui-Table-cell>svg{width:16px;height:16px}
368
+ .xui-Table-row{outline:none}
369
+ .xui-Table-row:focus-visible{box-shadow:inset 0 0 0 2px var(--xui-color-ring)}
370
+ .xui-Table-row[tabindex]{cursor:pointer}
371
+ .xui-table-sort{display:inline-flex;align-items:center;gap:var(--xui-spacing-xxs);padding:0;margin:0;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer;min-width:0}
372
+ .xui-Table-headerCell[data-r-align="end"]>.xui-table-sort{flex-direction:row}
373
+ .xui-Table-sortIcon{display:inline-flex;flex-shrink:0}
374
+ .xui-Table-sortIcon>svg{width:100%;height:100%}
375
+ .xui-Table-empty{display:flex;justify-content:center}
376
+ .xui-table-badge{display:inline-flex;align-items:center;height:var(--xui-control-badge);padding:0 var(--xui-spacing-sm);border-radius:var(--xui-radius-full);background:var(--xui-color-secondary);color:var(--xui-color-secondaryForeground);font-size:var(--xui-type-size-xs)}
377
+ .xui-chart-plot{position:relative;width:100%;min-width:0;flex:1 1 0%;min-height:0;overflow:visible}
378
+ .xui-chart-svg{position:absolute;top:0;left:0;display:block;overflow:visible;outline:none}
379
+ .xui-chart-svg:focus-visible{outline:2px solid var(--xui-color-ring);outline-offset:2px;border-radius:var(--xui-radius-sm)}
380
+ .xui-Chart-grid{opacity:.7}
381
+ .xui-Chart-tooltip{display:flex;flex-direction:column;gap:2px;z-index:2;min-width:120px;white-space:nowrap}
382
+ .xui-chart-tip-row{display:inline-flex;align-items:center;gap:var(--xui-spacing-xxs)}
383
+ .xui-chart-tip-row>i{display:inline-block;width:8px;height:8px;border-radius:2px}
384
+ .xui-Chart-valueLabel{fill:currentColor}
385
+ [data-xui-c="Chart"][data-kind="sparkline"].xui-el{gap:0}
386
+ .xui-Image-fallback{display:flex;align-items:center;justify-content:center;position:absolute;inset:0}
387
+ .xui-Image-fallback>svg{width:var(--xui-control-iconLg);height:var(--xui-control-iconLg)}
388
+ [data-xui-c="Image"][data-state="loading"].xui-el{background:var(--xui-color-muted)}
389
+ .xui-carousel-controls{display:flex;align-items:center;justify-content:center}
390
+ .xui-carousel-controls>.xui-carousel-dots{padding-top:0}
391
+ .xui-carousel-nav{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;padding:0;cursor:pointer}
392
+ .xui-carousel-nav:disabled{pointer-events:none}
393
+ .xui-carousel-nav>svg{width:var(--xui-control-iconSm);height:var(--xui-control-iconSm)}
394
+ .xui-menu-label{flex:1 1 auto;min-width:0}
395
+ .xui-Menu-shortcut{margin-inline-start:auto;padding-inline-start:var(--xui-spacing-lg)}
396
+ .xui-Menu-check{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
397
+ .xui-Menu-check svg,.xui-Menu-submenuIndicator>svg{width:100%;height:100%}
398
+ .xui-Menu-submenuIndicator{display:inline-flex;margin-inline-start:auto;flex-shrink:0}
399
+ .xui-Select-searchbox{display:flex;align-items:center;gap:var(--xui-spacing-xs);padding-inline-start:var(--xui-spacing-sm)}
400
+ .xui-Select-searchbox>svg{width:16px;height:16px;opacity:.6;flex-shrink:0}
401
+ .xui-Select-searchbox>.xui-Select-search{margin:0;border-bottom:0;padding-inline-start:0}
402
+ .xui-Select-listbox,.xui-TimePicker-listbox{display:flex;flex-direction:column;outline:none;overflow:auto;max-height:280px}
403
+ .xui-Select-empty{display:flex}
404
+ .xui-TimePicker-list{min-width:var(--radix-popover-trigger-width)}
405
+ [data-xui-c="Toast"].xui-el{flex-direction:row;align-items:flex-start;width:min(360px,calc(100vw - 32px));pointer-events:auto}
406
+ .xui-Toast-icon{display:inline-flex;flex-shrink:0}
407
+ .xui-Toast-icon>svg{width:100%;height:100%}
408
+ .xui-toast-text{display:flex;flex-direction:column;gap:2px;flex:1 1 auto;min-width:0}
409
+ .xui-Toast-action{display:inline-flex;align-items:center;flex-shrink:0;cursor:pointer;white-space:nowrap}
410
+ .xui-toast-layer{position:fixed;bottom:var(--xui-spacing-lg);left:50%;transform:translateX(-50%);z-index:60;display:flex;flex-direction:column;align-items:center;gap:var(--xui-spacing-sm);pointer-events:none;width:max-content;max-width:calc(100vw - 32px)}
411
+ .xui-toast-layer>:nth-last-child(n+4){display:none}
412
+ .xui-Popover-content[data-open-on="hover"]{pointer-events:auto}
413
+ @keyframes xui-fade-out{to{opacity:0}}
414
+ @keyframes xui-pop-in{from{opacity:0;scale:var(--xui-scale-popoverFrom,.96)}}
415
+ @keyframes xui-pop-out{to{opacity:0}}
416
+ @keyframes xui-slide-bottom-in{from{translate:0 100%}}
417
+ @keyframes xui-slide-bottom-out{to{translate:0 100%}}
418
+ @keyframes xui-slide-top-in{from{translate:0 -100%}}
419
+ @keyframes xui-slide-top-out{to{translate:0 -100%}}
420
+ @keyframes xui-slide-left-in{from{translate:-100% 0}}
421
+ @keyframes xui-slide-left-out{to{translate:-100% 0}}
422
+ @keyframes xui-slide-right-in{from{translate:100% 0}}
423
+ @keyframes xui-slide-right-out{to{translate:100% 0}}
424
+ @keyframes xui-toast-in{from{opacity:0;translate:0 12px}}
425
+ @keyframes xui-accordion-open{from{height:0}to{height:var(--radix-accordion-content-height)}}
426
+ @keyframes xui-accordion-close{from{height:var(--radix-accordion-content-height)}to{height:0}}
427
+ .xui-Popover-content,.xui-Tooltip-content,.xui-Menu-content,.xui-Select-content,.xui-DatePicker-calendar,.xui-DateRangePicker-calendar,.xui-TimePicker-list{transform-origin:var(--radix-popper-transform-origin)}
428
+ .xui-Popover-content[data-state="open"],.xui-Tooltip-content[data-state$="open"],.xui-Menu-content[data-state="open"],.xui-Select-content[data-state="open"],.xui-DatePicker-calendar[data-state="open"],.xui-DateRangePicker-calendar[data-state="open"],.xui-TimePicker-list[data-state="open"],.xui-Dialog-content[data-state="open"]{animation:xui-pop-in var(--xui-motion-standard) var(--xui-ease-decelerate,ease-out)}
429
+ [data-xui-c="Button"].xui-el:active:not(:disabled){scale:var(--xui-scale-press,1)}
430
+ .xui-Popover-content[data-state="closed"],.xui-Tooltip-content[data-state="closed"],.xui-Menu-content[data-state="closed"],.xui-Select-content[data-state="closed"],.xui-DatePicker-calendar[data-state="closed"],.xui-DateRangePicker-calendar[data-state="closed"],.xui-TimePicker-list[data-state="closed"],.xui-Dialog-content[data-state="closed"]{animation:xui-pop-out var(--xui-motion-fast) var(--xui-ease-accelerate,ease-in) forwards}
431
+ .xui-Dialog-overlay[data-state="open"],.xui-Drawer-overlay[data-state="open"]{animation:xui-fade-in var(--xui-motion-standard) var(--xui-ease-decelerate,ease-out)}
432
+ .xui-Dialog-overlay[data-state="closed"],.xui-Drawer-overlay[data-state="closed"]{animation:xui-fade-out var(--xui-motion-standard) var(--xui-ease-accelerate,ease-in) forwards}
433
+ .xui-Drawer-content[data-side="bottom"][data-state="open"]{animation:xui-slide-bottom-in var(--xui-motion-slow) var(--xui-ease-decelerate,ease-out)}
434
+ .xui-Drawer-content[data-side="bottom"][data-state="closed"]{animation:xui-slide-bottom-out var(--xui-motion-standard) var(--xui-ease-accelerate,ease-in) forwards}
435
+ .xui-Drawer-content[data-side="top"][data-state="open"]{animation:xui-slide-top-in var(--xui-motion-slow) var(--xui-ease-decelerate,ease-out)}
436
+ .xui-Drawer-content[data-side="top"][data-state="closed"]{animation:xui-slide-top-out var(--xui-motion-standard) var(--xui-ease-accelerate,ease-in) forwards}
437
+ .xui-Drawer-content[data-side="left"][data-state="open"]{animation:xui-slide-left-in var(--xui-motion-slow) var(--xui-ease-decelerate,ease-out)}
438
+ .xui-Drawer-content[data-side="left"][data-state="closed"]{animation:xui-slide-left-out var(--xui-motion-standard) var(--xui-ease-accelerate,ease-in) forwards}
439
+ .xui-Drawer-content[data-side="right"][data-state="open"]{animation:xui-slide-right-in var(--xui-motion-slow) var(--xui-ease-decelerate,ease-out)}
440
+ .xui-Drawer-content[data-side="right"][data-state="closed"]{animation:xui-slide-right-out var(--xui-motion-standard) var(--xui-ease-accelerate,ease-in) forwards}
441
+ .xui-Accordion-content[data-state="open"]{animation:xui-accordion-open var(--xui-motion-standard) var(--xui-ease-standard,ease)}
442
+ .xui-Accordion-content[data-state="closed"]{animation:xui-accordion-close var(--xui-motion-standard) var(--xui-ease-standard,ease)}
443
+ .xui-Tabs-content[data-state="active"]{animation:xui-fade-in var(--xui-motion-fast) var(--xui-ease-decelerate,ease-out)}
444
+ [data-xui-c="Toast"][data-state="open"].xui-el{animation:xui-toast-in var(--xui-motion-standard) var(--xui-ease-decelerate,ease-out)}
445
+ [data-xui-c="Toast"][data-state="closed"].xui-el{animation:xui-fade-out var(--xui-motion-standard) var(--xui-ease-accelerate,ease-in) forwards}
446
+ .xui-accordion-title{display:inline-flex;align-items:baseline;gap:var(--xui-spacing-xs);min-width:0}
447
+ .xui-Collapsible-chevron.xui-el{transition:transform var(--xui-motion-fast) var(--xui-ease-standard,ease)}
448
+ ${Ox}
449
+ }
450
+ @media (prefers-reduced-motion: reduce){@layer xui-base{.xui-surface *,.xui-surface *::before,.xui-surface *::after{animation-duration:0ms !important;animation-iteration-count:1 !important;transition-duration:0ms !important;scroll-behavior:auto !important}${gc}}}
451
+ .xui-surface[data-xui-motion="reduce"] *,.xui-surface[data-xui-motion="reduce"] *::after{animation-duration:0ms !important;animation-iteration-count:1 !important;transition-duration:0ms !important}
452
+ ${gc.replace(/\.xui-surface /g,'.xui-surface[data-xui-motion="reduce"] ')}`,Ea=()=>typeof document<"u"&&document.baseURI?document.baseURI:void 0;function rp(){try{const e=Ea();if(!e)return[];const t=new URL(e).hostname.toLowerCase();return Nu(t)?[t]:[]}catch{return[]}}function _a(e){const t=rp();return t.length?[...e??[],...t.filter(n=>!(e??[]).includes(n))]:e}function Rx(e){const t=e.urls??{},n=t.baseUrl?t:{...t,baseUrl:e.media?.baseUrl??Ea()};return{...n,allowPrivate:_a(n.allowPrivate)}}function bi(e,t){return dv(Rx(e),t)}function op(e,t){if(typeof t!="string"||!t)return null;const n=e.resolveUrl?e.resolveUrl(t):t,r=e.mediaRequest?e.mediaRequest(n):Lu(n,{baseUrl:Ea(),...e.media,allowPrivate:_a(e.media?.allowPrivate)});return r&&vi(e,r.url)?r:null}function vi(e,t){return Gr({schemes:e.media?.schemes??zu,hosts:e.media?.hosts,allowPrivate:_a(e.media?.allowPrivate)},t).allowed}function Nx(e,t){const n=bi(e,t);n&&(e.openUrl?e.openUrl(n):typeof window<"u"&&window.open(n,"_blank","noopener,noreferrer"))}function Lx(e,t,n={}){return e?(typeof e=="function"?e(t):e[t])??n[t]:n[t]}const jx={"os-apple":[["path",{d:"M18.859 9.138c-0.105 0.081 -1.948 1.118 -1.948 3.428c0 2.672 2.345 3.618 2.415 3.639c-0.011 0.056 -0.373 1.294 -1.238 2.556c-0.77 1.107 -1.575 2.215 -2.798 2.215s-1.54 -0.71 -2.953 -0.71c-1.378 0 -1.867 0.735 -2.985 0.735s-1.902 -1.027 -2.798 -2.285c-1.041 -1.48 -1.881 -3.779 -1.881 -5.959c0 -3.498 2.275 -5.354 4.514 -5.354c1.188 0 2.183 0.78 2.929 0.78c0.71 0 1.821 -0.83 3.175 -0.83c0.513 0 2.355 0.046 3.568 1.786m-4.212 -3.27c0.559 -0.664 0.956 -1.586 0.956 -2.507c0 -0.127 -0.011 -0.257 -0.035 -0.362c-0.911 0.035 -1.993 0.608 -2.647 1.364c-0.513 0.584 -0.991 1.505 -0.991 2.44c0 0.141 0.025 0.281 0.035 0.327c0.056 0.011 0.151 0.025 0.246 0.025c0.816 -0.004 1.842 -0.548 2.436 -1.287",fill:"currentColor",stroke:"none",key:"mark"}]],"os-linux":[["path",{d:"M19.471 17.752c-0.12 -0.109 -0.299 -0.19 -0.418 -0.25c-0.179 -0.07 -0.299 -0.162 -0.418 -0.267c-0.179 -0.109 -0.239 -0.232 -0.299 -0.362l-0.06 -0.439c-0.06 -0.281 -0.12 -0.461 -0.179 -0.541s-0.12 -0.13 -0.239 -0.13c0.12 -0.387 0.179 -0.787 0.179 -1.199c0 -0.83 -0.179 -1.603 -0.478 -2.201c-0.239 -0.654 -0.654 -1.311 -1.192 -1.905c-0.239 -0.359 -0.478 -0.654 -0.654 -0.953c-0.179 -0.239 -0.299 -0.478 -0.418 -0.714c-0.12 -0.179 -0.179 -0.418 -0.239 -0.654c-0.06 -0.299 -0.06 -0.538 -0.12 -0.714c0 -0.179 -0.06 -0.418 -0.06 -0.773c-0.06 -0.418 -0.06 -0.714 -0.12 -1.012c-0.06 -0.478 -0.179 -0.833 -0.299 -1.192c-0.179 -0.299 -0.359 -0.598 -0.598 -0.773c-0.179 -0.179 -0.418 -0.299 -0.654 -0.418c-0.299 -0.12 -0.538 -0.179 -0.714 -0.179C12.316 3 12.137 3 11.961 3c-0.478 0 -0.893 0.06 -1.252 0.179s-0.598 0.359 -0.773 0.598c-0.204 0.239 -0.341 0.538 -0.418 0.833c-0.077 0.299 -0.113 0.598 -0.113 1.012c0 0.538 0.028 1.132 0.088 1.73c0.067 0.598 0.095 0.953 0.095 1.072c0 0.239 -0.06 0.538 -0.172 0.773s-0.316 0.538 -0.626 0.893L8.344 10.629c-0.359 0.418 -0.584 0.833 -0.679 1.252c-0.12 0.478 -0.225 0.833 -0.327 1.072c-0.095 0.239 -0.225 0.478 -0.401 0.798l-0.207 0.376c-0.214 0.401 -0.316 0.703 -0.316 0.918c-0.011 0.035 -0.011 0.095 -0.011 0.162c0 0.095 0.025 0.172 0.07 0.232c-0.042 0.049 -0.07 0.095 -0.095 0.137c-0.011 0.028 -0.025 0.067 -0.035 0.102c-0.011 0.025 -0.025 0.077 -0.053 0.148c-0.025 0.07 -0.06 0.148 -0.102 0.246c-0.127 0.07 -0.207 0.102 -0.264 0.102H5.236c-0.13 0 -0.257 0.077 -0.387 0.225s-0.19 0.359 -0.19 0.619c0 0.084 0.025 0.281 0.07 0.591c0.049 0.316 0.07 0.496 0.07 0.555s-0.011 0.12 -0.025 0.179c-0.011 0.067 -0.035 0.12 -0.06 0.172c-0.025 0.06 -0.049 0.113 -0.084 0.165c-0.025 0.06 -0.06 0.12 -0.102 0.186c-0.042 0.06 -0.084 0.127 -0.123 0.19c-0.042 0.109 -0.06 0.211 -0.06 0.306s0.042 0.179 0.123 0.253c0.088 0.074 0.207 0.137 0.359 0.183c0.155 0.056 0.299 0.095 0.422 0.123c0.137 0.028 0.292 0.056 0.461 0.081c0.172 0.028 0.281 0.049 0.327 0.06c0.482 0.109 1.037 0.274 1.663 0.489c0.619 0.225 1.079 0.341 1.371 0.341c0.464 0 0.798 -0.186 1.097 -0.541v0.018c0.418 -0.207 1.012 -0.313 1.789 -0.313c0.478 0 1.252 0.056 2.204 0.172c0.179 0.362 0.478 0.601 0.953 0.728l0.418 0.049c0.239 0 0.478 -0.053 0.654 -0.162c0.179 -0.102 0.418 -0.267 0.654 -0.499l0.598 -0.506c0.299 -0.253 0.598 -0.468 0.893 -0.643c0.359 -0.169 0.598 -0.288 0.714 -0.348c0.179 -0.053 0.299 -0.137 0.418 -0.257c0.12 -0.109 0.179 -0.257 0.179 -0.461c0.004 -0.134 -0.056 -0.257 -0.172 -0.376M15.364 11.438c0.299 0.06 0.538 0.239 0.773 0.598c0.239 0.359 0.359 0.773 0.359 1.371c0 0.429 -0.06 0.918 -0.239 1.473c0.06 0.011 0.179 0.025 0.239 0.028c0.06 0 0.06 0 0.12 0.011c0 0 0.06 0 0.12 0.007c0.359 0.049 0.654 0.162 0.833 0.341c0.179 0.172 0.239 0.327 0.239 0.461c0 0.053 0 0.077 -0.06 0.077c0 0 -0.06 -0.035 -0.06 -0.113c-0.06 -0.077 -0.12 -0.162 -0.179 -0.25c-0.06 -0.095 -0.179 -0.179 -0.418 -0.257c-0.179 -0.084 -0.478 -0.127 -0.773 -0.127c-0.179 0 -0.299 0.053 -0.478 0.155c-0.12 0.102 -0.179 0.204 -0.299 0.302c-0.06 0.102 -0.12 0.155 -0.12 0.155c-0.06 0 -0.06 -0.028 -0.06 -0.084c0.179 -0.345 0.418 -0.566 0.654 -0.661c0.239 -0.633 0.299 -1.125 0.299 -1.459c0 -0.418 -0.06 -0.773 -0.239 -1.192c-0.179 -0.359 -0.478 -0.598 -0.773 -0.714c0.004 -0.063 0.004 -0.063 0.063 -0.123M12.084 5.848q0.269 -0.179 0.538 -0.179c0.239 0 0.418 0.06 0.598 0.239c0.12 0.179 0.179 0.418 0.179 0.773c0 0.299 -0.06 0.538 -0.12 0.893c-0.12 -0.06 -0.179 -0.12 -0.299 -0.12c-0.06 0 -0.12 -0.06 -0.12 -0.06q0.359 -0.09 0.359 -0.538c0 -0.179 -0.06 -0.299 -0.12 -0.478c-0.12 -0.12 -0.239 -0.239 -0.418 -0.239q-0.179 0 -0.359 0.179c-0.12 0.179 -0.12 0.299 -0.12 0.538c0 0.12 0 0.239 0.06 0.299c-0.06 0 -0.12 -0.06 -0.179 -0.06c-0.12 -0.239 -0.179 -0.478 -0.179 -0.773c0 -0.176 0.06 -0.295 0.179 -0.475m0.657 0.657c0 -0.06 -0.06 -0.06 -0.06 -0.12c0.06 0 0.12 -0.06 0.12 -0.06c0.06 0 0.12 0.06 0.179 0.12s0.06 0.12 0.06 0.179s0 0.12 0.06 0.179h-0.12c-0.06 -0.179 -0.12 -0.299 -0.239 -0.299m-0.179 0.893c0.598 0.179 0.893 0.359 0.953 0.478c0.06 0 0.06 0.06 0.06 0.12c0 0.179 -0.12 0.299 -0.239 0.418l-0.538 0.359c-0.598 0.418 -1.072 0.654 -1.491 0.654c-0.299 0 -0.598 -0.12 -0.833 -0.359l-0.359 -0.359c-0.06 -0.06 -0.12 -0.179 -0.179 -0.299c0.359 0.299 0.773 0.478 1.192 0.478c0.478 0 1.072 -0.239 1.849 -0.773c0 0 0 -0.06 -0.06 -0.06v-0.12c-0.773 0.598 -1.371 0.833 -1.849 0.833c-0.359 0 -0.714 -0.179 -1.072 -0.478c-0.06 -0.12 -0.12 -0.179 -0.12 -0.179c0 -0.239 0.239 -0.478 0.598 -0.714c0.418 -0.239 0.714 -0.359 0.893 -0.359c0.243 0 0.657 0.12 1.195 0.359m-2.264 -0.893v-0.12c0.06 0 0.06 -0.06 0.06 -0.06c0.179 0 0.299 0.179 0.299 0.478h-0.12c0 -0.12 -0.06 -0.179 -0.06 -0.299Zm-0.359 -0.418c0.06 -0.179 0.239 -0.299 0.418 -0.299c0.239 0 0.359 0.12 0.478 0.299s0.12 0.359 0.12 0.538c0 0.239 0 0.359 -0.06 0.359v0.06h-0.06v-0.12c0 -0.179 -0.06 -0.359 -0.12 -0.538c-0.12 -0.12 -0.179 -0.179 -0.299 -0.179s-0.239 0.06 -0.299 0.179c-0.12 0.12 -0.12 0.239 -0.12 0.418c0 0.299 0.06 0.478 0.299 0.598c-0.06 0.06 -0.12 0.06 -0.179 0.12c-0.239 -0.239 -0.323 -0.478 -0.323 -0.714c0 -0.302 0.025 -0.482 0.144 -0.721m0.053 14.126c-0.285 0.359 -0.633 0.541 -1.048 0.541c-0.162 0 -0.601 -0.137 -1.322 -0.401s-1.361 -0.439 -1.912 -0.52v-0.004c-0.721 -0.095 -1.114 -0.257 -1.174 -0.489c0 -0.137 0.077 -0.327 0.225 -0.584c0.148 -0.246 0.221 -0.489 0.221 -0.735c0 -0.127 -0.025 -0.302 -0.07 -0.524c-0.049 -0.225 -0.07 -0.387 -0.07 -0.482c0 -0.207 0.077 -0.404 0.225 -0.577c0.113 -0.06 0.327 -0.095 0.643 -0.095h0.162c0.077 -0.007 0.13 -0.007 0.162 -0.007c0.137 -0.028 0.239 -0.06 0.299 -0.095c0.06 -0.042 0.095 -0.127 0.113 -0.25c0.011 -0.13 0.06 -0.257 0.144 -0.369s0.257 -0.197 0.506 -0.246c0.197 0.049 0.376 0.137 0.531 0.274c0.162 0.137 0.285 0.274 0.362 0.411c0.088 0.127 0.204 0.302 0.327 0.538c0.13 0.232 0.232 0.404 0.316 0.517l0.404 0.541c0.679 0.865 1.02 1.575 1.02 2.141c-0.004 0.158 -0.004 0.295 -0.063 0.411m1.311 -1.167c-0.714 0 -1.252 -0.165 -1.501 -0.506c-0.127 -0.232 -0.186 -0.352 -0.186 -0.359c0 -0.028 0.007 -0.042 0.018 -0.042c0.137 0 0.299 -0.07 0.418 -0.214c0.179 -0.137 0.239 -0.264 0.239 -0.387c0 -0.239 -0.359 -0.643 -1.03 -1.227l-0.633 -0.411c-0.499 -0.362 -0.816 -0.65 -0.949 -0.847c-0.12 -0.204 -0.186 -0.436 -0.186 -0.703c0 -0.362 0.13 -0.858 0.38 -1.396c0.25 -0.598 0.461 -1.012 0.633 -1.192l0.06 0.06c0.049 0 0.077 0 0.088 0.06c-0.207 0.239 -0.422 0.598 -0.636 1.132c-0.221 0.538 -0.327 0.988 -0.327 1.399c0 0.334 0.13 0.591 0.401 0.773c-0.025 -0.144 -0.035 -0.285 -0.035 -0.422c0 -0.686 0.246 -1.515 0.728 -2.408l0.446 -0.893c0.011 0 0.028 -0.12 0.053 -0.239c0.018 -0.179 0.109 -0.418 0.274 -0.833l0.376 -0.714c0.12 -0.239 0.179 -0.478 0.179 -0.654l0.359 0.299c0.179 0.239 0.478 0.299 0.833 0.299c0.418 0 0.893 -0.179 1.491 -0.598l0.538 -0.418c0.12 0.239 0.239 0.538 0.359 0.833c0.179 0.299 0.299 0.598 0.478 0.893c0 0.299 0.06 0.478 0.12 0.714c0.12 0.179 0.179 0.359 0.299 0.538l0.359 0.538c0.12 0.239 0.239 0.538 0.299 0.893c0.12 0.418 0.12 0.865 0.12 1.406c0 0.359 0 0.756 -0.06 1.216c-0.12 -0.088 -0.239 -0.13 -0.359 -0.13c-0.179 0 -0.299 0.088 -0.418 0.281c-0.12 0.19 -0.179 0.482 -0.179 0.868v0.221c0.06 0.077 0.06 0.264 0.06 0.559c-0.78 1.076 -1.793 1.61 -3.104 1.61m7.991 -0.503c-0.12 0.095 -0.239 0.165 -0.418 0.214c-0.12 0.053 -0.359 0.148 -0.598 0.292c-0.299 0.144 -0.538 0.309 -0.773 0.499l-1.012 0.875c-0.06 0.028 -0.06 0.06 -0.179 0.102c-0.06 0.049 -0.12 0.088 -0.179 0.13c-0.06 0.049 -0.179 0.088 -0.299 0.113q-0.179 0.053 -0.359 0.053c-0.478 0 -0.893 -0.225 -1.132 -0.675v-0.014l0.12 -0.661c0 -0.236 0 -0.446 0.06 -0.633c0 -0.186 0.06 -0.302 0.06 -0.359v-1.853c0 -0.626 0.12 -0.935 0.418 -0.935c0.12 0 0.179 0.053 0.299 0.155c0.06 0.25 0.12 0.471 0.239 0.661c0.179 0.257 0.418 0.387 0.893 0.387c0.12 0 0.299 -0.053 0.478 -0.155c0.12 -0.102 0.299 -0.207 0.359 -0.327c0.12 -0.12 0.239 -0.232 0.359 -0.334c0.06 -0.102 0.179 -0.155 0.239 -0.155s0.06 0.007 0.06 0.025c0.06 0.067 0.06 0.186 0.12 0.345l0.06 0.345c0.06 0.281 0.179 0.496 0.299 0.65c0.179 0.162 0.299 0.257 0.418 0.299s0.239 0.109 0.359 0.204s0.239 0.225 0.239 0.401c-0.007 0.148 -0.067 0.264 -0.127 0.352m-7.805 -11.204s-0.06 -0.06 -0.06 -0.12s0 -0.06 0.06 -0.06l0.12 0.06c0.06 0.06 0.12 0.12 0.12 0.179s-0.06 0.06 -0.06 0.06h-0.06c-0.06 0 -0.06 -0.06 -0.12 -0.12m-0.598 0.06c0 -0.06 0 -0.12 0.06 -0.179c0.12 0 0.179 -0.06 0.179 -0.06c0.06 0 0.06 0.06 0.06 0.06c0 0.06 -0.06 0.12 -0.179 0.239h-0.06c-0.06 0 -0.06 0 -0.06 -0.06",fill:"currentColor",stroke:"none",key:"mark"}]],"os-windows":[["path",{d:"M3 3h8.532v8.529H3Zm9.468 0H21v8.529H12.468ZM3 12.468h8.532V21H3Zm9.468 0H21V21H12.468",fill:"currentColor",stroke:"none",key:"mark"}]],"progress-1-4":[["circle",{cx:"12",cy:"12",r:"10",key:"ring"}],["path",{d:"M12 12 L12 6 A6 6 0 0 1 18 12 Z",fill:"currentColor",stroke:"none",key:"wedge"}]],"progress-1-5":[["circle",{cx:"12",cy:"12",r:"10",key:"ring"}],["path",{d:"M12 12 L12 6 A6 6 0 0 1 17.7063 10.1459 Z",fill:"currentColor",stroke:"none",key:"wedge"}]],"progress-2-4":[["circle",{cx:"12",cy:"12",r:"10",key:"ring"}],["path",{d:"M12 12 L12 6 A6 6 0 0 1 12 18 Z",fill:"currentColor",stroke:"none",key:"wedge"}]],"progress-2-5":[["circle",{cx:"12",cy:"12",r:"10",key:"ring"}],["path",{d:"M12 12 L12 6 A6 6 0 0 1 15.5267 16.8541 Z",fill:"currentColor",stroke:"none",key:"wedge"}]],"progress-3-4":[["circle",{cx:"12",cy:"12",r:"10",key:"ring"}],["path",{d:"M12 12 L12 6 A6 6 0 1 1 6 12 Z",fill:"currentColor",stroke:"none",key:"wedge"}]],"progress-3-5":[["circle",{cx:"12",cy:"12",r:"10",key:"ring"}],["path",{d:"M12 12 L12 6 A6 6 0 1 1 8.4733 16.8541 Z",fill:"currentColor",stroke:"none",key:"wedge"}]],"progress-4-5":[["circle",{cx:"12",cy:"12",r:"10",key:"ring"}],["path",{d:"M12 12 L12 6 A6 6 0 1 1 6.2937 10.1459 Z",fill:"currentColor",stroke:"none",key:"wedge"}]]},U=(e,t="")=>e==null?t:typeof e=="object"?JSON.stringify(e):String(e),ue=(e,t=0)=>typeof e=="number"&&Number.isFinite(e)?e:typeof e=="string"&&e.trim()!==""&&Number.isFinite(Number(e))?Number(e):t,re=e=>e===!0||e==="true",Lt=e=>Array.isArray(e)?e:[],Le=e=>Array.isArray(e)?e.filter(t=>t!==null&&typeof t=="object"&&!Array.isArray(t)):[];function $r(e,t,n,r){return e.strings[t]!==void 0?e.t(t,n):r()}const mc=["byte","kilobyte","megabyte","gigabyte"],yc=new Map;function Bx(e,t){let n=yc.get(t);n||(n=mc.map(i=>{try{return new Intl.NumberFormat(t,{style:"unit",unit:i,unitDisplay:"short",maximumFractionDigits:1})}catch{return new Intl.NumberFormat(t,{maximumFractionDigits:1})}}),yc.set(t,n));let r=0,o=Math.max(0,e);for(;o>=1024&&r<mc.length-1;)o/=1024,r++;return n[r].format(o)}function Wx(e,t){const n=e.split(",").map(i=>i.trim().toLowerCase()).filter(Boolean);if(n.length===0)return!0;const r=t.name.toLowerCase(),o=(t.type||"").toLowerCase();return n.some(i=>i.startsWith(".")?r.endsWith(i):i.endsWith("/*")?o.startsWith(i.slice(0,-1)):o===i)}function Hx(e,t=pi.invalidValue){const n=[];for(const r of Le(e))r&&typeof r=="object"&&"condition"in r&&(r.condition===!1||r.condition===null||r.condition===void 0||r.condition==="")&&n.push(U(r.message,t));return n}const Ux=rt.builtinIcons;function qx(e){return Ux[e]??"ui-icon-placeholder"}function Fr(...e){return e.filter(Boolean).join(" ")||void 0}function Vx(e,t,n,r){const o=e.map((l,c)=>c);if(!t||!n)return o;const i=new Intl.Collator(r,{numeric:!0,sensitivity:"base"}),s=t.direction==="desc"?-1:1,a=l=>l==null||l==="";return o.sort((l,c)=>{const d=e[l]?.[t.key],u=e[c]?.[t.key];if(a(d)&&a(u))return l-c;if(a(d))return 1;if(a(u))return-1;let p;return typeof d=="number"&&typeof u=="number"?p=d-u:n.type==="number"?p=ue(d)-ue(u):n.type==="date"?p=new Date(String(d)).getTime()-new Date(String(u)).getTime():typeof d=="boolean"||typeof u=="boolean"?p=+!!d-+!!u:p=i.compare(String(d),String(u)),p===0?l-c:p*s})}const pt=e=>`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`,qt=e=>{const t=/^(\d{4})-(\d{2})-(\d{2})/.exec(e);return t?new Date(Number(t[1]),Number(t[2])-1,Number(t[3])):null},Nn=(e,t)=>new Date(e.getFullYear(),e.getMonth(),e.getDate()+t),es=(e,t)=>{const n=new Date(e.getFullYear(),e.getMonth()+t+1,0).getDate();return new Date(e.getFullYear(),e.getMonth()+t,Math.min(e.getDate(),n))},sn=(e,t)=>!!(e&&t&&pt(e)===pt(t));function Kx(e,t){const n=new Date(e.getFullYear(),e.getMonth(),1),r=(n.getDay()-t+7)%7;return Array.from({length:42},(o,i)=>new Date(n.getFullYear(),n.getMonth(),1-r+i))}function Gx(e,t,n,r){const o=e.filter(s=>s.getMonth()===t.getMonth()&&s.getFullYear()===t.getFullYear()&&!r(s));if(o.some(s=>sn(s,n)))return n;let i=null;for(const s of o)(!i||Math.abs(s.getTime()-n.getTime())<Math.abs(i.getTime()-n.getTime()))&&(i=s);return i}const zr=150;class Yx{value;revision=0;pending=!1;focused=!1;acked=0;timer=null;live=!0;send;writeLocal;debounceMs;onChange;constructor(t){this.value=t.initial,this.send=t.send,this.writeLocal=t.writeLocal,this.debounceMs=t.debounceMs??zr,this.onChange=t.onChange}configure(t){this.send=t.send,this.writeLocal=t.writeLocal,this.debounceMs=t.debounceMs??zr}edit(t){this.value=t,this.revision+=1,this.pending=!0,this.writeLocal?.(t),this.clearTimer(),this.timer=setTimeout(()=>{this.timer=null,this.dispatch("change")},this.debounceMs),this.notify()}commit(){this.clearTimer(),this.dispatch("commit")}focus(){this.focused=!0,this.notify()}blur(){this.focused=!1,this.notify(),this.commit()}push(t){return this.focused||this.revision>this.acked||Object.is(t,this.value)?!1:(this.value=t,this.notify(),!0)}attach(){this.live=!0}dispose(){this.live=!1,this.clearTimer()}clearTimer(){this.timer&&(clearTimeout(this.timer),this.timer=null)}notify(){this.live&&this.onChange?.()}ack(t){t>this.acked&&(this.acked=t),this.live&&this.acked>=this.revision&&this.pending&&(this.pending=!1,this.notify())}dispatch(t){const n=this.revision;let r;try{r=this.send(this.value,n,t)}catch{r=void 0}r&&typeof r.then=="function"?r.then(()=>this.ack(n),()=>this.ack(n)):this.ack(n)}}const bc=new Map;function Xx(e){let t=bc.get(e);if(!t){t=new Map;const n=new Intl.NumberFormat(e,{useGrouping:!1});for(let r=0;r<=9;r++){const o=n.format(r);o!==String(r)&&t.set(o,String(r))}bc.set(e,t)}return t}function Zx(e,t){const n=new Intl.NumberFormat(t).formatToParts(12345.6),r=n.find(c=>c.type==="group")?.value??",",o=n.find(c=>c.type==="decimal")?.value??".",i=Xx(t),a=(i.size?Array.from(e,c=>i.get(c)??c).join(""):e).trim().split(r).join("").replace(/[\s‎‏؜]/g,"").replace(o,".").replace(/[−–]/g,"-");if(a===""||a==="-")return null;const l=Number(a);return Number.isFinite(l)?l:null}const Qx=64,zt=new Map;function Jx(e,t){return`${e}
453
+ ${JSON.stringify(t)}`}function ip(e,t){zt.delete(e),zt.set(e,t)}function e$(e,t){let n=zt.get(e);if(!n){const r={refs:0,promise:Promise.resolve("")};r.promise=t().then(o=>(r.url=o,zt.get(e)!==r&&URL.revokeObjectURL(o),o)),r.promise.catch(()=>{zt.get(e)===r&&zt.delete(e)}),n=r}return n.refs+=1,ip(e,n),n}function t$(e,t){if(t.refs-=1,t.refs>0||zt.get(e)!==t)return;ip(e,t);let n=0;for(const r of zt.values())r.refs===0&&(n+=1);for(const[r,o]of zt){if(n<=Qx)break;o.refs>0||(zt.delete(r),o.url&&URL.revokeObjectURL(o.url),n-=1)}}function n$(e,t,n="image"){const r=op(e,t),o=r?.headers??{},i=r!==null&&Object.keys(o).length>0,s=i?`${n}
454
+ ${Jx(r.url,o)}`:"";return{fetched:i,key:s,direct:r?r.url:void 0,denied:!!t&&r===null,open:()=>{if(!r||!i)return{promise:Promise.resolve(r?r.url:""),release:()=>{}};const a=n==="stream"&&e.mediaStreamUrl!==void 0,l=d=>vi(e,d),c=a?r$(e,r):e$(s,()=>(n==="stream"?o$(r.url,o,Dr,l):ap(r.url,o,Dr,!0,l)).then(d=>URL.createObjectURL(d)));return{promise:c.promise,release:a?()=>{}:()=>t$(s,c)}}}}function r$(e,t){return{promise:Promise.resolve(e.mediaStreamUrl(t)).then(r=>{if(typeof r!="string"||!vi(e,r))throw new Error("stream url denied by the media policy");return r}),refs:0}}function o$(e,t,n=Dr,r=sp){return ap(e,t,{...n,maxPixels:1/0},!1,r)}function sp(e){return vi({},e)}async function ap(e,t,n=Dr,r=!0,o=sp){const i=new AbortController,s=setTimeout(()=>i.abort(new Error(`media timed out after ${n.timeoutMs} ms`)),n.timeoutMs),a=()=>new Error(`media is over ${n.maxBytes} bytes`);try{const l=await fetch(e,{headers:t,signal:i.signal});if(l.redirected&&!o(l.url))throw i.abort(),new Error("media redirect denied by the media policy");if(!l.ok)throw new Error(`HTTP ${l.status}`);if(Number(l.headers.get("content-length")??NaN)>n.maxBytes)throw a();const c=[];let d=0;if(l.body){const u=l.body.getReader();for(;;){const{done:p,value:h}=await u.read();if(p)break;if(d+=h.byteLength,d>n.maxBytes)throw i.abort(),a();c.push(h)}}else{const u=new Uint8Array(await l.arrayBuffer());if(u.byteLength>n.maxBytes)throw a();c.push(u)}if(r){const u=mv(c.length===1?c[0]:i$(c),n);if(u)throw new Error(u)}return new Blob(c,{type:l.headers.get("content-type")??""})}finally{clearTimeout(s)}}function i$(e){const t=new Uint8Array(e.reduce((r,o)=>r+o.byteLength,0));let n=0;for(const r of e)t.set(r,n),n+=r.byteLength;return t}const s$=32,vc=8192,ts=/\s+(?:"[^"]*"|'[^']*')/y;class lp{constructor(t){this.s=t;const n=t.length;this.close=new Int32Array(n).fill(-1),this.balance=new Int32Array(n+1),this.escaped=new Uint8Array(n);const r=[],o=[];let i=!1,s=0;for(let a=0;a<n;a++){if(this.balance[a]=s,i){this.escaped[a]=1,i=!1;continue}const l=t[a];if(l==="\\")i=!0;else if(l==="[")r.push(a);else if(l==="]"){const c=r.pop();c!==void 0&&(this.close[c]=a)}else if(l==="(")o.push(a),s++;else if(l===")"){const c=o.pop();c!==void 0&&(this.close[c]=a),s--}}this.balance[n]=s,this.nextWs=new Int32Array(n+1),this.nextGt=new Int32Array(n+1),this.nextLtNl=new Int32Array(n+1),this.nextWs[n]=n,this.nextGt[n]=-1,this.nextLtNl[n]=n;for(let a=n-1;a>=0;a--){const l=t[a];this.nextWs[a]=!this.escaped[a]&&/\s/.test(l)?a:this.nextWs[a+1],this.nextGt[a]=l===">"?a:this.nextGt[a+1],this.nextLtNl[a]=l==="<"||l===`
455
+ `?a:this.nextLtNl[a+1]}}s;close;balance;nextWs;nextGt;nextLtNl;escaped;at(t){const n=this.s;if(n[t]!=="["||this.escaped[t])return null;const r=this.close[t];if(r<0||n[r+1]!=="(")return null;let o=r+2,i;if(n[o]==="<"){const s=this.nextGt[o];if(s<0||this.nextLtNl[o+1]<s||s-o-1>vc)return null;i=n.slice(o+1,s),o=s+1}else{const s=this.close[r+1],a=this.nextWs[o];let l;if(s>=0&&s<a)l=s;else if(this.balance[a]===this.balance[o])l=a;else return null;if(l-o>vc)return null;i=n.slice(o,l).replace(/\\([()])/g,"$1"),o=l}for(ts.lastIndex=o,ts.exec(n)&&(o=ts.lastIndex);n[o]===" ";)o++;return n[o]!==")"?null:{label:n.slice(t+1,r),dest:i,end:o+1}}}function a$(e,t){return e[t]==="["?new lp(e).at(t):null}function l$(e){if(e[0]!=="!")return null;const t=a$(e,1);return t&&t.end===e.length?{alt:t.label,src:t.dest}:null}const c$=/(`[^`]+`)|(\*\*([^*]+)\*\*)|(__([^_]+)__)|(\*([^*\s][^*]*)\*)|(_([^_\s][^_]*)_)|(~~([^~]+)~~)/;function kt(e,t=0){const n=[],r=t<s$&&e.includes("[")?new lp(e):null,o=new RegExp(c$.source,"g");let i=0,s=null,a=!1;for(;i<e.length;){(!a||s&&s.index<i)&&(o.lastIndex=i,s=o.exec(e),a=!0);const l=s?s.index:e.length;let c=null;if(r)for(let d=e.indexOf("[",i);d>=0&&d<l;d=e.indexOf("[",d+1)){const u=r.at(d);if(!u)continue;const p=d>i&&e[d-1]==="!";c={at:p?d-1:d,image:p,...u};break}if(c){c.at>i&&n.push(e.slice(i,c.at)),c.image?n.push(c.label):n.push({type:"link",dest:c.dest,children:kt(c.label,t+1)}),i=c.end;continue}if(!s){n.push(e.slice(i));break}s.index>i&&n.push(e.slice(i,s.index)),s[1]?n.push({type:"code",text:s[1].slice(1,-1)}):s[2]?n.push({type:"strong",children:kt(s[3],t)}):s[4]?n.push({type:"strong",children:kt(s[5],t)}):s[6]?n.push({type:"em",children:kt(s[7],t)}):s[8]?n.push({type:"em",children:kt(s[9],t)}):s[10]&&n.push({type:"del",text:s[11]}),i=s.index+s[0].length}return n}const Yo=/^(\s*)([-*+]|\d+[.)])\s+(.*)$/;function d$(e){const t=i=>i.replace(/\t/g," ").length,n=e.length?Yo.exec(e[0]):null;if(!n)return{indent:0,ordered:!1,items:[]};const r={indent:t(n[1]),ordered:/\d/.test(n[2]),items:[]},o=[r];for(const i of e){const s=Yo.exec(i);if(!s)continue;const a=t(s[1]);for(;o.length>1&&a<o[o.length-1].indent;)o.pop();let l=o[o.length-1];const c=l.items[l.items.length-1];if(c&&a>=l.indent+2&&o.length<cp){const u={indent:a,ordered:/\d/.test(s[2]),items:[]};c.children.push(u),o.push(u),l=u}const d=/^\[([ xX])\]\s+(.*)$/.exec(s[3]);l.items.push(d?{text:d[2],content:kt(d[2]),task:d[1]!==" ",children:[]}:{text:s[3],content:kt(s[3]),children:[]})}return r}const xc=e=>/^\s*\|.*\|\s*$/.test(e),u$=e=>/^\s*\|(\s*:?-+:?\s*\|)+\s*$/.test(e),ns=e=>e.trim().replace(/^\|/,"").replace(/\|$/,"").split(/(?<!\\)\|/).map(t=>t.replace(/\\\|/g,"|").trim()),cp=32;function p$(e){return dp(e,0)}function dp(e,t){const n=e.replace(/\r\n?/g,`
456
+ `).split(`
457
+ `),r=[];let o=0;const i=[],s=()=>{if(i.length===0)return;const a=i.join(" "),l=l$(a);l?r.push({type:"image",alt:l.alt,src:l.src}):r.push({type:"paragraph",children:kt(a)}),i.length=0};for(;o<n.length;){const a=n[o],l=/^```(\w*)\s*$/.exec(a);if(l){s();const d=[];for(o++;o<n.length&&!/^```\s*$/.test(n[o]);)d.push(n[o++]);o++,r.push({type:"codeBlock",lang:l[1]||void 0,text:d.join(`
458
+ `)});continue}const c=/^(#{1,6})\s+(.*)$/.exec(a);if(c){s(),r.push({type:"heading",level:c[1].length,children:kt(c[2])}),o++;continue}if(t<cp&&/^\s*>/.test(a)){s();const d=[];for(;o<n.length&&/^\s*>/.test(n[o]);)d.push(n[o++].replace(/^\s*>\s?/,""));r.push({type:"quote",children:dp(d.join(`
459
+ `),t+1)});continue}if(Yo.test(a)){s();const d=[];for(;o<n.length&&Yo.test(n[o]);)d.push(n[o++]);r.push({type:"list",list:d$(d)});continue}if(xc(a)&&o+1<n.length&&u$(n[o+1])){s();const d=ns(a),u=ns(n[o+1]).map(h=>h.startsWith(":")&&h.endsWith(":")?"center":h.endsWith(":")?"end":h.startsWith(":")?"start":void 0);o+=2;const p=[];for(;o<n.length&&xc(n[o]);)p.push(ns(n[o++]));r.push({type:"table",align:u,head:d.map(h=>kt(h)),rows:p.map(h=>h.map(f=>kt(f)))});continue}if(/^\s*([-*_])(\s*\1){2,}\s*$/.test(a)){s(),r.push({type:"rule"}),o++;continue}if(a.trim()===""){s(),o++;continue}i.push(a.trim()),o++}return s(),r}const f$=Object.fromEntries(Object.entries(rt.components).flatMap(([e,t])=>{const n=t.props.validateOn?.default;return n===void 0?[]:[[e,String(n)]]}));function h$(e){return f$[e]}function g$(e){return e.submitted||e.attempts>0||(e.validateOn==="change"?e.dirty:e.validateOn==="blur"?e.touched:!1)}function m$(e){return[...e].sort((t,n)=>{const r=t.element(),o=n.element();return!r||!o?0:r.compareDocumentPosition(o)&4?-1:1})}class y${fields=new Set;register(t){return this.fields.add(t),()=>{this.fields.delete(t)}}check(){const t=m$(this.fields),n=[];let r=null;for(const i of t){const s=i.errors();s.length&&!r&&(r=i);for(const a of s)n.push({name:i.name,message:a})}if(n.length)return{ok:!1,errors:n,first:r};const o={};for(const i of t)o[i.name]=i.value();return{ok:!0,values:o}}stillFailing(t){return t.filter(n=>[...this.fields].some(r=>r.name===n.name&&r.errors().includes(n.message)))}}const Ht=(e,t)=>Math.abs(e-t)<1,$c=e=>Math.round(e*64)/64,rs=(e,t)=>({width:$c(e),height:$c(t)});function up(e,t){const n=e.getBoundingClientRect(),r=e.offsetWidth,o=e.offsetHeight;if(r===0&&o===0)return{width:n.width,height:n.height};if(Ht(n.width,r)&&Ht(n.height,o))return{width:n.width,height:n.height};const i=t?.borderBoxSize?.[0];if(i){if(Ht(i.inlineSize,r)&&Ht(i.blockSize,o))return rs(i.inlineSize,i.blockSize);if(Ht(i.blockSize,r)&&Ht(i.inlineSize,o))return rs(i.blockSize,i.inlineSize)}const s=e.currentCSSZoom;return s&&s!==1&&Ht(n.width/s,r)&&Ht(n.height/s,o)?rs(n.width/s,n.height/s):{width:r,height:o}}function Ks(e,t){return t>0&&!Ht(e,t)?e/t:1}function To(e,t=e.getBoundingClientRect()){return{x:Ks(t.width,e.offsetWidth),y:Ks(t.height,e.offsetHeight)}}function pp(e,t="vertical"){let n=e?.parentElement??null;for(;n&&n!==document.body&&n!==document.documentElement;){const r=getComputedStyle(n),o=t==="vertical"?r.overflowY:r.overflowX,i=t==="vertical"?n.scrollHeight>n.clientHeight+1:n.scrollWidth>n.clientWidth+1;if((o==="auto"||o==="scroll")&&i)return n;n=n.parentElement}return null}function wc(e,t,n,r){const o=r===void 0?pp(e,t):r,i=e.getBoundingClientRect(),s=To(e,i);if(t==="vertical"){if(o){const a=o.getBoundingClientRect(),l=To(o,a).y;return{scroll:(a.top+o.clientTop*l-i.top)/s.y,viewport:o.clientHeight*l/s.y,scroller:o}}return{scroll:-i.top/s.y,viewport:window.innerHeight/s.y,scroller:o}}if(o){const a=o.getBoundingClientRect(),l=To(o,a).x;return{scroll:(n?i.right-(a.right-o.clientLeft*l):a.left+o.clientLeft*l-i.left)/s.x,viewport:o.clientWidth*l/s.x,scroller:o}}return{scroll:(n?i.right-window.innerWidth:-i.left)/s.x,viewport:window.innerWidth/s.x,scroller:o}}const b$=700;function fp(e,t,n,r=()=>!1){if(e===0)return-1;let o=t;for(let i=0;i<e;i++)if(o=((o+n)%e+e)%e,!r(o))return o;return-1}function hp(e,t,n,r,o,i,s){const a={text:n-e.at>b$?t.toLowerCase():e.text+t.toLowerCase(),at:n};for(let l=1;l<=o;l++){const c=(Math.max(0,r)+(a.text.length>1?l-1:l))%o;if(!i(c)&&s(c).toLowerCase().startsWith(a.text))return{buffer:a,index:c}}return{buffer:a,index:-1}}const v$={Switch:["body","label","description","track"],Input:["label","field","description","error"],Textarea:["label","field","description","error"],NumberField:["label","field","decrement","input","unit","increment","description","error"],ChipInput:["label","field","input","description","error"],Select:["label","trigger"],DatePicker:["label","trigger"],DateRangePicker:["label","trigger"],TimePicker:["label","trigger"],Radio:["label","items"],ChoiceTiles:["error"],Checkbox:["box","label","description"],Slider:["header","label","value","track"],Tabs:["list","content","new"],SearchList:["head","search","count","body","list","empty","fade"],Menu:["trigger","head","search","count","body","list","empty","fade"],Table:["header","body","caption","empty"],Carousel:["page","indicator","controls","previous","next"],Tooltip:["anchor"],FileUpload:["label","dropzone","icon","title","hint","browse","description"],CodeBlock:["header","title","copy","body"],AudioPlayer:["track","controls"],Video:["controls"],Image:["fallback"],Ring:["label"]},kc=e=>{const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null},os=e=>typeof e=="object"&&e!==null&&typeof e.id=="string"?e.id:void 0;function Xo(e,t){if(Object.is(e,t)||typeof e!="object"||typeof t!="object"||e===null||t===null)return t;if(Array.isArray(t)){if(!Array.isArray(e))return t;const s=e.length>0&&os(e[0])!==void 0?new Map(e.map(c=>[os(c),c])):null;let a=e.length===t.length;const l=t.map((c,d)=>{const u=s?os(c):void 0,p=Xo(u!==void 0?s.get(u):e[d],c);return p!==e[d]&&(a=!1),p});return a?e:l}if(Array.isArray(e)||!kc(e)||!kc(t))return t;const n=e,r=Object.keys(t);let o=r.length===Object.keys(n).length;const i={};for(const s of r){const a=Object.prototype.hasOwnProperty.call(n,s),l=Xo(a?n[s]:void 0,t[s]);i[s]=l,(!a||l!==n[s])&&(o=!1)}return o?e:i}function gp(e){return e==="listening"||e==="thinking"||e==="speaking"}const x$=["idle","listening","thinking","speaking","muted"];function mp(e,t){return e?`${e}, ${x$.includes(t)?t:"idle"}`:void 0}function yp(e){if(typeof requestAnimationFrame!="function")return()=>{};let t=null,n=0;const r=o=>{t===null?t=o:e((o-t)/1e3),n=requestAnimationFrame(r)};return n=requestAnimationFrame(r),()=>cancelAnimationFrame(n)}function $$(e,t){const n=(o,i)=>{const s=t({width:o,height:i});e.style.transform=s===1?"":`scale(${s})`};if(typeof ResizeObserver!="function")return n(e.offsetWidth,e.offsetHeight),()=>{};const r=new ResizeObserver(o=>{const s=o[o.length-1].borderBoxSize?.[0];s?n(s.inlineSize,s.blockSize):n(e.offsetWidth,e.offsetHeight)});return r.observe(e,{box:"border-box"}),()=>r.disconnect()}const Zr=pn();function se(){const e=Zt(Zr);if(!e)throw new Error("exponential-ui: this component must render inside <ExponentialSurface>");return e}function Ma(e,t){const n={};for(const r of Object.keys(Object.getOwnPropertyDescriptors(e)))Object.defineProperty(n,r,{enumerable:!0,configurable:!0,get:()=>e[r]});for(const[r,o]of Object.entries(t))o&&Object.defineProperty(n,r,{enumerable:!0,configurable:!0,get:o});return n}const xi=pn(()=>""),$i=pn(()=>""),Da=()=>Zt(xi),Qr=()=>Zt($i);function wi(e,t){return{get data(){return e.data},scope:t,get functions(){return e.functions},get openUrl(){return e.openUrl},get locale(){return e.locale},get strings(){return e.strings},get formatter(){return e.formatter},get now(){return e.now}}}const[w$,Sc]=Y([]),Cc=new Set;function k$(e){const t=bp(e);Sc(n=>[...n,t]);for(const n of Cc)n();return()=>{Sc(n=>n.filter(r=>r!==t));for(const n of Cc)n()}}function bp(e){return{catalog:e.catalog?C0(e.catalog):null,components:e.components??{}}}function S$(){return w$()}function vp(e){return e.flatMap(t=>t.catalog?[t.catalog]:[])}const Ac=new WeakMap;function xp(e){const t=Ac.get(e);if(t)return t;const n=new Set;Ac.set(e,n);for(const r of e)for(const[o,i]of Object.entries(r.catalog?.components??{}))i.kind==="macro"&&n.add(o);return n}function C$(e,t){for(let n=e.length-1;n>=0;n--){const r=e[n].components[t];if(r)return r}}var A$={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},Ln=A$,T$=F("<svg>"),Tc=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),I$=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),E$=e=>{const t=I$(e);return t.charAt(0).toUpperCase()+t.slice(1)},_$=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),M$=e=>{const[t,n]=Br(e,["color","size","strokeWidth","children","class","name","iconNode","absoluteStrokeWidth"]);return(()=>{var r=T$();return I(r,S(Ln,{get width(){return t.size??Ln.width},get height(){return t.size??Ln.height},get stroke(){return t.color??Ln.stroke},get"stroke-width"(){return Z(()=>!!t.absoluteStrokeWidth)()?Number(t.strokeWidth??Ln["stroke-width"])*24/Number(t.size):Number(t.strokeWidth??Ln["stroke-width"])},get class(){return _$("lucide","lucide-icon",...t.name!=null?[`lucide-${Tc(E$(t.name))}`,`lucide-${Tc(t.name)}`]:[],t.class!=null?t.class:"")}},n),!0,!0),$(r,x(xe,{get each(){return t.iconNode},children:([o,i])=>x(Dn,S({component:o},i))})),r})()},$e=M$,D$=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],P$=e=>x($e,S(e,{iconNode:D$,name:"arrow-left"})),O$=P$,F$=[["path",{d:"M2 10v3",key:"1fnikh"}],["path",{d:"M6 6v11",key:"11sgs0"}],["path",{d:"M10 3v18",key:"yhl04a"}],["path",{d:"M14 8v7",key:"3a1oy3"}],["path",{d:"M18 5v13",key:"123xd1"}],["path",{d:"M22 10v3",key:"154ddg"}]],z$=e=>x($e,S(e,{iconNode:F$,name:"audio-lines"})),R$=z$,N$=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],L$=e=>x($e,S(e,{iconNode:N$,name:"calendar"})),j$=L$,B$=[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]],W$=e=>x($e,S(e,{iconNode:B$,name:"check-check"})),H$=W$,U$=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],q$=e=>x($e,S(e,{iconNode:U$,name:"check"})),V$=q$,K$=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],G$=e=>x($e,S(e,{iconNode:K$,name:"chevron-down"})),Y$=G$,X$=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Z$=e=>x($e,S(e,{iconNode:X$,name:"chevron-left"})),Q$=Z$,J$=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ew=e=>x($e,S(e,{iconNode:J$,name:"chevron-right"})),tw=ew,nw=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],rw=e=>x($e,S(e,{iconNode:nw,name:"chevron-up"})),ow=rw,iw=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],sw=e=>x($e,S(e,{iconNode:iw,name:"chevrons-up-down"})),aw=sw,lw=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],cw=e=>x($e,S(e,{iconNode:lw,name:"circle-check"})),dw=cw,uw=[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]],pw=e=>x($e,S(e,{iconNode:uw,name:"circle-dashed"})),$p=pw,fw=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]],hw=e=>x($e,S(e,{iconNode:fw,name:"circle-stop"})),gw=hw,mw=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],yw=e=>x($e,S(e,{iconNode:mw,name:"circle-x"})),bw=yw,vw=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],xw=e=>x($e,S(e,{iconNode:vw,name:"clock"})),$w=xw,ww=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],kw=e=>x($e,S(e,{iconNode:ww,name:"copy"})),Sw=kw,Cw=[["path",{d:"M6 8.5a6.5 6.5 0 1 1 13 0c0 6-6 6-6 10a3.5 3.5 0 1 1-7 0",key:"1dfaln"}],["path",{d:"M15 8.5a2.5 2.5 0 0 0-5 0v1a2 2 0 1 1 0 4",key:"1qnva7"}]],Aw=e=>x($e,S(e,{iconNode:Cw,name:"ear"})),Tw=Aw,Iw=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],Ew=e=>x($e,S(e,{iconNode:Iw,name:"ellipsis"})),_w=Ew,Mw=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]],Dw=e=>x($e,S(e,{iconNode:Mw,name:"file"})),Pw=Dw,Ow=[["path",{d:"M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2",key:"1fvzgz"}],["path",{d:"M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2",key:"1kc0my"}],["path",{d:"M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8",key:"10h0bg"}],["path",{d:"M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15",key:"1s1gnw"}]],Fw=e=>x($e,S(e,{iconNode:Ow,name:"hand"})),zw=Fw,Rw=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Nw=e=>x($e,S(e,{iconNode:Rw,name:"info"})),Lw=Nw,jw=[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]],Bw=e=>x($e,S(e,{iconNode:jw,name:"loader"})),Ww=Bw,Hw=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Uw=e=>x($e,S(e,{iconNode:Hw,name:"menu"})),qw=Uw,Vw=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M15 9.34V5a3 3 0 0 0-5.68-1.33",key:"1gzdoj"}],["path",{d:"M16.95 16.95A7 7 0 0 1 5 12v-2",key:"cqa7eg"}],["path",{d:"M18.89 13.23A7 7 0 0 0 19 12v-2",key:"16hl24"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12",key:"r2i35w"}]],Kw=e=>x($e,S(e,{iconNode:Vw,name:"mic-off"})),Gw=Kw,Yw=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]],Xw=e=>x($e,S(e,{iconNode:Yw,name:"mic"})),Zw=Xw,Qw=[["path",{d:"M5 12h14",key:"1ays0h"}]],Jw=e=>x($e,S(e,{iconNode:Qw,name:"minus"})),e1=Jw,t1=[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]],n1=e=>x($e,S(e,{iconNode:t1,name:"paperclip"})),r1=n1,o1=[["path",{d:"M16 2v6h6",key:"1mfrl5"}],["path",{d:"m22 2-6 6",key:"6f0sa0"}],["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],i1=e=>x($e,S(e,{iconNode:o1,name:"phone-incoming"})),s1=i1,a1=[["path",{d:"M10.1 13.9a14 14 0 0 0 3.732 2.668 1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2 18 18 0 0 1-12.728-5.272",key:"1wngk7"}],["path",{d:"M22 2 2 22",key:"y4kqgn"}],["path",{d:"M4.76 13.582A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 .244.473",key:"10hv5p"}]],l1=e=>x($e,S(e,{iconNode:a1,name:"phone-off"})),c1=l1,d1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],u1=e=>x($e,S(e,{iconNode:d1,name:"plus"})),p1=u1,f1=[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]],h1=e=>x($e,S(e,{iconNode:f1,name:"qr-code"})),g1=h1,m1=[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["path",{d:"M7 12h10",key:"b7w52i"}]],y1=e=>x($e,S(e,{iconNode:m1,name:"scan-line"})),b1=y1,v1=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],x1=e=>x($e,S(e,{iconNode:v1,name:"search"})),Ic=x1,$1=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],w1=e=>x($e,S(e,{iconNode:$1,name:"send"})),k1=w1,S1=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],C1=e=>x($e,S(e,{iconNode:S1,name:"star"})),A1=C1,T1=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],I1=e=>x($e,S(e,{iconNode:T1,name:"triangle-alert"})),E1=I1,_1=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],M1=e=>x($e,S(e,{iconNode:_1,name:"upload"})),D1=M1,P1=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]],O1=e=>x($e,S(e,{iconNode:P1,name:"volume-2"})),F1=O1,z1=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],R1=e=>x($e,S(e,{iconNode:z1,name:"x"})),N1=R1,L1=F('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round>');const wp={spinner:Ww},j1={"ui-check":V$,"ui-chevron-down":Y$,"ui-chevron-up":ow,"ui-chevron-left":Q$,"ui-chevron-right":tw,"ui-selector":aw,"ui-close":N1,"ui-copy":Sw,"ui-file":Pw,"ui-minus":e1,"ui-add":p1,"ui-clock":$w,"ui-info":Lw,"ui-success":dw,"ui-warning":E1,"ui-error":bw,"ui-stop":gw,"ui-attach":r1,"ui-send":k1,"ui-back":O$,"ui-more":_w,"ui-menu":qw,"ui-search":Ic,"ui-icon-placeholder":$p,"ui-read":H$,"ui-scan":b1,"ui-qr-code":g1,"ui-hold":zw,"voice-level":R$,"call-mute":Zw,"call-unmute":Gw,"call-speaker":F1,"call-speaker-off":Tw,"call-end":c1,"call-incoming":s1,calendar:j$,search:Ic,upload:D1,star:A1,...Object.fromEntries(Object.entries(jx).map(([e,t])=>[e,n=>x($e,S(n,{name:e,iconNode:t}))]))};function B1(e,t){return Lx(e,t,j1)}const is=new WeakMap;function W1(e){if(is.has(e))return is.get(e);let t=null;if(typeof document<"u")try{Kt(n=>{const r=e({});if(r instanceof Element&&r.localName==="svg"&&r.classList.contains("lucide")){const o=Array.from(r.classList).filter(s=>s!=="lucide"&&s!=="lucide-icon"),i=Array.from(r.children).map(s=>{const a={};for(const l of Array.from(s.attributes))l.name!=="key"&&(a[l.name]=l.value);return[s.localName,a]});t={classes:o,nodes:i}}n()})}catch{t=null}return is.set(e,t),t}const Ec=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();function H1(e){const[t,n]=Br(e,["shape","size","class"]),r=()=>Object.keys(n).some(s=>s.startsWith("aria-")||s==="role"||s==="title"),o=()=>t.size??24,i=(s,a)=>s in n?n[s]:a;return(()=>{var s=L1();return I(s,S({get"aria-hidden"(){return r()?void 0:"true"}},n,{get width(){return i("width",o())},get height(){return i("height",o())},get class(){return Ec("lucide",Ec(...t.shape.classes,t.class))}}),!0,!0),$(s,x(xe,{get each(){return t.shape.nodes},children:([a,l])=>x(Dn,S({component:a},l))})),s})()}function Pa(e){const[t,n]=Br(e,["icon"]);return x(Dn,S({get component(){const r=t.icon,o=W1(r);return o?i=>x(H1,S({shape:o},i)):r}},n))}function nt(e){const[t,n]=Br(e,["icons","name","size","class"]),r=()=>B1(t.icons,t.name);return x(Pa,S({get icon(){return r()??$p},"aria-hidden":"true",get"data-icon"(){return t.name},get"data-icon-missing"(){return r()?void 0:"true"},get size(){return t.size},get class(){return t.class}},n))}const U1=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),_c=new Map;function q1(e){let t=_c.get(e);return t===void 0&&(t=e.includes("-")?e:e.replace(/([A-Z])/g,"-$1").toLowerCase().replace(/^ms-/,"-ms-"),_c.set(e,t)),t}function ge(e){if(!e)return;const t={};for(const[n,r]of Object.entries(e)){if(r==null||typeof r=="boolean"||r==="")continue;if(n.startsWith("--")){t[n]=String(r);continue}const o=n==="cssFloat"?"float":q1(n);t[o]=typeof r=="number"&&r!==0&&!U1.has(n)?`${r}px`:String(r).trim()}return t}const kp=e=>typeof e=="number"?e===0?"0":`${e}px`:e;var V1=F("<label>"),K1=F("<div>"),G1=F("<p>"),Y1=F("<span>");function me(e){const t=se(),n=Qr(),r=N(()=>{const a={};for(const[l,c]of Object.entries(ln(e.node.component,e.props,t.extensionDefs)))typeof c!="object"&&(a[Pr(!1,l)]=String(c));return a}),o=()=>`${e.node.id}${n()}`,i=(a,l,c,d)=>{const u=e.node.component,p=d!==null?`${o()}.${a}.${d}`:v$[u]?.includes(a)?`${o()}.${a}`:null,h=[...t.states,...c.filter(b=>!!b)],f={};if(l)for(const[b,m]of Object.entries(l))m!=null&&(f[Pr(!1,b)]=String(m));return{class:`${t.compiled.scope} ${An(u,a)}`,"data-xui-part":`${u}/${a}`,...p!==null?{"data-xui-id":p}:{},...r(),...f,...h.length?{"data-xs":h.join(" ")}:{}}},s=((a,...l)=>i(a,null,l,null));return s.with=(a,l,...c)=>i(a,l,c,null),s.at=(a,l,...c)=>i(a,null,c,l),s.atWith=(a,l,c,...d)=>i(a,c,d,l),Object.defineProperty(s,"domId",{get:o}),s}function tt(e){const t=()=>Hr(e.text);return Z(()=>Z(()=>!!t())()?(()=>{const n=e.as??"span";return n==="label"?(()=>{var r=V1();return I(r,S(()=>e.part,{get id(){return e.id},get for(){return e.htmlFor}}),!1,!0),$(r,t),r})():n==="div"?(()=>{var r=K1();return I(r,S(()=>e.part,{get id(){return e.id}}),!1,!0),$(r,t),r})():n==="p"?(()=>{var r=G1();return I(r,S(()=>e.part,{get id(){return e.id}}),!1,!0),$(r,t),r})():(()=>{var r=Y1();return I(r,S(()=>e.part,{get id(){return e.id}}),!1,!0),$(r,t),r})()})():null)}function we(e){const t=se();return x(nt,{get icons(){return t.host.icons},get name(){return qx(e.slot)},get class(){return e.class},get width(){return e.size},get height(){return e.size},get"data-slot"(){return e.slot}})}var X1=F("<div><span class=xui-sr-only></span><ul class=xui-form-summary-list>"),Z1=F("<form><fieldset class=xui-form-fields>"),Q1=F("<li>"),J1=F("<div>"),ek=F("<span class=xui-field-error>");const Sp=pn(null),Oa=pn(null);function Cp(){return Zt(Sp)??null}function tk(e){const t=se(),n=me(e),r=Zt(Oa)??null,o=new y$,[i,s]=Y(0),[a,l]=Y([]),c=()=>re(e.props.disabled),d=()=>re(e.props.busy),u=()=>{if(L(d))return;const f=o.check();if(!f.ok){s(b=>b+1),l(f.errors),f.first?.focus(),t.announce(t.t("invalidFields"),"assertive"),e.emit("invalid",{errors:f.errors});return}l([]),e.emit("submit",{values:f.values}),r?.()},p={register:f=>o.register(f),submit:u,changed:(f,b)=>{e.emit("change",{name:f,value:b})},get disabled(){return c()},get busy(){return d()},get attempts(){return i()}},h=N(()=>(t.data,i(),o.stillFailing(a())));return x(Sp.Provider,{value:p,get children(){var f=Z1(),b=f.firstChild;return I(f,S(()=>e.rootProps,{novalidate:!0,get"aria-busy"(){return d()||void 0},get"aria-disabled"(){return c()||void 0},get name(){return U(e.props.name)||void 0},onSubmit:m=>{m.preventDefault(),m.stopPropagation(),u()}}),!1,!0),$(f,x(J,{get when(){return Z(()=>!!re(e.props.summary))()&&h().length},get children(){var m=X1(),v=m.firstChild,g=v.nextSibling;return I(m,S(()=>n("summary"),{role:"alert",get id(){return`${e.node.id}.summary`}}),!1,!0),$(v,()=>t.t("invalidFields")),$(g,x(xe,{get each(){return h()},children:y=>(()=>{var k=Q1();return $(k,()=>y.message),k})()})),m}}),b),$(b,()=>e.children),te(()=>b.disabled=c()),f}})}function ht(e){const t=Cp(),n=se(),r=N(()=>Hx(e.props().checks,n.t("invalidValue"))),[o,i]=Y(!1),[s,a]=Y(!1),[l,c]=Y(!1),d=N(()=>g$({validateOn:U(e.props().validateOn,h$(e.node().component)??"blur"),submitted:l(),attempts:t?.attempts??0,dirty:s(),touched:o()})),u=N(()=>U(e.props().name));fe(()=>{const f=u(),b=e.domId();!t||!f||le(t.register({name:f,domId:b,value:()=>L(e.value),errors:()=>L(r),focus:()=>e.focusEl()?.focus(),element:()=>e.focusEl()??null}))});const p=N(()=>d()?r():[]),h=()=>`${e.domId()}.error`;return{get errors(){return p()},get invalid(){return p().length>0},get errorId(){return h()},get describedBy(){return p().length?h():void 0},touch:()=>i(!0),change:f=>{a(!0);const b=L(u);t&&b&&t.changed(b,f)},submit:()=>{c(!0),t?.submit()},form:t}}function gt(e){return x(J,{get when(){return e.field.errors.length},get children(){var t=J1();return I(t,S(()=>e.part("error"),{get id(){return e.field.errorId},role:"alert"}),!1,!0),$(t,x(xe,{get each(){return e.field.errors},children:n=>(()=>{var r=ek();return $(r,n),r})()})),t}})}const Mc=e=>e==null;function Gs(e,t){te(n=>{const r=t()??{};for(const o in n)!(o in r)&&!Mc(n[o])&&e.removeAttribute(o);for(const o in r){const i=r[o];i!==n[o]&&(Mc(i)?e.removeAttribute(o):e.setAttribute(o,String(i)))}return r},{})}var nk=F("<div>"),rk=F("<div class=xui-list-item>"),ok=F("<div class=xui-list-gap aria-hidden=true>");function Ap(e){let t;const n=new Map,r=new Map,o=new Map,i=new WeakMap;let s=null;const[a,l]=Y(0),[c,d]=Y(null,{equals:(E,R)=>E===R||!!E&&!!R&&E.scroll===R.scroll&&E.viewport===R.viewport}),u=()=>e.axis??"vertical",p=()=>u()==="horizontal",h=()=>p()&&e.direction==="rtl",f=()=>e.gap??0,b=()=>e.estimatedItemHeight??40,m=()=>{const E=b(),R=e.count,H=e.itemKey;if(typeof E=="number")return dy(Array.from({length:R},(j,X)=>n.get(H(X))),E);const W=new Array(R);for(let j=0;j<R;j++)W[j]=n.get(H(j))??E(j);return W};fe(()=>{const E=p();if(typeof ResizeObserver>"u")return;const R=new ResizeObserver(H=>{let W=!1;for(const j of H){const X=i.get(j.target),ne=j.borderBoxSize?.[0],ae=ne?ne.inlineSize:j.contentRect.width,de=ne?ne.blockSize:j.contentRect.height,ie=E?ae:de,ve=E?de:ae;X===void 0||ie<=0||(n.get(X)!==ie&&(n.set(X,ie),W=!0),r.get(X)!==ve&&(r.set(X,ve),W=!0))}W&&l(j=>j+1)});s=R;for(const H of o.values())R.observe(H);le(()=>{R.disconnect(),s=null})});const[v,g]=Y(void 0);fe(()=>{const E=v(),R=u(),H=h();if(!t||E===void 0)return;const W=t,j=()=>{const ae=wc(W,R,H,E);d({scroll:ae.scroll,viewport:ae.viewport})};j();const X=E??window;X.addEventListener("scroll",j,{passive:!0}),window.addEventListener("resize",j);const ne=typeof ResizeObserver>"u"?null:new ResizeObserver(j);ne&&(E&&ne.observe(E),ne.observe(W)),le(()=>{X.removeEventListener("scroll",j),window.removeEventListener("resize",j),ne?.disconnect()})});const y=N(()=>(a(),m())),k=N(()=>xa(y(),f())),w=N(()=>k()[e.count]??0);fe(()=>{e.count,w();const E=u();if(!t)return;const R=pp(t,E);g(()=>R)});const _=()=>typeof window<"u"?p()?window.innerWidth:window.innerHeight:800,T=()=>c()?.scroll??0,C=()=>c()?.viewport||_(),M=N(()=>uy(y(),f(),T(),C(),e.overscan??lu),void 0,{equals:(E,R)=>E.start===R.start&&E.end===R.end}),P=N(()=>[...e.stickyRows??[]].filter(E=>E>=0&&E<e.count).sort((E,R)=>E-R)),D=N(()=>P().length&&T()>=0?gy(k(),y(),P(),T()):null,void 0,{equals:(E,R)=>E===R||!!E&&!!R&&E.row===R.row&&E.offset===R.offset});let O=null;const z=(E,R)=>{if(!t||E<0||E>=e.count)return!1;const H=y(),W=wc(t,u(),h());let j=-1;for(const ie of P())ie<=E&&(j=ie);const X=j>=0&&j!==E?H[j]:0,ae=py(H,f(),E,W.viewport,Math.max(0,W.scroll),R,X)-W.scroll;if(Math.abs(ae)<.5)return!1;const de=p()?{left:h()?-ae:ae}:{top:ae};return W.scroller?W.scroller.scrollBy(de):window.scrollBy(de),!0};fe(De([y,c],()=>{const E=O;E&&(E.tries++>=12?O=null:L(()=>z(E.index,E.align)))})),fe(()=>{const E=v()??window,R=()=>{O=null},H=["wheel","touchstart","pointerdown","keydown"];for(const W of H)E.addEventListener(W,R,{passive:!0});le(()=>{for(const W of H)E.removeEventListener(W,R)})}),e.ref?.({scrollToIndex:(E,R="nearest")=>{O={index:E,align:R,tries:0},L(()=>z(E,R))||(O=null)}});const K=E=>p()?h()?{right:0,transform:`translateX(${-E}px)`}:{left:0,transform:`translateX(${E}px)`}:{transform:`translateY(${E}px)`},ee=N(()=>{const E=M(),R=D(),H=[];R&&(R.row<E.start||R.row>=E.end)&&H.push(R.row);for(let W=E.start;W<E.end;W++)H.push(W);return H}),q=N(()=>{const E=new Map;for(const R of ee())E.set(e.itemKey(R),R);return E}),A=N(()=>[...q().keys()],void 0,{equals:(E,R)=>E.length===R.length&&E.every((H,W)=>H===R[W])}),B=N(()=>{a();let E=0;for(const R of A())E=Math.max(E,r.get(R)??0);return E}),G=()=>ge(p()?{width:w(),height:B()||void 0}:{height:w()});return(()=>{var E=nk(),R=t;return typeof R=="function"?oe(R,E):t=E,$(E,x(xe,{get each(){return A()},children:H=>{const W=N(de=>q().get(H)??de),j=()=>D()?.row===W(),X=()=>j()?D().offset:k()[W()],ne=N(()=>W()>0&&e.divider?e.divider(W()):null),ae=de=>{e.itemProps&&Gs(de,()=>e.itemProps?.(W())),o.set(H,de),i.set(de,H),s?.observe(de),le(()=>{o.get(H)===de&&o.delete(H),s?.unobserve(de)})};return(()=>{var de=rk();return oe(ae,de),$(de,(()=>{var ie=Z(()=>!!ne());return()=>ie()?(()=>{var ve=ok();return $(ve,ne),te(pe=>{var ce=u(),Te=ge(p()?{[h()?"right":"left"]:-(f()/2)}:{top:-(f()/2)});return ce!==pe.e&&V(ve,"data-axis",pe.e=ce),pe.t=Ee(ve,Te,pe.t),pe},{e:void 0,t:void 0}),ve})():null})(),null),$(de,()=>e.renderItem(W),null),te(ie=>{var ve=W(),pe=j()&&D().offset!==k()[W()]?"":void 0,ce=ge({...K(X()),...j()?{zIndex:1}:{}});return ve!==ie.e&&V(de,"data-index",ie.e=ve),pe!==ie.t&&V(de,"data-pinned",ie.t=pe),ie.a=Ee(de,ce,ie.a),ie},{e:void 0,t:void 0,a:void 0}),de})()}})),te(H=>{var W=e.class?`xui-list-window ${e.class}`:"xui-list-window",j=u(),X=G(),ne=M().start,ae=M().end;return W!==H.e&&an(E,H.e=W),j!==H.t&&V(E,"data-axis",H.t=j),H.a=Ee(E,X,H.a),ne!==H.o&&V(E,"data-window-start",H.o=ne),ae!==H.i&&V(E,"data-window-end",H.i=ae),H},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),E})()}var Xn=F("<div>"),ik=F("<div class=xui-list-row>"),sk=F("<div class=xui-list-gap aria-hidden=true>"),ak=F("<div><span> ");function lk(e){const t=()=>re(e.props.pressable)||!!e.node.on?.press,n=r=>{r.target===r.currentTarget&&(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),e.emit("press"))};return x(J,{get when(){return t()},get fallback(){return(()=>{var r=Xn();return I(r,S(()=>e.rootProps),!1,!0),$(r,()=>e.children),r})()},get children(){var r=Xn();return I(r,S(()=>e.rootProps,{"data-pressable":"true",role:"button",tabindex:"0",onClick:()=>{e.emit("press")},onKeyDown:n}),!1,!0),$(r,()=>e.children),r}})}const ck=va;function dk(e){const t=se(),n=me(e),r=()=>re(e.props.divided),o=()=>e.props.direction==="horizontal",i=()=>U(e.props.gap,"none"),s=()=>t.theme.tokens,a=()=>i()==="none"?0:ue(s().spacing?.[i()],0),l=()=>ue(s().control?.hairline,1),c=()=>ue(s().control?.row,40),d=N(()=>Rf(t,e.node,e.scope)),u=()=>e.node.children.length,p=()=>u()+(d()?.items.length??0),h=()=>U(e.props.sectionBy),f=N(()=>{const E=d();return h()&&E?fy(E.items.map(R=>Xr(t.data,R.path)),h()):null}),b=N(()=>{const E=[],R=u();for(let W=0;W<R;W++)E.push({item:W});const H=f();if(H)for(const W of hy(H))E.push("header"in W?W:{item:R+W.item});else for(let W=R,j=p();W<j;W++)E.push({item:W});return E}),m=()=>re(e.props.stickyHeaders)&&f()!==null,v=()=>p()>ck||m(),g=()=>a()+(r()?l():0),y=()=>i()==="none"?r()?`${l()}px`:void 0:r()?`calc(var(--xui-spacing-${i()}) + ${l()}px)`:`var(--xui-spacing-${i()})`,k=()=>mt(e.rootProps,{gap:v()?void 0:y()}),w=()=>o()&&t.direction==="rtl",_=N(()=>{const E=u(),R=e.node.children,H=d()?.items;return b().map(W=>"header"in W?`s:${W.header}`:W.item<E?R[W.item].id:`t:${H[W.item-E].key}`)}),T=E=>_()[E],C=E=>{if(!r()||E===0)return null;const R=b()[E],H=b()[E-1];return"item"in R&&"item"in H?R.item:null};let M,P;const D=E=>{const R=d()?u()+E:E;return b().findIndex(H=>"item"in H&&H.item===R)};fe(()=>{const E=e.domId;le(t.registerScroller(E,(R,H)=>{const W=D(R);if(!(W<0))if(v())M?.scrollToIndex(W,H);else{const j=P?.querySelector(`:scope > [data-xui-row="${W}"]`),X=H==="center"?"center":H==="end"?"end":H==="start"?"start":"nearest";j?.scrollIntoView(o()?{inline:X,block:"nearest"}:{block:X,inline:"nearest"})}}))});const O=E=>x(uk,{get row(){return b()[E()]},get node(){return e.node},get tpl(){return d()},get sections(){return f()},get childCount(){return u()},part:n}),z=()=>e.rootProps.role==="tree"?"tree":"list",K=()=>z()==="tree"?"treeitem":"listitem",ee=E=>{const R=b()[E];return"item"in R?{role:K(),"aria-setsize":p(),"aria-posinset":R.item+1}:{role:K()}},q=E=>{const R=C(E);return R===null?null:(()=>{var H=Xn();return I(H,S(()=>n.at("divider",R),{role:"separator"}),!1,!1),H})()},A=()=>o()?"horizontal":"vertical",B=N(()=>_(),void 0,{equals:(E,R)=>E.length===R.length&&E.every((H,W)=>H===R[W])}),G=N(()=>new Map(B().map((E,R)=>[E,R])));return x(J,{get when(){return v()},get fallback(){return(()=>{var E=Xn(),R=P;return typeof R=="function"?oe(R,E):P=E,I(E,S(()=>e.rootProps,{get style(){return k()},get role(){return z()}}),!1,!0),$(E,x(xe,{get each(){return B()},children:H=>{const W=N(X=>G().get(H)??X),j=N(()=>q(W()));return(()=>{var X=ik();return I(X,S({get"data-axis"(){return A()},get"data-xui-row"(){return W()}},()=>ee(W())),!1,!0),$(X,(()=>{var ne=Z(()=>!!j());return()=>ne()?(()=>{var ae=sk();return $(ae,j),te(de=>{var ie=A(),ve=ge(o()?{[w()?"right":"left"]:-(g()/2)}:{top:-(g()/2)});return ie!==de.e&&V(ae,"data-axis",de.e=ie),de.t=Ee(ae,ve,de.t),de},{e:void 0,t:void 0}),ae})():null})(),null),$(X,()=>O(W),null),X})()}})),E})()},get children(){var E=Xn(),R=P;return typeof R=="function"?oe(R,E):P=E,I(E,S(()=>e.rootProps,{get style(){return k()},get role(){return z()}}),!1,!0),$(E,x(Ap,{ref:H=>M=H,get count(){return b().length},itemKey:T,get estimatedItemHeight(){return c()},get axis(){return A()},get direction(){return t.direction},get gap(){return g()},divider:q,get stickyRows(){return Z(()=>!!m())()?b().flatMap((H,W)=>"header"in H?[W]:[]):void 0},itemProps:ee,renderItem:O})),E}})}function uk(e){const t=N(()=>{const r=e.row;return"header"in r?`h${r.header}`:r.item<e.childCount?`c${r.item}`:`t${r.item-e.childCount}`}),n=r=>{const o=Number(r.slice(1));return r[0]==="h"?x(J,{get when(){return e.sections?.[o]},get children(){return(()=>{const i=Jn(()=>e.sections?.[o]);return(()=>{var s=Xn();return I(s,S(()=>e.part.at("section",o),{role:"heading","aria-level":3}),!1,!0),$(s,(()=>{var a=Z(()=>!!e.node.slots?.section);return()=>a()?x(pk,{get value(){return{value:i().value,count:i().count,index:o}},get pointer(){return`${Vo}/${e.node.id.replace(/[~/]/g,"_")}/sections/${o}`},suffix:`.${o}`,get node(){return e.node.slots.section}}):i().value})()),s})()})()}}):r[0]==="c"?x(Dt,{get node(){return e.node.children[o]}}):x(J,{get when(){return Z(()=>!!e.tpl)()&&e.tpl.items[o]},get children(){return(()=>{const i=Jn(()=>e.tpl),s=Jn(()=>e.tpl?.items[o]);return x(Nf,{get tpl(){return i().tpl},get item(){return s()}})})()}})};return Z(()=>{const r=t();return L(()=>n(r))})}function pk(e){const t=se(),n=Qr(),r=Ma(t,{data:()=>Tn(t.data,e.pointer,e.value),setData:()=>(o,i)=>{o!==e.pointer&&!o.startsWith(`${e.pointer}/`)&&t.setData(o,i)}});return x(Zr.Provider,{value:r,get children(){return x(xi.Provider,{value:()=>e.pointer,get children(){return x($i.Provider,{value:()=>`${n()}${e.suffix}`,get children(){return x(Dt,{get node(){return e.node}})}})}})}})}function fk(e){const t=se(),n=me(e);return(()=>{var r=ak(),o=r.firstChild,i=o.firstChild;return I(r,S(()=>e.rootProps,{role:"note",get"data-xui-unknown"(){return U(e.props.component,e.node.component)}}),!1,!0),$(r,x(we,{slot:"Unknown.root",size:16}),o),I(o,S(()=>n("label")),!1,!0),$(o,()=>t.t("unknownComponent"),i),$(o,()=>U(e.props.component,e.node.component),null),r})()}const hk=["Box","List","Resizable","Text","Markdown","CodeBlock","Image","Icon","Video","AudioPlayer","Avatar","QrCode","Carousel","Tabs","Segmented","Accordion","Dialog","Drawer","Popover","Tooltip","Menu","Toast","Ring","Spinner","Skeleton","VoiceWave","Table","Chart","Button","Link","Toggle","Form","Input","Textarea","NumberField","Checkbox","Radio","ChoiceTiles","Switch","Slider","Select","SearchList","ChipInput","DatePicker","DateRangePicker","TimePicker","FileUpload","QrScanner","Composer","TreeGuides","Unknown"];var gk=F("<div>");function mk(e){return(()=>{var t=gk();return I(t,S(()=>e.rootProps,{get"data-xui-pending"(){return e.node.component}}),!1,!0),$(t,()=>e.children),t})()}function ki(e,t,n="image"){const r=N(()=>n$(e(),t(),n)),o=N(()=>r().fetched?r().key:""),[i,s]=Y(null);return fe(()=>{const a=o();if(!a)return;let l=!0;const{promise:c,release:d}=r().open();c.then(u=>l&&s({for:a,url:u}),()=>l&&s({for:a,error:!0})),le(()=>{l=!1,d()})}),N(()=>{const a=r();if(!a.fetched)return{url:a.direct,error:a.denied};const l=i();return l?.for===a.key?{url:l.url,error:l.error===!0}:{url:void 0,error:!1}},void 0,{equals:(a,l)=>a.url===l.url&&a.error===l.error})}function Zo(e,t,n="image"){const r=ki(e,t,n);return()=>r().url}var yk=F("<div class=xui-Markdown-image role=img>"),Tp=F("<p class=xui-Markdown-paragraph>"),bk=F("<img alt>"),vk=F("<span class=xui-Markdown-imageAlt>"),xk=F("<a class=xui-Markdown-link target=_blank rel=noreferrer>"),$k=F("<code class=xui-Markdown-code>"),wk=F("<strong>"),kk=F("<em>"),Sk=F("<del>"),Ck=F("<span class=xui-Markdown-link data-denied>"),Ak=F("<li class=xui-Markdown-listItem>"),Tk=F("<input type=checkbox readonly>"),Ik=F("<ol>"),Ek=F("<ul>"),_k=F("<pre class=xui-Markdown-codeBlock><code>"),Mk=F("<blockquote class=xui-Markdown-quote>"),Dk=F("<table class=xui-Markdown-table><thead><tr></tr></thead><tbody>"),Pk=F("<th>"),Ok=F("<tr>"),Fk=F("<td>"),zk=F("<hr>"),Rk=F("<div>");function Nk(e){const t=ki(()=>e.host,()=>e.src);return x(J,{get when(){return op(e.host,e.src)!==null},get fallback(){return Z(()=>!!e.alt)()?(()=>{var n=Tp();return $(n,()=>e.alt),n})():null},get children(){var n=yk();return $(n,(()=>{var r=Z(()=>!!(t().url&&!t().error));return()=>r()?(()=>{var o=bk();return te(()=>V(o,"src",t().url)),o})():(()=>{var o=vk();return $(o,()=>e.alt),o})()})()),te(()=>V(n,"aria-label",e.alt)),n}})}function Lk(e){const t=n=>{e.host.openUrl&&(n.preventDefault(),e.host.openUrl(e.href))};return(()=>{var n=xk();return n.$$click=t,$(n,()=>e.children),te(()=>V(n,"href",e.href)),n})()}function on(e,t){return e.map(n=>{if(typeof n=="string")return n;switch(n.type){case"code":return(()=>{var r=$k();return $(r,()=>n.text),r})();case"strong":return(()=>{var r=wk();return $(r,()=>on(n.children,t)),r})();case"em":return(()=>{var r=kk();return $(r,()=>on(n.children,t)),r})();case"del":return(()=>{var r=Sk();return $(r,()=>n.text),r})();case"link":{const r=bi(t,n.dest),o=on(n.children,t);return r?x(Lk,{host:t,href:r,children:o}):(()=>{var i=Ck();return $(i,o),i})()}}return null})}function Ip(e,t){const n=e.items.map(r=>(()=>{var o=Ak();return $(o,(()=>{var i=Z(()=>r.task===void 0);return()=>i()?null:(()=>{var s=Tk();return te(()=>V(s,"checked",r.task?"":void 0)),te(()=>s.checked=r.task),s})()})(),null),$(o,()=>r.task===void 0?null:" ",null),$(o,()=>on(r.content,t),null),$(o,()=>r.children.map(i=>Ip(i,t)),null),te(()=>V(o,"data-task",r.task===void 0?void 0:r.task?"done":"todo")),o})());return e.ordered?(()=>{var r=Ik();return $(r,n),r})():(()=>{var r=Ek();return $(r,n),r})()}function jk(e,t){switch(e.type){case"paragraph":return(()=>{var n=Tp();return $(n,()=>on(e.children,t)),n})();case"image":return x(Nk,{host:t,get src(){return e.src},get alt(){return e.alt}});case"codeBlock":return(()=>{var n=_k(),r=n.firstChild;return $(r,()=>e.text),te(()=>V(n,"data-lang",e.lang)),n})();case"heading":return x(Dn,{get component(){return`h${Math.min(e.level,6)}`},class:"xui-Markdown-heading",get"data-level"(){return e.level},get children(){return on(e.children,t)}});case"quote":return(()=>{var n=Mk();return $(n,()=>Ep(e.children,t)),n})();case"list":return Ip(e.list,t);case"table":return(()=>{var n=Dk(),r=n.firstChild,o=r.firstChild,i=r.nextSibling;return $(o,x(xe,{get each(){return e.head},children:(s,a)=>(()=>{var l=Pk();return $(l,()=>on(s,t)),te(c=>Ee(l,ge(e.align[a()]?{textAlign:e.align[a()]}:void 0),c)),l})()})),$(i,x(xe,{get each(){return e.rows},children:s=>(()=>{var a=Ok();return $(a,x(xe,{each:s,children:(l,c)=>(()=>{var d=Fk();return $(d,()=>on(l,t)),te(u=>Ee(d,ge(e.align[c()]?{textAlign:e.align[c()]}:void 0),u)),d})()})),a})()})),n})();case"rule":return zk()}return null}function Ep(e,t){return e.map(n=>jk(n,t))}function Bk(e,t={}){return Ep(p$(e),t)}function Wk(e){const t=N(()=>Bk(e.text,e.host));return(()=>{var n=Rk();return $(n,t),te(()=>an(n,e.class?`xui-md ${e.class}`:"xui-md")),n})()}_t(["click"]);var _p=F("<span>"),Hk=F("<div>");function Uk(e){const t=()=>ue(e.props.lines,0),n=()=>e.props.align==="end"?"end":e.props.align==="center"?"center":e.props.align==="start"?"start":void 0,r=()=>e.props.live==="polite"||e.props.live==="assertive"?e.props.live:void 0;return(()=>{var o=_p();return I(o,S(()=>e.rootProps,{get"aria-live"(){return r()},get"aria-atomic"(){return r()?!0:void 0},get"data-xui-align"(){return n()},get"data-lines"(){return Z(()=>t()>0)()?t():void 0},get"data-clamp"(){return t()>1?"":void 0},get"data-xui-shimmer"(){return e.props.shimmer===!0?"":void 0},get style(){return mt(e.rootProps,t()>1?{WebkitLineClamp:t()}:void 0)}}),!1,!0),$(o,()=>Hr(e.props.text)),o})()}function qk(e){const t=se(),n=()=>Hr(e.props.text),r=()=>ue(e.props.lines,0);return(()=>{var o=Hk();return I(o,S(()=>e.rootProps,{get"data-lines"(){return Z(()=>r()>0)()?r():void 0},get style(){return mt(e.rootProps,r()>0?{WebkitLineClamp:r()}:void 0)}}),!1,!0),$(o,(()=>{var i=Z(()=>!!t.host.Markdown);return()=>i()?x(Dn,{get component(){return t.host.Markdown},get text(){return n()},class:"xui-md"}):x(Wk,{get text(){return n()},get host(){return t.host}})})()),o})()}function Vk(e){const t=se(),n=()=>U(e.props.name,"ui-icon-placeholder"),r=()=>U(e.props.label);return(()=>{var o=_p();return I(o,S(()=>e.rootProps,{get role(){return r()?"img":void 0},get"aria-label"(){return r()||void 0},get"aria-hidden"(){return r()?void 0:!0}}),!1,!0),$(o,x(nt,{get icons(){return t.host.icons},get name(){return n()}})),o})()}function Oe(e,t,n,r,o=i=>JSON.stringify(i)??""){const i=se(),s=N(()=>Or(e().props,n,t())),[a,l]=Y(L(r)),c=N(()=>o(r()));let d=L(c);return Xt(De(c,p=>{d!==p&&(d=p,l(()=>L(r)))},{defer:!0})),[a,(p,h=p)=>{l(()=>p),d=o(p);const f=L(s);f&&i.setData(f,h)},s]}var Kk=F("<button>"),wr=F("<span>"),Gk=F("<a>"),Yk=F("<button type=button>");function Xk(){const[e,t]=Y(!1);let n=!0;return le(()=>n=!1),{pending:e,track:o=>{o&&typeof o.then=="function"&&(t(!0),o.then(()=>n&&t(!1),()=>n&&t(!1)))}}}function Zk(e){const[t,n]=Y(!1);return fe(()=>{if(!e()){n(!1);return}const r=setTimeout(()=>n(!0),ty);le(()=>clearTimeout(r))}),()=>e()&&t()}function Qk(e){const t=se(),n=me(e),r=Cp(),o=()=>re(e.props.submit)&&r!==null,{pending:i,track:s}=Xk(),a=()=>U(e.props.label),l=()=>U(e.props.icon),c=()=>re(e.props.loading)||i()||o()&&r.busy,d=()=>re(e.props.disabled)||c(),u=()=>e.props.size==="icon",p=()=>e.node.children.length>0,h=Zk(c),f=()=>U(e.props.pendingLabel),b=()=>h()&&f()?f():a();let m;const v=N(()=>h()&&(m?.offsetWidth??0)||null);let g=!1;const y=()=>{const P=e.rootProps.style,D=h()?v():null,O=D?{...P??{},...ge({minWidth:D})}:P;return O&&(g=!0),O??(g?{}:void 0)},k=()=>re(e.props.hold),{held:w,handlers:_}=Jk(k,d,P=>e.emit(P)),T=()=>U(e.props.holdingLabel),C=()=>w()&&T()?T():b(),M=()=>[...t.states??[],d()?"disabled":"",i()?"pending":"",w()?"pressed":""].filter(Boolean).join(" ")||void 0;return(()=>{var P=Kk(),D=m;return typeof D=="function"?oe(D,P):m=P,I(P,S(()=>e.rootProps,{get style(){return y()},type:"button",get disabled(){return d()},get"aria-busy"(){return c()||void 0},get"data-pending"(){return h()?"true":void 0},get"aria-label"(){return Z(()=>!!(u()&&a()))()?a():void 0},get"data-xs"(){return M()},get"data-submit"(){return o()?"true":void 0},get"data-hold"(){return k()?"true":void 0},get onPointerDown(){return _.onPointerDown},get onPointerMove(){return _.onPointerMove},get onPointerUp(){return _.onPointerUp},get onPointerCancel(){return _.onPointerCancel},get onKeyDown(){return _.onKeyDown},get onKeyUp(){return _.onKeyUp},get onBlur(){return _.onBlur},get onContextMenu(){return _.onContextMenu},onClick:O=>{O.stopPropagation(),!k()&&(s(e.emit("press")),o()&&r.submit())}}),!1,!0),$(P,(()=>{var O=Z(()=>!!h());return()=>O()?(()=>{var z=wr();return I(z,S(()=>n("spinner")),!1,!0),$(z,x(Pa,{get icon(){return wp.spinner},"aria-hidden":"true"})),z})():Z(()=>!!l())()?(()=>{var z=wr();return I(z,S(()=>n("icon")),!1,!0),$(z,x(nt,{get icons(){return t.host.icons},get name(){return l()}})),z})():null})(),null),$(P,x(J,{get when(){return p()},get fallback(){return Z(()=>!!(!u()&&C()))()?(()=>{var O=wr();return I(O,S(()=>n("label")),!1,!0),$(O,C),O})():null},get children(){return e.children}}),null),P})()}function Jk(e,t,n){const[r,o]=Y(!1),i=new Px(c=>{n(c)},o,()=>t());fe(()=>{(t()||!e())&&i.reset()}),le(()=>i.reset());const s=c=>c.getBoundingClientRect(),a=e;return{held:()=>e()&&r(),handlers:{onPointerDown:c=>{if(a()&&!(c.button!==void 0&&c.button!==0)&&i.pointerDown(c.pointerId??null))try{c.currentTarget.setPointerCapture?.(c.pointerId)}catch{}},onPointerMove:c=>a()&&i.pointerMove(s(c.currentTarget),c.clientX??0,c.clientY??0,c.pointerId??null),onPointerUp:c=>a()&&i.pointerUp(s(c.currentTarget),c.clientX??0,c.clientY??0,c.pointerId??null),onPointerCancel:c=>a()&&i.pointerCancel(c.pointerId??null),onKeyDown:c=>{a()&&i.keyDown(c.key,c.repeat)&&c.preventDefault()},onKeyUp:c=>{a()&&i.keyUp(c.key)&&c.preventDefault()},onBlur:()=>a()&&i.blur(),onContextMenu:c=>a()&&c.preventDefault()}}}function e2(e){const t=se(),n=()=>U(e.props.href),r=()=>bi(t.host,n()),o=()=>re(e.props.external),i=()=>U(e.props.label)||n();return(()=>{var s=Gk();return I(s,S(()=>e.rootProps,{get href(){return r()},get"data-denied"(){return n()&&!r()?"":void 0},get target(){return r()&&o()?"_blank":void 0},get rel(){return r()&&o()?"noreferrer noopener":void 0},onClick:a=>{const l=e.emit("press"),c=r();c?!o()&&l!==void 0?a.preventDefault():t.host.openUrl&&(a.preventDefault(),t.openUrl(c)):a.preventDefault()}}),!1,!0),$(s,i),s})()}function t2(e){const t=se(),n=me(e),[r,o]=Oe(()=>e.node,()=>e.scope,"pressed",()=>re(e.props.pressed)),i=()=>U(e.props.icon),s=()=>U(e.props.label);return(()=>{var a=Yk();return I(a,S({get"aria-pressed"(){return r()},get"data-state"(){return r()?"on":"off"}},()=>e.rootProps,{get"aria-label"(){return Z(()=>!!(i()&&s()))()?s():void 0},onClick:()=>{const l=!r();o(l),e.emit("change",{pressed:l},{pressed:l})}}),!1,!0),$(a,(()=>{var l=Z(()=>!!i());return()=>l()?(()=>{var c=wr();return I(c,S(()=>n("icon")),!1,!0),$(c,x(nt,{get icons(){return t.host.icons},get name(){return i()}})),c})():null})(),null),$(a,(()=>{var l=Z(()=>!!s());return()=>l()?(()=>{var c=wr();return I(c,S(()=>n("label")),!1,!0),$(c,s),c})():null})(),null),a})()}const n2={Button:Qk,Link:e2,Toggle:t2};function fo(e,t=!1){if(typeof window>"u"||typeof window.matchMedia!="function")return()=>t;const n=window.matchMedia(e),[r,o]=Y(n.matches),i=()=>o(n.matches);return n.addEventListener?.("change",i),oa()&&le(()=>n.removeEventListener?.("change",i)),r}function r2(e,t=0){const[n,r]=Y({width:t,height:0,measured:!1});return fe(()=>{const o=e();if(!o)return;const i=a=>{const l=up(o,a?.find(d=>d.target===o)),c=n();!c.measured&&l.width===0&&l.height===0||c.measured&&c.width===l.width&&c.height===l.height||r({width:l.width,height:l.height,measured:!0})};if(i(),typeof ResizeObserver>"u")return;const s=new ResizeObserver(a=>i(a));s.observe(o),le(()=>s.disconnect())}),n}var o2=F("<svg><path fill-rule=evenodd stroke=var(--xui-color-background) stroke-width=1></svg>",!1,!0,!1),ss=F("<svg><text></svg>",!1,!0,!1),i2=F("<svg><g><path fill=none stroke-linejoin=round stroke-linecap=round></svg>",!1,!0,!1),s2=F("<svg><path opacity=0.18></svg>",!1,!0,!1),a2=F("<svg><circle></svg>",!1,!0,!1),l2=F("<svg><rect></svg>",!1,!0,!1),Dc=F("<div>"),c2=F("<strong>"),d2=F("<span class=xui-chart-tip-row><i>"),u2=F("<span>"),p2=F("<svg><g></svg>",!1,!0,!1),f2=F("<svg><rect class=xui-chart-band fill=currentColor opacity=0.06></svg>",!1,!0,!1),Pc=F("<svg><text text-anchor=middle></svg>",!1,!0,!1),h2=F("<svg><text x=0 y=0 text-anchor=middle></svg>",!1,!0,!1),g2=F("<svg><g><line stroke=currentColor stroke-width=1 opacity=0.6 shape-rendering=crispEdges></svg>",!1,!0,!1),m2=F("<caption>"),y2=F("<table class=xui-sr-only><thead><tr><th scope=col></th></tr></thead><tbody>"),b2=F("<div><div class=xui-chart-plot><svg role=img class=xui-chart-svg>"),v2=F("<svg><line></svg>",!1,!0,!1),x2=F("<svg><text dominant-baseline=middle></svg>",!1,!0,!1),$2=F("<span><i>"),w2=F("<th scope=col>"),k2=F("<tr><th scope=row>"),S2=F("<td>");const yn=(e,t)=>Cn(u0(e,t))??"currentColor",yr=11;function C2(e){const t=se(),n=me(e),r=Ae(),o=()=>U(e.props.kind,"bar"),i=()=>o()==="sparkline",s=()=>o()==="pie"||o()==="donut",a=N(()=>Le(e.props.series).map(q=>({name:U(q?.name),tone:q?.tone,values:Lt(q?.values).map(A=>ue(A,NaN))}))),l=N(()=>Lt(e.props.categories).map(String)),c=()=>Math.max(l().length,Math.max(0,...a().map(q=>q.values.length))),d=()=>Math.max(16,ue(e.props.height,i()?24:200)),u=()=>!i()&&!s()&&e.props.showAxes!==!1,p=()=>!i()&&!s()&&e.props.showGrid!==!1,h=()=>re(e.props.showValues),[f,b]=Y(null),m=r2(f,320),v=q=>t.formatter.number(q),[g,y]=Y(null);let k;const w=N(()=>{const q=o(),A=i(),B=s(),G=a(),E=c(),R=Math.max(40,m().width||320),H=Math.max(16,m().measured&&m().height>0?m().height:d()),W=l0(q,G,e.props.min===void 0?void 0:ue(e.props.min),e.props.max===void 0?void 0:ue(e.props.max)),j=A||B?{min:W.min,max:W.max,step:0,ticks:[]}:d0(W.min,W.max,5),X=j.min,ne=j.max===j.min?j.min+1:j.max,ae=j.ticks.map(Se=>v(Se)),de=U(e.props.yLabel),ie=U(e.props.xLabel),ve=u(),pe=h(),ce={l:(ve?Math.max(...ae.map(Se=>Se.length),1)*yr*.62+8:A?1:4)+(de?16:0),r:A?1:8,t:A?2:pe?16:8,b:(ve?yr+10:A?2:4)+(ie?16:0)},Te=Math.max(1,R-ce.l-ce.r),Ie=Math.max(1,H-ce.t-ce.b),_e=Se=>ce.t+Ie-(Math.min(ne,Math.max(X,Se))-X)/(ne-X)*Ie,ze=Te/Math.max(1,E),en=Se=>A?ce.l+(E<=1?Te/2:Te*Se/(E-1)):ce.l+ze*(Se+.5),yt=_e(Math.max(X,Math.min(ne,0))),dr=t.direction==="rtl"&&!B,ur=Se=>dr?R-Se:Se,hn=Se=>ur(en(Se)),Fi=[],to=[],On=[],pr=[];if(B){const Se=Math.min(Te,Ie)/2,Ne=ce.l+Te/2,Pe=ce.t+Ie/2,Xe=q==="donut"?Se*p0:0,We=(Se-Xe)/Math.max(1,G.length);G.forEach((Q,he)=>{const ye=Xe+We*he,be=ye+We,Ve=Q.values.reduce((et,bt)=>et+(Number.isFinite(bt)&&bt>0?bt:0),0)||1;let He=-Math.PI/2;Q.values.forEach((et,bt)=>{const ke=(Number.isFinite(et)&&et>0?et:0)/Ve,Ze=He+ke*2*Math.PI;if(ke>0){const vt=Ze-He>Math.PI?1:0,xt=(gr,ro)=>`${Ne+gr*Math.cos(ro)},${Pe+gr*Math.sin(ro)}`,no=ke>=.9999?`M${Ne-be},${Pe} A${be},${be} 0 1 1 ${Ne+be},${Pe} A${be},${be} 0 1 1 ${Ne-be},${Pe} ${ye>0?`M${Ne-ye},${Pe} A${ye},${ye} 0 1 0 ${Ne+ye},${Pe} A${ye},${ye} 0 1 0 ${Ne-ye},${Pe}`:""}Z`:ye>0?`M${xt(be,He)} A${be},${be} 0 ${vt} 1 ${xt(be,Ze)} L${xt(ye,Ze)} A${ye},${ye} 0 ${vt} 0 ${xt(ye,He)} Z`:`M${Ne},${Pe} L${xt(be,He)} A${be},${be} 0 ${vt} 1 ${xt(be,Ze)} Z`,fr=(He+Ze)/2,hr=(ye+be)/2;Fi.push({si:he,i:bt,d:no,label:pe?{x:Ne+hr*Math.cos(fr),y:Pe+hr*Math.sin(fr),v:et}:null})}He=Ze})})}else if(q==="line"||q==="area"||A)G.forEach((Se,Ne)=>{const Pe=Se.values.map((We,Q)=>Number.isFinite(We)?[hn(Q),_e(We)]:null).filter(We=>We!==null);if(Pe.length===0)return void On.push(null);const Xe=`M${Pe.map(We=>We.join(",")).join(" L")}`;On.push({si:Ne,color:yn(Ne,Se.tone),line:Xe,area:q==="area"?`${Xe} L${Pe[Pe.length-1][0]},${yt} L${Pe[0][0]},${yt} Z`:null,dots:A?[]:Se.values.flatMap((We,Q)=>Number.isFinite(We)?[{i:Q,cx:hn(Q),cy:_e(We)}]:[])})}),pe&&G.forEach((Se,Ne)=>Se.values.forEach((Pe,Xe)=>Number.isFinite(Pe)?pr.push({si:Ne,i:Xe,x:hn(Xe),y:_e(Pe)-6,v:Pe}):void 0));else{const Se=q==="stackedBar",Ne=ze*.72,Pe=Se?Ne:Ne/Math.max(1,G.length);for(let Xe=0;Xe<E;Xe++){let We=0;G.forEach((Q,he)=>{const ye=Q.values[Xe];if(!Number.isFinite(ye))return;const be=ce.l+ze*Xe+(ze-Ne)/2+(Se?0:Pe*he),Ve=Se?We:0,He=Se?We+Math.max(0,ye):ye;Se&&(We=He);const et=Math.min(_e(Ve),_e(He)),bt=Math.abs(_e(Ve)-_e(He)),ke=Math.max(1,Pe-(Se?0:2));to.push({si:he,i:Xe,x:dr?R-be-ke:be,y:et,w:ke,h:Math.max(0,bt),rx:Se?0:2,fill:yn(he,Q.tone),label:pe?{x:ur(be+Pe/2),y:Se?et+bt/2:et-4,middle:Se,v:ye}:null})})}}return{width:R,height:H,ticks:j,tickText:ae,yLabel:de,xLabel:ie,pad:ce,innerW:Te,innerH:Ie,y:_e,slot:ze,zero:yt,rtl:dr,mx:ur,px:hn,arcs:Fi,bars:to,lines:On,lineValues:pr}}),_=()=>s()?l().map((q,A)=>({name:q,color:yn(A)})):a().map((q,A)=>({name:q.name,color:yn(A,q.tone)})),T=()=>e.props.showLegend!==!1&&!i()&&_().length>=2,C=()=>U(e.props.title),M=()=>{const q=c0(a()),A=t.t("chartSummary",{series:q.series,min:v(q.min),max:v(q.max)});return C()?`${C()}: ${A}`:A},P=q=>{const A=c();if(A!==0)if(q.key==="ArrowRight"||q.key==="ArrowLeft"){q.preventDefault();const B=t.direction==="rtl",G=q.key==="ArrowRight"!==B?1:-1;y(E=>E===null?G>0?0:A-1:(E+G+A)%A)}else q.key==="Home"?y(0):q.key==="End"?y(A-1):q.key==="Escape"&&y(null)},D=q=>{const A=c();if(s()||A===0)return;const B=k?.getBoundingClientRect();if(!B)return;const G=w(),E=(G.rtl?B.right-q.clientX:q.clientX-B.left)/Ks(B.width,G.width)-G.pad.l,R=i()?Math.round(E/G.innerW*(A-1)):Math.floor(E/G.slot);y(R>=0&&R<A?R:null)},O=(q,A)=>g()===null||g()===q?1:A,z=()=>n("valueLabel"),K=()=>{const q=w();return s()?[Z(()=>q.arcs.map(A=>(()=>{var B=o2();return B.addEventListener("pointerenter",()=>y(A.i)),te(G=>{var E=A.d,R=yn(A.i),H=A.i,W=g()===A.i?"":void 0,j=O(A.i,.55);return E!==G.e&&V(B,"d",G.e=E),R!==G.t&&V(B,"fill",G.t=R),H!==G.a&&V(B,"data-category",G.a=H),W!==G.o&&V(B,"data-active",G.o=W),j!==G.i&&V(B,"opacity",G.i=j),G},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),B})())),Z(()=>q.arcs.map(A=>A.label?(()=>{var B=ss();return I(B,S(z,{get x(){return A.label.x},get y(){return A.label.y},"text-anchor":"middle","dominant-baseline":"middle"}),!0,!0),$(B,()=>v(A.label.v)),B})():null))]:o()==="line"||o()==="area"||i()?[Z(()=>q.lines.map(A=>A?(()=>{var B=i2(),G=B.firstChild;return $(B,(()=>{var E=Z(()=>A.area!==null);return()=>E()?(()=>{var R=s2();return te(H=>{var W=A.area,j=A.color;return W!==H.e&&V(R,"d",H.e=W),j!==H.t&&V(R,"fill",H.t=j),H},{e:void 0,t:void 0}),R})():null})(),G),$(B,()=>A.dots.map(E=>(()=>{var R=a2();return te(H=>{var W=E.cx,j=E.cy,X=g()===E.i?4:2.5,ne=A.color;return W!==H.e&&V(R,"cx",H.e=W),j!==H.t&&V(R,"cy",H.t=j),X!==H.a&&V(R,"r",H.a=X),ne!==H.o&&V(R,"fill",H.o=ne),H},{e:void 0,t:void 0,a:void 0,o:void 0}),R})()),null),te(E=>{var R=A.si,H=A.line,W=A.color,j=i()?1.5:2;return R!==E.e&&V(B,"data-series",E.e=R),H!==E.t&&V(G,"d",E.t=H),W!==E.a&&V(G,"stroke",E.a=W),j!==E.o&&V(G,"stroke-width",E.o=j),E},{e:void 0,t:void 0,a:void 0,o:void 0}),B})():null)),Z(()=>q.lineValues.map(A=>(()=>{var B=ss();return I(B,S(z,{get x(){return A.x},get y(){return A.y},"text-anchor":"middle"}),!0,!0),$(B,()=>v(A.v)),B})()))]:[Z(()=>q.bars.map(A=>(()=>{var B=l2();return te(G=>{var E=A.x,R=A.y,H=A.w,W=A.h,j=A.rx,X=A.fill,ne=O(A.i,.6);return E!==G.e&&V(B,"x",G.e=E),R!==G.t&&V(B,"y",G.t=R),H!==G.a&&V(B,"width",G.a=H),W!==G.o&&V(B,"height",G.o=W),j!==G.i&&V(B,"rx",G.i=j),X!==G.n&&V(B,"fill",G.n=X),ne!==G.s&&V(B,"opacity",G.s=ne),G},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0}),B})())),Z(()=>q.bars.map(A=>A.label?(()=>{var B=ss();return I(B,S(z,{get x(){return A.label.x},get y(){return A.label.y},"text-anchor":"middle",get"dominant-baseline"(){return A.label.middle?"middle":void 0}}),!0,!0),$(B,()=>v(A.label.v)),B})():null))]},ee=()=>{const q=g();if(q===null||q>=c())return null;const A=w(),B=s()?A.pad.l+A.innerW/2:A.px(q),G=l()[q];return(()=>{var E=Dc();return I(E,S(()=>n("tooltip"),{role:"presentation",get style(){return ge({position:"absolute",left:Math.min(Math.max(0,B-60),A.width-120),top:A.pad.t,pointerEvents:"none"})},"data-category":q}),!1,!0),$(E,G?(()=>{var R=c2();return $(R,G),R})():null,null),$(E,()=>a().map((R,H)=>(()=>{var W=d2(),j=W.firstChild;return $(W,(()=>{var X=Z(()=>!!R.name);return()=>X()?`${R.name}: `:""})(),null),$(W,(()=>{var X=Z(()=>!!Number.isFinite(R.values[q]));return()=>X()?v(R.values[q]):"—"})(),null),te(X=>Ee(j,ge({background:s()?yn(q):yn(H,R.tone)}),X)),W})()),null),E})()};return(()=>{var q=b2(),A=q.firstChild,B=A.firstChild;I(q,S(()=>e.rootProps,{get style(){return mt(e.rootProps,{height:d()})},get"data-kind"(){return o()},get"data-mirrored"(){return w().rtl?"true":void 0}}),!1,!0),$(q,x(J,{get when(){return C()},get children(){var E=u2();return I(E,S(()=>n("title"),{id:`${r}-title`}),!1,!0),$(E,C),E}}),A),oe(b,A),B.addEventListener("blur",()=>y(null)),B.addEventListener("pointerleave",()=>y(null)),B.$$pointermove=E=>i()?void 0:D(E),B.$$keydown=E=>i()?void 0:P(E);var G=k;return typeof G=="function"?oe(G,B):k=B,$(B,x(J,{get when(){return p()},get children(){var E=p2();return I(E,S(()=>n("grid"),{stroke:"currentColor","stroke-width":1,"shape-rendering":"crispEdges"}),!0,!0),$(E,x(xe,{get each(){return w().ticks.ticks},children:R=>(()=>{var H=v2();return te(W=>{var j=w().mx(w().pad.l),X=w().mx(w().width-w().pad.r),ne=Math.round(w().y(R))+.5,ae=Math.round(w().y(R))+.5;return j!==W.e&&V(H,"x1",W.e=j),X!==W.t&&V(H,"x2",W.t=X),ne!==W.a&&V(H,"y1",W.a=ne),ae!==W.o&&V(H,"y2",W.o=ae),W},{e:void 0,t:void 0,a:void 0,o:void 0}),H})()})),E}}),null),$(B,x(J,{get when(){return Z(()=>!s()&&g()!==null)()&&!i()},get children(){var E=f2();return te(R=>{var H=w().rtl?w().width-w().pad.l-w().slot*(g()+1):w().pad.l+w().slot*g(),W=w().pad.t,j=w().slot,X=w().innerH;return H!==R.e&&V(E,"x",R.e=H),W!==R.t&&V(E,"y",R.t=W),j!==R.a&&V(E,"width",R.a=j),X!==R.o&&V(E,"height",R.o=X),R},{e:void 0,t:void 0,a:void 0,o:void 0}),E}}),null),$(B,K,null),$(B,x(J,{get when(){return u()},get children(){var E=g2(),R=E.firstChild;return I(E,S(()=>n("axis"),{fill:"currentColor","font-size":11}),!0,!0),$(E,x(ft,{get each(){return w().ticks.ticks},children:(H,W)=>(()=>{var j=x2();return $(j,()=>w().tickText[W]),te(X=>{var ne=w().mx(w().pad.l-6),ae=w().y(H()),de=w().rtl?"start":"end";return ne!==X.e&&V(j,"x",X.e=ne),ae!==X.t&&V(j,"y",X.t=ae),de!==X.a&&V(j,"text-anchor",X.a=de),X},{e:void 0,t:void 0,a:void 0}),j})()}),null),$(E,x(ft,{get each(){return l()},children:(H,W)=>(()=>{var j=Pc();return $(j,H),te(X=>{var ne=w().px(W),ae=w().pad.t+w().innerH+yr+4;return ne!==X.e&&V(j,"x",X.e=ne),ae!==X.t&&V(j,"y",X.t=ae),X},{e:void 0,t:void 0}),j})()}),null),$(E,x(J,{get when(){return w().xLabel},get children(){var H=Pc();return $(H,()=>w().xLabel),te(W=>{var j=w().mx(w().pad.l+w().innerW/2),X=w().height-3;return j!==W.e&&V(H,"x",W.e=j),X!==W.t&&V(H,"y",W.t=X),W},{e:void 0,t:void 0}),H}}),null),$(E,x(J,{get when(){return w().yLabel},get children(){var H=h2();return $(H,()=>w().yLabel),te(()=>V(H,"transform",`translate(${w().rtl?w().width-yr:yr}, ${w().pad.t+w().innerH/2}) rotate(${w().rtl?90:-90})`)),H}}),null),te(H=>{var W=w().mx(w().pad.l),j=w().mx(w().width-w().pad.r),X=w().zero,ne=w().zero;return W!==H.e&&V(R,"x1",H.e=W),j!==H.t&&V(R,"x2",H.t=j),X!==H.a&&V(R,"y1",H.a=X),ne!==H.o&&V(R,"y2",H.o=ne),H},{e:void 0,t:void 0,a:void 0,o:void 0}),E}}),null),$(A,ee,null),$(q,x(J,{get when(){return T()},get children(){var E=Dc();return I(E,S(()=>n("legend")),!1,!0),$(E,x(xe,{get each(){return _()},children:R=>(()=>{var H=$2(),W=H.firstChild;return $(H,()=>R.name,null),te(j=>Ee(W,ge({background:R.color}),j)),H})()})),E}}),null),$(q,x(J,{get when(){return!i()},get children(){var E=y2(),R=E.firstChild,H=R.firstChild;H.firstChild;var W=R.nextSibling;return $(E,x(J,{get when(){return C()},get children(){var j=m2();return $(j,C),j}}),R),$(H,x(xe,{get each(){return a()},children:j=>(()=>{var X=w2();return $(X,()=>j.name),X})()}),null),$(W,x(xe,{get each(){return Array.from({length:c()},(j,X)=>X)},children:j=>(()=>{var X=k2(),ne=X.firstChild;return $(ne,()=>l()[j]??String(j+1)),$(X,x(xe,{get each(){return a()},children:ae=>(()=>{var de=S2();return $(de,(()=>{var ie=Z(()=>!!Number.isFinite(ae.values[j]));return()=>ie()?v(ae.values[j]):""})()),de})()}),null),X})()})),E}}),null),te(E=>{var R=w().width,H=w().height,W=`0 0 ${w().width} ${w().height}`,j=M(),X=i()?void 0:0;return R!==E.e&&V(B,"width",E.e=R),H!==E.t&&V(B,"height",E.t=H),W!==E.a&&V(B,"viewBox",E.a=W),j!==E.o&&V(B,"aria-label",E.o=j),X!==E.i&&V(B,"tabindex",E.i=X),E},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),q})()}const A2={Chart:C2};_t(["keydown","pointermove"]);function Fa(e){let t=null;const n=(r,o)=>e.style.setProperty(r,o===void 0?"":o);return r=>{if(t){for(const o of Object.keys(t))o in r||n(o,"");for(const o of Object.keys(r))t[o]!==r[o]&&n(o,r[o])}else for(const o of Object.keys(r))n(o,r[o]);t={...r}}}function Rr(e,t){const n=Fa(e);te(()=>n(t()))}function dn(e){return x(J,{get when(){return e.mount},children:t=>{const n=t(),r=Po(()=>e.children),o=document.createTextNode("");return n.appendChild(o),$(n,r,o),le(()=>{for(const i of[r()].flat(1/0))i instanceof Node&&i.parentNode===n&&n.removeChild(i);o.remove()}),null}})}function Mp(e,t){e.appendChild(t),le(()=>t.parentNode?.removeChild(t))}function In(e){const[t,n]=Y(L(e));let r,o="none",i;const s=a=>getComputedStyle(a).animationName||"none";return fe(De(e,a=>{if(i?.(),i=void 0,a){n(!0);return}const l=r;if(!l||!l.isConnected)return n(!1);const c=getComputedStyle(l),d=c.animationName||"none";if(d==="none"||c.display==="none"||d===o)return n(!1);const u=p=>{p.target!==l||!s(l).split(",").map(h=>h.trim()).includes(p.animationName)||(i?.(),n(!1))};l.addEventListener("animationend",u),l.addEventListener("animationcancel",u),i=()=>{l.removeEventListener("animationend",u),l.removeEventListener("animationcancel",u)}},{defer:!0})),le(()=>i?.()),{mounted:t,ref:a=>{r=a,a.addEventListener("animationstart",l=>{l.target===a&&L(e)&&(o=s(a))})}}}const Wt=[],Pt=[],[T2,Oc]=Y(0);let Fc="";const Si=pn();function Ys(e,t){if(!t)return!1;if(e.el?.contains(t))return!0;for(const n of e.kids)if(Ys(n,t))return!0;return!1}const zc=e=>{const t={target:e.target,detail:{originalEvent:e},defaultPrevented:!1,preventDefault:()=>t.defaultPrevented=!0};return t};function Ci(e){const t=Zt(Si),n={parent:t,kids:new Set},r=()=>e.disableOutsidePointerEvents?.()??!1,o=()=>{const a=Pt[Pt.length-1];return Wt.indexOf(n)>=(a?Wt.indexOf(a):-1)};return{layer:n,attach:a=>{n.el=a;const l=a.ownerDocument,c=L(r);c&&(Pt.length===0&&(Fc=l.body.style.pointerEvents,l.body.style.pointerEvents="none"),Pt.push(n)),Wt.push(n),t?.kids.add(n),Oc(b=>b+1);let d;const u=b=>{if(b.target&&!Ys(n,b.target)){const m=()=>{if(!o())return;const v=zc(b);e.onPointerDownOutside?.(v),e.onInteractOutside?.(v),v.defaultPrevented||e.onDismiss()};b.pointerType==="touch"?(d&&l.removeEventListener("click",d),d=m,l.addEventListener("click",d,{once:!0})):m()}else d&&l.removeEventListener("click",d)},p=b=>{if(!b.target||Ys(n,b.target))return;const m=zc(b);e.onFocusOutside?.(m),e.onInteractOutside?.(m),m.defaultPrevented||e.onDismiss()},h=b=>{b.key==="Escape"&&Wt.indexOf(n)===Wt.length-1&&(e.onEscapeKeyDown?.(b),b.defaultPrevented||(b.preventDefault(),e.onDismiss()))},f=setTimeout(()=>l.addEventListener("pointerdown",u),0);l.addEventListener("focusin",p),l.addEventListener("keydown",h,{capture:!0}),le(()=>{clearTimeout(f),l.removeEventListener("pointerdown",u),d&&l.removeEventListener("click",d),l.removeEventListener("focusin",p),l.removeEventListener("keydown",h,{capture:!0}),c&&Pt.length===1&&(l.body.style.pointerEvents=Fc),Wt.splice(Wt.indexOf(n),1);const b=Pt.indexOf(n);b>=0&&Pt.splice(b,1),t?.kids.delete(n),Oc(m=>m+1)})},pointerEvents:a=>{if(T2(),Pt.length===0)return;const l=Pt[Pt.length-1];return(a?Wt.indexOf(n):-1)>=Wt.indexOf(l)?"auto":"none"}}}const br=[];function Dp(e){je(()=>{const t=e.layer();if(!t)return;br.push(t);const n=a=>a instanceof Node&&(t.contains(a)||!!e.isInside?.(a)),r=a=>{a.key!=="Escape"||br[br.length-1]!==t||(a.preventDefault(),a.stopImmediatePropagation(),e.onDismiss())},o=a=>{n(a.target)||(e.onOutside?.(),e.onDismiss())},i=a=>{e.keepOnFocusOutside||n(a.target)||(e.onOutside?.(),e.onDismiss())};document.addEventListener("keydown",r,{capture:!0}),document.addEventListener("focusin",i);const s=window.setTimeout(()=>document.addEventListener("pointerdown",o));le(()=>{window.clearTimeout(s),document.removeEventListener("keydown",r,{capture:!0}),document.removeEventListener("focusin",i),document.removeEventListener("pointerdown",o);const a=br.indexOf(t);a>=0&&br.splice(a,1)})})}let $n=[];const I2=e=>{const t=$n[0];t&&t!==e&&(t.paused=!0),$n=[e,...$n.filter(n=>n!==e)]},E2=e=>{$n=$n.filter(t=>t!==e),$n[0]&&($n[0].paused=!1)};function Rc(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r,i=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||i?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Nc(e,t){if(e&&getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function nn(e,t=!1){if(!e?.focus)return;const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&t&&e instanceof HTMLInputElement&&"select"in e&&e.select()}function Qo(e,t=!1){const n=document.activeElement;for(const r of e)if(nn(r,t),document.activeElement!==n)return}const as="focusScope.autoFocusOnMount",ls="focusScope.autoFocusOnUnmount";function za(e){const t={paused:!1};let n;return{attach:i=>{let s=!1,a=!1,l=null,c=null;const d=h=>{if(!L(e.trapped)||t.paused)return;const f=h.target;i.contains(f)?c=f:nn(c,!0)},u=h=>{if(!L(e.trapped)||t.paused)return;const f=h.relatedTarget;f!==null&&(i.contains(f)||nn(c,!0))},p=new MutationObserver(h=>{if(!(!L(e.trapped)||t.paused)&&document.activeElement===document.body)for(const f of h)f.removedNodes.length>0&&nn(i)});queueMicrotask(()=>{if(!(a||!i.isConnected)){if(s=!0,n=i,I2(t),l=document.activeElement,!i.contains(l)){const h=new CustomEvent(as,{bubbles:!1,cancelable:!0}),f=b=>e.onMountAutoFocus?.(b);i.addEventListener(as,f),i.dispatchEvent(h),i.removeEventListener(as,f),h.defaultPrevented||(Qo(Rc(i).filter(b=>b.tagName!=="A"),!0),document.activeElement===l&&nn(i))}document.addEventListener("focusin",d),document.addEventListener("focusout",u),p.observe(i,{childList:!0,subtree:!0})}}),le(()=>{if(a=!0,!s)return;document.removeEventListener("focusin",d),document.removeEventListener("focusout",u),p.disconnect();const h=l;setTimeout(()=>{const f=new CustomEvent(ls,{bubbles:!1,cancelable:!0}),b=m=>e.onUnmountAutoFocus?.(m);i.addEventListener(ls,b),i.dispatchEvent(f),f.defaultPrevented||nn(h??document.body,!0),i.removeEventListener(ls,b),E2(t)},0)})},onKeyDown:i=>{if(!e.loop&&!L(e.trapped)||t.paused||!n)return;const s=i.key==="Tab"&&!i.altKey&&!i.ctrlKey&&!i.metaKey,a=document.activeElement;if(!s||!a)return;const l=Rc(n),c=l.find(u=>!Nc(u,n)),d=[...l].reverse().find(u=>!Nc(u,n));!c||!d?a===n&&i.preventDefault():!i.shiftKey&&a===d?(i.preventDefault(),e.loop&&nn(c,!0)):i.shiftKey&&a===c&&(i.preventDefault(),e.loop&&nn(d,!0))}}}let cs=0;function Lc(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}function Ra(){const e=document.querySelectorAll("[data-radix-focus-guard]");document.body.insertAdjacentElement("afterbegin",e[0]??Lc()),document.body.insertAdjacentElement("beforeend",e[1]??Lc()),cs++,le(()=>{cs===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),cs--})}const jn="data-scroll-locked";let ho=0,bn=null;function Pp(){const e=document.body,t=()=>{const n=parseInt(e.getAttribute(jn)||"0",10);return isFinite(n)?n:0};if(e.setAttribute(jn,String(t()+1)),ho===0){const n=getComputedStyle(e),r=d=>parseInt(d||"",10)||0,[o,i,s]=[r(n.marginLeft),r(n.marginTop),r(n.marginRight)],a=Math.max(0,window.innerWidth-document.documentElement.clientWidth+s-o),l="!important",c=`
460
+ .with-scroll-bars-hidden {
461
+ overflow: hidden ${l};
462
+ padding-right: ${a}px ${l};
463
+ }
464
+ body[${jn}] {
465
+ overflow: hidden ${l};
466
+ overscroll-behavior: contain;
467
+ ${[`position: relative ${l};`,`
468
+ padding-left: ${o}px;
469
+ padding-top: ${i}px;
470
+ padding-right: ${s}px;
471
+ margin-left:0;
472
+ margin-top:0;
473
+ margin-right: ${a}px ${l};
474
+ `].join("")}
475
+ }
476
+
477
+ .right-scroll-bar-position {
478
+ right: ${a}px ${l};
479
+ }
480
+
481
+ .width-before-scroll-bar {
482
+ margin-right: ${a}px ${l};
483
+ }
484
+
485
+ .right-scroll-bar-position .right-scroll-bar-position {
486
+ right: 0 ${l};
487
+ }
488
+
489
+ .width-before-scroll-bar .width-before-scroll-bar {
490
+ margin-right: 0 ${l};
491
+ }
492
+
493
+ body[${jn}] {
494
+ --removed-body-scroll-bar-size: ${a}px;
495
+ }
496
+ `;bn=document.createElement("style"),bn.type="text/css",bn.appendChild(document.createTextNode(c)),(document.head||document.getElementsByTagName("head")[0]).appendChild(bn)}ho++,le(()=>{const n=t()-1;n<=0?e.removeAttribute(jn):e.setAttribute(jn,String(n)),ho--,!ho&&bn&&(bn.remove(),bn=null)})}var _2=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Bn=new WeakMap,go=new WeakMap,mo={},ds=0,Op=function(e){return e&&(e.host||Op(e.parentNode))},M2=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Op(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},D2=function(e,t,n,r){var o=M2(t,Array.isArray(e)?e:[e]);mo[n]||(mo[n]=new WeakMap);var i=mo[n],s=[],a=new Set,l=new Set(o),c=function(u){!u||a.has(u)||(a.add(u),c(u.parentNode))};o.forEach(c);var d=function(u){!u||l.has(u)||Array.prototype.forEach.call(u.children,function(p){if(a.has(p))d(p);else try{var h=p.getAttribute(r),f=h!==null&&h!=="false",b=(Bn.get(p)||0)+1,m=(i.get(p)||0)+1;Bn.set(p,b),i.set(p,m),s.push(p),b===1&&f&&go.set(p,!0),m===1&&p.setAttribute(n,"true"),f||p.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",p,v)}})};return d(t),a.clear(),ds++,function(){s.forEach(function(u){var p=Bn.get(u)-1,h=i.get(u)-1;Bn.set(u,p),i.set(u,h),p||(go.has(u)||u.removeAttribute(r),go.delete(u)),h||u.removeAttribute(n)}),ds--,ds||(Bn=new WeakMap,Bn=new WeakMap,go=new WeakMap,mo={})}},P2=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=_2(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),D2(r,o,n,"aria-hidden")):function(){return null}};function Fp(e,t){const n=P2(e);le(n),t&&Pp()}const nr=Math.min,lt=Math.max,Jo=Math.round,yo=Math.floor,Nt=e=>({x:e,y:e}),O2={left:"right",right:"left",bottom:"top",top:"bottom"};function jc(e,t,n){return lt(e,nr(t,n))}function En(e,t){return typeof e=="function"?e(t):e}function Yt(e){return e.split("-")[0]}function Jr(e){return e.split("-")[1]}function Na(e){return e==="x"?"y":"x"}function zp(e){return e==="y"?"height":"width"}function Rt(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Rp(e){return Na(Rt(e))}function F2(e,t,n){n===void 0&&(n=!1);const r=Jr(e),o=Rp(e),i=zp(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=ei(s)),[s,ei(s)]}function z2(e){const t=ei(e);return[Xs(e),t,Xs(t)]}function Xs(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Bc=["left","right"],Wc=["right","left"],R2=["top","bottom"],N2=["bottom","top"];function L2(e,t,n){switch(e){case"top":case"bottom":return n?t?Wc:Bc:t?Bc:Wc;case"left":case"right":return t?R2:N2;default:return[]}}function j2(e,t,n,r){const o=Jr(e);let i=L2(Yt(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Xs)))),i}function ei(e){const t=Yt(e);return O2[t]+e.slice(t.length)}function B2(e){return{top:0,right:0,bottom:0,left:0,...e}}function W2(e){return typeof e!="number"?B2(e):{top:e,right:e,bottom:e,left:e}}function ti(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Hc(e,t,n){let{reference:r,floating:o}=e;const i=Rt(t),s=Rp(t),a=zp(s),l=Yt(t),c=i==="y",d=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,p=r[a]/2-o[a]/2;let h;switch(l){case"top":h={x:d,y:r.y-o.height};break;case"bottom":h={x:d,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:u};break;case"left":h={x:r.x-o.width,y:u};break;default:h={x:r.x,y:r.y}}switch(Jr(t)){case"start":h[s]-=p*(n&&c?-1:1);break;case"end":h[s]+=p*(n&&c?-1:1);break}return h}async function H2(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:p=!1,padding:h=0}=En(t,e),f=W2(h),m=a[p?u==="floating"?"reference":"floating":u],v=ti(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(m)))==null||n?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:l})),g=u==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,y=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),k=await(i.isElement==null?void 0:i.isElement(y))?await(i.getScale==null?void 0:i.getScale(y))||{x:1,y:1}:{x:1,y:1},w=ti(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:y,strategy:l}):g);return{top:(v.top-w.top+f.top)/k.y,bottom:(w.bottom-v.bottom+f.bottom)/k.y,left:(v.left-w.left+f.left)/k.x,right:(w.right-v.right+f.right)/k.x}}const U2=50,q2=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=s.detectOverflow?s:{...s,detectOverflow:H2},l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:u}=Hc(c,r,l),p=r,h=0;const f={};for(let b=0;b<i.length;b++){const m=i[b];if(!m)continue;const{name:v,fn:g}=m,{x:y,y:k,data:w,reset:_}=await g({x:d,y:u,initialPlacement:r,placement:p,strategy:o,middlewareData:f,rects:c,platform:a,elements:{reference:e,floating:t}});d=y??d,u=k??u,f[v]={...f[v],...w},_&&h<U2&&(h++,typeof _=="object"&&(_.placement&&(p=_.placement),_.rects&&(c=_.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):_.rects),{x:d,y:u}=Hc(c,p,l)),b=-1)}return{x:d,y:u,placement:p,strategy:o,middlewareData:f}},V2=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:b=!0,...m}=En(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const v=Yt(o),g=Rt(a),y=Yt(a)===a,k=await(l.isRTL==null?void 0:l.isRTL(c.floating)),w=p||(y||!b?[ei(a)]:z2(a)),_=f!=="none";!p&&_&&w.push(...j2(a,b,f,k));const T=[a,...w],C=await l.detectOverflow(t,m),M=[];let P=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&M.push(C[v]),u){const K=F2(o,s,k);M.push(C[K[0]],C[K[1]])}if(P=[...P,{placement:o,overflows:M}],!M.every(K=>K<=0)){var D,O;const K=(((D=i.flip)==null?void 0:D.index)||0)+1,ee=T[K];if(ee&&(!(u==="alignment"?g!==Rt(ee):!1)||P.every(B=>Rt(B.placement)===g?B.overflows[0]>0:!0)))return{data:{index:K,overflows:P},reset:{placement:ee}};let q=(O=P.filter(A=>A.overflows[0]<=0).sort((A,B)=>A.overflows[1]-B.overflows[1])[0])==null?void 0:O.placement;if(!q)switch(h){case"bestFit":{var z;const A=(z=P.filter(B=>{if(_){const G=Rt(B.placement);return G===g||G==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(G=>G>0).reduce((G,E)=>G+E,0)]).sort((B,G)=>B[1]-G[1])[0])==null?void 0:z[0];A&&(q=A);break}case"initialPlacement":q=a;break}if(o!==q)return{reset:{placement:q}}}return{}}}},Np=new Set(["left","top"]);async function K2(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Yt(n),a=Jr(n),l=Rt(n)==="y",c=Np.has(s)?-1:1,d=i&&l?-1:1,u=En(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:f}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return a&&typeof f=="number"&&(h=a==="end"?f*-1:f),l?{x:h*d,y:p*c}:{x:p*c,y:h*d}}const G2=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await K2(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},Y2=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:i}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:v=>{let{x:g,y}=v;return{x:g,y}}},...c}=En(e,t),d={x:n,y:r},u=await i.detectOverflow(t,c),p=Rt(Yt(o)),h=Na(p);let f=d[h],b=d[p];if(s){const v=h==="y"?"top":"left",g=h==="y"?"bottom":"right",y=f+u[v],k=f-u[g];f=jc(y,f,k)}if(a){const v=p==="y"?"top":"left",g=p==="y"?"bottom":"right",y=b+u[v],k=b-u[g];b=jc(y,b,k)}const m=l.fn({...t,[h]:f,[p]:b});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[h]:s,[p]:a}}}}}},X2=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=En(e,t),d={x:n,y:r},u=Rt(o),p=Na(u);let h=d[p],f=d[u];const b=En(a,t),m=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(l){const y=p==="y"?"height":"width",k=i.reference[p]-i.floating[y]+m.mainAxis,w=i.reference[p]+i.reference[y]-m.mainAxis;h<k?h=k:h>w&&(h=w)}if(c){var v,g;const y=p==="y"?"width":"height",k=Np.has(Yt(o)),w=i.reference[u]-i.floating[y]+(k&&((v=s.offset)==null?void 0:v[u])||0)+(k?0:m.crossAxis),_=i.reference[u]+i.reference[y]+(k?0:((g=s.offset)==null?void 0:g[u])||0)-(k?m.crossAxis:0);f<w?f=w:f>_&&(f=_)}return{[p]:h,[u]:f}}}},Z2=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:l=()=>{},...c}=En(e,t),d=await s.detectOverflow(t,c),u=Yt(o),p=Jr(o),h=Rt(o)==="y",{width:f,height:b}=i.floating;let m,v;u==="top"||u==="bottom"?(m=u,v=p===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(v=u,m=p==="end"?"top":"bottom");const g=b-d.top-d.bottom,y=f-d.left-d.right,k=nr(b-d[m],g),w=nr(f-d[v],y),_=!t.middlewareData.shift;let T=k,C=w;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(C=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(T=g),_&&!p){const P=lt(d.left,0),D=lt(d.right,0),O=lt(d.top,0),z=lt(d.bottom,0);h?C=f-2*(P!==0||D!==0?P+D:lt(d.left,d.right)):T=b-2*(O!==0||z!==0?O+z:lt(d.top,d.bottom))}await l({...t,availableWidth:C,availableHeight:T});const M=await s.getDimensions(a.floating);return f!==M.width||b!==M.height?{reset:{rects:!0}}:{}}}};function Ai(){return typeof window<"u"}function lr(e){return Lp(e)?(e.nodeName||"").toLowerCase():"#document"}function ct(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Bt(e){var t;return(t=(Lp(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Lp(e){return Ai()?e instanceof Node||e instanceof ct(e).Node:!1}function It(e){return Ai()?e instanceof Element||e instanceof ct(e).Element:!1}function Jt(e){return Ai()?e instanceof HTMLElement||e instanceof ct(e).HTMLElement:!1}function Uc(e){return!Ai()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ct(e).ShadowRoot}function eo(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Et(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&o!=="inline"&&o!=="contents"}function Q2(e){return/^(table|td|th)$/.test(lr(e))}function Ti(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const J2=/transform|translate|scale|rotate|perspective|filter/,eS=/paint|layout|strict|content/,vn=e=>!!e&&e!=="none";let us;function La(e){const t=It(e)?Et(e):e;return vn(t.transform)||vn(t.translate)||vn(t.scale)||vn(t.rotate)||vn(t.perspective)||!ja()&&(vn(t.backdropFilter)||vn(t.filter))||J2.test(t.willChange||"")||eS.test(t.contain||"")}function tS(e){let t=un(e);for(;Jt(t)&&!rr(t);){if(La(t))return t;if(Ti(t))return null;t=un(t)}return null}function ja(){return us==null&&(us=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),us}function rr(e){return/^(html|body|#document)$/.test(lr(e))}function Et(e){return ct(e).getComputedStyle(e)}function Ii(e){return It(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function un(e){if(lr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Uc(e)&&e.host||Bt(e);return Uc(t)?t.host:t}function jp(e){const t=un(e);return rr(t)?e.ownerDocument?e.ownerDocument.body:e.body:Jt(t)&&eo(t)?t:jp(t)}function Nr(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=jp(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=ct(o);if(i){const a=Zs(s);return t.concat(s,s.visualViewport||[],eo(o)?o:[],a&&n?Nr(a):[])}else return t.concat(o,Nr(o,[],n))}function Zs(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Bp(e){const t=Et(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Jt(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=Jo(n)!==i||Jo(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Ba(e){return It(e)?e:e.contextElement}function Zn(e){const t=Ba(e);if(!Jt(t))return Nt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Bp(t);let s=(i?Jo(n.width):n.width)/r,a=(i?Jo(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const nS=Nt(0);function Wp(e){const t=ct(e);return!ja()||!t.visualViewport?nS:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function rS(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ct(e)?!1:t}function _n(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Ba(e);let s=Nt(1);t&&(r?It(r)&&(s=Zn(r)):s=Zn(e));const a=rS(i,n,r)?Wp(i):Nt(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,d=o.width/s.x,u=o.height/s.y;if(i){const p=ct(i),h=r&&It(r)?ct(r):r;let f=p,b=Zs(f);for(;b&&r&&h!==f;){const m=Zn(b),v=b.getBoundingClientRect(),g=Et(b),y=v.left+(b.clientLeft+parseFloat(g.paddingLeft))*m.x,k=v.top+(b.clientTop+parseFloat(g.paddingTop))*m.y;l*=m.x,c*=m.y,d*=m.x,u*=m.y,l+=y,c+=k,f=ct(b),b=Zs(f)}}return ti({width:d,height:u,x:l,y:c})}function Ei(e,t){const n=Ii(e).scrollLeft;return t?t.left+n:_n(Bt(e)).left+n}function Hp(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Ei(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function oS(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=Bt(r),a=t?Ti(t.floating):!1;if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=Nt(1);const d=Nt(0),u=Jt(r);if((u||!u&&!i)&&((lr(r)!=="body"||eo(s))&&(l=Ii(r)),u)){const h=_n(r);c=Zn(r),d.x=h.x+r.clientLeft,d.y=h.y+r.clientTop}const p=s&&!u&&!i?Hp(s,l):Nt(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x+p.x,y:n.y*c.y-l.scrollTop*c.y+d.y+p.y}}function iS(e){return Array.from(e.getClientRects())}function sS(e){const t=Bt(e),n=Ii(e),r=e.ownerDocument.body,o=lt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=lt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Ei(e);const a=-n.scrollTop;return Et(r).direction==="rtl"&&(s+=lt(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}const qc=25;function aS(e,t){const n=ct(e),r=Bt(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const d=ja();(!d||d&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}const c=Ei(r);if(c<=0){const d=r.ownerDocument,u=d.body,p=getComputedStyle(u),h=d.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,f=Math.abs(r.clientWidth-u.clientWidth-h);f<=qc&&(i-=f)}else c<=qc&&(i+=c);return{width:i,height:s,x:a,y:l}}function lS(e,t){const n=_n(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Jt(e)?Zn(e):Nt(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,c=r*i.y;return{width:s,height:a,x:l,y:c}}function Vc(e,t,n){let r;if(t==="viewport")r=aS(e,n);else if(t==="document")r=sS(Bt(e));else if(It(t))r=lS(t,n);else{const o=Wp(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return ti(r)}function Up(e,t){const n=un(e);return n===t||!It(n)||rr(n)?!1:Et(n).position==="fixed"||Up(n,t)}function cS(e,t){const n=t.get(e);if(n)return n;let r=Nr(e,[],!1).filter(a=>It(a)&&lr(a)!=="body"),o=null;const i=Et(e).position==="fixed";let s=i?un(e):e;for(;It(s)&&!rr(s);){const a=Et(s),l=La(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||eo(s)&&!l&&Up(e,s))?r=r.filter(d=>d!==s):o=a,s=un(s)}return t.set(e,r),r}function dS(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Ti(t)?[]:cS(t,this._c):[].concat(n),r],a=Vc(t,s[0],o);let l=a.top,c=a.right,d=a.bottom,u=a.left;for(let p=1;p<s.length;p++){const h=Vc(t,s[p],o);l=lt(h.top,l),c=nr(h.right,c),d=nr(h.bottom,d),u=lt(h.left,u)}return{width:c-u,height:d-l,x:u,y:l}}function uS(e){const{width:t,height:n}=Bp(e);return{width:t,height:n}}function pS(e,t,n){const r=Jt(t),o=Bt(t),i=n==="fixed",s=_n(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Nt(0);function c(){l.x=Ei(o)}if(r||!r&&!i)if((lr(t)!=="body"||eo(o))&&(a=Ii(t)),r){const h=_n(t,!0,i,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else o&&c();i&&!r&&o&&c();const d=o&&!r&&!i?Hp(o,a):Nt(0),u=s.left+a.scrollLeft-l.x-d.x,p=s.top+a.scrollTop-l.y-d.y;return{x:u,y:p,width:s.width,height:s.height}}function ps(e){return Et(e).position==="static"}function Kc(e,t){if(!Jt(e)||Et(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Bt(e)===n&&(n=n.ownerDocument.body),n}function qp(e,t){const n=ct(e);if(Ti(e))return n;if(!Jt(e)){let o=un(e);for(;o&&!rr(o);){if(It(o)&&!ps(o))return o;o=un(o)}return n}let r=Kc(e,t);for(;r&&Q2(r)&&ps(r);)r=Kc(r,t);return r&&rr(r)&&ps(r)&&!La(r)?n:r||tS(e)||n}const fS=async function(e){const t=this.getOffsetParent||qp,n=this.getDimensions,r=await n(e.floating);return{reference:pS(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function hS(e){return Et(e).direction==="rtl"}const gS={convertOffsetParentRelativeRectToViewportRelativeRect:oS,getDocumentElement:Bt,getClippingRect:dS,getOffsetParent:qp,getElementRects:fS,getClientRects:iS,getDimensions:uS,getScale:Zn,isElement:It,isRTL:hS};function Vp(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function mS(e,t){let n=null,r;const o=Bt(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const c=e.getBoundingClientRect(),{left:d,top:u,width:p,height:h}=c;if(a||t(),!p||!h)return;const f=yo(u),b=yo(o.clientWidth-(d+p)),m=yo(o.clientHeight-(u+h)),v=yo(d),y={rootMargin:-f+"px "+-b+"px "+-m+"px "+-v+"px",threshold:lt(0,nr(1,l))||1};let k=!0;function w(_){const T=_[0].intersectionRatio;if(T!==l){if(!k)return s();T?s(!1,T):r=setTimeout(()=>{s(!1,1e-7)},1e3)}T===1&&!Vp(c,e.getBoundingClientRect())&&s(),k=!1}try{n=new IntersectionObserver(w,{...y,root:o.ownerDocument})}catch{n=new IntersectionObserver(w,y)}n.observe(e)}return s(!0),i}function Wa(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Ba(e),d=o||i?[...c?Nr(c):[],...t?Nr(t):[]]:[];d.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const u=c&&a?mS(c,n):null;let p=-1,h=null;s&&(h=new ResizeObserver(v=>{let[g]=v;g&&g.target===c&&h&&t&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var y;(y=h)==null||y.observe(t)})),n()}),c&&!l&&h.observe(c),t&&h.observe(t));let f,b=l?_n(e):null;l&&m();function m(){const v=_n(e);b&&!Vp(b,v)&&n(),b=v,f=requestAnimationFrame(m)}return n(),()=>{var v;d.forEach(g=>{o&&g.removeEventListener("scroll",n),i&&g.removeEventListener("resize",n)}),u?.(),(v=h)==null||v.disconnect(),h=null,l&&cancelAnimationFrame(f)}}const Ha=G2,Ua=Y2,qa=V2,Va=Z2,Ka=X2,Ga=(e,t,n)=>{const r=new Map,o={platform:gS,...n},i={...o.platform,_c:r};return q2(e,t,{...o,platform:i})};var Kp=F("<div data-radix-popper-content-wrapper>");const Ya={name:"transformOrigin",fn(e){const[t,n="center"]=e.placement.split("-"),r={start:"0%",center:"50%",end:"100%"}[n];let o="",i="";return t==="bottom"?(o=r,i="0px"):t==="top"?(o=r,i=`${e.rects.floating.height+0}px`):t==="right"?(o="0px",i=r):t==="left"&&(o=`${e.rects.floating.width+0}px`,i=r),{data:{x:o,y:i}}}};function Xa(e){const t=()=>e.align==="center"?e.side:`${e.side}-${e.align}`,[n,r]=Y(L(t)),[o,i]=Y(!1),[s,a]=Y();let l={x:0,y:0,origin:void 0},c=!1,d,u=!1;const p=(()=>{var g=Kp();return te(()=>V(g,"dir",e.dir)),g})(),h=Fa(p),f=()=>p.ownerDocument.defaultView?.devicePixelRatio||1,b=g=>Math.round(g*f())/f(),m=()=>{const g={position:"fixed",left:"0",top:"0"};c&&(g.transform=`translate(${b(l.x)}px, ${b(l.y)}px)`,f()>=1.5&&(g["will-change"]="transform")),g.transform=L(o)?g.transform:"translate(0, -200%)",g["min-width"]="max-content",g["z-index"]=d||void 0,g["--radix-popper-transform-origin"]=[l.origin?.x,l.origin?.y].join(" "),h(g)};m();const v={placedSide:()=>n().split("-")[0],placedAlign:()=>n().split("-")[1]??"center",isPositioned:o,setContent:a};return $(p,L(()=>e.children(v))),fe(()=>{const g=e.anchor,y=s();if(!g||!y)return;L(()=>{c=!0,m(),d=getComputedStyle(y).zIndex,m()});const w={padding:e.collisionPadding,boundary:[],altBoundary:!1},_=[Ha({mainAxis:e.sideOffset,alignmentAxis:e.alignOffset??0}),Ua({mainAxis:!0,crossAxis:!1,limiter:Ka(),...w}),qa({...w}),Va({...w,apply:({elements:P,rects:D,availableWidth:O,availableHeight:z})=>{const K=P.floating.style;K.setProperty("--radix-popper-available-width",`${O}px`),K.setProperty("--radix-popper-available-height",`${z}px`),K.setProperty("--radix-popper-anchor-width",`${D.reference.width}px`),K.setProperty("--radix-popper-anchor-height",`${D.reference.height}px`)}}),Ya],T=t(),M=Wa(g,p,()=>{Ga(g,p,{strategy:"fixed",placement:T,middleware:_}).then(P=>{if(u)return;const D=P.middlewareData.transformOrigin;L(o)&&l.x===P.x&&l.y===P.y&&l.origin?.x===D?.x&&l.origin?.y===D?.y&&L(n)===P.placement||(l={x:P.x,y:P.y,origin:D},r(P.placement),i(!0),m())})},{animationFrame:!1});le(M)}),le(()=>u=!0),p}function Za(e,t,n,r,o={}){return{...o,"pointer-events":n,[`--radix-${e}-content-transform-origin`]:"var(--radix-popper-transform-origin)",[`--radix-${e}-content-available-width`]:"var(--radix-popper-available-width)",[`--radix-${e}-content-available-height`]:"var(--radix-popper-available-height)",[`--radix-${e}-${t}-width`]:"var(--radix-popper-anchor-width)",[`--radix-${e}-${t}-height`]:"var(--radix-popper-anchor-height)",animation:r?void 0:"none"}}function Gp(e){const[t,n]=Y(null),[r,o]=Y();let i;const s=()=>typeof window>"u"?1:window.devicePixelRatio||1,a=u=>Math.round(u*s())/s(),l=N(()=>{const u=t(),[p,h="center"]=(u?.placement??`bottom-${e.align}`).split("-");return{side:p,align:e.align==="center"&&!u?"center":h,positioned:u!==null}}),c=()=>{const u=t(),p={position:"fixed",left:0,top:0,transform:u?`translate(${a(u.x)}px, ${a(u.y)}px)`:"translate(0, -200%)"};return s()>=1.5&&(p.willChange="transform"),p.minWidth="max-content",p.zIndex=r(),p["--radix-popper-transform-origin"]=u?u.origin.join(" "):" ",ge(p)},d=(()=>{var u=Kp();return $(u,()=>e.content(l,p=>i=p)),te(p=>{var h=c(),f=e.dir?.();return p.e=Ee(u,h,p.e),f!==p.t&&V(u,"dir",p.t=f),p},{e:void 0,t:void 0}),u})();return je(()=>{i&&o(getComputedStyle(i).zIndex);const u=e.anchor();if(!u)return;const p={padding:e.collisionPadding,boundary:[],altBoundary:!1};let h=!0;const b=Wa(u,d,()=>{Ga(u,d,{strategy:"fixed",placement:e.align==="center"?"bottom":`bottom-${e.align}`,middleware:[Ha({mainAxis:e.sideOffset,alignmentAxis:0}),Ua({mainAxis:!0,crossAxis:!1,limiter:Ka(),...p}),qa({...p}),Va({...p,apply:({elements:m,rects:v,availableWidth:g,availableHeight:y})=>{const k=m.floating.style;k.setProperty("--radix-popper-available-width",`${g}px`),k.setProperty("--radix-popper-available-height",`${y}px`),k.setProperty("--radix-popper-anchor-width",`${v.reference.width}px`),k.setProperty("--radix-popper-anchor-height",`${v.reference.height}px`)}}),Ya]}).then(m=>{if(!h)return;const v=t()===null,g=m.middlewareData.transformOrigin;n({x:m.x,y:m.y,placement:m.placement,origin:[g?.x??"",g?.y??""]}),v&&e.onPlaced?.()})},{animationFrame:!1});le(()=>{h=!1,b()})}),d}function Yp(e,t){let n=!1;for(let r=0,o=t.length-1;r<t.length;o=r++){const i=t[r],s=t[o];i.y>e.y!=s.y>e.y&&e.x<(s.x-i.x)*(e.y-i.y)/(s.y-i.y)+i.x&&(n=!n)}return n}function yS(e){const t=[...e].sort((i,s)=>i.x<s.x?-1:i.x>s.x?1:i.y<s.y?-1:i.y>s.y?1:0);if(t.length<=1)return t;const n=(i,s,a)=>(s.x-i.x)*(a.y-i.y)-(s.y-i.y)*(a.x-i.x),r=[];for(const i of t){for(;r.length>=2&&n(r[r.length-2],r[r.length-1],i)>=0;)r.pop();r.push(i)}r.pop();const o=[];for(let i=t.length-1;i>=0;i--){const s=t[i];for(;o.length>=2&&n(o[o.length-2],o[o.length-1],s)>=0;)o.pop();o.push(s)}return o.pop(),r.length===1&&o.length===1&&r[0].x===o[0].x&&r[0].y===o[0].y?r:r.concat(o)}function bS(e,t,n){const o=Math.abs(t.top-e.y),i=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x),l=Math.min(o,i,s,a),c=l===a?[{x:e.x+5,y:e.y-5},{x:e.x+5,y:e.y+5}]:l===s?[{x:e.x-5,y:e.y-5},{x:e.x-5,y:e.y+5}]:l===o?[{x:e.x-5,y:e.y+5},{x:e.x+5,y:e.y+5}]:[{x:e.x-5,y:e.y-5},{x:e.x+5,y:e.y-5}];return yS([...c,{x:n.left,y:n.top},{x:n.right,y:n.top},{x:n.right,y:n.bottom},{x:n.left,y:n.bottom}])}var vS=F("<span role=tooltip>");function xS(e){const t=(()=>{var n=vS();return $(n,()=>e.children),te(()=>V(n,"id",e.id)),n})();return Fa(t)({position:"absolute",border:"0",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)","white-space":"nowrap","word-wrap":"normal"}),t}const Xp=(e,t)=>e.map((n,r)=>e[(t+r)%e.length]);function $S(e,t,n){const o=t.length>1&&Array.from(t).every(l=>l===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let s=Xp(e,Math.max(i,0));o.length===1&&(s=s.filter(l=>l!==n));const a=s.find(l=>l.toLowerCase().startsWith(o.toLowerCase()));return a!==n?a:void 0}function Zp(e){let t="",n=0;const r=o=>{t=o,window.clearTimeout(n),o!==""&&(n=window.setTimeout(()=>r(""),1e3))};return le(()=>window.clearTimeout(n)),{get search(){return t},type:o=>{const i=t+o;e(i),r(i)},reset:()=>{t="",window.clearTimeout(n)}}}function Qp(e,t,n){const o=t.length>1&&Array.from(t).every(l=>l===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let s=e.map((l,c)=>e[(Math.max(i,0)+c)%e.length]);o.length===1&&(s=s.filter(l=>l!==n));const a=s.find(l=>l.label.toLowerCase().startsWith(o.toLowerCase()));return a!==n?a:void 0}var wS=F("<div role=menu aria-orientation=vertical data-radix-menu-content>");let ni=!1,Gc=0;function kS(){const e=()=>ni=!0,t=()=>ni=!1;Gc++===0&&(document.addEventListener("keydown",e,{capture:!0}),document.addEventListener("pointerdown",t,{capture:!0}),document.addEventListener("pointermove",t,{capture:!0})),le(()=>{--Gc===0&&(document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0}))})}const Jp=pn(),SS=["ArrowDown","PageUp","Home"],Yc=["ArrowUp","PageDown","End"],Io=e=>e?Array.from(e.querySelectorAll(":scope [data-radix-collection-item]")).filter(t=>t.closest("[data-radix-menu-content]")===e):[];function Qa(e){const t=Ci({disableOutsidePointerEvents:()=>e.root,onEscapeKeyDown:g=>e.onEscapeKeyDown?.(g),onFocusOutside:g=>{e.root&&g.preventDefault(),e.onFocusOutside?.(g)},onInteractOutside:g=>e.onInteractOutside?.(g),onDismiss:()=>e.onDismiss()}),n=za({trapped:()=>e.root,loop:!1,onMountAutoFocus:g=>{g.preventDefault(),(e.root||ni)&&c?.focus({preventScroll:!0})},onUnmountAutoFocus:g=>e.onCloseAutoFocus(g)}),[r,o]=Y(!1),[i,s]=Y(),[a,l]=Y();let c,d="",u,p=null,h="right",f=0;const b=g=>!!(p&&h===p.side&&Yp({x:g.clientX,y:g.clientY},p.area)),m={content:()=>c,highlighted:i,setHighlighted:s,tabStop:a,setTabStop:l,search:()=>d,onItemEnter:g=>b(g),onItemLeave:g=>{b(g)||(c?.focus({preventScroll:!0}),l(void 0))},onTriggerLeave:g=>b(g),setGrace:g=>p=g};le(()=>clearTimeout(u));const v=g=>{const y=d+g,k=Io(c).filter(D=>!D.hasAttribute("data-disabled")),w=document.activeElement,_=k.find(D=>D===w)?.textContent??void 0,T=k.map(D=>D.textContent??""),C=$S(T,y,_),M=k.find(D=>(D.textContent??"")===C),P=D=>{d=D,clearTimeout(u),D!==""&&(u=setTimeout(()=>P(""),1e3))};P(y),M&&setTimeout(()=>M.focus())};return x(Xa,{get anchor(){return e.anchor},get side(){return e.side},get align(){return e.align},get sideOffset(){return e.sideOffset},get alignOffset(){return e.alignOffset},get collisionPadding(){return e.collisionPadding??sr},get dir(){return e.dir},children:g=>{const y=(()=>{var k=wS();return I(k,S({get"data-side"(){return g.placedSide()},get"data-align"(){return g.placedAlign()},get"data-state"(){return e.state()},get dir(){return e.dir},get id(){return e.id},get"aria-labelledby"(){return e.labelledBy}},()=>e.attrs(),{tabindex:"-1","data-orientation":"vertical",onKeyDown:w=>{n.onKeyDown(w);const T=w.target.closest("[data-radix-menu-content]")===y,C=w.ctrlKey||w.altKey||w.metaKey;if(T&&(w.key==="Tab"&&w.preventDefault(),!C&&w.key.length===1&&v(w.key)),e.onKeyDown?.(w),w.target!==y||!SS.includes(w.key)&&!Yc.includes(w.key))return;w.preventDefault();const M=Io(y).filter(P=>!P.hasAttribute("data-disabled"));Yc.includes(w.key)&&M.reverse(),Qo(M)},onFocus:w=>{if(w.target!==y||!ni)return;const _=Io(y).filter(C=>!C.hasAttribute("data-disabled")),T=L(a);Qo([T,..._].filter(Boolean))},onPointerMove:w=>{w.pointerType==="mouse"&&y.contains(w.target)&&f!==w.clientX&&(h=w.clientX>f?"right":"left",f=w.clientX)}}),!1,!0),$(k,x(Si.Provider,{get value(){return t.layer},get children(){return x(Jp.Provider,{value:m,get children(){return e.children}})}})),k})();return c=y,e.setContent?.(y),le(()=>e.setContent?.(void 0)),g.setContent(y),Rr(y,()=>Za(e.kind,"trigger",e.lagParentLayer&&!r()?void 0:t.pointerEvents(r()),g.isPositioned(),{outline:"none"})),je(()=>{t.attach(y),o(!0),n.attach(y),Ra(),e.root&&Fp(y,!0)}),y}})}function ef(e){const t=Zt(Jp);let n;return{attrs:()=>({tabindex:t.tabStop()===n&&n!==void 0?"0":"-1","data-orientation":"vertical","data-radix-collection-item":"","data-highlighted":t.highlighted()===n&&n!==void 0?"":void 0,"aria-disabled":e()?"true":void 0,"data-disabled":e()?"":void 0}),handlers:{onFocus:()=>{t.setHighlighted(n),L(e)||t.setTabStop(n)},onBlur:()=>{L(t.highlighted)===n&&t.setHighlighted(void 0)},onPointerMove:i=>{i.pointerType==="mouse"&&(L(e)?t.onItemLeave(i):t.onItemEnter(i)||n?.focus({preventScroll:!0}))},onPointerLeave:i=>{i.pointerType==="mouse"&&t.onItemLeave(i)},onKeyDown:i=>{if(i.target!==i.currentTarget)return;const s=i.key==="ArrowUp"?"prev":i.key==="ArrowDown"?"next":i.key==="Home"||i.key==="PageUp"?"first":i.key==="End"||i.key==="PageDown"?"last":void 0;if(!s||i.metaKey||i.ctrlKey||i.altKey||i.shiftKey)return;i.preventDefault();let a=Io(t.content()).filter(l=>!l.hasAttribute("data-disabled"));if(s==="last")a.reverse();else if(s==="prev"||s==="next"){s==="prev"&&a.reverse();const l=a.indexOf(i.currentTarget);a=a.slice(l+1)}Qo(a)}},ref:i=>n=i,level:t}}function tf(e,t,n){const r=ef(e);let o=!1;const i=()=>{if(L(e))return;const a=new CustomEvent("menu.itemSelect",{bubbles:!0,cancelable:!0});t(a),a.defaultPrevented?o=!1:n()},s={...r.handlers,onClick:i,onPointerDown:()=>o=!0,onPointerUp:a=>{o||a.currentTarget?.click()},onKeyDown:a=>{if(r.handlers.onKeyDown(a),a.defaultPrevented)return;const l=r.level.search()!=="";L(e)||l&&a.key===" "||(a.key==="Enter"||a.key===" ")&&(a.currentTarget.click(),a.preventDefault())}};return{...r,handlers:s}}const nf={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function CS(e,t,n){let r=e.key;if(n==="rtl"&&(r=r==="ArrowLeft"?"ArrowRight":r==="ArrowRight"?"ArrowLeft":r),!(t==="vertical"&&(r==="ArrowLeft"||r==="ArrowRight"))&&!(t==="horizontal"&&(r==="ArrowUp"||r==="ArrowDown")))return nf[r]}function ri(e){const t=document.activeElement;for(const n of e)if(n&&(n===t||(n.focus(),document.activeElement!==t)))return}function rf(e){const t=()=>typeof e.orientation=="function"?e.orientation():e.orientation,[n,r]=Y(null),[o,i]=Y(!1);let s=!1;return{group:()=>({tabindex:o()?-1:0,"data-orientation":t()}),groupHandlers:{onMouseDown:()=>{s=!0},onFocusIn:d=>{const u=!s;if(d.target===d.currentTarget&&u&&!o()){const p=e.items().filter(e.focusable),h=p.find(e.active),f=p.find(b=>b===n());ri([h,f,...p].filter(b=>!!b))}s=!1},onFocusOut:()=>i(!1)},item:(d,u)=>({tabindex:()=>n()!==null&&n()===d()?0:-1,onMouseDown:p=>{u()?r(d()??null):p.preventDefault()},onFocus:()=>r(d()??null),onKeyDown:p=>{if(p.key==="Tab"&&p.shiftKey){i(!0);return}if(p.target!==p.currentTarget)return;const h=CS(p,t(),e.dir());if(h===void 0||p.metaKey||p.ctrlKey||p.altKey||p.shiftKey)return;p.preventDefault();let f=e.items().filter(e.focusable);if(h==="last")f.reverse();else if(h==="prev"||h==="next"){h==="prev"&&f.reverse();const b=f.indexOf(p.currentTarget);f=e.loop?Xp(f,b+1):f.slice(b+1)}setTimeout(()=>ri(f))}})}}function of(e){const t=e.isDisabled??(()=>!1),n=e.labelOf??(()=>""),r=e.typeahead??(()=>!1),[o,i]=Y(e.initial??-1);let s={text:"",at:0};fe(()=>{const c=e.count();o()>=c&&i(c-1)});const a=(c,d)=>fp(e.count(),c,d,t);return{active:o,setActive:i,onKeyDown:c=>{const d=e.count(),u=o();if(c.key==="ArrowDown")c.preventDefault(),i(a(u<0?-1:u,1));else if(c.key==="ArrowUp")c.preventDefault(),i(a(u<0?0:u,-1));else if(c.key==="Home")c.preventDefault(),i(a(-1,1));else if(c.key==="End")c.preventDefault(),i(a(0,-1));else if(c.key==="Enter"||c.key===" "&&r()&&s.text==="")u>=0&&u<d&&!t(u)&&(c.preventDefault(),e.onPick(u));else if(r()&&c.key.length===1&&!c.metaKey&&!c.ctrlKey&&!c.altKey){const p=hp(s,c.key,Date.now(),u,d,t,n);s=p.buffer,p.index>=0&&i(p.index)}}}}function AS(e){const t=e.isDisabled??(()=>!1),n=e.labelOf??(()=>""),[r,o]=Y(e.initial??-1);let i={text:"",at:0};Xt(()=>{const l=e.count();L(r)>=l&&o(l-1)});const s=(l,c)=>fp(e.count(),l,c,t);return{active:r,setActive:l=>o(l),onKeyDown:l=>{const c=e.count(),d=r();if(l.key==="ArrowDown")l.preventDefault(),o(s(d<0?-1:d,1));else if(l.key==="ArrowUp")l.preventDefault(),o(s(d<0?0:d,-1));else if(l.key==="Home")l.preventDefault(),o(s(-1,1));else if(l.key==="End")l.preventDefault(),o(s(0,-1));else if(l.key==="Enter"||l.key===" "&&e.typeahead&&i.text==="")d>=0&&d<c&&!t(d)&&(l.preventDefault(),e.onPick(d));else if(e.typeahead&&l.key.length===1&&!l.metaKey&&!l.ctrlKey&&!l.altKey){const u=hp(i,l.key,Date.now(),d,c,t,n);i=u.buffer,u.index>=0&&o(u.index)}}}}const TS=[" ","Enter","ArrowUp","ArrowDown"],IS=[" ","Enter"];var ES=F("<div role=dialog>");const _S="button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),a[href],[tabindex]";function MS(e){return Array.from(e.querySelectorAll(_S)).filter(t=>t.tabIndex>=0&&!t.closest("[hidden],[inert]"))}function Ja(e){const[t,n]=Y(L(()=>e.open));let r,o="none";const i=()=>r&&getComputedStyle(r).animationName||"none";fe(De(()=>e.open,(a,l)=>{if(a){n(!0);return}if(!r||!l){n(!1);return}const c=i();(c==="none"||getComputedStyle(r).display==="none"||o===c)&&n(!1)},{defer:!0}));const s={mount:a=>{r=a,o=i()},unmount:()=>{r=void 0,o="none"},start:a=>{a.target===r&&(o=i())},end:a=>{if(!r||a.target!==r||!i().includes(CSS.escape(a.animationName))||L(()=>e.open))return;const l=r.style.animationFillMode,c=r;c.style.animationFillMode="forwards",setTimeout(()=>{c.style.animationFillMode==="forwards"&&(c.style.animationFillMode=l)}),n(!1)}};return x(J,{get when(){return t()},get children(){return x(DS,S(e,{presence:s}))}})}function DS(e){const[t,n]=Y("bottom-start"),[r,o]=Y(!1),[i,s]=Y();let a,l=!1,c=!1;const d=()=>t().split("-")[0],u=()=>t().split("-")[1]??"center",p=v=>{v.setAttribute("data-radix-popper-content-wrapper",""),v.style.position="fixed",v.style.left="0px",v.style.top="0px",v.style.transform="translate(0, -200%)",v.style.minWidth="max-content",s(v)};fe(()=>i()?.setAttribute("dir",e.dir));const h=(v,g)=>{l=!0,g==="pointerdown"&&(c=!0);const y=e.trigger();return!(y&&v instanceof Node&&y.contains(v)||g==="focusin"&&c)},f=v=>v instanceof Node&&!!a?.contains(v);je(()=>{const v=i(),g=e.trigger();if(!v||!g||!a)return;const y=getComputedStyle(a).zIndex;y&&(v.style.zIndex=y);let k=!0;const w={padding:sr,boundary:[],altBoundary:!1},T=Wa(g,v,()=>{Ga(g,v,{strategy:"fixed",placement:"bottom-start",middleware:[Ha({mainAxis:ir,alignmentAxis:0}),Ua({mainAxis:!0,crossAxis:!1,limiter:Ka(),...w}),qa({...w}),Va({...w,apply:({elements:z,rects:K,availableWidth:ee,availableHeight:q})=>{const A=z.floating.style;A.setProperty("--radix-popper-available-width",`${ee}px`),A.setProperty("--radix-popper-available-height",`${q}px`),A.setProperty("--radix-popper-anchor-width",`${K.reference.width}px`),A.setProperty("--radix-popper-anchor-height",`${K.reference.height}px`)}}),Ya]}).then(({x:z,y:K,placement:ee,middlewareData:q})=>{if(!k)return;const A=window.devicePixelRatio||1,B=E=>Math.round(E*A)/A;v.style.transform=`translate(${B(z)}px, ${B(K)}px)`,A>=1.5&&(v.style.willChange="transform");const G=q.transformOrigin;v.style.setProperty("--radix-popper-transform-origin",[G?.x,G?.y].join(" ")),n(ee),o(!0)})}),C=a.ownerDocument,M=z=>{f(z.target)||h(z.target,"pointerdown")&&e.setOpen(!1)},P=z=>{f(z.target)||h(z.target,"focusin")&&e.setOpen(!1)},D=z=>{z.key!=="Escape"||!e.open||(z.stopPropagation(),e.setOpen(!1))},O=setTimeout(()=>C.addEventListener("pointerdown",M));C.addEventListener("focusin",P),C.addEventListener("keydown",D,{capture:!0}),e.presence.mount(a),e.onOpenAutoFocus(a),le(()=>{e.presence.unmount(),k=!1,T(),clearTimeout(O),C.removeEventListener("pointerdown",M),C.removeEventListener("focusin",P),C.removeEventListener("keydown",D,{capture:!0});const z=!l,K=e.trigger();setTimeout(()=>{z&&K?.focus()})})});const b=v=>{if(v.key!=="Tab"||v.altKey||v.ctrlKey||v.metaKey||!a)return;const g=document.activeElement,y=MS(a);if(!y.length){g===a&&v.preventDefault();return}const k=y[0],w=y[y.length-1];!v.shiftKey&&g===w?(v.preventDefault(),k.focus()):v.shiftKey&&g===k&&(v.preventDefault(),w.focus())},m=()=>({"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)",...r()?{}:{animation:"none"}});return x(vh,{get mount(){return e.portal??void 0},ref:p,get children(){var v=ES(),g=a;return typeof g=="function"?oe(g,v):a=v,I(v,S({get"data-side"(){return d()},get"data-align"(){return u()},get id(){return e.contentId},get"data-state"(){return e.open?"open":"closed"}},()=>e.attrs,{tabindex:"-1",get style(){return m()},onKeyDown:b,onPointerOver:y=>e.onPointerOver?.(y),onFocusIn:y=>e.onFocusIn?.(y),onAnimationStart:y=>e.presence.start(y),onAnimationEnd:y=>e.presence.end(y),onAnimationCancel:y=>e.presence.end(y)}),!1,!0),$(v,()=>e.children),v}})}function PS(e,t){const[n,r]=Y(L(e)),o=()=>e()||n(),[i,s]=Y({h:0,w:0});let a,l=null,c={h:0,w:0},d=L(o);const u=()=>{const v=a;if(!v)return;l??={transitionDuration:v.style.transitionDuration,animationName:v.style.animationName},v.style.transitionDuration="0s",v.style.animationName="none";const g=v.getBoundingClientRect();c={h:g.height,w:g.width},d||(v.style.transitionDuration=l.transitionDuration,v.style.animationName=l.animationName)};let p="none",h=null;const f=()=>a&&getComputedStyle(a).animationName||"none",b=()=>{u(),L(n)&&(r(!1),s(c))};return je(()=>{u(),s(c),p=L(o)?f():"none";const v=y=>{y.target===a&&(p=f())};a?.addEventListener("animationstart",v);const g=requestAnimationFrame(()=>d=!1);le(()=>{cancelAnimationFrame(g),a?.removeEventListener("animationstart",v),h?.()})}),fe(De(e,v=>{if(h?.(),u(),v){L(n)||(r(!0),s(c)),p=f();return}const g=a,y=f();if(!g||y==="none"||getComputedStyle(g).display==="none"||p===y)return b();const k=w=>{w.target!==g||!f().includes(CSS.escape(w.animationName))||(h?.(),p="none",b())};g.addEventListener("animationend",k),g.addEventListener("animationcancel",k),h=()=>{g.removeEventListener("animationend",k),g.removeEventListener("animationcancel",k),h=null}},{defer:!0})),{shown:o,ref:v=>a=v,style:()=>{const v=i(),g={};return v.h&&(g["--radix-collapsible-content-height"]=`${v.h}px`),v.w&&(g["--radix-collapsible-content-width"]=`${v.w}px`),g[`--radix-${t}-content-height`]="var(--radix-collapsible-content-height)",g[`--radix-${t}-content-width`]="var(--radix-collapsible-content-width)",g}}}function OS(e,t,n,r){let o,i=null;const s=()=>e()==="bottom"||e()==="right"?1:-1,a=()=>e()==="left"||e()==="right"?"x":"y",l=d=>i?Math.max(0,(a()==="x"?d.clientX-i.x:d.clientY-i.y)*s()):0,c=(d,u)=>{o&&(o.style.transition=u&&!r()?"transform var(--xui-motion-standard) var(--xui-ease-decelerate)":"none",o.style.transform=d?`translate${a()==="x"?"X":"Y"}(${d*s()}px)`:"")};return{setPanel:d=>o=d,onPointerDown:d=>{!L(t)||d.button!==0||(i={id:d.pointerId,x:d.clientX,y:d.clientY,at:performance.now()},d.currentTarget.setPointerCapture?.(d.pointerId))},onPointerMove:d=>{L(t)&&i?.id===d.pointerId&&c(l(d),!1)},onPointerUp:d=>{if(!L(t)||i?.id!==d.pointerId)return;const u=l(d),p=performance.now()-i.at;i=null,u>80||u>24&&p>0&&u/p>.6?(c(0,!1),n()):c(0,!0)},onPointerCancel:()=>{L(t)&&(i=null,c(0,!0))}}}function sf(e){const[t,n]=Y(void 0,{equals:(r,o)=>r?.width===o?.width&&r?.height===o?.height});return fe(()=>{const r=e();if(!r)return n(void 0);if(n({width:r.offsetWidth,height:r.offsetHeight}),typeof ResizeObserver>"u")return;const o=new ResizeObserver(i=>{const s=i[0];if(!s)return;let a,l;if("borderBoxSize"in s&&s.borderBoxSize){const c=Array.isArray(s.borderBoxSize)?s.borderBoxSize[0]:s.borderBoxSize;a=c.inlineSize,l=c.blockSize}else a=r.offsetWidth,l=r.offsetHeight;n({width:a,height:l})});o.observe(r,{box:"border-box"}),le(()=>o.unobserve(r))}),t}var FS=F("<input aria-hidden=true tabindex=-1>"),zS=F("<input>"),RS=F("<select aria-hidden=true tabindex=-1>"),NS=F("<option value>"),LS=F("<option>");function _i(e){const[t,n]=Y(!1);return je(()=>n(!!e()?.closest("form"))),t}function af(e,t,n,r,o=()=>!0){fe(De(t,i=>{const s=e();s&&(n(s,i),s.dispatchEvent(new Event(r,{bubbles:o()})))},{defer:!0}))}const jS=(e,t)=>Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked")?.set?.call(e,t);function el(e){let t;const n=sf(()=>e.control),r=L(()=>e.checked);af(()=>t,()=>e.checked,jS,"click",e.bubbles);const o=()=>{const i=n(),s=i?{width:i.width,height:i.height}:{},a={position:"absolute",pointerEvents:"none",opacity:0,margin:0};return ge(e.transformFirst?{transform:"translateX(-100%)",...s,...a}:{...s,...a,transform:"translateX(-100%)"})};return(()=>{var i=FS(),s=t;return typeof s=="function"?oe(s,i):t=i,V(i,"checked",r?"":void 0),te(a=>{var l=e.type,c=e.name,d=e.disabled,u=o();return l!==a.e&&V(i,"type",a.e=l),c!==a.t&&V(i,"name",a.t=c),d!==a.a&&(i.disabled=a.a=d),a.o=Ee(i,u,a.o),a},{e:void 0,t:void 0,a:void 0,o:void 0}),te(()=>i.value=e.value),i})()}function BS(e){let t;const n=L(()=>String(e.value));return af(()=>t,()=>e.value,(r,o)=>Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value")?.set?.call(r,o),"input"),(()=>{var r=zS(),o=t;return typeof o=="function"?oe(o,r):t=r,V(r,"value",n),te(i=>{var s=ge({display:"none"}),a=e.name;return i.e=Ee(r,s,i.e),a!==i.t&&V(r,"name",i.t=a),i},{e:void 0,t:void 0}),r})()}function WS(e){let t;const n=L(()=>e.value);fe(De(()=>e.value,o=>{t&&(Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value")?.set?.call(t,o),t.dispatchEvent(new Event("change",{bubbles:!0})))},{defer:!0}));const r=ge({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"});return(()=>{var o=RS();o.addEventListener("change",s=>e.onChange(s.currentTarget.value));var i=t;return typeof i=="function"?oe(i,o):t=o,$(o,n===void 0?NS():null,null),$(o,x(xe,{get each(){return e.options},children:s=>(()=>{var a=LS();return $(a,()=>U(s.label)),te(l=>{var c=re(s.disabled),d=n!==void 0&&s.value===n?"":void 0;return c!==l.e&&(a.disabled=l.e=c),d!==l.t&&V(a,"selected",l.t=d),l},{e:void 0,t:void 0}),te(()=>a.value=s.value),a})()}),null),te(s=>{var a=e.name,l=e.disabled,c=r;return a!==s.e&&V(o,"name",s.e=a),l!==s.t&&(o.disabled=s.t=l),s.a=Ee(o,c,s.a),s},{e:void 0,t:void 0,a:void 0}),o})()}const Xc=["PageUp","PageDown"],HS={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"]},lf=(e,t)=>n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])},US=e=>(String(e).split(".")[1]||"").length,qS=(e,t)=>{const n=Math.pow(10,t);return Math.round(e*n)/n},cf=(e,[t,n])=>Math.min(n,Math.max(t,e)),VS=(e,t,n)=>cf(100/(n-t)*(e-t),[0,100]),KS=(e,t,n)=>{const r=e/2,o=lf([0,50],[0,r]);return(r-o(t)*n)*n};function GS(e){const[t,n]=Y("idle"),r=typeof window>"u"?null:new window.Image,o=i=>r?i?(r.src!==i&&(r.src=i),r.complete&&r.naturalWidth>0?"loaded":"loading"):"error":"idle";if(Xt(()=>n(o(e()))),r){const i=()=>n("loaded"),s=()=>n("error");r.addEventListener("load",i),r.addEventListener("error",s),le(()=>{r.removeEventListener("load",i),r.removeEventListener("error",s)})}return t}function df(e,t){const n=t.trim().toLowerCase();return n===""||U(e.label).toLowerCase().includes(n)||U(e.identifier).toLowerCase().includes(n)}var YS=F("<div role=listbox class=xui-ChipInput-suggestions>"),XS=F("<div><div><ul class=xui-chip-list></ul><input>"),ZS=F("<button type=button tabindex=-1>"),QS=F("<li><span>"),JS=F("<div role=option class=xui-ChipInput-suggestion>"),Zc=F("<span>"),eC=F("<ul class=xui-file-list>"),tC=F("<div>"),nC=F("<div><div><span></span><span></span><span></span><input type=file class=xui-sr-only tabindex=-1>"),rC=F("<button type=button>"),oC=F("<li><span></span><span>"),iC=F("<a target=_blank rel=noreferrer>"),sC=F("<span class=xui-field-error>");function aC(e){const t=me(e),n=se(),r=Ae(),o=`${r}-suggestions`,[i,s]=Oe(()=>e.node,()=>e.scope,"values",()=>Lt(e.props.values).map(String)),[a,l]=Y(""),[c,d]=Y(!1);let u;const p=ht({node:()=>e.node,domId:()=>e.domId,props:()=>e.props,value:i,focusEl:()=>u}),h=()=>re(e.props.disabled)||!!p.form?.disabled,f=()=>e.props.max===void 0?1/0:ue(e.props.max,1/0),b=N(()=>Le(e.props.suggestions)),m=N(()=>{const D=a();return D?b().filter(O=>!i().includes(O.value)&&U(O.label).toLowerCase().includes(D.toLowerCase())):[]}),v=D=>(s(D),p.change(D),e.emit("change",{values:D},{values:D}),D),g=D=>{const O=D.trim(),z=L(i);if(!O||z.includes(O)||z.length>=L(f))return!1;const K=v([...z,O]);return e.emit("add",{value:O},{values:K}),l(""),!0};let y;const k=D=>y?.querySelectorAll("[data-chip]")[D]??null,w=(D,O)=>{const z=v(L(i).filter(K=>K!==D));e.emit("remove",{value:D},{values:z}),setTimeout(()=>{((O!==void 0&&O>=0?k(O):null)??u)?.focus()},0)},_=(D,O)=>{const z=n.direction==="rtl",K=z?"ArrowRight":"ArrowLeft",ee=z?"ArrowLeft":"ArrowRight",q=L(i);D.key===K?(D.preventDefault(),k(Math.max(0,O-1))?.focus()):D.key===ee?(D.preventDefault(),O+1<q.length?k(O+1)?.focus():u?.focus()):(D.key==="Backspace"||D.key==="Delete")&&!L(h)&&(D.preventDefault(),w(q[O],D.key==="Backspace"?O-1:O<q.length-1?O:O-1))},T=of({count:()=>m().length,isDisabled:D=>re(L(m)[D]?.disabled),onPick:D=>g(L(m)[D].value)}),C=()=>T.active()>=0&&T.active()<m().length?`${o}-${T.active()}`:void 0,M=()=>c()&&m().length>0,P=()=>U(e.props.placeholder);return(()=>{var D=XS(),O=D.firstChild,z=O.firstChild,K=z.nextSibling;I(D,S(()=>e.rootProps),!1,!0),$(D,x(tt,{get part(){return t("label")},get text(){return e.props.label},as:"label",htmlFor:r}),O),I(O,S(()=>t("field",c()&&"focus",h()&&"disabled",p.invalid&&"invalid"),{onClick:()=>u?.focus(),"data-xui-chipfield":""}),!1,!0);var ee=y;typeof ee=="function"?oe(ee,z):y=z,$(z,x(xe,{get each(){return i()},children:(A,B)=>(()=>{var G=QS(),E=G.firstChild;return I(G,S(()=>t.at("chip",B()),{"data-chip":"",tabindex:"-1",onKeyDown:R=>_(R,B()),onFocus:R=>R.currentTarget.setAttribute("data-xs","focus"),onBlur:R=>R.currentTarget.removeAttribute("data-xs")}),!1,!0),I(E,S(()=>t.at("chipLabel",B())),!1,!0),$(E,A),$(G,x(J,{get when(){return!h()},get children(){var R=ZS();return I(R,S(()=>t.at("remove",B()),{get"aria-label"(){return $r(n,"removeItem",{name:A},()=>`${n.t("remove")} ${A}`)},onClick:H=>{H.stopPropagation(),w(A)}}),!1,!0),$(R,x(we,{slot:"ChipInput.remove"})),R}}),null),G})()}));var q=u;return typeof q=="function"?oe(q,K):u=K,V(K,"id",r),I(K,S(()=>t("input"),{get value(){return a()},get disabled(){return h()||i().length>=f()},get placeholder(){return Z(()=>i().length===0)()&&P()||void 0},role:"combobox","aria-autocomplete":"list",get"aria-expanded"(){return M()},get"aria-controls"(){return M()?o:void 0},get"aria-activedescendant"(){return Z(()=>!!M())()?C():void 0},get"aria-invalid"(){return p.invalid||void 0},get"aria-describedby"(){return Fr(p.describedBy)},onFocus:()=>d(!0),onBlur:()=>{d(!1),p.touch()},onInput:A=>{const B=A.currentTarget.value;if(B.includes(",")){const G=B.split(","),E=G.pop()??"";for(const R of G)g(R);l(E),A.currentTarget.value=E}else l(B)},onKeyDown:A=>{const B=L(a),G=L(i);if(L(M)&&(A.key==="ArrowDown"||A.key==="ArrowUp"||A.key==="Enter"&&L(T.active)>=0)){T.onKeyDown(A);return}A.key==="Enter"?(A.preventDefault(),B.trim()?g(B):p.submit()):A.key==="Backspace"&&B===""&&G.length||(A.key==="ArrowLeft"||A.key==="ArrowRight")&&B===""&&G.length&&A.key===(n.direction==="rtl"?"ArrowRight":"ArrowLeft")?(A.preventDefault(),k(G.length-1)?.focus()):A.key==="Escape"&&l("")}}),!1,!1),$(D,x(J,{get when(){return M()},get children(){var A=YS();return V(A,"id",o),$(A,x(xe,{get each(){return m()},children:(B,G)=>(()=>{var E=JS();return E.$$click=()=>g(B.value),E.$$mousedown=R=>R.preventDefault(),$(E,()=>U(B.label)),te(R=>{var H=`${o}-${G()}`,W=G()===T.active(),j=G()===T.active()?"":void 0;return H!==R.e&&V(E,"id",R.e=H),W!==R.t&&V(E,"aria-selected",R.t=W),j!==R.a&&V(E,"data-active",R.a=j),R},{e:void 0,t:void 0,a:void 0}),E})()})),A}}),null),$(D,x(gt,{part:t,field:p}),null),te(A=>{var B=U(e.props.label)||void 0,G=a();return B!==A.e&&V(z,"aria-label",A.e=B),G!==A.t&&V(K,"value",A.t=G),A},{e:void 0,t:void 0}),D})()}function lC(e){const t=me(e),n=se(),r=Ae(),[o,i]=Oe(()=>e.node,()=>e.scope,"files",()=>Le(e.props.files));let s,a;const l=ht({node:()=>e.node,domId:()=>e.domId,props:()=>e.props,value:o,focusEl:()=>s}),c=()=>re(e.props.disabled)||!!l.form?.disabled,d=()=>re(e.props.multiple),u=()=>U(e.props.accept),p=()=>e.props.maxSize===void 0?1/0:ue(e.props.maxSize,1/0),[h,f]=Y(!1),[b,m]=Y(!1),[v,g]=Y([]),y=()=>U(e.props.name,e.node.id),k=M=>M===void 0?"":Bx(M,n.locale),w=M=>{if(!M||L(c))return;const P=L(d),D=Array.from(M).slice(0,P?void 0:1),O=[],z=[];for(const A of D)Wx(L(u),A)?A.size>L(p)?z.push($r(n,"fileTooLargeNamed",{name:A.name},()=>`${A.name}: ${n.t("fileTooLarge")}`)):O.push(A):z.push($r(n,"unsupportedFileNamed",{name:A.name},()=>`${A.name}: ${n.t("unsupportedFile")}`));if(g(z),O.length===0)return;const K=O.map(A=>({name:A.name,size:A.size,type:A.type})),ee=P?[...L(o).filter(A=>!K.some(B=>B.name===A.name)),...K]:K;i(ee),l.change(ee),e.emit("upload",{files:ee,added:K},{files:ee});const q=n.host.onUpload?.(O,{nodeId:L(()=>e.domId),name:L(y)});q&&typeof q.then=="function"&&(m(!0),q.finally(()=>m(!1)))},_=M=>{const P=L(o).filter(D=>D.name!==M);i(P),l.change(P),e.emit("remove",{name:M,files:P},{files:P})},T=(M,P)=>{M.preventDefault(),!L(c)&&f(P)},C=()=>U(e.props.hint);return(()=>{var M=nC(),P=M.firstChild,D=P.firstChild,O=D.nextSibling,z=O.nextSibling,K=z.nextSibling;I(M,S(()=>e.rootProps),!1,!0),$(M,x(tt,{get part(){return t("label")},get text(){return e.props.label},as:"label",htmlFor:r}),P);var ee=s;typeof ee=="function"?oe(ee,P):s=P,I(P,S(()=>t("dropzone",h()&&"dragover",c()&&"disabled",l.invalid&&"invalid"),{role:"button",get tabindex(){return c()?-1:0},get"aria-disabled"(){return c()||void 0},get"aria-busy"(){return b()||void 0},get"aria-describedby"(){return Fr(C()&&`${r}-hint`,v().length>0&&`${r}-refused`,l.describedBy)},get"aria-label"(){return U(e.props.label)||n.t("dropFiles")},get"data-dragover"(){return h()?"":void 0},onClick:()=>!L(c)&&a?.click(),onKeyDown:A=>{L(c)||(A.key==="Enter"||A.key===" ")&&(A.preventDefault(),a?.click())},onDragEnter:A=>T(A,!0),onDragOver:A=>T(A,!0),onDragLeave:A=>T(A,!1),onDrop:A=>{T(A,!1),w(A.dataTransfer?.files??null)}}),!1,!0),I(D,S(()=>t("icon")),!1,!0),$(D,x(we,{slot:"FileUpload.icon"})),I(O,S(()=>t("title")),!1,!0),$(O,()=>n.t("dropFiles")),$(P,x(J,{get when(){return C()},get children(){var A=Zc();return I(A,S(()=>t("hint"),{id:`${r}-hint`}),!1,!0),$(A,C),A}}),z),I(z,S(()=>t("browse"),{get class(){return`${t("browse").class} ${An("Button","root")}`},"data-r-variant":"outline","data-r-size":"sm","aria-hidden":"true"}),!1,!0),$(z,()=>n.t("browse")),K.addEventListener("change",A=>{w(A.currentTarget.files),A.currentTarget.value=""});var q=a;return typeof q=="function"?oe(q,K):a=K,V(K,"id",r),$(M,x(J,{get when(){return o().length},get children(){var A=eC();return $(A,x(xe,{get each(){return o()},children:(B,G)=>{const E=()=>bi(n.host,B.url);return(()=>{var R=oC(),H=R.firstChild,W=H.nextSibling;return I(R,S(()=>t.at("file",G())),!1,!0),I(H,S(()=>t.at("fileIcon",G())),!1,!0),$(H,x(we,{slot:"FileUpload.file"})),I(W,S(()=>t.at("fileName",G())),!1,!0),$(W,(()=>{var j=Z(()=>!!E());return()=>j()?(()=>{var X=iC();return $(X,()=>B.name),te(()=>V(X,"href",E())),X})():B.name})()),$(R,x(J,{get when(){return B.size!==void 0},get children(){var j=Zc();return I(j,S(()=>t.at("fileMeta",G())),!1,!0),$(j,()=>k(B.size)),j}}),null),$(R,x(J,{get when(){return!c()},get children(){var j=rC();return I(j,S(()=>t.at("remove",G()),{get"aria-label"(){return $r(n,"removeItem",{name:B.name},()=>`${n.t("remove")} ${B.name}`)},onClick:()=>_(B.name)}),!1,!0),$(j,x(we,{slot:"FileUpload.remove"})),j}}),null),R})()}})),A}}),null),$(M,x(J,{get when(){return v().length},get children(){var A=tC();return I(A,S(()=>t("error"),{id:`${r}-refused`,role:"alert"}),!1,!0),$(A,x(xe,{get each(){return v()},children:B=>(()=>{var G=sC();return $(G,B),G})()})),A}}),null),$(M,x(gt,{part:t,field:l}),null),te(A=>{var B=u()||void 0,G=d(),E=c(),R=y();return B!==A.e&&V(K,"accept",A.e=B),G!==A.t&&(K.multiple=A.t=G),E!==A.a&&(K.disabled=A.a=E),R!==A.o&&V(K,"name",A.o=R),A},{e:void 0,t:void 0,a:void 0,o:void 0}),M})()}const cC={ChipInput:aC,FileUpload:lC};_t(["mousedown","click"]);var dC=F("<img alt loading=lazy decoding=async>",!0,!1,!1),uC=F("<div>"),pC=F("<span aria-hidden=true>"),fC=F("<span>"),hC=F("<button type=button><span>");function gC(e){const t=typeof e=="number"&&Number.isFinite(e)?Math.round(e):2;return Math.min(4,Math.max(1,t))}function mC(e,t){if(Array.isArray(e))return e.map(String).filter(Boolean);const n=e==null?"":String(e);return t?n.split(",").map(r=>r.trim()).filter(Boolean):n?[n]:[]}function yC(e,t,n,r){if(!n)return[t];const o=e.includes(t)?e.filter(s=>s!==t):[...e,t],i=s=>{const a=r.indexOf(s);return a<0?Number.MAX_SAFE_INTEGER:a};return o.slice().sort((s,a)=>i(s)-i(a))}function bC(e){const t=se(),n=ki(()=>t.host,()=>e.src??"");return x(J,{get when(){return Z(()=>!!(e.src&&n().url))()&&!n().error},get fallback(){return x(we,{slot:"Image.fallback"})},get children(){var r=dC();return te(()=>V(r,"src",n().url)),r}})}function vC(e){const t=me(e),n=se(),r=()=>U(e.props.type,"single")==="multiple",o=N(()=>Le(e.props.options).map(C=>({value:U(C.value),label:U(C.label),description:C.description===void 0?null:U(C.description),image:typeof C.image=="string"&&C.image?C.image:null,disabled:re(C.disabled)})),void 0,{equals:(C,M)=>JSON.stringify(C)===JSON.stringify(M)}),[i,s]=Oe(()=>e.node,()=>e.scope,"value",()=>U(e.props.value));let a;const l=[],c=ht({node:()=>e.node,domId:()=>e.domId,props:()=>e.props,value:i,focusEl:()=>a?.querySelector('button[tabindex="0"]')??a?.querySelector("button")}),d=()=>re(e.props.disabled)||!!c.form?.disabled,u=N(()=>mC(i(),r())),p=N(()=>o().map(C=>C.value)),h=()=>o().some(C=>!!C.image),f=C=>!d()&&!o()[C]?.disabled,b=()=>{const C=o().findIndex((M,P)=>u().includes(M.value)&&f(P));return C>=0?C:o().findIndex((M,P)=>f(P))},m=()=>n.direction==="rtl"?"rtl":"ltr",v=C=>{const M=C.join(",");s(M),c.change(M),c.touch(),e.emit("change",{value:M},{value:M})},g=C=>v(yC(u(),o()[C].value,r(),p())),y=(C,M)=>{const P=o().length;for(let D=1;D<=P;D++){const O=((C+M*D)%P+P)%P;if(f(O))return O}return-1},k=(C,M)=>{const P=m()==="rtl"?"ArrowLeft":"ArrowRight",D=m()==="rtl"?"ArrowRight":"ArrowLeft",O=M.key===P||M.key==="ArrowDown"?1:M.key===D||M.key==="ArrowUp"?-1:0;if(O===0)return;M.preventDefault();const z=y(C,O);z<0||(l[z]?.focus(),!r()&&!u().includes(o()[z].value)&&g(z))},w=N(()=>{const{class:C,style:M,...P}=e.rootProps;return{...P,class:`${U(C)} xui-choice-tiles`,"aria-describedby":c.describedBy}}),_=()=>({display:"grid","grid-template-columns":`repeat(${gC(e.props.columns)}, minmax(0, 1fr))`,...e.rootProps.style??{}}),T=(C,M)=>[C&&"selected",M&&"disabled",c.invalid&&"invalid"];return(()=>{var C=uC(),M=a;return typeof M=="function"?oe(M,C):a=C,I(C,S({get role(){return r()?"group":"radiogroup"},get"aria-invalid"(){return c.invalid||void 0},get"aria-disabled"(){return d()||void 0},get dir(){return m()}},w,{get style(){return _()}}),!1,!0),$(C,x(ft,{get each(){return o()},children:(P,D)=>{const O=()=>D,z={get value(){return P().value},get label(){return P().label},get description(){return P().description},get image(){return P().image}},K=()=>u().includes(z.value),ee=()=>!f(O()),q=()=>z.description?String(z.description):"";return(()=>{var A=hC(),B=A.firstChild;return A.$$keydown=G=>k(O(),G),A.$$click=()=>g(O()),oe(G=>l[O()]=G,A),I(A,S({get role(){return r()?"checkbox":"radio"},get"aria-checked"(){return K()},get"aria-label"(){return z.label},get disabled(){return ee()},get tabindex(){return O()===b()?0:-1},get"data-state"(){return K()?"checked":"unchecked"},get"data-value"(){return z.value}},()=>t.at("tile",O(),...T(K(),ee()))),!1,!0),$(A,x(J,{get when(){return h()},get children(){var G=pC();return I(G,S(()=>t.at("picture",O(),...T(K(),ee()))),!1,!0),$(G,x(bC,{get src(){return Z(()=>!!z.image)()?String(z.image):null}})),G}}),B),I(B,S(()=>t.at("label",O(),...T(K(),ee()))),!1,!0),$(B,()=>z.label),$(A,x(J,{get when(){return q()},get children(){var G=fC();return I(G,S(()=>t.at("description",O(),...T(K(),ee()))),!1,!0),$(G,q),G}}),null),A})()}}),null),$(C,x(gt,{part:t,field:c}),null),C})()}const xC={ChoiceTiles:vC};_t(["click","keydown"]);var Qc=F("<span>"),$C=F("<button type=button>"),wC=F("<div>"),kC=F("<div><div><pre class=xui-codeblock-pre><code>"),SC=F("<span class=xui-codeblock-spacer>"),CC=F("<span><span>"),AC=F(`<span><span></span>
497
+ `);function TC(e){const t=se(),n=me(e),r=()=>U(e.props.code),o=()=>U(e.props.language,"plain"),i=N(()=>Ry(r(),o())),s=N(()=>new Set(Lt(e.props.highlight).map(y=>ue(y)))),a=()=>re(e.props.lineNumbers),l=()=>e.props.copyable!==!1,c=()=>U(e.props.title),d=()=>c()||(o()==="plain"?"":o()),u=()=>e.props.maxLines===void 0?0:ue(e.props.maxLines),[p,h]=Y(!1);let f=null;le(()=>{f&&clearTimeout(f)});const b=async()=>{const y=typeof navigator>"u"?void 0:navigator.clipboard;if(y?.writeText){try{await y.writeText(zy(r(),o()))}catch{return}h(!0),t.announce(t.t("copied")),f&&clearTimeout(f),f=setTimeout(()=>h(!1),1500)}},m=()=>`${String(i().length).length+1}ch`,v=()=>`${n("body").class} xui-codeblock-scroll`,g=()=>`${n("code").class} xui-codeblock-text`;return(()=>{var y=kC(),k=y.firstChild,w=k.firstChild,_=w.firstChild;return I(y,S(()=>e.rootProps,{role:"region",get"aria-label"(){return c()||t.t("codeBlock")},get"data-language"(){return o()}}),!1,!0),$(y,x(J,{get when(){return d()||l()},get children(){var T=wC();return I(T,S(()=>n("header")),!1,!0),$(T,x(J,{get when(){return d()},get fallback(){return SC()},get children(){var C=Qc();return I(C,S(()=>n("title")),!1,!0),$(C,d),C}}),null),$(T,x(J,{get when(){return l()},get children(){var C=$C();return I(C,S(()=>n("copy",p()&&"checked"),{get"aria-label"(){return Z(()=>!!p())()?t.t("copied"):t.t("copy")},onClick:()=>{b()}}),!1,!0),$(C,x(we,{get slot(){return p()?"CodeBlock.copied":"CodeBlock.copy"}})),C}}),null),T}}),k),I(k,S(()=>n("body"),{get class(){return v()},get"data-wrap"(){return re(e.props.wrap)?"true":void 0},get style(){return Z(()=>u()>0)()?ge({"--xui-code-lines":u()}):void 0},get"data-max-lines"(){return Z(()=>u()>0)()?u():void 0},tabindex:0}),!1,!0),$(_,x(ft,{get each(){return i()},children:(T,C)=>(()=>{var M=AC(),P=M.firstChild;return I(M,S(()=>n.at("line",C,s().has(C+1)&&"selected"),{"data-line":C+1}),!1,!0),$(M,x(J,{get when(){return a()},get children(){var D=CC(),O=D.firstChild;return I(D,S(()=>n("gutter"),{get style(){return{"min-width":m()}},"aria-hidden":"true"}),!1,!0),I(O,S(()=>n.at("lineNumber",C)),!1,!0),$(O,C+1),D}}),P),I(P,S(()=>n.at("code",C),{get class(){return g()}}),!1,!0),$(P,()=>T().length===0?"​":null,null),$(P,x(ft,{get each(){return T()},children:D=>(()=>{var O=Qc();return I(O,S(()=>n.with("token",{kind:D().kind})),!1,!0),$(O,()=>D().text),O})()}),null),M})()})),te(()=>V(w,"id",`${e.domId}.code`)),y})()}const IC={CodeBlock:TC};var EC=F("<div class=xui-calendar-head><button type=button class=xui-calendar-nav></button><span aria-live=polite></span><button type=button class=xui-calendar-nav>"),_C=F("<div class=xui-calendar-grid role=grid><div role=row class=xui-calendar-row>"),MC=F("<span role=columnheader class=xui-calendar-weekday>"),DC=F("<div role=row class=xui-calendar-row>"),PC=F("<span role=gridcell class=xui-calendar-cell><button type=button><span class=xui-calendar-day-label>"),Mi=F("<span>"),uf=F("<div><button><span>"),OC=F("<div role=listbox tabindex=0 class=xui-TimePicker-listbox>"),FC=F("<div><button type=button><span>"),zC=F("<div role=option>");const pf=(e,t)=>({type:"button","aria-haspopup":"dialog","aria-expanded":e,"aria-controls":t,"data-state":e?"open":"closed"});function ff(e){const t=L(()=>e.initial),[n,r]=Y(t),[o,i]=Y(new Date(t.getFullYear(),t.getMonth(),1));let s,a=!1;const l=N(()=>Kx(o(),e.firstDay)),c=N(()=>{const g=new Intl.DateTimeFormat(e.formatter.locale,{weekday:"narrow"});return Array.from({length:7},(y,k)=>{const w=new Date(2023,0,1+(e.firstDay+k)%7);return{short:e.formatter.date(pt(w),{format:"EEE"}),narrow:g.format(w)}})}),d=()=>e.formatter.date(pt(o()),{format:"MMMM yyyy"}),u=N(()=>new Intl.DateTimeFormat(e.formatter.locale,{weekday:"long",year:"numeric",month:"long",day:"numeric"})),p=g=>e.min!==null&&g<e.min||e.max!==null&&g>e.max,h=g=>{const y=es(n(),g);vs(()=>{r(y),i(new Date(y.getFullYear(),y.getMonth(),1))})},f=N(()=>Gx(l(),o(),n(),p)),b=g=>{a=!0,vs(()=>{r(g);const y=o();(g.getMonth()!==y.getMonth()||g.getFullYear()!==y.getFullYear())&&i(new Date(g.getFullYear(),g.getMonth(),1))})};fe(De([n,o],()=>{a&&(a=!1,s?.querySelector(`[data-date="${pt(n())}"]`)?.focus())}));const m=g=>{const y=g.key,k=n(),w=e.direction==="rtl";let _=null;if(y==="ArrowLeft")_=Nn(k,w?1:-1);else if(y==="ArrowRight")_=Nn(k,w?-1:1);else if(y==="ArrowUp")_=Nn(k,-7);else if(y==="ArrowDown")_=Nn(k,7);else if(y==="PageUp")_=es(k,g.shiftKey?-12:-1);else if(y==="PageDown")_=es(k,g.shiftKey?12:1);else if(y==="Home")_=Nn(k,-((k.getDay()-e.firstDay+7)%7));else if(y==="End")_=Nn(k,6-(k.getDay()-e.firstDay+7)%7);else if(y==="Enter"||y===" "){g.preventDefault(),p(k)||e.onPick(k);return}_&&(g.preventDefault(),b(_))},v=N(()=>{const g=[],y=l();for(let k=0;k<6;k++)g.push(y.slice(k*7,k*7+7));return g});return[(()=>{var g=EC(),y=g.firstChild,k=y.nextSibling,w=k.nextSibling;return y.$$click=()=>h(-1),$(y,x(we,{slot:"DatePicker.previousMonth"})),$(k,d),w.$$click=()=>h(1),$(w,x(we,{slot:"DatePicker.nextMonth"})),te(_=>{var T=e.t("previousMonth"),C=e.t("nextMonth");return T!==_.e&&V(y,"aria-label",_.e=T),C!==_.t&&V(w,"aria-label",_.t=C),_},{e:void 0,t:void 0}),g})(),(()=>{var g=_C(),y=g.firstChild;g.$$keydown=m;var k=s;return typeof k=="function"?oe(k,g):s=g,$(y,x(ft,{get each(){return c()},children:w=>(()=>{var _=MC();return $(_,()=>w().narrow),te(T=>{var C=w().short,M=w().short;return C!==T.e&&V(_,"aria-label",T.e=C),M!==T.t&&V(_,"title",T.t=M),T},{e:void 0,t:void 0}),_})()})),$(g,x(ft,{get each(){return v()},children:w=>(()=>{var _=DC();return $(_,x(ft,{get each(){return w()},children:T=>{const C=T,M=()=>e.isSelected(C()),P=()=>e.inRange?.(C())??!1,D=()=>C().getMonth()!==o().getMonth(),O=()=>p(C()),z=()=>sn(C(),f()),K=()=>sn(C(),new Date);return(()=>{var ee=PC(),q=ee.firstChild,A=q.firstChild;return I(q,S(()=>e.part(e.dayPart,M()&&"selected",O()&&"disabled"),{get"data-date"(){return pt(C())},get"data-outside"(){return D()?"":void 0},get"data-range"(){return P()?"":void 0},get"data-today"(){return K()?"":void 0},get disabled(){return O()},get tabindex(){return z()?0:-1},onFocus:()=>{sn(C(),n())||r(C())},get"aria-label"(){return u().format(C())},get"aria-current"(){return K()?"date":void 0},onClick:()=>{r(C()),e.onPick(C())}}),!1,!0),$(q,(()=>{var B=Z(()=>!!(P()&&!M()));return()=>B()?(()=>{var G=Mi();return I(G,S(()=>e.part("range"),{"aria-hidden":"true"}),!1,!1),G})():null})(),A),$(A,()=>C().getDate()),te(()=>V(ee,"aria-selected",M())),ee})()}})),_})()}),null),te(()=>V(g,"aria-label",d())),g})()]}function hf(e,t){return e.firstDayOfWeek===void 0?Ay(t):(Math.round(ue(e.firstDayOfWeek))%7+7)%7}const gf=e=>e.querySelector('.xui-calendar-grid button[tabindex="0"]')?.focus();function RC(e){const t=me(e),n=se(),r=Ae(),o=Ae(),[i,s]=Oe(()=>e.node,()=>e.scope,"value",()=>U(e.props.value));let a;const l=ht({node:()=>e.node,domId:()=>e.domId,props:()=>e.props,value:i,focusEl:()=>a}),[c,d]=Y(!1),u=N(()=>i()?qt(i()):null),p=N(()=>e.props.min?qt(U(e.props.min)):null),h=N(()=>e.props.max?qt(U(e.props.max)):null),f=()=>hf(e.props,n.locale),b=()=>{const g=u();return g?n.formatter.date(pt(g)):""},m=()=>re(e.props.disabled)||!!l.form?.disabled,v=g=>{const y=pt(g);s(y),l.change(y),l.touch(),e.emit("change",{value:y},{value:y}),d(!1)};return(()=>{var g=uf(),y=g.firstChild,k=y.firstChild;I(g,S(()=>e.rootProps),!1,!0),$(g,x(tt,{get part(){return t("label")},get text(){return e.props.label},as:"label",htmlFor:r}),y);var w=a;return typeof w=="function"?oe(w,y):a=y,I(y,S(()=>pf(c(),o),{id:r},()=>t("trigger",c()&&"open",l.invalid&&"invalid",m()&&"disabled"),{get disabled(){return m()},get"data-value"(){return i()||void 0},"aria-haspopup":"dialog",get"aria-invalid"(){return l.invalid||void 0},get"aria-describedby"(){return l.describedBy},onClick:()=>d(!c())}),!1,!0),$(k,()=>b()||(()=>{var _=Mi();return I(_,S(()=>t("placeholder")),!1,!0),$(_,()=>U(e.props.placeholder)),_})()),$(y,x(we,{slot:"DatePicker.trigger"}),null),$(g,x(Ja,{get portal(){return n.portal},get dir(){return n.direction},get open(){return c()},setOpen:d,trigger:()=>a,contentId:o,get attrs(){return{...t("calendar",c()&&"open"),dir:n.direction,role:"dialog","aria-label":U(e.props.label)||void 0,"data-xui-overlay":"DatePicker"}},onOpenAutoFocus:gf,get children(){return x(ff,{part:t,dayPart:"day",get locale(){return n.locale},get formatter(){return n.formatter},get firstDay(){return f()},get min(){return p()},get max(){return h()},isSelected:_=>sn(_,u()),get initial(){return u()??new Date},onPick:v,get t(){return n.t},get direction(){return n.direction}})}}),null),$(g,x(gt,{part:t,field:l}),null),g})()}function NC(e){const t=me(e),n=se(),r=Ae(),o=Ae(),[i,s]=Oe(()=>e.node,()=>e.scope,"start",()=>U(e.props.start)),[a,l]=Oe(()=>e.node,()=>e.scope,"end",()=>U(e.props.end));let c;const d=ht({node:()=>e.node,domId:()=>e.domId,props:()=>e.props,value:()=>({start:i(),end:a()}),focusEl:()=>c}),[u,p]=Y(!1),[h,f]=Y(null),[b,m]=Y(null),v=N(()=>i()?qt(i()):null),g=N(()=>a()?qt(a()):null),y=N(()=>e.props.min?qt(U(e.props.min)):null),k=N(()=>e.props.max?qt(U(e.props.max)):null),w=()=>hf(e.props,n.locale),_=P=>n.formatter.date(pt(P)),T=()=>{const P=v(),D=g();return P?`${_(P)} – ${D?_(D):""}`:""};Xt(De(u,P=>{P||(f(null),m(null))}));const C=P=>{const D=h();if(!D){f(P);return}const[O,z]=P<D?[P,D]:[D,P],K={start:pt(O),end:pt(z)};s(K.start),l(K.end),f(null),d.change(K),d.touch(),e.emit("change",K,K),p(!1)},M=N(()=>{const P=h()??v(),D=h()?b():g();return P&&D?D<P?[D,P]:[P,D]:[P,D]});return(()=>{var P=uf(),D=P.firstChild,O=D.firstChild;I(P,S(()=>e.rootProps),!1,!0),$(P,x(tt,{get part(){return t("label")},get text(){return e.props.label},as:"label",htmlFor:r}),D);var z=c;return typeof z=="function"?oe(z,D):c=D,I(D,S(()=>pf(u(),o),{id:r},()=>t("trigger",u()&&"open",d.invalid&&"invalid"),{get"data-start"(){return i()||void 0},get"data-end"(){return a()||void 0},"aria-haspopup":"dialog",get"aria-describedby"(){return d.describedBy},onClick:()=>p(!u())}),!1,!0),$(O,()=>T()||(()=>{var K=Mi();return I(K,S(()=>t("placeholder")),!1,!0),$(K,()=>U(e.props.placeholder)),K})()),$(D,x(we,{slot:"DateRangePicker.trigger"}),null),$(P,x(Ja,{get portal(){return n.portal},get dir(){return n.direction},get open(){return u()},setOpen:p,trigger:()=>c,contentId:o,get attrs(){return{...t("calendar",u()&&"open"),dir:n.direction,role:"dialog","aria-label":U(e.props.label)||void 0,"data-xui-overlay":"DateRangePicker","data-pending":h()?pt(h()):void 0}},onOpenAutoFocus:gf,onPointerOver:K=>{const ee=K.target.closest?.("[data-date]")?.getAttribute("data-date");h()&&ee&&m(qt(ee))},onFocusIn:K=>{const ee=K.target.getAttribute?.("data-date");h()&&ee&&m(qt(ee))},get children(){return x(ff,{part:t,dayPart:"day",get locale(){return n.locale},get formatter(){return n.formatter},get firstDay(){return w()},get min(){return y()},get max(){return k()},isSelected:K=>sn(K,h())||!h()&&(sn(K,v())||sn(K,g())),inRange:K=>{const[ee,q]=M();return!!(ee&&q&&K>ee&&K<q)},get initial(){return v()??new Date},onPick:C,get t(){return n.t},get direction(){return n.direction}})}}),null),$(P,x(gt,{part:t,field:d}),null),P})()}const fs=e=>{const t=/^(\d{1,2}):(\d{2})$/.exec(e.trim());if(!t)return null;const n=Number(t[1]),r=Number(t[2]);return n<24&&r<60?n*60+r:null},Jc=e=>`${String(Math.floor(e/60)).padStart(2,"0")}:${String(e%60).padStart(2,"0")}`;function LC(e){const t=me(e),n=se(),r=Ae(),o=Ae(),i=`${r}-list`,[s,a]=Oe(()=>e.node,()=>e.scope,"value",()=>U(e.props.value));let l;const c=ht({node:()=>e.node,domId:()=>e.domId,props:()=>e.props,value:s,focusEl:()=>l}),d=()=>re(e.props.disabled)||!!c.form?.disabled,[u,p]=Y(!1),h=()=>Math.max(1,Math.round(ue(e.props.step,15))),f=()=>fs(U(e.props.min))??0,b=()=>fs(U(e.props.max))??1439,m=N(()=>{const C=[];for(let M=f();M<=b();M+=h())C.push(M);return C}),v=N(()=>new Intl.DateTimeFormat(n.locale,{hour:"numeric",minute:"2-digit"})),g=C=>v().format(new Date(2e3,0,1,Math.floor(C/60),C%60)),y=()=>fs(s()),k=C=>{const M=Jc(m()[C]);a(M),c.change(M),c.touch(),e.emit("change",{value:M},{value:M}),p(!1),l?.focus()},w=AS({count:()=>m().length,labelOf:C=>g(m()[C]),onPick:k,typeahead:!0});let _;Xt(De(u,C=>{if(!C)return;const M=L(y),P=M===null?0:L(m).findIndex(D=>D>=M);w.setActive(P<0?0:P)},{defer:!0}));const T=()=>w.active()>=0?`${i}-${w.active()}`:void 0;return fe(De(T,C=>{C&&_?.querySelector(`[id="${C}"]`)?.scrollIntoView?.({block:"nearest"})})),(()=>{var C=FC(),M=C.firstChild,P=M.firstChild;I(C,S(()=>e.rootProps),!1,!0),$(C,x(tt,{get part(){return t("label")},get text(){return e.props.label},as:"label",htmlFor:r}),M);var D=l;return typeof D=="function"?oe(D,M):l=M,V(M,"id",r),I(M,S({get"data-state"(){return u()?"open":"closed"}},()=>t("trigger",u()&&"open",d()&&"disabled",c.invalid&&"invalid"),{get disabled(){return d()},role:"combobox","aria-haspopup":"listbox",get"aria-expanded"(){return u()},get"aria-controls"(){return u()?i:void 0},get"data-value"(){return s()||void 0},get"aria-describedby"(){return c.describedBy},onClick:()=>p(!u())}),!1,!0),$(P,(()=>{var O=Z(()=>y()!==null);return()=>O()?g(y()):(()=>{var z=Mi();return I(z,S(()=>t("placeholder")),!1,!0),$(z,()=>U(e.props.placeholder)),z})()})()),$(M,x(we,{slot:"TimePicker.trigger"}),null),$(C,x(Ja,{get portal(){return n.portal},get dir(){return n.direction},get open(){return u()},setOpen:p,trigger:()=>l,contentId:o,get attrs(){return{...t("list",u()&&"open"),dir:n.direction,"data-xui-overlay":"TimePicker"}},onOpenAutoFocus:()=>_?.focus(),get children(){var O=OC();Hn(O,"keydown",w.onKeyDown,!0);var z=_;return typeof z=="function"?oe(z,O):_=O,V(O,"id",i),V(O,"aria-labelledby",r),$(O,x(xe,{get each(){return m()},children:(K,ee)=>{const q=()=>K===y();return(()=>{var A=zC();return I(A,S({get id(){return`${i}-${ee()}`},get"aria-selected"(){return q()},get"data-value"(){return Jc(K)}},()=>t("item",(q()||ee()===w.active())&&"selected"),{onPointerMove:()=>w.setActive(ee()),onMouseDown:B=>B.preventDefault(),onClick:()=>k(ee())}),!1,!0),$(A,()=>g(K)),A})()}})),te(()=>V(O,"aria-activedescendant",T())),O}}),null),$(C,x(gt,{part:t,field:c}),null),C})()}const jC={DatePicker:RC,DateRangePicker:NC,TimePicker:LC};_t(["click","keydown"]);var cr=F("<span>"),BC=F("<span><svg><circle></circle><circle>"),ed=F("<div>"),WC=F("<div><span></span><span>"),td=F("<i>"),HC=F("<span class=xui-tree-col>"),mf=F("<span><svg aria-hidden=true>"),UC=F("<svg><rect></svg>",!1,!0,!1),qC=F("<svg><path></svg>",!1,!0,!1);function Di(e,t,n,r,o){const i=tr(e.theme,{component:t,part:n,props:ln(t,r,e.extensionDefs)},e.mode);return typeof i.width=="number"?i.width:o}function VC(e){const t=se(),n=me(e),r=N(()=>{const i=Di(t,"Ring","root",e.props,32),s=Math.max(0,Math.min(1,ue(e.props.value,0))),a=tr(t.theme,{component:"Ring",part:"track",props:ln("Ring",e.props)},t.mode),l=tr(t.theme,{component:"Ring",part:"fill",props:ln("Ring",e.props)},t.mode),c=typeof a.borderWidth=="number"?a.borderWidth:2,d=i/2-c/2,u=2*Math.PI*d;return{size:i,value:s,trackStyle:a,fillStyle:l,stroke:c,r:d,c:u,fillStroke:typeof l.borderWidth=="number"?l.borderWidth:c}}),o=()=>U(e.props.label);return(()=>{var i=BC(),s=i.firstChild,a=s.firstChild,l=a.nextSibling;return I(i,S(()=>e.rootProps,{role:"progressbar","aria-valuemin":0,"aria-valuemax":1,get"aria-valuenow"(){return r().value},get"aria-label"(){return o()||void 0},get style(){return mt(e.rootProps,{width:r().size,height:r().size})}}),!1,!0),I(a,S(()=>n("track"),{get cx(){return r().size/2},get cy(){return r().size/2},get r(){return r().r},fill:"none",stroke:"currentColor",get"stroke-width"(){return r().stroke},get style(){return ge({color:String(r().trackStyle.color??"currentColor")})}}),!0,!1),I(l,S(()=>n("fill"),{get cx(){return r().size/2},get cy(){return r().size/2},get r(){return r().r},fill:"none",stroke:"currentColor",get"stroke-width"(){return r().fillStroke},get"stroke-dasharray"(){return`${r().c*r().value} ${r().c}`},"stroke-linecap":"round",get transform(){return`rotate(-90 ${r().size/2} ${r().size/2})`},get style(){return ge({color:String(r().fillStyle.color??"currentColor")})}}),!0,!1),$(i,x(J,{get when(){return o()},get children(){var c=cr();return I(c,S(()=>n("label")),!1,!0),$(c,o),c}}),null),te(c=>{var d=`0 0 ${r().size} ${r().size}`,u=r().size,p=r().size;return d!==c.e&&V(s,"viewBox",c.e=d),u!==c.t&&V(s,"width",c.t=u),p!==c.a&&V(s,"height",c.a=p),c},{e:void 0,t:void 0,a:void 0}),i})()}function KC(e){const t=se(),n=()=>Di(t,"Spinner","root",e.props,20),r=()=>U(e.props.label)||t.t("loading");return(()=>{var o=cr();return I(o,S(()=>e.rootProps,{role:"status",get"aria-label"(){return r()},get style(){return mt(e.rootProps,{width:n(),height:n()})}}),!1,!0),$(o,x(Pa,{get icon(){return wp.spinner},"aria-hidden":"true"})),o})()}const nd=[[56,168],[56,120],[56,192]];function GC(e){const t=me(e),n=()=>Math.min(50,Math.floor(ue(e.props.rows,0))),r=()=>{const a=U(e.props.width,"100%"),l=U(e.props.height,"16px");return(()=>{var c=ed();return I(c,S(()=>e.rootProps,{"aria-hidden":"true",get style(){return mt(e.rootProps,{width:a,height:l,borderRadius:re(e.props.rounded)?9999:void 0})}}),!1,!1),c})()},o=()=>e.props.dot===void 0?!0:re(e.props.dot),i=()=>e.props.rowHeight===void 0?"var(--xui-control-row)":`${ue(e.props.rowHeight)}px`,s=N(()=>Array.from({length:Math.max(0,n())},(a,l)=>l));return x(J,{get when(){return n()>=1},get fallback(){return r()},get children(){var a=ed();return I(a,S(()=>e.rootProps,{"data-rows":"","aria-hidden":"true"}),!1,!0),$(a,x(xe,{get each(){return s()},children:l=>{const[c,d]=nd[l%nd.length];return(()=>{var u=WC(),p=u.firstChild,h=p.nextSibling;return I(u,S(()=>t.at("row",l),{get style(){return ge({height:i()})}}),!1,!0),$(u,x(J,{get when(){return o()},get children(){var f=cr();return I(f,S(()=>t.at("dot",l)),!1,!1),f}}),p),I(p,S(()=>t.at("bar",`${l}.0`),{get style(){return ge({width:c})}}),!1,!1),I(h,S(()=>t.at("bar",`${l}.1`),{"data-title":"",get style(){return ge({width:d})}}),!1,!1),u})()}})),a}})}function YC(e){const t=se(),n=me(e),r=()=>Math.max(0,Math.floor(ue(e.props.depth,0))),o=()=>e.props.elbowAt===void 0||e.props.elbowAt===null?-1:ue(e.props.elbowAt),i=()=>re(e.props.tee),s=N(()=>new Set(Lt(e.props.passThrough).map(u=>ue(u)))),a=()=>Di(t,"TreeGuides","line",e.props,1),l=Hi/2,c=()=>(()=>{var u=td();return I(u,S(()=>n("line"),{"data-vertical":"",get style(){return ge({left:l,width:a(),top:-Ui,bottom:0})}}),!1,!1),u})(),d=N(()=>Array.from({length:r()},(u,p)=>p));return(()=>{var u=cr();return I(u,S(()=>e.rootProps,{"aria-hidden":"true",get"data-tee"(){return i()?"true":void 0}}),!1,!0),$(u,x(xe,{get each(){return d()},children:p=>{const h=()=>p===o();return(()=>{var f=HC();return V(f,"data-col",p),$(f,(()=>{var b=Z(()=>!!(s().has(p)&&!h()));return()=>b()?c():null})(),null),$(f,(()=>{var b=Z(()=>!!(h()&&i()));return()=>b()?c():null})(),null),$(f,(()=>{var b=Z(()=>!!h());return()=>b()?(()=>{var m=td();return I(m,S(()=>n("line"),{"data-elbow":"",get style(){return ge({left:l,top:-Ui,width:Hi-l,height:`calc(50% + ${Ui+a()/2}px)`,borderLeftWidth:a(),borderBottomWidth:a(),borderBottomLeftRadius:ey})}}),!1,!1),m})():null})(),null),te(b=>Ee(f,ge({width:Hi}),b)),f})()}})),u})()}function XC(e){return x(J,{get when(){return Vy(e.props.variant)==="bars"},get fallback(){return x(QC,e)},get children(){return x(ZC,e)}})}function ZC(e){const t=se(),n=me(e),r=N(()=>{const d=U(e.props.activity);return wa.includes(d)?d:"idle"}),[o,i]=Y(0),s=N(()=>gp(r())&&!t.reducedMotion);fe(()=>{if(!s()){i(0);return}le(yp(i))});const a=N(()=>Gy({size:U(e.props.size,"md"),activity:r(),level:ue(e.props.level,0),bands:Lt(e.props.bands).map(d=>ue(d,0)),reducedMotion:t.reducedMotion,elapsed:o()})),l=()=>String(tr(t.theme,{component:"VoiceWave",part:"bar",props:ln("VoiceWave",e.props)},t.mode).color??"currentColor"),c=()=>mp(U(e.props.label)||void 0,r());return(()=>{var d=mf(),u=d.firstChild;return I(d,S(()=>e.rootProps,{get role(){return c()?"img":void 0},get"aria-label"(){return c()},get"aria-hidden"(){return c()?void 0:"true"},"data-variant":"bars",get style(){return mt(e.rootProps,{width:a().width,height:a().height})}}),!1,!0),$(u,x(ft,{get each(){return a().bars},children:p=>(()=>{var h=UC();return I(h,S(()=>n("bar"),{get x(){return p().x},get y(){return p().y},get width(){return p().width},get height(){return p().height},get rx(){return p().radius},fill:"currentColor"}),!0,!1),h})()})),$(d,x(J,{get when(){return e.node.children.length>0},get children(){var p=cr();return I(p,S(()=>n("child"),{"data-hidden":"true","aria-hidden":"true"}),!1,!0),$(p,()=>e.children),p}}),null),te(p=>{var h=`0 0 ${a().width} ${a().height}`,f=a().width,b=a().height,m=ge({color:l()});return h!==p.e&&V(u,"viewBox",p.e=h),f!==p.t&&V(u,"width",p.t=f),b!==p.a&&V(u,"height",p.a=b),p.o=Ee(u,m,p.o),p},{e:void 0,t:void 0,a:void 0,o:void 0}),d})()}function QC(e){const t=se(),n=me(e),r=N(()=>{const u=U(e.props.activity);return wa.includes(u)?u:"idle"}),o=()=>Di(t,"VoiceWave","root",e.props,56),[i,s]=Y(0),a=N(()=>gp(r())&&!t.reducedMotion);fe(()=>{if(!a()){s(0);return}le(yp(s))});const l=N(()=>Wy({size:o(),activity:r(),level:ue(e.props.level,0),bands:Lt(e.props.bands).map(u=>ue(u,0)),reducedMotion:t.reducedMotion,elapsed:i()})),c=u=>String(tr(t.theme,{component:"VoiceWave",part:u,props:ln("VoiceWave",e.props)},t.mode).color??"currentColor"),d=()=>mp(U(e.props.label)||void 0,r());return(()=>{var u=mf(),p=u.firstChild;return I(u,S(()=>e.rootProps,{get role(){return d()?"img":void 0},get"aria-label"(){return d()},get"aria-hidden"(){return d()?void 0:"true"},get style(){return mt(e.rootProps,{width:o(),height:o()})}}),!1,!0),$(p,x(ft,{get each(){return l().rings},children:h=>(()=>{var f=qC();return I(f,S(()=>n(h().part),{get d(){return Hy(h())},fill:"currentColor",get"fill-opacity"(){return h().fillAlpha},stroke:"currentColor",get"stroke-opacity"(){return h().strokeAlpha},get"stroke-width"(){return h().strokeWidth},"stroke-linejoin":"round",get style(){return ge({color:c(h().part)})}}),!0,!1),f})()})),$(u,x(J,{get when(){return e.node.children.length>0},get children(){var h=cr();return oe(f=>fe(()=>{const b=o();le($$(f,m=>bu(b,m).scale))}),h),I(h,S(()=>n("child"),{get"data-hidden"(){return l().childSize>0?void 0:"true"},get"aria-hidden"(){return l().childSize>0?void 0:"true"},get style(){return ge({color:c("child")})}}),!1,!0),$(h,()=>e.children),h}}),null),te(h=>{var f=`0 0 ${o()} ${o()}`,b=o(),m=o();return f!==h.e&&V(p,"viewBox",h.e=f),b!==h.t&&V(p,"width",h.t=b),m!==h.a&&V(p,"height",h.a=m),h},{e:void 0,t:void 0,a:void 0}),u})()}const JC={Ring:VC,Spinner:KC,Skeleton:GC,VoiceWave:XC,TreeGuides:YC};function yf(e){const[t,n]=Y(0,{equals:!1}),r=new Yx({initial:L(e.external),send:(o,i,s)=>e.send(o,i,s),writeLocal:o=>e.writeLocal?.(o),debounceMs:e.debounceMs??zr,onChange:()=>n(0)});return r.attach(),le(()=>r.dispose()),fe(De(e.external,o=>{r.push(o)},{defer:!0})),{get value(){return t(),r.value},get revision(){return t(),r.revision},get pending(){return t(),r.pending},get focused(){return t(),r.focused},onFocus:()=>r.focus(),onBlur:()=>r.blur(),edit:o=>r.edit(o),commit:()=>r.commit()}}var e3=F("<textarea>"),t3=F("<div>"),n3=F("<input>"),r3=F("<div><div><button type=button></button><input><button type=button>"),o3=F("<span>"),bf=F("<span data-state=checked>"),i3=F("<div><button type=button role=checkbox value=on></button><div class=xui-field-text>"),s3=F("<div><div></div><button type=button role=switch value=on><span>"),a3=F("<div><div role=radiogroup>"),l3=F("<label class=xui-radio-row><button type=button role=radio data-radix-collection-item></button><span>"),c3=F("<div><div><span></span></div><span data-orientation=horizontal class=xui-slider-root><span data-orientation=horizontal><span data-orientation=horizontal></span></span><span><span role=slider aria-orientation=horizontal data-orientation=horizontal tabindex=0 data-radix-collection-item style>"),d3=F("<div><textarea></textarea><div class=xui-composer-bar><button type=button>"),u3=F("<button type=button>");function vf(e,t){const n=se(),r=N(()=>Or(e.node.props,t,e.scope)),o=()=>U(e.node.props.name,e.node.id);return{send:(a,l,c)=>L(()=>{const d={surfaceId:n.surfaceId,componentId:e.domId,name:o(),path:dx(r()),value:a,revision:l,kind:c};return n.host.onInput?.(d)}),writeLocal:a=>{const l=L(r);l&&n.setData(l,a)},path:r,name:o}}function p3(e){return x(xf,S(e,{multiline:!1}))}function f3(e){return x(xf,S(e,{multiline:!0}))}function h3(e,t,n){const r=getComputedStyle(e),o=parseFloat(r.lineHeight)||parseFloat(r.fontSize)*1.4||20,i=(parseFloat(r.paddingTop)||0)+(parseFloat(r.paddingBottom)||0)+(parseFloat(r.borderTopWidth)||0)+(parseFloat(r.borderBottomWidth)||0),s=t*o+i,a=n?n*o+i:1/0;e.style.height="auto";const l=Math.min(a,Math.max(s,e.scrollHeight+(parseFloat(r.borderTopWidth)||0)+(parseFloat(r.borderBottomWidth)||0)));e.style.height=`${l}px`,e.style.overflowY=e.scrollHeight>l?"auto":"hidden"}function xf(e){const t=me(e),n=Ae(),{send:r,writeLocal:o}=vf(e,"value"),i=yf({external:()=>U(e.props.value),send:r,writeLocal:o});let s;const a=ht({node:()=>e.node,domId:()=>e.domId,props:()=>e.props,value:()=>i.value,focusEl:()=>s}),l=()=>re(e.props.disabled)||!!a.form?.disabled,c=()=>U(e.props.label),d=()=>U(e.props.placeholder),u=()=>U(e.props.description),p=()=>Math.max(1,ue(e.props.rows,3)),h=()=>e.props.maxRows===void 0?null:Math.max(p(),ue(e.props.maxRows,p())),f=()=>e.multiline&&re(e.props.autosize);fe(()=>{const y=f();i.value;const k=p(),w=h();y&&s&&h3(s,k,w)});const b=()=>[l()&&"disabled",i.focused&&"focus",a.invalid&&"invalid"],m=()=>{i.onFocus(),e.emit("focus")},v=()=>{i.onBlur(),a.touch(),e.emit("blur")},g=y=>{const k=y.currentTarget.value,w=i.revision+1;i.edit(k),a.change(k),e.emit("change",{value:k,revision:w},{value:k})};return(()=>{var y=t3();return I(y,S(()=>e.rootProps,{get"data-pending"(){return i.pending?"true":void 0},get"data-revision"(){return i.revision}}),!1,!0),$(y,x(tt,{get part(){return t("label")},get text(){return c()},as:"label",htmlFor:n}),null),$(y,x(J,{get when(){return e.multiline},get fallback(){return(()=>{var k=n3();return oe(w=>s=w,k),I(k,S(()=>t("field",...b()),{id:n,get name(){return U(e.props.name,e.node.id)},get value(){return i.value},get placeholder(){return d()||void 0},get disabled(){return l()},get"aria-invalid"(){return a.invalid?!0:void 0},get"aria-describedby"(){return Fr(u()&&`${n}-d`,a.describedBy)},onFocus:m,onBlur:v,onInput:g,get type(){return U(e.props.type,"text")},onKeyDown:w=>{w.key==="Enter"&&(w.preventDefault(),i.commit(),e.emit("submit",{value:i.value}),a.submit())}}),!1,!1),te(()=>k.defaultValue=i.value),k})()},get children(){var k=e3();return oe(w=>s=w,k),I(k,S(()=>t("field",...b()),{id:n,get name(){return U(e.props.name,e.node.id)},get value(){return i.value},get placeholder(){return d()||void 0},get disabled(){return l()},get"aria-invalid"(){return a.invalid?!0:void 0},get"aria-describedby"(){return Fr(u()&&`${n}-d`,a.describedBy)},onFocus:m,onBlur:v,onInput:g,get rows(){return p()},get"data-autosize"(){return f()?"true":void 0}}),!1,!1),te(()=>k.defaultValue=i.value),k}}),null),$(y,x(tt,{get part(){return t("description")},get text(){return u()},id:`${n}-d`}),null),$(y,x(gt,{part:t,field:a}),null),y})()}const g3=e=>{const t=String(e),n=t.indexOf(".");return n<0?0:t.length-n-1};function m3(e){const t=se(),n=me(e),r=Ae(),o=()=>e.props.min===void 0?null:ue(e.props.min),i=()=>e.props.max===void 0?null:ue(e.props.max),s=()=>ue(e.props.step,1)||1,a=()=>e.props.precision===void 0?g3(s()):Math.max(0,ue(e.props.precision)),l=()=>e.props.value===void 0||e.props.value===null||e.props.value===""?null:ue(e.props.value),[c,d]=Oe(()=>e.node,()=>e.scope,"value",l),[u,p]=Y(null);let h;const f=ht({node:()=>e.node,domId:()=>e.domId,props:()=>e.props,value:c,focusEl:()=>h}),b=()=>re(e.props.disabled)||!!f.form?.disabled,m=N(()=>new Intl.NumberFormat(t.locale).formatToParts(1.1).find(T=>T.type==="decimal")?.value??"."),v=T=>t.formatter.number(T,{decimals:a()}),g=T=>{let C=T;const M=o(),P=i();return M!==null&&(C=Math.max(M,C)),P!==null&&(C=Math.min(P,C)),Number(C.toFixed(a()))},y=T=>{d(T),f.change(T),e.emit("change",{value:T},{value:T})},k=T=>{const C=o(),M=c()??(C!==null&&C>0?C:0);y(g(M+T)),p(null)},w=()=>u()??(c()===null?"":v(c())),_=()=>U(e.props.unit);return(()=>{var T=r3(),C=T.firstChild,M=C.firstChild,P=M.nextSibling,D=P.nextSibling;return I(T,S(()=>e.rootProps),!1,!0),$(T,x(tt,{get part(){return n("label")},get text(){return e.props.label},as:"label",htmlFor:r}),C),I(C,S(()=>n("field",b()&&"disabled",f.invalid&&"invalid"),{"data-xui-numberfield":""}),!1,!0),I(M,S(()=>n("decrement",b()&&"disabled"),{get"aria-label"(){return t.t("decrement")},tabindex:-1,get disabled(){return b()||o()!==null&&c()!==null&&c()<=o()},onClick:()=>k(-s())}),!1,!0),$(M,x(we,{slot:"NumberField.decrement"})),oe(O=>h=O,P),V(P,"id",r),I(P,S(()=>n("input"),{type:"text",get inputmode(){return a()>0?"decimal":"numeric"},role:"spinbutton",get"aria-valuenow"(){return c()??void 0},get"aria-valuemin"(){return o()??void 0},get"aria-valuemax"(){return i()??void 0},get"aria-valuetext"(){return Z(()=>c()===null)()?void 0:`${v(c())}${_()?` ${_()}`:""}`},get"aria-invalid"(){return f.invalid||void 0},get"aria-describedby"(){return f.describedBy},get name(){return U(e.props.name,e.node.id)},get placeholder(){return U(e.props.placeholder)||void 0},get disabled(){return b()},get value(){return w()},onFocus:()=>{const O=c();p(O===null?"":String(O).replace(".",m())),e.emit("focus")},onInput:O=>{const z=O.currentTarget.value;p(z);const K=Zx(z,t.locale);(K!==null||z.trim()==="")&&y(K)},onBlur:()=>{const O=c();O!==null&&g(O)!==O&&y(g(O)),p(null),f.touch(),e.emit("blur")},onKeyDown:O=>{const z=O.shiftKey?10:1,K=o(),ee=i();if(O.key==="ArrowUp")O.preventDefault(),k(s()*z);else if(O.key==="ArrowDown")O.preventDefault(),k(-s()*z);else if(O.key==="PageUp")O.preventDefault(),k(s()*10);else if(O.key==="PageDown")O.preventDefault(),k(-s()*10);else if(O.key==="Home"&&K!==null)O.preventDefault(),y(K),p(null);else if(O.key==="End"&&ee!==null)O.preventDefault(),y(ee),p(null);else if(O.key==="Enter"){O.preventDefault();const q=c(),A=q===null?null:g(q);A!==q&&y(A),p(null),e.emit("submit",{value:A},A!==q?{value:A}:void 0),f.submit()}}}),!1,!1),$(C,(()=>{var O=Z(()=>!!_());return()=>O()?(()=>{var z=o3();return I(z,S(()=>n("unit")),!1,!0),$(z,_),z})():null})(),D),I(D,S(()=>n("increment",b()&&"disabled"),{get"aria-label"(){return t.t("increment")},tabindex:-1,get disabled(){return b()||i()!==null&&c()!==null&&c()>=i()},onClick:()=>k(s())}),!1,!0),$(D,x(we,{slot:"NumberField.increment"})),$(T,x(gt,{part:n,field:f}),null),te(()=>P.defaultValue=w()),T})()}function y3(e){const t=me(e),n=Ae(),[r,o]=Oe(()=>e.node,()=>e.scope,"checked",()=>re(e.props.checked)),[i,s]=Y(),a=ht({node:()=>e.node,domId:()=>e.domId,props:()=>e.props,value:r,focusEl:i}),l=()=>re(e.props.disabled)||!!a.form?.disabled,c=_i(i);let d=!1;return(()=>{var u=i3(),p=u.firstChild,h=p.nextSibling;return I(u,S(()=>e.rootProps),!1,!0),oe(s,p),V(p,"id",n),I(p,S({get"aria-checked"(){return r()},get"data-state"(){return r()?"checked":"unchecked"},get"data-disabled"(){return l()?"":void 0},get disabled(){return l()}},()=>t("box",r()&&"checked",l()&&"disabled",a.invalid&&"invalid"),{get"aria-invalid"(){return a.invalid||void 0},get"aria-describedby"(){return a.describedBy},onKeyDown:f=>{f.key==="Enter"&&f.preventDefault()},onClick:f=>{const b=!r();o(b),a.change(b),a.touch(),e.emit("change",{checked:b},{checked:b}),c()&&(d=f.cancelBubble,d||f.stopPropagation())}}),!1,!0),$(p,x(J,{get when(){return r()},get children(){var f=bf();return I(f,S({get"data-disabled"(){return l()?"":void 0}},()=>t("check"),{get style(){return ge({pointerEvents:"none"})}}),!1,!0),$(f,x(we,{slot:"Checkbox.check"})),f}})),$(u,x(J,{get when(){return c()},get children(){return x(el,{type:"checkbox",get control(){return i()},get checked(){return r()},get name(){return U(e.props.name,e.node.id)},value:"on",get disabled(){return l()},transformFirst:!1,bubbles:()=>!d})}}),h),$(h,x(tt,{get part(){return t("label")},get text(){return e.props.label},as:"label",htmlFor:n}),null),$(h,x(tt,{get part(){return t("description")},get text(){return e.props.description}}),null),$(h,x(gt,{part:t,field:a}),null),u})()}function b3(e){const t=me(e),n=Ae(),r=se(),[o,i]=Oe(()=>e.node,()=>e.scope,"checked",()=>re(e.props.checked)),[s,a]=Y(),l=ht({node:()=>e.node,domId:()=>e.domId,props:()=>e.props,value:o,focusEl:s}),c=()=>re(e.props.disabled)||!!l.form?.disabled,d=_i(s);let u=!1;const p=N(()=>{const b=ue(r.theme.recipes.Switch?.track?.[0]?.style?.width,32),m=ue(r.theme.recipes.Switch?.thumb?.[0]?.style?.width,16);return Math.max(0,b-m-4)}),h=()=>U(e.props.description),f=b=>{const m=b.target;c()||m.closest("button,label,a,input")||s()?.click()};return(()=>{var b=s3(),m=b.firstChild,v=m.nextSibling,g=v.firstChild;return I(b,S(()=>e.rootProps,{onClick:f}),!1,!0),I(m,S(()=>t("body")),!1,!0),$(m,x(tt,{get part(){return t("label")},get text(){return e.props.label},as:"label",htmlFor:n}),null),$(m,x(tt,{get part(){return t("description")},get text(){return h()},id:`${n}-d`}),null),$(m,x(gt,{part:t,field:l}),null),oe(a,v),V(v,"id",n),I(v,S({get"aria-checked"(){return o()},get"data-state"(){return o()?"checked":"unchecked"},get"data-disabled"(){return c()?"":void 0},get disabled(){return c()}},()=>t("track",o()&&"checked",c()&&"disabled"),{get"aria-describedby"(){return Fr(h()&&`${n}-d`,l.describedBy)},get style(){return ge({"--xui-switch-travel":`${p()}px`})},onClick:y=>{const k=!o();i(k),l.change(k),e.emit("change",{checked:k},{checked:k}),d()&&(u=y.cancelBubble,u||y.stopPropagation())}}),!1,!0),I(g,S({get"data-state"(){return o()?"checked":"unchecked"},get"data-disabled"(){return c()?"":void 0}},()=>t("thumb",o()&&"checked")),!1,!1),$(b,x(J,{get when(){return d()},get children(){return x(el,{type:"checkbox",get control(){return s()},get checked(){return o()},get name(){return U(e.props.name,e.node.id)},value:"on",get disabled(){return c()},transformFirst:!0,bubbles:()=>!u})}}),null),b})()}const Qs=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"];function v3(e){const t=me(e),n=se(),r=Ae(),o=N(()=>Le(e.props.options)),[i,s]=Oe(()=>e.node,()=>e.scope,"value",()=>U(e.props.value));let a;const c=ht({node:()=>e.node,domId:()=>e.domId,props:()=>e.props,value:i,focusEl:()=>a?.querySelector('[data-state="checked"]')??a?.querySelector("button")}),d=()=>U(e.props.orientation,"vertical"),u=()=>U(e.props.name,e.node.id),p=_i(()=>a),[h,f]=Y(null),[b,m]=Y(!1),v=()=>o().filter(M=>!re(M.disabled)).length;let g=!1,y=!1;const k=M=>{Qs.includes(M.key)&&(y=!0)},w=()=>y=!1;je(()=>{document.addEventListener("keydown",k),document.addEventListener("keyup",w)}),le(()=>{document.removeEventListener("keydown",k),document.removeEventListener("keyup",w)});const _=()=>Array.from(a?.querySelectorAll('[role="radio"]')??[]).filter(M=>!M.disabled),T=M=>{s(M),c.change(M),e.emit("change",{value:M},{value:M})};let C=!1;return(()=>{var M=a3(),P=M.firstChild;I(M,S(()=>e.rootProps,{role:"group",get"aria-labelledby"(){return e.props.label?`${r}-l`:void 0},get"aria-describedby"(){return c.describedBy}}),!1,!0),$(M,x(tt,{get part(){return t("label")},get text(){return e.props.label},id:`${r}-l`}),P);var D=a;return typeof D=="function"?oe(D,P):a=P,V(P,"aria-required",!1),I(P,S({get"aria-orientation"(){return d()},get dir(){return n.direction},get tabindex(){return b()||v()===0?-1:0},get"data-orientation"(){return d()}},()=>t("items"),{get class(){return`${t("items").class} xui-radio-items`},get"aria-invalid"(){return c.invalid||void 0},get style(){return ge({outline:"none"})},onMouseDown:()=>g=!0,onFocus:O=>{const z=!g;if(O.target===O.currentTarget&&z&&!b()){const K=_(),ee=K.find(A=>A.value===L(i)),q=K.find(A=>A.value===L(h));ri([ee,q,...K])}g=!1},onBlur:()=>m(!1)}),!1,!0),$(P,x(xe,{get each(){return o()},children:(O,z)=>{const K=()=>O.value===i(),ee=()=>re(O.disabled),q=`${r}-${O.value}`;let A;const[B,G]=Y();return(()=>{var E=l3(),R=E.firstChild,H=R.nextSibling;return V(E,"for",q),oe(W=>{A=W,G(W)},R),V(R,"id",q),I(R,S({get tabindex(){return h()===O.value?0:-1},get"data-orientation"(){return d()},get"aria-checked"(){return K()},get"data-state"(){return K()?"checked":"unchecked"},get"data-disabled"(){return ee()?"":void 0},get disabled(){return ee()},get value(){return O.value}},()=>t("item",K()&&"checked",ee()&&"disabled",c.invalid&&"invalid"),{get"data-xui-id"(){return`${t.domId}.dot.${z()}`},onMouseDown:W=>{ee()?W.preventDefault():f(O.value)},onFocus:()=>{f(O.value),y&&A?.click()},onKeyDown:W=>{if(W.key==="Tab"&&W.shiftKey){m(!0);return}if(W.target!==W.currentTarget)return;const j=n.direction!=="rtl"?W.key:W.key==="ArrowLeft"?"ArrowRight":W.key==="ArrowRight"?"ArrowLeft":W.key,X=d()==="vertical";if(X&&(j==="ArrowLeft"||j==="ArrowRight")||!X&&(j==="ArrowUp"||j==="ArrowDown"))return;const ne=nf[j];if(ne!==void 0){if(W.metaKey||W.ctrlKey||W.altKey||W.shiftKey)return;W.preventDefault();let ae=_();if(ne==="last")ae.reverse();else if(ne==="prev"||ne==="next"){ne==="prev"&&ae.reverse();const de=ae.indexOf(W.currentTarget);ae=ae.map((ie,ve)=>ae[(de+1+ve)%ae.length])}setTimeout(()=>ri(ae))}else W.key==="Enter"&&W.preventDefault()},onClick:W=>{K()||T(O.value),p()&&(C=W.cancelBubble,C||W.stopPropagation())}}),!1,!0),$(R,x(J,{get when(){return K()},get children(){var W=bf();return I(W,S({get"data-disabled"(){return ee()?"":void 0}},()=>t("dot",K()&&"checked")),!1,!1),W}})),$(E,x(J,{get when(){return p()},get children(){return x(el,{type:"radio",get control(){return B()},get checked(){return K()},get name(){return u()},get value(){return O.value},get disabled(){return ee()},transformFirst:!0,bubbles:()=>!C})}}),H),$(E,(()=>{var W=Z(()=>!!O.icon);return()=>W()?x(nt,{get icons(){return n.host.icons},get name(){return O.icon},class:"xui-icon",width:16,height:16}):null})(),H),I(H,S(()=>t.at("label",z())),!1,!0),$(H,()=>U(O.label)),te(()=>V(E,"data-xui-id",`${t.domId}.item.${z()}`)),E})()}})),$(M,x(gt,{part:t,field:c}),null),M})()}function x3(e){const t=me(e),n=se(),r=Ae(),o=()=>ue(e.props.min,0),i=()=>ue(e.props.max,100),s=()=>ue(e.props.step,1),[a,l]=Oe(()=>e.node,()=>e.scope,"value",()=>ue(e.props.value,o()));let c;const[d,u]=Y(),p=sf(d),h=_i(d),f=()=>n.direction!=="rtl",b=()=>f()?"left":"right",m=()=>f()?"right":"left",v=()=>VS(a(),o(),i()),g=()=>{const M=p()?.width;return M?KS(M,v(),f()?1:-1):0},y=(M,P)=>{const D=qS(Math.round((M-o())/s())*s()+o(),US(s())),O=cf(D,[o(),i()]);O!==a()&&(d()?.focus(),l(O),P&&e.emit("change",{value:O},{value:O}))};let k,w=0;const _=M=>{const P=k??c.getBoundingClientRect();return k=P,lf([0,P.width],f()?[o(),i()]:[i(),o()])(M-P.left)},T=()=>{const M={};return M[b()]="0%",M[m()]=`${100-v()}%`,M},C=()=>{const M={transform:"var(--radix-slider-thumb-transform)",position:"absolute"};return M[b()]=`calc(${v()}% + ${g()}px)`,M};return(()=>{var M=c3(),P=M.firstChild,D=P.firstChild,O=P.nextSibling,z=O.firstChild,K=z.firstChild,ee=z.nextSibling,q=ee.firstChild;I(M,S(()=>e.rootProps),!1,!0),I(P,S(()=>t("header"),{get class(){return`${t("header").class} xui-slider-head`}}),!1,!0),$(P,x(tt,{get part(){return t("label")},get text(){return e.props.label},as:"label",htmlFor:r}),D),I(D,S(()=>t("value")),!1,!0),$(D,()=>n.formatter.number(a())),O.$$pointerup=B=>{const G=B.target;if(G.hasPointerCapture?.(B.pointerId)){G.releasePointerCapture(B.pointerId),k=void 0;const E=a();E!==w&&e.emit("change",{value:E},{value:E})}},O.$$pointermove=B=>{B.target.hasPointerCapture?.(B.pointerId)&&y(_(B.clientX),!1)},O.$$pointerdown=B=>{w=a();const G=B.target;G.setPointerCapture?.(B.pointerId),B.preventDefault(),G===d()?G.focus():y(_(B.clientX),!1)},O.$$keydown=B=>{if(B.key==="Home")y(o(),!0),B.preventDefault();else if(B.key==="End")y(i(),!0),B.preventDefault();else if(Xc.includes(B.key)||Qs.includes(B.key)){const G=HS[f()?"from-left":"from-right"].includes(B.key),E=Xc.includes(B.key)||B.shiftKey&&Qs.includes(B.key);y(a()+s()*(E?10:1)*(G?-1:1),!0),B.preventDefault()}};var A=c;return typeof A=="function"?oe(A,O):c=O,V(O,"aria-disabled",!1),I(z,S(()=>t("track")),!1,!0),I(K,S(()=>t("range"),{get style(){return T()}}),!1,!1),oe(u,q),V(q,"id",r),I(q,S({get"aria-label"(){return U(e.props.label)||void 0},get"aria-valuemin"(){return o()},get"aria-valuenow"(){return a()},get"aria-valuemax"(){return i()}},()=>t("thumb")),!1,!1),$(ee,x(J,{get when(){return h()},get children(){return x(BS,{get name(){return U(e.props.name)||void 0},get value(){return a()}})}}),null),te(B=>{var G=n.direction,E=ge({"--radix-slider-thumb-transform":"translateX(-50%)"}),R=C();return G!==B.e&&V(O,"dir",B.e=G),B.t=Ee(O,E,B.t),B.a=Ee(ee,R,B.a),B},{e:void 0,t:void 0,a:void 0}),M})()}function $3(e){const t=me(e),n=se(),{send:r,writeLocal:o}=vf(e,"value"),i=yf({external:()=>U(e.props.value),send:r,writeLocal:o}),s=()=>re(e.props.busy);let a;const l=()=>{const p=a;p&&(p.style.height="auto",p.style.height=`${Math.min(200,p.scrollHeight)}px`)};fe(()=>{i.value,l()});const c=()=>{if(s()){e.emit("stop");return}const p=i.value.trim();p&&(i.commit(),e.emit("submit",{value:p}),i.edit(""))},d=()=>U(e.props.placeholder),u=()=>U(e.props.submitLabel)||n.t("send");return(()=>{var p=d3(),h=p.firstChild,f=h.nextSibling,b=f.firstChild;I(p,S(()=>e.rootProps,{get"data-busy"(){return s()?"true":void 0}}),!1,!0);var m=a;return typeof m=="function"?oe(m,h):a=h,I(h,S(()=>t("field",i.focused&&"focus"),{rows:1,get placeholder(){return d()||void 0},get value(){return i.value},get"aria-label"(){return n.t("message")},onFocus:()=>i.onFocus(),onBlur:()=>i.onBlur(),onInput:v=>{i.edit(v.currentTarget.value),e.emit("change",{value:v.currentTarget.value},{value:v.currentTarget.value})},onKeyDown:v=>{v.key==="Enter"&&!v.shiftKey&&(v.preventDefault(),c())}}),!1,!1),$(f,(()=>{var v=Z(()=>!!re(e.props.attachments));return()=>v()?(()=>{var g=u3();return I(g,S(()=>t("attachment"),{get"aria-label"(){return n.t("browse")},onClick:()=>{e.emit("attach")}}),!1,!0),$(g,x(we,{slot:"Composer.attachment"})),g})():null})(),b),I(b,S(()=>t("send",s()&&"pressed"),{get"aria-label"(){return Z(()=>!!s())()?n.t("stop"):u()},get disabled(){return Z(()=>!s())()&&i.value.trim()===""},onClick:c}),!1,!0),$(b,(()=>{var v=Z(()=>!!s());return()=>v()?x(we,{slot:"Composer.stop"}):x(we,{slot:"Composer.send"})})()),te(()=>h.defaultValue=i.value),p})()}const w3={Input:p3,Textarea:f3,NumberField:m3,Checkbox:y3,Radio:v3,Switch:b3,Slider:x3,Composer:$3};_t(["keydown","pointerdown","pointermove","pointerup"]);var k3=F("<svg class=xui-media-sizer aria-hidden=true height=1>"),S3=F("<img decoding=async>",!0,!1,!1),oi=F("<div>"),C3=F("<div><video>"),Js=F("<span>"),A3=F("<div><audio>"),T3=F("<img>"),I3=F("<div><button type=button></button><button type=button>"),E3=F("<div><div class=xui-carousel-track aria-live=polite>"),_3=F("<button type=button>");function $f(){return(()=>{var e=k3();return V(e,"width",Jm),e})()}const wf=(e,t)=>({...e,...t});function M3(e){const t=se(),n=me(e),r=()=>U(e.props.src),o=()=>U(e.props.alt),i=()=>U(e.props.fit,"cover"),[s,a]=Y("loading");Xt(De(r,()=>a("loading"),{defer:!0}));const l=N(()=>{const m=e.props,v={};return m.width!==void 0&&(v.width=ue(m.width)),m.height!==void 0&&(v.height=ue(m.height)),m.aspectRatio!==void 0?v.aspectRatio=String(ue(m.aspectRatio)):m.height===void 0&&(v.aspectRatio=String(Is)),Object.keys(v).length?v:void 0}),c=()=>i()==="scaleDown"?"scale-down":i(),d=()=>Math.max(0,Math.min(1,ue(e.props.focalX,.5))),u=()=>Math.max(0,Math.min(1,ue(e.props.focalY,.5))),p=ki(()=>t.host,r),h=()=>p().error?"error":s(),f=()=>!r()||h()==="error",b=()=>U(e.props.fallback);return(()=>{var m=oi();return I(m,S(()=>wf(e.rootProps,{style:mt(e.rootProps,l()),role:f()?"img":void 0,"aria-label":f()?o():void 0,"data-state":r()?h():"empty"})),!1,!0),$(m,x(J,{get when(){return Z(()=>!!(r()&&p().url))()&&h()!=="error"},get children(){var v=S3();return v.addEventListener("error",()=>a("error")),v.addEventListener("load",()=>a("loaded")),te(g=>{var y=p().url,k=o(),w=e.props.loading==="eager"?"eager":"lazy",_=ge({objectFit:c(),objectPosition:`${d()*100}% ${u()*100}%`});return y!==g.e&&V(v,"src",g.e=y),k!==g.t&&V(v,"alt",g.t=k),w!==g.a&&V(v,"loading",g.a=w),g.o=Ee(v,_,g.o),g},{e:void 0,t:void 0,a:void 0,o:void 0}),v}}),null),$(m,x($f,{}),null),$(m,x(J,{get when(){return f()},get children(){var v=oi();return I(v,S(()=>n("fallback"),{"aria-hidden":"true"}),!1,!0),$(v,x(J,{get when(){return b()},get fallback(){return x(we,{slot:"Image.fallback"})},get children(){return x(nt,{get icons(){return t.host.icons},get name(){return b()}})}})),v}}),null),m})()}function D3(e){const t=se(),n=me(e),r=Zo(()=>t.host,()=>U(e.props.src),"stream"),o=Zo(()=>t.host,()=>U(e.props.poster)),i=()=>ue(e.props.aspectRatio,Is)||Is,s=()=>re(e.props.autoplay);return(()=>{var a=C3(),l=a.firstChild;return I(a,S(()=>e.rootProps,{get style(){return mt(e.rootProps,{aspectRatio:String(i())})}}),!1,!0),$(a,x($f,{}),l),oe(c=>te(()=>c.muted=s()),l),I(l,S(()=>n("controls"),{get src(){return r()},get poster(){return o()},controls:!0,get autoplay(){return s()},playsinline:!0,preload:"metadata",get"data-duration-ms"(){return Z(()=>e.props.durationMs!==void 0)()?ue(e.props.durationMs):void 0}}),!1,!1),a})()}function P3(e){const t=se(),n=me(e),r=()=>U(e.props.title),o=Zo(()=>t.host,()=>U(e.props.src),"stream");return(()=>{var i=A3(),s=i.firstChild;return I(i,S(()=>e.rootProps,{get style(){return mt(e.rootProps,{flexDirection:"column",gap:"var(--xui-spacing-xs)"})}}),!1,!0),$(i,x(J,{get when(){return r()},get children(){var a=Js();return I(a,S(()=>n("track")),!1,!0),$(a,r),a}}),s),I(s,S(()=>n("controls"),{get src(){return o()},controls:!0,preload:"metadata",get"aria-label"(){return r()||void 0},get"data-duration-ms"(){return Z(()=>e.props.durationMs!==void 0)()?ue(e.props.durationMs):void 0}}),!1,!1),i})()}function O3(e){return e.split(/\s+/).filter(Boolean).slice(0,2).map(t=>t[0]).join("").toUpperCase()}function F3(e){let t=0;for(let n=0;n<e.length;n++)t=t*31+e.charCodeAt(n)>>>0;return t%360}function z3(e){const t=se(),n=me(e),r=()=>U(e.props.name),o=()=>U(e.props.src),i=()=>U(e.props.seed)||r(),s=()=>i()?F3(i()):null,a=Zo(()=>t.host,o),l=()=>{const f=s();return f===null?void 0:ge({backgroundColor:`color-mix(in oklab, hsl(${f} 70% 55%) 22%, transparent)`,color:`hsl(${f} 60% ${t.mode==="dark"?72:38}%)`})},c=GS(()=>o()?a():void 0),d=()=>o()?c():"idle",u=()=>o()?300:0,[p,h]=Y(!1);return Xt(De(u,f=>f===0&&h(!0))),fe(De(u,f=>{if(f===0)return;const b=setTimeout(()=>h(!0),f);le(()=>clearTimeout(b))})),(()=>{var f=Js();return I(f,S(()=>wf(e.rootProps,{"aria-label":r()||void 0,role:"img"})),!1,!0),$(f,x(J,{get when(){return Z(()=>!!o())()&&d()==="loaded"},get children(){var b=T3();return I(b,S(()=>n("image"),{get src(){return a()},get alt(){return r()}}),!1,!1),b}}),null),$(f,x(J,{get when(){return Z(()=>!!p())()&&d()!=="loaded"},get children(){var b=Js();return I(b,S(()=>n("fallback"),{get style(){return l()}}),!1,!0),$(b,()=>O3(r())||"?"),b}}),null),f})()}function R3(e){const t=se(),n=me(e);let r;const o=()=>e.node.children,i=()=>ue(e.props.page,0),[s,a]=Oe(()=>e.node,()=>e.scope,"page",i),l=b=>{const m=r;m&&m.children[b]&&typeof m.scrollTo=="function"&&m.scrollTo({left:m.children[b].offsetLeft,behavior:t.reducedMotion?"auto":"smooth"})};fe(De(i,b=>l(b)));const c=()=>{const b=r;if(!b||b.clientWidth===0)return;const m=Math.round(Math.abs(b.scrollLeft)/b.clientWidth);m!==s()&&(a(m),e.emit("change",{page:m},{page:m}))},d=b=>{const m=o().length;if(m===0)return;const v=re(e.props.loop)?(b%m+m)%m:Math.max(0,Math.min(m-1,b));a(v),e.emit("change",{page:v},{page:v}),l(v)},u=()=>o().length>1,p=N(()=>new Map(o().map((b,m)=>[b.id,{node:b,index:m}]))),h=N(()=>o().map(b=>b.id),void 0,{equals:(b,m)=>b.length===m.length&&b.every((v,g)=>v===m[g])}),f=b=>t.t("pageOf",{page:b+1,total:o().length});return(()=>{var b=E3(),m=b.firstChild;I(b,S(()=>e.rootProps,{role:"region",get"aria-roledescription"(){return t.t("carousel")},onKeyDown:g=>{const y=t.direction==="rtl";g.key==="ArrowRight"?d(s()+(y?-1:1)):g.key==="ArrowLeft"&&d(s()+(y?1:-1))}}),!1,!0),m.addEventListener("scroll",c);var v=r;return typeof v=="function"?oe(v,m):r=m,$(m,x(xe,{get each(){return h()},children:g=>{const y=N(_=>p().get(g)??_),k=()=>y().index===s(),w=()=>{const _={...n("page",k()&&"selected")};return k()||delete _["data-xui-id"],_};return(()=>{var _=oi();return oe(T=>te(()=>T.toggleAttribute("inert",!k())),_),I(_,S(w,{role:"group",get"aria-roledescription"(){return t.t("slide")},get"aria-label"(){return f(y().index)},get"aria-hidden"(){return k()?void 0:!0},get"data-xui-inactive"(){return k()?void 0:""}}),!1,!0),$(_,x(Dt,{get node(){return y().node}})),_})()}})),$(b,x(J,{get when(){return u()},get children(){var g=I3(),y=g.firstChild,k=y.nextSibling;return I(g,S(()=>ms(n("controls"),"xui-carousel-controls")),!1,!0),I(y,S(()=>ms(n("previous"),"xui-carousel-nav"),{get"aria-label"(){return t.t("previous")},get disabled(){return Z(()=>!re(e.props.loop))()&&s()===0},onClick:()=>d(s()-1)}),!1,!0),$(y,x(we,{slot:"Carousel.previous"})),$(g,x(J,{get when(){return e.props.indicators!==!1},get children(){var w=oi();return I(w,S(()=>n("indicator"),{class:"xui-carousel-dots","data-xui-part":"Carousel/indicators",role:"tablist"}),!1,!0),$(w,x(xe,{get each(){return h()},children:_=>{const T=()=>p().get(_)?.index??0,C=()=>{const M={...n("indicator",T()===s()&&"selected")};return delete M["data-xui-id"],M};return(()=>{var M=_3();return I(M,S(C,{role:"tab",get"aria-selected"(){return T()===s()},get"aria-label"(){return f(T())},onClick:()=>d(T())}),!1,!1),M})()}})),w}}),k),I(k,S(()=>ms(n("next"),"xui-carousel-nav"),{get"aria-label"(){return t.t("next")},get disabled(){return Z(()=>!re(e.props.loop))()&&s()===o().length-1},onClick:()=>d(s()+1)}),!1,!0),$(k,x(we,{slot:"Carousel.next"})),g}}),null),b})()}const N3={Image:M3,Video:D3,AudioPlayer:P3,Avatar:z3,Carousel:R3};var ii=F("<button type=button>"),L3=F("<div><div role=tablist aria-orientation=horizontal>"),j3=F("<button type=button role=tab><span class=xui-Tabs-tab-body><span></span></span><span>"),B3=F("<span data-count>"),W3=F("<div data-orientation=horizontal role=tabpanel tabindex=0>"),Eo=F("<span>"),kf=F("<div>"),H3=F("<nav>"),U3=F("<div data-orientation=vertical><div data-orientation=vertical><button type=button><span class=xui-accordion-title></span></button></div><div role=region data-orientation=vertical>");const q3=(e,t)=>e.length===t.length&&e.every((n,r)=>n===t[r]);function tl(e,t){return N(()=>e().map(t),void 0,{equals:q3})}const Sf=(e,t)=>N(()=>e().children[t()]);function V3(e){const t=se(),n=me(e),r=N(()=>Le(e.props.tabs)),o=()=>U(e.props.value)||r()[0]?.value||"",[i,s]=Oe(()=>e.node,()=>e.scope,"value",o),a=()=>re(e.props.fill),l=()=>e.props.closable==="hover"||e.props.closable==="always",[c,d]=Y(null),u=(T,C)=>d(M=>C?{index:T,state:C}:M?.index===T?null:M),p=()=>l()&&e.props.closable==="hover",h=Ae(),f=T=>`${h}-trigger-${T}`,b=T=>`${h}-content-${T}`;let m;const g=rf({orientation:"horizontal",dir:()=>t.direction,loop:!0,items:()=>m?Array.from(m.querySelectorAll(':scope > [role="tab"]')):[],focusable:T=>!T.disabled,active:T=>T.getAttribute("aria-selected")==="true"}),y=T=>{T!==L(i)&&(s(T),e.emit("change",{value:T},{value:T}))},k=tl(r,T=>T.value),w=L(i);let _=!0;return je(()=>{const T=requestAnimationFrame(()=>_=!1);le(()=>cancelAnimationFrame(T))}),(()=>{var T=L3(),C=T.firstChild;I(T,S(()=>e.rootProps,{get dir(){return t.direction},"data-orientation":"horizontal"}),!1,!0);var M=m;return typeof M=="function"?oe(M,C):m=C,I(C,S(()=>n("list"),{get"data-fill"(){return a()?"true":void 0}},()=>g.group(),{style:{outline:"none"}},()=>g.groupHandlers),!1,!0),$(C,x(xe,{get each(){return k()},children:(P,D)=>{const O=N(()=>r()[D()]),z=()=>P===i();let K;const ee=g.item(()=>K,()=>!0);return[(()=>{var A=j3(),B=A.firstChild,G=B.firstChild,E=B.nextSibling,R=K;return typeof R=="function"?oe(R,A):K=A,I(A,S({get"aria-selected"(){return z()},get"aria-controls"(){return b(P)},get"data-state"(){return z()?"active":"inactive"},get id(){return f(P)}},()=>n.at("tab",D(),z()&&"selected"),{get tabindex(){return ee.tabindex()},"data-orientation":"horizontal","data-radix-collection-item":"",onPointerEnter:()=>p()&&u(D(),"hover"),onPointerLeave:()=>p()&&u(D(),null),onBlur:()=>p()&&u(D(),null),onMouseDown:H=>{ee.onMouseDown(H),H.button===0&&!H.ctrlKey?y(P):H.preventDefault()},onKeyDown:H=>{ee.onKeyDown(H),(H.key===" "||H.key==="Enter")&&y(P)},onFocus:H=>{ee.onFocus(),p()&&H.currentTarget.matches(":focus-visible")&&u(D(),"focus"),z()||y(P)}}),!1,!0),$(B,(()=>{var H=Z(()=>!!O().icon);return()=>H()?x(nt,{get icons(){return t.host.icons},get name(){return O().icon},class:"xui-icon",width:16,height:16}):null})(),G),$(G,()=>U(O().label)),$(B,(()=>{var H=Z(()=>O().count!==void 0);return()=>H()?(()=>{var W=B3();return $(W,()=>t.formatter.number(ue(O().count))),W})():null})(),null),I(E,S(()=>n("indicator",z()&&"selected"),{"aria-hidden":"true"}),!1,!1),A})(),x(J,{get when(){return l()},get children(){var A=ii();return I(A,S(()=>n.at("close",D(),c()?.index===D()&&c().state),{get"aria-label"(){return t.t("closeTab",{name:U(O().label)})},onPointerEnter:()=>p()&&u(D(),"hover"),onPointerLeave:()=>p()&&u(D(),null),onClick:()=>{e.emit("close",{value:P})}}),!1,!0),$(A,x(we,{slot:"Tabs.close"})),A}})]}}),null),$(C,x(J,{get when(){return re(e.props.addable)},get children(){var P=ii();return I(P,S(()=>n("new"),{get"aria-label"(){return t.t("newTab")},onClick:()=>{e.emit("new")}}),!1,!0),$(P,x(we,{slot:"Tabs.new"})),P}}),null),$(T,x(xe,{get each(){return k()},children:(P,D)=>{const O=Sf(()=>e.node,D),z=()=>P===i(),K=()=>{const A=n("content");return z()||delete A["data-xui-id"],A},ee=P===w,q=()=>(i(),ee?_?{"animation-duration":"0s"}:{}:void 0);return(()=>{var A=W3();return I(A,S({get"data-state"(){return z()?"active":"inactive"},get"aria-labelledby"(){return f(P)},get hidden(){return!z()},get id(){return b(P)}},K,{get style(){return q()}}),!1,!0),$(A,x(J,{get when(){return Z(()=>!!z())()&&O()},get children(){return x(Dt,{get node(){return O()}})}})),A})()}}),null),T})()}const Qn=(e,t)=>Array.isArray(e)?t:t.join(","),si=e=>Array.isArray(e)?e:e?e.split(","):[];function K3(e){const t=se(),n=me(e),r=N(()=>Le(e.props.items)),o=()=>U(e.props.variant,"segmented"),i=()=>o()==="bar",s=()=>e.props.orientation==="vertical",a=()=>!i()&&e.props.type==="multiple",l=()=>{const g=e.props.value;return a()?Array.isArray(g)?g.map(String):g?String(g).split(","):[]:U(g)},[c,d]=Oe(()=>e.node,()=>e.scope,"value",l),u=g=>d(Array.isArray(g)?Qn(L(()=>e.props.value),g):g),p=g=>a()?si(c()).includes(g.value):c()===g.value,h=(g,y)=>[Z(()=>Z(()=>!!g().icon)()?(()=>{var k=Eo();return I(k,S(()=>n("icon",y()&&"selected"),{"aria-hidden":"true"}),!1,!0),$(k,x(nt,{get icons(){return t.host.icons},get name(){return g().icon},class:"xui-icon",get width(){return i()?20:16},get height(){return i()?20:16}}),null),$(k,x(J,{get when(){return Z(()=>!!i())()?Vs(g().count):null},children:w=>(()=>{var _=Eo();return I(_,S(()=>n("badge",y()&&"selected")),!1,!0),$(_,w),_})()}),null),k})():null),Z(()=>Z(()=>!!g().label)()?(()=>{var k=Eo();return I(k,S(()=>n("label",y()&&"selected")),!1,!0),$(k,()=>U(g().label)),k})():null)],f=tl(r,g=>g.value);let b;const m=rf({orientation:()=>s()?"vertical":void 0,dir:()=>t.direction,loop:!0,items:()=>b?Array.from(b.querySelectorAll(":scope > button")):[],focusable:g=>!g.disabled,active:g=>g.getAttribute("data-state")==="on"}),v=g=>{const y=L(()=>e.props.value);if(a()){const k=si(L(c)),w=k.includes(g.value)?k.filter(_=>_!==g.value):[...k,g.value];u(w),e.emit("change",{value:Qn(y,w)},{value:Qn(y,w)});return}L(c)!==g.value&&(u(g.value),e.emit("change",{value:g.value},{value:g.value}))};return x(J,{get when(){return i()},get fallback(){return(()=>{var g=kf(),y=b;return typeof y=="function"?oe(y,g):b=g,I(g,S(()=>m.group(),{role:"group"},()=>e.rootProps,{get dir(){return t.direction},get style(){return{outline:"none",...e.rootProps.style??{}}}},()=>m.groupHandlers),!1,!0),$(g,x(xe,{get each(){return f()},children:(k,w)=>{const _=N(()=>r()[w()]),T=()=>p(_()),C=()=>re(_().disabled);let M;const P=m.item(()=>M,()=>!C());return(()=>{var D=ii(),O=M;return typeof O=="function"?oe(O,D):M=D,I(D,S({get role(){return a()?void 0:"radio"},get"aria-checked"(){return Z(()=>!!a())()?void 0:T()},get"aria-pressed"(){return Z(()=>!!a())()?T():void 0},get"data-state"(){return T()?"on":"off"},get"data-disabled"(){return C()?"":void 0},get disabled(){return C()},get"aria-label"(){return _().label?void 0:k}},()=>n("item",T()&&"selected",C()&&"disabled"),{get tabindex(){return P.tabindex()},get"data-orientation"(){return s()?"vertical":void 0},"data-radix-collection-item":"",get onMouseDown(){return P.onMouseDown},get onFocus(){return P.onFocus},get onKeyDown(){return P.onKeyDown},onClick:()=>{C()||v(_())}}),!1,!0),$(D,()=>h(_,T)),D})()}})),g})()},get children(){return x(G3,{get rootProps(){return e.rootProps},vertical:s,items:r,keys:f,value:()=>c(),part:n,content:h,onPick:g=>{u(g),e.emit("change",{value:g},{value:g})}})}})}function G3(e){const t=se(),n=[],r=N(()=>e.items().map((c,d)=>re(c.disabled)?-1:d).filter(c=>c>=0)),o=()=>e.items().findIndex(c=>c.value===e.value()&&!re(c.disabled)),[i,s]=Y(null),a=()=>i()??(o()>=0?o():r()[0]??-1),l=(c,d)=>{const u=r();if(!u.length)return;const p=u.indexOf(c),h=t.direction==="rtl",f=e.vertical(),b=d==="ArrowDown"||!f&&d===(h?"ArrowLeft":"ArrowRight"),m=d==="ArrowUp"||!f&&d===(h?"ArrowRight":"ArrowLeft");let v=null;return b?v=u[(p+1)%u.length]:m?v=u[(p-1+u.length)%u.length]:d==="Home"?v=u[0]:d==="End"&&(v=u[u.length-1]),v==null?!1:(s(v),n[v]?.focus(),!0)};return(()=>{var c=H3();return I(c,S(()=>e.rootProps,{get dir(){return t.direction}}),!1,!0),$(c,x(xe,{get each(){return e.keys()},children:(d,u)=>{const p=N(()=>e.items()[u()]),h=()=>d===e.value(),f=()=>re(p().disabled);return(()=>{var b=ii();return oe(m=>{n[u()]=m},b),I(b,S(()=>e.part("item",h()&&"selected",f()&&"disabled"),{get disabled(){return f()},get tabindex(){return u()===a()?0:-1},get"aria-current"(){return h()?"page":void 0},get"aria-label"(){return Z(()=>!!Vs(p().count))()?`${U(p().label)||p().value}, ${Vs(p().count)}`:p().label?void 0:d},onFocus:()=>s(u()),onKeyDown:m=>{l(u(),m.key)&&m.preventDefault()},onClick:()=>e.onPick(d)}),!1,!0),$(b,()=>e.content(p,h)),b})()}})),c})()}const Y3=new Set(["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"]);function X3(e){const t=me(e),n=N(()=>Le(e.props.items)),r=()=>e.props.type==="multiple",o=()=>{const f=e.props.value;return r()?Array.isArray(f)?f.map(String):f?String(f).split(","):[]:U(f)},[i,s]=Oe(()=>e.node,()=>e.scope,"value",o),a=f=>s(Array.isArray(f)?Qn(L(()=>e.props.value),f):f),l=f=>r()?si(i()).includes(f):i()===f,c=f=>{const b=L(()=>e.props.value);if(r()){const v=si(L(i)),g=v.includes(f)?v.filter(y=>y!==f):[...v,f];a(g),e.emit("change",{value:Qn(b,g)},{value:Qn(b,g)});return}const m=L(i)===f?"":f;a(m),e.emit("change",{value:m},{value:m})};let d;const u=f=>{if(!Y3.has(f.key)||!d)return;const b=Array.from(d.querySelectorAll(":scope > div > div > button[data-radix-collection-item]")).filter(y=>!y.disabled),m=b.indexOf(f.target);if(m===-1)return;f.preventDefault();const v=b.length;let g=m;f.key==="Home"?g=0:f.key==="End"?g=v-1:f.key==="ArrowDown"?g=m+1>v-1?0:m+1:f.key==="ArrowUp"&&(g=m-1<0?v-1:m-1),b[g%v]?.focus()},p=tl(n,f=>f.value),h=()=>{const{dir:f,...b}=e.rootProps;return b};return(()=>{var f=kf(),b=d;return typeof b=="function"?oe(b,f):d=f,I(f,S(h,{"data-orientation":"vertical",onKeyDown:u}),!1,!0),$(f,x(xe,{get each(){return p()},children:(m,v)=>{const g=N(()=>n()[v()]);return x(Z3,{part:t,index:v,item:g,open:()=>l(m),get child(){return Sf(()=>e.node,v)},onToggle:()=>c(m)})}})),f})()}function Z3(e){const t=se(),n=Ae(),r=Ae(),o=PS(e.open,"accordion"),i=o.shown,s=()=>e.open()?"open":"closed";return(()=>{var a=U3(),l=a.firstChild,c=l.firstChild,d=c.firstChild,u=l.nextSibling;I(a,S(()=>e.part.at("item",e.index(),e.open()&&"open"),{get"data-state"(){return s()}}),!1,!0),V(c,"aria-controls",r),I(c,S({get"aria-expanded"(){return e.open()},get"data-state"(){return s()}},()=>e.part.at("trigger",e.index(),e.open()&&"open"),{"data-orientation":"vertical",id:n,"data-radix-collection-item":"",onClick:()=>e.onToggle()}),!1,!0),$(d,()=>U(e.item().title),null),$(d,(()=>{var h=Z(()=>e.item().count!==void 0);return()=>h()?(()=>{var f=Eo();return I(f,S(()=>e.part.at("count",e.index())),!1,!0),$(f,()=>t.formatter.number(ue(e.item().count))),f})():null})(),null),$(c,x(we,{slot:"Accordion.trigger",size:16}),null);var p=o.ref;return typeof p=="function"?oe(p,u):o.ref=u,V(u,"id",r),V(u,"aria-labelledby",n),I(u,S({get"data-state"(){return s()},get hidden(){return!i()}},()=>e.part.at("content",e.index(),e.open()&&"open"),{get style(){return o.style()}}),!1,!0),$(u,x(J,{get when(){return Z(()=>!!i())()&&e.child()},get children(){return x(Dt,{get node(){return e.child()}})}})),te(h=>{var f=s(),b=ge({display:"flex"});return f!==h.e&&V(l,"data-state",h.e=f),h.t=Ee(l,b,h.t),h},{e:void 0,t:void 0}),a})()}const Q3={Tabs:V3,Segmented:K3,Accordion:X3};var vr=F("<span>"),J3=F("<div><div><input type=text role=combobox aria-expanded=true aria-autocomplete=list>"),ea=F("<div>"),eA=F("<div><div>"),tA=F("<div role=option>");function Cf(e){const t=se(),n=Ae(),[r,o]=Y(0);let i,s;const[a,l]=Y(!1),c=N(()=>Math.min(r(),Math.max(0,e.rows.length-1))),d=m=>{const v=e.part(m);return e.suffix&&v["data-xui-id"]&&(v["data-xui-id"]=`${v["data-xui-id"]}${e.suffix}`),v};fe(De(()=>e.query,()=>o(0),{defer:!0}));const u=()=>{const m=i;m&&l(m.scrollTop+m.clientHeight<m.scrollHeight-1)};fe(De([()=>e.rows.length,()=>e.maxRows],()=>{u()})),fe(De(c,()=>{const m=i,v=m?.querySelector('[data-active="true"]');if(!m||!v)return;const g=m.getBoundingClientRect(),y=v.getBoundingClientRect(),k=To(m,g).y;y.top<g.top?m.scrollTop-=(g.top-y.top)/k:y.bottom>g.bottom&&(m.scrollTop+=(y.bottom-g.bottom)/k)})),je(()=>{e.autoFocus&&s?.focus()});const p=m=>{const v=e.rows[m];v&&!re(v.item.disabled)&&e.onPick(v.item)},h=m=>{if(m.isComposing)return;const v=e.rows.length;m.key==="ArrowDown"||m.key==="ArrowUp"?(m.preventDefault(),m.stopPropagation(),o(g=>Math.max(0,Math.min(v-1,g+(m.key==="ArrowDown"?1:-1))))):m.key==="Enter"||m.key==="Tab"&&!m.shiftKey&&v>0?(m.preventDefault(),m.stopPropagation(),p(L(c))):e.leaveBubbles&&m.key===(t.direction==="rtl"?"ArrowRight":"ArrowLeft")&&m.currentTarget.selectionStart===0&&m.currentTarget.selectionEnd===0||m.key!=="Escape"&&m.stopPropagation()},f=()=>{const m=e.rows[c()];return m?`${n}-${m.index}`:void 0},b=N(()=>e.rows.map(m=>m.index),void 0,{equals:(m,v)=>m.length===v.length&&m.every((g,y)=>g===v[y])});return[(()=>{var m=J3(),v=m.firstChild,g=v.firstChild;I(m,S(()=>d("head")),!1,!0),I(v,S(()=>d("search")),!1,!0),$(v,x(we,{slot:"SearchList.search"}),g),g.$$keydown=h,g.$$input=k=>e.onQuery(k.currentTarget.value);var y=s;return typeof y=="function"?oe(y,g):s=g,V(g,"aria-controls",n),$(m,x(J,{get when(){return Z(()=>!!e.showCount)()&&e.query.trim()!==""},get children(){var k=vr();return I(k,S(()=>d("count"),{role:"status","aria-live":"polite"}),!1,!0),$(k,()=>t.formatter.number(e.rows.length)),k}}),null),te(k=>{var w=f(),_=e.query,T=e.placeholder;return w!==k.e&&V(g,"aria-activedescendant",k.e=w),_!==k.t&&V(g,"value",k.t=_),T!==k.a&&V(g,"placeholder",k.a=T),k},{e:void 0,t:void 0,a:void 0}),te(()=>g.value=e.query),m})(),(()=>{var m=eA(),v=m.firstChild;I(m,S(()=>d("body")),!1,!0);var g=i;return typeof g=="function"?oe(g,v):i=v,I(v,S(()=>d("list"),{id:n,role:"listbox",onScroll:u,get style(){return ge({maxHeight:`calc(${e.maxRows} * var(--xui-control-row, 32px))`})}}),!1,!0),$(v,x(xe,{get each(){return b()},children:y=>{const k=N(C=>{const M=b().indexOf(y);return M>=0?M:C}),w=N(C=>e.rows[k()]?.item??C),_=()=>k()===c(),T=()=>re(w().disabled);return(()=>{var C=tA();return V(C,"id",`${n}-${y}`),I(C,S({get"aria-selected"(){return _()},get"aria-disabled"(){return T()||void 0},get"data-active"(){return _()?"true":void 0}},()=>e.rowPart?e.rowPart(w(),y,_()):e.part.at("item",`${e.suffix?`${e.suffix.slice(1)}.`:""}${y}`,_()&&"selected",T()&&"disabled"),{onPointerMove:()=>k()!==L(c)&&o(L(k)),onPointerDown:M=>M.preventDefault(),onClick:()=>p(L(k))}),!1,!0),$(C,(()=>{var M=Z(()=>!!e.renderRow);return()=>M()?e.renderRow(w(),y):[x(J,{get when(){return w().icon},get children(){var P=vr();return I(P,S(()=>e.part.at("icon",y),{"aria-hidden":"true"}),!1,!0),$(P,x(nt,{get icons(){return t.host.icons},get name(){return w().icon}})),P}}),x(J,{get when(){return U(w().identifier)},get children(){var P=vr();return I(P,S(()=>e.part.at("identifier",y)),!1,!0),$(P,()=>U(w().identifier)),P}}),(()=>{var P=vr();return I(P,S(()=>e.part.at("label",y)),!1,!0),$(P,()=>U(w().label)),P})(),x(J,{get when(){return Z(()=>e.picked!==void 0&&e.picked!=="")()&&w().value===e.picked},get children(){var P=vr();return I(P,S(()=>e.part.at("check",y),{"aria-hidden":"true"}),!1,!0),$(P,x(we,{slot:"SearchList.check"})),P}})]})()),C})()}}),null),$(v,x(J,{get when(){return e.rows.length===0},get children(){var y=ea();return I(y,S(()=>d("empty")),!1,!0),$(y,()=>e.emptyText),y}}),null),$(m,x(J,{get when(){return Z(()=>!!a())()&&e.rows.length>e.maxRows},get children(){var y=ea();return I(y,S(()=>d("fade"),{"aria-hidden":"true"}),!1,!1),y}}),null),m})()]}function nA(e){const t=se(),n=me(e),r=N(()=>Le(e.props.items)),[o,i]=Oe(()=>e.node,()=>e.scope,"query",()=>U(e.props.query)),[s,a]=Oe(()=>e.node,()=>e.scope,"value",()=>U(e.props.value)),l=()=>!!e.node.on?.search;let c=!1;fe(De(o,p=>{if(!c)return;const h=setTimeout(()=>{e.emit("search",{query:p})},zr);le(()=>clearTimeout(h))}));const d=N(()=>r().map((p,h)=>({index:h,item:p})).filter(({item:p})=>l()||df(p,o()))),u=()=>Math.max(1,Math.floor(ue(e.props.maxRows,8)));return(()=>{var p=ea();return I(p,S(()=>e.rootProps),!1,!0),$(p,x(Cf,{part:n,owner:"SearchList",suffix:"",get rows(){return d()},get query(){return o()},onQuery:h=>{c=!0,i(h)},get placeholder(){return U(e.props.placeholder)||t.t("search")},get emptyText(){return U(e.props.emptyText)||t.t("noResults")},get maxRows(){return u()},get showCount(){return Z(()=>e.props.showCount===void 0)()?!0:re(e.props.showCount)},get picked(){return s()},onPick:h=>{a(h.value),e.emit("select",{value:h.value},{value:h.value})}})),p})()}const rA={SearchList:nA};_t(["input","keydown"]);var oA=F("<div class=xui-overlay-body>"),St=F("<div>"),rd=F("<div class=xui-overlay-head>"),Af=F("<h2 class=xui-sr-only>"),ta=F("<button type=button>"),nl=F("<span class=xui-trigger>"),iA=F("<h2>"),sA=F("<p>"),Pi=F("<span>"),aA=F("<div><div>"),lA=F("<div role=separator aria-orientation=horizontal>"),cA=F("<div role=menuitem><span class=xui-menu-label>"),dA=F("<span data-state=checked>"),uA=F("<div role=menuitemcheckbox><span></span><span class=xui-menu-label>"),pA=F("<div role=menuitem aria-haspopup=menu><span class=xui-menu-label></span><span>"),fA=F("<div class=xui-menu-search>"),hA=F("<span class=xui-menu-label>"),gA=F("<button>"),mA=F("<div><span></span><div class=xui-toast-text><span>");const Tf={type:"button"};function If(e){const[t,n]=Oe(()=>e.node,()=>e.scope,"open",()=>re(e.props.open));return[t,o=>{n(o),e.emit("change",{open:o},{open:o})}]}function rl(e,t,n){return t?{...e,"data-xui-overlay-root":n?.component==="Link"?"stretch":""}:{...e,"data-xui-overlay-root":"none"}}function yA(e){return x(Ef,S(e,{kind:"Dialog"}))}function bA(e){return x(Ef,S(e,{kind:"Drawer"}))}function Ef(e){const t=se(),n=me(e),[r,o]=If(e),i=()=>e.props.dismissible!==!1,s=()=>U(e.props.side,"bottom"),a=()=>U(e.props.title),l=()=>U(e.props.description),c=Ae(),d=Ae(),u=Ae(),p=_=>_||L(i)?o(_):void 0,h=()=>o(!1),f=OS(s,()=>e.kind==="Drawer"&&e.props.dragToDismiss!==!1&&i(),()=>o(!1),()=>t.reducedMotion),b=()=>!!e.node.slots?.trigger;let m;const v=()=>r()?"open":"closed",g=In(r),y=In(r),k=()=>{const _=Ci({disableOutsidePointerEvents:()=>!0,onEscapeKeyDown:D=>{L(i)||D.preventDefault()},onPointerDownOutside:D=>{const O=D.detail.originalEvent,z=O.button===0&&O.ctrlKey===!0;(O.button===2||z)&&D.preventDefault(),L(i)||D.preventDefault()},onFocusOutside:D=>D.preventDefault(),onInteractOutside:D=>{L(i)||D.preventDefault()},onDismiss:()=>p(!1)}),T=za({trapped:()=>!0,loop:!0,onMountAutoFocus:D=>{const O=D.currentTarget,z=O?.querySelector("[data-xui-autofocus]")??O?.querySelector('[data-xui-part="AlertDialog/cancel"]'),K=z&&(z.matches("button,input,textarea,select,a[href],[tabindex]")?z:z.querySelector("button,input,textarea,select,a[href],[tabindex]"));K&&(D.preventDefault(),K.focus())},onUnmountAutoFocus:D=>{D.preventDefault(),m?.focus()}}),[C,M]=Y(!1),P=(()=>{var D=St();return I(D,S(()=>n("content",r()&&"open"),{get"data-side"(){return Z(()=>e.kind==="Drawer")()?s():void 0},get"data-xui-overlay"(){return e.kind},get dir(){return t.direction},get role(){return e.kind==="Dialog"&&!i()?"alertdialog":"dialog"},id:c,get"aria-describedby"(){return l()?u:void 0},"aria-labelledby":d,get"data-state"(){return v()},tabindex:"-1",get onKeyDown(){return T.onKeyDown}}),!1,!0),$(D,(()=>{var O=Z(()=>e.kind==="Drawer"&&(s()==="bottom"||s()==="top"));return()=>O()?(()=>{var z=St();return I(z,S(()=>n("handle"),{"aria-hidden":"true",get onPointerDown(){return f.onPointerDown},get onPointerMove(){return f.onPointerMove},get onPointerUp(){return f.onPointerUp},get"on:pointercancel"(){return f.onPointerCancel}}),!1,!1),z})():null})(),null),$(D,(()=>{var O=Z(()=>!!(a()||l()));return()=>O()?Z(()=>e.kind==="Drawer")()?(()=>{var z=rd();return Hn(z,"pointercancel",f.onPointerCancel),Hn(z,"pointerup",f.onPointerUp,!0),Hn(z,"pointermove",f.onPointerMove,!0),Hn(z,"pointerdown",f.onPointerDown,!0),$(z,x(od,{part:n,get title(){return a()},get description(){return l()},titleId:d,descriptionId:u,get fallback(){return t.t("dialog")}})),z})():(()=>{var z=rd();return $(z,x(od,{part:n,get title(){return a()},get description(){return l()},titleId:d,descriptionId:u,get fallback(){return t.t("dialog")}})),z})():(()=>{var z=Af();return V(z,"id",d),$(z,()=>t.t("dialog")),z})()})(),null),$(D,x(Oa.Provider,{value:()=>L(i)?h():void 0,get children(){return x(Si.Provider,{get value(){return _.layer},get children(){return[(()=>{var O=oA();return $(O,()=>e.children),O})(),x(J,{get when(){return e.node.slots?.footer},get children(){var O=St();return I(O,S(()=>n("footer")),!1,!0),$(O,()=>e.slots.footer),O}})]}})}}),null),$(D,(()=>{var O=Z(()=>!!(e.kind==="Dialog"&&i()));return()=>O()?(()=>{var z=ta();return I(z,S(()=>n("close"),{get"aria-label"(){return t.t("close")},onClick:()=>p(!1)}),!1,!0),$(z,x(we,{slot:"Dialog.close"})),z})():null})(),null),D})();return y.ref(P),f.setPanel(P),Rr(P,()=>({"pointer-events":_.pointerEvents(C())})),je(()=>{_.attach(P),M(!0),T.attach(P),Ra(),Fp(P,!1)}),P},w=()=>{const _=(()=>{var T=St();return I(T,S(()=>n("overlay",r()&&"open"),{get"data-xui-overlay-backdrop"(){return e.kind},get"data-state"(){return v()}}),!1,!1),T})();return g.ref(_),Rr(_,()=>({"pointer-events":"auto"})),je(()=>Pp()),_};return[(()=>{var _=St();return I(_,S(()=>rl(e.rootProps,b(),e.node.slots?.trigger)),!1,!0),$(_,x(J,{get when(){return b()},get children(){var T=nl(),C=m;return typeof C=="function"?oe(C,T):m=T,I(T,S(Tf,{"aria-haspopup":"dialog",get"aria-expanded"(){return r()},"aria-controls":c,get"data-state"(){return v()},onClick:()=>p(!L(r))}),!1,!0),$(T,()=>e.slots.trigger),T}})),_})(),x(dn,{get mount(){return t.portal},get children(){return x(J,{get when(){return g.mounted()},get children(){return x(w,{})}})}}),x(dn,{get mount(){return t.portal},get children(){return x(J,{get when(){return y.mounted()},get children(){return x(k,{})}})}})]}function od(e){return[Z(()=>Z(()=>!!e.title)()?(()=>{var t=iA();return I(t,S(()=>e.part("title"),{get id(){return e.titleId}}),!1,!0),$(t,()=>e.title),t})():(()=>{var t=Af();return $(t,()=>e.fallback),te(()=>V(t,"id",e.titleId)),t})()),Z(()=>Z(()=>!!e.description)()?(()=>{var t=sA();return I(t,S(()=>e.part("description"),{get id(){return e.descriptionId}}),!1,!0),$(t,()=>e.description),t})():null)]}const vA=200,xA=150;function $A(e){const t=se(),n=me(e),[r,o]=If(e),i=()=>U(e.props.side,"bottom"),s=()=>e.props.openOn==="hover"&&t.hover,a=Ae(),l=()=>!!e.node.slots?.trigger;let c,d;const u=v=>{c&&clearTimeout(c),c=setTimeout(()=>{L(r)!==v&&o(v)},v?vA:xA)};le(()=>c&&clearTimeout(c));const[p,h]=Y(),f=()=>r()?"open":"closed",b=In(r),m=()=>{let v=!1,g=!1;const y=Ci({onInteractOutside:T=>{T.defaultPrevented||(v=!0,T.detail.originalEvent.type==="pointerdown"&&(g=!0));const C=T.target;C&&p()?.contains(C)&&l()&&T.preventDefault(),T.detail.originalEvent.type==="focusin"&&g&&T.preventDefault()},onDismiss:()=>o(!1)}),k=za({trapped:()=>!1,loop:!0,onMountAutoFocus:T=>{L(s)&&T.preventDefault()},onUnmountAutoFocus:T=>{!v&&l()&&p()?.focus(),T.preventDefault(),v=!1,g=!1}}),[w,_]=Y(!1);return x(Xa,{get anchor(){return p()},get side(){return i()},align:"center",sideOffset:ir,collisionPadding:sr,get dir(){return t.direction},children:T=>{const C=(()=>{var M=St();return I(M,S(()=>n("content",r()&&"open"),{get"data-side"(){return T.placedSide()},get"data-align"(){return T.placedAlign()},get"data-state"(){return f()},role:"dialog",id:a,"data-xui-overlay":"Popover",get"data-open-on"(){return s()?"hover":void 0},get dir(){return t.direction},tabindex:"-1",get onKeyDown(){return k.onKeyDown},onPointerEnter:()=>s()&&u(!0),onPointerLeave:()=>s()&&u(!1)}),!1,!0),$(M,x(Oa.Provider,{value:null,get children(){return x(Si.Provider,{get value(){return y.layer},get children(){return e.children}})}})),M})();return d=C,b.ref(C),T.setContent(C),Rr(C,()=>Za("popover","trigger",y.pointerEvents(w()),T.isPositioned())),je(()=>{y.attach(C),_(!0),k.attach(C),Ra()}),C}})};return[(()=>{var v=St();return I(v,S(()=>rl(e.rootProps,l(),e.node.slots?.trigger)),!1,!0),$(v,x(J,{get when(){return l()},get fallback(){return(()=>{var g=Pi();return oe(h,g),te(y=>Ee(g,ge({display:"inline-flex"}),y)),g})()},get children(){var g=nl();return oe(h,g),I(g,S(Tf,{"aria-haspopup":"dialog",get"aria-expanded"(){return r()},"aria-controls":a,get"data-state"(){return f()},onClick:()=>o(!L(r)),onPointerEnter:y=>s()&&y.pointerType!=="touch"&&u(!0),onPointerLeave:y=>s()&&y.pointerType!=="touch"&&u(!1),onFocusIn:()=>s()&&u(!0),onFocusOut:y=>{if(!s())return;const k=y.relatedTarget;(!k||!d?.contains(k))&&u(!1)}}),!1,!0),$(g,()=>e.slots.trigger),g}})),v})(),x(dn,{get mount(){return t.portal},get children(){return x(J,{get when(){return b.mounted()},get children(){return x(m,{})}})}})]}const hs="tooltip.open",wA=300,kA=300;function SA(e){const t=se(),n=me(e),r=()=>U(e.props.side,"top"),o=()=>U(e.props.content)||U(e.props.text),i=Ae(),[s,a]=Y(!1),[l,c]=Y(!1);let d=!0,u,p,h=!1,f=!1,b,m;const v=D=>{D?(clearTimeout(p),d=!1,document.dispatchEvent(new CustomEvent(hs))):(clearTimeout(p),p=setTimeout(()=>d=!0,kA)),a(D)},g=()=>{clearTimeout(u),c(!1),v(!0)},y=()=>{clearTimeout(u),L(s)&&v(!1)},k=()=>{clearTimeout(u),u=setTimeout(()=>{c(!0),v(!0)},wA)};le(()=>{clearTimeout(u),clearTimeout(p)});const w=()=>s()?l()?"delayed-open":"instant-open":"closed";let _=null;const T=D=>{if(!_)return;const O=D.target,z={x:D.clientX,y:D.clientY},K=b?.contains(O)??!1,ee=m?.contains(O)??!1;K||ee?_=null:Yp(z,_)||(_=null,y())},C=(D,O,z)=>{if(!O||!z||!L(s))return;const K=bS({x:D.clientX,y:D.clientY},O.getBoundingClientRect(),z.getBoundingClientRect());setTimeout(()=>_=K,0)};document.addEventListener("pointermove",T),le(()=>document.removeEventListener("pointermove",T));const M=In(s),P=()=>{const D=Ci({onFocusOutside:q=>q.preventDefault(),onDismiss:y}),[O,z]=Y(!1),K=()=>y(),ee=q=>{const A=q.target;A&&b&&A.contains?.(b)&&y()};return x(Xa,{anchor:b,get side(){return r()},align:"center",sideOffset:ir,collisionPadding:sr,children:q=>{const A=(()=>{var B=St();return I(B,S(()=>n("content"),{get"data-side"(){return q.placedSide()},get"data-align"(){return q.placedAlign()},get"data-state"(){return w()},"data-xui-overlay":"Tooltip",onPointerLeave:G=>C(G,m,b)}),!1,!0),$(B,o,null),$(B,x(xS,{id:i,get children(){return o()}}),null),B})();return m=A,M.ref(A),q.setContent(A),Rr(A,()=>Za("tooltip","trigger",D.pointerEvents(O()),q.isPositioned())),je(()=>{D.attach(A),z(!0),setTimeout(()=>document.addEventListener(hs,K),0),window.addEventListener("scroll",ee,{capture:!0}),le(()=>{document.removeEventListener(hs,K),window.removeEventListener("scroll",ee,{capture:!0})})}),A}})};return[(()=>{var D=aA(),O=D.firstChild;I(D,S(()=>e.rootProps,{"data-xui-overlay-root":""}),!1,!0);var z=b;return typeof z=="function"?oe(z,O):b=O,I(O,S(()=>n("anchor"),{tabindex:"0",get"aria-describedby"(){return s()?i:void 0},get"data-state"(){return w()},onPointerMove:K=>{K.pointerType!=="touch"&&!h&&!_&&(d?k():g(),h=!0)},onPointerLeave:K=>{clearTimeout(u),h=!1,C(K,b,m)},onPointerDown:()=>{L(s)&&y(),f=!0,document.addEventListener("pointerup",()=>setTimeout(()=>f=!1,0),{once:!0})},onFocusIn:()=>{f||g()},onFocusOut:y,onClick:y}),!1,!0),$(O,()=>e.children),D})(),x(dn,{get mount(){return t.portal},get children(){return x(J,{get when(){return M.mounted()},get children(){return x(P,{})}})}})]}const Oi=pn(),ol=e=>e.openOn==="contextmenu"?"context-menu":"dropdown-menu";function CA(e){const t=Zt(Oi),n=()=>e.item.separator?"separator":e.item.kind??"item";return x(Dn,{get component(){const r=n();return r==="separator"?AA:r==="label"?TA:r==="submenu"?_A:r==="checkbox"?EA:IA},get item(){return e.item},get raw(){return e.raw},get path(){return e.path},root:t})}function AA(e){return(()=>{var t=lA();return I(t,S(()=>e.root.part("separator")),!1,!1),t})()}function TA(e){return(()=>{var t=St();return I(t,S(()=>e.root.part("label")),!1,!0),$(t,()=>U(e.item.label)),t})()}function _f(e){const t=se();return x(J,{get when(){return e.name},children:n=>x(nt,{get icons(){return t.host.icons},get name(){return n()}})})}function Mf(e){return x(J,{get when(){return e.text},children:t=>(()=>{var n=Pi();return I(n,S(()=>e.part("shortcut")),!1,!0),$(n,t),n})()})}function IA(e){const t=()=>re(e.item.disabled),n=tf(t,()=>{e.root.emit("select",{value:e.item.value??e.item.label})},e.root.close);return(()=>{var r=cA(),o=r.firstChild,i=n.ref;return typeof i=="function"?oe(i,r):n.ref=r,I(r,S(()=>e.root.part("item",t()&&"disabled"),{get"data-destructive"(){return e.item.destructive?"true":void 0}},()=>n.attrs(),{get onClick(){return n.handlers.onClick},get onPointerDown(){return n.handlers.onPointerDown},get onPointerUp(){return n.handlers.onPointerUp},get onPointerMove(){return n.handlers.onPointerMove},get onPointerLeave(){return n.handlers.onPointerLeave},get onKeyDown(){return n.handlers.onKeyDown},get onFocus(){return n.handlers.onFocus},get onBlur(){return n.handlers.onBlur}}),!1,!0),$(r,x(_f,{get name(){return e.item.icon}}),o),$(o,()=>U(e.item.label)),$(r,x(Mf,{get text(){return e.item.shortcut},get part(){return e.root.part}}),null),r})()}function EA(e){const t=se(),n=()=>re(e.item.disabled),r=()=>re(e.item.checked),o=tf(n,i=>{const s=!L(r),a=e.raw?.checked;Yr(a)&&t.setData(ar(a.path,e.root.scope()),s),e.root.emit("select",{value:e.item.value??e.item.label,checked:s}),i.preventDefault()},e.root.close);return(()=>{var i=uA(),s=i.firstChild,a=s.nextSibling,l=o.ref;return typeof l=="function"?oe(l,i):o.ref=i,I(i,S({get"aria-checked"(){return r()?"true":"false"}},()=>e.root.part("item",n()&&"disabled",r()&&"checked"),{get"data-state"(){return r()?"checked":"unchecked"}},()=>o.attrs(),{get onClick(){return o.handlers.onClick},get onPointerDown(){return o.handlers.onPointerDown},get onPointerUp(){return o.handlers.onPointerUp},get onPointerMove(){return o.handlers.onPointerMove},get onPointerLeave(){return o.handlers.onPointerLeave},get onKeyDown(){return o.handlers.onKeyDown},get onFocus(){return o.handlers.onFocus},get onBlur(){return o.handlers.onBlur}}),!1,!0),I(s,S(()=>e.root.part("check")),!1,!0),$(s,x(J,{get when(){return r()},get children(){var c=dA();return $(c,x(we,{slot:"Menu.check"})),c}})),$(a,()=>U(e.item.label)),$(i,x(Mf,{get text(){return e.item.shortcut},get part(){return e.root.part}}),null),i})()}function _A(e){const t=se(),n=()=>re(e.item.disabled),r=ef(n),[o,i]=Y(!1),s=Ae(),a=Ae(),[l,c]=Y(),[d,u]=Y();let p,h;le(()=>{clearTimeout(p),clearTimeout(h)});const f=()=>e.root.dir()==="rtl",b=()=>["Enter"," ",f()?"ArrowLeft":"ArrowRight"],m=()=>f()?"ArrowRight":"ArrowLeft",v=In(o);return[(()=>{var g=pA(),y=g.firstChild,k=y.nextSibling;return oe(w=>{r.ref(w),c(w)},g),V(g,"id",s),V(g,"aria-controls",a),I(g,S({get"aria-expanded"(){return o()?"true":"false"},get"data-state"(){return o()?"open":"closed"}},()=>e.root.part("item",n()&&"disabled"),()=>r.attrs(),{onClick:()=>{!L(n)&&!L(o)&&i(!0)},onPointerMove:w=>{r.handlers.onPointerMove(w),w.pointerType==="mouse"&&!L(n)&&!L(o)&&!p&&(r.level.setGrace(null),p=setTimeout(()=>{i(!0),p=void 0},100))},onPointerLeave:w=>{if(w.pointerType!=="mouse")return;clearTimeout(p),p=void 0;const _=d()?.getBoundingClientRect();if(_){const T=d()?.dataset.side,C=T==="right",M=C?-5:5,P=_[C?"left":"right"],D=_[C?"right":"left"];r.level.setGrace({area:[{x:w.clientX+M,y:w.clientY},{x:P,y:_.top},{x:D,y:_.top},{x:D,y:_.bottom},{x:P,y:_.bottom}],side:T}),clearTimeout(h),h=setTimeout(()=>r.level.setGrace(null),300)}else{if(r.level.onTriggerLeave(w))return;r.level.setGrace(null),r.handlers.onPointerLeave(w)}},onKeyDown:w=>{const _=r.level.search()!=="";if(!(L(n)||_&&w.key===" ")){if(b().includes(w.key)){L(o)?d()?.focus({preventScroll:!0}):i(!0),w.preventDefault();return}r.handlers.onKeyDown(w)}},get onFocus(){return r.handlers.onFocus},get onBlur(){return r.handlers.onBlur}}),!1,!0),$(g,x(_f,{get name(){return e.item.icon}}),y),$(y,()=>U(e.item.label)),I(k,S(()=>e.root.part("submenuIndicator")),!1,!0),$(k,x(we,{slot:"Menu.submenuIndicator"})),g})(),x(dn,{get mount(){return t.portal},get children(){return x(J,{get when(){return v.mounted()},get children(){return x(Qa,{get anchor(){return l()},get side(){return f()?"left":"right"},align:"start",sideOffset:2,get dir(){return e.root.dir()},get kind(){return ol(e.root)},root:!1,id:a,labelledBy:s,state:()=>o()?"open":"closed",attrs:()=>({...e.root.part("content"),"data-xui-overlay":`${e.root.overlay}.sub`,"data-searchable":e.item.searchable?"true":void 0}),setContent:g=>{u(g),g&&v.ref(g)},onDismiss:()=>i(!1),onEscapeKeyDown:g=>{e.root.close(),g.preventDefault()},onFocusOutside:g=>{g.target!==l()&&i(!1)},onCloseAutoFocus:g=>g.preventDefault(),onKeyDown:g=>{d()?.contains(g.target)&&g.key===m()&&(i(!1),l()?.focus(),g.preventDefault())},get children(){return x(J,{get when(){return e.item.searchable},get fallback(){return x(il,{get items(){return Le(e.item.items)},get raws(){return Le(e.raw?.items)},get path(){return`${e.path}.`}})},get children(){return x(MA,{get item(){return e.item},get i(){return e.path}})}})}})}})}})]}function MA(e){const t=se(),n=Zt(Oi),[r,o]=Y("");let i;je(()=>{const a=requestAnimationFrame(()=>i?.querySelector("input")?.focus({preventScroll:!0}));le(()=>cancelAnimationFrame(a))});const s=N(()=>Le(e.item.items).map((a,l)=>({index:l,entry:a})).filter(({entry:a})=>a.kind!=="separator"&&a.kind!=="label"&&!a.separator&&df({label:U(a.label)},r())).map(({index:a,entry:l})=>({index:a,item:{label:U(l.label),value:U(l.value??l.label),icon:l.icon,disabled:re(l.disabled)}})));return(()=>{var a=fA();a.addEventListener("pointerenter",c=>{const d=c.currentTarget.querySelector("input");d&&!c.currentTarget.contains(document.activeElement)&&d.focus({preventScroll:!0})});var l=i;return typeof l=="function"?oe(l,a):i=a,$(a,x(Cf,{get part(){return n.part},owner:"Menu",get suffix(){return`.${e.i}`},get rows(){return s()},get query(){return r()},onQuery:o,get placeholder(){return U(e.item.placeholder)||t.t("search")},get emptyText(){return t.t("noResults")},maxRows:8,showCount:!0,autoFocus:!0,leaveBubbles:!0,onPick:c=>{n.emit("select",{value:c.value}),n.close()},rowPart:(c,d,u)=>n.part("item",u&&"selected"),renderRow:c=>[Z(()=>Z(()=>!!c.icon)()?x(nt,{get icons(){return t.host.icons},get name(){return c.icon}}):null),(()=>{var d=hA();return $(d,()=>c.label),d})()]})),a})()}function il(e){const t=N(()=>e.items.map((n,r)=>r),void 0,{equals:(n,r)=>n.length===r.length});return x(xe,{get each(){return t()},children:n=>x(CA,{get item(){return e.items[n]},get raw(){return e.raws[n]},get path(){return`${e.path}${n}`}})})}function DA(e){return x(J,{get when(){return e.props.openOn==="contextmenu"},get fallback(){return x(PA,e)},get children(){return x(OA,e)}})}function Df(e,t,n,r){const o=se();return kS(),{close:n,dir:()=>o.direction,overlay:"Menu",openOn:r,part:t,emit:e.emit,scope:()=>e.scope}}function PA(e){const t=se(),n=me(e),r=()=>Le(e.props.items),o=()=>U(e.props.label),i=()=>U(e.props.icon),[s,a]=Y(!1),l=()=>e.node.children.length>0,c=Ae(),d=Ae(),[u,p]=Y(),h=Df(e,n,()=>a(!1),"press"),f=In(s);let b=!1;const m=()=>({type:"button",id:c,"aria-haspopup":"menu","aria-expanded":s()?"true":"false","aria-controls":s()?d:void 0,"data-state":s()?"open":"closed"}),v=y=>{if(y.button===0&&y.ctrlKey===!1){const k=L(s);a(!k),k||y.preventDefault()}},g=y=>{["Enter"," "].includes(y.key)&&a(!L(s)),y.key==="ArrowDown"&&a(!0),["Enter"," ","ArrowDown"].includes(y.key)&&y.preventDefault()};return x(Oi.Provider,{value:h,get children(){return[(()=>{var y=St();return I(y,S(()=>rl(e.rootProps,!0,e.node.children[0]??null)),!1,!0),$(y,x(J,{get when(){return l()},get fallback(){return(()=>{var k=gA();return oe(p,k),I(k,S(m,()=>n("trigger",s()&&"open"),{get"aria-label"(){return o()||t.t("menu")},onPointerDown:v,onKeyDown:g}),!1,!0),$(k,(()=>{var w=Z(()=>!!i());return()=>w()?x(nt,{get icons(){return t.host.icons},get name(){return i()},class:"xui-icon",width:16,height:16}):null})(),null),$(k,(()=>{var w=Z(()=>!!(o()||!i()));return()=>w()?(()=>{var _=Pi();return $(_,()=>o()||t.t("menu")),_})():null})(),null),k})()},get children(){var k=nl();return oe(p,k),I(k,S(m,{onPointerDown:v,onKeyDown:g}),!1,!0),$(k,()=>e.children),k}})),y})(),x(dn,{get mount(){return t.portal},get children(){return x(J,{get when(){return f.mounted()},get children(){return x(Qa,{get anchor(){return u()},side:"bottom",align:"start",sideOffset:ir,get dir(){return h.dir()},get kind(){return ol(h)},root:!0,id:d,labelledBy:c,state:()=>s()?"open":"closed",attrs:()=>({...n("content",s()&&"open"),"data-xui-overlay":"Menu","data-open-on":"press"}),setContent:y=>y&&f.ref(y),onDismiss:()=>a(!1),onInteractOutside:y=>{const k=y.detail.originalEvent,w=k.button===0&&k.ctrlKey===!0;(k.button===2||w)&&(b=!0)},onCloseAutoFocus:y=>{b||u()?.focus(),b=!1,y.preventDefault()},get children(){return x(il,{get items(){return r()},get raws(){return Le(e.node.props.items)},path:""})}})}})}})]}})}function OA(e){const t=se(),n=me(e),r=()=>Le(e.props.items),[o,i]=Y(!1),[s,a]=Y({x:0,y:0}),l=Df(e,n,()=>i(!1),"contextmenu"),c=In(o);let d;const u=()=>clearTimeout(d);le(u);const p=f=>{a({x:f.clientX,y:f.clientY}),i(!0)},h={getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...s()})};return x(Oi.Provider,{value:l,get children(){return[(()=>{var f=St();return I(f,S(()=>e.rootProps,{get"data-state"(){return o()?"open":"closed"},"on:contextmenu":b=>{u(),p(b),b.preventDefault()},onPointerDown:b=>{b.pointerType!=="mouse"&&(u(),d=setTimeout(()=>p(b),700))},onPointerMove:b=>b.pointerType!=="mouse"&&u(),"on:pointercancel":b=>b.pointerType!=="mouse"&&u(),onPointerUp:b=>b.pointerType!=="mouse"&&u(),onKeyDown:b=>{if(b.key==="F10"&&b.shiftKey||b.key==="ContextMenu"){b.preventDefault();const m=b.currentTarget.getBoundingClientRect();b.currentTarget.dispatchEvent(new MouseEvent("contextmenu",{bubbles:!0,cancelable:!0,clientX:m.left+8,clientY:m.top+8}))}}}),!1,!0),$(f,()=>e.children),f})(),x(dn,{get mount(){return t.portal},get children(){return x(J,{get when(){return c.mounted()},get children(){return x(Qa,{anchor:h,side:"right",align:"start",sideOffset:2,get dir(){return l.dir()},get kind(){return ol(l)},root:!0,state:()=>o()?"open":"closed",attrs:()=>({...n("content",o()&&"open"),"data-xui-overlay":"Menu","data-open-on":"contextmenu"}),setContent:f=>f&&c.ref(f),onDismiss:()=>i(!1),onCloseAutoFocus:()=>{},get children(){return x(il,{get items(){return r()},get raws(){return Le(e.node.props.items)},path:""})}})}})}})]}})}function FA(e){const t=se(),n=me(e),[r,o]=Oe(()=>e.node,()=>e.scope,"open",()=>e.props.open===void 0?!0:re(e.props.open)),[i,s]=Y(!1),[a,l]=Y(!1),c=()=>e.props.duration===void 0?5e3:Math.max(0,ue(e.props.duration,5e3)),d=()=>U(e.props.type,"info");let u=L(c),p=0;const h=()=>{o(!1),e.emit("dismiss",void 0,{open:!1}),e.emit("change",{open:!1},{open:!1})},[f,b]=Y(L(r));fe(De(r,v=>{if(v){b(!0),s(!1),u=L(c);return}if(!L(f))return;s(!0);const g=t.reducedMotion?0:t.theme.tokens.motion?.standard??180,y=setTimeout(()=>{b(!1),s(!1)},g);le(()=>clearTimeout(y))},{defer:!0})),fe(()=>{if(!r()||c()===0||a())return;p=Date.now();const v=setTimeout(h,u);le(()=>{clearTimeout(v),u=Math.max(0,u-(Date.now()-p))})});const m=()=>d()==="error";return x(dn,{get mount(){return Z(()=>!!f())()?t.toastLayer:null},get children(){var v=mA(),g=v.firstChild,y=g.nextSibling,k=y.firstChild;return I(v,S(()=>e.rootProps,{get role(){return m()?"alert":"status"},get"aria-live"(){return m()?"assertive":"polite"},"aria-atomic":"true",get"data-state"(){return i()?"closed":"open"},"data-xui-overlay":"Toast",onPointerEnter:()=>l(!0),onPointerLeave:()=>l(!1),onFocusIn:()=>l(!0),onFocusOut:()=>l(!1),onKeyDown:w=>{w.key==="Escape"&&e.props.dismissible!==!1&&(w.stopPropagation(),h())}}),!1,!0),I(g,S(()=>n("icon")),!1,!0),$(g,x(we,{get slot(){return`Toast.icon.${d()}`}})),I(k,S(()=>n("title")),!1,!0),$(k,()=>U(e.props.title)),$(y,(()=>{var w=Z(()=>!!U(e.props.description));return()=>w()?(()=>{var _=Pi();return I(_,S(()=>n("description")),!1,!0),$(_,()=>U(e.props.description)),_})():null})(),null),$(v,(()=>{var w=Z(()=>!!U(e.props.actionLabel));return()=>w()?(()=>{var _=ta();return I(_,S(()=>n("action"),{onClick:()=>{e.emit("action")}}),!1,!0),$(_,()=>U(e.props.actionLabel)),_})():null})(),null),$(v,(()=>{var w=Z(()=>e.props.dismissible!==!1);return()=>w()?(()=>{var _=ta();return I(_,S(()=>n("close"),{get"aria-label"(){return t.t("dismiss")},onClick:h}),!1,!0),$(_,x(we,{slot:"Toast.close"})),_})():null})(),null),v}})}const zA={Dialog:yA,Drawer:bA,Popover:$A,Tooltip:SA,Menu:DA,Toast:FA};_t(["pointerdown","pointermove","pointerup"]);var RA=F("<svg shape-rendering=crispEdges aria-hidden=true><path>"),na=F("<span>"),NA=F("<div><span>"),LA=F("<div><div><span>"),jA=F("<svg><path fill=none stroke=currentColor stroke-linecap=round stroke-linejoin=round>"),BA=F("<span><span></span><span>");const Pf={focusable:"false"};function ai(e,t,n,r){return tr(e.theme,{component:t,part:n,props:ln(t,r,e.extensionDefs)},e.mode)}function WA(e,t,n){const r=U(t);return r?r.startsWith("$string.")?e.t(r.slice(8)):r:e.t(n)}function HA(e){const t=se(),n=me(e),r=()=>Math.max(0,ue(e.props.size,160)),o=()=>String(ai(t,"QrCode","plate",e.props).backgroundColor??"#ffffff"),i=()=>String(ai(t,"QrCode","module",e.props).color??"#000000"),s=N(()=>Ax(U(e.props.value),U(e.props.level,"M"),o(),i())),a=()=>U(e.props.label);return(()=>{var l=NA(),c=l.firstChild;return I(l,S(()=>e.rootProps,{get role(){return a()?"img":void 0},get"aria-label"(){return a()||void 0},get"aria-hidden"(){return a()?void 0:"true"},get"data-empty"(){return s().matrix?void 0:"true"}}),!1,!0),I(c,S(()=>n("plate"),{get style(){return ge({width:r(),height:r(),backgroundColor:s().plate})}}),!1,!0),$(c,x(J,{get when(){return s().matrix},get children(){var d=RA(),u=d.firstChild;return I(d,S({get viewBox(){return`0 0 ${s().modules} ${s().modules}`},get width(){return r()},get height(){return r()}},Pf),!0,!0),I(u,S(()=>n("module"),{get d(){return s().path},get fill(){return s().module}}),!0,!1),d}})),$(l,x(J,{get when(){return a()},get children(){var d=na();return I(d,S(()=>n("label"),{"aria-hidden":"true"}),!1,!0),$(d,a),d}}),null),l})()}function UA(e){const t=se(),n=me(e),r=()=>re(e.props.disabled),o=N(()=>Mx(e.props.formats).join(","));let i;const[s,a]=Y(!1);fe(()=>{const h=t.host.qrScanner,f=r(),b=o().split(","),m=i;if(!h||f||!m){a(!1);return}const v=Tx(y=>{t.announce(y),e.emit("scanned",{value:y})});let g;try{g=L(()=>h.start(m,b,v))}catch{g=!1}a(g!==!1),le(()=>{typeof g=="function"&&g(),m.replaceChildren()})});const l=()=>WA(t,e.props.label,"scanQrCode"),c=()=>ue(ai(t,"QrScanner","viewfinder",e.props).borderRadius,0),d=()=>String(ai(t,"QrScanner","feed",e.props).backgroundColor??"#000000"),u=()=>U(e.props.hint),p=()=>!!t.host.qrScanner&&s();return(()=>{var h=LA(),f=h.firstChild,b=f.firstChild;I(h,S(()=>e.rootProps,{get"aria-disabled"(){return r()||void 0},get"data-live"(){return p()?"true":void 0}}),!1,!0),I(f,S(()=>n("viewfinder"),{role:"img",get"aria-label"(){return Z(()=>!!p())()?l():`${l()}, ${t.t("cameraUnavailable")}`}}),!1,!0);var m=i;return typeof m=="function"?oe(m,b):i=b,I(b,S(()=>n("feed"),{get style(){return ge({backgroundColor:_x(d())})},"aria-hidden":"true"}),!1,!1),$(f,x(xe,{each:Ix,children:v=>(()=>{var g=jA(),y=g.firstChild;return I(g,S(()=>n("corner"),{"data-corner":v,get viewBox(){return`0 0 ${Re.cornerLength} ${Re.cornerLength}`},"aria-hidden":"true"},Pf),!0,!0),te(k=>{var w=Ex(v,c()),_=Re.cornerStroke;return w!==k.e&&V(y,"d",k.e=w),_!==k.t&&V(y,"stroke-width",k.t=_),k},{e:void 0,t:void 0}),g})()}),null),$(f,x(J,{get when(){return p()},get fallback(){return(()=>{var v=BA(),g=v.firstChild,y=g.nextSibling;return I(v,S(()=>n("placeholder"),{"aria-hidden":"true"}),!1,!0),I(g,S(()=>n("placeholderIcon")),!1,!0),$(g,x(nt,{get icons(){return t.host.icons},get name(){return Re.placeholderIcon},get width(){return Re.placeholderIconSize},get height(){return Re.placeholderIconSize}})),$(y,()=>t.t("cameraUnavailable")),v})()},get children(){var v=na();return I(v,S(()=>n("scanLine"),{"aria-hidden":"true"}),!1,!1),v}}),null),$(h,x(J,{get when(){return u()},get children(){var v=na();return I(v,S(()=>n("hint")),!1,!0),$(v,u),v}}),null),h})()}const qA={QrCode:HA,QrScanner:UA};var id=F("<div>"),VA=F("<div><span class=xui-resize-hit aria-hidden=true>"),KA=F("<span>");const GA=new Set(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End","Enter"]),YA=(e,t)=>e.length===t.length&&e.every((n,r)=>n===t[r]);function XA(e){const t=se(),n=me(e),r=()=>e.props.direction==="vertical"?"vertical":"horizontal",o=()=>e.node.children.length,i=N(()=>Lt(e.props.panels)),s=N(()=>my(Lt(e.props.sizes),o(),i())),[a,l]=Oe(()=>e.node,()=>e.scope,"sizes",s),[c,d]=Y(null);let u=null;const p=()=>c()??(a().length===o()?a():s()),h=()=>ue(t.theme.tokens.control?.hairline,1);let f,b=null;const m=C=>{l(C),e.emit("change",{sizes:C},{sizes:C})},v=C=>L(r)==="horizontal"?C.clientX:C.clientY,g=C=>M=>{if(M.button!==0)return;const P=f?.getBoundingClientRect();if(!P)return;M.preventDefault();const D=M.currentTarget;try{D.setPointerCapture?.(M.pointerId)}catch{}D.focus(),b={id:M.pointerId,handle:C,start:L(p),at:v(M),container:L(r)==="horizontal"?P.width:P.height},u=null},y=C=>{const M=b;if(!M||M.id!==C.pointerId)return;const P=by(v(C)-M.at,M.container,L(o),L(r),t.direction,L(h)),D=wo(M.start,M.handle,P,L(i));u=D,d(D)},k=C=>{const M=b;if(!M||M.id!==C.pointerId)return;b=null;const P=u;u=null,d(null),P&&P.some((D,O)=>D!==M.start[O])&&m(P)},w=C=>M=>{if(!GA.has(M.key))return;M.preventDefault();const P=L(p),D=yy(P,C,M.key,L(r),t.direction,L(i));D.some((O,z)=>O!==P[z])&&m(D)},_=N(()=>new Map(e.node.children.map(C=>[C.id,C]))),T=N(()=>e.node.children.map(C=>C.id),void 0,{equals:YA});return(()=>{var C=id(),M=f;return typeof M=="function"?oe(M,C):f=C,I(C,S(()=>e.rootProps,{role:"group",get"data-orientation"(){return r()},get"data-dragging"(){return c()?"":void 0}}),!1,!0),$(C,x(xe,{get each(){return T()},children:(P,D)=>{const O=N(A=>_().get(P)??A),z=()=>p()[D()]??0,K=()=>`${e.domId}.panel.${D()}`,ee=()=>i()[D()]??{},q=()=>c()!==null&&b?.handle===D();return[(()=>{var A=id();return I(A,S(()=>n.at("panel",D()),{get id(){return K()},get"data-size"(){return z()},get style(){return{flex:`${z()} 1 0px`}}}),!1,!0),$(A,x(Dt,{get node(){return O()}})),A})(),x(J,{get when(){return D()<o()-1},get children(){var A=VA(),B=A.firstChild;return I(A,S(()=>n.at("handle",D(),q()&&"pressed"),{role:"separator",tabindex:0,get"aria-orientation"(){return r()==="horizontal"?"vertical":"horizontal"},get"aria-valuenow"(){return Math.round(z())},get"aria-valuemin"(){return Z(()=>typeof ee().min=="number")()?ee().min:void 0},get"aria-valuemax"(){return Z(()=>typeof ee().max=="number")()?ee().max:void 0},get"aria-controls"(){return K()},get"aria-label"(){return t.t("resize")},onPointerDown:G=>g(D())(G),onPointerMove:y,onPointerUp:k,onPointerCancel:k,onKeyDown:G=>w(D())(G)}),!1,!0),$(A,(()=>{var G=Z(()=>!!re(e.props.handle));return()=>G()?(()=>{var E=KA();return I(E,S(()=>n.at("grip",D()),{"aria-hidden":"true"}),!1,!1),E})():null})(),null),te(G=>Ee(B,ge(r()==="horizontal"?{width:Cl}:{height:Cl}),G)),A}})]}})),C})()}const ZA={Resizable:XA};var sl=F("<div>"),QA=F("<button type=button role=combobox aria-autocomplete=none><span>"),li=F("<span>"),JA=F("<div role=listbox data-state=open tabindex=-1><style>[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}</style><div data-radix-select-viewport role=presentation>"),eT=F("<span aria-hidden=true>"),Of=F("<div role=option><span>"),tT=F("<button type=button aria-haspopup=listbox><span>"),nT=F("<div data-state=open role=dialog><div role=listbox class=xui-Select-listbox>"),rT=F("<div class=xui-Select-searchbox><input>");const oT=e=>Array.isArray(e)?e.map(String):e==null||e===""?[]:String(e).split(",");function iT(e){const t=me(e),n=se(),r=Ae(),o=`${r}-list`,i=()=>re(e.props.multiple),s=()=>re(e.props.searchable),a=()=>U(e.props.placeholder)||n.t("choose"),l=()=>e.props.value,[c,d]=Oe(()=>e.node,()=>e.scope,"value",()=>i()?oT(l()):U(l())),[u,p]=Y(),h=ht({node:()=>e.node,domId:()=>e.domId,props:()=>e.props,value:c,focusEl:u}),f=()=>re(e.props.disabled)||!!h.form?.disabled,[b,m]=Y(!1),[v,g]=Y(""),y=()=>U(e.props.source),k=()=>Or(e.node.props,"options",e.scope)!==void 0,[w,_]=Y(null);let T=0;const C=z=>{const K=L(y),ee=L(()=>n.host);if(!K||!ee.optionSource)return;const q=++T,A=ee.optionSource(K,z),B=G=>{q===T&&_(Le(G))};A&&typeof A.then=="function"?A.then(B,()=>{}):B(A)};le(()=>T++);const M=N(()=>Le(e.props.options)),P=()=>w()??M(),D=z=>{const K=L(l),ee=L(i)&&!Array.isArray(K)&&typeof K=="string"?z.join(","):z;d(z,ee),h.change(ee),h.touch(),e.emit("change",{value:ee},{value:ee})};fe(De([v,b,s,y],([z,K,ee])=>{if(!ee||!K)return;const q=setTimeout(()=>{e.emit("search",{query:z}),C(z)},zr);le(()=>clearTimeout(q))})),fe(De([y,()=>n.host,s],([z,K,ee])=>{!z||!K.optionSource||ee||C("")}));const O={part:t,id:r,listId:o,multiple:i,searchable:s,placeholder:a,options:P,value:c,commit:D,open:b,setOpen:m,query:v,setQuery:g,disabled:f,setTrigger:p,trigger:u,source:y,localFilter:()=>!k()&&!y(),field:h};return(()=>{var z=sl();return I(z,S(()=>e.rootProps,{get"data-source"(){return y()||void 0}}),!1,!0),$(z,x(tt,{get part(){return t("label")},get text(){return e.props.label},as:"label",htmlFor:r}),null),$(z,x(J,{get when(){return Z(()=>!i())()&&!s()},get fallback(){return x(lT,{s:O,get emptyText(){return U(e.props.emptyText)}})},get children(){return x(sT,{s:O,get name(){return U(e.props.name,e.node.id)},get emptyText(){return U(e.props.emptyText)}})}}),null),$(z,x(gt,{part:t,field:h}),null),z})()}function sT(e){const t=se(),n=e.s,r=n.part,o=Ae(),i=()=>n.value()||void 0,s=()=>n.options().find(b=>b.value===n.value()),a=()=>n.options().filter(b=>!re(b.disabled)),[l,c]=Y(!1);je(()=>c(!!n.trigger()?.closest("form")));let d="touch",u=null;const p=Zp(b=>{const m=a(),v=Qp(m.map(g=>({label:U(g.label),o:g})),b,m.map(g=>({label:U(g.label),o:g})).find(g=>g.o.value===i()));v&&n.commit(v.o.value)}),h=b=>{n.disabled()||(n.setOpen(!0),p.reset()),b&&(u={x:Math.round(b.pageX),y:Math.round(b.pageY)})},f=N(()=>n.options().map(b=>b.value).join(";"));return[(()=>{var b=QA(),m=b.firstChild,v=n.setTrigger;return typeof v=="function"?oe(v,b):n.setTrigger=b,V(b,"aria-controls",o),I(b,S({get"aria-expanded"(){return n.open()},get dir(){return t.direction},get"data-state"(){return n.open()?"open":"closed"},get disabled(){return n.disabled()},get"data-disabled"(){return n.disabled()?"":void 0},get"data-placeholder"(){return i()===void 0?"":void 0},get id(){return n.id}},()=>r("trigger",n.open()&&"open",n.disabled()&&"disabled",n.field.invalid&&"invalid"),{get"aria-invalid"(){return n.field.invalid||void 0},get"aria-describedby"(){return n.field.describedBy},onClick:g=>{g.currentTarget.focus(),d!=="mouse"&&h(g)},onPointerDown:g=>{d=g.pointerType;const y=g.target;y.hasPointerCapture?.(g.pointerId)&&y.releasePointerCapture(g.pointerId),g.button===0&&g.ctrlKey===!1&&g.pointerType==="mouse"&&(h(g),g.preventDefault())},onKeyDown:g=>{const y=p.search!=="";!(g.ctrlKey||g.altKey||g.metaKey)&&g.key.length===1&&p.type(g.key),!(y&&g.key===" ")&&TS.includes(g.key)&&(h(),g.preventDefault())}}),!1,!0),$(m,(()=>{var g=Z(()=>!!s());return()=>g()?(()=>{var y=li();return $(y,()=>U(s().label)),te(k=>Ee(y,ge({pointerEvents:"none"}),k)),y})():(()=>{var y=li();return I(y,S(()=>r("placeholder")),!1,!0),$(y,()=>n.placeholder()),y})()})()),$(b,x(we,{slot:"Select.trigger"}),null),b})(),x(J,{get when(){return Z(()=>!!l())()?`${f()}#`:!1},keyed:!0,children:b=>x(WS,{get name(){return e.name},get value(){return i()},get disabled(){return n.disabled()},get options(){return n.options()},onChange:m=>n.commit(m)})}),x(J,{get when(){return n.open()},get children(){return x(aT,{s:n,contentId:o,current:i,get emptyText(){return e.emptyText},downAt:()=>u,clearDownAt:()=>u=null})}})]}function aT(e){const t=se(),n=e.s,r=n.part;let o,i;const s=[],[a,l]=Y(-1),c=()=>n.setOpen(!1),d=v=>{re(v.disabled)||(v.value!==n.value()&&n.commit(v.value),c())},u=()=>s.filter((v,g)=>v&&!re(n.options()[g]?.disabled)),p=v=>{const[g,...y]=s,[k]=y.slice(-1),w=document.activeElement;for(const _ of v)if(_&&(_===w||(_.scrollIntoView?.({block:"nearest"}),_===g&&i&&(i.scrollTop=0),_===k&&i&&(i.scrollTop=i.scrollHeight),_.focus(),document.activeElement!==w)))return},h=()=>{const v=n.options(),g=v.findIndex(y=>e.current()!==void 0&&y.value===e.current());return s[g>=0?g:v.findIndex(y=>!re(y.disabled))]},f=Zp(v=>{const g=n.options(),y=u().map(w=>({el:w,label:U(g[s.indexOf(w)]?.label)})),k=Qp(y,v,y.find(w=>w.el===document.activeElement));k&&setTimeout(()=>k.el.focus())}),b=()=>c();je(()=>{if(window.addEventListener("blur",b),window.addEventListener("resize",b),e.downAt()!==null){let v={x:0,y:0};const g=k=>{const w=e.downAt();v={x:Math.abs(Math.round(k.pageX)-(w?.x??0)),y:Math.abs(Math.round(k.pageY)-(w?.y??0))}},y=k=>{v.x<=10&&v.y<=10?k.preventDefault():o?.contains(k.target)||c(),document.removeEventListener("pointermove",g),e.clearDownAt()};document.addEventListener("pointermove",g),document.addEventListener("pointerup",y,{capture:!0,once:!0}),le(()=>{document.removeEventListener("pointermove",g),document.removeEventListener("pointerup",y,{capture:!0})})}}),le(()=>{window.removeEventListener("blur",b),window.removeEventListener("resize",b);const v=n.trigger();setTimeout(()=>v?.focus({preventScroll:!0}))}),Dp({layer:()=>o,onDismiss:c,keepOnFocusOutside:!0});const m=Gp({anchor:n.trigger,sideOffset:ir,align:"start",collisionPadding:sr,onPlaced:()=>p([h(),o]),content:(v,g)=>(()=>{var y=JA(),k=y.firstChild,w=k.nextSibling;oe(T=>{o=T,g(T)},y),I(y,S({get"data-side"(){return v().side},get"data-align"(){return v().align},get id(){return e.contentId},get dir(){return t.direction}},()=>r("content","open"),{"data-xui-overlay":"Select",get style(){return ge({boxSizing:"border-box",pointerEvents:"auto",display:"flex",flexDirection:"column",outline:"none",minWidth:"var(--radix-select-trigger-width)","--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)",animation:v().positioned?void 0:"none"})},onContextMenu:T=>T.preventDefault(),onKeyDown:T=>{const C=T.ctrlKey||T.altKey||T.metaKey;if(T.key==="Tab"&&T.preventDefault(),!C&&T.key.length===1&&f.type(T.key),["ArrowUp","ArrowDown","Home","End"].includes(T.key)){let M=u();["ArrowUp","End"].includes(T.key)&&(M=M.slice().reverse()),["ArrowUp","ArrowDown"].includes(T.key)&&(M=M.slice(M.indexOf(T.target)+1)),setTimeout(()=>p(M)),T.preventDefault()}}}),!1,!0);var _=i;return typeof _=="function"?oe(_,w):i=w,$(w,(()=>{var T=Z(()=>n.options().length===0);return()=>T()?(()=>{var C=sl();return I(C,S(()=>r("empty")),!1,!0),$(C,()=>e.emptyText||t.t("noResults")),C})():null})(),null),$(w,x(xe,{get each(){return n.options()},children:(T,C)=>{const M=Ae(),P=()=>T.value===e.current(),D=()=>a()===C(),O=()=>re(T.disabled);let z="touch";return(()=>{var K=Of(),ee=K.firstChild;return oe(q=>s[C()]=q,K),V(K,"aria-labelledby",M),I(K,S({get"data-highlighted"(){return D()?"":void 0},get"aria-selected"(){return Z(()=>!!P())()&&D()},get"data-state"(){return P()?"checked":"unchecked"},get"aria-disabled"(){return O()||void 0},get"data-disabled"(){return O()?"":void 0},get tabindex(){return O()?void 0:-1}},()=>r("item",T.value===n.value()&&"selected",O()&&"disabled"),{onFocus:()=>l(C()),onBlur:()=>l(q=>q===C()?-1:q),onClick:()=>{z!=="mouse"&&d(T)},onPointerUp:q=>{!q.defaultPrevented&&z==="mouse"&&d(T)},onPointerDown:q=>z=q.pointerType,onPointerMove:q=>{z=q.pointerType,O()?o?.focus():z==="mouse"&&q.currentTarget.focus({preventScroll:!0})},onPointerLeave:q=>{q.currentTarget===document.activeElement&&o?.focus()},onKeyDown:q=>{f.search!==""&&q.key===" "||(IS.includes(q.key)&&d(T),q.key===" "&&q.preventDefault())}}),!1,!0),$(K,(()=>{var q=Z(()=>!!T.icon);return()=>q()?x(nt,{get icons(){return t.host.icons},get name(){return T.icon}}):null})(),ee),V(ee,"id",M),$(ee,()=>U(T.label)),$(K,x(J,{get when(){return P()},get children(){var q=eT();return I(q,S(()=>r("check"),{get class(){return`${r("check").class} xui-Select-check`}}),!1,!0),$(q,x(we,{slot:"Select.check",size:16})),q}}),null),K})()}}),null),te(T=>Ee(w,ge({position:"relative",flex:1,overflow:"hidden auto"}),T)),y})()});return Mp(t.portal??document.body,m),null}function lT(e){const t=e.s,n=t.part,r=Ae(),o=()=>{const p=t.value();return t.multiple()?p:p?[p]:[]},i=()=>t.options().filter(p=>o().includes(p.value)),s=N(()=>{const p=t.query();return p&&t.localFilter()?t.options().filter(h=>U(h.label).toLowerCase().includes(p.toLowerCase())):t.options()});let a;const l=p=>{const h=s()[p];if(!(!h||re(h.disabled)))if(t.multiple()){const f=o();t.commit(f.includes(h.value)?f.filter(b=>b!==h.value):[...f,h.value])}else t.commit(h.value),t.setOpen(!1)},c=of({count:()=>s().length,isDisabled:p=>re(s()[p]?.disabled),labelOf:p=>U(s()[p]?.label),onPick:l,typeahead:()=>!t.searchable()});fe(De(t.open,p=>{if(p){const h=s().findIndex(f=>o().includes(f.value));c.setActive(h>=0?h:s().findIndex(f=>!re(f.disabled)))}else t.setQuery("")})),fe(De(t.query,()=>{!L(t.searchable)||!L(t.open)||c.setActive(L(s).findIndex(p=>!re(p.disabled)))},{defer:!0}));const d=p=>`${t.listId}-${p}`,u=()=>c.active()>=0&&c.active()<s().length?d(c.active()):void 0;return fe(()=>{const p=u();p&&a?.querySelector(`[id="${p}"]`)?.scrollIntoView?.({block:"nearest"})}),[(()=>{var p=tT(),h=p.firstChild,f=t.setTrigger;return typeof f=="function"?oe(f,p):t.setTrigger=p,I(p,S({get"aria-expanded"(){return t.open()},get"aria-controls"(){return Z(()=>!!t.open())()?t.listId:void 0},get"data-state"(){return t.open()?"open":"closed"},get id(){return t.id}},()=>n("trigger",t.open()&&"open",t.disabled()&&"disabled",t.field.invalid&&"invalid"),{get disabled(){return t.disabled()},role:"combobox",get"aria-invalid"(){return t.field.invalid||void 0},get"aria-describedby"(){return t.field.describedBy},onKeyDown:b=>{!t.open()&&(b.key==="ArrowDown"||b.key==="ArrowUp")&&(b.preventDefault(),t.setOpen(!0))},onClick:()=>t.setOpen(!t.open())}),!1,!0),$(h,(()=>{var b=Z(()=>!!i().length);return()=>b()?i().map(m=>U(m.label)).join(", "):(()=>{var m=li();return I(m,S(()=>n("placeholder")),!1,!0),$(m,()=>t.placeholder()),m})()})()),$(p,x(we,{slot:"Select.trigger"}),null),p})(),x(J,{get when(){return t.open()},get children(){return x(cT,{s:t,contentId:r,shown:s,selected:o,nav:c,pick:l,optionId:d,activeId:u,get emptyText(){return e.emptyText},listRef:p=>a=p})}})]}function cT(e){const t=se(),n=e.s,r=n.part;let o,i,s=!1;Dp({layer:()=>o,onDismiss:()=>n.setOpen(!1),isInside:c=>!!n.trigger()?.contains(c),onOutside:()=>s=!0}),le(()=>{const c=n.trigger();s||setTimeout(()=>c?.focus())});const l=Gp({anchor:n.trigger,sideOffset:ir,align:"start",collisionPadding:sr,dir:()=>{},content:(c,d)=>(()=>{var u=nT(),p=u.firstChild;return oe(h=>{o=h,d(h)},u),I(u,S({get"data-side"(){return c().side},get"data-align"(){return c().align},get id(){return e.contentId}},()=>r("content","open"),{get dir(){return t.direction},"data-xui-overlay":"Select",tabindex:-1,get style(){return ge({minWidth:"var(--radix-popover-trigger-width)",animation:c().positioned?void 0:"none","--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"})}}),!1,!0),$(u,(()=>{var h=Z(()=>!!n.searchable());return()=>h()?(()=>{var f=rT(),b=f.firstChild;return $(f,x(we,{slot:"Select.search",size:16}),b),I(b,S(()=>r("search"),{get class(){return`${r("search").class} xui-Select-search`},role:"combobox","aria-expanded":!0,get"aria-controls"(){return n.listId},get"aria-activedescendant"(){return e.activeId()},"aria-autocomplete":"list",get placeholder(){return t.t("search")},get"aria-label"(){return t.t("search")},get value(){return n.query()},onInput:m=>n.setQuery(m.currentTarget.value),get onKeyDown(){return e.nav.onKeyDown}}),!1,!1),te(()=>b.defaultValue=n.query()),f})():null})(),p),p.$$keydown=h=>{n.searchable()||e.nav.onKeyDown(h)},oe(h=>{i=h,e.listRef(h)},p),$(p,(()=>{var h=Z(()=>e.shown().length===0);return()=>h()?(()=>{var f=sl();return I(f,S(()=>r("empty")),!1,!0),$(f,()=>e.emptyText||t.t("noResults")),f})():null})(),null),$(p,x(xe,{get each(){return e.shown()},children:(h,f)=>{const b=()=>e.selected().includes(h.value),m=()=>f()===e.nav.active();return(()=>{var v=Of(),g=v.firstChild;return I(v,S({get id(){return e.optionId(f())},get"aria-selected"(){return b()},get"aria-disabled"(){return re(h.disabled)||void 0},get"data-active"(){return m()?"":void 0}},()=>r("item",(b()||m())&&"selected",re(h.disabled)&&"disabled",m()&&"hover"),{onPointerMove:()=>e.nav.setActive(f()),onMouseDown:y=>y.preventDefault(),onClick:()=>e.pick(f())}),!1,!0),$(v,(()=>{var y=Z(()=>!!h.icon);return()=>y()?x(nt,{get icons(){return t.host.icons},get name(){return h.icon}}):null})(),g),$(g,()=>U(h.label)),$(v,(()=>{var y=Z(()=>!!b());return()=>y()?(()=>{var k=li();return I(k,S(()=>r("check"),{get class(){return`${r("check").class} xui-Select-check`}}),!1,!0),$(k,x(we,{slot:"Select.check",size:16})),k})():null})(),null),v})()}}),null),te(h=>{var f=n.listId,b=n.searchable()?-1:0,m=n.multiple()||void 0,v=n.searchable()?void 0:e.activeId(),g=n.id;return f!==h.e&&V(p,"id",h.e=f),b!==h.t&&V(p,"tabindex",h.t=b),m!==h.a&&V(p,"aria-multiselectable",h.a=m),v!==h.o&&V(p,"aria-activedescendant",h.o=v),g!==h.i&&V(p,"aria-labelledby",h.i=g),h},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),u})()});return Mp(t.portal??document.body,l),je(()=>{n.searchable()?o?.querySelector("input")?.focus():i?.focus()}),null}const dT={Select:iT};_t(["keydown"]);var uT=F("<span class=xui-Checkbox-check>"),pT=F("<button>"),fT=F("<input type=checkbox aria-hidden=true value=on tabindex=-1>"),hT=F("<span class=xui-sr-only>—"),gT=F("<span data-xui-part=Badge/root data-m-variant=secondary><span data-xui-part=Badge/label data-m-variant=secondary>"),mT=F("<div role=gridcell class=xui-table-check>"),yT=F("<div role=row>"),sd=F("<div>"),bT=F("<div role=columnheader class=xui-table-check>"),vT=F("<span class=xui-sr-only aria-live=polite>"),xT=F("<div><div role=rowgroup><div role=row aria-rowindex=1 class=xui-table-row></div></div><div role=rowgroup>"),$T=F("<button type=button class=xui-table-sort><span></span><span>"),wT=F("<div role=columnheader>"),kT=F("<span>"),ST=F("<div role=row><div role=cell>");const CT=/^[A-Za-z]{3}$/,AT=e=>typeof e=="number"?e:typeof e=="string"&&e.trim()!==""?Number(e):NaN,TT=e=>e==="indeterminate"?"indeterminate":e?"checked":"unchecked";function ad(e){let t;const[n,r]=Y(!0),[o,i]=Y(void 0),s=L(()=>e.checked===!0);je(()=>{r(!!t?.closest("form")),t&&i({width:t.offsetWidth,height:t.offsetHeight})});const a=()=>TT(e.checked);return[(()=>{var l=pT(),c=t;return typeof c=="function"?oe(c,l):t=l,I(l,S(()=>e.attrs,{get class(){return e.class},type:"button",role:"checkbox",get"aria-checked"(){return Z(()=>e.checked==="indeterminate")()?"mixed":e.checked},get"data-state"(){return a()},value:"on",get"aria-label"(){return e.label},onKeyDown:d=>{d.key==="Enter"&&d.preventDefault()},onClick:d=>{e.stop&&d.stopPropagation();const u=e.checked;e.onChange(u==="indeterminate"?!0:!u),n()&&!e.stop&&d.stopPropagation()}}),!1,!0),$(l,x(J,{get when(){return e.checked!==!1},get children(){var d=uT();return $(d,x(we,{slot:"Checkbox.check"})),te(u=>{var p=a(),h=ge({pointerEvents:"none"});return p!==u.e&&V(d,"data-state",u.e=p),u.t=Ee(d,h,u.t),u},{e:void 0,t:void 0}),d}})),l})(),x(J,{get when(){return n()},get children(){var l=fT();return V(l,"checked",s?"":void 0),te(c=>Ee(l,ge({...o()??{},position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}),c)),l}})]}function IT(e){const t=se(),n=me(e),r=N(()=>Le(e.props.columns)),o=N(()=>Le(e.props.rows)),i=()=>U(e.props.rowKey,"id"),s=()=>U(e.props.selectable,"none"),a=()=>re(e.props.striped),l=N(()=>Or(e.node.props,"rows",e.scope)),c=N(()=>Or(e.node.props,"sort",e.scope)!==void 0),[d,u]=Oe(()=>e.node,()=>e.scope,"sort",()=>{const j=e.props.sort;return j&&j.key?{key:j.key,direction:j.direction==="desc"?"desc":"asc"}:null}),[p,h]=Oe(()=>e.node,()=>e.scope,"selected",()=>Lt(e.props.selected).map(String)),f=N(()=>ay(o(),i())),b=j=>f()[j]??String(j),m=N(()=>{const j=d();return c()?o().map((X,ne)=>ne):Vx(o(),j,r().find(X=>X.key===j?.key),t.locale)}),v=N(()=>[s()==="multiple"?"var(--xui-control-checkbox, 16px)":null,...r().map(j=>j.width?`${j.width}px`:"minmax(0, 1fr)")].filter(Boolean).join(" ")),g=j=>{const X=L(d),ne=X?.key===j.key&&X.direction==="asc"?{key:j.key,direction:"desc"}:{key:j.key,direction:"asc"};u(ne),e.emit("sort",{sort:ne},{sort:ne})},y=j=>{h(j),e.emit("select",{selected:j},{selected:j})},k=N(()=>o().map((j,X)=>b(X))),w=N(()=>k().length>0&&k().every(j=>p().includes(j))),_=N(()=>!w()&&k().some(j=>p().includes(j))),T=()=>s()!=="none"||!!e.node.on?.rowPress,C=()=>o().length>va,[M,P]=Y(null),D=N(()=>m().map(j=>b(j)),void 0,{equals:(j,X)=>j.length===X.length&&j.every((ne,ae)=>ne===X[ae])}),O=N(()=>{const j=M(),X=D();return j!==null&&X.includes(j)?j:X.find(ne=>p().includes(ne))??X[0]??null});let z,K,ee=null;const q=j=>{const X=`[role="row"][data-key="${typeof CSS<"u"&&CSS.escape?CSS.escape(j):j.replace(/"/g,'\\"')}"]`;return z?.querySelector(`:scope > ${X}, :scope > .xui-list-window > .xui-list-item > ${X}`)??null},A=j=>{const X=L(D);if(X.length===0)return;const ne=Math.max(0,Math.min(X.length-1,j)),ae=X[ne];P(ae);const de=q(ae);de?de.focus():(ee=ae,K?.scrollToIndex(ne))};fe(()=>{const j=e.domId;le(t.registerScroller(j,(X,ne)=>{const ae=L(m).indexOf(X);ae<0||(L(C)?K?.scrollToIndex(ae,ne):q(L(()=>b(X)))?.scrollIntoView({block:ne==="center"||ne==="start"||ne==="end"?ne:"nearest"}))}))});const[B,G]=Y({}),E=(j,X,ne,ae)=>{G(de=>({...de,[j]:Tn(de[j]??X,ne,ae)}))},R=(j,X)=>{const ne=X?.[j.key],ae=ne==null||ne==="",de=j.decimals===void 0?void 0:ue(j.decimals),ie=AT(ne),ve=pe=>pe===""?null:pe;switch(j.type){case"number":return ve(Number.isFinite(ie)?t.formatter.number(ie,{decimals:de}):"");case"currency":{const pe=j.currency===void 0?"USD":j.currency;return ve(Number.isFinite(ie)&&typeof pe=="string"&&CT.test(pe)?t.formatter.currency(ie,pe,{decimals:de}):"")}case"percent":return ve(Number.isFinite(ie)?t.formatter.percent(ie,{decimals:de}):"");case"date":return ve(ae?"":t.formatter.date(ne));case"relativeTime":return ve(ae?"":t.formatter.relativeTime(ne,t.now()));case"boolean":return ne?x(we,{slot:"Checkbox.check",size:16}):hT();case"badge":return ae?null:(()=>{var pe=gT(),ce=pe.firstChild;return $(ce,()=>String(ne)),te(Te=>{var Ie=`${t.compiled.scope} ${An("Badge","root")} xui-table-badge`,_e=`${t.compiled.scope} ${An("Badge","label")}`;return Ie!==Te.e&&an(pe,Te.e=Ie),_e!==Te.t&&an(ce,Te.t=_e),Te},{e:void 0,t:void 0}),pe})();default:return ve(Hr(ne))}},H=j=>{const X=j.rowKey,ne=N(pe=>m()[j.pos()]??pe),ae=()=>o()[ne()],de=()=>p().includes(X),ie=()=>j.pos()%2===1,ve=()=>{const pe=L(de);L(s)==="single"&&y(pe?[]:[X]),e.node.on?.rowPress&&e.emit("rowPress",{key:X,row:L(ae)})};return(()=>{var pe=yT();return pe.$$keydown=ce=>{if(ce.target===ce.currentTarget)if(ce.key==="Enter"||ce.key===" "&&s()==="single")ce.preventDefault(),ve();else if(ce.key==="ArrowDown"||ce.key==="ArrowUp"){ce.preventDefault();const Te=L(D),Ie=ee===null?-1:Te.indexOf(ee);A((Ie>=0?Ie:L(j.pos))+(ce.key==="ArrowDown"?1:-1))}else(ce.key==="Home"||ce.key==="End")&&(ce.preventDefault(),A(ce.key==="Home"?0:L(D).length-1))},pe.$$click=()=>{(T()&&s()!=="multiple"||e.node.on?.rowPress)&&ve()},oe(ce=>{Gs(ce,()=>n.atWith("row",X,{striped:a()&&ie()},de()&&"selected")),L(T)&&ee===X&&(ee=null,queueMicrotask(()=>ce.focus()))},pe),pe.addEventListener("focus",ce=>{T()&&ce.target===ce.currentTarget&&X!==M()&&P(X)}),V(pe,"data-key",X),$(pe,x(J,{get when(){return s()==="multiple"},get children(){var ce=mT();return $(ce,x(ad,{get attrs(){return n.at("checkbox",X,de()&&"checked")},get class(){return`${n("checkbox").class} xui-Checkbox-box`},get checked(){return de()},get label(){return t.t("selectRow")},stop:!0,onChange:Te=>{const Ie=L(p);y(Te?[...Ie,X]:Ie.filter(_e=>_e!==X))}})),ce}}),null),$(pe,x(ft,{get each(){return r()},children:(ce,Te)=>{const Ie=N(()=>ce().type);return(()=>{var _e=sd();return oe(ze=>Gs(ze,()=>n.atWith("cell",`${X}.${Te}`,{align:ce().align??"start"})),_e),$(_e,()=>Ie()!=="slot"?R(ce(),ae()):L(()=>{const ze=N(()=>ce().slot?e.node.slots?.[ce().slot]:void 0);return x(J,{get when(){return ze()},get children(){return x(ET,{get rowsPath(){return l()},get row(){return Z(()=>!!l())()?ae():B()[X]??ae()},rowKey:X,get index(){return ne()},get tableId(){return e.domId},get node(){return ze()},onLiteralEdit:E})}})})),te(ze=>{var en=T()?"gridcell":"cell",yt=ce().type??"text";return en!==ze.e&&V(_e,"role",ze.e=en),yt!==ze.t&&V(_e,"data-type",ze.t=yt),ze},{e:void 0,t:void 0}),_e})()}}),null),te(ce=>{var Te=j.pos()+2,Ie=s()!=="none"?de():void 0,_e=T()?X===O()?0:-1:void 0,ze=ge({gridTemplateColumns:v()});return Te!==ce.e&&V(pe,"aria-rowindex",ce.e=Te),Ie!==ce.t&&V(pe,"aria-selected",ce.t=Ie),_e!==ce.a&&V(pe,"tabindex",ce.a=_e),ce.o=Ee(pe,ze,ce.o),ce},{e:void 0,t:void 0,a:void 0,o:void 0}),pe})()},W=()=>U(e.props.caption);return(()=>{var j=xT(),X=j.firstChild,ne=X.firstChild,ae=X.nextSibling;I(j,S(()=>e.rootProps,{get role(){return T()?"grid":"table"},get"aria-rowcount"(){return o().length+1},get"aria-multiselectable"(){return s()==="multiple"||void 0},get"aria-describedby"(){return Z(()=>!!W())()?`${e.domId}.caption`:void 0},get"aria-label"(){return Z(()=>!!W())()?void 0:e.rootProps["aria-label"]??t.t("table")},get"data-windowed"(){return C()?"true":void 0}}),!1,!0),I(X,S(()=>n("header"),{get"data-sticky"(){return re(e.props.stickyHeader)?"true":void 0}}),!1,!0),$(ne,x(J,{get when(){return s()==="multiple"},get children(){var ie=bT();return $(ie,x(ad,{get attrs(){return n.at("checkbox","header",w()&&"checked")},get class(){return`${n("checkbox").class} xui-Checkbox-box`},get checked(){return Z(()=>!!w())()?!0:_()?"indeterminate":!1},get label(){return t.t("selectAll")},onChange:ve=>y(ve?L(k):[])})),ie}}),null),$(ne,x(ft,{get each(){return r()},children:(ie,ve)=>{const pe=()=>{const Te=d();return Te?.key===ie().key?Te.direction:null},ce=()=>pe()==="asc"?"ascending":pe()==="desc"?"descending":ie().sortable?"none":void 0;return(()=>{var Te=wT();return I(Te,S({get"aria-sort"(){return ce()}},()=>n.atWith("headerCell",ve,{align:ie().align??"start"})),!1,!0),$(Te,x(J,{get when(){return ie().sortable},get fallback(){return(()=>{var Ie=kT();return $(Ie,()=>U(ie().label)),Ie})()},get children(){var Ie=$T(),_e=Ie.firstChild,ze=_e.nextSibling;return Ie.$$click=()=>g(L(ie)),$(_e,()=>U(ie().label)),I(ze,S(()=>n("sortIcon"),{get"data-direction"(){return pe()??void 0},"aria-hidden":"true"}),!1,!0),$(ze,(()=>{var en=Z(()=>!!pe());return()=>en()?x(we,{get slot(){return`Table.sortIcon.${pe()}`}}):null})()),te(()=>V(Ie,"aria-label",$r(t,pe()==="asc"?"sortByDescending":"sortByAscending",{name:U(ie().label)},()=>`${U(ie().label)}: ${t.t(pe()==="asc"?"sortDescending":"sortAscending")}`))),Ie}})),Te})()}}),null);var de=z;return typeof de=="function"?oe(de,ae):z=ae,I(ae,S(()=>n("body"),{get class(){return`${n("body").class} xui-table-body`}}),!1,!0),$(ae,x(J,{get when(){return o().length>0},get fallback(){return(()=>{var ie=ST(),ve=ie.firstChild;return I(ve,S(()=>n("empty")),!1,!0),$(ve,()=>U(e.props.emptyText)||t.t("noResults")),ie})()},get children(){return x(J,{get when(){return C()},get fallback(){return x(xe,{get each(){return D()},children:ie=>x(H,{rowKey:ie,get pos(){return N(ve=>{const pe=D().indexOf(ie);return pe>=0?pe:ve})}})})},get children(){return x(Ap,{ref:ie=>K=ie,get count(){return m().length},itemKey:ie=>b(m()[ie]),get estimatedItemHeight(){return ue(t.theme.tokens.control?.row,40)},overscan:8,renderItem:ie=>x(H,{get rowKey(){return L(()=>b(m()[ie()]))},pos:ie})})}})}})),$(j,x(J,{get when(){return W()},get children(){var ie=sd();return I(ie,S(()=>n("caption"),{get id(){return`${e.domId}.caption`}}),!1,!0),$(ie,W),ie}}),null),$(j,x(J,{get when(){return Z(()=>s()==="multiple")()&&p().length},get children(){var ie=vT();return $(ie,()=>t.t("selectedCount",{count:p().length})),ie}}),null),te(ie=>Ee(ne,ge({gridTemplateColumns:v()}),ie)),j})()}function ET(e){const t=se(),n=Qr(),r=()=>`${Vo}/${e.tableId.replace(/[~/]/g,"_")}/${e.index}`,o=N(()=>e.rowsPath?null:Tn(t.data,r(),e.row)),i=Ma(t,{data:()=>o()??t.data,setData:()=>e.rowsPath?t.setData:(s,a)=>{const l=L(r);if(s===l||s.startsWith(`${l}/`)){const c=L(o);e.onLiteralEdit(e.rowKey,Xr(c,l)??L(()=>e.row),s.slice(l.length),a)}else t.setData(s,a)}});return x(Zr.Provider,{value:i,get children(){return x(xi.Provider,{value:()=>e.rowsPath?`${e.rowsPath}/${e.index}`:r(),get children(){return x($i.Provider,{value:()=>`${n()}.${e.rowKey}`,get children(){return x(Dt,{get node(){return e.node}})}})}})}})}const _T={Table:IT};_t(["click","keydown"]);const MT={Box:lk,List:dk,Unknown:fk,Text:Uk,Markdown:qk,Icon:Vk,Form:tk,...n2,...A2,...cC,...xC,...IC,...jC,...JC,...w3,...N3,...Q3,...zA,...qA,...ZA,...rA,...dT,..._T},gs=Object.fromEntries(hk.map(e=>[e,MT[e]??mk]));var DT=F("<div><div class=xui-measured>"),PT=F("<div data-xui-error>");const OT=new Set(["Box","List"]),ld=new WeakMap;function FT(e,t){let n=ld.get(t);n||(n=new Map,ld.set(t,n));let r=n.get(e);if(!r){const o=er(t).components[e];r=o?Object.entries(o.props).filter(([,i])=>i.responsive).map(([i])=>i):[],n.set(e,r)}return r}function zT(e){return e.styleId??e.id}function RT(e,t,n=()=>e().id,r,o){const i=se(),s=Da();return N(()=>{const a=e(),l=xp(i.extensions),c=["xui-el",yi(zT(a)),i.compiled.scope,An(a.component,"root")],d={};if(a.recipe){c.push(An(a.recipe.macro,a.recipe.part)),d["data-xui-part"]=`${a.recipe.macro}/${a.recipe.part}`;const h=Xu(a.recipe.macro,l);for(const[f,b]of Object.entries(r?.()??a.recipe.props))b!=null&&typeof b!="object"&&(d[Pr(h,f)]=String(b))}for(const[h,f]of Object.entries(ln(a.component,t(),i.extensionDefs)))typeof f!="object"&&(d[Pr(!1,h)]=String(f));i.states.length&&(d["data-xs"]=i.states.join(" ")),a.accessibility&&Object.assign(d,$x(xx(a.accessibility,wi(i,s()))));const u=o?.();u&&(d.style=u);const p=Ff(a,i);return p&&(d.dir=p),{class:c.join(" "),"data-xui-id":n(),"data-xui-c":a.component,...d}})}function ms(e,...t){const n=t.filter(Boolean).join(" ");return n?{...e,class:`${e.class} ${n}`}:e}function mt(e,t){const n=e.style,r=ge(t);return n?r?{...n,...r}:n:r}function NT(e,t,n,r,o,i,s){const a=t.on?.[o];if(!a)return;const l=wi(e,r),c=s?{...l,data:fm(e.data,t.props,s,r?{base:r}:{})}:l,d=a.functionCall,u=d?At(d.args??{},c)??{}:void 0,p=a.event?At(a.event.context??{},c)??{}:void 0;let h;if(d&&u)if(d.call==="set")typeof u.path=="string"&&e.setData(ar(u.path,r),u.value);else{const f=e.functions[d.call];f?f(u,c):h=e.host.onFunctionCall?.({surfaceId:e.surfaceId,componentId:n,name:d.call,args:u})}if(h instanceof Promise){const f=a.event?cd(e,a.event,n,o,p,i):void 0;return Promise.all([h,f]).then(()=>{})}if(a.event)return cd(e,a.event,n,o,p,i)}function cd(e,t,n,r,o,i){const s={surfaceId:e.surfaceId,event:r,name:t.name,componentId:n,context:{...o??{},...i??{}},payload:i,timestamp:new Date().toISOString()};return e.host.onAction?.(s)??void 0}function LT(e,t,n=()=>e().id){const r=se();return(o,i,s)=>L(()=>NT(r,e(),n(),t(),o,i,s))}function Ff(e,t){if(!e.style)return;let n;return wx(e.style,t?.theme,r=>(n??=t?.xq?t.xq.split(" "):[]).includes(Go(r)))}function Dt(e){const t=se(),n=Da(),r=N(()=>e.node.visible===void 0||vx(e.node.visible,wi(t,n()))),o=N(()=>Ff(e.node,t)),i=N(()=>{const s=o();return s&&s!==t.direction?s:void 0});return x(J,{get when(){return r()},get children(){return x(J,{get when(){return i()},get fallback(){return x(dd,{get node(){return e.node}})},get children(){return x(Zr.Provider,{get value(){return Ma(t,{direction:()=>i()??t.direction})},get children(){return x(dd,{get node(){return e.node}})}})}})}})}function jT(e){const t=se(),n=N(()=>new Map(e.nodes.map(o=>[o.id,o]))),r=N(()=>e.nodes.map(o=>o.id),void 0,{equals:zf});return x(xe,{get each(){return r()},children:o=>{const i=t.nodeCell?.(o),s=i&&L(i)===L(n).get(o)?i:void 0,a=N(l=>(s?s():n().get(o))??l);return x(Dt,{get node(){return a()}})}})}function Jn(e){return N(t=>e()||t)}const zf=(e,t)=>e.length===t.length&&e.every((n,r)=>n===t[r]);function dd(e){const t=se(),n=Da(),r=Qr(),o=()=>e.node,i=N(()=>`${e.node.id}${r()}`),s=N(()=>wi(t,n())),a=N(()=>{const w=e.node,_=bx(w.component,w.props,s(),t.extensionDefs);for(const T of FT(w.component,t.extensionDefs)){const C=_[T];gi(C)&&(_[T]=tu(C,t.breakpoint))}return _}),l=N(()=>e.node.recipe?At(e.node.recipe.props,s()):void 0),c=N(()=>{const w=Ju(e.node.style);if(w.length===0)return;const _={};for(const T of w){const C=So(T.key,At(T.value,s()),t.theme.fonts);_[T.name]=C??"initial"}return _}),d=RT(o,a,i,l,c),u=LT(o,n,i),p=N(()=>e.node.component),h=N(()=>C$(t.extensions,p())),f=N(()=>h()??gs[p()]??gs[Ar]),b=N(()=>p()===Ar||!gs[p()]&&!h());fe(()=>{if(b()){const w=e.node;L(()=>t.host.onUnknown?.(w))}});const m=N(()=>t.measure&&!OT.has(p())?t.measure(e.node):null),v=Jn(m),g={get node(){return e.node},get props(){return a()},get theme(){return t.theme},get mode(){return t.mode},get tokens(){return t.theme.tokens},get children(){return[x(jT,{get nodes(){return e.node.children}}),x(J,{get when(){return e.node.template},get children(){return x(GT,{get node(){return e.node},get scope(){return n()}})}})]},get slots(){const w={};for(const _ of Object.keys(e.node.slots??{}))Object.defineProperty(w,_,{enumerable:!0,get:()=>x(BT,{get node(){return e.node},name:_})});return w},emit:u,get rootProps(){return d()},get scope(){return n()},get domId(){return i()}},y=()=>x(Dn,S({get component(){return f()}},g)),k=N(()=>!(HT.has(p())&&!h()));return x(J,{get when(){return m()},get fallback(){return x(J,{get when(){return k()},get fallback(){return y()},get children(){return x(UT,{get node(){return e.node},get domId(){return i()},get children(){return y()}})}})},get children(){var w=DT(),_=w.firstChild;return te(T=>{var C=`xui-el ${yi(e.node.id)} xui-leaf`,M=i(),P=e.node.component,D=ge({width:v().w,height:v().h});return C!==T.e&&an(w,T.e=C),M!==T.t&&V(w,"data-xui-id",T.t=M),P!==T.a&&V(w,"data-xui-c",T.a=P),T.o=Ee(_,D,T.o),T},{e:void 0,t:void 0,a:void 0,o:void 0}),w}})}function BT(e){const t=N(n=>e.node.slots?.[e.name]??n);return x(J,{get when(){return t()},get children(){return x(Dt,{get node(){return t()}})}})}function WT(e){try{return`${e.component}\0${JSON.stringify(e.props)}`}catch{return e.component}}const HT=new Set(["Box","Text"]);function UT(e){const t=se();let n;fe(De(()=>e.node,()=>{const i=n;n=void 0,i?.()},{defer:!0}));let r=L(()=>e.domId);Xt(()=>r=e.domId),le(()=>t.paintFailures?.delete(r));const o=i=>{const s=L(()=>e.node),a=L(()=>e.domId),l=t.paintFailures,c=WT(s);if(l?.get(a)===c)return;l?.set(a,c);const d=`${s.component} failed to paint: ${i instanceof Error?i.message:String(i)}`,u=t.host.onPaintError;if(u)try{u({surfaceId:t.surfaceId,componentId:s.id,message:d})}catch(p){console.error("[exponential-ui] onPaintError threw",p)}else console.error(`[exponential-ui] ${s.component} "${s.id}" failed to paint`,i)};return x(eh,{fallback:(i,s)=>(n=s,o(i),(()=>{var a=PT();return te(l=>{var c=`xui-el ${yi(e.node.id)}`,d=e.domId,u=e.node.component;return c!==l.e&&an(a,l.e=c),d!==l.t&&V(a,"data-xui-id",l.t=d),u!==l.a&&V(a,"data-xui-c",l.a=u),l},{e:void 0,t:void 0,a:void 0}),a})()),get children(){return[x(qT,{get domId(){return e.domId}}),Z(()=>e.children)]}})}function qT(e){const t=se();return je(()=>t.paintFailures?.delete(e.domId)),null}function Rf(e,t,n){const r=t.template;if(!r)return null;const o=ar(r.path,n),i=Xr(e.data,o),s=e.templateNode(r.component);if(!Array.isArray(i)||!s)return null;const a=cu(i,r.key),l=e.templateBudget?.allowed.get(du(t.id,n))??i.length;return{items:i.slice(0,l).map((d,u)=>({key:a[u],path:`${o}/${u}`,index:u})),tpl:s}}const VT=(e,t)=>`${e}.${ly(t)}`;function Nf(e){const t=Qr();return x(xi.Provider,{value:()=>e.item.path,get children(){return x($i.Provider,{value:()=>VT(t(),e.item.key),get children(){return x(Dt,{get node(){return e.tpl}})}})}})}function KT(e){const t=N(()=>new Map(e.items.map(r=>[r.key,r]))),n=N(()=>e.items.map(r=>r.key),void 0,{equals:zf});return x(xe,{get each(){return n()},children:r=>{const o=N(i=>t().get(r)??i);return x(Nf,{get tpl(){return e.tpl},get item(){return o()}})}})}function GT(e){const t=se(),n=N(()=>Rf(t,e.node,e.scope)),r=Jn(n);return x(J,{get when(){return n()},get children(){return x(KT,{get items(){return r().items},get tpl(){return r().tpl}})}})}var YT=F("<div class=xui-container><div class=xui-layer data-xui-layer=overlay></div><div class=xui-toast-layer data-xui-layer=toast>"),XT=F("<div><style data-xui-style=theme> </style><div class=xui-sr-only aria-live=polite aria-atomic=true data-xui-live=polite></div><div class=xui-sr-only aria-live=assertive aria-atomic=true data-xui-live=assertive>"),ZT=F("<style data-xui-style=nodes> ");const ud=new Map;function QT(e){if(!e)return{theme:Gn(qo),issues:[]};if(typeof e=="string")return Kl(e);if("chain"in e&&Array.isArray(e.chain))return{theme:e,issues:[]};let t;try{t=JSON.stringify(e)}catch{return{theme:Gn(qo),issues:[{path:"theme",message:"expected a theme object {id, name, modes, tokens, recipes}"}]}}let n=ud.get(t);return n||(n=Kl(e),ud.set(t,n)),n}const pd=new WeakMap;function JT(e,t,n){if(t==="default"&&!n)return e;let r=pd.get(e);r||(r=new Map,pd.set(e,r));const o=`${t}/${n}`;let i=r.get(o);return i||(i=ib(e,t),n&&(i=sb(i)),r.set(o,i)),i}const fd=[],eI={},tI={};function nI(e,t){const n=Sg(e.width,t.breakpoints),r=t.viewportHeight??e.height,o={width:e.width,height:r,hover:t.hover,reducedMotion:t.reducedMotion},i=t.queries.filter(s=>{const a=ua(s);return a?kg(a,o):!1}).map(Go).join(" ");return{breakpoint:n,xq:i}}const hd='input:not([disabled]),textarea:not([disabled]),select:not([disabled]),button:not([disabled]),a[href],[tabindex]:not([tabindex="-1"]),[contenteditable="true"]',rI=()=>{try{return Intl.DateTimeFormat().resolvedOptions().timeZone||"UTC"}catch{return"UTC"}},oI=(()=>{try{return!1}catch{return!1}})(),gd=new Set;function iI(e,t,n){const r=o=>{const i=o.template?.component;if(typeof i=="string"&&!n[i]){const s=`${e}\0${i}`;gd.has(s)||(gd.add(s),console.warn(`[exponential-ui] surface "${e}": "${o.id}" templates "${i}", which is not in \`templates\` (pass the reducer's \`templates\` with \`root\`); it renders no items.`))}for(const s of o.children)r(s);for(const s of Object.values(o.slots??{}))r(s)};r(t);for(const o of Object.values(n))r(o)}const sI=e=>typeof e=="object"&&e!==null&&!Array.isArray(e);function ra(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||typeof t!="object"||e===null||t===null)return!1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let o=0;o<e.length;o++)if(!ra(e[o],t[o]))return!1;return!0}if(!sI(t)||Array.isArray(t))return!1;const n=Object.getPrototypeOf(e);if(n!==Object.prototype&&n!==null)return!1;const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(const o of r)if(!Object.prototype.hasOwnProperty.call(t,o)||!ra(e[o],t[o]))return!1;return!0}function ci(e){if(Array.isArray(e))return e.some(ci);if(typeof e!="object"||e===null)return!1;const t=e;if(t.call==="formatRelativeTime"&&(typeof t.args!="object"||t.args===null||t.args.now===void 0))return!0;if(t.component==="Table"){const n=t.props?.columns;if(Array.isArray(n)?n.some(r=>r?.type==="relativeTime"):typeof n=="object"&&n!==null)return!0}return Object.values(t).some(ci)}function aI(e){const t=S({mode:"system",density:"default",contrast:"system",locale:uu},e),n=Ae(),r=N(()=>t.id??t.surface?.surfaceId??n.replace(/[^a-zA-Z0-9]/g,"")),o=fo("(prefers-color-scheme: dark)"),i=fo("(prefers-contrast: more)"),s=fo("(prefers-reduced-motion: reduce)"),a=fo("(hover: hover)",!0),l=N(()=>t.mode==="system"?ob("system",o()):t.mode),c=N(()=>QT(t.theme));fe(()=>{const Q=c(),he=t.host?.onThemeIssues;Q.issues.length>0&&L(()=>he?.(Q.issues))});const d=N(()=>JT(c().theme,t.density,t.contrast==="high"||t.contrast==="system"&&i())),u=N(()=>[...S$(),...t.extensions??fd]),p=N(()=>vp(u())),h=N(()=>xp(u())),f=N(()=>cx(d(),{extensionMacros:h()})),b=N(()=>t.direction??Ty(t.locale)),m=N(()=>_g(t.strings??{})),v=(Q,he)=>zd(m()[Q]??Q,he??{}),[g,y]=Y(L(()=>t.data)??{});let k=L(()=>t.data);fe(De(()=>t.data,Q=>{Q!==k&&!ra(Q,k)&&(k=Q,y(Q??{}))},{defer:!0}));const w=()=>t.surface?t.surface.data:g(),_=(Q,he)=>{t.surface?t.surface.setData(Q,he):y(ye=>Tn(ye,Q,he))},T=N(Q=>Xo(Q,t.surface?t.surface.root:t.root??null)),C=Jn(T),M=N(Q=>Xo(Q,(t.surface?t.surface.templates:t.templates)??eI)),P=Q=>M()[Q],D=N(()=>Object.values(M()));let O=new Map;const z=new Map;Xt(()=>{const Q=new Map,he=T();for(const ye of he?[he,...D()]:D())for(const be of Ko(ye))Q.has(be.id)||Q.set(be.id,be);O=Q;for(const[ye,be]of z){const Ve=Q.get(ye);Ve===void 0?z.delete(ye):be.set(Ve)}});const K=Q=>{let he=z.get(Q);if(!he){const ye=O.get(Q);if(ye===void 0)return;const[be,Ve]=Y(ye);he={get:be,set:He=>Ve(()=>He)},z.set(Q,he)}return he.get},ee=N(()=>{const Q=T();return Q?cy(Q,w(),P):void 0});fe(De(()=>[r(),ee()?.issue?.id,ee()?.issue?.message],([Q,he,ye])=>{he&&console.warn(`[exponential-ui] ${Q}: ${he}: ${ye}`)})),fe(()=>{const Q=T();oI&&Q&&iI(r(),Q,M())});const q=N(()=>{const Q=T();return Q?Sx([Q,...D()],r(),d()):{css:"",queries:[],chunks:new Map}}),A=N(Q=>Cx(Q??[],q().chunks)),B=N(()=>A().length?A():[{chunks:new Map,css:q().css}]),[G,E]=Y(null),[R,H]=Y(null);let W;const[j,X]=Y({width:typeof L(()=>t.width)=="number"?L(()=>t.width):0,height:void 0,measured:!1}),ne=N(()=>nI(j(),{breakpoints:d().tokens.breakpoint??{},queries:q().queries,viewportHeight:t.viewportHeight,hover:a(),reducedMotion:s()}),void 0,{equals:(Q,he)=>Q.breakpoint===he.breakpoint&&Q.xq===he.xq}),ae=()=>ne().breakpoint,de=()=>ne().xq;je(()=>{const Q=W;if(!Q)return;const he=be=>{const Ve=up(Q,be?.find(et=>et.target===Q));if(!L(j).measured&&Ve.width===0&&Ve.height===0)return;const He=Q.style.height!==""&&Q.style.height!=="auto";X({width:Ve.width,height:He?Ve.height:void 0,measured:!0})};if(he(),typeof ResizeObserver>"u")return;const ye=new ResizeObserver(be=>he(be));ye.observe(Q),le(()=>ye.disconnect())});let ie,ve;const pe=(Q,he="polite")=>{const ye=he==="assertive"?ve:ie;ye&&(ye.textContent="",setTimeout(()=>{ye.textContent=Q},30))},ce=N(()=>({...Qu,...t.host?.functions??{}})),Te=N(()=>Zu(Wd(t.locale,t.timeZone??rI()))),Ie=N(()=>ci(T())||ci(D())),[_e,ze]=Y(Date.now());fe(()=>{if(!Ie())return;const Q=setInterval(()=>ze(Date.now()),6e4);le(()=>clearInterval(Q))});const en=N(()=>(_e(),()=>Date.now())),yt=new Map,dr=(Q,he)=>(yt.set(Q,he),()=>{yt.get(Q)===he&&yt.delete(Q)}),ur=new Map,hn=N(()=>t.host??tI),to={get surfaceId(){return r()},get compiled(){return f()},get theme(){return d()},get mode(){return l()},get host(){return hn()},get extensions(){return u()},get extensionDefs(){return p()},get data(){return w()},setData:_,templateNode:P,nodeCell:K,get templateBudget(){return ee()},get states(){return t.states??fd},get measure(){return t.measure},get portal(){return G()},get toastLayer(){return R()},get direction(){return b()},get functions(){return ce()},openUrl:Q=>Nx(L(hn),Q),get locale(){return t.locale},get formatter(){return Te()},get now(){return en()},registerScroller:dr,paintFailures:ur,get strings(){return m()},t:v,get breakpoint(){return ae()},get xq(){return de()},get reducedMotion(){return s()},get hover(){return a()},announce:pe},On=Q=>W?.querySelector(`[data-xui-id="${typeof CSS<"u"&&CSS.escape?CSS.escape(Q):Q.replace(/"/g,'\\"')}"]`)??null,pr=Q=>{const he=On(Q);return he?(((he.matches(hd)?he:he.querySelector(hd))??he).focus(),!0):!1},Se=Q=>{const he=On(Q);return he?(he.scrollIntoView({block:"nearest",behavior:L(s)?"auto":"smooth"}),!0):!1},Ne=(Q,he,ye)=>{const be=yt.get(Q);return be?(be(he,ye),!0):!1},Pe={focus:pr,scrollIntoView:Se,scrollToIndex:Ne,announce:pe,run:Q=>{"focus"in Q?pr(Q.focus.id):"announce"in Q?pe(Q.announce.text,Q.announce.live):"scrollIntoView"in Q?Se(Q.scrollIntoView.id):"scrollToIndex"in Q&&Ne(Q.scrollToIndex.id,Q.scrollToIndex.index,Q.scrollToIndex.align)}};L(()=>t.handleRef?.(Pe));const Xe=N(()=>{const Q=d().tokens.breakpoint?.md??768,he=`.${Hs(r())}`;return`@layer xui-base{@container xui (width >= ${Q}px){${he} .xui-toast-layer{left:auto;right:var(--xui-spacing-lg);transform:none;align-items:flex-end}${he}[dir="rtl"] .xui-toast-layer{right:auto;left:var(--xui-spacing-lg)}}}`}),We=()=>t.width===void 0?t.style:{width:kp(t.width),...t.style??{}};return(()=>{var Q=XT(),he=Q.firstChild,ye=he.firstChild,be=he.nextSibling,Ve=be.nextSibling,He=W;typeof He=="function"?oe(He,Q):W=Q,$(Q,x(xe,{get each(){return B()},children:(ke,Ze)=>(()=>{var vt=ZT(),xt=vt.firstChild;return te(()=>xt.data=Ze()===0?`${ke.css}${Xe()}`:ke.css),vt})()}),be),$(Q,x(Zr.Provider,{value:to,get children(){var ke=YT(),Ze=ke.firstChild,vt=Ze.nextSibling;return $(ke,x(J,{get when(){return T()},get children(){return x(Dt,{get node(){return C()}})}}),Ze),$(ke,()=>t.children,Ze),oe(E,Ze),oe(H,vt),ke}}),be);var et=ie;typeof et=="function"?oe(et,be):ie=be;var bt=ve;return typeof bt=="function"?oe(bt,Ve):ve=Ve,te(ke=>{var Ze=["xui-surface",f().scope,Hs(r()),t.class].filter(Boolean).join(" "),vt=r(),xt=l(),zi=d().id,no=t.density==="default"?void 0:t.density,fr=s()?"reduce":void 0,hr=de()||void 0,gr=b(),ro=We(),al=`${zx}
498
+ ${f().css}`;return Ze!==ke.e&&an(Q,ke.e=Ze),vt!==ke.t&&V(Q,"data-xui-surface",ke.t=vt),xt!==ke.a&&V(Q,"data-xui-mode",ke.a=xt),zi!==ke.o&&V(Q,"data-xui-theme",ke.o=zi),no!==ke.i&&V(Q,"data-xui-density",ke.i=no),fr!==ke.n&&V(Q,"data-xui-motion",ke.n=fr),hr!==ke.s&&V(Q,"data-xq",ke.s=hr),gr!==ke.h&&V(Q,"dir",ke.h=gr),ke.r=Ee(Q,ro,ke.r),al!==ke.d&&(ye.data=ke.d=al),ke},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0}),Q})()}function lI(e={}){const t=e.surfaceId??"main",n=e.extensions??[],r={catalogId:e.catalogId??Cr,components:[],nested:e.initial??null,deleted:!1},o=e.data??{},[i,s]=Y(r),[a,l]=Y(o),c=u=>{if(u.createSurface){if(u.createSurface.surfaceId!==t)return;const p=u.createSurface.catalogId;s(h=>({...h,catalogId:p,components:[],nested:null,deleted:!1}))}else if(u.updateComponents){if(u.updateComponents.surfaceId!==t)return;const p=u.updateComponents.components;s(h=>{const f=new Map(h.components.map(b=>[b.id,b]));for(const b of p)f.set(b.id,b);return{...h,components:[...f.values()],nested:null,deleted:!1}})}else if(u.updateDataModel){if(u.updateDataModel.surfaceId!==t)return;const{path:p,value:h}=u.updateDataModel;l(f=>Tn(f,p??"",h))}else if(u.deleteSurface){if(u.deleteSurface.surfaceId!==t)return;s(p=>({...p,components:[],nested:null,deleted:!0}))}},d=N(()=>{const u=i();return u.deleted?{root:null,issues:[]}:u.nested?$0(u.nested,{catalogId:u.catalogId,extensions:n}):u.components.length===0?{root:null,issues:[]}:Tu(u.components,{catalogId:u.catalogId,extensions:n})});return{surfaceId:t,get catalogId(){return i().catalogId},get root(){return d().root},get issues(){return d().issues},get templates(){return d().templates},get data(){return a()},get deleted(){return i().deleted},get components(){return i().components},extensions:n,apply:c,setData:(u,p)=>l(h=>Tn(h,u,p)),setNested:u=>s(p=>({...p,nested:u,components:[],deleted:!1})),reset:()=>{s(r),l(o)}}}function cI(e,t={}){return{...t,onAction:n=>(e.action({surfaceId:n.surfaceId,componentId:n.componentId,name:n.name,context:n.context,payload:n.payload,timestamp:n.timestamp}),t.onAction?.(n)),onFunctionCall:async n=>{const r=await e.callFunction(n);return await t.onFunctionCall?.(n),r},openUrl:n=>{e.openUrl(n)},urls:e.urlPolicy(),media:e.mediaOptions(),mediaRequest:t.mediaRequest??(n=>e.mediaRequest(n)),onPaintError:n=>{e.paintError(n),t.onPaintError?.(n)}}}function dI(e){const[t,n]=Y(0);return le(e.subscribe(()=>n(r=>r+1))),t}function uI(e,t){const n=dI(e),r=N(()=>(n(),e.surface(t)??null)),[o,i]=Y(0);return fe(()=>{const s=r();s&&le(s.subscribe(()=>i(a=>a+1)))}),N(()=>{o();const s=r();return s?pI(e,s):null})}function pI(e,t){return{surfaceId:t.surfaceId,catalogId:t.catalogId,root:t.root,issues:t.issues,templates:t.templates,theme:t.theme,data:t.data,deleted:!1,components:t.components,extensions:e.extensionDefs,apply:n=>{e.receive(n)},setData:(n,r)=>t.setData(n,r),setNested:()=>{throw new Error("exponential-ui: a host surface is fed by its transport, not setNested")},reset:()=>{}}}function Ot(e,t,n,r=!1){return e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0,composed:!0,cancelable:r}))}const fI=e=>typeof e=="object"&&e!==null&&typeof e.then=="function";function ys(e){const t=e.filter(fI);if(t.length!==0)return Promise.all(t).then(()=>{})}function bs(e,t,n){const r=[],o={...n,waitUntil:i=>{r.push(Promise.resolve(i))}};return Ot(e,t,o),r}function Lf(e){return e.transport==="ws"||/^wss?:/i.test(e.src)?"ws":e.transport==="sse"?"sse":"jsonl"}function hI(e){const t=Lf(e),n=e.post||void 0;return t==="ws"?new Uv({url:e.src}):t==="sse"?new Hv({url:e.src,postUrl:n}):new Wv({url:e.src,postUrl:n})}const gI={http:"ws",https:"wss"};function mI(e){const t=(e?.schemes??Fu).filter(n=>n==="http"||n==="https");return[...t,...t.map(n=>gI[n])]}const yI=()=>typeof document<"u"&&document.baseURI?document.baseURI:void 0;function md(e,t,n){const r=t?.baseUrl??yI();let o;try{o=new URL(e.trim(),r)}catch{return{allowed:!1,reason:"invalid"}}const i=o.protocol.replace(/:$/,"").toLowerCase();if(!n.includes(i))return{allowed:!1,url:o.href,reason:"scheme"};const s=i==="ws"?`http:${o.href.slice(3)}`:i==="wss"?`https:${o.href.slice(4)}`:o.href,a=rp(),l=a.length?[...t?.allowPrivate??[],...a]:t?.allowPrivate,c=Gr({schemes:["http","https"],hosts:t?.hosts,allowPrivate:l,baseUrl:r},s);return c.allowed?{allowed:!0,url:o.href}:{allowed:!1,url:o.href,reason:c.reason}}function jf(e,t){const n=mI(t),r=md(e.src,t,n),o=e.post?md(e.post,t,n):void 0,i=r.allowed?o&&!o.allowed?["post",o]:void 0:["src",r];return i?{allowed:!1,src:r,post:o,reason:`${i[0]} denied by the URL policy (${i[1].reason})`}:{allowed:!0,src:r,post:o}}function bI(e,t=[],n){const r=jf(e,n);if(!r.allowed)throw new Error(`exponential-ui: ${r.reason}`);return new Bv({transport:hI(e),extensions:t})}const vI=e=>`${Lf(e)}\0${e.src}\0${e.post??""}`,yd="exponential-surface",di={theme:"theme",mode:"mode",density:"density",contrast:"contrast",locale:"locale","time-zone":"timeZone",direction:"direction",width:"width",height:"height","surface-id":"surfaceId",src:"src",post:"post",transport:"transport"},xI=Object.fromEntries(Object.entries(di).map(([e,t])=>[t,e])),bo=(e,t)=>typeof e=="string"&&t.includes(e)?e:void 0;function bd(e){if(e==null||e==="")return;if(typeof e=="number")return Number.isFinite(e)?e:void 0;const t=e.trim();return/^-?\d+(\.\d+)?$/.test(t)?Number(t):t}const $I=[...Object.values(di),"surface","root","templates","data","host","plugin","extensions","strings","states","measure","viewportHeight"],wI=e=>e.hasTransport&&e.status==="closed";let Wn=null;class vo extends HTMLElement{static get observedAttributes(){return Object.keys(di)}#f=Y(void 0);#h=Y(void 0);#g=Y(void 0);#m=Y(void 0);#y=Y(void 0);#b=Y(void 0);#v=Y(void 0);#x=Y(void 0);#$=Y(void 0);#F=Y(void 0);#w=Y(void 0);#k=Y(void 0);#S=Y(void 0);#n=Y(void 0);#C=Y(void 0);#A=Y(void 0);#d=Y(void 0);#o=Y(void 0);#u=Y(void 0);#p=Y(void 0);#T=Y(void 0);#I=Y(void 0);#E=Y(void 0);#_=Y(void 0);#z=Y(null);#R;#i;#s=Y(void 0);#r=Y(void 0);#a;#M=()=>null;#t=null;#D=!1;#l;#P=!1;attributeChangedCallback(t,n,r){if(this.#P)return;const o=di[t];o&&this.#N(o)[1](()=>r??void 0)}#N(t){switch(t){case"theme":return this.#f;case"mode":return this.#h;case"density":return this.#g;case"contrast":return this.#m;case"locale":return this.#y;case"timeZone":return this.#b;case"direction":return this.#v;case"width":return this.#x;case"height":return this.#$;case"surfaceId":return this.#F;case"src":return this.#w;case"post":return this.#k;case"transport":return this.#S}}#e(t,n){const r=xI[t];if(typeof n=="string"||n===null||n===void 0){this.#P=!0;try{typeof n=="string"?this.setAttribute(r,n):this.removeAttribute(r)}finally{this.#P=!1}}this.#N(t)[1](()=>n??void 0)}get theme(){return this.#f[0]()}set theme(t){this.#e("theme",t)}get mode(){return this.#h[0]()}set mode(t){this.#e("mode",t)}get density(){return this.#g[0]()}set density(t){this.#e("density",t)}get contrast(){return this.#m[0]()}set contrast(t){this.#e("contrast",t)}get locale(){return this.#y[0]()}set locale(t){this.#e("locale",t)}get timeZone(){return this.#b[0]()}set timeZone(t){this.#e("timeZone",t)}get direction(){return this.#v[0]()}set direction(t){this.#e("direction",t)}get width(){return this.#x[0]()}set width(t){this.#e("width",t)}get height(){return this.#$[0]()}set height(t){this.#e("height",t)}get surfaceId(){return this.#F[0]()||"main"}set surfaceId(t){this.#e("surfaceId",t)}get src(){return this.#w[0]()}set src(t){this.#e("src",t)}get post(){return this.#k[0]()}set post(t){this.#e("post",t)}get transport(){return this.#S[0]()}set transport(t){this.#e("transport",t)}get surface(){return this.#n[0]()}set surface(t){this.#n[1](()=>t??void 0)}get root(){return this.#C[0]()}set root(t){this.#C[1](()=>t)}get templates(){return this.#A[0]()}set templates(t){this.#A[1](()=>t??void 0)}get data(){return this.#d[0]()}set data(t){this.#d[1](()=>t??void 0)}get host(){return this.#o[0]()}set host(t){this.#o[1](()=>t??void 0)}get plugin(){return this.#u[0]()}set plugin(t){this.#u[1](()=>t??void 0)}get extensions(){return this.#p[0]()}set extensions(t){this.#p[1](()=>t??void 0)}get strings(){return this.#T[0]()}set strings(t){this.#T[1](()=>t??void 0)}get states(){return this.#I[0]()}set states(t){this.#I[1](()=>t??void 0)}get measure(){return this.#E[0]()}set measure(t){this.#E[1](()=>t??void 0)}get viewportHeight(){return this.#_[0]()}set viewportHeight(t){this.#_[1](()=>t??void 0)}get handle(){return this.#t}get issues(){return this.surfaceState?.issues??[]}get status(){return(this.#a??this.#o[0]())?.status??this.#s[0]()?.status}get statusDetail(){return(this.#a??this.#o[0]())?.statusDetail??this.#s[0]()?.detail}get surfaceState(){return L(()=>this.#n[0]()??this.#M()??this.#O())}#O(){const t=this.#z[0]();return t&&t.surfaceId===this.surfaceId?t:null}#L(){const t=this.#o[0]();if(t)return this.#c(),this.#r[1](void 0),t;const n=this.#w[0]();if(!n){this.#c(),this.#r[1](void 0);return}const r={src:n,post:this.#k[0](),transport:this.#S[0]()},o=this.#u[0]()?.urls,i=jf(r,o);if(!i.allowed){this.#c(),this.#r[1](i.reason);return}this.#r[1](void 0);const s=vI(r);return this.#i?.key!==s&&(this.#c(),this.#i={key:s,host:bI(r,vp(L(()=>this.#p[0]())??[]),o)}),this.#i.host}#c(){const t=this.#i;this.#i=void 0,t?.host.close()}apply(t){const n=L(()=>this.#n[0]());if(n)return n.apply(t);const r=L(()=>this.#L());if(r){r.receive(t);return}let o=L(()=>this.#O());if(!o){this.#R?.();const i=this.surfaceId;o=Kt(s=>(this.#R=s,lI({surfaceId:i}))),this.#z[1](()=>o)}o.apply(t)}setData(t,n){const r=this.surfaceState;r?r.setData(t,n):this.data=Tn(L(()=>this.#d[0]())??{},t,n)}reset(){this.surfaceState?.reset()}run(t){this.#t?.run(t)}focus(t){return typeof t!="string"?(super.focus(t),!0):this.#t?.focus(t)??!1}announce(t,n){this.#t?.announce(t,n)}scrollIntoView(t){return typeof t!="string"?(super.scrollIntoView(t),!0):this.#t?.scrollIntoView(t)??!1}scrollToIndex(t,n,r){return this.#t?.scrollToIndex(t,n,r)??!1}#j(t){return{...t,onAction:n=>{const r=t.onAction?.(n);return ys([r,...bs(this,"xui-action",n)])},onInput:n=>{const r=t.onInput?.(n);return ys([r,...bs(this,"xui-input",n)])},onUpload:(n,r)=>{const o=t.onUpload?.(n,r);return ys([o,...bs(this,"xui-upload",{files:n,target:r})])},onFunctionCall:n=>{const r=t.onFunctionCall?.(n);let o=!1,i;return Ot(this,"xui-function-call",{call:n,respond:s=>{o||(o=!0,i=s)}}),o?i:r},openUrl:n=>{Ot(this,"xui-open-url",{url:n},!0)&&(t.openUrl?t.openUrl(n):typeof window<"u"&&window.open(n,"_blank","noopener,noreferrer"))},onPaintError:n=>{t.onPaintError?.(n),Ot(this,"xui-paint-error",{error:n})},onThemeIssues:n=>{t.onThemeIssues?.(n),Ot(this,"xui-theme-issues",{issues:n})},onUnknown:n=>{t.onUnknown?.(n),Ot(this,"xui-unknown",{node:n})}}}#W(t,n){return{...cI(t,this.#j(n)),openUrl:o=>{Ot(this,"xui-open-url",{url:o},!0)&&(n.openUrl?n.openUrl(o):t.openUrl(o))}}}#H(){for(const t of $I){if(!Object.prototype.hasOwnProperty.call(this,t))continue;const n=this[t];delete this[t],this[t]=n}}connectedCallback(){if(this.#H(),!this.#l){if(Wn){Wn.add(this);return}Wn=new Set,queueMicrotask(()=>{const t=Wn;Wn=null,t?.size&&vs(()=>t.forEach(n=>n.#B()))}),this.#B()}}#B(){this.#l||!this.isConnected||(this.replaceChildren(),this.#D=!1,this.#l=uh(()=>this.#U(),this))}disconnectedCallback(){Wn?.delete(this);const t=this.#l;this.#l=void 0,t?.(),this.#t=null,this.#M=()=>null,this.#c(),this.#s[1](void 0)}#U(){const t=N(()=>this.#L());fe(()=>{const d=t();if(this.#a=d,!d){const f=this.#r[0](),b=f?{status:"closed",detail:f}:void 0;this.#s[1](b),b&&Ot(this,"xui-status",b);return}let u;const p=()=>{u&&u.status===d.status&&u.detail===d.statusDetail||(u={status:d.status,detail:d.statusDetail},this.#s[1](u),Ot(this,"xui-status",d.statusDetail===void 0?{status:d.status}:{status:d.status,detail:d.statusDetail}))},h=d.subscribe(p);wI(d)&&d.connect(),p(),le(()=>{h(),this.#a===d&&(this.#a=void 0)})});const n=N(()=>{const d=t();return d?uI(d,this.surfaceId):void 0}),r=N(()=>this.#n[0]()??n()?.()??this.#O());this.#M=r;const o=N(()=>{const d=this.#u[0]()??{},u=t();return u?this.#W(u,d):this.#j(d)}),i=()=>!r(),s=()=>bd(this.#$[0]()),a=d=>{this.#t=d,!this.#D&&(this.#D=!0,queueMicrotask(()=>{this.#t===d&&this.isConnected&&Ot(this,"xui-ready",{handle:d})}))},l=this,c={get surface(){return r()??void 0},get root(){return i()?l.#C[0]():void 0},get templates(){return i()?l.#A[0]():void 0},get data(){return i()?l.#d[0]():void 0},get theme(){return r()?.theme??l.#f[0]()},get mode(){return bo(l.#h[0](),["light","dark","system"])},get density(){return bo(l.#g[0](),["compact","default","comfortable"])},get contrast(){return bo(l.#m[0](),["normal","high","system"])},get locale(){return l.#y[0]()||void 0},get timeZone(){return l.#b[0]()||void 0},get direction(){return bo(l.#v[0](),["ltr","rtl"])},get width(){return bd(l.#x[0]())},get style(){const d=s();return d===void 0?void 0:{height:kp(d)}},get viewportHeight(){return l.#_[0]()},get strings(){return l.#T[0]()},get extensions(){return l.#p[0]()},get states(){return l.#I[0]()},get measure(){return l.#E[0]()},get host(){return o()},get id(){return l.surfaceId},handleRef:a};return x(J,{get when(){return!t()&&!l.#r[0]()||l.#n[0]()!==void 0||r()!==null},get children(){return x(aI,c)}})}}const kI=new Set(["size","class","color","strokeWidth","absoluteStrokeWidth","children","ref","width","height"]);function SI(e){for(const t of Array.from(e.querySelectorAll("script,foreignObject")))t.remove();for(const t of[e,...Array.from(e.querySelectorAll("*"))])for(const n of Array.from(t.attributes))(/^on/i.test(n.name)||/(^|:)href$/i.test(n.name)&&/^\s*javascript:/i.test(n.value))&&t.removeAttribute(n.name)}function CI(e){if(typeof document>"u")return null;const t=document.createElement("template");t.innerHTML=e.trim();const n=t.content.firstElementChild;return!n||n.localName!=="svg"?null:(SI(n),n)}const AI=(...e)=>e.flatMap(t=>(t??"").split(/\s+/)).filter((t,n,r)=>t!==""&&r.indexOf(t)===n).join(" ");function TI(e){let t;return(n=>{if(t===void 0&&(t=CI(e)),!t)return null;const r=t.cloneNode(!0),o=t.getAttribute("class");let i=new Set;return te(()=>{const s=new Set,a=(p,h)=>{h==null||h===!1||(r.setAttribute(p,String(h)),s.add(p))},l=n.size;a("width",n.width??l??24),a("height",n.height??l??24);const c=AI(o,n.class);c&&a("class",c),n.color!==void 0&&a("stroke",n.color),n.strokeWidth!==void 0&&a("stroke-width",n.strokeWidth);const d=Object.keys(n);d.some(p=>p.startsWith("aria-")||p==="role"||p==="title")||a("aria-hidden","true");for(const p of d){if(kI.has(p))continue;const h=n[p];(typeof h=="string"||typeof h=="number"||h===!0)&&a(p,h)}for(const p of i){if(s.has(p))continue;const h=t.getAttribute(p);h===null?r.removeAttribute(p):r.setAttribute(p,h)}i=s}),r})}function OI(e){const t=new Map;return n=>{const r=e(n);if(!r)return;let o=t.get(r);return o||(o=TI(r),t.set(r,o)),o}}function II(e,t){for(const[n,r]of Object.entries(t))if(r!=null)if(n==="class")for(const o of String(r).split(/\s+/))o&&e.classList.add(o);else if(n==="style"){const o=e.style;if(!o||typeof r!="object")continue;for(const[i,s]of Object.entries(r))s!=null&&o.setProperty(i,String(s))}else e.setAttribute(n,String(r))}const vd=e=>{const t=[],n=r=>{Array.isArray(r)?r.forEach(n):typeof r=="function"?n(r()):r instanceof Node?t.push(r):(typeof r=="string"||typeof r=="number")&&t.push(document.createTextNode(String(r)))};return n(e),t};function EI(e){return t=>{const n=oa(),r=Po(()=>t.children),o=new Map,i=a=>{let l=o.get(a);return l||(l=Sd(n,()=>Po(()=>L(()=>t.slots)[a])),o.set(a,l)),l};for(const a of Object.keys(L(()=>t.node.slots)??{}))i(a);return N(()=>{const a=t.rootProps,l={node:t.node,props:t.props,theme:t.theme,mode:t.mode,tokens:t.tokens,emit:t.emit,rootProps:a,applyRootProps:c=>II(c,a),children:()=>vd(r()),slot:c=>t.node.slots?.[c]?vd(i(c)()):[]};return e(l)})}}function FI(e){const t={};for(const[n,r]of Object.entries(e.components))t[n]=EI(r);return bp({catalog:e.catalog,components:t})}function zI(e){const t="catalog"in e&&e.catalog===null?{components:e.components}:e;return k$(t)}function _I(e=yd){if(typeof customElements>"u")return;const t=customElements.get(e);if(t){if(t===vo||t.prototype instanceof vo)return;throw new Error(`exponential-ui: <${e}> is already defined by another class (a second copy of @exponential_app/eui-element, or another library); pick another tag with define("my-surface")`)}customElements.define(e,e===yd?vo:class extends vo{}),MI(e)}function MI(e){if(typeof document>"u"||!document.head||document.head.querySelector(`style[data-xui-element="${e}"]`))return;const t=document.createElement("style");t.setAttribute("data-xui-element",e),t.textContent=`:where(${e}){display:contents}`,document.head.appendChild(t)}_I();export{vo as ExponentialSurfaceElement,yd as TAG,II as applyRootProps,bI as createHost,lI as createSurface,hI as createTransport,jf as decideTransport,_I as define,FI as defineElementExtension,bp as defineSolidExtension,OI as iconsFromSvg,MI as installHostRule,bd as lengthOf,zI as registerExtension,TI as svgIcon,Lf as transportKind,mI as transportSchemes};
499
+ //# sourceMappingURL=standalone.js.map