@a4ui/core 0.10.1 → 0.11.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.
- package/README.md +5 -5
- package/dist/commerce/ProductCard.d.ts +16 -4
- package/dist/commerce/index.d.ts +1 -1
- package/dist/commerce.js +132 -108
- package/dist/elements.css +32 -4
- package/dist/elements.iife.js +2 -2
- package/dist/elements.js +4749 -2379
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1569 -1571
- package/dist/layout/AppShell.d.ts +2 -2
- package/dist/lib/motion.d.ts +20 -5
- package/package.json +2 -3
- package/preset.js +25 -0
package/dist/elements.iife.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var A4uiElements=(function(kt){"use strict";var Jn;const N={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return ar(this.context.count)},getNextContextId(){return ar(this.context.count++)}};function ar(e){const t=String(e),r=t.length-1;return N.context.id+(r?String.fromCharCode(96+r):"")+t}function oo(e){N.context=e}const so=!1,io=(e,t)=>e===t,Ze=Symbol("solid-proxy"),lr=typeof Proxy=="function",cr=Symbol("solid-track"),Je={equals:io};let ur=mr;const de=1,Qe=2,dr={owned:null,cleanups:null,context:null,owner:null};var R=null;let St=null,ao=null,D=null,U=null,ce=null,et=0;function Se(e,t){const r=D,n=R,o=e.length===0,s=t===void 0?n:t,i=o?dr:{owned:null,cleanups:null,context:s?s.context:null,owner:s},a=o?e:()=>e(()=>K(()=>ze(i)));R=i,D=null;try{return Re(a,!0)}finally{D=r,R=n}}function B(e,t){t=t?Object.assign({},Je,t):Je;const r={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},n=o=>(typeof o=="function"&&(o=o(r.value)),gr(r,o));return[fr.bind(r),n]}function V(e,t,r){const n=At(e,t,!1,de);Me(n)}function se(e,t,r){ur=go;const n=At(e,t,!1,de);n.user=!0,ce?ce.push(n):Me(n)}function W(e,t,r){r=r?Object.assign({},Je,r):Je;const n=At(e,t,!0,0);return n.observers=null,n.observerSlots=null,n.comparator=r.equals||void 0,Me(n),fr.bind(n)}function K(e){if(D===null)return e();const t=D;D=null;try{return e()}finally{D=t}}function lo(e,t,r){const n=Array.isArray(e);let o;return s=>{let i;if(n){i=Array(e.length);for(let l=0;l<e.length;l++)i[l]=e[l]()}else i=e();const a=K(()=>t(i,o,s));return o=i,a}}function Ct(e){se(()=>K(e))}function ee(e){return R===null||(R.cleanups===null?R.cleanups=[e]:R.cleanups.push(e)),e}function pe(e,t){const r=Symbol("context");return{id:r,Provider:ho(r),defaultValue:e}}function ye(e){let t;return R&&R.context&&(t=R.context[e.id])!==void 0?t:e.defaultValue}function co(e){const t=W(e),r=W(()=>Et(t()));return r.toArray=()=>{const n=r();return Array.isArray(n)?n:n!=null?[n]:[]},r}function fr(){if(this.sources&&this.state)if(this.state===de)Me(this);else{const e=U;U=null,Re(()=>rt(this),!1),U=e}if(D){const e=this.observers;if(!e||e[e.length-1]!==D){const t=e?e.length:0;D.sources?(D.sources.push(this),D.sourceSlots.push(t)):(D.sources=[this],D.sourceSlots=[t]),e?(e.push(D),this.observerSlots.push(D.sources.length-1)):(this.observers=[D],this.observerSlots=[D.sources.length-1])}}return this.value}function gr(e,t,r){let n=e.value;return(!e.comparator||!e.comparator(n,t))&&(e.value=t,e.observers&&e.observers.length&&Re(()=>{for(let o=0;o<e.observers.length;o+=1){const s=e.observers[o],i=St&&St.running;i&&St.disposed.has(s),(i?!s.tState:!s.state)&&(s.pure?U.push(s):ce.push(s),s.observers&&hr(s)),i||(s.state=de)}if(U.length>1e6)throw U=[],new Error},!1)),t}function Me(e){if(!e.fn)return;ze(e);const t=et;uo(e,e.value,t)}function uo(e,t,r){let n;const o=R,s=D;D=R=e;try{n=e.fn(t)}catch(i){return e.pure&&(e.state=de,e.owned&&e.owned.forEach(ze),e.owned=null),e.updatedAt=r+1,br(i)}finally{D=s,R=o}(!e.updatedAt||e.updatedAt<=r)&&(e.updatedAt!=null&&"observers"in e?gr(e,n):e.value=n,e.updatedAt=r)}function At(e,t,r,n=de,o){const s={fn:e,state:n,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:R,context:R?R.context:null,pure:r};return R===null||R!==dr&&(R.owned?R.owned.push(s):R.owned=[s]),s}function tt(e){if(e.state===0)return;if(e.state===Qe)return rt(e);if(e.suspense&&K(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<et);)e.state&&t.push(e);for(let r=t.length-1;r>=0;r--)if(e=t[r],e.state===de)Me(e);else if(e.state===Qe){const n=U;U=null,Re(()=>rt(e,t[0]),!1),U=n}}function Re(e,t){if(U)return e();let r=!1;t||(U=[]),ce?r=!0:ce=[],et++;try{const n=e();return fo(r),n}catch(n){r||(ce=null),U=null,br(n)}}function fo(e){if(U&&(mr(U),U=null),e)return;const t=ce;ce=null,t.length&&Re(()=>ur(t),!1)}function mr(e){for(let t=0;t<e.length;t++)tt(e[t])}function go(e){let t,r=0;for(t=0;t<e.length;t++){const n=e[t];n.user?e[r++]=n:tt(n)}if(N.context){if(N.count){N.effects||(N.effects=[]),N.effects.push(...e.slice(0,r));return}oo()}for(N.effects&&!N.count&&(e=[...N.effects,...e],r+=N.effects.length,delete N.effects),t=0;t<r;t++)tt(e[t])}function rt(e,t){e.state=0;for(let r=0;r<e.sources.length;r+=1){const n=e.sources[r];if(n.sources){const o=n.state;o===de?n!==t&&(!n.updatedAt||n.updatedAt<et)&&tt(n):o===Qe&&rt(n,t)}}}function hr(e){for(let t=0;t<e.observers.length;t+=1){const r=e.observers[t];r.state||(r.state=Qe,r.pure?U.push(r):ce.push(r),r.observers&&hr(r))}}function ze(e){let t;if(e.sources)for(;e.sources.length;){const r=e.sources.pop(),n=e.sourceSlots.pop(),o=r.observers;if(o&&o.length){const s=o.pop(),i=r.observerSlots.pop();n<o.length&&(s.sourceSlots[i]=n,o[n]=s,r.observerSlots[n]=i)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)ze(e.tOwned[t]);delete e.tOwned}if(e.owned){for(t=e.owned.length-1;t>=0;t--)ze(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 mo(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function br(e,t=R){throw mo(e)}function Et(e){if(typeof e=="function"&&!e.length)return Et(e());if(Array.isArray(e)){const t=[];for(let r=0;r<e.length;r++){const n=Et(e[r]);if(Array.isArray(n))if(n.length<32768)t.push.apply(t,n);else for(let o=0;o<n.length;o++)t.push(n[o]);else t.push(n)}return t}return e}function ho(e,t){return function(n){let o;return V(()=>o=K(()=>(R.context={...R.context,[e]:n.value},co(()=>n.children))),void 0),o}}const $t=Symbol("fallback");function nt(e){for(let t=0;t<e.length;t++)e[t]()}function bo(e,t,r={}){let n=[],o=[],s=[],i=0,a=t.length>1?[]:null;return ee(()=>nt(s)),()=>{let l=e()||[],c=l.length,u,d;return l[cr],K(()=>{let y,v,g,w,A,C,O,I,P;if(c===0)i!==0&&(nt(s),s=[],n=[],o=[],i=0,a&&(a=[])),r.fallback&&(n=[$t],o[0]=Se(z=>(s[0]=z,r.fallback())),i=1);else if(i===0){for(o=new Array(c),d=0;d<c;d++)n[d]=l[d],o[d]=Se(f);i=c}else{for(g=new Array(c),w=new Array(c),a&&(A=new Array(c)),C=0,O=Math.min(i,c);C<O&&n[C]===l[C];C++);for(O=i-1,I=c-1;O>=C&&I>=C&&n[O]===l[I];O--,I--)g[I]=o[O],w[I]=s[O],a&&(A[I]=a[O]);for(y=new Map,v=new Array(I+1),d=I;d>=C;d--)P=l[d],u=y.get(P),v[d]=u===void 0?-1:u,y.set(P,d);for(u=C;u<=O;u++)P=n[u],d=y.get(P),d!==void 0&&d!==-1?(g[d]=o[u],w[d]=s[u],a&&(A[d]=a[u]),d=v[d],y.set(P,d)):s[u]();for(d=C;d<c;d++)d in g?(o[d]=g[d],s[d]=w[d],a&&(a[d]=A[d],a[d](d))):o[d]=Se(f);o=o.slice(0,i=c),n=l.slice(0)}return o});function f(y){if(s[d]=y,a){const[v,g]=B(d);return a[d]=g,t(l[d],v)}return t(l[d])}}}function po(e,t,r={}){let n=[],o=[],s=[],i=[],a=0,l;return ee(()=>nt(s)),()=>{const c=e()||[],u=c.length;return c[cr],K(()=>{if(u===0)return a!==0&&(nt(s),s=[],n=[],o=[],a=0,i=[]),r.fallback&&(n=[$t],o[0]=Se(f=>(s[0]=f,r.fallback())),a=1),o;for(n[0]===$t&&(s[0](),s=[],n=[],o=[],a=0),l=0;l<u;l++)l<n.length&&n[l]!==c[l]?i[l](()=>c[l]):l>=n.length&&(o[l]=Se(d));for(;l<n.length;l++)s[l]();return a=i.length=s.length=u,n=c.slice(0),o=o.slice(0,a)});function d(f){s[l]=f;const[y,v]=B(c[l]);return i[l]=v,t(y,l)}}}function m(e,t){return K(()=>e(t||{}))}function ot(){return!0}const Pt={get(e,t,r){return t===Ze?r:e.get(t)},has(e,t){return t===Ze?!0:e.has(t)},set:ot,deleteProperty:ot,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:ot,deleteProperty:ot}},ownKeys(e){return e.keys()}};function It(e){return(e=typeof e=="function"?e():e)?e:{}}function yo(){for(let e=0,t=this.length;e<t;++e){const r=this[e]();if(r!==void 0)return r}}function _(...e){let t=!1;for(let i=0;i<e.length;i++){const a=e[i];t=t||!!a&&Ze in a,e[i]=typeof a=="function"?(t=!0,W(a)):a}if(lr&&t)return new Proxy({get(i){for(let a=e.length-1;a>=0;a--){const l=It(e[a])[i];if(l!==void 0)return l}},has(i){for(let a=e.length-1;a>=0;a--)if(i in It(e[a]))return!0;return!1},keys(){const i=[];for(let a=0;a<e.length;a++)i.push(...Object.keys(It(e[a])));return[...new Set(i)]}},Pt);const r={},n=Object.create(null);for(let i=e.length-1;i>=0;i--){const a=e[i];if(!a)continue;const l=Object.getOwnPropertyNames(a);for(let c=l.length-1;c>=0;c--){const u=l[c];if(u==="__proto__"||u==="constructor")continue;const d=Object.getOwnPropertyDescriptor(a,u);if(!n[u])n[u]=d.get?{enumerable:!0,configurable:!0,get:yo.bind(r[u]=[d.get.bind(a)])}:d.value!==void 0?d:void 0;else{const f=r[u];f&&(d.get?f.push(d.get.bind(a)):d.value!==void 0&&f.push(()=>d.value))}}}const o={},s=Object.keys(n);for(let i=s.length-1;i>=0;i--){const a=s[i],l=n[a];l&&l.get?Object.defineProperty(o,a,l):o[a]=l?l.value:void 0}return o}function q(e,...t){const r=t.length;if(lr&&Ze in e){const o=r>1?t.flat():t[0],s=t.map(i=>new Proxy({get(a){return i.includes(a)?e[a]:void 0},has(a){return i.includes(a)&&a in e},keys(){return i.filter(a=>a in e)}},Pt));return s.push(new Proxy({get(i){return o.includes(i)?void 0:e[i]},has(i){return o.includes(i)?!1:i in e},keys(){return Object.keys(e).filter(i=>!o.includes(i))}},Pt)),s}const n=[];for(let o=0;o<=r;o++)n[o]={};for(const o of Object.getOwnPropertyNames(e)){let s=r;for(let l=0;l<t.length;l++)if(t[l].includes(o)){s=l;break}const i=Object.getOwnPropertyDescriptor(e,o);!i.get&&!i.set&&i.enumerable&&i.writable&&i.configurable?n[s][o]=i.value:Object.defineProperty(n[s],o,i)}return n}let vo=0;function pr(){return N.context?N.getNextContextId():`cl-${vo++}`}const wo=e=>`Stale read from <${e}>.`;function st(e){const t="fallback"in e&&{fallback:()=>e.fallback};return W(bo(()=>e.each,e.children,t||void 0))}function Tt(e){const t="fallback"in e&&{fallback:()=>e.fallback};return W(po(()=>e.each,e.children,t||void 0))}function te(e){const t=e.keyed,r=W(()=>e.when,void 0,void 0),n=t?r:W(r,void 0,{equals:(o,s)=>!o==!s});return W(()=>{const o=n();if(o){const s=e.children;return typeof s=="function"&&s.length>0?K(()=>s(t?o:()=>{if(!K(n))throw wo("Show");return r()})):s}return e.fallback},void 0,void 0)}const xo=["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"],ko=new Set(["className","value","readOnly","noValidate","formNoValidate","isMap","noModule","playsInline","adAuctionHeaders","allowFullscreen","browsingTopics","defaultChecked","defaultMuted","defaultSelected","disablePictureInPicture","disableRemotePlayback","preservesPitch","shadowRootClonable","shadowRootCustomElementRegistry","shadowRootDelegatesFocus","shadowRootSerializable","sharedStorageWritable",...xo]),So=new Set(["innerHTML","textContent","innerText","children"]),Co=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),Ao=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 Eo(e,t){const r=Ao[e];return typeof r=="object"?r[t]?r.$:void 0:r}const $o=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),Po=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"]),Io={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},Ot=e=>W(()=>e());function To(e,t,r){let n=r.length,o=t.length,s=n,i=0,a=0,l=t[o-1].nextSibling,c=null;for(;i<o||a<s;){if(t[i]===r[a]){i++,a++;continue}for(;t[o-1]===r[s-1];)o--,s--;if(o===i){const u=s<n?a?r[a-1].nextSibling:r[s-a]:l;for(;a<s;)e.insertBefore(r[a++],u)}else if(s===a)for(;i<o;)(!c||!c.has(t[i]))&&t[i].remove(),i++;else if(t[i]===r[s-1]&&r[a]===t[o-1]){const u=t[--o].nextSibling;e.insertBefore(r[a++],t[i++].nextSibling),e.insertBefore(r[--s],u),t[o]=r[s]}else{if(!c){c=new Map;let d=a;for(;d<s;)c.set(r[d],d++)}const u=c.get(t[i]);if(u!=null)if(a<u&&u<s){let d=i,f=1,y;for(;++d<o&&d<s&&!((y=c.get(t[d]))==null||y!==u+f);)f++;if(f>u-a){const v=t[i];for(;a<u;)e.insertBefore(r[a++],v)}else e.replaceChild(r[a++],t[i++])}else i++;else t[i++].remove()}}}const yr="_$DX_DELEGATE";function M(e,t,r,n){let o;const s=()=>{const a=n?document.createElementNS("http://www.w3.org/1998/Math/MathML","template"):document.createElement("template");return a.innerHTML=e,r?a.content.firstChild.firstChild:n?a.firstChild:a.content.firstChild},i=t?()=>K(()=>document.importNode(o||(o=s()),!0)):()=>(o||(o=s())).cloneNode(!0);return i.cloneNode=i,i}function vr(e,t=window.document){const r=t[yr]||(t[yr]=new Set);for(let n=0,o=e.length;n<o;n++){const s=e[n];r.has(s)||(r.add(s),t.addEventListener(s,Vo))}}function E(e,t,r){ve(e)||(r==null?e.removeAttribute(t):e.setAttribute(t,r))}function Oo(e,t,r,n){ve(e)||(n==null?e.removeAttributeNS(t,r):e.setAttributeNS(t,r,n))}function _o(e,t,r){ve(e)||(r?e.setAttribute(t,""):e.removeAttribute(t))}function fe(e,t){ve(e)||(t==null?e.removeAttribute("class"):e.className=t)}function Lo(e,t,r,n){if(n)Array.isArray(r)?(e[`$$${t}`]=r[0],e[`$$${t}Data`]=r[1]):e[`$$${t}`]=r;else if(Array.isArray(r)){const o=r[0];e.addEventListener(t,r[0]=s=>o.call(e,r[1],s))}else e.addEventListener(t,r,typeof r!="function"&&r)}function Mo(e,t,r={}){const n=Object.keys(t||{}),o=Object.keys(r);let s,i;for(s=0,i=o.length;s<i;s++){const a=o[s];!a||a==="undefined"||t[a]||(wr(e,a,!1),delete r[a])}for(s=0,i=n.length;s<i;s++){const a=n[s],l=!!t[a];!a||a==="undefined"||r[a]===l||!l||(wr(e,a,!0),r[a]=l)}return r}function Ro(e,t,r){if(!t)return r?E(e,"style"):t;const n=e.style;if(typeof t=="string")return n.cssText=t;typeof r=="string"&&(n.cssText=r=void 0),r||(r={}),t||(t={});let o,s;for(s in r)t[s]==null&&n.removeProperty(s),delete r[s];for(s in t)o=t[s],o!==r[s]&&(n.setProperty(s,o),r[s]=o);return r}function Ce(e,t,r){r!=null?e.style.setProperty(t,r):e.style.removeProperty(t)}function Ae(e,t={},r,n){const o={};return n||V(()=>o.children=Ne(e,t.children,o.children)),V(()=>typeof t.ref=="function"&&zo(t.ref,e)),V(()=>No(e,t,r,!0,o,!0)),o}function zo(e,t,r){return K(()=>e(t,r))}function T(e,t,r,n){if(r!==void 0&&!n&&(n=[]),typeof t!="function")return Ne(e,t,n,r);V(o=>Ne(e,t(),o,r),n)}function No(e,t,r,n,o={},s=!1){t||(t={});for(const i in o)if(!(i in t)){if(i==="children")continue;o[i]=xr(e,i,null,o[i],r,s,t)}for(const i in t){if(i==="children")continue;const a=t[i];o[i]=xr(e,i,a,o[i],r,s,t)}}function Do(e){let t,r;return!ve()||!(t=N.registry.get(r=Fo()))?e():(N.completed&&N.completed.add(t),N.registry.delete(r),t)}function ve(e){return!!N.context&&!0&&(!e||e.isConnected)}function jo(e){return e.toLowerCase().replace(/-([a-z])/g,(t,r)=>r.toUpperCase())}function wr(e,t,r){const n=t.trim().split(/\s+/);for(let o=0,s=n.length;o<s;o++)e.classList.toggle(n[o],r)}function xr(e,t,r,n,o,s,i){let a,l,c,u,d;if(t==="style")return Ro(e,r,n);if(t==="classList")return Mo(e,r,n);if(r===n)return n;if(t==="ref")s||r(e);else if(t.slice(0,3)==="on:"){const f=t.slice(3);n&&e.removeEventListener(f,n,typeof n!="function"&&n),r&&e.addEventListener(f,r,typeof r!="function"&&r)}else if(t.slice(0,10)==="oncapture:"){const f=t.slice(10);n&&e.removeEventListener(f,n,!0),r&&e.addEventListener(f,r,!0)}else if(t.slice(0,2)==="on"){const f=t.slice(2).toLowerCase(),y=$o.has(f);if(!y&&n){const v=Array.isArray(n)?n[0]:n;e.removeEventListener(f,v)}(y||r)&&(Lo(e,f,r,y),y&&vr([f]))}else if(t.slice(0,5)==="attr:")E(e,t.slice(5),r);else if(t.slice(0,5)==="bool:")_o(e,t.slice(5),r);else if((d=t.slice(0,5)==="prop:")||(c=So.has(t))||!o&&((u=Eo(t,e.tagName))||(l=ko.has(t)))||(a=e.nodeName.includes("-")||"is"in i)){if(d)t=t.slice(5),l=!0;else if(ve(e))return r;t==="class"||t==="className"?fe(e,r):a&&!l&&!c?e[jo(t)]=r:e[u||t]=r}else{const f=o&&t.indexOf(":")>-1&&Io[t.split(":")[0]];f?Oo(e,f,t,r):E(e,Co[t]||t,r)}return r}function Vo(e){let t=e.target;const r=`$$${e.type}`,n=e.target,o=e.currentTarget,s=l=>Object.defineProperty(e,"target",{configurable:!0,value:l}),i=()=>{const l=t[r];if(l&&!t.disabled){const c=t[`${r}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)&&s(t.host),!0},a=()=>{for(;i()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return t||document}}),e.composedPath){const l=e.composedPath();s(l[0]);for(let c=0;c<l.length-2&&(t=l[c],!!i());c++){if(t._$host){t=t._$host,a();break}if(t.parentNode===o)break}}else a();s(n)}function Ne(e,t,r,n,o){const s=ve(e);if(s){!r&&(r=[...e.childNodes]);let l=[];for(let c=0;c<r.length;c++){const u=r[c];u.nodeType===8&&u.data.slice(0,2)==="!$"?u.remove():l.push(u)}r=l}for(;typeof r=="function";)r=r();if(t===r)return r;const i=typeof t,a=n!==void 0;if(e=a&&r[0]&&r[0].parentNode||e,i==="string"||i==="number"){if(s||i==="number"&&(t=t.toString(),t===r))return r;if(a){let l=r[0];l&&l.nodeType===3?l.data!==t&&(l.data=t):l=document.createTextNode(t),r=Ee(e,r,n,l)}else r!==""&&typeof r=="string"?r=e.firstChild.data=t:r=e.textContent=t}else if(t==null||i==="boolean"){if(s)return r;r=Ee(e,r,n)}else{if(i==="function")return V(()=>{let l=t();for(;typeof l=="function";)l=l();r=Ne(e,l,r,n)}),()=>r;if(Array.isArray(t)){const l=[],c=r&&Array.isArray(r);if(_t(l,t,r,o))return V(()=>r=Ne(e,l,r,n,!0)),()=>r;if(s){if(!l.length)return r;if(n===void 0)return r=[...e.childNodes];let u=l[0];if(u.parentNode!==e)return r;const d=[u];for(;(u=u.nextSibling)!==n;)d.push(u);return r=d}if(l.length===0){if(r=Ee(e,r,n),a)return r}else c?r.length===0?kr(e,l,n):To(e,r,l):(r&&Ee(e),kr(e,l));r=l}else if(t.nodeType){if(s&&t.parentNode)return r=a?[t]:t;if(Array.isArray(r)){if(a)return r=Ee(e,r,n,t);Ee(e,r,null,t)}else r==null||r===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);r=t}}return r}function _t(e,t,r,n){let o=!1;for(let s=0,i=t.length;s<i;s++){let a=t[s],l=r&&r[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=_t(e,a,l)||o;else if(c==="function")if(n){for(;typeof a=="function";)a=a();o=_t(e,Array.isArray(a)?a:[a],Array.isArray(l)?l:[l])||o}else e.push(a),o=!0;else{const u=String(a);l&&l.nodeType===3&&l.data===u?e.push(l):e.push(document.createTextNode(u))}}return o}function kr(e,t,r=null){for(let n=0,o=t.length;n<o;n++)e.insertBefore(t[n],r)}function Ee(e,t,r,n){if(r===void 0)return e.textContent="";const o=n||document.createTextNode("");if(t.length){let s=!1;for(let i=t.length-1;i>=0;i--){const a=t[i];if(o!==a){const l=a.parentNode===e;!s&&!i?l?e.replaceChild(o,a):e.insertBefore(o,r):l&&a.remove()}else s=!0}}else e.insertBefore(o,r);return[o]}function Fo(){return N.getNextContextId()}const Go="http://www.w3.org/2000/svg";function Uo(e,t=!1,r=void 0){return t?document.createElementNS(Go,e):document.createElement(e,{is:r})}function Bo(e,t){const r=W(e);return W(()=>{const n=r();switch(typeof n){case"function":return K(()=>n(t));case"string":const o=Po.has(n),s=N.context?Do():Uo(n,o,K(()=>t.is));return Ae(s,t,o),s}})}function it(e){const[,t]=q(e,["component"]);return Bo(()=>e.component,t)}function Wo(e){return Object.keys(e).reduce((r,n)=>{const o=e[n];return r[n]=Object.assign({},o),Ar(o.value)&&!Xo(o.value)&&!Array.isArray(o.value)&&(r[n].value=Object.assign({},o.value)),Array.isArray(o.value)&&(r[n].value=o.value.slice(0)),r},{})}function Ko(e){return e?Object.keys(e).reduce((r,n)=>{const o=e[n];return r[n]=Ar(o)&&"value"in o?o:{value:o},r[n].attribute||(r[n].attribute=Ho(n)),r[n].parse="parse"in r[n]?r[n].parse:typeof r[n].value!="string",r},{}):{}}function qo(e){return Object.keys(e).reduce((r,n)=>(r[n]=e[n].value,r),{})}function Yo(e,t){const r=Wo(t);return Object.keys(t).forEach(o=>{const s=r[o],i=e.getAttribute(s.attribute),a=e[o];i!=null&&(s.value=s.parse?Sr(i):i),a!=null&&(s.value=Array.isArray(a)?a.slice(0):a),s.reflect&&Cr(e,s.attribute,s.value,!!s.parse),Object.defineProperty(e,o,{get(){return s.value},set(l){const c=s.value;s.value=l,s.reflect&&Cr(this,s.attribute,s.value,!!s.parse);for(let u=0,d=this.__propertyChangedCallbacks.length;u<d;u++)this.__propertyChangedCallbacks[u](o,l,c)},enumerable:!0,configurable:!0})}),r}function Sr(e){if(e)try{return JSON.parse(e)}catch{return e}}function Cr(e,t,r,n){if(r==null||r===!1)return e.removeAttribute(t);let o=n?JSON.stringify(r):r;e.__updating[t]=!0,o==="true"&&(o=""),e.setAttribute(t,o),Promise.resolve().then(()=>delete e.__updating[t])}function Ho(e){return e.replace(/\.?([A-Z]+)/g,(t,r)=>"-"+r.toLowerCase()).replace("_","-").replace(/^-/,"")}function Ar(e){return e!=null&&(typeof e=="object"||typeof e=="function")}function Xo(e){return Object.prototype.toString.call(e)==="[object Function]"}function Zo(e){return typeof e=="function"&&e.toString().indexOf("class")===0}let De;function Z(){Object.defineProperty(De,"renderRoot",{value:De})}function Jo(e,t){const r=Object.keys(t);return class extends e{static get observedAttributes(){return r.map(o=>t[o].attribute)}constructor(){super(),this.__initialized=!1,this.__released=!1,this.__releaseCallbacks=[],this.__propertyChangedCallbacks=[],this.__updating={},this.props={};for(let o of r)this[o]=void 0}connectedCallback(){if(this.__initialized)return;this.__releaseCallbacks=[],this.__propertyChangedCallbacks=[],this.__updating={},this.props=Yo(this,t);const o=qo(this.props),s=this.Component,i=De;try{De=this,this.__initialized=!0,Zo(s)?new s(o,{element:this}):s(o,{element:this})}finally{De=i}}async disconnectedCallback(){if(await Promise.resolve(),this.isConnected)return;this.__propertyChangedCallbacks.length=0;let o=null;for(;o=this.__releaseCallbacks.pop();)o(this);delete this.__initialized,this.__released=!0}attributeChangedCallback(o,s,i){if(this.__initialized&&!this.__updating[o]&&(o=this.lookupProp(o),o in t)){if(i==null&&!this[o])return;this[o]=t[o].parse?Sr(i):i}}lookupProp(o){if(t)return r.find(s=>o===s||o===t[s].attribute)}get renderRoot(){return this.shadowRoot||this.attachShadow({mode:"open"})}addReleaseCallback(o){this.__releaseCallbacks.push(o)}addPropertyChangedCallback(o){this.__propertyChangedCallbacks.push(o)}}}function Qo(e,t={},r={}){const{BaseElement:n=HTMLElement,extension:o,customElements:s=window.customElements}=r;return i=>{if(!e)throw new Error("tag is required to register a Component");let a=s.get(e);return a?(a.prototype.Component=i,a):(a=Jo(n,Ko(t)),a.prototype.Component=i,a.prototype.registeredTag=e,s.define(e,a,o),a)}}function es(e){const t=Object.keys(e),r={};for(let n=0;n<t.length;n++){const[o,s]=B(e[t[n]]);Object.defineProperty(r,t[n],{get:o,set(i){s(()=>i)}})}return r}function ts(e){if(e.assignedSlot&&e.assignedSlot._$owner)return e.assignedSlot._$owner;let t=e.parentNode;for(;t;){if(t._$owner)return t._$owner;if(t.assignedSlot&&t.assignedSlot._$owner)return t.assignedSlot._$owner;t=t.parentNode}return e._$owner}function rs(e){return(t,r)=>{const{element:n}=r;return Se(o=>{const s=es(t);n.addPropertyChangedCallback((a,l)=>s[a]=l),n.addReleaseCallback(()=>{n.renderRoot.textContent="",o()});const i=e(s,r);return T(n.renderRoot,i)},ts(n))}}function J(e,t,r){return arguments.length===2&&(r=t,t={}),Qo(e,t)(rs(r))}function ie(e){const[t,r]=q(e,["as"]);if(!t.as)throw new Error("[kobalte]: Polymorphic is missing the required `as` prop.");return m(it,_(r,{get component(){return t.as}}))}var ns=Object.defineProperty,at=(e,t)=>{for(var r in t)ns(e,r,{get:t[r],enumerable:!0})},os={};at(os,{Alert:()=>$r,Root:()=>Er});function Er(e){return m(ie,_({as:"div",role:"alert"},e))}var $r=Er;/**
|
|
1
|
+
var A4uiElements=(function(ln){"use strict";var vo;const K={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return br(this.context.count)},getNextContextId(){return br(this.context.count++)}};function br(e){const t=String(e),n=t.length-1;return K.context.id+(n?String.fromCharCode(96+n):"")+t}function xo(e){K.context=e}const ko=!1,So=(e,t)=>e===t,Ot=Symbol("solid-proxy"),yr=typeof Proxy=="function",vr=Symbol("solid-track"),Dt={equals:So};let wr=Tr;const Ae=1,Ft=2,xr={owned:null,cleanups:null,context:null,owner:null};var _=null;let cn=null,To=null,G=null,J=null,xe=null,Lt=0;function je(e,t){const n=G,r=_,s=e.length===0,i=t===void 0?r:t,o=s?xr:{owned:null,cleanups:null,context:i?i.context:null,owner:i},a=s?e:()=>e(()=>te(()=>ut(o)));_=o,G=null;try{return ct(a,!0)}finally{G=n,_=r}}function Q(e,t){t=t?Object.assign({},Dt,t):Dt;const n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},r=s=>(typeof s=="function"&&(s=s(n.value)),Sr(n,s));return[kr.bind(n),r]}function H(e,t,n){const r=un(e,t,!1,Ae);lt(r)}function Ce(e,t,n){wr=Po;const r=un(e,t,!1,Ae);r.user=!0,xe?xe.push(r):lt(r)}function ee(e,t,n){n=n?Object.assign({},Dt,n):Dt;const r=un(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,lt(r),kr.bind(r)}function te(e){if(G===null)return e();const t=G;G=null;try{return e()}finally{G=t}}function Ao(e,t,n){const r=Array.isArray(e);let s;return i=>{let o;if(r){o=Array(e.length);for(let l=0;l<e.length;l++)o[l]=e[l]()}else o=e();const a=te(()=>t(o,s,i));return s=o,a}}function _t(e){Ce(()=>te(e))}function pe(e){return _===null||(_.cleanups===null?_.cleanups=[e]:_.cleanups.push(e)),e}function ot(e,t){const n=Symbol("context");return{id:n,Provider:Eo(n),defaultValue:e}}function at(e){let t;return _&&_.context&&(t=_.context[e.id])!==void 0?t:e.defaultValue}function Co(e){const t=ee(e),n=ee(()=>dn(t()));return n.toArray=()=>{const r=n();return Array.isArray(r)?r:r!=null?[r]:[]},n}function kr(){if(this.sources&&this.state)if(this.state===Ae)lt(this);else{const e=J;J=null,ct(()=>zt(this),!1),J=e}if(G){const e=this.observers;if(!e||e[e.length-1]!==G){const t=e?e.length:0;G.sources?(G.sources.push(this),G.sourceSlots.push(t)):(G.sources=[this],G.sourceSlots=[t]),e?(e.push(G),this.observerSlots.push(G.sources.length-1)):(this.observers=[G],this.observerSlots=[G.sources.length-1])}}return this.value}function Sr(e,t,n){let r=e.value;return(!e.comparator||!e.comparator(r,t))&&(e.value=t,e.observers&&e.observers.length&&ct(()=>{for(let s=0;s<e.observers.length;s+=1){const i=e.observers[s],o=cn&&cn.running;o&&cn.disposed.has(i),(o?!i.tState:!i.state)&&(i.pure?J.push(i):xe.push(i),i.observers&&Ar(i)),o||(i.state=Ae)}if(J.length>1e6)throw J=[],new Error},!1)),t}function lt(e){if(!e.fn)return;ut(e);const t=Lt;Mo(e,e.value,t)}function Mo(e,t,n){let r;const s=_,i=G;G=_=e;try{r=e.fn(t)}catch(o){return e.pure&&(e.state=Ae,e.owned&&e.owned.forEach(ut),e.owned=null),e.updatedAt=n+1,Cr(o)}finally{G=i,_=s}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?Sr(e,r):e.value=r,e.updatedAt=n)}function un(e,t,n,r=Ae,s){const i={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:_,context:_?_.context:null,pure:n};return _===null||_!==xr&&(_.owned?_.owned.push(i):_.owned=[i]),i}function Nt(e){if(e.state===0)return;if(e.state===Ft)return zt(e);if(e.suspense&&te(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<Lt);)e.state&&t.push(e);for(let n=t.length-1;n>=0;n--)if(e=t[n],e.state===Ae)lt(e);else if(e.state===Ft){const r=J;J=null,ct(()=>zt(e,t[0]),!1),J=r}}function ct(e,t){if(J)return e();let n=!1;t||(J=[]),xe?n=!0:xe=[],Lt++;try{const r=e();return Vo(n),r}catch(r){n||(xe=null),J=null,Cr(r)}}function Vo(e){if(J&&(Tr(J),J=null),e)return;const t=xe;xe=null,t.length&&ct(()=>wr(t),!1)}function Tr(e){for(let t=0;t<e.length;t++)Nt(e[t])}function Po(e){let t,n=0;for(t=0;t<e.length;t++){const r=e[t];r.user?e[n++]=r:Nt(r)}if(K.context){if(K.count){K.effects||(K.effects=[]),K.effects.push(...e.slice(0,n));return}xo()}for(K.effects&&!K.count&&(e=[...K.effects,...e],n+=K.effects.length,delete K.effects),t=0;t<n;t++)Nt(e[t])}function zt(e,t){e.state=0;for(let n=0;n<e.sources.length;n+=1){const r=e.sources[n];if(r.sources){const s=r.state;s===Ae?r!==t&&(!r.updatedAt||r.updatedAt<Lt)&&Nt(r):s===Ft&&zt(r,t)}}}function Ar(e){for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t];n.state||(n.state=Ft,n.pure?J.push(n):xe.push(n),n.observers&&Ar(n))}}function ut(e){let t;if(e.sources)for(;e.sources.length;){const n=e.sources.pop(),r=e.sourceSlots.pop(),s=n.observers;if(s&&s.length){const i=s.pop(),o=n.observerSlots.pop();r<s.length&&(i.sourceSlots[o]=r,s[r]=i,n.observerSlots[r]=o)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)ut(e.tOwned[t]);delete e.tOwned}if(e.owned){for(t=e.owned.length-1;t>=0;t--)ut(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 Io(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function Cr(e,t=_){throw Io(e)}function dn(e){if(typeof e=="function"&&!e.length)return dn(e());if(Array.isArray(e)){const t=[];for(let n=0;n<e.length;n++){const r=dn(e[n]);if(Array.isArray(r))if(r.length<32768)t.push.apply(t,r);else for(let s=0;s<r.length;s++)t.push(r[s]);else t.push(r)}return t}return e}function Eo(e,t){return function(r){let s;return H(()=>s=te(()=>(_.context={..._.context,[e]:r.value},Co(()=>r.children))),void 0),s}}const fn=Symbol("fallback");function Bt(e){for(let t=0;t<e.length;t++)e[t]()}function $o(e,t,n={}){let r=[],s=[],i=[],o=0,a=t.length>1?[]:null;return pe(()=>Bt(i)),()=>{let l=e()||[],c=l.length,u,d;return l[vr],te(()=>{let m,y,h,p,v,k,C,T,A;if(c===0)o!==0&&(Bt(i),i=[],r=[],s=[],o=0,a&&(a=[])),n.fallback&&(r=[fn],s[0]=je(E=>(i[0]=E,n.fallback())),o=1);else if(o===0){for(s=new Array(c),d=0;d<c;d++)r[d]=l[d],s[d]=je(f);o=c}else{for(h=new Array(c),p=new Array(c),a&&(v=new Array(c)),k=0,C=Math.min(o,c);k<C&&r[k]===l[k];k++);for(C=o-1,T=c-1;C>=k&&T>=k&&r[C]===l[T];C--,T--)h[T]=s[C],p[T]=i[C],a&&(v[T]=a[C]);for(m=new Map,y=new Array(T+1),d=T;d>=k;d--)A=l[d],u=m.get(A),y[d]=u===void 0?-1:u,m.set(A,d);for(u=k;u<=C;u++)A=r[u],d=m.get(A),d!==void 0&&d!==-1?(h[d]=s[u],p[d]=i[u],a&&(v[d]=a[u]),d=y[d],m.set(A,d)):i[u]();for(d=k;d<c;d++)d in h?(s[d]=h[d],i[d]=p[d],a&&(a[d]=v[d],a[d](d))):s[d]=je(f);s=s.slice(0,o=c),r=l.slice(0)}return s});function f(m){if(i[d]=m,a){const[y,h]=Q(d);return a[d]=h,t(l[d],y)}return t(l[d])}}}function Ro(e,t,n={}){let r=[],s=[],i=[],o=[],a=0,l;return pe(()=>Bt(i)),()=>{const c=e()||[],u=c.length;return c[vr],te(()=>{if(u===0)return a!==0&&(Bt(i),i=[],r=[],s=[],a=0,o=[]),n.fallback&&(r=[fn],s[0]=je(f=>(i[0]=f,n.fallback())),a=1),s;for(r[0]===fn&&(i[0](),i=[],r=[],s=[],a=0),l=0;l<u;l++)l<r.length&&r[l]!==c[l]?o[l](()=>c[l]):l>=r.length&&(s[l]=je(d));for(;l<r.length;l++)i[l]();return a=o.length=i.length=u,r=c.slice(0),s=s.slice(0,a)});function d(f){i[l]=f;const[m,y]=Q(c[l]);return o[l]=y,t(m,l)}}}function b(e,t){return te(()=>e(t||{}))}function jt(){return!0}const hn={get(e,t,n){return t===Ot?n:e.get(t)},has(e,t){return t===Ot?!0:e.has(t)},set:jt,deleteProperty:jt,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:jt,deleteProperty:jt}},ownKeys(e){return e.keys()}};function mn(e){return(e=typeof e=="function"?e():e)?e:{}}function Oo(){for(let e=0,t=this.length;e<t;++e){const n=this[e]();if(n!==void 0)return n}}function F(...e){let t=!1;for(let o=0;o<e.length;o++){const a=e[o];t=t||!!a&&Ot in a,e[o]=typeof a=="function"?(t=!0,ee(a)):a}if(yr&&t)return new Proxy({get(o){for(let a=e.length-1;a>=0;a--){const l=mn(e[a])[o];if(l!==void 0)return l}},has(o){for(let a=e.length-1;a>=0;a--)if(o in mn(e[a]))return!0;return!1},keys(){const o=[];for(let a=0;a<e.length;a++)o.push(...Object.keys(mn(e[a])));return[...new Set(o)]}},hn);const n={},r=Object.create(null);for(let o=e.length-1;o>=0;o--){const a=e[o];if(!a)continue;const l=Object.getOwnPropertyNames(a);for(let c=l.length-1;c>=0;c--){const u=l[c];if(u==="__proto__"||u==="constructor")continue;const d=Object.getOwnPropertyDescriptor(a,u);if(!r[u])r[u]=d.get?{enumerable:!0,configurable:!0,get:Oo.bind(n[u]=[d.get.bind(a)])}:d.value!==void 0?d:void 0;else{const f=n[u];f&&(d.get?f.push(d.get.bind(a)):d.value!==void 0&&f.push(()=>d.value))}}}const s={},i=Object.keys(r);for(let o=i.length-1;o>=0;o--){const a=i[o],l=r[a];l&&l.get?Object.defineProperty(s,a,l):s[a]=l?l.value:void 0}return s}function ie(e,...t){const n=t.length;if(yr&&Ot in e){const s=n>1?t.flat():t[0],i=t.map(o=>new Proxy({get(a){return o.includes(a)?e[a]:void 0},has(a){return o.includes(a)&&a in e},keys(){return o.filter(a=>a in e)}},hn));return i.push(new Proxy({get(o){return s.includes(o)?void 0:e[o]},has(o){return s.includes(o)?!1:o in e},keys(){return Object.keys(e).filter(o=>!s.includes(o))}},hn)),i}const r=[];for(let s=0;s<=n;s++)r[s]={};for(const s of Object.getOwnPropertyNames(e)){let i=n;for(let l=0;l<t.length;l++)if(t[l].includes(s)){i=l;break}const o=Object.getOwnPropertyDescriptor(e,s);!o.get&&!o.set&&o.enumerable&&o.writable&&o.configurable?r[i][s]=o.value:Object.defineProperty(r[i],s,o)}return r}let Do=0;function Mr(){return K.context?K.getNextContextId():`cl-${Do++}`}const Fo=e=>`Stale read from <${e}>.`;function Kt(e){const t="fallback"in e&&{fallback:()=>e.fallback};return ee($o(()=>e.each,e.children,t||void 0))}function gn(e){const t="fallback"in e&&{fallback:()=>e.fallback};return ee(Ro(()=>e.each,e.children,t||void 0))}function he(e){const t=e.keyed,n=ee(()=>e.when,void 0,void 0),r=t?n:ee(n,void 0,{equals:(s,i)=>!s==!i});return ee(()=>{const s=r();if(s){const i=e.children;return typeof i=="function"&&i.length>0?te(()=>i(t?s:()=>{if(!te(r))throw Fo("Show");return n()})):i}return e.fallback},void 0,void 0)}const Lo=["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"],_o=new Set(["className","value","readOnly","noValidate","formNoValidate","isMap","noModule","playsInline","adAuctionHeaders","allowFullscreen","browsingTopics","defaultChecked","defaultMuted","defaultSelected","disablePictureInPicture","disableRemotePlayback","preservesPitch","shadowRootClonable","shadowRootCustomElementRegistry","shadowRootDelegatesFocus","shadowRootSerializable","sharedStorageWritable",...Lo]),No=new Set(["innerHTML","textContent","innerText","children"]),zo=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),Bo=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 jo(e,t){const n=Bo[e];return typeof n=="object"?n[t]?n.$:void 0:n}const Ko=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),Go=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"]),Wo={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},pn=e=>ee(()=>e());function Uo(e,t,n){let r=n.length,s=t.length,i=r,o=0,a=0,l=t[s-1].nextSibling,c=null;for(;o<s||a<i;){if(t[o]===n[a]){o++,a++;continue}for(;t[s-1]===n[i-1];)s--,i--;if(s===o){const u=i<r?a?n[a-1].nextSibling:n[i-a]:l;for(;a<i;)e.insertBefore(n[a++],u)}else if(i===a)for(;o<s;)(!c||!c.has(t[o]))&&t[o].remove(),o++;else if(t[o]===n[i-1]&&n[a]===t[s-1]){const u=t[--s].nextSibling;e.insertBefore(n[a++],t[o++].nextSibling),e.insertBefore(n[--i],u),t[s]=n[i]}else{if(!c){c=new Map;let d=a;for(;d<i;)c.set(n[d],d++)}const u=c.get(t[o]);if(u!=null)if(a<u&&u<i){let d=o,f=1,m;for(;++d<s&&d<i&&!((m=c.get(t[d]))==null||m!==u+f);)f++;if(f>u-a){const y=t[o];for(;a<u;)e.insertBefore(n[a++],y)}else e.replaceChild(n[a++],t[o++])}else o++;else t[o++].remove()}}}const Vr="_$DX_DELEGATE";function L(e,t,n,r){let s;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},o=t?()=>te(()=>document.importNode(s||(s=i()),!0)):()=>(s||(s=i())).cloneNode(!0);return o.cloneNode=o,o}function Pr(e,t=window.document){const n=t[Vr]||(t[Vr]=new Set);for(let r=0,s=e.length;r<s;r++){const i=e[r];n.has(i)||(n.add(i),t.addEventListener(i,ta))}}function $(e,t,n){Oe(e)||(n==null?e.removeAttribute(t):e.setAttribute(t,n))}function Yo(e,t,n,r){Oe(e)||(r==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r))}function Xo(e,t,n){Oe(e)||(n?e.setAttribute(t,""):e.removeAttribute(t))}function Me(e,t){Oe(e)||(t==null?e.removeAttribute("class"):e.className=t)}function Ho(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 s=n[0];e.addEventListener(t,n[0]=i=>s.call(e,n[1],i))}else e.addEventListener(t,n,typeof n!="function"&&n)}function qo(e,t,n={}){const r=Object.keys(t||{}),s=Object.keys(n);let i,o;for(i=0,o=s.length;i<o;i++){const a=s[i];!a||a==="undefined"||t[a]||(Er(e,a,!1),delete n[a])}for(i=0,o=r.length;i<o;i++){const a=r[i],l=!!t[a];!a||a==="undefined"||n[a]===l||!l||(Er(e,a,!0),n[a]=l)}return n}function Zo(e,t,n){if(!t)return n?$(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 s,i;for(i in n)t[i]==null&&r.removeProperty(i),delete n[i];for(i in t)s=t[i],s!==n[i]&&(r.setProperty(i,s),n[i]=s);return n}function Ke(e,t,n){n!=null?e.style.setProperty(t,n):e.style.removeProperty(t)}function Ge(e,t={},n,r){const s={};return r||H(()=>s.children=dt(e,t.children,s.children)),H(()=>typeof t.ref=="function"&&Ir(t.ref,e)),H(()=>Jo(e,t,n,!0,s,!0)),s}function Ir(e,t,n){return te(()=>e(t,n))}function D(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!="function")return dt(e,t,r,n);H(s=>dt(e,t(),s,n),r)}function Jo(e,t,n,r,s={},i=!1){t||(t={});for(const o in s)if(!(o in t)){if(o==="children")continue;s[o]=$r(e,o,null,s[o],n,i,t)}for(const o in t){if(o==="children")continue;const a=t[o];s[o]=$r(e,o,a,s[o],n,i,t)}}function Qo(e){let t,n;return!Oe()||!(t=K.registry.get(n=na()))?e():(K.completed&&K.completed.add(t),K.registry.delete(n),t)}function Oe(e){return!!K.context&&!0&&(!e||e.isConnected)}function ea(e){return e.toLowerCase().replace(/-([a-z])/g,(t,n)=>n.toUpperCase())}function Er(e,t,n){const r=t.trim().split(/\s+/);for(let s=0,i=r.length;s<i;s++)e.classList.toggle(r[s],n)}function $r(e,t,n,r,s,i,o){let a,l,c,u,d;if(t==="style")return Zo(e,n,r);if(t==="classList")return qo(e,n,r);if(n===r)return r;if(t==="ref")i||n(e);else if(t.slice(0,3)==="on:"){const f=t.slice(3);r&&e.removeEventListener(f,r,typeof r!="function"&&r),n&&e.addEventListener(f,n,typeof n!="function"&&n)}else if(t.slice(0,10)==="oncapture:"){const f=t.slice(10);r&&e.removeEventListener(f,r,!0),n&&e.addEventListener(f,n,!0)}else if(t.slice(0,2)==="on"){const f=t.slice(2).toLowerCase(),m=Ko.has(f);if(!m&&r){const y=Array.isArray(r)?r[0]:r;e.removeEventListener(f,y)}(m||n)&&(Ho(e,f,n,m),m&&Pr([f]))}else if(t.slice(0,5)==="attr:")$(e,t.slice(5),n);else if(t.slice(0,5)==="bool:")Xo(e,t.slice(5),n);else if((d=t.slice(0,5)==="prop:")||(c=No.has(t))||!s&&((u=jo(t,e.tagName))||(l=_o.has(t)))||(a=e.nodeName.includes("-")||"is"in o)){if(d)t=t.slice(5),l=!0;else if(Oe(e))return n;t==="class"||t==="className"?Me(e,n):a&&!l&&!c?e[ea(t)]=n:e[u||t]=n}else{const f=s&&t.indexOf(":")>-1&&Wo[t.split(":")[0]];f?Yo(e,f,t,n):$(e,zo[t]||t,n)}return n}function ta(e){let t=e.target;const n=`$$${e.type}`,r=e.target,s=e.currentTarget,i=l=>Object.defineProperty(e,"target",{configurable:!0,value:l}),o=()=>{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(;o()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return t||document}}),e.composedPath){const l=e.composedPath();i(l[0]);for(let c=0;c<l.length-2&&(t=l[c],!!o());c++){if(t._$host){t=t._$host,a();break}if(t.parentNode===s)break}}else a();i(r)}function dt(e,t,n,r,s){const i=Oe(e);if(i){!n&&(n=[...e.childNodes]);let l=[];for(let c=0;c<n.length;c++){const u=n[c];u.nodeType===8&&u.data.slice(0,2)==="!$"?u.remove():l.push(u)}n=l}for(;typeof n=="function";)n=n();if(t===n)return n;const o=typeof t,a=r!==void 0;if(e=a&&n[0]&&n[0].parentNode||e,o==="string"||o==="number"){if(i||o==="number"&&(t=t.toString(),t===n))return n;if(a){let l=n[0];l&&l.nodeType===3?l.data!==t&&(l.data=t):l=document.createTextNode(t),n=We(e,n,r,l)}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t}else if(t==null||o==="boolean"){if(i)return n;n=We(e,n,r)}else{if(o==="function")return H(()=>{let l=t();for(;typeof l=="function";)l=l();n=dt(e,l,n,r)}),()=>n;if(Array.isArray(t)){const l=[],c=n&&Array.isArray(n);if(bn(l,t,n,s))return H(()=>n=dt(e,l,n,r,!0)),()=>n;if(i){if(!l.length)return n;if(r===void 0)return n=[...e.childNodes];let u=l[0];if(u.parentNode!==e)return n;const d=[u];for(;(u=u.nextSibling)!==r;)d.push(u);return n=d}if(l.length===0){if(n=We(e,n,r),a)return n}else c?n.length===0?Rr(e,l,r):Uo(e,n,l):(n&&We(e),Rr(e,l));n=l}else if(t.nodeType){if(i&&t.parentNode)return n=a?[t]:t;if(Array.isArray(n)){if(a)return n=We(e,n,r,t);We(e,n,null,t)}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}}return n}function bn(e,t,n,r){let s=!1;for(let i=0,o=t.length;i<o;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))s=bn(e,a,l)||s;else if(c==="function")if(r){for(;typeof a=="function";)a=a();s=bn(e,Array.isArray(a)?a:[a],Array.isArray(l)?l:[l])||s}else e.push(a),s=!0;else{const u=String(a);l&&l.nodeType===3&&l.data===u?e.push(l):e.push(document.createTextNode(u))}}return s}function Rr(e,t,n=null){for(let r=0,s=t.length;r<s;r++)e.insertBefore(t[r],n)}function We(e,t,n,r){if(n===void 0)return e.textContent="";const s=r||document.createTextNode("");if(t.length){let i=!1;for(let o=t.length-1;o>=0;o--){const a=t[o];if(s!==a){const l=a.parentNode===e;!i&&!o?l?e.replaceChild(s,a):e.insertBefore(s,n):l&&a.remove()}else i=!0}}else e.insertBefore(s,n);return[s]}function na(){return K.getNextContextId()}const ra="http://www.w3.org/2000/svg";function sa(e,t=!1,n=void 0){return t?document.createElementNS(ra,e):document.createElement(e,{is:n})}function ia(e,t){const n=ee(e);return ee(()=>{const r=n();switch(typeof r){case"function":return te(()=>r(t));case"string":const s=Go.has(r),i=K.context?Qo():sa(r,s,te(()=>t.is));return Ge(i,t,s),i}})}function yn(e){const[,t]=ie(e,["component"]);return ia(()=>e.component,t)}function oa(e){return Object.keys(e).reduce((n,r)=>{const s=e[r];return n[r]=Object.assign({},s),Fr(s.value)&&!da(s.value)&&!Array.isArray(s.value)&&(n[r].value=Object.assign({},s.value)),Array.isArray(s.value)&&(n[r].value=s.value.slice(0)),n},{})}function aa(e){return e?Object.keys(e).reduce((n,r)=>{const s=e[r];return n[r]=Fr(s)&&"value"in s?s:{value:s},n[r].attribute||(n[r].attribute=ua(r)),n[r].parse="parse"in n[r]?n[r].parse:typeof n[r].value!="string",n},{}):{}}function la(e){return Object.keys(e).reduce((n,r)=>(n[r]=e[r].value,n),{})}function ca(e,t){const n=oa(t);return Object.keys(t).forEach(s=>{const i=n[s],o=e.getAttribute(i.attribute),a=e[s];o!=null&&(i.value=i.parse?Or(o):o),a!=null&&(i.value=Array.isArray(a)?a.slice(0):a),i.reflect&&Dr(e,i.attribute,i.value,!!i.parse),Object.defineProperty(e,s,{get(){return i.value},set(l){const c=i.value;i.value=l,i.reflect&&Dr(this,i.attribute,i.value,!!i.parse);for(let u=0,d=this.__propertyChangedCallbacks.length;u<d;u++)this.__propertyChangedCallbacks[u](s,l,c)},enumerable:!0,configurable:!0})}),n}function Or(e){if(e)try{return JSON.parse(e)}catch{return e}}function Dr(e,t,n,r){if(n==null||n===!1)return e.removeAttribute(t);let s=r?JSON.stringify(n):n;e.__updating[t]=!0,s==="true"&&(s=""),e.setAttribute(t,s),Promise.resolve().then(()=>delete e.__updating[t])}function ua(e){return e.replace(/\.?([A-Z]+)/g,(t,n)=>"-"+n.toLowerCase()).replace("_","-").replace(/^-/,"")}function Fr(e){return e!=null&&(typeof e=="object"||typeof e=="function")}function da(e){return Object.prototype.toString.call(e)==="[object Function]"}function fa(e){return typeof e=="function"&&e.toString().indexOf("class")===0}let ft;function le(){Object.defineProperty(ft,"renderRoot",{value:ft})}function ha(e,t){const n=Object.keys(t);return class extends e{static get observedAttributes(){return n.map(s=>t[s].attribute)}constructor(){super(),this.__initialized=!1,this.__released=!1,this.__releaseCallbacks=[],this.__propertyChangedCallbacks=[],this.__updating={},this.props={};for(let s of n)this[s]=void 0}connectedCallback(){if(this.__initialized)return;this.__releaseCallbacks=[],this.__propertyChangedCallbacks=[],this.__updating={},this.props=ca(this,t);const s=la(this.props),i=this.Component,o=ft;try{ft=this,this.__initialized=!0,fa(i)?new i(s,{element:this}):i(s,{element:this})}finally{ft=o}}async disconnectedCallback(){if(await Promise.resolve(),this.isConnected)return;this.__propertyChangedCallbacks.length=0;let s=null;for(;s=this.__releaseCallbacks.pop();)s(this);delete this.__initialized,this.__released=!0}attributeChangedCallback(s,i,o){if(this.__initialized&&!this.__updating[s]&&(s=this.lookupProp(s),s in t)){if(o==null&&!this[s])return;this[s]=t[s].parse?Or(o):o}}lookupProp(s){if(t)return n.find(i=>s===i||s===t[i].attribute)}get renderRoot(){return this.shadowRoot||this.attachShadow({mode:"open"})}addReleaseCallback(s){this.__releaseCallbacks.push(s)}addPropertyChangedCallback(s){this.__propertyChangedCallbacks.push(s)}}}function ma(e,t={},n={}){const{BaseElement:r=HTMLElement,extension:s,customElements:i=window.customElements}=n;return o=>{if(!e)throw new Error("tag is required to register a Component");let a=i.get(e);return a?(a.prototype.Component=o,a):(a=ha(r,aa(t)),a.prototype.Component=o,a.prototype.registeredTag=e,i.define(e,a,s),a)}}function ga(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const[s,i]=Q(e[t[r]]);Object.defineProperty(n,t[r],{get:s,set(o){i(()=>o)}})}return n}function pa(e){if(e.assignedSlot&&e.assignedSlot._$owner)return e.assignedSlot._$owner;let t=e.parentNode;for(;t;){if(t._$owner)return t._$owner;if(t.assignedSlot&&t.assignedSlot._$owner)return t.assignedSlot._$owner;t=t.parentNode}return e._$owner}function ba(e){return(t,n)=>{const{element:r}=n;return je(s=>{const i=ga(t);r.addPropertyChangedCallback((a,l)=>i[a]=l),r.addReleaseCallback(()=>{r.renderRoot.textContent="",s()});const o=e(i,n);return D(r.renderRoot,o)},pa(r))}}function ce(e,t,n){return arguments.length===2&&(n=t,t={}),ma(e,t)(ba(n))}function be(e){const[t,n]=ie(e,["as"]);if(!t.as)throw new Error("[kobalte]: Polymorphic is missing the required `as` prop.");return b(yn,F(n,{get component(){return t.as}}))}var ya=Object.defineProperty,Gt=(e,t)=>{for(var n in t)ya(e,n,{get:t[n],enumerable:!0})},va={};Gt(va,{Alert:()=>_r,Root:()=>Lr});function Lr(e){return b(be,F({as:"div",role:"alert"},e))}var _r=Lr;/**
|
|
2
2
|
* @license lucide-solid v1.24.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
5
5
|
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/var ss={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"},$e=ss,is=pe({size:24,color:"currentColor",strokeWidth:2,absoluteStrokeWidth:!1,class:""}),as=M("<svg>"),ls=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},cs=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),us=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),Pr=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ds=e=>{const t=us(e);return t.charAt(0).toUpperCase()+t.slice(1)},fs=e=>{const[t,r]=q(e,["color","size","strokeWidth","children","class","name","iconNode","absoluteStrokeWidth"]),n=ye(is);return(()=>{var o=as();return Ae(o,_($e,{get width(){return t.size??n.size??$e.width},get height(){return t.size??n.size??$e.height},get stroke(){return t.color??n.color??$e.stroke},get"stroke-width"(){return Ot(()=>(t.absoluteStrokeWidth??n.absoluteStrokeWidth)===!0)()?Number(t.strokeWidth??n.strokeWidth??$e["stroke-width"])*24/Number(t.size??n.size):Number(t.strokeWidth??n.strokeWidth??$e["stroke-width"])},get class(){return cs("lucide","lucide-icon",n.class,...t.name!=null?[`lucide-${Pr(ds(t.name))}`,`lucide-${Pr(t.name)}`]:[],t.class)},get"aria-hidden"(){return!t.children&&!ls(r)?"true":void 0}},r),!0,!0),T(o,m(st,{get each(){return t.iconNode},children:([s,i])=>m(it,_({component:s},i))})),o})()},je=fs,gs=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],ms=e=>m(je,_(e,{iconNode:gs,name:"circle-check"})),hs=ms,bs=[["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"}]],ps=e=>m(je,_(e,{iconNode:bs,name:"circle-x"})),ys=ps,vs=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],ws=e=>m(je,_(e,{iconNode:vs,name:"info"})),xs=ws,ks=[["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"}]],Ss=e=>m(je,_(e,{iconNode:ks,name:"star"})),Ir=Ss,Cs=[["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"}]],As=e=>m(je,_(e,{iconNode:Cs,name:"triangle-alert"})),Es=As;function Tr(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Tr(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function $s(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Tr(e))&&(n&&(n+=" "),n+=t);return n}const Ps=(e,t)=>{const r=new Array(e.length+t.length);for(let n=0;n<e.length;n++)r[n]=e[n];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r},Is=(e,t)=>({classGroupId:e,validator:t}),Or=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),lt="-",_r=[],Ts="arbitrary..",Os=e=>{const t=Ls(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return _s(i);const a=i.split(lt),l=a[0]===""&&a.length>1?1:0;return Lr(a,l,t)},getConflictingClassGroupIds:(i,a)=>{if(a){const l=n[i],c=r[i];return l?c?Ps(c,l):l:c||_r}return r[i]||_r}}},Lr=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const o=e[t],s=r.nextPart.get(o);if(s){const c=Lr(e,t+1,s);if(c)return c}const i=r.validators;if(i===null)return;const a=t===0?e.join(lt):e.slice(t).join(lt),l=i.length;for(let c=0;c<l;c++){const u=i[c];if(u.validator(a))return u.classGroupId}},_s=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?Ts+n:void 0})(),Ls=e=>{const{theme:t,classGroups:r}=e;return Ms(r,t)},Ms=(e,t)=>{const r=Or();for(const n in e){const o=e[n];Lt(o,r,n,t)}return r},Lt=(e,t,r,n)=>{const o=e.length;for(let s=0;s<o;s++){const i=e[s];Rs(i,t,r,n)}},Rs=(e,t,r,n)=>{if(typeof e=="string"){zs(e,t,r);return}if(typeof e=="function"){Ns(e,t,r,n);return}Ds(e,t,r,n)},zs=(e,t,r)=>{const n=e===""?t:Mr(t,e);n.classGroupId=r},Ns=(e,t,r,n)=>{if(js(e)){Lt(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(Is(r,e))},Ds=(e,t,r,n)=>{const o=Object.entries(e),s=o.length;for(let i=0;i<s;i++){const[a,l]=o[i];Lt(l,Mr(t,a),r,n)}},Mr=(e,t)=>{let r=e;const n=t.split(lt),o=n.length;for(let s=0;s<o;s++){const i=n[s];let a=r.nextPart.get(i);a||(a=Or(),r.nextPart.set(i,a)),r=a}return r},js=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Vs=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const o=(s,i)=>{r[s]=i,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(s){let i=r[s];if(i!==void 0)return i;if((i=n[s])!==void 0)return o(s,i),i},set(s,i){s in r?r[s]=i:o(s,i)}}},Mt="!",Rr=":",Fs=[],zr=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),Gs=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const s=[];let i=0,a=0,l=0,c;const u=o.length;for(let g=0;g<u;g++){const w=o[g];if(i===0&&a===0){if(w===Rr){s.push(o.slice(l,g)),l=g+1;continue}if(w==="/"){c=g;continue}}w==="["?i++:w==="]"?i--:w==="("?a++:w===")"&&a--}const d=s.length===0?o:o.slice(l);let f=d,y=!1;d.endsWith(Mt)?(f=d.slice(0,-1),y=!0):d.startsWith(Mt)&&(f=d.slice(1),y=!0);const v=c&&c>l?c-l:void 0;return zr(s,y,f,v)};if(t){const o=t+Rr,s=n;n=i=>i.startsWith(o)?s(i.slice(o.length)):zr(Fs,!1,i,void 0,!0)}if(r){const o=n;n=s=>r({className:s,parseClassName:o})}return n},Us=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{const n=[];let o=[];for(let s=0;s<r.length;s++){const i=r[s],a=i[0]==="[",l=t.has(i);a||l?(o.length>0&&(o.sort(),n.push(...o),o=[]),n.push(i)):o.push(i)}return o.length>0&&(o.sort(),n.push(...o)),n}},Bs=e=>({cache:Vs(e.cacheSize),parseClassName:Gs(e),sortModifiers:Us(e),postfixLookupClassGroupIds:Ws(e),...Os(e)}),Ws=e=>{const t=Object.create(null),r=e.postfixLookupClassGroups;if(r)for(let n=0;n<r.length;n++)t[r[n]]=!0;return t},Ks=/\s+/,qs=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:s,postfixLookupClassGroupIds:i}=t,a=[],l=e.trim().split(Ks);let c="";for(let u=l.length-1;u>=0;u-=1){const d=l[u],{isExternal:f,modifiers:y,hasImportantModifier:v,baseClassName:g,maybePostfixModifierPosition:w}=r(d);if(f){c=d+(c.length>0?" "+c:c);continue}let A=!!w,C;if(A){const k=g.substring(0,w);C=n(k);const h=C&&i[C]?n(g):void 0;h&&h!==C&&(C=h,A=!1)}else C=n(g);if(!C){if(!A){c=d+(c.length>0?" "+c:c);continue}if(C=n(g),!C){c=d+(c.length>0?" "+c:c);continue}A=!1}const O=y.length===0?"":y.length===1?y[0]:s(y).join(":"),I=v?O+Mt:O,P=I+C;if(a.indexOf(P)>-1)continue;a.push(P);const z=o(C,A);for(let k=0;k<z.length;++k){const h=z[k];a.push(I+h)}c=d+(c.length>0?" "+c:c)}return c},Ys=(...e)=>{let t=0,r,n,o="";for(;t<e.length;)(r=e[t++])&&(n=Nr(r))&&(o&&(o+=" "),o+=n);return o},Nr=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Nr(e[n]))&&(r&&(r+=" "),r+=t);return r},Hs=(e,...t)=>{let r,n,o,s;const i=l=>{const c=t.reduce((u,d)=>d(u),e());return r=Bs(c),n=r.cache.get,o=r.cache.set,s=a,a(l)},a=l=>{const c=n(l);if(c)return c;const u=qs(l,r);return o(l,u),u};return s=i,(...l)=>s(Ys(...l))},Xs=[],F=e=>{const t=r=>r[e]||Xs;return t.isThemeGetter=!0,t},Dr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,jr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Zs=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Js=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Qs=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ei=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ti=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ri=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ge=e=>Zs.test(e),$=e=>!!e&&!Number.isNaN(Number(e)),ae=e=>!!e&&Number.isInteger(Number(e)),Rt=e=>e.endsWith("%")&&$(e.slice(0,-1)),ue=e=>Js.test(e),Vr=()=>!0,ni=e=>Qs.test(e)&&!ei.test(e),zt=()=>!1,oi=e=>ti.test(e),si=e=>ri.test(e),ii=e=>!b(e)&&!p(e),ai=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),li=e=>me(e,Kr,zt),b=e=>Dr.test(e),we=e=>me(e,qr,ni),Fr=e=>me(e,bi,$),ci=e=>me(e,Hr,Vr),ui=e=>me(e,Yr,zt),Gr=e=>me(e,Br,zt),di=e=>me(e,Wr,si),ct=e=>me(e,Xr,oi),p=e=>jr.test(e),Ve=e=>xe(e,qr),fi=e=>xe(e,Yr),Ur=e=>xe(e,Br),gi=e=>xe(e,Kr),mi=e=>xe(e,Wr),ut=e=>xe(e,Xr,!0),hi=e=>xe(e,Hr,!0),me=(e,t,r)=>{const n=Dr.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},xe=(e,t,r=!1)=>{const n=jr.exec(e);return n?n[1]?t(n[1]):r:!1},Br=e=>e==="position"||e==="percentage",Wr=e=>e==="image"||e==="url",Kr=e=>e==="length"||e==="size"||e==="bg-size",qr=e=>e==="length",bi=e=>e==="number",Yr=e=>e==="family-name",Hr=e=>e==="number"||e==="weight",Xr=e=>e==="shadow",pi=Hs(()=>{const e=F("color"),t=F("font"),r=F("text"),n=F("font-weight"),o=F("tracking"),s=F("leading"),i=F("breakpoint"),a=F("container"),l=F("spacing"),c=F("radius"),u=F("shadow"),d=F("inset-shadow"),f=F("text-shadow"),y=F("drop-shadow"),v=F("blur"),g=F("perspective"),w=F("aspect"),A=F("ease"),C=F("animate"),O=()=>["auto","avoid","all","avoid-page","page","left","right","column"],I=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],P=()=>[...I(),p,b],z=()=>["auto","hidden","clip","visible","scroll"],k=()=>["auto","contain","none"],h=()=>[p,b,l],S=()=>[ge,"full","auto",...h()],ne=()=>[ae,"none","subgrid",p,b],L=()=>["auto",{span:["full",ae,p,b]},ae,p,b],Y=()=>[ae,"auto",p,b],Q=()=>["auto","min","max","fr",p,b],Xe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Le=()=>["start","end","center","stretch","center-safe","end-safe"],oe=()=>["auto",...h()],ke=()=>[ge,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...h()],nr=()=>[ge,"screen","full","dvw","lvw","svw","min","max","fit",...h()],or=()=>[ge,"screen","full","lh","dvh","lvh","svh","min","max","fit",...h()],x=()=>[e,p,b],Qn=()=>[...I(),Ur,Gr,{position:[p,b]}],eo=()=>["no-repeat",{repeat:["","x","y","space","round"]}],to=()=>["auto","cover","contain",gi,li,{size:[p,b]}],sr=()=>[Rt,Ve,we],H=()=>["","none","full",c,p,b],X=()=>["",$,Ve,we],yt=()=>["solid","dashed","dotted","double"],ro=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],G=()=>[$,Rt,Ur,Gr],no=()=>["","none",v,p,b],vt=()=>["none",$,p,b],wt=()=>["none",$,p,b],ir=()=>[$,p,b],xt=()=>[ge,"full",...h()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ue],breakpoint:[ue],color:[Vr],container:[ue],"drop-shadow":[ue],ease:["in","out","in-out"],font:[ii],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ue],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ue],shadow:[ue],spacing:["px",$],text:[ue],"text-shadow":[ue],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ge,b,p,w]}],container:["container"],"container-type":[{"@container":["","normal","size",p,b]}],"container-named":[ai],columns:[{columns:[$,b,p,a]}],"break-after":[{"break-after":O()}],"break-before":[{"break-before":O()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:P()}],overflow:[{overflow:z()}],"overflow-x":[{"overflow-x":z()}],"overflow-y":[{"overflow-y":z()}],overscroll:[{overscroll:k()}],"overscroll-x":[{"overscroll-x":k()}],"overscroll-y":[{"overscroll-y":k()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:S()}],"inset-x":[{"inset-x":S()}],"inset-y":[{"inset-y":S()}],start:[{"inset-s":S(),start:S()}],end:[{"inset-e":S(),end:S()}],"inset-bs":[{"inset-bs":S()}],"inset-be":[{"inset-be":S()}],top:[{top:S()}],right:[{right:S()}],bottom:[{bottom:S()}],left:[{left:S()}],visibility:["visible","invisible","collapse"],z:[{z:[ae,"auto",p,b]}],basis:[{basis:[ge,"full","auto",a,...h()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[$,ge,"auto","initial","none",b]}],grow:[{grow:["",$,p,b]}],shrink:[{shrink:["",$,p,b]}],order:[{order:[ae,"first","last","none",p,b]}],"grid-cols":[{"grid-cols":ne()}],"col-start-end":[{col:L()}],"col-start":[{"col-start":Y()}],"col-end":[{"col-end":Y()}],"grid-rows":[{"grid-rows":ne()}],"row-start-end":[{row:L()}],"row-start":[{"row-start":Y()}],"row-end":[{"row-end":Y()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Q()}],"auto-rows":[{"auto-rows":Q()}],gap:[{gap:h()}],"gap-x":[{"gap-x":h()}],"gap-y":[{"gap-y":h()}],"justify-content":[{justify:[...Xe(),"normal"]}],"justify-items":[{"justify-items":[...Le(),"normal"]}],"justify-self":[{"justify-self":["auto",...Le()]}],"align-content":[{content:["normal",...Xe()]}],"align-items":[{items:[...Le(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Le(),{baseline:["","last"]}]}],"place-content":[{"place-content":Xe()}],"place-items":[{"place-items":[...Le(),"baseline"]}],"place-self":[{"place-self":["auto",...Le()]}],p:[{p:h()}],px:[{px:h()}],py:[{py:h()}],ps:[{ps:h()}],pe:[{pe:h()}],pbs:[{pbs:h()}],pbe:[{pbe:h()}],pt:[{pt:h()}],pr:[{pr:h()}],pb:[{pb:h()}],pl:[{pl:h()}],m:[{m:oe()}],mx:[{mx:oe()}],my:[{my:oe()}],ms:[{ms:oe()}],me:[{me:oe()}],mbs:[{mbs:oe()}],mbe:[{mbe:oe()}],mt:[{mt:oe()}],mr:[{mr:oe()}],mb:[{mb:oe()}],ml:[{ml:oe()}],"space-x":[{"space-x":h()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":h()}],"space-y-reverse":["space-y-reverse"],size:[{size:ke()}],"inline-size":[{inline:["auto",...nr()]}],"min-inline-size":[{"min-inline":["auto",...nr()]}],"max-inline-size":[{"max-inline":["none",...nr()]}],"block-size":[{block:["auto",...or()]}],"min-block-size":[{"min-block":["auto",...or()]}],"max-block-size":[{"max-block":["none",...or()]}],w:[{w:[a,"screen",...ke()]}],"min-w":[{"min-w":[a,"screen","none",...ke()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...ke()]}],h:[{h:["screen","lh",...ke()]}],"min-h":[{"min-h":["screen","lh","none",...ke()]}],"max-h":[{"max-h":["screen","lh",...ke()]}],"font-size":[{text:["base",r,Ve,we]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,hi,ci]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Rt,b]}],"font-family":[{font:[fi,ui,t]}],"font-features":[{"font-features":[b]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,p,b]}],"line-clamp":[{"line-clamp":[$,"none",p,Fr]}],leading:[{leading:[s,...h()]}],"list-image":[{"list-image":["none",p,b]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",p,b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:x()}],"text-color":[{text:x()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...yt(),"wavy"]}],"text-decoration-thickness":[{decoration:[$,"from-font","auto",p,we]}],"text-decoration-color":[{decoration:x()}],"underline-offset":[{"underline-offset":[$,"auto",p,b]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:h()}],"tab-size":[{tab:[ae,p,b]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",p,b]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",p,b]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Qn()}],"bg-repeat":[{bg:eo()}],"bg-size":[{bg:to()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ae,p,b],radial:["",p,b],conic:[ae,p,b]},mi,di]}],"bg-color":[{bg:x()}],"gradient-from-pos":[{from:sr()}],"gradient-via-pos":[{via:sr()}],"gradient-to-pos":[{to:sr()}],"gradient-from":[{from:x()}],"gradient-via":[{via:x()}],"gradient-to":[{to:x()}],rounded:[{rounded:H()}],"rounded-s":[{"rounded-s":H()}],"rounded-e":[{"rounded-e":H()}],"rounded-t":[{"rounded-t":H()}],"rounded-r":[{"rounded-r":H()}],"rounded-b":[{"rounded-b":H()}],"rounded-l":[{"rounded-l":H()}],"rounded-ss":[{"rounded-ss":H()}],"rounded-se":[{"rounded-se":H()}],"rounded-ee":[{"rounded-ee":H()}],"rounded-es":[{"rounded-es":H()}],"rounded-tl":[{"rounded-tl":H()}],"rounded-tr":[{"rounded-tr":H()}],"rounded-br":[{"rounded-br":H()}],"rounded-bl":[{"rounded-bl":H()}],"border-w":[{border:X()}],"border-w-x":[{"border-x":X()}],"border-w-y":[{"border-y":X()}],"border-w-s":[{"border-s":X()}],"border-w-e":[{"border-e":X()}],"border-w-bs":[{"border-bs":X()}],"border-w-be":[{"border-be":X()}],"border-w-t":[{"border-t":X()}],"border-w-r":[{"border-r":X()}],"border-w-b":[{"border-b":X()}],"border-w-l":[{"border-l":X()}],"divide-x":[{"divide-x":X()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":X()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...yt(),"hidden","none"]}],"divide-style":[{divide:[...yt(),"hidden","none"]}],"border-color":[{border:x()}],"border-color-x":[{"border-x":x()}],"border-color-y":[{"border-y":x()}],"border-color-s":[{"border-s":x()}],"border-color-e":[{"border-e":x()}],"border-color-bs":[{"border-bs":x()}],"border-color-be":[{"border-be":x()}],"border-color-t":[{"border-t":x()}],"border-color-r":[{"border-r":x()}],"border-color-b":[{"border-b":x()}],"border-color-l":[{"border-l":x()}],"divide-color":[{divide:x()}],"outline-style":[{outline:[...yt(),"none","hidden"]}],"outline-offset":[{"outline-offset":[$,p,b]}],"outline-w":[{outline:["",$,Ve,we]}],"outline-color":[{outline:x()}],shadow:[{shadow:["","none",u,ut,ct]}],"shadow-color":[{shadow:x()}],"inset-shadow":[{"inset-shadow":["none",d,ut,ct]}],"inset-shadow-color":[{"inset-shadow":x()}],"ring-w":[{ring:X()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:x()}],"ring-offset-w":[{"ring-offset":[$,we]}],"ring-offset-color":[{"ring-offset":x()}],"inset-ring-w":[{"inset-ring":X()}],"inset-ring-color":[{"inset-ring":x()}],"text-shadow":[{"text-shadow":["none",f,ut,ct]}],"text-shadow-color":[{"text-shadow":x()}],opacity:[{opacity:[$,p,b]}],"mix-blend":[{"mix-blend":[...ro(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ro()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[$]}],"mask-image-linear-from-pos":[{"mask-linear-from":G()}],"mask-image-linear-to-pos":[{"mask-linear-to":G()}],"mask-image-linear-from-color":[{"mask-linear-from":x()}],"mask-image-linear-to-color":[{"mask-linear-to":x()}],"mask-image-t-from-pos":[{"mask-t-from":G()}],"mask-image-t-to-pos":[{"mask-t-to":G()}],"mask-image-t-from-color":[{"mask-t-from":x()}],"mask-image-t-to-color":[{"mask-t-to":x()}],"mask-image-r-from-pos":[{"mask-r-from":G()}],"mask-image-r-to-pos":[{"mask-r-to":G()}],"mask-image-r-from-color":[{"mask-r-from":x()}],"mask-image-r-to-color":[{"mask-r-to":x()}],"mask-image-b-from-pos":[{"mask-b-from":G()}],"mask-image-b-to-pos":[{"mask-b-to":G()}],"mask-image-b-from-color":[{"mask-b-from":x()}],"mask-image-b-to-color":[{"mask-b-to":x()}],"mask-image-l-from-pos":[{"mask-l-from":G()}],"mask-image-l-to-pos":[{"mask-l-to":G()}],"mask-image-l-from-color":[{"mask-l-from":x()}],"mask-image-l-to-color":[{"mask-l-to":x()}],"mask-image-x-from-pos":[{"mask-x-from":G()}],"mask-image-x-to-pos":[{"mask-x-to":G()}],"mask-image-x-from-color":[{"mask-x-from":x()}],"mask-image-x-to-color":[{"mask-x-to":x()}],"mask-image-y-from-pos":[{"mask-y-from":G()}],"mask-image-y-to-pos":[{"mask-y-to":G()}],"mask-image-y-from-color":[{"mask-y-from":x()}],"mask-image-y-to-color":[{"mask-y-to":x()}],"mask-image-radial":[{"mask-radial":[p,b]}],"mask-image-radial-from-pos":[{"mask-radial-from":G()}],"mask-image-radial-to-pos":[{"mask-radial-to":G()}],"mask-image-radial-from-color":[{"mask-radial-from":x()}],"mask-image-radial-to-color":[{"mask-radial-to":x()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":I()}],"mask-image-conic-pos":[{"mask-conic":[$]}],"mask-image-conic-from-pos":[{"mask-conic-from":G()}],"mask-image-conic-to-pos":[{"mask-conic-to":G()}],"mask-image-conic-from-color":[{"mask-conic-from":x()}],"mask-image-conic-to-color":[{"mask-conic-to":x()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Qn()}],"mask-repeat":[{mask:eo()}],"mask-size":[{mask:to()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",p,b]}],filter:[{filter:["","none",p,b]}],blur:[{blur:no()}],brightness:[{brightness:[$,p,b]}],contrast:[{contrast:[$,p,b]}],"drop-shadow":[{"drop-shadow":["","none",y,ut,ct]}],"drop-shadow-color":[{"drop-shadow":x()}],grayscale:[{grayscale:["",$,p,b]}],"hue-rotate":[{"hue-rotate":[$,p,b]}],invert:[{invert:["",$,p,b]}],saturate:[{saturate:[$,p,b]}],sepia:[{sepia:["",$,p,b]}],"backdrop-filter":[{"backdrop-filter":["","none",p,b]}],"backdrop-blur":[{"backdrop-blur":no()}],"backdrop-brightness":[{"backdrop-brightness":[$,p,b]}],"backdrop-contrast":[{"backdrop-contrast":[$,p,b]}],"backdrop-grayscale":[{"backdrop-grayscale":["",$,p,b]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[$,p,b]}],"backdrop-invert":[{"backdrop-invert":["",$,p,b]}],"backdrop-opacity":[{"backdrop-opacity":[$,p,b]}],"backdrop-saturate":[{"backdrop-saturate":[$,p,b]}],"backdrop-sepia":[{"backdrop-sepia":["",$,p,b]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":h()}],"border-spacing-x":[{"border-spacing-x":h()}],"border-spacing-y":[{"border-spacing-y":h()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",p,b]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[$,"initial",p,b]}],ease:[{ease:["linear","initial",A,p,b]}],delay:[{delay:[$,p,b]}],animate:[{animate:["none",C,p,b]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,p,b]}],"perspective-origin":[{"perspective-origin":P()}],rotate:[{rotate:vt()}],"rotate-x":[{"rotate-x":vt()}],"rotate-y":[{"rotate-y":vt()}],"rotate-z":[{"rotate-z":vt()}],scale:[{scale:wt()}],"scale-x":[{"scale-x":wt()}],"scale-y":[{"scale-y":wt()}],"scale-z":[{"scale-z":wt()}],"scale-3d":["scale-3d"],skew:[{skew:ir()}],"skew-x":[{"skew-x":ir()}],"skew-y":[{"skew-y":ir()}],transform:[{transform:[p,b,"","none","gpu","cpu"]}],"transform-origin":[{origin:P()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:xt()}],"translate-x":[{"translate-x":xt()}],"translate-y":[{"translate-y":xt()}],"translate-z":[{"translate-z":xt()}],"translate-none":["translate-none"],zoom:[{zoom:[ae,p,b]}],accent:[{accent:x()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:x()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",p,b]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":x()}],"scrollbar-track-color":[{"scrollbar-track":x()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":h()}],"scroll-mx":[{"scroll-mx":h()}],"scroll-my":[{"scroll-my":h()}],"scroll-ms":[{"scroll-ms":h()}],"scroll-me":[{"scroll-me":h()}],"scroll-mbs":[{"scroll-mbs":h()}],"scroll-mbe":[{"scroll-mbe":h()}],"scroll-mt":[{"scroll-mt":h()}],"scroll-mr":[{"scroll-mr":h()}],"scroll-mb":[{"scroll-mb":h()}],"scroll-ml":[{"scroll-ml":h()}],"scroll-p":[{"scroll-p":h()}],"scroll-px":[{"scroll-px":h()}],"scroll-py":[{"scroll-py":h()}],"scroll-ps":[{"scroll-ps":h()}],"scroll-pe":[{"scroll-pe":h()}],"scroll-pbs":[{"scroll-pbs":h()}],"scroll-pbe":[{"scroll-pbe":h()}],"scroll-pt":[{"scroll-pt":h()}],"scroll-pr":[{"scroll-pr":h()}],"scroll-pb":[{"scroll-pb":h()}],"scroll-pl":[{"scroll-pl":h()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",p,b]}],fill:[{fill:["none",...x()]}],"stroke-w":[{stroke:[$,Ve,we,Fr]}],stroke:[{stroke:["none",...x()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function j(...e){return pi($s(e))}var yi=M("<p class=font-semibold>"),vi=M("<div class=flex-1><div class=text-muted-foreground>");const wi={info:{wrap:"border-sky-500/30 bg-sky-500/10",icon:"text-sky-500",Icon:xs},success:{wrap:"border-emerald-500/30 bg-emerald-500/10",icon:"text-emerald-500",Icon:hs},warning:{wrap:"border-amber-500/30 bg-amber-500/10",icon:"text-amber-500",Icon:Es},danger:{wrap:"border-rose-500/30 bg-rose-500/10",icon:"text-rose-500",Icon:ys}};function xi(e){const t=()=>wi[e.tone??"info"];return m($r,{get class(){return j("flex gap-3 rounded-lg border p-3 text-sm text-foreground",t().wrap,e.class)},get children(){return[m(it,{get component(){return t().Icon},get class(){return j("mt-0.5 h-4 w-4 shrink-0",t().icon)}}),(()=>{var r=vi(),n=r.firstChild;return T(r,m(te,{get when(){return e.title},get children(){var o=yi();return T(o,()=>e.title),o}}),n),T(n,()=>e.children),r})()]}})}var ki={};at(ki,{Fallback:()=>Jr,Image:()=>dt,Img:()=>Qr,Root:()=>en,useImageContext:()=>Nt});var Zr=pe();function Nt(){const e=ye(Zr);if(e===void 0)throw new Error("[kobalte]: `useImageContext` must be used within an `Image.Root` component");return e}function Jr(e){const t=Nt(),[r,n]=B(t.fallbackDelay()===void 0);return se(()=>{const o=t.fallbackDelay();if(o!==void 0){const s=window.setTimeout(()=>n(!0),o);ee(()=>window.clearTimeout(s))}}),m(te,{get when(){return Ot(()=>!!r())()&&t.imageLoadingStatus()!=="loaded"},get children(){return m(ie,_({as:"span"},e))}})}function Qr(e){const t=Nt(),[r,n]=B("idle");return se(lo(()=>e.src,o=>{if(!o){n("error");return}let s=!0;const i=new window.Image,a=l=>()=>{s&&n(l)};n("loading"),e.crossOrigin!==void 0&&(i.crossOrigin=e.crossOrigin),e.referrerPolicy!==void 0&&(i.referrerPolicy=e.referrerPolicy),i.onload=a("loaded"),i.onerror=a("error"),i.src=o,ee(()=>{s=!1})})),se(()=>{const o=r();o!=="idle"&&t.onImageLoadingStatusChange(o)}),m(te,{get when(){return r()==="loaded"},get children(){return m(ie,_({as:"img"},e))}})}function en(e){const[t,r]=q(e,["fallbackDelay","onLoadingStatusChange"]),[n,o]=B("idle"),s={fallbackDelay:()=>t.fallbackDelay,imageLoadingStatus:n,onImageLoadingStatusChange:i=>{var a;o(i),(a=t.onLoadingStatusChange)==null||a.call(t,i)}};return m(Zr.Provider,{value:s,get children(){return m(ie,_({as:"span"},r))}})}var dt=Object.assign(en,{Fallback:Jr,Img:Qr});function Si(e){return m(dt,{get class(){return j("inline-flex h-9 w-9 shrink-0 overflow-hidden rounded-full bg-muted",e.class)},get children(){return[m(dt.Img,{get src(){return e.src},get alt(){return e.alt},class:"h-full w-full object-cover"}),m(dt.Fallback,{class:"grid h-full w-full place-items-center text-xs font-medium text-muted-foreground",get children(){return e.fallback}})]}})}var Ci=M("<span>");const Ai={neutral:"bg-muted text-muted-foreground ring-border",success:"bg-emerald-500/15 text-emerald-600 ring-emerald-500/30",warning:"bg-amber-500/15 text-amber-600 ring-amber-500/30",danger:"bg-rose-500/15 text-rose-600 ring-rose-500/30",info:"bg-sky-500/15 text-sky-600 ring-sky-500/30"},Ei="badge inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-xs font-semibold ring-1 ring-inset whitespace-nowrap";function $i(e){const[t,r]=q(e,["tone","class","children"]);return(()=>{var n=Ci();return Ae(n,_({get class(){return j(Ei,Ai[t.tone??"neutral"],t.class)}},r),!1,!0),T(n,()=>t.children),n})()}var Pi=M("<button>");const Ii={primary:"bg-primary text-primary-foreground hover:bg-primary/90",secondary:"bg-muted text-foreground hover:bg-muted/70",outline:"border border-border bg-transparent text-foreground hover:bg-muted",ghost:"bg-transparent text-foreground hover:bg-muted"},Ti="inline-flex items-center justify-center rounded-md px-3 py-2 text-sm font-medium transition-[color,background-color,transform] duration-150 active:scale-[0.97] focus:outline-none focus:ring-2 focus:ring-ring disabled:pointer-events-none disabled:opacity-50";function Oi(e){const[t,r]=q(e,["variant","class","type","children"]);return(()=>{var n=Pi();return Ae(n,_({get type(){return t.type??"button"},get class(){return j(Ti,Ii[t.variant??"primary"],t.class)}},r),!1,!0),T(n,()=>t.children),n})()}var _i=M('<span class="text-base font-normal text-muted-foreground">'),Li=M('<div><span class="flex items-baseline gap-2 tabular-nums text-4xl font-bold tracking-tight text-foreground"><span>'),Mi=M("<svg><polyline stroke=hsl(var(--primary)) stroke-width=1.5 stroke-linecap=round style=transform-origin:center;transform-box:view-box></svg>",!1,!0,!1),Ri=M('<svg role=img aria-label="Analog clock"><circle fill=none stroke=hsl(var(--border)) stroke-width=2></circle><polyline stroke=hsl(var(--foreground)) stroke-width=4 stroke-linecap=round style=transform-origin:center;transform-box:view-box></polyline><polyline stroke=hsl(var(--foreground)) stroke-width=3 stroke-linecap=round style=transform-origin:center;transform-box:view-box></polyline><circle r=3.5 fill=hsl(var(--primary))>'),zi=M("<svg><line stroke=hsl(var(--muted-foreground)) stroke-linecap=round></svg>",!1,!0,!1);const Fe=e=>String(e).padStart(2,"0");function Ni(e,t){if(!t)return{hours:e.getHours(),minutes:e.getMinutes(),seconds:e.getSeconds()};const r=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"}).formatToParts(e),n=o=>{var s;return Number(((s=r.find(i=>i.type===o))==null?void 0:s.value)??0)};return{hours:n("hour")%24,minutes:n("minute"),seconds:n("second")}}function Di(e){const t=()=>{const{hours:r,minutes:n,seconds:o}=e.parts;let s=r,i="";return e.hour12&&(i=s>=12?"PM":"AM",s=s%12,s===0&&(s=12)),{time:e.seconds?`${Fe(s)}:${Fe(n)}:${Fe(o)}`:`${Fe(s)}:${Fe(n)}`,suffix:i}};return(()=>{var r=Li(),n=r.firstChild,o=n.firstChild;return T(o,()=>t().time),T(n,m(te,{get when(){return e.hour12},get children(){var s=_i();return T(s,()=>t().suffix),s}}),null),V(()=>fe(r,j("flex flex-col items-center justify-center",e.class))),r})()}function ji(e){const t=()=>e.size,r=()=>t()/2,n=()=>t()/2,o=()=>t()/2,s=()=>e.parts.hours%12*30+e.parts.minutes*.5,i=()=>e.parts.minutes*6+e.parts.seconds*.1,a=()=>e.parts.seconds*6,l=Array.from({length:12},(u,d)=>d),c=u=>{const d=o()*u;return`${r()},${n()} ${r()},${n()-d}`};return(()=>{var u=Ri(),d=u.firstChild,f=d.nextSibling,y=f.nextSibling,v=y.nextSibling;return T(u,m(st,{each:l,children:g=>{const w=g*30,A=o()-4,C=o()-(g%3===0?14:9),O=r()+A*Math.sin(w*Math.PI/180),I=n()-A*Math.cos(w*Math.PI/180),P=r()+C*Math.sin(w*Math.PI/180),z=n()-C*Math.cos(w*Math.PI/180);return(()=>{var k=zi();return E(k,"x1",O),E(k,"y1",I),E(k,"x2",P),E(k,"y2",z),E(k,"stroke-width",g%3===0?2:1),k})()}}),f),T(u,m(te,{get when(){return e.seconds},get children(){var g=Mi();return V(w=>{var A=c(.75),C=`rotate(${a()}deg)`;return A!==w.e&&E(g,"points",w.e=A),C!==w.t&&Ce(g,"transform",w.t=C),w},{e:void 0,t:void 0}),g}}),v),V(g=>{var w=t(),A=t(),C=`0 0 ${t()} ${t()}`,O=j("inline-block",e.class),I=r(),P=n(),z=o()-2,k=c(.45),h=`rotate(${s()}deg)`,S=c(.65),ne=`rotate(${i()}deg)`,L=r(),Y=n();return w!==g.e&&E(u,"width",g.e=w),A!==g.t&&E(u,"height",g.t=A),C!==g.a&&E(u,"viewBox",g.a=C),O!==g.o&&E(u,"class",g.o=O),I!==g.i&&E(d,"cx",g.i=I),P!==g.n&&E(d,"cy",g.n=P),z!==g.s&&E(d,"r",g.s=z),k!==g.h&&E(f,"points",g.h=k),h!==g.r&&Ce(f,"transform",g.r=h),S!==g.d&&E(y,"points",g.d=S),ne!==g.l&&Ce(y,"transform",g.l=ne),L!==g.u&&E(v,"cx",g.u=L),Y!==g.c&&E(v,"cy",g.c=Y),g},{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,l:void 0,u:void 0,c:void 0}),u})()}function Vi(e){const[t,r]=B(new Date);Ct(()=>{const l=setInterval(()=>r(new Date),1e3);ee(()=>clearInterval(l))});const n=()=>e.variant??"digital",o=()=>e.seconds??!0,s=()=>e.hour12??!1,i=()=>e.size??160,a=()=>Ni(t(),e.timeZone);return m(te,{get when(){return n()==="analog"},get fallback(){return m(Di,{get parts(){return a()},get seconds(){return o()},get hour12(){return s()},get class(){return e.class}})},get children(){return m(ji,{get parts(){return a()},get seconds(){return o()},get size(){return i()},get class(){return e.class}})}})}var Fi=M('<span class="relative inline-block h-[1em] w-[0.62em] overflow-hidden align-top"><span class="absolute inset-x-0 top-0 flex flex-col transition-transform duration-500 ease-out">'),Gi=M('<span class="block h-[1em] text-center leading-none">'),Ui=M('<span class="flex text-2xl font-bold tabular-nums text-foreground">'),Bi=M("<div>"),Wi=M('<div class="flex flex-col items-center"><span class="text-[10px] uppercase tracking-wide text-muted-foreground">');const Dt=1e3,jt=60*Dt,Vt=60*jt,tn=24*Vt,Ki=[0,1,2,3,4,5,6,7,8,9],Ft=e=>String(e).padStart(2,"0");function qi(e){const t=()=>e.char>="0"&&e.char<="9"?Number(e.char):0;return(()=>{var r=Fi(),n=r.firstChild;return T(n,m(Tt,{each:Ki,children:o=>(()=>{var s=Gi();return T(s,o),s})()})),V(o=>Ce(n,"transform",`translateY(${t()*-10}%)`)),r})()}function Yi(e){const t=()=>e.value.split("");return(()=>{var r=Ui();return T(r,m(Tt,{get each(){return t()},children:n=>m(qi,{get char(){return n()}})})),r})()}function Hi(e){const t=W(()=>e.to.getTime()),r=()=>Math.max(0,t()-Date.now()),[n,o]=B(r());let s=!1;const i=f=>{var y;f<=0&&!s&&(s=!0,(y=e.onComplete)==null||y.call(e))};i(n()),Ct(()=>{const f=setInterval(()=>{const y=r();o(y),i(y)},Dt);ee(()=>clearInterval(f))});const a=()=>Math.floor(n()/tn),l=()=>Math.floor(n()%tn/Vt),c=()=>Math.floor(n()%Vt/jt),u=()=>Math.floor(n()%jt/Dt),d=()=>[{label:"Days",value:String(a())},{label:"Hours",value:Ft(l())},{label:"Mins",value:Ft(c())},{label:"Secs",value:Ft(u())}];return(()=>{var f=Bi();return T(f,m(Tt,{get each(){return d()},children:y=>(()=>{var v=Wi(),g=v.firstChild;return T(v,m(Yi,{get value(){return y().value}}),g),T(g,()=>y().label),v})()})),V(()=>fe(f,j("flex gap-4",e.class))),f})()}var Xi=M("<kbd>");const Zi="inline-flex min-w-[1.5rem] items-center justify-center rounded border border-border bg-muted px-1.5 py-0.5 font-mono text-xs text-muted-foreground shadow-sm";function Ji(e){return(()=>{var t=Xi();return T(t,()=>e.children),V(()=>fe(t,j(Zi,e.class))),t})()}function Qi(e){return(...t)=>{for(const r of e)r&&r(...t)}}const ea=e=>typeof e=="function"&&!e.length?e():e,ta=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g;function rn(e){const t={};let r;for(;r=ta.exec(e);)t[r[1]]=r[2];return t}function Gt(e,t){if(typeof e=="string"){if(typeof t=="string")return`${e};${t}`;e=rn(e)}else typeof t=="string"&&(t=rn(t));return{...e,...t}}function ra(...e){return Qi(e)}function na(e){return Object.prototype.toString.call(e)==="[object String]"}function nn(e){return t=>`${e()}-${t}`}function on(e,t=Number.NEGATIVE_INFINITY,r=Number.POSITIVE_INFINITY){return Math.min(Math.max(e,t),r)}function Ge(e,t){return _(e,t)}var Ue=new Map,sn=new Set;function an(){if(typeof window>"u"||document.body===null)return;const e=r=>{if(!r.target)return;let n=Ue.get(r.target);n||(n=new Set,Ue.set(r.target,n),r.target.addEventListener("transitioncancel",t)),n.add(r.propertyName)},t=r=>{if(!r.target)return;const n=Ue.get(r.target);if(n&&(n.delete(r.propertyName),n.size===0&&(r.target.removeEventListener("transitioncancel",t),Ue.delete(r.target)),Ue.size===0)){for(const o of sn)o();sn.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?an():document.addEventListener("DOMContentLoaded",an));let Ut=new Map,Bt=!1;try{Bt=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let ft=!1;try{ft=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const ln={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class oa{constructor(t,r={}){this.numberFormatter=sa(t,r),this.options=r}format(t){var n;let r="";if(!Bt&&this.options.signDisplay!=null?r=ia(this.numberFormatter,this.options.signDisplay,t):r=this.numberFormatter.format(t),this.options.style==="unit"&&!ft){let{unit:o,unitDisplay:s="short",locale:i}=this.resolvedOptions();if(!o)return r;let a=(n=ln[o])==null?void 0:n[s];r+=a[i]||a.default}return r}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,r){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,r);if(r<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(r)}`}formatRangeToParts(t,r){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,r);if(r<t)throw new RangeError("End date must be >= start date");let n=this.numberFormatter.formatToParts(t),o=this.numberFormatter.formatToParts(r);return[...n.map(s=>({...s,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(s=>({...s,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!Bt&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!ft&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}}function sa(e,t={}){var s;let{numberingSystem:r}=t;if(r&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${r}`),t.style==="unit"&&!ft){let{unit:i,unitDisplay:a="short"}=t;if(!i)throw new Error('unit option must be provided with style: "unit"');if(!((s=ln[i])!=null&&s[a]))throw new Error(`Unsupported unit ${i} with unitDisplay = ${a}`);t={...t,style:"decimal"}}let n=e+(t?Object.entries(t).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(Ut.has(n))return Ut.get(n);let o=new Intl.NumberFormat(e,t);return Ut.set(n,o),o}function ia(e,t,r){if(t==="auto")return e.format(r);if(t==="never")return e.format(Math.abs(r));{let n=!1;if(t==="always"?n=r>0||Object.is(r,0):t==="exceptZero"&&(Object.is(r,-0)||Object.is(r,0)?r=Math.abs(r):n=r>0),n){let o=e.format(-r),s=e.format(r),i=o.replace(s,"").replace(/\u200e|\u061C/,"");return[...i].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(s,"!!!").replace(i,"+").replace("!!!",s)}else return e.format(r)}}var aa=new Set(["Avst","Arab","Armi","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),la=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function ca(e){if(Intl.Locale){const r=new Intl.Locale(e).maximize().script??"";return aa.has(r)}const t=e.split("-")[0];return la.has(t)}function ua(e){return ca(e)?"rtl":"ltr"}function cn(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:ua(e)}}var Wt=cn(),Be=new Set;function un(){Wt=cn();for(const e of Be)e(Wt)}function da(){const[e,t]=B(Wt),r=W(()=>e());return Ct(()=>{Be.size===0&&window.addEventListener("languagechange",un),Be.add(t),ee(()=>{Be.delete(t),Be.size===0&&window.removeEventListener("languagechange",un)})}),{locale:()=>r().locale,direction:()=>r().direction}}var fa=pe();function ga(){const e=da();return ye(fa)||e}function dn(e){const{locale:t}=ga();return W(()=>new oa(t(),ea(e)))}function fn(e){return t=>(e(t),()=>e(void 0))}var gn=pe();function gt(){const e=ye(gn);if(e===void 0)throw new Error("[kobalte]: `useMeterContext` must be used within a `Meter.Root` component");return e}function ma(e){const t=gt(),[r,n]=q(e,["style"]);return m(ie,_({as:"div",get style(){return Gt({"--kb-meter-fill-width":t.meterFillWidth()},r.style)}},()=>t.dataset(),n))}function ha(e){const t=gt(),r=Ge({id:t.generateId("label")},e),[n,o]=q(r,["id"]);return se(()=>ee(t.registerLabelId(n.id))),m(ie,_({as:"span",get id(){return n.id}},()=>t.dataset(),o))}function ba(e){const t=`meter-${pr()}`,r=Ge({id:t,value:0,minValue:0,maxValue:100,role:"meter",indeterminate:!1},e),[n,o]=q(r,["value","minValue","maxValue","getValueLabel","role","aria-valuetext","aria-labelledby","aria-valuemax","aria-valuemin","aria-valuenow","indeterminate"]),[s,i]=B(),a=dn(()=>({style:"percent"})),l=()=>on(n.value,n.minValue,n.maxValue),c=()=>(l()-n.minValue)/(n.maxValue-n.minValue),u=()=>{if(!n.indeterminate)return n.getValueLabel?n.getValueLabel({value:l(),min:n.minValue,max:n.maxValue}):a().format(c())},d=()=>`${c()*100}%`,f=W(()=>({})),y={dataset:f,value:l,valuePercent:c,valueLabel:u,labelId:s,meterFillWidth:d,generateId:nn(()=>o.id),registerLabelId:fn(i)};return m(gn.Provider,{value:y,get children(){return m(ie,_({as:"div",get role(){return n.role||"meter"},get"aria-valuenow"(){return Ot(()=>!!n.indeterminate)()?void 0:l()},get"aria-valuemin"(){return n.minValue},get"aria-valuemax"(){return n.maxValue},get"aria-valuetext"(){return u()},get"aria-labelledby"(){return s()}},f,o))}})}function pa(e){const t=gt();return m(ie,_({as:"div"},()=>t.dataset(),e))}function ya(e){const t=gt();return m(ie,_({as:"div"},()=>t.dataset(),e,{get children(){return t.valueLabel()}}))}var le=Object.assign(ba,{Fill:ma,Label:ha,Track:pa,ValueLabel:ya}),va=M('<div class="flex items-center justify-between text-sm text-foreground">');function wa(e){const t=()=>{const r=e.max??100;return r<=0?0:Math.max(0,Math.min(100,e.value/r*100))};return m(le,{get value(){return e.value},minValue:0,get maxValue(){return e.max??100},get class(){return j("flex flex-col gap-1.5",e.class)},get children(){return[m(te,{get when(){return e.label},get children(){var r=va();return T(r,m(le.Label,{get children(){return e.label}}),null),T(r,m(le.ValueLabel,{class:"text-muted-foreground"}),null),r}}),m(le.Track,{class:"h-2 overflow-hidden rounded-full bg-muted",get children(){return m(le.Fill,{class:"h-full rounded-full bg-primary transition-all duration-500",get style(){return{width:`${t()}%`}}})}})]}})}var xa={};at(xa,{Fill:()=>hn,Label:()=>bn,Progress:()=>Pe,Root:()=>pn,Track:()=>yn,ValueLabel:()=>vn,useProgressContext:()=>We});var mn=pe();function We(){const e=ye(mn);if(e===void 0)throw new Error("[kobalte]: `useProgressContext` must be used within a `Progress.Root` component");return e}function hn(e){const t=We(),[r,n]=q(e,["style"]);return m(le.Fill,_({get style(){return Gt({"--kb-progress-fill-width":t.progressFillWidth()},r.style)}},()=>t.dataset(),n))}function bn(e){const t=We(),r=Ge({id:t.generateId("label")},e),[n,o]=q(r,["id"]);return se(()=>ee(t.registerLabelId(n.id))),m(le.Label,_({get id(){return n.id}},()=>t.dataset(),o))}function pn(e){const t=`progress-${pr()}`,r=Ge({id:t,value:0,minValue:0,maxValue:100},e),[n,o]=q(r,["value","minValue","maxValue","indeterminate","getValueLabel"]),[s,i]=B(),a=dn(()=>({style:"percent"})),l=()=>on(n.value,n.minValue,n.maxValue),c=()=>(l()-n.minValue)/(n.maxValue-n.minValue),u=()=>{if(!n.indeterminate)return n.getValueLabel?n.getValueLabel({value:l(),min:n.minValue,max:n.maxValue}):a().format(c())},d=()=>n.indeterminate?void 0:`${c()*100}%`,f=W(()=>{let v;return n.indeterminate||(v=c()===1?"complete":"loading"),{"data-progress":v,"data-indeterminate":n.indeterminate?"":void 0}}),y={dataset:f,value:l,valuePercent:c,valueLabel:u,labelId:s,progressFillWidth:d,generateId:nn(()=>o.id),registerLabelId:fn(i)};return m(mn.Provider,{value:y,get children(){return m(le,_({role:"progressbar",get indeterminate(){return n.indeterminate||!1}},f,r))}})}function yn(e){const t=We();return m(le.Track,_(()=>t.dataset(),e))}function vn(e){const t=We();return m(le.ValueLabel,_(()=>t.dataset(),e))}var Pe=Object.assign(pn,{Fill:hn,Label:bn,Track:yn,ValueLabel:vn}),ka=M('<div class="flex items-center justify-between text-sm text-foreground">');function Sa(e){const t=()=>{const r=e.max??100;return r<=0?0:Math.max(0,Math.min(100,e.value/r*100))};return m(Pe,{get value(){return e.value},minValue:0,get maxValue(){return e.max??100},get class(){return j("flex flex-col gap-1.5",e.class)},get children(){return[m(te,{get when(){return e.label},get children(){var r=ka();return T(r,m(Pe.Label,{get children(){return e.label}}),null),T(r,m(Pe.ValueLabel,{class:"text-muted-foreground"}),null),r}}),m(Pe.Track,{class:"h-2 overflow-hidden rounded-full bg-muted",get children(){return m(Pe.Fill,{class:"h-full rounded-full bg-primary transition-all duration-500",get style(){return{width:`${t()}%`}}})}})]}})}var Ca=M("<div role=radiogroup>"),Aa=M("<div role=img>"),Ea=M('<button type=button role=radio class="rounded outline-none focus-visible:ring-2 focus-visible:ring-ring/40">');function $a(e){const[t,r]=B(0),n=()=>e.max??5,o=()=>Array.from({length:n()},(l,c)=>c+1),s=()=>t()>0?t():e.value,i=l=>{var c;e.readonly||(c=e.onChange)==null||c.call(e,l)},a=l=>j("h-5 w-5 transition-colors",l<=s()?"fill-primary text-primary":"fill-transparent text-muted-foreground");return m(te,{get when(){return!e.readonly},get fallback(){return(()=>{var l=Aa();return T(l,m(st,{get each(){return o()},children:c=>m(Ir,{get class(){return a(c)},"aria-hidden":"true"})})),V(c=>{var u=j("inline-flex items-center gap-1",e.class),d=`Rating ${e.value} of ${n()}`;return u!==c.e&&fe(l,c.e=u),d!==c.t&&E(l,"aria-label",c.t=d),c},{e:void 0,t:void 0}),l})()},get children(){var l=Ca();return l.addEventListener("mouseleave",()=>r(0)),T(l,m(st,{get each(){return o()},children:c=>(()=>{var u=Ea();return u.$$keydown=d=>{d.key==="ArrowRight"||d.key==="ArrowUp"?(d.preventDefault(),i(Math.min(e.value+1,n()))):(d.key==="ArrowLeft"||d.key==="ArrowDown")&&(d.preventDefault(),i(Math.max(e.value-1,0)))},u.$$click=()=>i(c),u.addEventListener("blur",()=>r(0)),u.addEventListener("focus",()=>r(c)),u.addEventListener("mouseenter",()=>r(c)),T(u,m(Ir,{get class(){return a(c)},"aria-hidden":"true"})),V(d=>{var f=e.value===c,y=`Rate ${c} of ${n()}`;return f!==d.e&&E(u,"aria-checked",d.e=f),y!==d.t&&E(u,"aria-label",d.t=y),d},{e:void 0,t:void 0}),u})()})),V(()=>fe(l,j("inline-flex items-center gap-1",e.class))),l}})}vr(["click","keydown"]);var Pa=M('<div role=progressbar aria-valuemin=0 aria-valuemax=100><svg class=-rotate-90><circle fill=none stroke=hsl(var(--muted))></circle><circle fill=none stroke=hsl(var(--primary)) stroke-linecap=round class=transition-all></circle></svg><div class="absolute inset-0 flex items-center justify-center text-sm font-medium text-foreground">');function Ia(e){const t=()=>e.size??96,r=()=>e.thickness??8,n=()=>Math.min(100,Math.max(0,e.value)),o=()=>(t()-r())/2,s=()=>2*Math.PI*o(),i=()=>s()*(1-n()/100);return(()=>{var a=Pa(),l=a.firstChild,c=l.firstChild,u=c.nextSibling,d=l.nextSibling;return T(d,m(te,{get when(){return e.label},get fallback(){return`${Math.round(n())}%`},get children(){return e.label}})),V(f=>{var y=n(),v=j("relative inline-flex items-center justify-center",e.class),g=`${t()}px`,w=`${t()}px`,A=t(),C=t(),O=`0 0 ${t()} ${t()}`,I=t()/2,P=t()/2,z=o(),k=r(),h=t()/2,S=t()/2,ne=o(),L=r(),Y=String(s()),Q=String(i());return y!==f.e&&E(a,"aria-valuenow",f.e=y),v!==f.t&&fe(a,f.t=v),g!==f.a&&Ce(a,"width",f.a=g),w!==f.o&&Ce(a,"height",f.o=w),A!==f.i&&E(l,"width",f.i=A),C!==f.n&&E(l,"height",f.n=C),O!==f.s&&E(l,"viewBox",f.s=O),I!==f.h&&E(c,"cx",f.h=I),P!==f.r&&E(c,"cy",f.r=P),z!==f.d&&E(c,"r",f.d=z),k!==f.l&&E(c,"stroke-width",f.l=k),h!==f.u&&E(u,"cx",f.u=h),S!==f.c&&E(u,"cy",f.c=S),ne!==f.w&&E(u,"r",f.w=ne),L!==f.m&&E(u,"stroke-width",f.m=L),Y!==f.f&&E(u,"stroke-dasharray",f.f=Y),Q!==f.y&&E(u,"stroke-dashoffset",f.y=Q),f},{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,l:void 0,u:void 0,c:void 0,w:void 0,m:void 0,f:void 0,y:void 0}),a})()}function Ta(e,t){const[r,n]=B(wn(t==null?void 0:t()));return se(()=>{var o;n(((o=e())==null?void 0:o.tagName.toLowerCase())||wn(t==null?void 0:t()))}),r}function wn(e){return na(e)?e:void 0}var Oa={};at(Oa,{Root:()=>xn,Separator:()=>kn});function xn(e){let t;const r=Ge({orientation:"horizontal"},e),[n,o]=q(r,["ref","orientation"]),s=Ta(()=>t,()=>"hr");return m(ie,_({as:"hr",ref(i){var a=ra(l=>t=l,n.ref);typeof a=="function"&&a(i)},get role(){return s()!=="hr"?"separator":void 0},get"aria-orientation"(){return n.orientation==="vertical"?"vertical":void 0},get"data-orientation"(){return n.orientation}},o))}var kn=xn;function _a(e){const t=()=>e.orientation??"horizontal";return m(kn,{get orientation(){return t()},get class(){return j("shrink-0 border-0 bg-border m-0",t()==="vertical"?"w-px min-h-4 h-full self-stretch":"h-px w-full",e.class)}})}var La=M('<svg viewBox="0 0 24 24"fill=none role=status><circle class=opacity-25 cx=12 cy=12 r=10 stroke=currentColor stroke-width=4></circle><path class=opacity-75 fill=currentColor d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z">');function Ma(e){return(()=>{var t=La();return V(r=>{var n=j("h-5 w-5 animate-spin text-muted-foreground",e.class),o=e.label??"Loading";return n!==r.e&&E(t,"class",r.e=n),o!==r.t&&E(t,"aria-label",r.t=o),r},{e:void 0,t:void 0}),t})()}function Sn(e,t){e.indexOf(t)===-1&&e.push(t)}function Ra(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}const Cn=(e,t,r)=>Math.min(Math.max(r,e),t),re={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},Ke=e=>typeof e=="number",Ie=e=>Array.isArray(e)&&!Ke(e[0]),za=(e,t,r)=>{const n=t-e;return((r-e)%n+n)%n+e};function Na(e,t){return Ie(e)?e[za(0,e.length,t)]:e}const An=(e,t,r)=>-r*e+r*t+e,En=()=>{},he=e=>e,Kt=(e,t,r)=>t-e===0?1:(r-e)/(t-e);function $n(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const o=Kt(0,t,n);e.push(An(r,1,o))}}function Da(e){const t=[0];return $n(t,e-1),t}function ja(e,t=Da(e.length),r=he){const n=e.length,o=n-t.length;return o>0&&$n(t,o),s=>{let i=0;for(;i<n-2&&!(s<t[i+1]);i++);let a=Cn(0,1,Kt(t[i],t[i+1],s));return a=Na(r,i)(a),An(e[i],e[i+1],a)}}const Pn=e=>Array.isArray(e)&&Ke(e[0]),qt=e=>typeof e=="object"&&!!e.createAnimation,qe=e=>typeof e=="function",Va=e=>typeof e=="string",Yt={ms:e=>e*1e3,s:e=>e/1e3},In=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,Fa=1e-7,Ga=12;function Ua(e,t,r,n,o){let s,i,a=0;do i=t+(r-t)/2,s=In(i,n,o)-e,s>0?r=i:t=i;while(Math.abs(s)>Fa&&++a<Ga);return i}function Ye(e,t,r,n){if(e===t&&r===n)return he;const o=s=>Ua(s,0,1,e,r);return s=>s===0||s===1?s:In(o(s),t,n)}const Ba=(e,t="end")=>r=>{r=t==="end"?Math.min(r,.999):Math.max(r,.001);const n=r*e,o=t==="end"?Math.floor(n):Math.ceil(n);return Cn(0,1,o/e)},Wa={ease:Ye(.25,.1,.25,1),"ease-in":Ye(.42,0,1,1),"ease-in-out":Ye(.42,0,.58,1),"ease-out":Ye(0,0,.58,1)},Ka=/\((.*?)\)/;function Tn(e){if(qe(e))return e;if(Pn(e))return Ye(...e);const t=Wa[e];if(t)return t;if(e.startsWith("steps")){const r=Ka.exec(e);if(r){const n=r[1].split(",");return Ba(parseFloat(n[0]),n[1].trim())}}return he}class qa{constructor(t,r=[0,1],{easing:n,duration:o=re.duration,delay:s=re.delay,endDelay:i=re.endDelay,repeat:a=re.repeat,offset:l,direction:c="normal",autoplay:u=!0}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=he,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise((f,y)=>{this.resolve=f,this.reject=y}),n=n||re.easing,qt(n)){const f=n.createAnimation(r);n=f.easing,r=f.keyframes||r,o=f.duration||o}this.repeat=a,this.easing=Ie(n)?he:Tn(n),this.updateDuration(o);const d=ja(r,l,Ie(n)?n.map(Tn):he);this.tick=f=>{var y;s=s;let v=0;this.pauseTime!==void 0?v=this.pauseTime:v=(f-this.startTime)*this.rate,this.t=v,v/=1e3,v=Math.max(v-s,0),this.playState==="finished"&&this.pauseTime===void 0&&(v=this.totalDuration);const g=v/this.duration;let w=Math.floor(g),A=g%1;!A&&g>=1&&(A=1),A===1&&w--;const C=w%2;(c==="reverse"||c==="alternate"&&C||c==="alternate-reverse"&&!C)&&(A=1-A);const O=v>=this.totalDuration?1:Math.min(A,1),I=d(this.easing(O));t(I),this.pauseTime===void 0&&(this.playState==="finished"||v>=this.totalDuration+i)?(this.playState="finished",(y=this.resolve)===null||y===void 0||y.call(this,I)):this.playState!=="idle"&&(this.frameRequestId=requestAnimationFrame(this.tick))},u&&this.play()}play(){const t=performance.now();this.playState="running",this.pauseTime!==void 0?this.startTime=t-this.pauseTime:this.startTime||(this.startTime=t),this.cancelTimestamp=this.startTime,this.pauseTime=void 0,this.frameRequestId=requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=this.t}finish(){this.playState="finished",this.tick(0)}stop(){var t;this.playState="idle",this.frameRequestId!==void 0&&cancelAnimationFrame(this.frameRequestId),(t=this.reject)===null||t===void 0||t.call(this,!1)}cancel(){this.stop(),this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(t){this.duration=t,this.totalDuration=t*(this.repeat+1)}get currentTime(){return this.t}set currentTime(t){this.pauseTime!==void 0||this.rate===0?this.pauseTime=t:this.startTime=performance.now()-t/this.rate}get playbackRate(){return this.rate}set playbackRate(t){this.rate=t}}class Ya{setAnimation(t){this.animation=t,t==null||t.finished.then(()=>this.clearAnimation()).catch(()=>{})}clearAnimation(){this.animation=this.generator=void 0}}const Ht=new WeakMap;function On(e){return Ht.has(e)||Ht.set(e,{transforms:[],values:new Map}),Ht.get(e)}function Ha(e,t){return e.has(t)||e.set(t,new Ya),e.get(t)}const Xa=["","X","Y","Z"],Za=["translate","scale","rotate","skew"],Te={x:"translateX",y:"translateY",z:"translateZ"},_n={syntax:"<angle>",initialValue:"0deg",toDefaultUnit:e=>e+"deg"},Ja={translate:{syntax:"<length-percentage>",initialValue:"0px",toDefaultUnit:e=>e+"px"},rotate:_n,scale:{syntax:"<number>",initialValue:1,toDefaultUnit:he},skew:_n},Oe=new Map,mt=e=>`--motion-${e}`,ht=["x","y","z"];Za.forEach(e=>{Xa.forEach(t=>{ht.push(e+t),Oe.set(mt(e+t),Ja[e])})});const Qa=(e,t)=>ht.indexOf(e)-ht.indexOf(t),el=new Set(ht),Xt=e=>el.has(e),tl=(e,t)=>{Te[t]&&(t=Te[t]);const{transforms:r}=On(e);Sn(r,t),e.style.transform=Ln(r)},Ln=e=>e.sort(Qa).reduce(rl,"").trim(),rl=(e,t)=>`${e} ${t}(var(${mt(t)}))`,Zt=e=>e.startsWith("--"),Mn=new Set;function nl(e){if(!Mn.has(e)){Mn.add(e);try{const{syntax:t,initialValue:r}=Oe.has(e)?Oe.get(e):{};CSS.registerProperty({name:e,inherits:!1,syntax:t,initialValue:r})}catch{}}}const Jt=(e,t)=>document.createElement("div").animate(e,t),Rn={cssRegisterProperty:()=>typeof CSS<"u"&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{Jt({opacity:[1]})}catch{return!1}return!0},finished:()=>!!Jt({opacity:[0,1]},{duration:.001}).finished,linearEasing:()=>{try{Jt({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0}},Qt={},_e={};for(const e in Rn)_e[e]=()=>(Qt[e]===void 0&&(Qt[e]=Rn[e]()),Qt[e]);const ol=.015,sl=(e,t)=>{let r="";const n=Math.round(t/ol);for(let o=0;o<n;o++)r+=e(Kt(0,n-1,o))+", ";return r.substring(0,r.length-2)},zn=(e,t)=>qe(e)?_e.linearEasing()?`linear(${sl(e,t)})`:re.easing:Pn(e)?il(e):e,il=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`;function al(e,t){for(let r=0;r<e.length;r++)e[r]===null&&(e[r]=r?e[r-1]:t());return e}const ll=e=>Array.isArray(e)?e:[e];function er(e){return Te[e]&&(e=Te[e]),Xt(e)?mt(e):e}const He={get:(e,t)=>{t=er(t);let r=Zt(t)?e.style.getPropertyValue(t):getComputedStyle(e)[t];if(!r&&r!==0){const n=Oe.get(t);n&&(r=n.initialValue)}return r},set:(e,t,r)=>{t=er(t),Zt(t)?e.style.setProperty(t,r):e.style[t]=r}};function cl(e,t=!0){if(!(!e||e.playState==="finished"))try{e.stop?e.stop():(t&&e.commitStyles(),e.cancel())}catch{}}function ul(e,t){var r;let n=(t==null?void 0:t.toDefaultUnit)||he;const o=e[e.length-1];if(Va(o)){const s=((r=o.match(/(-?[\d.]+)([a-z%]*)/))===null||r===void 0?void 0:r[2])||"";s&&(n=i=>i+s)}return n}function dl(){return window.__MOTION_DEV_TOOLS_RECORD}function fl(e,t,r,n={},o){const s=dl(),i=n.record!==!1&&s;let a,{duration:l=re.duration,delay:c=re.delay,endDelay:u=re.endDelay,repeat:d=re.repeat,easing:f=re.easing,persist:y=!1,direction:v,offset:g,allowWebkitAcceleration:w=!1,autoplay:A=!0}=n;const C=On(e),O=Xt(t);let I=_e.waapi();O&&tl(e,t);const P=er(t),z=Ha(C.values,P),k=Oe.get(P);return cl(z.animation,!(qt(f)&&z.generator)&&n.record!==!1),()=>{const h=()=>{var L,Y;return(Y=(L=He.get(e,P))!==null&&L!==void 0?L:k==null?void 0:k.initialValue)!==null&&Y!==void 0?Y:0};let S=al(ll(r),h);const ne=ul(S,k);if(qt(f)){const L=f.createAnimation(S,t!=="opacity",h,P,z);f=L.easing,S=L.keyframes||S,l=L.duration||l}if(Zt(P)&&(_e.cssRegisterProperty()?nl(P):I=!1),O&&!_e.linearEasing()&&(qe(f)||Ie(f)&&f.some(qe))&&(I=!1),I){k&&(S=S.map(Q=>Ke(Q)?k.toDefaultUnit(Q):Q)),S.length===1&&(!_e.partialKeyframes()||i)&&S.unshift(h());const L={delay:Yt.ms(c),duration:Yt.ms(l),endDelay:Yt.ms(u),easing:Ie(f)?void 0:zn(f,l),direction:v,iterations:d+1,fill:"both"};a=e.animate({[P]:S,offset:g,easing:Ie(f)?f.map(Q=>zn(Q,l)):void 0},L),a.finished||(a.finished=new Promise((Q,Xe)=>{a.onfinish=Q,a.oncancel=Xe}));const Y=S[S.length-1];a.finished.then(()=>{y||(He.set(e,P,Y),a.cancel())}).catch(En),w||(a.playbackRate=1.000001)}else if(o&&O)S=S.map(L=>typeof L=="string"?parseFloat(L):L),S.length===1&&S.unshift(parseFloat(h())),a=new o(L=>{He.set(e,P,ne?ne(L):L)},S,Object.assign(Object.assign({},n),{duration:l,easing:f}));else{const L=S[S.length-1];He.set(e,P,k&&Ke(L)?k.toDefaultUnit(L):L)}return i&&s(e,t,S,{duration:l,delay:c,easing:f,repeat:d,offset:g},"motion-one"),z.setAnimation(a),a&&!A&&a.pause(),a}}const gl=(e,t)=>e[t]?Object.assign(Object.assign({},e),e[t]):Object.assign({},e);function ml(e,t){return typeof e=="string"?e=document.querySelectorAll(e):e instanceof Element&&(e=[e]),Array.from(e||[])}function Nn(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}typeof SuppressedError=="function"&&SuppressedError;const hl={any:0,all:1};function bl(e,t,{root:r,margin:n,amount:o="any"}={}){if(typeof IntersectionObserver>"u")return()=>{};const s=ml(e),i=new WeakMap,a=c=>{c.forEach(u=>{const d=i.get(u.target);if(u.isIntersecting!==!!d)if(u.isIntersecting){const f=t(u);qe(f)?i.set(u.target,f):l.unobserve(u.target)}else d&&(d(u),i.delete(u.target))})},l=new IntersectionObserver(a,{root:r,rootMargin:n,threshold:typeof o=="number"?o:hl[o]});return s.forEach(c=>l.observe(c)),()=>l.disconnect()}function pl(e,t){return typeof e!=typeof t?!0:Array.isArray(e)&&Array.isArray(t)?!yl(e,t):e!==t}function yl(e,t){const r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function vl(e){return typeof e=="object"}function Dn(e,t){if(vl(e))return e;if(e&&t)return t[e]}let be;function wl(){if(!be)return;const e=be.sort(kl).map(Sl);e.forEach(jn),e.forEach(jn),be=void 0}function tr(e){be?Sn(be,e):(be=[e],requestAnimationFrame(wl))}function xl(e){be&&Ra(be,e)}const kl=(e,t)=>e.getDepth()-t.getDepth(),Sl=e=>e.animateUpdates(),jn=e=>e.next(),Vn=(e,t)=>new CustomEvent(e,{detail:{target:t}});function rr(e,t,r){e.dispatchEvent(new CustomEvent(t,{detail:{originalEvent:r}}))}function Fn(e,t,r){e.dispatchEvent(new CustomEvent(t,{detail:{originalEntry:r}}))}const Cl={isActive:e=>!!e.inView,subscribe:(e,{enable:t,disable:r},{inViewOptions:n={}})=>{const{once:o}=n,s=Nn(n,["once"]);return bl(e,i=>{if(t(),Fn(e,"viewenter",i),!o)return a=>{r(),Fn(e,"viewleave",a)}},s)}},Gn=(e,t,r)=>n=>{n.pointerType&&n.pointerType!=="mouse"||(r(),rr(e,t,n))},bt={inView:Cl,hover:{isActive:e=>!!e.hover,subscribe:(e,{enable:t,disable:r})=>{const n=Gn(e,"hoverstart",t),o=Gn(e,"hoverend",r);return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",o),()=>{e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",o)}}},press:{isActive:e=>!!e.press,subscribe:(e,{enable:t,disable:r})=>{const n=s=>{r(),rr(e,"pressend",s),window.removeEventListener("pointerup",n)},o=s=>{t(),rr(e,"pressstart",s),window.addEventListener("pointerup",n)};return e.addEventListener("pointerdown",o),()=>{e.removeEventListener("pointerdown",o),window.removeEventListener("pointerup",n)}}}},Un=["initial","animate",...Object.keys(bt),"exit"],Bn=new WeakMap;function Al(e={},t){let r,n=t?t.getDepth()+1:0;const o={initial:!0,animate:!0},s={},i={};for(const g of Un)i[g]=typeof e[g]=="string"?e[g]:t==null?void 0:t.getContext()[g];const a=e.initial===!1?"animate":"initial";let l=Dn(e[a]||i[a],e.variants)||{},c=Nn(l,["transition"]);const u=Object.assign({},c);function*d(){var g,w;const A=c;c={};const C={};for(const k of Un){if(!o[k])continue;const h=Dn(e[k]);if(h)for(const S in h)S!=="transition"&&(c[S]=h[S],C[S]=gl((w=(g=h.transition)!==null&&g!==void 0?g:e.transition)!==null&&w!==void 0?w:{},S))}const O=new Set([...Object.keys(c),...Object.keys(A)]),I=[];O.forEach(k=>{var h;c[k]===void 0&&(c[k]=u[k]),pl(A[k],c[k])&&((h=u[k])!==null&&h!==void 0||(u[k]=He.get(r,k)),I.push(fl(r,k,c[k],C[k],qa)))}),yield;const P=I.map(k=>k()).filter(Boolean);if(!P.length)return;const z=c;r.dispatchEvent(Vn("motionstart",z)),Promise.all(P.map(k=>k.finished)).then(()=>{r.dispatchEvent(Vn("motioncomplete",z))}).catch(En)}const f=(g,w)=>()=>{o[g]=w,tr(v)},y=()=>{for(const g in bt){const w=bt[g].isActive(e),A=s[g];w&&!A?s[g]=bt[g].subscribe(r,{enable:f(g,!0),disable:f(g,!1)},e):!w&&A&&(A(),delete s[g])}},v={update:g=>{r&&(e=g,y(),tr(v))},setActive:(g,w)=>{r&&(o[g]=w,tr(v))},animateUpdates:d,getDepth:()=>n,getTarget:()=>c,getOptions:()=>e,getContext:()=>i,mount:g=>(r=g,Bn.set(r,v),y(),()=>{Bn.delete(r),xl(v);for(const w in s)s[w]()}),isMounted:()=>!!r};return v}function El(e){const t={},r=[];for(let n in e){const o=e[n];Xt(n)&&(Te[n]&&(n=Te[n]),r.push(n),n=mt(n));let s=Array.isArray(o)?o[0]:o;const i=Oe.get(n);i&&(s=Ke(o)?i.toDefaultUnit(o):o),t[n]=s}return r.length&&(t.transform=Ln(r)),t}var $l=pe();function Pl(e,t,r,n){const o=Al((r==null?void 0:r.initial)===!1?{...t(),initial:!1}:t(),n);return se(()=>{if(r&&!r.mount())return;const s=e(),i=o.mount(s);se(()=>o.update(t())),ee(()=>{r&&t().exit?(o.setActive("exit",!0),s.addEventListener("motioncomplete",i)):i()})}),[o,El(o.getTarget())]}var Il=["initial","animate","inView","inViewOptions","hover","press","variants","transition","exit"],Tl=["tag"],Wn=pe(),Kn=e=>{const[t,,r]=q(e,Il,Tl),[n,o]=Pl(()=>s,()=>({...t}),ye($l),ye(Wn));let s;return m(Wn.Provider,{value:n,get children(){return m(it,_(r,{ref:i=>{var a;s=i,(a=e.ref)==null||a.call(e,i)},get component(){return e.tag||"div"},get style(){return Gt(e.style,o)}}))}})},Ol=new Proxy(Kn,{get:(e,t)=>r=>m(Kn,_(r,{tag:t}))});const _l="a4ui-effects";function Ll(){try{return window.localStorage}catch{return null}}function Ml(){var t;try{if(new URLSearchParams(window.location.search).get("calm")==="1")return!1}catch{}const e=(t=Ll())==null?void 0:t.getItem(_l);return e===null?!0:e==="1"}function Rl(e){typeof document>"u"||document.documentElement.classList.toggle("calm",!e)}const qn=Ml();Rl(qn);const[zl]=B(qn);function Nl(){return!zl()}const Dl="(prefers-reduced-motion: reduce)";function Yn(){return typeof window>"u"||typeof window.matchMedia!="function"?!1:window.matchMedia(Dl).matches}const jl="a4ui-motion-forced";function Vl(){try{return window.localStorage}catch{return null}}const[Hn]=B(((Jn=Vl())==null?void 0:Jn.getItem(jl))==="1");typeof document<"u"&&document.documentElement.classList.toggle("force-motion",K(Hn));function Fl(){return Nl()||Yn()&&!Hn()}const Gl=e=>1-(1-e)**3;function Ul(e,t=600){const[r,n]=B(0);let o;return se(()=>{const s=e();if(Fl()){o!==void 0&&cancelAnimationFrame(o),n(s);return}const i=K(r);if(i===s)return;o!==void 0&&cancelAnimationFrame(o);const a=performance.now(),l=c=>{const u=c-a,d=Math.min(1,u/t);n(i+(s-i)*Gl(d)),o=d<1?requestAnimationFrame(l):void 0};o=requestAnimationFrame(l)}),ee(()=>{o!==void 0&&cancelAnimationFrame(o)}),r}var Xn=M("<div>");function Bl(e){const[t,r]=q(e,["class","children","glass","glow"]),n=()=>(t.glow??t.glass)===!0;return(()=>{var o=Xn();return Ae(o,_({get class(){return j(t.glass?"card rounded-xl text-card-foreground":"rounded-xl border border-border bg-card text-card-foreground shadow-sm",n()&&"glow-edge",t.class)}},r),!1,!0),T(o,()=>t.children),o})()}function Wl(e){const[t,r]=q(e,["class","children"]);return(()=>{var n=Xn();return Ae(n,_({get class(){return j("p-6 pt-0",t.class)}},r),!1,!0),T(n,()=>t.children),n})()}var Kl=M("<div>"),ql=M('<div class=min-w-0><p class="truncate text-sm text-muted-foreground"></p><p class="truncate text-xl font-semibold tabular-nums text-foreground">');const Yl={primary:"bg-primary/15 text-primary",success:"bg-emerald-500/15 text-emerald-600",danger:"bg-rose-500/15 text-rose-600",neutral:"bg-muted text-muted-foreground"};function Hl(e){const t=Yn(),r=Ul(()=>e.value),n=()=>(e.format??(o=>String(Math.round(o))))(r());return m(Ol.div,{initial:t?!1:{opacity:0,y:8},animate:{opacity:1,y:0},get transition(){return{duration:t?0:.32,delay:t?0:e.delay??0,easing:"ease-out"}},get children(){return m(Bl,{glass:!0,glow:!0,get class(){return e.class},get children(){return m(Wl,{class:"flex items-center gap-4 p-5",get children(){return[m(te,{get when(){return e.icon},get children(){var o=Kl();return T(o,()=>e.icon),V(()=>fe(o,j("flex h-11 w-11 shrink-0 items-center justify-center rounded-lg",Yl[e.tone??"neutral"]))),o}}),(()=>{var o=ql(),s=o.firstChild,i=s.nextSibling;return T(s,()=>e.label),T(i,n),o})()]}})}})}})}function pt(e){return(e.textContent??"").trim()}function Zn(){J("a4-button",{variant:"primary",disabled:!1,type:"button",label:""},(e,{element:t})=>{Z();const r=e.label||pt(t);return m(Oi,{get variant(){return e.variant},get disabled(){return e.disabled},get type(){return e.type},children:r})}),J("a4-badge",{tone:"neutral",label:""},(e,{element:t})=>(Z(),m($i,{get tone(){return e.tone},get children(){return e.label||pt(t)}}))),J("a4-alert",{tone:"info",heading:"",text:""},(e,{element:t})=>(Z(),m(xi,{get tone(){return e.tone},get title(){return e.heading||void 0},get children(){return e.text||pt(t)}}))),J("a4-spinner",{label:"Loading"},e=>(Z(),m(Ma,{get label(){return e.label}}))),J("a4-avatar",{src:"",alt:"",fallback:""},e=>(Z(),m(Si,{get src(){return e.src||void 0},get alt(){return e.alt},get fallback(){return e.fallback||""}}))),J("a4-progress",{value:0,max:100,label:""},e=>(Z(),m(Sa,{get value(){return e.value},get max(){return e.max},get label(){return e.label||void 0}}))),J("a4-meter",{value:0,max:100,label:""},e=>(Z(),m(wa,{get value(){return e.value},get max(){return e.max},get label(){return e.label||void 0}}))),J("a4-ring-progress",{value:0,size:96,thickness:8,label:""},e=>(Z(),m(Ia,{get value(){return e.value},get size(){return e.size},get thickness(){return e.thickness},get label(){return e.label||void 0}}))),J("a4-stat",{label:"",value:0,tone:"neutral"},e=>(Z(),m(Hl,{get label(){return e.label},get value(){return e.value},get tone(){return e.tone}}))),J("a4-kbd",{label:""},(e,{element:t})=>(Z(),m(Ji,{get children(){return e.label||pt(t)}}))),J("a4-separator",{orientation:"horizontal"},e=>(Z(),m(_a,{get orientation(){return e.orientation}}))),J("a4-rating",{value:0,max:5,readonly:!1},(e,{element:t})=>(Z(),m($a,{get value(){return e.value},get max(){return e.max},get readonly(){return e.readonly},onChange:r=>t.dispatchEvent(new CustomEvent("change",{detail:r}))}))),J("a4-countdown",{to:""},e=>{Z();const t=e.to?new Date(e.to):new Date(Date.now()+864e5);return m(Hi,{to:t})}),J("a4-clock",{variant:"digital",seconds:!0,hour12:!1,timezone:"",size:160},e=>(Z(),m(Vi,{get variant(){return e.variant},get seconds(){return e.seconds},get hour12(){return e.hour12},get timeZone(){return e.timezone||void 0},get size(){return e.size}})))}return Zn(),kt.defineA4uiElements=Zn,Object.defineProperty(kt,Symbol.toStringTag,{value:"Module"}),kt})({});
|
|
6
|
+
*/var wa={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"},Ue=wa,xa=ot({size:24,color:"currentColor",strokeWidth:2,absoluteStrokeWidth:!1,class:""}),ka=L("<svg>"),Sa=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},Ta=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),Aa=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),Nr=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ca=e=>{const t=Aa(e);return t.charAt(0).toUpperCase()+t.slice(1)},Ma=e=>{const[t,n]=ie(e,["color","size","strokeWidth","children","class","name","iconNode","absoluteStrokeWidth"]),r=at(xa);return(()=>{var s=ka();return Ge(s,F(Ue,{get width(){return t.size??r.size??Ue.width},get height(){return t.size??r.size??Ue.height},get stroke(){return t.color??r.color??Ue.stroke},get"stroke-width"(){return pn(()=>(t.absoluteStrokeWidth??r.absoluteStrokeWidth)===!0)()?Number(t.strokeWidth??r.strokeWidth??Ue["stroke-width"])*24/Number(t.size??r.size):Number(t.strokeWidth??r.strokeWidth??Ue["stroke-width"])},get class(){return Ta("lucide","lucide-icon",r.class,...t.name!=null?[`lucide-${Nr(Ca(t.name))}`,`lucide-${Nr(t.name)}`]:[],t.class)},get"aria-hidden"(){return!t.children&&!Sa(n)?"true":void 0}},n),!0,!0),D(s,b(Kt,{get each(){return t.iconNode},children:([i,o])=>b(yn,F({component:i},o))})),s})()},ht=Ma,Va=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Pa=e=>b(ht,F(e,{iconNode:Va,name:"circle-check"})),Ia=Pa,Ea=[["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"}]],$a=e=>b(ht,F(e,{iconNode:Ea,name:"circle-x"})),Ra=$a,Oa=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Da=e=>b(ht,F(e,{iconNode:Oa,name:"info"})),Fa=Da,La=[["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"}]],_a=e=>b(ht,F(e,{iconNode:La,name:"star"})),zr=_a,Na=[["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"}]],za=e=>b(ht,F(e,{iconNode:Na,name:"triangle-alert"})),Ba=za;function Br(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=Br(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ja(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=Br(e))&&(r&&(r+=" "),r+=t);return r}const Ka=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Ga=(e,t)=>({classGroupId:e,validator:t}),jr=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Wt="-",Kr=[],Wa="arbitrary..",Ua=e=>{const t=Xa(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return Ya(o);const a=o.split(Wt),l=a[0]===""&&a.length>1?1:0;return Gr(a,l,t)},getConflictingClassGroupIds:(o,a)=>{if(a){const l=r[o],c=n[o];return l?c?Ka(c,l):l:c||Kr}return n[o]||Kr}}},Gr=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const s=e[t],i=n.nextPart.get(s);if(i){const c=Gr(e,t+1,i);if(c)return c}const o=n.validators;if(o===null)return;const a=t===0?e.join(Wt):e.slice(t).join(Wt),l=o.length;for(let c=0;c<l;c++){const u=o[c];if(u.validator(a))return u.classGroupId}},Ya=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?Wa+r:void 0})(),Xa=e=>{const{theme:t,classGroups:n}=e;return Ha(n,t)},Ha=(e,t)=>{const n=jr();for(const r in e){const s=e[r];vn(s,n,r,t)}return n},vn=(e,t,n,r)=>{const s=e.length;for(let i=0;i<s;i++){const o=e[i];qa(o,t,n,r)}},qa=(e,t,n,r)=>{if(typeof e=="string"){Za(e,t,n);return}if(typeof e=="function"){Ja(e,t,n,r);return}Qa(e,t,n,r)},Za=(e,t,n)=>{const r=e===""?t:Wr(t,e);r.classGroupId=n},Ja=(e,t,n,r)=>{if(el(e)){vn(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Ga(n,e))},Qa=(e,t,n,r)=>{const s=Object.entries(e),i=s.length;for(let o=0;o<i;o++){const[a,l]=s[o];vn(l,Wr(t,a),n,r)}},Wr=(e,t)=>{let n=e;const r=t.split(Wt),s=r.length;for(let i=0;i<s;i++){const o=r[i];let a=n.nextPart.get(o);a||(a=jr(),n.nextPart.set(o,a)),n=a}return n},el=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,tl=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const s=(i,o)=>{n[i]=o,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(i){let o=n[i];if(o!==void 0)return o;if((o=r[i])!==void 0)return s(i,o),o},set(i,o){i in n?n[i]=o:s(i,o)}}},wn="!",Ur=":",nl=[],Yr=(e,t,n,r,s)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:s}),rl=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=s=>{const i=[];let o=0,a=0,l=0,c;const u=s.length;for(let h=0;h<u;h++){const p=s[h];if(o===0&&a===0){if(p===Ur){i.push(s.slice(l,h)),l=h+1;continue}if(p==="/"){c=h;continue}}p==="["?o++:p==="]"?o--:p==="("?a++:p===")"&&a--}const d=i.length===0?s:s.slice(l);let f=d,m=!1;d.endsWith(wn)?(f=d.slice(0,-1),m=!0):d.startsWith(wn)&&(f=d.slice(1),m=!0);const y=c&&c>l?c-l:void 0;return Yr(i,m,f,y)};if(t){const s=t+Ur,i=r;r=o=>o.startsWith(s)?i(o.slice(s.length)):Yr(nl,!1,o,void 0,!0)}if(n){const s=r;r=i=>n({className:i,parseClassName:s})}return r},sl=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let s=[];for(let i=0;i<n.length;i++){const o=n[i],a=o[0]==="[",l=t.has(o);a||l?(s.length>0&&(s.sort(),r.push(...s),s=[]),r.push(o)):s.push(o)}return s.length>0&&(s.sort(),r.push(...s)),r}},il=e=>({cache:tl(e.cacheSize),parseClassName:rl(e),sortModifiers:sl(e),postfixLookupClassGroupIds:ol(e),...Ua(e)}),ol=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let r=0;r<n.length;r++)t[n[r]]=!0;return t},al=/\s+/,ll=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s,sortModifiers:i,postfixLookupClassGroupIds:o}=t,a=[],l=e.trim().split(al);let c="";for(let u=l.length-1;u>=0;u-=1){const d=l[u],{isExternal:f,modifiers:m,hasImportantModifier:y,baseClassName:h,maybePostfixModifierPosition:p}=n(d);if(f){c=d+(c.length>0?" "+c:c);continue}let v=!!p,k;if(v){const I=h.substring(0,p);k=r(I);const g=k&&o[k]?r(h):void 0;g&&g!==k&&(k=g,v=!1)}else k=r(h);if(!k){if(!v){c=d+(c.length>0?" "+c:c);continue}if(k=r(h),!k){c=d+(c.length>0?" "+c:c);continue}v=!1}const C=m.length===0?"":m.length===1?m[0]:i(m).join(":"),T=y?C+wn:C,A=T+k;if(a.indexOf(A)>-1)continue;a.push(A);const E=s(k,v);for(let I=0;I<E.length;++I){const g=E[I];a.push(T+g)}c=d+(c.length>0?" "+c:c)}return c},cl=(...e)=>{let t=0,n,r,s="";for(;t<e.length;)(n=e[t++])&&(r=Xr(n))&&(s&&(s+=" "),s+=r);return s},Xr=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Xr(e[r]))&&(n&&(n+=" "),n+=t);return n},ul=(e,...t)=>{let n,r,s,i;const o=l=>{const c=t.reduce((u,d)=>d(u),e());return n=il(c),r=n.cache.get,s=n.cache.set,i=a,a(l)},a=l=>{const c=r(l);if(c)return c;const u=ll(l,n);return s(l,u),u};return i=o,(...l)=>i(cl(...l))},dl=[],q=e=>{const t=n=>n[e]||dl;return t.isThemeGetter=!0,t},Hr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,qr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,fl=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,hl=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ml=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,gl=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,pl=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,bl=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ve=e=>fl.test(e),R=e=>!!e&&!Number.isNaN(Number(e)),ye=e=>!!e&&Number.isInteger(Number(e)),xn=e=>e.endsWith("%")&&R(e.slice(0,-1)),ke=e=>hl.test(e),Zr=()=>!0,yl=e=>ml.test(e)&&!gl.test(e),kn=()=>!1,vl=e=>pl.test(e),wl=e=>bl.test(e),xl=e=>!w(e)&&!x(e),kl=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),Sl=e=>Pe(e,rs,kn),w=e=>Hr.test(e),De=e=>Pe(e,ss,yl),Jr=e=>Pe(e,El,R),Tl=e=>Pe(e,os,Zr),Al=e=>Pe(e,is,kn),Qr=e=>Pe(e,ts,kn),Cl=e=>Pe(e,ns,wl),Ut=e=>Pe(e,as,vl),x=e=>qr.test(e),mt=e=>Fe(e,ss),Ml=e=>Fe(e,is),es=e=>Fe(e,ts),Vl=e=>Fe(e,rs),Pl=e=>Fe(e,ns),Yt=e=>Fe(e,as,!0),Il=e=>Fe(e,os,!0),Pe=(e,t,n)=>{const r=Hr.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Fe=(e,t,n=!1)=>{const r=qr.exec(e);return r?r[1]?t(r[1]):n:!1},ts=e=>e==="position"||e==="percentage",ns=e=>e==="image"||e==="url",rs=e=>e==="length"||e==="size"||e==="bg-size",ss=e=>e==="length",El=e=>e==="number",is=e=>e==="family-name",os=e=>e==="number"||e==="weight",as=e=>e==="shadow",$l=ul(()=>{const e=q("color"),t=q("font"),n=q("text"),r=q("font-weight"),s=q("tracking"),i=q("leading"),o=q("breakpoint"),a=q("container"),l=q("spacing"),c=q("radius"),u=q("shadow"),d=q("inset-shadow"),f=q("text-shadow"),m=q("drop-shadow"),y=q("blur"),h=q("perspective"),p=q("aspect"),v=q("ease"),k=q("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],T=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],A=()=>[...T(),x,w],E=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto","contain","none"],g=()=>[x,w,l],V=()=>[Ve,"full","auto",...g()],M=()=>[ye,"none","subgrid",x,w],O=()=>["auto",{span:["full",ye,x,w]},ye,x,w],N=()=>[ye,"auto",x,w],ne=()=>["auto","min","max","fr",x,w],re=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],se=()=>["start","end","center","stretch","center-safe","end-safe"],W=()=>["auto",...g()],Z=()=>[Ve,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...g()],ae=()=>[Ve,"screen","full","dvw","lvw","svw","min","max","fit",...g()],rt=()=>[Ve,"screen","full","lh","dvh","lvh","svh","min","max","fit",...g()],P=()=>[e,x,w],Pt=()=>[...T(),es,Qr,{position:[x,w]}],It=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Et=()=>["auto","cover","contain",Vl,Sl,{size:[x,w]}],st=()=>[xn,mt,De],B=()=>["","none","full",c,x,w],j=()=>["",R,mt,De],Te=()=>["solid","dashed","dotted","double"],Re=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],U=()=>[R,xn,es,Qr],$t=()=>["","none",y,x,w],ze=()=>["none",R,x,w],de=()=>["none",R,x,w],it=()=>[R,x,w],Be=()=>[Ve,"full",...g()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ke],breakpoint:[ke],color:[Zr],container:[ke],"drop-shadow":[ke],ease:["in","out","in-out"],font:[xl],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ke],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ke],shadow:[ke],spacing:["px",R],text:[ke],"text-shadow":[ke],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ve,w,x,p]}],container:["container"],"container-type":[{"@container":["","normal","size",x,w]}],"container-named":[kl],columns:[{columns:[R,w,x,a]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:A()}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:V()}],"inset-x":[{"inset-x":V()}],"inset-y":[{"inset-y":V()}],start:[{"inset-s":V(),start:V()}],end:[{"inset-e":V(),end:V()}],"inset-bs":[{"inset-bs":V()}],"inset-be":[{"inset-be":V()}],top:[{top:V()}],right:[{right:V()}],bottom:[{bottom:V()}],left:[{left:V()}],visibility:["visible","invisible","collapse"],z:[{z:[ye,"auto",x,w]}],basis:[{basis:[Ve,"full","auto",a,...g()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[R,Ve,"auto","initial","none",w]}],grow:[{grow:["",R,x,w]}],shrink:[{shrink:["",R,x,w]}],order:[{order:[ye,"first","last","none",x,w]}],"grid-cols":[{"grid-cols":M()}],"col-start-end":[{col:O()}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":M()}],"row-start-end":[{row:O()}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ne()}],"auto-rows":[{"auto-rows":ne()}],gap:[{gap:g()}],"gap-x":[{"gap-x":g()}],"gap-y":[{"gap-y":g()}],"justify-content":[{justify:[...re(),"normal"]}],"justify-items":[{"justify-items":[...se(),"normal"]}],"justify-self":[{"justify-self":["auto",...se()]}],"align-content":[{content:["normal",...re()]}],"align-items":[{items:[...se(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...se(),{baseline:["","last"]}]}],"place-content":[{"place-content":re()}],"place-items":[{"place-items":[...se(),"baseline"]}],"place-self":[{"place-self":["auto",...se()]}],p:[{p:g()}],px:[{px:g()}],py:[{py:g()}],ps:[{ps:g()}],pe:[{pe:g()}],pbs:[{pbs:g()}],pbe:[{pbe:g()}],pt:[{pt:g()}],pr:[{pr:g()}],pb:[{pb:g()}],pl:[{pl:g()}],m:[{m:W()}],mx:[{mx:W()}],my:[{my:W()}],ms:[{ms:W()}],me:[{me:W()}],mbs:[{mbs:W()}],mbe:[{mbe:W()}],mt:[{mt:W()}],mr:[{mr:W()}],mb:[{mb:W()}],ml:[{ml:W()}],"space-x":[{"space-x":g()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":g()}],"space-y-reverse":["space-y-reverse"],size:[{size:Z()}],"inline-size":[{inline:["auto",...ae()]}],"min-inline-size":[{"min-inline":["auto",...ae()]}],"max-inline-size":[{"max-inline":["none",...ae()]}],"block-size":[{block:["auto",...rt()]}],"min-block-size":[{"min-block":["auto",...rt()]}],"max-block-size":[{"max-block":["none",...rt()]}],w:[{w:[a,"screen",...Z()]}],"min-w":[{"min-w":[a,"screen","none",...Z()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[o]},...Z()]}],h:[{h:["screen","lh",...Z()]}],"min-h":[{"min-h":["screen","lh","none",...Z()]}],"max-h":[{"max-h":["screen","lh",...Z()]}],"font-size":[{text:["base",n,mt,De]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Il,Tl]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",xn,w]}],"font-family":[{font:[Ml,Al,t]}],"font-features":[{"font-features":[w]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,x,w]}],"line-clamp":[{"line-clamp":[R,"none",x,Jr]}],leading:[{leading:[i,...g()]}],"list-image":[{"list-image":["none",x,w]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",x,w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Te(),"wavy"]}],"text-decoration-thickness":[{decoration:[R,"from-font","auto",x,De]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[R,"auto",x,w]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:g()}],"tab-size":[{tab:[ye,x,w]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",x,w]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",x,w]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Pt()}],"bg-repeat":[{bg:It()}],"bg-size":[{bg:Et()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ye,x,w],radial:["",x,w],conic:[ye,x,w]},Pl,Cl]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:st()}],"gradient-via-pos":[{via:st()}],"gradient-to-pos":[{to:st()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:B()}],"rounded-s":[{"rounded-s":B()}],"rounded-e":[{"rounded-e":B()}],"rounded-t":[{"rounded-t":B()}],"rounded-r":[{"rounded-r":B()}],"rounded-b":[{"rounded-b":B()}],"rounded-l":[{"rounded-l":B()}],"rounded-ss":[{"rounded-ss":B()}],"rounded-se":[{"rounded-se":B()}],"rounded-ee":[{"rounded-ee":B()}],"rounded-es":[{"rounded-es":B()}],"rounded-tl":[{"rounded-tl":B()}],"rounded-tr":[{"rounded-tr":B()}],"rounded-br":[{"rounded-br":B()}],"rounded-bl":[{"rounded-bl":B()}],"border-w":[{border:j()}],"border-w-x":[{"border-x":j()}],"border-w-y":[{"border-y":j()}],"border-w-s":[{"border-s":j()}],"border-w-e":[{"border-e":j()}],"border-w-bs":[{"border-bs":j()}],"border-w-be":[{"border-be":j()}],"border-w-t":[{"border-t":j()}],"border-w-r":[{"border-r":j()}],"border-w-b":[{"border-b":j()}],"border-w-l":[{"border-l":j()}],"divide-x":[{"divide-x":j()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":j()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Te(),"hidden","none"]}],"divide-style":[{divide:[...Te(),"hidden","none"]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-bs":[{"border-bs":P()}],"border-color-be":[{"border-be":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:[...Te(),"none","hidden"]}],"outline-offset":[{"outline-offset":[R,x,w]}],"outline-w":[{outline:["",R,mt,De]}],"outline-color":[{outline:P()}],shadow:[{shadow:["","none",u,Yt,Ut]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":["none",d,Yt,Ut]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:j()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[R,De]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":j()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":["none",f,Yt,Ut]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[R,x,w]}],"mix-blend":[{"mix-blend":[...Re(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Re()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[R]}],"mask-image-linear-from-pos":[{"mask-linear-from":U()}],"mask-image-linear-to-pos":[{"mask-linear-to":U()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":U()}],"mask-image-t-to-pos":[{"mask-t-to":U()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":U()}],"mask-image-r-to-pos":[{"mask-r-to":U()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":U()}],"mask-image-b-to-pos":[{"mask-b-to":U()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":U()}],"mask-image-l-to-pos":[{"mask-l-to":U()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":U()}],"mask-image-x-to-pos":[{"mask-x-to":U()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":U()}],"mask-image-y-to-pos":[{"mask-y-to":U()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[x,w]}],"mask-image-radial-from-pos":[{"mask-radial-from":U()}],"mask-image-radial-to-pos":[{"mask-radial-to":U()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":T()}],"mask-image-conic-pos":[{"mask-conic":[R]}],"mask-image-conic-from-pos":[{"mask-conic-from":U()}],"mask-image-conic-to-pos":[{"mask-conic-to":U()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Pt()}],"mask-repeat":[{mask:It()}],"mask-size":[{mask:Et()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",x,w]}],filter:[{filter:["","none",x,w]}],blur:[{blur:$t()}],brightness:[{brightness:[R,x,w]}],contrast:[{contrast:[R,x,w]}],"drop-shadow":[{"drop-shadow":["","none",m,Yt,Ut]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:["",R,x,w]}],"hue-rotate":[{"hue-rotate":[R,x,w]}],invert:[{invert:["",R,x,w]}],saturate:[{saturate:[R,x,w]}],sepia:[{sepia:["",R,x,w]}],"backdrop-filter":[{"backdrop-filter":["","none",x,w]}],"backdrop-blur":[{"backdrop-blur":$t()}],"backdrop-brightness":[{"backdrop-brightness":[R,x,w]}],"backdrop-contrast":[{"backdrop-contrast":[R,x,w]}],"backdrop-grayscale":[{"backdrop-grayscale":["",R,x,w]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[R,x,w]}],"backdrop-invert":[{"backdrop-invert":["",R,x,w]}],"backdrop-opacity":[{"backdrop-opacity":[R,x,w]}],"backdrop-saturate":[{"backdrop-saturate":[R,x,w]}],"backdrop-sepia":[{"backdrop-sepia":["",R,x,w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":g()}],"border-spacing-x":[{"border-spacing-x":g()}],"border-spacing-y":[{"border-spacing-y":g()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",x,w]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[R,"initial",x,w]}],ease:[{ease:["linear","initial",v,x,w]}],delay:[{delay:[R,x,w]}],animate:[{animate:["none",k,x,w]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,x,w]}],"perspective-origin":[{"perspective-origin":A()}],rotate:[{rotate:ze()}],"rotate-x":[{"rotate-x":ze()}],"rotate-y":[{"rotate-y":ze()}],"rotate-z":[{"rotate-z":ze()}],scale:[{scale:de()}],"scale-x":[{"scale-x":de()}],"scale-y":[{"scale-y":de()}],"scale-z":[{"scale-z":de()}],"scale-3d":["scale-3d"],skew:[{skew:it()}],"skew-x":[{"skew-x":it()}],"skew-y":[{"skew-y":it()}],transform:[{transform:[x,w,"","none","gpu","cpu"]}],"transform-origin":[{origin:A()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Be()}],"translate-x":[{"translate-x":Be()}],"translate-y":[{"translate-y":Be()}],"translate-z":[{"translate-z":Be()}],"translate-none":["translate-none"],zoom:[{zoom:[ye,x,w]}],accent:[{accent:P()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:P()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",x,w]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":P()}],"scrollbar-track-color":[{"scrollbar-track":P()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":g()}],"scroll-mx":[{"scroll-mx":g()}],"scroll-my":[{"scroll-my":g()}],"scroll-ms":[{"scroll-ms":g()}],"scroll-me":[{"scroll-me":g()}],"scroll-mbs":[{"scroll-mbs":g()}],"scroll-mbe":[{"scroll-mbe":g()}],"scroll-mt":[{"scroll-mt":g()}],"scroll-mr":[{"scroll-mr":g()}],"scroll-mb":[{"scroll-mb":g()}],"scroll-ml":[{"scroll-ml":g()}],"scroll-p":[{"scroll-p":g()}],"scroll-px":[{"scroll-px":g()}],"scroll-py":[{"scroll-py":g()}],"scroll-ps":[{"scroll-ps":g()}],"scroll-pe":[{"scroll-pe":g()}],"scroll-pbs":[{"scroll-pbs":g()}],"scroll-pbe":[{"scroll-pbe":g()}],"scroll-pt":[{"scroll-pt":g()}],"scroll-pr":[{"scroll-pr":g()}],"scroll-pb":[{"scroll-pb":g()}],"scroll-pl":[{"scroll-pl":g()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",x,w]}],fill:[{fill:["none",...P()]}],"stroke-w":[{stroke:[R,mt,De,Jr]}],stroke:[{stroke:["none",...P()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function Y(...e){return $l(ja(e))}var Rl=L("<p class=font-semibold>"),Ol=L("<div class=flex-1><div class=text-muted-foreground>");const Dl={info:{wrap:"border-sky-500/30 bg-sky-500/10",icon:"text-sky-500",Icon:Fa},success:{wrap:"border-emerald-500/30 bg-emerald-500/10",icon:"text-emerald-500",Icon:Ia},warning:{wrap:"border-amber-500/30 bg-amber-500/10",icon:"text-amber-500",Icon:Ba},danger:{wrap:"border-rose-500/30 bg-rose-500/10",icon:"text-rose-500",Icon:Ra}};function Fl(e){const t=()=>Dl[e.tone??"info"];return b(_r,{get class(){return Y("flex gap-3 rounded-lg border p-3 text-sm text-foreground",t().wrap,e.class)},get children(){return[b(yn,{get component(){return t().Icon},get class(){return Y("mt-0.5 h-4 w-4 shrink-0",t().icon)}}),(()=>{var n=Ol(),r=n.firstChild;return D(n,b(he,{get when(){return e.title},get children(){var s=Rl();return D(s,()=>e.title),s}}),r),D(r,()=>e.children),n})()]}})}var Ll={};Gt(Ll,{Fallback:()=>cs,Image:()=>Xt,Img:()=>us,Root:()=>ds,useImageContext:()=>Sn});var ls=ot();function Sn(){const e=at(ls);if(e===void 0)throw new Error("[kobalte]: `useImageContext` must be used within an `Image.Root` component");return e}function cs(e){const t=Sn(),[n,r]=Q(t.fallbackDelay()===void 0);return Ce(()=>{const s=t.fallbackDelay();if(s!==void 0){const i=window.setTimeout(()=>r(!0),s);pe(()=>window.clearTimeout(i))}}),b(he,{get when(){return pn(()=>!!n())()&&t.imageLoadingStatus()!=="loaded"},get children(){return b(be,F({as:"span"},e))}})}function us(e){const t=Sn(),[n,r]=Q("idle");return Ce(Ao(()=>e.src,s=>{if(!s){r("error");return}let i=!0;const o=new window.Image,a=l=>()=>{i&&r(l)};r("loading"),e.crossOrigin!==void 0&&(o.crossOrigin=e.crossOrigin),e.referrerPolicy!==void 0&&(o.referrerPolicy=e.referrerPolicy),o.onload=a("loaded"),o.onerror=a("error"),o.src=s,pe(()=>{i=!1})})),Ce(()=>{const s=n();s!=="idle"&&t.onImageLoadingStatusChange(s)}),b(he,{get when(){return n()==="loaded"},get children(){return b(be,F({as:"img"},e))}})}function ds(e){const[t,n]=ie(e,["fallbackDelay","onLoadingStatusChange"]),[r,s]=Q("idle"),i={fallbackDelay:()=>t.fallbackDelay,imageLoadingStatus:r,onImageLoadingStatusChange:o=>{var a;s(o),(a=t.onLoadingStatusChange)==null||a.call(t,o)}};return b(ls.Provider,{value:i,get children(){return b(be,F({as:"span"},n))}})}var Xt=Object.assign(ds,{Fallback:cs,Img:us});function _l(e){return b(Xt,{get class(){return Y("inline-flex h-9 w-9 shrink-0 overflow-hidden rounded-full bg-muted",e.class)},get children(){return[b(Xt.Img,{get src(){return e.src},get alt(){return e.alt},class:"h-full w-full object-cover"}),b(Xt.Fallback,{class:"grid h-full w-full place-items-center text-xs font-medium text-muted-foreground",get children(){return e.fallback}})]}})}var Nl=L("<span>");const zl={neutral:"bg-muted text-muted-foreground ring-border",success:"bg-emerald-500/15 text-emerald-600 ring-emerald-500/30",warning:"bg-amber-500/15 text-amber-600 ring-amber-500/30",danger:"bg-rose-500/15 text-rose-600 ring-rose-500/30",info:"bg-sky-500/15 text-sky-600 ring-sky-500/30"},Bl="badge inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-xs font-semibold ring-1 ring-inset whitespace-nowrap";function jl(e){const[t,n]=ie(e,["tone","class","children"]);return(()=>{var r=Nl();return Ge(r,F({get class(){return Y(Bl,zl[t.tone??"neutral"],t.class)}},n),!1,!0),D(r,()=>t.children),r})()}var Kl=L("<button>");const Gl={primary:"bg-primary text-primary-foreground hover:bg-primary/90",secondary:"bg-muted text-foreground hover:bg-muted/70",outline:"border border-border bg-transparent text-foreground hover:bg-muted",ghost:"bg-transparent text-foreground hover:bg-muted"},Wl="inline-flex items-center justify-center rounded-md px-3 py-2 text-sm font-medium transition-[color,background-color,transform] duration-150 active:scale-[0.97] focus:outline-none focus:ring-2 focus:ring-ring disabled:pointer-events-none disabled:opacity-50";function Ul(e){const[t,n]=ie(e,["variant","class","type","children"]);return(()=>{var r=Kl();return Ge(r,F({get type(){return t.type??"button"},get class(){return Y(Wl,Gl[t.variant??"primary"],t.class)}},n),!1,!0),D(r,()=>t.children),r})()}var Yl=L('<span class="text-base font-normal text-muted-foreground">'),Xl=L('<div><span class="flex items-baseline gap-2 tabular-nums text-4xl font-bold tracking-tight text-foreground"><span>'),Hl=L("<svg><polyline stroke=hsl(var(--primary)) stroke-width=1.5 stroke-linecap=round style=transform-origin:center;transform-box:view-box></svg>",!1,!0,!1),ql=L('<svg role=img aria-label="Analog clock"><circle fill=none stroke=hsl(var(--border)) stroke-width=2></circle><polyline stroke=hsl(var(--foreground)) stroke-width=4 stroke-linecap=round style=transform-origin:center;transform-box:view-box></polyline><polyline stroke=hsl(var(--foreground)) stroke-width=3 stroke-linecap=round style=transform-origin:center;transform-box:view-box></polyline><circle r=3.5 fill=hsl(var(--primary))>'),Zl=L("<svg><line stroke=hsl(var(--muted-foreground)) stroke-linecap=round></svg>",!1,!0,!1);const gt=e=>String(e).padStart(2,"0");function Jl(e,t){if(!t)return{hours:e.getHours(),minutes:e.getMinutes(),seconds:e.getSeconds()};const n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"}).formatToParts(e),r=s=>{var i;return Number(((i=n.find(o=>o.type===s))==null?void 0:i.value)??0)};return{hours:r("hour")%24,minutes:r("minute"),seconds:r("second")}}function Ql(e){const t=()=>{const{hours:n,minutes:r,seconds:s}=e.parts;let i=n,o="";return e.hour12&&(o=i>=12?"PM":"AM",i=i%12,i===0&&(i=12)),{time:e.seconds?`${gt(i)}:${gt(r)}:${gt(s)}`:`${gt(i)}:${gt(r)}`,suffix:o}};return(()=>{var n=Xl(),r=n.firstChild,s=r.firstChild;return D(s,()=>t().time),D(r,b(he,{get when(){return e.hour12},get children(){var i=Yl();return D(i,()=>t().suffix),i}}),null),H(()=>Me(n,Y("flex flex-col items-center justify-center",e.class))),n})()}function ec(e){const t=()=>e.size,n=()=>t()/2,r=()=>t()/2,s=()=>t()/2,i=()=>e.parts.hours%12*30+e.parts.minutes*.5,o=()=>e.parts.minutes*6+e.parts.seconds*.1,a=()=>e.parts.seconds*6,l=Array.from({length:12},(u,d)=>d),c=u=>{const d=s()*u;return`${n()},${r()} ${n()},${r()-d}`};return(()=>{var u=ql(),d=u.firstChild,f=d.nextSibling,m=f.nextSibling,y=m.nextSibling;return D(u,b(Kt,{each:l,children:h=>{const p=h*30,v=s()-4,k=s()-(h%3===0?14:9),C=n()+v*Math.sin(p*Math.PI/180),T=r()-v*Math.cos(p*Math.PI/180),A=n()+k*Math.sin(p*Math.PI/180),E=r()-k*Math.cos(p*Math.PI/180);return(()=>{var I=Zl();return $(I,"x1",C),$(I,"y1",T),$(I,"x2",A),$(I,"y2",E),$(I,"stroke-width",h%3===0?2:1),I})()}}),f),D(u,b(he,{get when(){return e.seconds},get children(){var h=Hl();return H(p=>{var v=c(.75),k=`rotate(${a()}deg)`;return v!==p.e&&$(h,"points",p.e=v),k!==p.t&&Ke(h,"transform",p.t=k),p},{e:void 0,t:void 0}),h}}),y),H(h=>{var p=t(),v=t(),k=`0 0 ${t()} ${t()}`,C=Y("inline-block",e.class),T=n(),A=r(),E=s()-2,I=c(.45),g=`rotate(${i()}deg)`,V=c(.65),M=`rotate(${o()}deg)`,O=n(),N=r();return p!==h.e&&$(u,"width",h.e=p),v!==h.t&&$(u,"height",h.t=v),k!==h.a&&$(u,"viewBox",h.a=k),C!==h.o&&$(u,"class",h.o=C),T!==h.i&&$(d,"cx",h.i=T),A!==h.n&&$(d,"cy",h.n=A),E!==h.s&&$(d,"r",h.s=E),I!==h.h&&$(f,"points",h.h=I),g!==h.r&&Ke(f,"transform",h.r=g),V!==h.d&&$(m,"points",h.d=V),M!==h.l&&Ke(m,"transform",h.l=M),O!==h.u&&$(y,"cx",h.u=O),N!==h.c&&$(y,"cy",h.c=N),h},{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,l:void 0,u:void 0,c:void 0}),u})()}function tc(e){const[t,n]=Q(new Date);_t(()=>{const l=setInterval(()=>n(new Date),1e3);pe(()=>clearInterval(l))});const r=()=>e.variant??"digital",s=()=>e.seconds??!0,i=()=>e.hour12??!1,o=()=>e.size??160,a=()=>Jl(t(),e.timeZone);return b(he,{get when(){return r()==="analog"},get fallback(){return b(Ql,{get parts(){return a()},get seconds(){return s()},get hour12(){return i()},get class(){return e.class}})},get children(){return b(ec,{get parts(){return a()},get seconds(){return s()},get size(){return o()},get class(){return e.class}})}})}var nc=L('<span class="relative inline-block h-[1em] w-[0.62em] overflow-hidden align-top"><span class="absolute inset-x-0 top-0 flex flex-col transition-transform duration-500 ease-out">'),rc=L('<span class="block h-[1em] text-center leading-none">'),sc=L('<span class="flex text-2xl font-bold tabular-nums text-foreground">'),ic=L("<div>"),oc=L('<div class="flex flex-col items-center"><span class="text-[10px] uppercase tracking-wide text-muted-foreground">');const Tn=1e3,An=60*Tn,Cn=60*An,fs=24*Cn,ac=[0,1,2,3,4,5,6,7,8,9],Mn=e=>String(e).padStart(2,"0");function lc(e){const t=()=>e.char>="0"&&e.char<="9"?Number(e.char):0;return(()=>{var n=nc(),r=n.firstChild;return D(r,b(gn,{each:ac,children:s=>(()=>{var i=rc();return D(i,s),i})()})),H(s=>Ke(r,"transform",`translateY(${t()*-10}%)`)),n})()}function cc(e){const t=()=>e.value.split("");return(()=>{var n=sc();return D(n,b(gn,{get each(){return t()},children:r=>b(lc,{get char(){return r()}})})),n})()}function uc(e){const t=ee(()=>e.to.getTime()),n=()=>Math.max(0,t()-Date.now()),[r,s]=Q(n());let i=!1;const o=f=>{var m;f<=0&&!i&&(i=!0,(m=e.onComplete)==null||m.call(e))};o(r()),_t(()=>{const f=setInterval(()=>{const m=n();s(m),o(m)},Tn);pe(()=>clearInterval(f))});const a=()=>Math.floor(r()/fs),l=()=>Math.floor(r()%fs/Cn),c=()=>Math.floor(r()%Cn/An),u=()=>Math.floor(r()%An/Tn),d=()=>[{label:"Days",value:String(a())},{label:"Hours",value:Mn(l())},{label:"Mins",value:Mn(c())},{label:"Secs",value:Mn(u())}];return(()=>{var f=ic();return D(f,b(gn,{get each(){return d()},children:m=>(()=>{var y=oc(),h=y.firstChild;return D(y,b(cc,{get value(){return m().value}}),h),D(h,()=>m().label),y})()})),H(()=>Me(f,Y("flex gap-4",e.class))),f})()}var dc=L("<kbd>");const fc="inline-flex min-w-[1.5rem] items-center justify-center rounded border border-border bg-muted px-1.5 py-0.5 font-mono text-xs text-muted-foreground shadow-sm";function hc(e){return(()=>{var t=dc();return D(t,()=>e.children),H(()=>Me(t,Y(fc,e.class))),t})()}function mc(e){return(...t)=>{for(const n of e)n&&n(...t)}}const gc=e=>typeof e=="function"&&!e.length?e():e,pc=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g;function hs(e){const t={};let n;for(;n=pc.exec(e);)t[n[1]]=n[2];return t}function ms(e,t){if(typeof e=="string"){if(typeof t=="string")return`${e};${t}`;e=hs(e)}else typeof t=="string"&&(t=hs(t));return{...e,...t}}function bc(...e){return mc(e)}function yc(e){return Object.prototype.toString.call(e)==="[object String]"}function gs(e){return t=>`${e()}-${t}`}function ps(e,t=Number.NEGATIVE_INFINITY,n=Number.POSITIVE_INFINITY){return Math.min(Math.max(e,t),n)}function pt(e,t){return F(e,t)}var bt=new Map,bs=new Set;function ys(){if(typeof window>"u"||document.body===null)return;const e=n=>{if(!n.target)return;let r=bt.get(n.target);r||(r=new Set,bt.set(n.target,r),n.target.addEventListener("transitioncancel",t)),r.add(n.propertyName)},t=n=>{if(!n.target)return;const r=bt.get(n.target);if(r&&(r.delete(n.propertyName),r.size===0&&(n.target.removeEventListener("transitioncancel",t),bt.delete(n.target)),bt.size===0)){for(const s of bs)s();bs.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?ys():document.addEventListener("DOMContentLoaded",ys));let Vn=new Map,Pn=!1;try{Pn=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Ht=!1;try{Ht=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const vs={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class vc{constructor(t,n={}){this.numberFormatter=wc(t,n),this.options=n}format(t){var r;let n="";if(!Pn&&this.options.signDisplay!=null?n=xc(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!Ht){let{unit:s,unitDisplay:i="short",locale:o}=this.resolvedOptions();if(!s)return n;let a=(r=vs[s])==null?void 0:r[i];n+=a[o]||a.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),s=this.numberFormatter.formatToParts(n);return[...r.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...s.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!Pn&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Ht&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}}function wc(e,t={}){var i;let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!Ht){let{unit:o,unitDisplay:a="short"}=t;if(!o)throw new Error('unit option must be provided with style: "unit"');if(!((i=vs[o])!=null&&i[a]))throw new Error(`Unsupported unit ${o} with unitDisplay = ${a}`);t={...t,style:"decimal"}}let r=e+(t?Object.entries(t).sort((o,a)=>o[0]<a[0]?-1:1).join():"");if(Vn.has(r))return Vn.get(r);let s=new Intl.NumberFormat(e,t);return Vn.set(r,s),s}function xc(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let s=e.format(-n),i=e.format(n),o=s.replace(i,"").replace(/\u200e|\u061C/,"");return[...o].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),s.replace(i,"!!!").replace(o,"+").replace("!!!",i)}else return e.format(n)}}var kc=new Set(["Avst","Arab","Armi","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Sc=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Tc(e){if(Intl.Locale){const n=new Intl.Locale(e).maximize().script??"";return kc.has(n)}const t=e.split("-")[0];return Sc.has(t)}function Ac(e){return Tc(e)?"rtl":"ltr"}function ws(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:Ac(e)}}var In=ws(),yt=new Set;function xs(){In=ws();for(const e of yt)e(In)}function Cc(){const[e,t]=Q(In),n=ee(()=>e());return _t(()=>{yt.size===0&&window.addEventListener("languagechange",xs),yt.add(t),pe(()=>{yt.delete(t),yt.size===0&&window.removeEventListener("languagechange",xs)})}),{locale:()=>n().locale,direction:()=>n().direction}}var Mc=ot();function Vc(){const e=Cc();return at(Mc)||e}function ks(e){const{locale:t}=Vc();return ee(()=>new vc(t(),gc(e)))}function Ss(e){return t=>(e(t),()=>e(void 0))}var Ts=ot();function qt(){const e=at(Ts);if(e===void 0)throw new Error("[kobalte]: `useMeterContext` must be used within a `Meter.Root` component");return e}function Pc(e){const t=qt(),[n,r]=ie(e,["style"]);return b(be,F({as:"div",get style(){return ms({"--kb-meter-fill-width":t.meterFillWidth()},n.style)}},()=>t.dataset(),r))}function Ic(e){const t=qt(),n=pt({id:t.generateId("label")},e),[r,s]=ie(n,["id"]);return Ce(()=>pe(t.registerLabelId(r.id))),b(be,F({as:"span",get id(){return r.id}},()=>t.dataset(),s))}function Ec(e){const t=`meter-${Mr()}`,n=pt({id:t,value:0,minValue:0,maxValue:100,role:"meter",indeterminate:!1},e),[r,s]=ie(n,["value","minValue","maxValue","getValueLabel","role","aria-valuetext","aria-labelledby","aria-valuemax","aria-valuemin","aria-valuenow","indeterminate"]),[i,o]=Q(),a=ks(()=>({style:"percent"})),l=()=>ps(r.value,r.minValue,r.maxValue),c=()=>(l()-r.minValue)/(r.maxValue-r.minValue),u=()=>{if(!r.indeterminate)return r.getValueLabel?r.getValueLabel({value:l(),min:r.minValue,max:r.maxValue}):a().format(c())},d=()=>`${c()*100}%`,f=ee(()=>({})),m={dataset:f,value:l,valuePercent:c,valueLabel:u,labelId:i,meterFillWidth:d,generateId:gs(()=>s.id),registerLabelId:Ss(o)};return b(Ts.Provider,{value:m,get children(){return b(be,F({as:"div",get role(){return r.role||"meter"},get"aria-valuenow"(){return pn(()=>!!r.indeterminate)()?void 0:l()},get"aria-valuemin"(){return r.minValue},get"aria-valuemax"(){return r.maxValue},get"aria-valuetext"(){return u()},get"aria-labelledby"(){return i()}},f,s))}})}function $c(e){const t=qt();return b(be,F({as:"div"},()=>t.dataset(),e))}function Rc(e){const t=qt();return b(be,F({as:"div"},()=>t.dataset(),e,{get children(){return t.valueLabel()}}))}var ve=Object.assign(Ec,{Fill:Pc,Label:Ic,Track:$c,ValueLabel:Rc}),Oc=L('<div class="flex items-center justify-between text-sm text-foreground">');function Dc(e){const t=()=>{const n=e.max??100;return n<=0?0:Math.max(0,Math.min(100,e.value/n*100))};return b(ve,{get value(){return e.value},minValue:0,get maxValue(){return e.max??100},get class(){return Y("flex flex-col gap-1.5",e.class)},get children(){return[b(he,{get when(){return e.label},get children(){var n=Oc();return D(n,b(ve.Label,{get children(){return e.label}}),null),D(n,b(ve.ValueLabel,{class:"text-muted-foreground"}),null),n}}),b(ve.Track,{class:"h-2 overflow-hidden rounded-full bg-muted",get children(){return b(ve.Fill,{class:"h-full rounded-full bg-primary transition-all duration-500",get style(){return{width:`${t()}%`}}})}})]}})}var Fc={};Gt(Fc,{Fill:()=>Cs,Label:()=>Ms,Progress:()=>Ye,Root:()=>Vs,Track:()=>Ps,ValueLabel:()=>Is,useProgressContext:()=>vt});var As=ot();function vt(){const e=at(As);if(e===void 0)throw new Error("[kobalte]: `useProgressContext` must be used within a `Progress.Root` component");return e}function Cs(e){const t=vt(),[n,r]=ie(e,["style"]);return b(ve.Fill,F({get style(){return ms({"--kb-progress-fill-width":t.progressFillWidth()},n.style)}},()=>t.dataset(),r))}function Ms(e){const t=vt(),n=pt({id:t.generateId("label")},e),[r,s]=ie(n,["id"]);return Ce(()=>pe(t.registerLabelId(r.id))),b(ve.Label,F({get id(){return r.id}},()=>t.dataset(),s))}function Vs(e){const t=`progress-${Mr()}`,n=pt({id:t,value:0,minValue:0,maxValue:100},e),[r,s]=ie(n,["value","minValue","maxValue","indeterminate","getValueLabel"]),[i,o]=Q(),a=ks(()=>({style:"percent"})),l=()=>ps(r.value,r.minValue,r.maxValue),c=()=>(l()-r.minValue)/(r.maxValue-r.minValue),u=()=>{if(!r.indeterminate)return r.getValueLabel?r.getValueLabel({value:l(),min:r.minValue,max:r.maxValue}):a().format(c())},d=()=>r.indeterminate?void 0:`${c()*100}%`,f=ee(()=>{let y;return r.indeterminate||(y=c()===1?"complete":"loading"),{"data-progress":y,"data-indeterminate":r.indeterminate?"":void 0}}),m={dataset:f,value:l,valuePercent:c,valueLabel:u,labelId:i,progressFillWidth:d,generateId:gs(()=>s.id),registerLabelId:Ss(o)};return b(As.Provider,{value:m,get children(){return b(ve,F({role:"progressbar",get indeterminate(){return r.indeterminate||!1}},f,n))}})}function Ps(e){const t=vt();return b(ve.Track,F(()=>t.dataset(),e))}function Is(e){const t=vt();return b(ve.ValueLabel,F(()=>t.dataset(),e))}var Ye=Object.assign(Vs,{Fill:Cs,Label:Ms,Track:Ps,ValueLabel:Is}),Lc=L('<div class="flex items-center justify-between text-sm text-foreground">');function _c(e){const t=()=>{const n=e.max??100;return n<=0?0:Math.max(0,Math.min(100,e.value/n*100))};return b(Ye,{get value(){return e.value},minValue:0,get maxValue(){return e.max??100},get class(){return Y("flex flex-col gap-1.5",e.class)},get children(){return[b(he,{get when(){return e.label},get children(){var n=Lc();return D(n,b(Ye.Label,{get children(){return e.label}}),null),D(n,b(Ye.ValueLabel,{class:"text-muted-foreground"}),null),n}}),b(Ye.Track,{class:"h-2 overflow-hidden rounded-full bg-muted",get children(){return b(Ye.Fill,{class:"h-full rounded-full bg-primary transition-all duration-500",get style(){return{width:`${t()}%`}}})}})]}})}var Nc=L("<div role=radiogroup>"),zc=L("<div role=img>"),Bc=L('<button type=button role=radio class="rounded outline-none focus-visible:ring-2 focus-visible:ring-ring/40">');function jc(e){const[t,n]=Q(0),r=()=>e.max??5,s=()=>Array.from({length:r()},(l,c)=>c+1),i=()=>t()>0?t():e.value,o=l=>{var c;e.readonly||(c=e.onChange)==null||c.call(e,l)},a=l=>Y("h-5 w-5 transition-colors",l<=i()?"fill-primary text-primary":"fill-transparent text-muted-foreground");return b(he,{get when(){return!e.readonly},get fallback(){return(()=>{var l=zc();return D(l,b(Kt,{get each(){return s()},children:c=>b(zr,{get class(){return a(c)},"aria-hidden":"true"})})),H(c=>{var u=Y("inline-flex items-center gap-1",e.class),d=`Rating ${e.value} of ${r()}`;return u!==c.e&&Me(l,c.e=u),d!==c.t&&$(l,"aria-label",c.t=d),c},{e:void 0,t:void 0}),l})()},get children(){var l=Nc();return l.addEventListener("mouseleave",()=>n(0)),D(l,b(Kt,{get each(){return s()},children:c=>(()=>{var u=Bc();return u.$$keydown=d=>{d.key==="ArrowRight"||d.key==="ArrowUp"?(d.preventDefault(),o(Math.min(e.value+1,r()))):(d.key==="ArrowLeft"||d.key==="ArrowDown")&&(d.preventDefault(),o(Math.max(e.value-1,0)))},u.$$click=()=>o(c),u.addEventListener("blur",()=>n(0)),u.addEventListener("focus",()=>n(c)),u.addEventListener("mouseenter",()=>n(c)),D(u,b(zr,{get class(){return a(c)},"aria-hidden":"true"})),H(d=>{var f=e.value===c,m=`Rate ${c} of ${r()}`;return f!==d.e&&$(u,"aria-checked",d.e=f),m!==d.t&&$(u,"aria-label",d.t=m),d},{e:void 0,t:void 0}),u})()})),H(()=>Me(l,Y("inline-flex items-center gap-1",e.class))),l}})}Pr(["click","keydown"]);var Kc=L('<div role=progressbar aria-valuemin=0 aria-valuemax=100><svg class=-rotate-90><circle fill=none stroke=hsl(var(--muted))></circle><circle fill=none stroke=hsl(var(--primary)) stroke-linecap=round class=transition-all></circle></svg><div class="absolute inset-0 flex items-center justify-center text-sm font-medium text-foreground">');function Gc(e){const t=()=>e.size??96,n=()=>e.thickness??8,r=()=>Math.min(100,Math.max(0,e.value)),s=()=>(t()-n())/2,i=()=>2*Math.PI*s(),o=()=>i()*(1-r()/100);return(()=>{var a=Kc(),l=a.firstChild,c=l.firstChild,u=c.nextSibling,d=l.nextSibling;return D(d,b(he,{get when(){return e.label},get fallback(){return`${Math.round(r())}%`},get children(){return e.label}})),H(f=>{var m=r(),y=Y("relative inline-flex items-center justify-center",e.class),h=`${t()}px`,p=`${t()}px`,v=t(),k=t(),C=`0 0 ${t()} ${t()}`,T=t()/2,A=t()/2,E=s(),I=n(),g=t()/2,V=t()/2,M=s(),O=n(),N=String(i()),ne=String(o());return m!==f.e&&$(a,"aria-valuenow",f.e=m),y!==f.t&&Me(a,f.t=y),h!==f.a&&Ke(a,"width",f.a=h),p!==f.o&&Ke(a,"height",f.o=p),v!==f.i&&$(l,"width",f.i=v),k!==f.n&&$(l,"height",f.n=k),C!==f.s&&$(l,"viewBox",f.s=C),T!==f.h&&$(c,"cx",f.h=T),A!==f.r&&$(c,"cy",f.r=A),E!==f.d&&$(c,"r",f.d=E),I!==f.l&&$(c,"stroke-width",f.l=I),g!==f.u&&$(u,"cx",f.u=g),V!==f.c&&$(u,"cy",f.c=V),M!==f.w&&$(u,"r",f.w=M),O!==f.m&&$(u,"stroke-width",f.m=O),N!==f.f&&$(u,"stroke-dasharray",f.f=N),ne!==f.y&&$(u,"stroke-dashoffset",f.y=ne),f},{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,l:void 0,u:void 0,c:void 0,w:void 0,m:void 0,f:void 0,y:void 0}),a})()}function Wc(e,t){const[n,r]=Q(Es(t==null?void 0:t()));return Ce(()=>{var s;r(((s=e())==null?void 0:s.tagName.toLowerCase())||Es(t==null?void 0:t()))}),n}function Es(e){return yc(e)?e:void 0}var Uc={};Gt(Uc,{Root:()=>$s,Separator:()=>Rs});function $s(e){let t;const n=pt({orientation:"horizontal"},e),[r,s]=ie(n,["ref","orientation"]),i=Wc(()=>t,()=>"hr");return b(be,F({as:"hr",ref(o){var a=bc(l=>t=l,r.ref);typeof a=="function"&&a(o)},get role(){return i()!=="hr"?"separator":void 0},get"aria-orientation"(){return r.orientation==="vertical"?"vertical":void 0},get"data-orientation"(){return r.orientation}},s))}var Rs=$s;function Yc(e){const t=()=>e.orientation??"horizontal";return b(Rs,{get orientation(){return t()},get class(){return Y("shrink-0 border-0 bg-border m-0",t()==="vertical"?"w-px min-h-4 h-full self-stretch":"h-px w-full",e.class)}})}var Xc=L('<svg viewBox="0 0 24 24"fill=none role=status><circle class=opacity-25 cx=12 cy=12 r=10 stroke=currentColor stroke-width=4></circle><path class=opacity-75 fill=currentColor d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z">');function Hc(e){return(()=>{var t=Xc();return H(n=>{var r=Y("h-5 w-5 animate-spin text-muted-foreground",e.class),s=e.label??"Loading";return r!==n.e&&$(t,"class",n.e=r),s!==n.t&&$(t,"aria-label",n.t=s),n},{e:void 0,t:void 0}),t})()}function qc(e,t){e.indexOf(t)===-1&&e.push(t)}function En(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Ie=(e,t,n)=>n>t?t:n<e?e:n;let $n=()=>{};const Ee={},Os=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Zc=e=>typeof e=="object"&&e!==null,Ds=e=>/^0[^.\s]+$/u.test(e);function Fs(e){let t;return()=>(t===void 0&&(t=e()),t)}const Xe=e=>e,Rn=(...e)=>e.reduce((t,n)=>r=>n(t(r))),On=(e,t,n)=>{const r=t-e;return r?(n-e)/r:1};class Ls{constructor(){this.subscriptions=[]}add(t){return qc(this.subscriptions,t),()=>En(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let i=0;i<s;i++){const o=this.subscriptions[i];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const fe=e=>e*1e3,me=e=>e/1e3,_s=(e,t)=>t?e*(1e3/t):0,Jc=(e,t,n)=>{const r=t-e;return((n-e)%r+r)%r+e},Ns=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Qc=1e-7,eu=12;function tu(e,t,n,r,s){let i,o,a=0;do o=t+(n-t)/2,i=Ns(o,r,s)-e,i>0?n=o:t=o;while(Math.abs(i)>Qc&&++a<eu);return o}function wt(e,t,n,r){if(e===t&&n===r)return Xe;const s=i=>tu(i,0,1,e,n);return i=>i===0||i===1?i:Ns(s(i),t,r)}const zs=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Dn=e=>t=>1-e(1-t),Bs=wt(.33,1.53,.69,.99),Fn=Dn(Bs),js=zs(Fn),Ks=e=>e>=1?1:(e*=2)<1?.5*Fn(e):.5*(2-Math.pow(2,-10*(e-1))),Ln=e=>1-Math.sin(Math.acos(e)),nu=Dn(Ln),Gs=zs(Ln),ru=wt(.42,0,1,1),su=wt(0,0,.58,1),Ws=wt(.42,0,.58,1),Us=e=>Array.isArray(e)&&typeof e[0]!="number";function Ys(e,t){return Us(e)?e[Jc(0,e.length,t)]:e}const Xs=e=>Array.isArray(e)&&typeof e[0]=="number",iu={linear:Xe,easeIn:ru,easeInOut:Ws,easeOut:su,circIn:Ln,circInOut:Gs,circOut:nu,backIn:Fn,backInOut:js,backOut:Bs,anticipate:Ks},ou=e=>typeof e=="string",Hs=e=>{if(Xs(e)){$n(e.length===4);const[t,n,r,s]=e;return wt(t,n,r,s)}else if(ou(e))return iu[e];return e},Zt=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function au(e){let t=new Set,n=new Set,r=!1,s=!1;const i=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(c){i.has(c)&&(l.schedule(c),e()),c(o)}const l={schedule:(c,u=!1,d=!1)=>{const m=d&&r?t:n;return u&&i.add(c),m.add(c),c},cancel:c=>{n.delete(c),i.delete(c)},process:c=>{if(o=c,r){s=!0;return}r=!0;const u=t;t=n,n=u,t.forEach(a),t.clear(),r=!1,s&&(s=!1,l.process(c))}};return l}const lu=40;function qs(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=Zt.reduce((C,T)=>(C[T]=au(i),C),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:d,preRender:f,render:m,postRender:y}=o,h=()=>{const C=Ee.useManualTiming,T=C?s.timestamp:performance.now();n=!1,C||(s.delta=r?1e3/60:Math.max(Math.min(T-s.timestamp,lu),1)),s.timestamp=T,s.isProcessing=!0,a.process(s),l.process(s),c.process(s),u.process(s),d.process(s),f.process(s),m.process(s),y.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(h))},p=()=>{n=!0,r=!0,s.isProcessing||e(h)};return{schedule:Zt.reduce((C,T)=>{const A=o[T];return C[T]=(E,I=!1,g=!1)=>(n||p(),A.schedule(E,I,g)),C},{}),cancel:C=>{for(let T=0;T<Zt.length;T++)o[Zt[T]].cancel(C)},state:s,steps:o}}const{schedule:we,cancel:_n,state:Jt}=qs(typeof requestAnimationFrame<"u"?requestAnimationFrame:Xe,!0);let Qt;function cu(){Qt=void 0}const ue={now:()=>(Qt===void 0&&ue.set(Jt.isProcessing||Ee.useManualTiming?Jt.timestamp:performance.now()),Qt),set:e=>{Qt=e,queueMicrotask(cu)}},Zs=e=>t=>typeof t=="string"&&t.startsWith(e),Js=Zs("--"),uu=Zs("var(--"),Nn=e=>uu(e)?du.test(e.split("/*")[0].trim()):!1,du=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Qs(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const He={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},xt={...He,transform:e=>Ie(0,1,e)},en={...He,default:1},kt=e=>Math.round(e*1e5)/1e5,zn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function fu(e){return e==null}const hu=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Bn=(e,t)=>n=>!!(typeof n=="string"&&hu.test(n)&&n.startsWith(e)||t&&!fu(n)&&Object.prototype.hasOwnProperty.call(n,t)),ei=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,i,o,a]=r.match(zn);return{[e]:parseFloat(s),[t]:parseFloat(i),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},mu=e=>Ie(0,255,e),jn={...He,transform:e=>Math.round(mu(e))},Le={test:Bn("rgb","red"),parse:ei("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+jn.transform(e)+", "+jn.transform(t)+", "+jn.transform(n)+", "+kt(xt.transform(r))+")"};function gu(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const Kn={test:Bn("#"),parse:gu,transform:Le.transform},St=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Se=St("deg"),qe=St("%"),S=St("px"),pu=St("vh"),bu=St("vw"),ti={...qe,parse:e=>qe.parse(e)/100,transform:e=>qe.transform(e*100)},Ze={test:Bn("hsl","hue"),parse:ei("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+qe.transform(kt(t))+", "+qe.transform(kt(n))+", "+kt(xt.transform(r))+")"},X={test:e=>Le.test(e)||Kn.test(e)||Ze.test(e),parse:e=>Le.test(e)?Le.parse(e):Ze.test(e)?Ze.parse(e):Kn.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Le.transform(e):Ze.transform(e),getAnimatableNone:e=>{const t=X.parse(e);return t.alpha=0,X.transform(t)}},yu=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function vu(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(zn))==null?void 0:t.length)||0)+(((n=e.match(yu))==null?void 0:n.length)||0)>0}const ni="number",ri="color",wu="var",xu="var(",si="${}",ku=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Je(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let i=0;const a=t.replace(ku,l=>(X.test(l)?(r.color.push(i),s.push(ri),n.push(X.parse(l))):l.startsWith(xu)?(r.var.push(i),s.push(wu),n.push(l)):(r.number.push(i),s.push(ni),n.push(parseFloat(l))),++i,si)).split(si);return{values:n,split:a,indexes:r,types:s}}function Su(e){return Je(e).values}function ii({split:e,types:t}){const n=e.length;return r=>{let s="";for(let i=0;i<n;i++)if(s+=e[i],r[i]!==void 0){const o=t[i];o===ni?s+=kt(r[i]):o===ri?s+=X.transform(r[i]):s+=r[i]}return s}}function Tu(e){return ii(Je(e))}const Au=e=>typeof e=="number"?0:X.test(e)?X.getAnimatableNone(e):e,Cu=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:Au(e);function Mu(e){const t=Je(e);return ii(t)(t.values.map((r,s)=>Cu(r,t.split[s])))}const ge={test:vu,parse:Su,createTransformer:Tu,getAnimatableNone:Mu};function Gn(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<.16666666666666666?e+(t-e)*6*n:n<.5?t:n<.6666666666666666?e+(t-e)*(.6666666666666666-n)*6:e}function Vu({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,i=0,o=0;if(!t)s=i=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;s=Gn(l,a,e+.3333333333333333),i=Gn(l,a,e),o=Gn(l,a,e-.3333333333333333)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:r}}function tn(e,t){return n=>n>0?t:e}const Qe=(e,t,n)=>e+(t-e)*n,Wn=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},Pu=[Kn,Le,Ze],Iu=e=>Pu.find(t=>t.test(e));function oi(e){const t=Iu(e);if(!t)return!1;let n=t.parse(e);return t===Ze&&(n=Vu(n)),n}const ai=(e,t)=>{const n=oi(e),r=oi(t);if(!n||!r)return tn(e,t);const s={...n};return i=>(s.red=Wn(n.red,r.red,i),s.green=Wn(n.green,r.green,i),s.blue=Wn(n.blue,r.blue,i),s.alpha=Qe(n.alpha,r.alpha,i),Le.transform(s))},Un=new Set(["none","hidden"]);function Eu(e,t){return Un.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function $u(e,t){return n=>Qe(e,t,n)}function Yn(e){return typeof e=="number"?$u:typeof e=="string"?Nn(e)?tn:X.test(e)?ai:Du:Array.isArray(e)?li:typeof e=="object"?X.test(e)?ai:Ru:tn}function li(e,t){const n=[...e],r=n.length,s=e.map((i,o)=>Yn(i)(i,t[o]));return i=>{for(let o=0;o<r;o++)n[o]=s[o](i);return n}}function Ru(e,t){const n={...e,...t},r={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(r[s]=Yn(e[s])(e[s],t[s]));return s=>{for(const i in r)n[i]=r[i](s);return n}}function Ou(e,t){const n=[],r={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const i=t.types[s],o=e.indexes[i][r[i]],a=e.values[o]??0;n[s]=a,r[i]++}return n}const Du=(e,t)=>{const n=ge.createTransformer(t),r=Je(e),s=Je(t);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?Un.has(e)&&!s.values.length||Un.has(t)&&!r.values.length?Eu(e,t):Rn(li(Ou(r,s),s.values),n):tn(e,t)};function ci(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Qe(e,t,n):Yn(e)(e,t)}const Fu=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>we.update(t,n),stop:()=>_n(t),now:()=>Jt.isProcessing?Jt.timestamp:ue.now()}},ui=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let i=0;i<s;i++)r+=Math.round(e(i/(s-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},nn=2e4;function Xn(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<nn;)t+=n,r=e.next(t);return t>=nn?1/0:t}function di(e,t=100,n){const r=n({...e,keyframes:[0,t]}),s=Math.min(Xn(r),nn);return{type:"keyframes",ease:i=>r.next(s*i).value/t,duration:me(s)}}const z={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Hn(e,t){return e*Math.sqrt(1-t*t)}const Lu=12;function _u(e,t,n){let r=n;for(let s=1;s<Lu;s++)r=r-e(r)/t(r);return r}const qn=.001;function Nu({duration:e=z.duration,bounce:t=z.bounce,velocity:n=z.velocity,mass:r=z.mass}){let s,i,o=1-t;o=Ie(z.minDamping,z.maxDamping,o),e=Ie(z.minDuration,z.maxDuration,me(e)),o<1?(s=c=>{const u=c*o,d=u*e,f=u-n,m=Hn(c,o),y=Math.exp(-d);return qn-f/m*y},i=c=>{const d=c*o*e,f=d*n+n,m=Math.pow(o,2)*Math.pow(c,2)*e,y=Math.exp(-d),h=Hn(Math.pow(c,2),o);return(-s(c)+qn>0?-1:1)*((f-m)*y)/h}):(s=c=>{const u=Math.exp(-c*e),d=(c-n)*e+1;return-qn+u*d},i=c=>{const u=Math.exp(-c*e),d=(n-c)*(e*e);return u*d});const a=5/e,l=_u(s,i,a);if(e=fe(e),isNaN(l))return{stiffness:z.stiffness,damping:z.damping,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:o*2*Math.sqrt(r*c),duration:e}}}const zu=["duration","bounce"],Bu=["stiffness","damping","mass"];function fi(e,t){return t.some(n=>e[n]!==void 0)}function ju(e){let t={velocity:z.velocity,stiffness:z.stiffness,damping:z.damping,mass:z.mass,isResolvedFromDuration:!1,...e};if(!fi(e,Bu)&&fi(e,zu))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,i=2*Ie(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:z.mass,stiffness:s,damping:i}}else{const n=Nu({...e,velocity:0});t={...t,...n,mass:z.mass},t.isResolvedFromDuration=!0}return t}function Tt(e=z.visualDuration,t=z.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:s}=n;const i=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:c,mass:u,duration:d,velocity:f,isResolvedFromDuration:m}=ju({...n,velocity:-me(n.velocity||0)}),y=f||0,h=c/(2*Math.sqrt(l*u)),p=o-i,v=me(Math.sqrt(l/u)),k=Math.abs(p)<5;r||(r=k?z.restSpeed.granular:z.restSpeed.default),s||(s=k?z.restDelta.granular:z.restDelta.default);let C,T,A,E,I,g;if(h<1)A=Hn(v,h),E=(y+h*v*p)/A,C=M=>{const O=Math.exp(-h*v*M);return o-O*(E*Math.sin(A*M)+p*Math.cos(A*M))},I=h*v*E+p*A,g=h*v*p-E*A,T=M=>Math.exp(-h*v*M)*(I*Math.sin(A*M)+g*Math.cos(A*M));else if(h===1){C=O=>o-Math.exp(-v*O)*(p+(y+v*p)*O);const M=y+v*p;T=O=>Math.exp(-v*O)*(v*M*O-y)}else{const M=v*Math.sqrt(h*h-1);C=re=>{const se=Math.exp(-h*v*re),W=Math.min(M*re,300);return o-se*((y+h*v*p)*Math.sinh(W)+M*p*Math.cosh(W))/M};const O=(y+h*v*p)/M,N=h*v*O-p*M,ne=h*v*p-O*M;T=re=>{const se=Math.exp(-h*v*re),W=Math.min(M*re,300);return se*(N*Math.sinh(W)+ne*Math.cosh(W))}}const V={calculatedDuration:m&&d||null,velocity:M=>fe(T(M)),next:M=>{if(!m&&h<1){const N=Math.exp(-h*v*M),ne=Math.sin(A*M),re=Math.cos(A*M),se=o-N*(E*ne+p*re),W=fe(N*(I*ne+g*re));return a.done=Math.abs(W)<=r&&Math.abs(o-se)<=s,a.value=a.done?o:se,a}const O=C(M);if(m)a.done=M>=d;else{const N=fe(T(M));a.done=Math.abs(N)<=r&&Math.abs(o-O)<=s}return a.value=a.done?o:O,a},toString:()=>{const M=Math.min(Xn(V),nn),O=ui(N=>V.next(M*N).value,M,30);return M+"ms "+O},toTransition:()=>{}};return V}Tt.applyToOptions=e=>{const t=di(e,100,Tt);return e.ease=t.ease,e.duration=fe(t.duration),e.type="keyframes",e};const Ku=5;function hi(e,t,n){const r=Math.max(t-Ku,0);return _s(n-e(r),t-r)}function Zn({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:i=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},m=g=>a!==void 0&&g<a||l!==void 0&&g>l,y=g=>a===void 0?l:l===void 0||Math.abs(a-g)<Math.abs(l-g)?a:l;let h=n*t;const p=d+h,v=o===void 0?p:o(p);v!==p&&(h=v-d);const k=g=>-h*Math.exp(-g/r),C=g=>v+k(g),T=g=>{const V=k(g),M=C(g);f.done=Math.abs(V)<=c,f.value=f.done?v:M};let A,E;const I=g=>{m(f.value)&&(A=g,E=Tt({keyframes:[f.value,y(f.value)],velocity:hi(C,g,f.value),damping:s,stiffness:i,restDelta:c,restSpeed:u}))};return I(0),{calculatedDuration:null,next:g=>{let V=!1;return!E&&A===void 0&&(V=!0,T(g),I(g)),A!==void 0&&g>=A?E.next(g-A):(!V&&T(g),f)}}}function Gu(e,t,n){const r=[],s=n||Ee.mix||ci,i=e.length-1;for(let o=0;o<i;o++){let a=s(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||Xe:t;a=Rn(l,a)}r.push(a)}return r}function Wu(e,t,{clamp:n=!0,ease:r,mixer:s}={}){const i=e.length;if($n(i===t.length),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=Gu(t,r,s),l=a.length,c=u=>{if(o&&u<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(u<e[d+1]);d++);const f=On(e[d],e[d+1],u);return a[d](f)};return n?u=>c(Ie(e[0],e[i-1],u)):c}function mi(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=On(0,t,r);e.push(Qe(n,1,s))}}function gi(e){const t=[0];return mi(t,e.length-1),t}function Uu(e,t){return e.map(n=>n*t)}function Yu(e,t){return e.map(()=>t||Ws).splice(0,e.length-1)}function At({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=Us(r)?r.map(Hs):Hs(r),i={done:!1,value:t[0]},o=Uu(n&&n.length===t.length?n:gi(t),e),a=Wu(o,t,{ease:Array.isArray(s)?s:Yu(t,s)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const Xu=e=>e!==null;function rn(e,{repeat:t,repeatType:n="loop"},r,s=1){const i=e.filter(Xu),a=s<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const Hu={decay:Zn,inertia:Zn,tween:At,keyframes:At,spring:Tt};function pi(e){typeof e.type=="string"&&(e.type=Hu[e.type])}class Jn{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const qu=e=>e/100;class sn extends Jn{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var r,s;const{motionValue:n}=this.options;n&&n.updatedAt!==ue.now()&&this.tick(ue.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(s=(r=this.options).onStop)==null||s.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;pi(t);const{type:n=At,repeat:r=0,repeatDelay:s=0,repeatType:i,velocity:o=0}=t;let{keyframes:a}=t;const l=n||At;l!==At&&typeof a[0]!="number"&&(this.mixKeyframes=Rn(qu,ci(a[0],a[1])),a=[0,100]);const c=l({...t,keyframes:a});i==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=Xn(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+s,this.totalDuration=this.resolvedDuration*(r+1)-s,this.generator=c}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:s,mixKeyframes:i,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:c=0,keyframes:u,repeat:d,repeatType:f,repeatDelay:m,type:y,onUpdate:h,finalKeyframe:p}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const v=this.currentTime-c*(this.playbackSpeed>=0?1:-1),k=this.playbackSpeed>=0?v<0:v>s;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let C=this.currentTime,T=r;if(d){const g=Math.min(this.currentTime,s)/a;let V=Math.floor(g),M=g%1;!M&&g>=1&&(M=1),M===1&&V--,V=Math.min(V,d+1),!!(V%2)&&(f==="reverse"?(M=1-M,m&&(M-=m/a)):f==="mirror"&&(T=o)),C=Ie(0,1,M)*a}let A;k?(this.delayState.value=u[0],A=this.delayState):A=T.next(C),i&&!k&&(A.value=i(A.value));let{done:E}=A;!k&&l!==null&&(E=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const I=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return I&&y!==Zn&&(A.value=rn(u,this.options,p,this.speed)),h&&h(A.value),I&&this.finish(),A}then(t,n){return this.finished.then(t,n)}get duration(){return me(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+me(t)}get time(){return me(this.currentTime)}set time(t){t=fe(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return hi(r=>this.generator.next(r).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(ue.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=me(this.currentTime))}play(){var s,i;if(this.isStopped)return;const{driver:t=Fu,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(i=(s=this.options).onPlay)==null||i.call(s);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ue.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function Zu(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const _e=e=>e*180/Math.PI,Qn=e=>{const t=_e(Math.atan2(e[1],e[0]));return er(t)},Ju={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Qn,rotateZ:Qn,skewX:e=>_e(Math.atan(e[1])),skewY:e=>_e(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},er=e=>(e=e%360,e<0&&(e+=360),e),bi=Qn,yi=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),vi=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Qu={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:yi,scaleY:vi,scale:e=>(yi(e)+vi(e))/2,rotateX:e=>er(_e(Math.atan2(e[6],e[5]))),rotateY:e=>er(_e(Math.atan2(-e[2],e[0]))),rotateZ:bi,rotate:bi,skewX:e=>_e(Math.atan(e[4])),skewY:e=>_e(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function tr(e){return e.includes("scale")?1:0}function nr(e,t){if(!e||e==="none")return tr(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,s;if(n)r=Qu,s=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Ju,s=a}if(!s)return tr(t);const i=r[t],o=s[1].split(",").map(td);return typeof i=="function"?i(o):o[i]}const ed=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return nr(n,t)};function td(e){return parseFloat(e.trim())}const et=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],tt=new Set([...et,"pathRotation"]),wi=e=>e===He||e===S,nd=new Set(["x","y","z"]),rd=et.filter(e=>!nd.has(e));function sd(e){const t=[];return rd.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const $e={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{const s=e.max-e.min;return r==="border-box"?s:s-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{const s=e.max-e.min;return r==="border-box"?s:s-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>nr(t,"x"),y:(e,{transform:t})=>nr(t,"y")};$e.translateX=$e.x,$e.translateY=$e.y;const Ne=new Set;let rr=!1,sr=!1,ir=!1;function xi(){if(sr){const e=Array.from(Ne).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=sd(r);s.length&&(n.set(r,s),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const s=n.get(r);s&&s.forEach(([i,o])=>{var a;(a=r.getValue(i))==null||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}sr=!1,rr=!1,Ne.forEach(e=>e.complete(ir)),Ne.clear()}function ki(){Ne.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(sr=!0)})}function id(){ir=!0,ki(),xi(),ir=!1}class or{constructor(t,n,r,s,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=s,this.element=i,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(Ne.add(this),rr||(rr=!0,we.read(ki),we.resolveKeyframes(xi))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:s}=this;if(t[0]===null){const i=s==null?void 0:s.get(),o=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&n){const a=r.readValue(n,o);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=o),s&&i===void 0&&s.set(t[0])}Zu(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Ne.delete(this)}cancel(){this.state==="scheduled"&&(Ne.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const od=e=>e.startsWith("--");function Si(e,t,n){od(t)?e.style.setProperty(t,n):e.style[t]=n}const ad={};function Ti(e,t){const n=Fs(e);return()=>ad[t]??n()}const ld=Ti(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Ai=Ti(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Ct=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ci={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ct([0,.65,.55,1]),circOut:Ct([.55,0,1,.45]),backIn:Ct([.31,.01,.66,-.59]),backOut:Ct([.33,1.53,.69,.99])};function Mi(e,t){if(e)return typeof e=="function"?Ai()?ui(e,t):"ease-out":Xs(e)?Ct(e):Array.isArray(e)?e.map(n=>Mi(n,t)||Ci.easeOut):Ci[e]}function cd(e,t,n,{delay:r=0,duration:s=300,repeat:i=0,repeatType:o="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[t]:n};l&&(u.offset=l);const d=Mi(a,s);Array.isArray(d)&&(u.easing=d);const f={delay:r,duration:s,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"};return c&&(f.pseudoElement=c),e.animate(u,f)}function ar(e){return typeof e=="function"&&"applyToOptions"in e}function ud({type:e,...t}){return ar(e)&&Ai()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Vi extends Jn{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:s,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!i,this.allowFlatten=o,this.options=t,$n(typeof t.type!="string");const c=ud(t);this.animation=cd(n,r,s,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const u=rn(s,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(u),Si(n,r,u),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,r,s;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((s=(r=this.animation).commitStyles)==null||s.call(r))}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return me(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+me(t)}get time(){return me(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=fe(t),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:n,rangeEnd:r,observe:s}){var i;return this.allowFlatten&&((i=this.animation.effect)==null||i.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&ld()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),Xe):s(this)}}const Pi={anticipate:Ks,backInOut:js,circInOut:Gs};function dd(e){return e in Pi}function fd(e){typeof e.ease=="string"&&dd(e.ease)&&(e.ease=Pi[e.ease])}const lr=10;class hd extends Vi{constructor(t){fd(t),pi(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:s,element:i,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new sn({...o,autoplay:!1}),l=Math.max(lr,ue.now()-this.startTime),c=Ie(0,lr,l-lr),u=a.sample(l).value,{name:d}=this.options;i&&d&&Si(i,d,u),n.setWithVelocity(a.sample(Math.max(0,l-c)).value,u,c),a.stop()}}const Ii=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ge.test(e)||e==="0")&&!e.startsWith("url("));function md(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function gd(e,t,n,r){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],o=Ii(s,t),a=Ii(i,t);return!o||!a?!1:md(e)||(n==="spring"||ar(n))&&r}function cr(e){e.duration=0,e.type="keyframes"}const Ei=new Set(["opacity","clipPath","filter","transform"]),pd=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function bd(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&pd.test(e[t]))return!0;return!1}const yd=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),vd=Fs(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function wd(e){var d;const{motionValue:t,name:n,repeatDelay:r,repeatType:s,damping:i,type:o,keyframes:a}=e;if(!(((d=t==null?void 0:t.owner)==null?void 0:d.current)instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=t.owner.getProps();return vd()&&n&&(Ei.has(n)||yd.has(n)&&bd(a))&&(n!=="transform"||!u)&&!c&&!r&&s!=="mirror"&&i!==0&&o!=="inertia"}const xd=40;class kd extends Jn{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:o="loop",keyframes:a,name:l,motionValue:c,element:u,...d}){var y;super(),this.stop=()=>{var h,p;this._animation&&(this._animation.stop(),(h=this.stopTimeline)==null||h.call(this)),(p=this.keyframeResolver)==null||p.cancel()},this.createdAt=ue.now();const f={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:i,repeatType:o,name:l,motionValue:c,element:u,...d},m=(u==null?void 0:u.KeyframeResolver)||or;this.keyframeResolver=new m(a,(h,p,v)=>this.onKeyframesResolved(h,p,f,!v),l,c,u),(y=this.keyframeResolver)==null||y.scheduleResolve()}onKeyframesResolved(t,n,r,s){var v,k;this.keyframeResolver=void 0;const{name:i,type:o,velocity:a,delay:l,isHandoff:c,onUpdate:u}=r;this.resolvedAt=ue.now();let d=!0;gd(t,i,o,a)||(d=!1,(Ee.instantAnimations||!l)&&(u==null||u(rn(t,r,n))),t[0]=t[t.length-1],cr(r),r.repeat=0);const m={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>xd?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},y=d&&!c&&wd(m),h=(k=(v=m.motionValue)==null?void 0:v.owner)==null?void 0:k.current;let p;if(y)try{p=new hd({...m,element:h})}catch{p=new sn(m)}else p=new sn(m);p.finished.then(()=>{this.notifyFinished()}).catch(Xe),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),id()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}class Sd{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t){const n=this.animations.map(r=>r.attachTimeline(t));return()=>{n.forEach((r,s)=>{r&&r(),this.animations[s].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return $i(this.animations,"duration")}get iterationDuration(){return $i(this.animations,"iterationDuration")}runAll(t){this.animations.forEach(n=>n[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function $i(e,t){let n=0;for(let r=0;r<e.length;r++){const s=e[r][t];s!==null&&s>n&&(n=s)}return n}class Td extends Sd{then(t,n){return this.finished.finally(t).then(()=>{})}}const Ri=30,Ad=e=>!isNaN(parseFloat(e));class Cd{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var i;const s=ue.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((i=this.events.change)==null||i.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ue.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Ad(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Ls);const r=this.events[t].add(n);return t==="change"?()=>{r(),we.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=ue.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Ri)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Ri);return _s(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function nt(e,t){return new Cd(e,t)}function Oi(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function Di(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?Oi(n,e):n}const Md={type:"spring",stiffness:500,damping:25,restSpeed:10},Vd=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Pd={type:"keyframes",duration:.8},Id={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ed=(e,{keyframes:t})=>t.length>2?Pd:tt.has(e)?e.startsWith("scale")?Vd(t[1]):Md:Id,$d=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function Rd(e){for(const t in e)if(!$d.has(t))return!0;return!1}const Fi=(e,t,n,r={},s,i)=>o=>{const a=Di(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-fe(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:s};Rd(a)||Object.assign(u,Ed(e,u)),u.duration&&(u.duration=fe(u.duration)),u.repeatDelay&&(u.repeatDelay=fe(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(cr(u),u.delay===0&&(d=!0)),(Ee.instantAnimations||Ee.skipAnimations||s!=null&&s.shouldSkipAnimations||a.skipAnimations)&&(d=!0,cr(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,d&&!i&&t.get()!==void 0){const f=rn(u.keyframes,a);if(f!==void 0){we.update(()=>{u.onUpdate(f),u.onComplete()});return}}return a.isSync?new sn(u):new kd(u)},Od=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Dd(e){const t=Od.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}function Li(e,t,n=1){const[r,s]=Dd(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const o=i.trim();return Os(o)?parseFloat(o):o}return Nn(s)?Li(s,t,n+1):s}function _i(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Ni(e,t,n,r){if(typeof t=="function"){const[s,i]=_i(r);t=t(n!==void 0?n:e.custom,s,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,i]=_i(r);t=t(n!==void 0?n:e.custom,s,i)}return t}function Fd(e,t,n){const r=e.getProps();return Ni(r,t,r.custom,e)}const zi=new Set(["width","height","top","left","right","bottom",...et]),Ld=e=>Array.isArray(e);function _d(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,nt(n))}function Nd(e){return Ld(e)?e[e.length-1]||0:e}function zd(e,t){const n=Fd(e,t);let{transitionEnd:r={},transition:s={},...i}=n||{};i={...i,...r};for(const o in i){const a=Nd(i[o]);_d(e,o,a)}}const oe=e=>!!(e&&e.getVelocity);function Bd(e){return!!(oe(e)&&e.add)}function jd(e,t){const n=e.getValue("willChange");if(Bd(n))return n.add(t);if(!n&&Ee.WillChange){const r=new Ee.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function ur(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const Kd="data-"+ur("framerAppearId");function Gd(e){return e.props[Kd]}function Wd({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Ud(e,t,{delay:n=0,transitionOverride:r,type:s}={}){let{transition:i,transitionEnd:o,...a}=t;const l=e.getDefaultTransition();i=i?Oi(i,l):l;const c=i==null?void 0:i.reduceMotion,u=i==null?void 0:i.skipAnimations;r&&(i=r);const d=[],f=s&&e.animationState&&e.animationState.getState()[s],m=i==null?void 0:i.path;m&&m.animateVisualElement(e,a,i,n,d);for(const y in a){const h=e.getValue(y,e.latestValues[y]??null),p=a[y];if(p===void 0||f&&Wd(f,y))continue;const v={delay:n,...Di(i||{},y)};u&&(v.skipAnimations=!0);const k=h.get();if(k!==void 0&&!h.isAnimating()&&!Array.isArray(p)&&p===k&&!v.velocity){we.update(()=>h.set(p));continue}let C=!1;if(window.MotionHandoffAnimation){const E=Gd(e);if(E){const I=window.MotionHandoffAnimation(E,y,we);I!==null&&(v.startTime=I,C=!0)}}jd(e,y);const T=c??e.shouldReduceMotion;h.start(Fi(y,h,p,T&&zi.has(y)?{type:!1}:v,e,C));const A=h.animation;A&&d.push(A)}if(o){const y=()=>we.update(()=>{o&&zd(e,o)});d.length?Promise.all(d).then(y):y()}return d}const Yd={test:e=>e==="auto",parse:e=>e},Bi=e=>t=>t.test(e),ji=[He,S,qe,Se,bu,pu,Yd],Ki=e=>ji.find(Bi(e));function Xd(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Ds(e):!0}const Hd=new Set(["brightness","contrast","saturate","opacity"]);function qd(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(zn)||[];if(!r)return e;const s=n.replace(r,"");let i=Hd.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+s+")"}const Zd=/\b([a-z-]*)\(.*?\)/gu,dr={...ge,getAnimatableNone:e=>{const t=e.match(Zd);return t?t.map(qd).join(" "):e}},fr={...ge,getAnimatableNone:e=>{const t=ge.parse(e);return ge.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},Gi={...He,transform:Math.round},on={borderWidth:S,borderTopWidth:S,borderRightWidth:S,borderBottomWidth:S,borderLeftWidth:S,borderRadius:S,borderTopLeftRadius:S,borderTopRightRadius:S,borderBottomRightRadius:S,borderBottomLeftRadius:S,width:S,maxWidth:S,height:S,maxHeight:S,top:S,right:S,bottom:S,left:S,inset:S,insetBlock:S,insetBlockStart:S,insetBlockEnd:S,insetInline:S,insetInlineStart:S,insetInlineEnd:S,padding:S,paddingTop:S,paddingRight:S,paddingBottom:S,paddingLeft:S,paddingBlock:S,paddingBlockStart:S,paddingBlockEnd:S,paddingInline:S,paddingInlineStart:S,paddingInlineEnd:S,margin:S,marginTop:S,marginRight:S,marginBottom:S,marginLeft:S,marginBlock:S,marginBlockStart:S,marginBlockEnd:S,marginInline:S,marginInlineStart:S,marginInlineEnd:S,fontSize:S,backgroundPositionX:S,backgroundPositionY:S,...{rotate:Se,pathRotation:Se,rotateX:Se,rotateY:Se,rotateZ:Se,scale:en,scaleX:en,scaleY:en,scaleZ:en,skew:Se,skewX:Se,skewY:Se,distance:S,translateX:S,translateY:S,translateZ:S,x:S,y:S,z:S,perspective:S,transformPerspective:S,opacity:xt,originX:ti,originY:ti,originZ:S},zIndex:Gi,fillOpacity:xt,strokeOpacity:xt,numOctaves:Gi},Jd={...on,color:X,backgroundColor:X,outlineColor:X,fill:X,stroke:X,borderColor:X,borderTopColor:X,borderRightColor:X,borderBottomColor:X,borderLeftColor:X,filter:dr,WebkitFilter:dr,mask:fr,WebkitMask:fr},Wi=e=>Jd[e],Qd=new Set([dr,fr]);function Ui(e,t){let n=Wi(e);return Qd.has(n)||(n=ge),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const ef=new Set(["auto","none","0"]);function tf(e,t,n){let r=0,s;for(;r<e.length&&!s;){const i=e[r];typeof i=="string"&&!ef.has(i)&&Je(i).values.length&&(s=e[r]),r++}if(s&&n)for(const i of t)e[i]=Ui(n,s)}class nf extends or{constructor(t,n,r,s,i){super(t,n,r,s,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let d=t[u];if(typeof d=="string"&&(d=d.trim(),Nn(d))){const f=Li(d,n.current);f!==void 0&&(t[u]=f),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!zi.has(r)||t.length!==2)return;const[s,i]=t,o=Ki(s),a=Ki(i),l=Qs(s),c=Qs(i);if(l!==c&&$e[r]){this.needsMeasurement=!0;return}if(o!==a)if(wi(o)&&wi(a))for(let u=0;u<t.length;u++){const d=t[u];typeof d=="string"&&(t[u]=parseFloat(d))}else $e[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let s=0;s<t.length;s++)(t[s]===null||Xd(t[s]))&&r.push(s);r.length&&tf(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=$e[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&t.getValue(r,s).jump(s,!1)}measureEndState(){var a;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const s=t.getValue(n);s&&s.jump(this.measuredOrigin,!1);const i=r.length-1,o=r[i];r[i]=$e[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([l,c])=>{t.getValue(l).set(c)}),this.resolveNoneKeyframes()}}const rf=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function sf(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;t&&(r=t.current);const s=(n==null?void 0:n[e])??r.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e).filter(r=>r!=null)}const hr=(e,t)=>t&&typeof e=="number"?t.transform(e):e,{schedule:of}=qs(queueMicrotask,!1);function Yi(e){return Zc(e)&&"ownerSVGElement"in e}function af(e){return Yi(e)&&e.tagName==="svg"}const lf=[...ji,X,ge],cf=e=>lf.find(Bi(e)),Xi=()=>({min:0,max:0}),mr=()=>({x:Xi(),y:Xi()}),Mt=new WeakMap;function uf(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function df(e){return typeof e=="string"||Array.isArray(e)}const ff=["initial",...["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"]];function Hi(e){return uf(e.animate)||ff.some(t=>df(e[t]))}function hf(e){return!!(Hi(e)||e.variants)}function mf(e,t,n){for(const r in t){const s=t[r],i=n[r];if(oe(s))e.addValue(r,s);else if(oe(i))e.addValue(r,nt(s,{owner:e}));else if(i!==s)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{const o=e.getStaticValue(r);e.addValue(r,nt(o!==void 0?o:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const gr={current:null},qi={current:!1},gf=typeof window<"u";function pf(){if(qi.current=!0,!!gf)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>gr.current=e.matches;e.addEventListener("change",t),t()}else gr.current=!1}const Zi=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Ji={};class Qi{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,skipAnimations:i,blockInitialAnimation:o,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=or,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const m=ue.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,we.render(this.render,!1,!0))};const{latestValues:c,renderState:u}=a;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.skipAnimationsConfig=i,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=Hi(n),this.isVariantNode=hf(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const m in f){const y=f[m];c[m]!==void 0&&oe(y)&&y.set(c[m])}}mount(t){var n,r;if(this.hasBeenMounted)for(const s in this.initialValues)(n=this.values.get(s))==null||n.jump(this.initialValues[s]),this.latestValues[s]=this.initialValues[s];this.current=t,Mt.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((s,i)=>this.bindToMotionValue(i,s)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(qi.current||pf(),this.shouldReduceMotion=gr.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(r=this.parent)==null||r.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),_n(this.notifyUpdate),_n(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&Ei.has(t)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:l,ease:c,duration:u}=n.accelerate,d=new Vi({element:this.current,name:t,keyframes:a,times:l,ease:c,duration:fe(u)}),f=o(d);this.valueSubscriptions.set(t,()=>{f(),d.cancel()});return}const r=tt.has(t);r&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&we.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),i&&i()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Ji){const n=Ji[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):mr()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Zi.length;r++){const s=Zi[r];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const i="on"+s,o=t[i];o&&(this.propEventSubscriptions[s]=this.on(s,o))}this.prevMotionValues=mf(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=nt(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(Os(r)||Ds(r))?r=parseFloat(r):!cf(r)&&ge.test(n)&&(r=Ui(t,n)),this.setBaseTarget(t,oe(r)?r.get():r)),oe(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var i;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=Ni(this.props,n,(i=this.presenceContext)==null?void 0:i.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!oe(s)?s:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Ls),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){of.render(this.render)}}class eo extends Qi{constructor(){super(...arguments),this.KeyframeResolver=nf}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;oe(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function bf({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function yf(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function vf(e,t){return bf(yf(e.getBoundingClientRect(),t))}const wf={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},xf=et.length;function kf(e,t,n){let r="",s=!0;for(let o=0;o<xf;o++){const a=et[o],l=e[a];if(l===void 0)continue;let c=!0;if(typeof l=="number")c=l===(a.startsWith("scale")?1:0);else{const u=parseFloat(l);c=a.startsWith("scale")?u===1:u===0}if(!c||n){const u=hr(l,on[a]);if(!c){s=!1;const d=wf[a]||a;r+=`${d}(${u}) `}n&&(t[a]=u)}}const i=e.pathRotation;return i&&(s=!1,r+=`rotate(${hr(i,on.pathRotation)}) `),r=r.trim(),n?r=n(t,s?"":r):s&&(r="none"),r}function to(e,t,n){const{style:r,vars:s,transformOrigin:i}=e;let o=!1,a=!1;for(const l in t){const c=t[l];if(tt.has(l)){o=!0;continue}else if(Js(l)){s[l]=c;continue}else{const u=hr(c,on[l]);l.startsWith("origin")?(a=!0,i[l]=u):r[l]=u}}if(t.transform||(o||n?r.transform=kf(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=i;r.transformOrigin=`${l} ${c} ${u}`}}function no(e,{style:t,vars:n},r,s){const i=e.style;let o;for(o in t)i[o]=t[o];s==null||s.applyProjectionStyles(i,r);for(o in n)i.setProperty(o,n[o])}function ro(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Vt={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(S.test(e))e=parseFloat(e);else return e;const n=ro(e,t.target.x),r=ro(e,t.target.y);return`${n}% ${r}%`}},Sf={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=ge.parse(e);if(s.length>5)return r;const i=ge.createTransformer(e),o=typeof s[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;s[0+o]/=a,s[1+o]/=l;const c=Qe(a,l,.5);return typeof s[2+o]=="number"&&(s[2+o]/=c),typeof s[3+o]=="number"&&(s[3+o]/=c),i(s)}},Tf={borderRadius:{...Vt,applyTo:[...rf]},borderTopLeftRadius:Vt,borderTopRightRadius:Vt,borderBottomLeftRadius:Vt,borderBottomRightRadius:Vt,boxShadow:Sf};function Af(e,{layout:t,layoutId:n}){return tt.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Tf[e]||e==="opacity")}function so(e,t,n){var o;const r=e.style,s=t==null?void 0:t.style,i={};if(!r)return i;for(const a in r)(oe(r[a])||s&&oe(s[a])||Af(a,e)||((o=n==null?void 0:n.getValue(a))==null?void 0:o.liveStyle)!==void 0)&&(i[a]=r[a]);return i}function Cf(e){return window.getComputedStyle(e)}class Mf extends eo{constructor(){super(...arguments),this.type="html",this.renderInstance=no}readValueFromInstance(t,n){var r;if(tt.has(n))return(r=this.projection)!=null&&r.isProjecting?tr(n):ed(t,n);{const s=Cf(t),i=(Js(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return vf(t,n)}build(t,n,r){to(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return so(t,n,r)}}function Vf(e,t){return e in t}class Pf extends Qi{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,n){if(Vf(n,t)){const r=t[n];if(typeof r=="string"||typeof r=="number")return r}}getBaseTargetFromProps(){}removeValueFromRenderState(t,n){delete n.output[t]}measureInstanceViewportBox(){return mr()}build(t,n){Object.assign(t.output,n)}renderInstance(t,{output:n}){Object.assign(t,n)}sortInstanceNodePosition(){return 0}}const If={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ef={offset:"strokeDashoffset",array:"strokeDasharray"};function $f(e,t,n=1,r=0,s=!0){e.pathLength=1;const i=s?If:Ef;e[i.offset]=`${-r}`,e[i.array]=`${t} ${n}`}const Rf=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Of(e,{attrX:t,attrY:n,attrScale:r,pathLength:s,pathSpacing:i=1,pathOffset:o=0,...a},l,c,u){if(to(e,a,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=(u==null?void 0:u.transformBox)??"fill-box",delete d.transformBox);for(const m of Rf)d[m]!==void 0&&(f[m]=d[m],delete d[m]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),s!==void 0&&$f(d,s,i,o,!1)}const io=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),Df=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Ff(e,t,n,r){no(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(io.has(s)?s:ur(s),t.attrs[s])}function Lf(e,t,n){const r=so(e,t,n);for(const s in e)if(oe(e[s])||oe(t[s])){const i=et.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[i]=e[s]}return r}class _f extends eo{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=mr}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(tt.has(n)){const r=Wi(n);return r&&r.default||0}return n=io.has(n)?n:ur(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Lf(t,n,r)}build(t,n,r){Of(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,s){Ff(t,n,r,s)}mount(t){this.isSVGTag=Df(t.tagName),super.mount(t)}}function Nf(e,t,n){const r=oe(e)?e:nt(e);return r.start(Fi("",r,t,n)),r.animation}function pr(e){return typeof e=="object"&&!Array.isArray(e)}function oo(e,t,n,r){return e==null?[]:typeof e=="string"&&pr(t)?sf(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(s=>s!=null):[e]}function zf(e,t,n){return e*(t+1)+n*t}function ao(e,t,n,r){return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?n:t.startsWith("<")?Math.max(0,n+parseFloat(t.slice(1))):r.get(t)??e}function Bf(e,t,n){for(let r=0;r<e.length;r++){const s=e[r];s.at>t&&s.at<n&&(En(e,s),r--)}}function jf(e,t,n,r,s,i){Bf(e,s,i);for(let o=0;o<t.length;o++)e.push({value:t[o],at:Qe(s,i,r[o]),easing:Ys(n,o)})}function Kf(e,t,n=0){const r=t+1+t*n;for(let s=0;s<e.length;s++)e[s]=e[s]/r}function Gf(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}const Wf="easeInOut",Uf=20;function Yf(e,{defaultTransition:t={},...n}={},r,s){const i=t.duration||.3,o=new Map,a=new Map,l={},c=new Map;let u=0,d=0,f=0;for(let m=0;m<e.length;m++){const y=e[m];if(typeof y=="string"){c.set(y,d);continue}else if(!Array.isArray(y)){c.set(y.name,ao(d,y.at,u,c));continue}let[h,p,v={}]=y;v.at!==void 0&&(d=ao(d,v.at,u,c));let k=0;const C=(T,A,E,I=0,g=0)=>{const V=Xf(T),{delay:M=0,times:O=gi(V),type:N=t.type||"keyframes",repeat:ne,repeatType:re,repeatDelay:se=0,...W}=A;let{ease:Z=t.ease||"easeOut",duration:ae}=A;const rt=typeof M=="function"?M(I,g):M,P=V.length,Pt=ar(N)?N:s==null?void 0:s[N||"keyframes"];if(P<=2&&Pt){let B=100;if(P===2&&Zf(V)){const Re=V[1]-V[0];B=Math.abs(Re)}const j={...t,...W};ae!==void 0&&(j.duration=fe(ae));const Te=di(j,B,Pt);Z=Te.ease,ae=Te.duration}ae??(ae=i);const It=d+rt;O.length===1&&O[0]===0&&(O[1]=1);const Et=O.length-V.length;if(Et>0&&mi(O,Et),V.length===1&&V.unshift(null),ne&&ne<Uf){const B=ae>0?se/ae:0;ae=zf(ae,ne,se);const j=[...V],Te=[...O];Z=Array.isArray(Z)?[...Z]:[Z];const Re=[...Z],U=re==="reverse"||re==="mirror";let $t=j,ze=Re;U&&($t=[...j].reverse(),re==="reverse"&&(ze=[...Re].reverse().map(de=>typeof de=="function"?Dn(de):de)));for(let de=0;de<ne;de++){const it=U&&de%2===0,Be=it?$t:j,xh=it?ze:Re,wo=(de+1)*(1+B);B>0&&(V.push(V[V.length-1]),O.push(wo),Z.push("linear")),V.push(...Be);for(let Rt=0;Rt<Be.length;Rt++)O.push(Te[Rt]+wo),Z.push(Rt===0?"linear":Ys(xh,Rt-1))}Kf(O,ne,B)}const st=It+ae;jf(E,V,Z,O,It,st),k=Math.max(rt+ae,k),f=Math.max(st,f)};if(oe(h)){const T=lo(h,a);C(p,v,co("default",T))}else{const T=oo(h,p,r,l),A=T.length;for(let E=0;E<A;E++){p=p,v=v;const I=T[E],g=lo(I,a);for(const V in p)C(p[V],Hf(v,V),co(V,g),E,A)}}u=d,d+=k}return a.forEach((m,y)=>{for(const h in m){const p=m[h];p.sort(Gf);const v=[],k=[],C=[];for(let I=0;I<p.length;I++){const{at:g,value:V,easing:M}=p[I];v.push(V),k.push(On(0,f,g)),C.push(M||"easeOut")}k[0]!==0&&(k.unshift(0),v.unshift(v[0]),C.unshift(Wf)),k[k.length-1]!==1&&(k.push(1),v.push(null)),o.has(y)||o.set(y,{keyframes:{},transition:{}});const T=o.get(y);T.keyframes[h]=v;const{type:A,...E}=t;T.transition[h]={...E,duration:f,ease:C,times:k,...n}}}),o}function lo(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function co(e,t){return t[e]||(t[e]=[]),t[e]}function Xf(e){return Array.isArray(e)?e:[e]}function Hf(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}const qf=e=>typeof e=="number",Zf=e=>e.every(qf);function Jf(e){const t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=Yi(e)&&!af(e)?new _f(t):new Mf(t);n.mount(e),Mt.set(e,n)}function Qf(e){const t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new Pf(t);n.mount(e),Mt.set(e,n)}function eh(e,t){return oe(e)||typeof e=="number"||typeof e=="string"&&!pr(t)}function uo(e,t,n,r){const s=[];if(eh(e,t))s.push(Nf(e,pr(t)&&t.default||t,n&&(n.default||n)));else{if(e==null)return s;const i=oo(e,t,r),o=i.length;for(let a=0;a<o;a++){const l=i[a],c=l instanceof Element?Jf:Qf;Mt.has(l)||c(l);const u=Mt.get(l),d={...n};"delay"in d&&typeof d.delay=="function"&&(d.delay=d.delay(a,o)),s.push(...Ud(u,{...t,transition:d},{}))}}return s}function th(e,t,n){const r=[],s=e.map(o=>{if(Array.isArray(o)&&typeof o[0]=="function"){const a=o[0],l=nt(0);return l.on("change",a),o.length===1?[l,[0,1]]:o.length===2?[l,[0,1],o[1]]:[l,o[1],o[2]]}return o});return Yf(s,t,n,{spring:Tt}).forEach(({keyframes:o,transition:a},l)=>{r.push(...uo(l,o,a))}),r}function nh(e){return Array.isArray(e)&&e.some(Array.isArray)}function rh(e={}){const{scope:t,reduceMotion:n,skipAnimations:r}=e;function s(i,o,a){let l=[],c;const u={};if(n!==void 0&&(u.reduceMotion=n),r!==void 0&&(u.skipAnimations=r),nh(i)){const{onComplete:f,...m}=o||{};typeof f=="function"&&(c=f),l=th(i,{...u,...m},t)}else{const{onComplete:f,...m}=a||{};typeof f=="function"&&(c=f),l=uo(i,o,{...u,...m},t)}const d=new Td(l);return c&&d.finished.then(c),t&&(t.animations.push(d),d.finished.then(()=>{En(t.animations,d)})),d}return s}const fo=rh(),sh="a4ui-effects";function ih(){try{return window.localStorage}catch{return null}}function oh(){var t;try{if(new URLSearchParams(window.location.search).get("calm")==="1")return!1}catch{}const e=(t=ih())==null?void 0:t.getItem(sh);return e===null?!0:e==="1"}function ah(e){typeof document>"u"||document.documentElement.classList.toggle("calm",!e)}const ho=oh();ah(ho);const[lh]=Q(ho);function ch(){return!lh()}const uh="(prefers-reduced-motion: reduce)";function dh(){return typeof window>"u"||typeof window.matchMedia!="function"?!1:window.matchMedia(uh).matches}const fh="a4ui-motion-forced";function hh(){try{return window.localStorage}catch{return null}}const[mo]=Q(((vo=hh())==null?void 0:vo.getItem(fh))==="1");typeof document<"u"&&document.documentElement.classList.toggle("force-motion",te(mo));function go(){return ch()||dh()&&!mo()}function mh(e,t=600){const[n,r]=Q(0);let s;return Ce(()=>{const i=e();if(s==null||s.stop(),go()){r(i);return}const o=te(n);o!==i&&(s=fo(o,i,{duration:t/1e3,ease:"easeOut",onUpdate:a=>r(a)}))}),pe(()=>s==null?void 0:s.stop()),n}function gh(e,t={}){go()||fo(e,{opacity:[0,1],y:[t.y??8,0]},{duration:t.duration??.32,delay:t.delay??0,ease:"easeOut"})}var po=L("<div>");function ph(e){const[t,n]=ie(e,["class","children","glass","glow"]),r=()=>(t.glow??t.glass)===!0;return(()=>{var s=po();return Ge(s,F({get class(){return Y(t.glass?"card rounded-xl text-card-foreground":"rounded-xl border border-border bg-card text-card-foreground shadow-sm",r()&&"glow-edge",t.class)}},n),!1,!0),D(s,()=>t.children),s})()}function bh(e){const[t,n]=ie(e,["class","children"]);return(()=>{var r=po();return Ge(r,F({get class(){return Y("p-6 pt-0",t.class)}},n),!1,!0),D(r,()=>t.children),r})()}var bo=L("<div>"),yh=L('<div class=min-w-0><p class="truncate text-sm text-muted-foreground"></p><p class="truncate text-xl font-semibold tabular-nums text-foreground">');const vh={primary:"bg-primary/15 text-primary",success:"bg-emerald-500/15 text-emerald-600",danger:"bg-rose-500/15 text-rose-600",neutral:"bg-muted text-muted-foreground"};function wh(e){const t=mh(()=>e.value),n=()=>(e.format??(s=>String(Math.round(s))))(t());let r;return _t(()=>{r&&gh(r,{delay:e.delay??0})}),(()=>{var s=bo(),i=r;return typeof i=="function"?Ir(i,s):r=s,D(s,b(ph,{glass:!0,glow:!0,get class(){return e.class},get children(){return b(bh,{class:"flex items-center gap-4 p-5",get children(){return[b(he,{get when(){return e.icon},get children(){var o=bo();return D(o,()=>e.icon),H(()=>Me(o,Y("flex h-11 w-11 shrink-0 items-center justify-center rounded-lg",vh[e.tone??"neutral"]))),o}}),(()=>{var o=yh(),a=o.firstChild,l=a.nextSibling;return D(a,()=>e.label),D(l,n),o})()]}})}})),s})()}function an(e){return(e.textContent??"").trim()}function yo(){ce("a4-button",{variant:"primary",disabled:!1,type:"button",label:""},(e,{element:t})=>{le();const n=e.label||an(t);return b(Ul,{get variant(){return e.variant},get disabled(){return e.disabled},get type(){return e.type},children:n})}),ce("a4-badge",{tone:"neutral",label:""},(e,{element:t})=>(le(),b(jl,{get tone(){return e.tone},get children(){return e.label||an(t)}}))),ce("a4-alert",{tone:"info",heading:"",text:""},(e,{element:t})=>(le(),b(Fl,{get tone(){return e.tone},get title(){return e.heading||void 0},get children(){return e.text||an(t)}}))),ce("a4-spinner",{label:"Loading"},e=>(le(),b(Hc,{get label(){return e.label}}))),ce("a4-avatar",{src:"",alt:"",fallback:""},e=>(le(),b(_l,{get src(){return e.src||void 0},get alt(){return e.alt},get fallback(){return e.fallback||""}}))),ce("a4-progress",{value:0,max:100,label:""},e=>(le(),b(_c,{get value(){return e.value},get max(){return e.max},get label(){return e.label||void 0}}))),ce("a4-meter",{value:0,max:100,label:""},e=>(le(),b(Dc,{get value(){return e.value},get max(){return e.max},get label(){return e.label||void 0}}))),ce("a4-ring-progress",{value:0,size:96,thickness:8,label:""},e=>(le(),b(Gc,{get value(){return e.value},get size(){return e.size},get thickness(){return e.thickness},get label(){return e.label||void 0}}))),ce("a4-stat",{label:"",value:0,tone:"neutral"},e=>(le(),b(wh,{get label(){return e.label},get value(){return e.value},get tone(){return e.tone}}))),ce("a4-kbd",{label:""},(e,{element:t})=>(le(),b(hc,{get children(){return e.label||an(t)}}))),ce("a4-separator",{orientation:"horizontal"},e=>(le(),b(Yc,{get orientation(){return e.orientation}}))),ce("a4-rating",{value:0,max:5,readonly:!1},(e,{element:t})=>(le(),b(jc,{get value(){return e.value},get max(){return e.max},get readonly(){return e.readonly},onChange:n=>t.dispatchEvent(new CustomEvent("change",{detail:n}))}))),ce("a4-countdown",{to:""},e=>{le();const t=e.to?new Date(e.to):new Date(Date.now()+864e5);return b(uc,{to:t})}),ce("a4-clock",{variant:"digital",seconds:!0,hour12:!1,timezone:"",size:160},e=>(le(),b(tc,{get variant(){return e.variant},get seconds(){return e.seconds},get hour12(){return e.hour12},get timeZone(){return e.timezone||void 0},get size(){return e.size}})))}return yo(),ln.defineA4uiElements=yo,Object.defineProperty(ln,Symbol.toStringTag,{value:"Module"}),ln})({});
|