spacetime-studio 0.0.1 → 0.0.3
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 +107 -0
- package/dist/spacetime-studio +41 -0
- package/dist/studio/client/assets/chunks/chunk-9U2RGXGQ.js +3 -0
- package/dist/studio/client/assets/chunks/chunk-CFncNr_j.js +7 -0
- package/dist/studio/client/assets/chunks/chunk-CLzc1euR.js +1 -0
- package/dist/studio/client/assets/chunks/chunk-D5ho-8Wh.js +575 -0
- package/dist/studio/client/assets/chunks/chunk-DHOLzkJl.js +30 -0
- package/dist/studio/client/assets/chunks/chunk-mZKhtkdl.js +1 -0
- package/dist/studio/client/assets/chunks/chunk-yx3zcEsC.js +1 -0
- package/dist/studio/client/assets/entries/entry-client-routing.CnEZcQPI.js +2 -0
- package/dist/studio/client/assets/entries/src_pages_error.C8MbyvXi.js +1 -0
- package/dist/studio/client/assets/entries/src_pages_index.B-1wxvh7.js +54 -0
- package/dist/studio/client/assets/entries/src_pages_schemas.CkPCXSOz.js +1 -0
- package/dist/studio/client/assets/entries/src_pages_tables.zNfRu6YP.js +1 -0
- package/dist/studio/client/assets/static/src_lib_solid-flow_flow-7f378cfa.fSGGAtkx.css +1 -0
- package/dist/studio/client/assets/static/src_lib_solid-tippy_tippy-31f66de0.DjDCmi8m.css +1 -0
- package/dist/studio/client/assets/static/src_styles_app-79a3ce9a.DwvfEWUn.css +1 -0
- package/dist/studio/client/icon-logo-dark.svg +11 -0
- package/dist/studio/client/icon-logo-light.svg +11 -0
- package/dist/studio/server.mjs +75787 -0
- package/package.json +7 -4
- package/CHANGELOG.md +0 -7
- package/src/cli.ts +0 -313
- package/tsconfig.json +0 -18
|
@@ -0,0 +1,575 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/chunks/chunk-DHOLzkJl.js","assets/chunks/chunk-mZKhtkdl.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{n as e}from"./chunk-mZKhtkdl.js";import{n as t,t as n,v as r,y as i}from"./chunk-9U2RGXGQ.js";var a={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return o(this.context.count)},getNextContextId(){return o(this.context.count++)}};function o(e){let t=String(e),n=t.length-1;return a.context.id+(n?String.fromCharCode(96+n):``)+t}function s(e){a.context=e}function c(){return{...a.context,id:a.getNextContextId(),count:0}}var l=(e,t)=>e===t,u=Symbol(`solid-proxy`),d=typeof Proxy==`function`,f=Symbol(`solid-track`),p={equals:l},m=null,h=ye,g=1,_=2,v={owned:null,cleanups:null,context:null,owner:null},y=null,b=null,x=null,S=null,C=null,w=null,T=null,E=0;function D(e,t){let n=C,r=y,i=e.length===0,a=t===void 0?r:t,o=i?v:{owned:null,cleanups:null,context:a?a.context:null,owner:a},s=i?e:()=>e(()=>N(()=>we(o)));y=o,C=null;try{return _e(s,!0)}finally{C=n,y=r}}function O(e,t){t=t?Object.assign({},p,t):p;let n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0};return[de.bind(n),e=>(typeof e==`function`&&(e=b&&b.running&&b.sources.has(n)?e(n.tValue):e(n.value)),fe(n,e))]}function ee(e,t,n){let r=he(e,t,!0,g);x&&b&&b.running?w.push(r):pe(r)}function k(e,t,n){let r=he(e,t,!1,g);x&&b&&b.running?w.push(r):pe(r)}function A(e,t,n){h=xe;let r=he(e,t,!1,g),i=ue&&I(ue);i&&(r.suspense=i),(!n||!n.render)&&(r.user=!0),T?T.push(r):pe(r)}function j(e,t,n){n=n?Object.assign({},p,n):p;let r=he(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,x&&b&&b.running?(r.tState=g,w.push(r)):pe(r),de.bind(r)}function M(e){return _e(e,!1)}function N(e){if(!S&&C===null)return e();let t=C;C=null;try{return S?S.untrack(e):e()}finally{C=t}}function te(e,t,n){let r=Array.isArray(e),i,a=n&&n.defer;return n=>{let o;if(r){o=Array(e.length);for(let t=0;t<e.length;t++)o[t]=e[t]()}else o=e();if(a)return a=!1,n;let s=N(()=>t(o,i,n));return i=o,s}}function P(e){A(()=>N(e))}function F(e){return y===null||(y.cleanups===null?y.cleanups=[e]:y.cleanups.push(e)),e}function ne(){return C}function re(){return y}function ie(e,t){let n=y,r=C;y=e,C=null;try{return _e(t,!0)}catch(e){Oe(e)}finally{y=n,C=r}}function ae(e){if(b&&b.running)return e(),b.done;let t=C,n=y;return Promise.resolve().then(()=>{C=t,y=n;let r;return(x||ue)&&(r=b||={sources:new Set,effects:[],promises:new Set,disposed:new Set,queue:new Set,running:!0},r.done||=new Promise(e=>r.resolve=e),r.running=!0),_e(e,!1),C=y=null,r?r.done:void 0})}var[oe,se]=O(!1);function ce(e,t){let n=Symbol(`context`);return{id:n,Provider:Ae(n),defaultValue:e}}function I(e){let t;return y&&y.context&&(t=y.context[e.id])!==void 0?t:e.defaultValue}function le(e){let t=j(e),n=j(()=>ke(t()));return n.toArray=()=>{let e=n();return Array.isArray(e)?e:e==null?[]:[e]},n}var ue;function de(){let e=b&&b.running;if(this.sources&&(e?this.tState:this.state))if((e?this.tState:this.state)===g)pe(this);else{let e=w;w=null,_e(()=>Se(this),!1),w=e}if(C){let e=this.observers?this.observers.length:0;C.sources?(C.sources.push(this),C.sourceSlots.push(e)):(C.sources=[this],C.sourceSlots=[e]),this.observers?(this.observers.push(C),this.observerSlots.push(C.sources.length-1)):(this.observers=[C],this.observerSlots=[C.sources.length-1])}return e&&b.sources.has(this)?this.tValue:this.value}function fe(e,t,n){let r=b&&b.running&&b.sources.has(e)?e.tValue:e.value;if(!e.comparator||!e.comparator(r,t)){if(b){let r=b.running;(r||!n&&b.sources.has(e))&&(b.sources.add(e),e.tValue=t),r||(e.value=t)}else e.value=t;e.observers&&e.observers.length&&_e(()=>{for(let t=0;t<e.observers.length;t+=1){let n=e.observers[t],r=b&&b.running;r&&b.disposed.has(n)||((r?!n.tState:!n.state)&&(n.pure?w.push(n):T.push(n),n.observers&&Ce(n)),r?n.tState=g:n.state=g)}if(w.length>1e6)throw w=[],Error()},!1)}return t}function pe(e){if(!e.fn)return;we(e);let t=E;me(e,b&&b.running&&b.sources.has(e)?e.tValue:e.value,t),b&&!b.running&&b.sources.has(e)&&queueMicrotask(()=>{_e(()=>{b&&(b.running=!0),C=y=e,me(e,e.tValue,t),C=y=null},!1)})}function me(e,t,n){let r,i=y,a=C;C=y=e;try{r=e.fn(t)}catch(t){return e.pure&&(b&&b.running?(e.tState=g,e.tOwned&&e.tOwned.forEach(we),e.tOwned=void 0):(e.state=g,e.owned&&e.owned.forEach(we),e.owned=null)),e.updatedAt=n+1,Oe(t)}finally{C=a,y=i}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&`observers`in e?fe(e,r,!0):b&&b.running&&e.pure?(b.sources.add(e),e.tValue=r):e.value=r,e.updatedAt=n)}function he(e,t,n,r=g,i){let a={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:y,context:y?y.context:null,pure:n};if(b&&b.running&&(a.state=0,a.tState=r),y===null||y!==v&&(b&&b.running&&y.pure?y.tOwned?y.tOwned.push(a):y.tOwned=[a]:y.owned?y.owned.push(a):y.owned=[a]),S&&a.fn){let[e,t]=O(void 0,{equals:!1}),n=S.factory(a.fn,t);F(()=>n.dispose());let r=S.factory(a.fn,()=>ae(t).then(()=>r.dispose()));a.fn=t=>(e(),b&&b.running?r.track(t):n.track(t))}return a}function ge(e){let t=b&&b.running;if((t?e.tState:e.state)===0)return;if((t?e.tState:e.state)===_)return Se(e);if(e.suspense&&N(e.suspense.inFallback))return e.suspense.effects.push(e);let n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<E);){if(t&&b.disposed.has(e))return;(t?e.tState:e.state)&&n.push(e)}for(let r=n.length-1;r>=0;r--){if(e=n[r],t){let t=e,i=n[r+1];for(;(t=t.owner)&&t!==i;)if(b.disposed.has(t))return}if((t?e.tState:e.state)===g)pe(e);else if((t?e.tState:e.state)===_){let t=w;w=null,_e(()=>Se(e,n[0]),!1),w=t}}}function _e(e,t){if(w)return e();let n=!1;t||(w=[]),T?n=!0:T=[],E++;try{let t=e();return ve(n),t}catch(e){n||(T=null),w=null,Oe(e)}}function ve(e){if(w&&=(x&&b&&b.running?be(w):ye(w),null),e)return;let t;if(b){if(!b.promises.size&&!b.queue.size){let e=b.sources,n=b.disposed;T.push.apply(T,b.effects),t=b.resolve;for(let e of T)`tState`in e&&(e.state=e.tState),delete e.tState;b=null,_e(()=>{for(let e of n)we(e);for(let t of e){if(t.value=t.tValue,t.owned)for(let e=0,n=t.owned.length;e<n;e++)we(t.owned[e]);t.tOwned&&(t.owned=t.tOwned),delete t.tValue,delete t.tOwned,t.tState=0}se(!1)},!1)}else if(b.running){b.running=!1,b.effects.push.apply(b.effects,T),T=null,se(!0);return}}let n=T;T=null,n.length&&_e(()=>h(n),!1),t&&t()}function ye(e){for(let t=0;t<e.length;t++)ge(e[t])}function be(e){for(let t=0;t<e.length;t++){let n=e[t],r=b.queue;r.has(n)||(r.add(n),x(()=>{r.delete(n),_e(()=>{b.running=!0,ge(n)},!1),b&&(b.running=!1)}))}}function xe(e){let t,n=0;for(t=0;t<e.length;t++){let r=e[t];r.user?e[n++]=r:ge(r)}if(a.context){if(a.count){a.effects||=[],a.effects.push(...e.slice(0,n));return}s()}for(a.effects&&(a.done||!a.count)&&(e=[...a.effects,...e],n+=a.effects.length,delete a.effects),t=0;t<n;t++)ge(e[t])}function Se(e,t){let n=b&&b.running;n?e.tState=0:e.state=0;for(let r=0;r<e.sources.length;r+=1){let i=e.sources[r];if(i.sources){let e=n?i.tState:i.state;e===g?i!==t&&(!i.updatedAt||i.updatedAt<E)&&ge(i):e===_&&Se(i,t)}}}function Ce(e){let t=b&&b.running;for(let n=0;n<e.observers.length;n+=1){let r=e.observers[n];(t?!r.tState:!r.state)&&(t?r.tState=_:r.state=_,r.pure?w.push(r):T.push(r),r.observers&&Ce(r))}}function we(e){let t;if(e.sources)for(;e.sources.length;){let t=e.sources.pop(),n=e.sourceSlots.pop(),r=t.observers;if(r&&r.length){let e=r.pop(),i=t.observerSlots.pop();n<r.length&&(e.sourceSlots[i]=n,r[n]=e,t.observerSlots[n]=i)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)we(e.tOwned[t]);delete e.tOwned}if(b&&b.running&&e.pure)Te(e,!0);else if(e.owned){for(t=e.owned.length-1;t>=0;t--)we(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}b&&b.running?e.tState=0:e.state=0}function Te(e,t){if(t||(e.tState=0,b.disposed.add(e)),e.owned)for(let t=0;t<e.owned.length;t++)Te(e.owned[t])}function Ee(e){return e instanceof Error?e:Error(typeof e==`string`?e:`Unknown error`,{cause:e})}function De(e,t,n){try{for(let n of t)n(e)}catch(e){Oe(e,n&&n.owner||null)}}function Oe(e,t=y){let n=m&&t&&t.context&&t.context[m],r=Ee(e);if(!n)throw r;T?T.push({fn(){De(r,n,t)},state:g}):De(r,n,t)}function ke(e){if(typeof e==`function`&&!e.length)return ke(e());if(Array.isArray(e)){let t=[];for(let n=0;n<e.length;n++){let r=ke(e[n]);Array.isArray(r)?t.push.apply(t,r):t.push(r)}return t}return e}function Ae(e,t){return function(t){let n;return k(()=>n=N(()=>(y.context={...y.context,[e]:t.value},le(()=>t.children))),void 0),n}}var je=Symbol(`fallback`);function Me(e){for(let t=0;t<e.length;t++)e[t]()}function Ne(e,t,n={}){let r=[],i=[],a=[],o=0,s=t.length>1?[]:null;return F(()=>Me(a)),()=>{let c=e()||[],l=c.length,u,d;return c[f],N(()=>{let e,t,f,m,h,g,_,v,y;if(l===0)o!==0&&(Me(a),a=[],r=[],i=[],o=0,s&&=[]),n.fallback&&(r=[je],i[0]=D(e=>(a[0]=e,n.fallback())),o=1);else if(o===0){for(i=Array(l),d=0;d<l;d++)r[d]=c[d],i[d]=D(p);o=l}else{for(f=Array(l),m=Array(l),s&&(h=Array(l)),g=0,_=Math.min(o,l);g<_&&r[g]===c[g];g++);for(_=o-1,v=l-1;_>=g&&v>=g&&r[_]===c[v];_--,v--)f[v]=i[_],m[v]=a[_],s&&(h[v]=s[_]);for(e=new Map,t=Array(v+1),d=v;d>=g;d--)y=c[d],u=e.get(y),t[d]=u===void 0?-1:u,e.set(y,d);for(u=g;u<=_;u++)y=r[u],d=e.get(y),d!==void 0&&d!==-1?(f[d]=i[u],m[d]=a[u],s&&(h[d]=s[u]),d=t[d],e.set(y,d)):a[u]();for(d=g;d<l;d++)d in f?(i[d]=f[d],a[d]=m[d],s&&(s[d]=h[d],s[d](d))):i[d]=D(p);i=i.slice(0,o=l),r=c.slice(0)}return i});function p(e){if(a[d]=e,s){let[e,n]=O(d);return s[d]=n,t(c[d],e)}return t(c[d])}}}var Pe=!1;function Fe(){Pe=!0}function L(e,t){if(Pe&&a.context){let n=a.context;s(c());let r=N(()=>e(t||{}));return s(n),r}return N(()=>e(t||{}))}function Ie(){return!0}var Le={get(e,t,n){return t===u?n:e.get(t)},has(e,t){return t===u?!0:e.has(t)},set:Ie,deleteProperty:Ie,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:Ie,deleteProperty:Ie}},ownKeys(e){return e.keys()}};function Re(e){return(e=typeof e==`function`?e():e)?e:{}}function ze(){for(let e=0,t=this.length;e<t;++e){let t=this[e]();if(t!==void 0)return t}}function R(...e){let t=!1;for(let n=0;n<e.length;n++){let r=e[n];t||=!!r&&u in r,e[n]=typeof r==`function`?(t=!0,j(r)):r}if(d&&t)return new Proxy({get(t){for(let n=e.length-1;n>=0;n--){let r=Re(e[n])[t];if(r!==void 0)return r}},has(t){for(let n=e.length-1;n>=0;n--)if(t in Re(e[n]))return!0;return!1},keys(){let t=[];for(let n=0;n<e.length;n++)t.push(...Object.keys(Re(e[n])));return[...new Set(t)]}},Le);let n={},r=Object.create(null);for(let t=e.length-1;t>=0;t--){let i=e[t];if(!i)continue;let a=Object.getOwnPropertyNames(i);for(let e=a.length-1;e>=0;e--){let t=a[e];if(t===`__proto__`||t===`constructor`)continue;let o=Object.getOwnPropertyDescriptor(i,t);if(!r[t])r[t]=o.get?{enumerable:!0,configurable:!0,get:ze.bind(n[t]=[o.get.bind(i)])}:o.value===void 0?void 0:o;else{let e=n[t];e&&(o.get?e.push(o.get.bind(i)):o.value!==void 0&&e.push(()=>o.value))}}}let i={},a=Object.keys(r);for(let e=a.length-1;e>=0;e--){let t=a[e],n=r[t];n&&n.get?Object.defineProperty(i,t,n):i[t]=n?n.value:void 0}return i}function z(e,...t){let n=t.length;if(d&&u in e){let r=n>1?t.flat():t[0],i=t.map(t=>new Proxy({get(n){return t.includes(n)?e[n]:void 0},has(n){return t.includes(n)&&n in e},keys(){return t.filter(t=>t in e)}},Le));return i.push(new Proxy({get(t){return r.includes(t)?void 0:e[t]},has(t){return r.includes(t)?!1:t in e},keys(){return Object.keys(e).filter(e=>!r.includes(e))}},Le)),i}let r=[];for(let e=0;e<=n;e++)r[e]={};for(let i of Object.getOwnPropertyNames(e)){let a=n;for(let e=0;e<t.length;e++)if(t[e].includes(i)){a=e;break}let o=Object.getOwnPropertyDescriptor(e,i);!o.get&&!o.set&&o.enumerable&&o.writable&&o.configurable?r[a][i]=o.value:Object.defineProperty(r[a],i,o)}return r}var Be=0;function Ve(){return a.context?a.getNextContextId():`cl-${Be++}`}var He=e=>`Stale read from <${e}>.`;function Ue(e){let t=`fallback`in e&&{fallback:()=>e.fallback};return j(Ne(()=>e.each,e.children,t||void 0))}function B(e){let t=e.keyed,n=j(()=>e.when,void 0,void 0),r=t?n:j(n,void 0,{equals:(e,t)=>!e==!t});return j(()=>{let i=r();if(i){let a=e.children;return typeof a==`function`&&a.length>0?N(()=>a(t?i:()=>{if(!N(r))throw He(`Show`);return n()})):a}return e.fallback},void 0,void 0)}var We=new Set([`className`,`value`,`readOnly`,`noValidate`,`formNoValidate`,`isMap`,`noModule`,`playsInline`,`adAuctionHeaders`,`allowFullscreen`,`browsingTopics`,`defaultChecked`,`defaultMuted`,`defaultSelected`,`disablePictureInPicture`,`disableRemotePlayback`,`preservesPitch`,`shadowRootClonable`,`shadowRootCustomElementRegistry`,`shadowRootDelegatesFocus`,`shadowRootSerializable`,`sharedStorageWritable`,...`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`.split(`.`)]),Ge=new Set([`innerHTML`,`textContent`,`innerText`,`children`]),Ke=Object.assign(Object.create(null),{className:`class`,htmlFor:`for`}),qe=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 Je(e,t){let n=qe[e];return typeof n==`object`?n[t]?n.$:void 0:n}var Ye=new Set([`beforeinput`,`click`,`dblclick`,`contextmenu`,`focusin`,`focusout`,`input`,`keydown`,`keyup`,`mousedown`,`mousemove`,`mouseout`,`mouseover`,`mouseup`,`pointerdown`,`pointermove`,`pointerout`,`pointerover`,`pointerup`,`touchend`,`touchmove`,`touchstart`]),Xe=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`.split(`.`)),Ze={xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`},V=e=>j(()=>e());function Qe(e,t,n){let r=n.length,i=t.length,a=r,o=0,s=0,c=t[i-1].nextSibling,l=null;for(;o<i||s<a;){if(t[o]===n[s]){o++,s++;continue}for(;t[i-1]===n[a-1];)i--,a--;if(i===o){let t=a<r?s?n[s-1].nextSibling:n[a-s]:c;for(;s<a;)e.insertBefore(n[s++],t)}else if(a===s)for(;o<i;)(!l||!l.has(t[o]))&&t[o].remove(),o++;else if(t[o]===n[a-1]&&n[s]===t[i-1]){let r=t[--i].nextSibling;e.insertBefore(n[s++],t[o++].nextSibling),e.insertBefore(n[--a],r),t[i]=n[a]}else{if(!l){l=new Map;let e=s;for(;e<a;)l.set(n[e],e++)}let r=l.get(t[o]);if(r!=null)if(s<r&&r<a){let c=o,u=1,d;for(;++c<i&&c<a&&!((d=l.get(t[c]))==null||d!==r+u);)u++;if(u>r-s){let i=t[o];for(;s<r;)e.insertBefore(n[s++],i)}else e.replaceChild(n[s++],t[o++])}else o++;else t[o++].remove()}}}var $e=`_$DX_DELEGATE`;function et(e,t,n,r={}){let i;return D(r=>{i=r,t===document?e():W(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{i(),t.textContent=``}}function H(e,t,n,r){let i,a=()=>{let t=r?document.createElementNS(`http://www.w3.org/1998/Math/MathML`,`template`):document.createElement(`template`);return t.innerHTML=e,n?t.content.firstChild.firstChild:r?t.firstChild:t.content.firstChild},o=t?()=>N(()=>document.importNode(i||=a(),!0)):()=>(i||=a()).cloneNode(!0);return o.cloneNode=o,o}function tt(e,t=window.document){let n=t[$e]||(t[$e]=new Set);for(let r=0,i=e.length;r<i;r++){let i=e[r];n.has(i)||(n.add(i),t.addEventListener(i,vt))}}function nt(e,t,n){mt(e)||(e[t]=n)}function U(e,t,n){mt(e)||(n==null?e.removeAttribute(t):e.setAttribute(t,n))}function rt(e,t,n,r){mt(e)||(r==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r))}function it(e,t,n){mt(e)||(n?e.setAttribute(t,``):e.removeAttribute(t))}function at(e,t){mt(e)||(t==null?e.removeAttribute(`class`):e.className=t)}function ot(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)){let r=n[0];e.addEventListener(t,n[0]=t=>r.call(e,n[1],t))}else e.addEventListener(t,n,typeof n!=`function`&&n)}function st(e,t,n={}){let r=Object.keys(t||{}),i=Object.keys(n),a,o;for(a=0,o=i.length;a<o;a++){let r=i[a];!r||r===`undefined`||t[r]||(gt(e,r,!1),delete n[r])}for(a=0,o=r.length;a<o;a++){let i=r[a],o=!!t[i];!i||i===`undefined`||n[i]===o||!o||(gt(e,i,!0),n[i]=o)}return n}function ct(e,t,n){if(!t)return n?U(e,`style`):t;let r=e.style;if(typeof t==`string`)return r.cssText=t;typeof n==`string`&&(r.cssText=n=void 0),n||={},t||={};let i,a;for(a in n)t[a]??r.removeProperty(a),delete n[a];for(a in t)i=t[a],i!==n[a]&&(r.setProperty(a,i),n[a]=i);return n}function lt(e,t,n){n==null?e.style.removeProperty(t):e.style.setProperty(t,n)}function ut(e,t={},n,r){let i={};return r||k(()=>i.children=yt(e,t.children,i.children)),k(()=>typeof t.ref==`function`&&dt(t.ref,e)),k(()=>ft(e,t,n,!0,i,!0)),i}function dt(e,t,n){return N(()=>e(t,n))}function W(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!=`function`)return yt(e,t,r,n);k(r=>yt(e,t(),r,n),r)}function ft(e,t,n,r,i={},a=!1){t||={};for(let r in i)if(!(r in t)){if(r===`children`)continue;i[r]=_t(e,r,null,i[r],n,a,t)}for(let o in t){if(o===`children`){r||yt(e,t.children);continue}let s=t[o];i[o]=_t(e,o,s,i[o],n,a,t)}}function pt(e,t,n={}){if(globalThis._$HY.done)return et(e,t,[...t.childNodes],n);a.completed=globalThis._$HY.completed,a.events=globalThis._$HY.events,a.load=e=>globalThis._$HY.r[e],a.has=e=>e in globalThis._$HY.r,a.gather=e=>Ct(t,e),a.registry=new Map,a.context={id:n.renderId||``,count:0};try{return Ct(t,n.renderId),et(e,t,[...t.childNodes],n)}finally{a.context=null}}function G(e){let t,n;return!mt()||!(t=a.registry.get(n=wt()))?e():(a.completed&&a.completed.add(t),a.registry.delete(n),t)}function K(e){let t=e,n=0,r=[];if(mt(e))for(;t;){if(t.nodeType===8){let e=t.nodeValue;if(e===`$`)n++;else if(e===`/`){if(n===0)return[t,r];n--}}r.push(t),t=t.nextSibling}return[t,r]}function q(){a.events&&!a.events.queued&&(queueMicrotask(()=>{let{completed:e,events:t}=a;if(t){for(t.queued=!1;t.length;){let[n,r]=t[0];if(!e.has(n))return;t.shift(),vt(r)}a.done&&(a.events=_$HY.events=null,a.completed=_$HY.completed=null)}}),a.events.queued=!0)}function mt(e){return!!a.context&&!a.done&&(!e||e.isConnected)}function ht(e){return e.toLowerCase().replace(/-([a-z])/g,(e,t)=>t.toUpperCase())}function gt(e,t,n){let r=t.trim().split(/\s+/);for(let t=0,i=r.length;t<i;t++)e.classList.toggle(r[t],n)}function _t(e,t,n,r,i,a,o){let s,c,l,u,d;if(t===`style`)return ct(e,n,r);if(t===`classList`)return st(e,n,r);if(n===r)return r;if(t===`ref`)a||n(e);else if(t.slice(0,3)===`on:`){let i=t.slice(3);r&&e.removeEventListener(i,r,typeof r!=`function`&&r),n&&e.addEventListener(i,n,typeof n!=`function`&&n)}else if(t.slice(0,10)===`oncapture:`){let i=t.slice(10);r&&e.removeEventListener(i,r,!0),n&&e.addEventListener(i,n,!0)}else if(t.slice(0,2)===`on`){let i=t.slice(2).toLowerCase(),a=Ye.has(i);if(!a&&r){let t=Array.isArray(r)?r[0]:r;e.removeEventListener(i,t)}(a||n)&&(ot(e,i,n,a),a&&tt([i]))}else if(t.slice(0,5)===`attr:`)U(e,t.slice(5),n);else if(t.slice(0,5)===`bool:`)it(e,t.slice(5),n);else if((d=t.slice(0,5)===`prop:`)||(l=Ge.has(t))||!i&&((u=Je(t,e.tagName))||(c=We.has(t)))||(s=e.nodeName.includes(`-`)||`is`in o)){if(d)t=t.slice(5),c=!0;else if(mt(e))return n;t===`class`||t===`className`?at(e,n):s&&!c&&!l?e[ht(t)]=n:e[u||t]=n}else{let r=i&&t.indexOf(`:`)>-1&&Ze[t.split(`:`)[0]];r?rt(e,r,t,n):U(e,Ke[t]||t,n)}return n}function vt(e){if(a.registry&&a.events&&a.events.find(([t,n])=>n===e))return;let t=e.target,n=`$$${e.type}`,r=e.target,i=e.currentTarget,o=t=>Object.defineProperty(e,`target`,{configurable:!0,value:t}),s=()=>{let r=t[n];if(r&&!t.disabled){let i=t[`${n}Data`];if(i===void 0?r.call(t,e):r.call(t,i,e),e.cancelBubble)return}return t.host&&typeof t.host!=`string`&&!t.host._$host&&t.contains(e.target)&&o(t.host),!0},c=()=>{for(;s()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,`currentTarget`,{configurable:!0,get(){return t||document}}),a.registry&&!a.done&&(a.done=_$HY.done=!0),e.composedPath){let n=e.composedPath();o(n[0]);for(let e=0;e<n.length-2&&(t=n[e],s());e++){if(t._$host){t=t._$host,c();break}if(t.parentNode===i)break}}else c();o(r)}function yt(e,t,n,r,i){let a=mt(e);if(a){!n&&(n=[...e.childNodes]);let t=[];for(let e=0;e<n.length;e++){let r=n[e];r.nodeType===8&&r.data.slice(0,2)===`!$`?r.remove():t.push(r)}n=t}for(;typeof n==`function`;)n=n();if(t===n)return n;let o=typeof t,s=r!==void 0;if(e=s&&n[0]&&n[0].parentNode||e,o===`string`||o===`number`){if(a||o===`number`&&(t=t.toString(),t===n))return n;if(s){let i=n[0];i&&i.nodeType===3?i.data!==t&&(i.data=t):i=document.createTextNode(t),n=St(e,n,r,i)}else n=n!==``&&typeof n==`string`?e.firstChild.data=t:e.textContent=t}else if(t==null||o===`boolean`){if(a)return n;n=St(e,n,r)}else if(o===`function`)return k(()=>{let i=t();for(;typeof i==`function`;)i=i();n=yt(e,i,n,r)}),()=>n;else if(Array.isArray(t)){let o=[],c=n&&Array.isArray(n);if(bt(o,t,n,i))return k(()=>n=yt(e,o,n,r,!0)),()=>n;if(a){if(!o.length)return n;if(r===void 0)return n=[...e.childNodes];let t=o[0];if(t.parentNode!==e)return n;let i=[t];for(;(t=t.nextSibling)!==r;)i.push(t);return n=i}if(o.length===0){if(n=St(e,n,r),s)return n}else c?n.length===0?xt(e,o,r):Qe(e,n,o):(n&&St(e),xt(e,o));n=o}else if(t.nodeType){if(a&&t.parentNode)return n=s?[t]:t;if(Array.isArray(n)){if(s)return n=St(e,n,r,t);St(e,n,null,t)}else n==null||n===``||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}return n}function bt(e,t,n,r){let i=!1;for(let a=0,o=t.length;a<o;a++){let o=t[a],s=n&&n[e.length],c;if(!(o==null||o===!0||o===!1))if((c=typeof o)==`object`&&o.nodeType)e.push(o);else if(Array.isArray(o))i=bt(e,o,s)||i;else if(c===`function`)if(r){for(;typeof o==`function`;)o=o();i=bt(e,Array.isArray(o)?o:[o],Array.isArray(s)?s:[s])||i}else e.push(o),i=!0;else{let t=String(o);s&&s.nodeType===3&&s.data===t?e.push(s):e.push(document.createTextNode(t))}}return i}function xt(e,t,n=null){for(let r=0,i=t.length;r<i;r++)e.insertBefore(t[r],n)}function St(e,t,n,r){if(n===void 0)return e.textContent=``;let i=r||document.createTextNode(``);if(t.length){let r=!1;for(let a=t.length-1;a>=0;a--){let o=t[a];if(i!==o){let t=o.parentNode===e;!r&&!a?t?e.replaceChild(i,o):e.insertBefore(i,n):t&&o.remove()}else r=!0}}else e.insertBefore(i,n);return[i]}function Ct(e,t){let n=e.querySelectorAll(`*[data-hk]`);for(let e=0;e<n.length;e++){let r=n[e],i=r.getAttribute(`data-hk`);(!t||i.startsWith(t))&&!a.registry.has(i)&&a.registry.set(i,r)}}function wt(){return a.getNextContextId()}var Tt=`http://www.w3.org/2000/svg`;function Et(e,t=!1,n=void 0){return t?document.createElementNS(Tt,e):document.createElement(e,{is:n})}var Dt=(...e)=>(Fe(),pt(...e));function Ot(e){let{useShadow:t}=e,n=document.createTextNode(``),r=()=>e.mount||document.body,i=re(),o,s=!!a.context;return A(()=>{s&&(re().user=s=!1),o||=ie(i,()=>j(()=>e.children));let a=r();if(a instanceof HTMLHeadElement){let[e,t]=O(!1);D(t=>W(a,()=>e()?t():o(),null)),F(()=>t(!0))}else{let r=Et(e.isSVG?`g`:`div`,e.isSVG),i=t&&r.attachShadow?r.attachShadow({mode:`open`}):r;Object.defineProperty(r,`_$host`,{get(){return n.parentNode},configurable:!0}),W(i,o),a.appendChild(r),e.ref&&e.ref(r),F(()=>a.removeChild(r))}},void 0,{render:!s}),n}function kt(e,t){let n=j(e);return j(()=>{let e=n();switch(typeof e){case`function`:return N(()=>e(t));case`string`:let n=Xe.has(e),r=a.context?G():Et(e,n,N(()=>t.is));return ut(r,t,n),r}})}function At(e){let[,t]=z(e,[`component`]);return kt(()=>e.component,t)}var jt=[`Head`,`bodyAttributes`,`htmlAttributes`];function Mt(e,t){return e.includes(t)}function Nt(e,t){let n=globalThis[Pt]=globalThis[Pt]||{};return n[e]=n[e]||t}var Pt=`_vike_solid`,Ft=Nt(`PageContextProvider.ts`,{solidContext:ce(void 0)});function It(e){let{solidContext:t}=Ft;return L(t.Provider,{get value(){return e.pageContext},get children(){return e.children}})}function Lt(){let{solidContext:e}=Ft;return I(e)}var Rt=Symbol(`store-raw`),zt=Symbol(`store-node`),Bt=Symbol(`store-has`),Vt=Symbol(`store-self`);function Ht(e){let t=e[u];if(!t&&(Object.defineProperty(e,u,{value:t=new Proxy(e,Xt)}),!Array.isArray(e))){let n=Object.keys(e),r=Object.getOwnPropertyDescriptors(e);for(let i=0,a=n.length;i<a;i++){let a=n[i];r[a].get&&Object.defineProperty(e,a,{enumerable:r[a].enumerable,get:r[a].get.bind(t)})}}return t}function Ut(e){let t;return typeof e==`object`&&!!e&&(e[u]||!(t=Object.getPrototypeOf(e))||t===Object.prototype||Array.isArray(e))}function Wt(e,t=new Set){let n,r,i,a;if(n=e!=null&&e[Rt])return n;if(!Ut(e)||t.has(e))return e;if(Array.isArray(e)){Object.isFrozen(e)?e=e.slice(0):t.add(e);for(let n=0,a=e.length;n<a;n++)i=e[n],(r=Wt(i,t))!==i&&(e[n]=r)}else{Object.isFrozen(e)?e=Object.assign({},e):t.add(e);let n=Object.keys(e),o=Object.getOwnPropertyDescriptors(e);for(let s=0,c=n.length;s<c;s++)a=n[s],!o[a].get&&(i=e[a],(r=Wt(i,t))!==i&&(e[a]=r))}return e}function Gt(e,t){let n=e[t];return n||Object.defineProperty(e,t,{value:n=Object.create(null)}),n}function Kt(e,t,n){if(e[t])return e[t];let[r,i]=O(n,{equals:!1,internal:!0});return r.$=i,e[t]=r}function qt(e,t){let n=Reflect.getOwnPropertyDescriptor(e,t);return!n||n.get||!n.configurable||t===u||t===zt?n:(delete n.value,delete n.writable,n.get=()=>e[u][t],n)}function Jt(e){ne()&&Kt(Gt(e,zt),Vt)()}function Yt(e){return Jt(e),Reflect.ownKeys(e)}var Xt={get(e,t,n){if(t===Rt)return e;if(t===u)return n;if(t===f)return Jt(e),n;let r=Gt(e,zt),i=r[t],a=i?i():e[t];if(t===zt||t===Bt||t===`__proto__`)return a;if(!i){let n=Object.getOwnPropertyDescriptor(e,t);ne()&&(typeof a!=`function`||e.hasOwnProperty(t))&&!(n&&n.get)&&(a=Kt(r,t,a)())}return Ut(a)?Ht(a):a},has(e,t){return t===Rt||t===u||t===f||t===zt||t===Bt||t===`__proto__`?!0:(ne()&&Kt(Gt(e,Bt),t)(),t in e)},set(){return!0},deleteProperty(){return!0},ownKeys:Yt,getOwnPropertyDescriptor:qt};function Zt(e,t,n,r=!1){if(!r&&e[t]===n)return;let i=e[t],a=e.length;n===void 0?(delete e[t],e[Bt]&&e[Bt][t]&&i!==void 0&&e[Bt][t].$()):(e[t]=n,e[Bt]&&e[Bt][t]&&i===void 0&&e[Bt][t].$());let o=Gt(e,zt),s;if((s=Kt(o,t,i))&&s.$(()=>n),Array.isArray(e)&&e.length!==a){for(let t=e.length;t<a;t++)(s=o[t])&&s.$();(s=Kt(o,`length`,a))&&s.$(e.length)}(s=o[Vt])&&s.$()}function Qt(e,t){let n=Object.keys(t);for(let r=0;r<n.length;r+=1){let i=n[r];Zt(e,i,t[i])}}function $t(e,t){if(typeof t==`function`&&(t=t(e)),t=Wt(t),Array.isArray(t)){if(e===t)return;let n=0,r=t.length;for(;n<r;n++){let r=t[n];e[n]!==r&&Zt(e,n,r)}Zt(e,`length`,r)}else Qt(e,t)}function en(e,t,n=[]){let r,i=e;if(t.length>1){r=t.shift();let a=typeof r,o=Array.isArray(e);if(Array.isArray(r)){for(let i=0;i<r.length;i++)en(e,[r[i]].concat(t),n);return}else if(o&&a===`function`){for(let i=0;i<e.length;i++)r(e[i],i)&&en(e,[i].concat(t),n);return}else if(o&&a===`object`){let{from:i=0,to:a=e.length-1,by:o=1}=r;for(let r=i;r<=a;r+=o)en(e,[r].concat(t),n);return}else if(t.length>1){en(e[r],t,[r].concat(n));return}i=e[r],n=[r].concat(n)}let a=t[0];typeof a==`function`&&(a=a(i,n),a===i)||r===void 0&&a==null||(a=Wt(a),r===void 0||Ut(i)&&Ut(a)&&!Array.isArray(a)?Qt(i,a):Zt(e,r,a))}function tn(...[e,t]){let n=Wt(e||{}),r=Array.isArray(n),i=Ht(n);function a(...e){M(()=>{r&&e.length===1?$t(n,e[0]):en(n,e)})}return[i,a]}var nn=Symbol(`store-root`);function rn(e,t,n,r,i){let a=t[n];if(e===a)return;let o=Array.isArray(e);if(n!==nn&&(!Ut(e)||!Ut(a)||o!==Array.isArray(a)||i&&e[i]!==a[i])){Zt(t,n,e);return}if(o){if(e.length&&a.length&&(!r||i&&e[0]&&e[0][i]!=null)){let t,n,o,s,c,l,u,d;for(o=0,s=Math.min(a.length,e.length);o<s&&(a[o]===e[o]||i&&a[o]&&e[o]&&a[o][i]&&a[o][i]===e[o][i]);o++)rn(e[o],a,o,r,i);let f=Array(e.length),p=new Map;for(s=a.length-1,c=e.length-1;s>=o&&c>=o&&(a[s]===e[c]||i&&a[s]&&e[c]&&a[s][i]&&a[s][i]===e[c][i]);s--,c--)f[c]=a[s];if(o>c||o>s){for(n=o;n<=c;n++)Zt(a,n,e[n]);for(;n<e.length;n++)Zt(a,n,f[n]),rn(e[n],a,n,r,i);a.length>e.length&&Zt(a,`length`,e.length);return}for(u=Array(c+1),n=c;n>=o;n--)l=e[n],d=i&&l?l[i]:l,t=p.get(d),u[n]=t===void 0?-1:t,p.set(d,n);for(t=o;t<=s;t++)l=a[t],d=i&&l?l[i]:l,n=p.get(d),n!==void 0&&n!==-1&&(f[n]=a[t],n=u[n],p.set(d,n));for(n=o;n<e.length;n++)n in f?(Zt(a,n,f[n]),rn(e[n],a,n,r,i)):Zt(a,n,e[n])}else for(let t=0,n=e.length;t<n;t++)rn(e[t],a,t,r,i);a.length>e.length&&Zt(a,`length`,e.length);return}let s=Object.keys(e);for(let t=0,n=s.length;t<n;t++)rn(e[s[t]],a,s[t],r,i);let c=Object.keys(a);for(let t=0,n=c.length;t<n;t++)e[c[t]]===void 0&&Zt(a,c[t],void 0)}function an(e,t={}){let{merge:n,key:r=`id`}=t,i=Wt(e);return e=>{if(!Ut(e)||!Ut(i))return i;let t=rn(i,{[nn]:e},nn,n,r);return t===void 0?e:t}}var on=new WeakMap,sn={get(e,t){if(t===Rt)return e;let n=e[t],r;return Ut(n)?on.get(n)||(on.set(n,r=new Proxy(n,sn)),r):n},set(e,t,n){return Zt(e,t,Wt(n)),!0},deleteProperty(e,t){return Zt(e,t,void 0,!0),!0}};function cn(e){return t=>{if(Ut(t)){let n;(n=on.get(t))||on.set(t,n=new Proxy(t,sn)),e(n)}return t}}function ln({asyncHook:e}={}){{let e=r();if(e)return e}if(e){let e=t();if(e)return e}return null}function un(e,t){e!==void 0&&(document.title=e||``),t!==void 0&&(document.documentElement.lang=t||`en`)}function dn(e){return e instanceof Function||typeof e==`function`}function fn(e,t){let n=t._configFromHook?.[e],r=t.config[e],i=e=>dn(e)?e(t):e;return Mt(jt,e)?[...(r??[]).map(i),...n??[]]:n===void 0?i(r):n}function pn(e){return L(It,{pageContext:e,get children(){return L(mn,{get children(){return L(hn,{})}})}})}function mn(e){let t=Lt(),[n,r]=tn([]);ee(()=>{r(an([...t.config.Layout||[],...t.config.Wrapper||[]].reverse()))});let i=t=>{let r=n[t];return r?(typeof r!=`function`&&(r=gn),L(r,{get children(){return i(t+1)}})):e.children};return V(()=>i(0))}function hn(){let e=Lt();return L(At,{get component(){return e.Page}})}function gn(e){return V(()=>e.children)}async function _n(e,t){if(!e)return[];let n=e.map(e=>dn(e)?(i(t),e(t)):e);return await Promise.all(n)}var[vn,yn]=tn({}),bn,xn=!1,Sn=async e=>{if(e._headAlreadySet=e.isHydration,xn)yn(e);else{bn&&bn(),yn(e);let t=document.getElementById(`root`);bn=t.innerHTML!==``&&e.isHydration?Dt(()=>pn(vn),t):et(()=>pn(vn),t),xn=!0}e.isHydration||(e._headAlreadySet=!0,Cn(e)),await _n(e.config.onAfterRenderClient,e)};function Cn(e){un(fn(`title`,e),fn(`lang`,e))}var wn=!1,Tn=(()=>void 0),En=e=>e!=null,Dn=e=>e.filter(En);function On(e){return(...t)=>{for(let n of e)n&&n(...t)}}function kn(e){return(...t)=>{for(let n=e.length-1;n>=0;n--){let r=e[n];r&&r(...t)}}}var An=e=>typeof e==`function`&&!e.length?e():e,jn=e=>Array.isArray(e)?e:e?[e]:[];function Mn(e,...t){return typeof e==`function`?e(...t):e}var Nn=wn?e=>re()?F(e):e:F;function Pn(e,t,n,r){let i=e.length,a=t.length,o=0;if(!a){for(;o<i;o++)n(e[o]);return}if(!i){for(;o<a;o++)r(t[o]);return}for(;o<a&&t[o]===e[o];o++);let s,c;t=t.slice(o),e=e.slice(o);for(s of t)e.includes(s)||r(s);for(c of e)t.includes(c)||n(c)}function Fn(){return!0}var In={get(e,t,n){return t===u?n:e.get(t)},has(e,t){return e.has(t)},set:Fn,deleteProperty:Fn,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:Fn,deleteProperty:Fn}},ownKeys(e){return e.keys()}},Ln=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g;function Rn(e){let t={},n;for(;n=Ln.exec(e);)t[n[1]]=n[2];return t}function zn(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}}var Bn=(e,t,n)=>{let r;for(let i of e){let e=An(i)[t];r?e&&(r=n(r,e)):r=e}return r};function Vn(...e){let t=Array.isArray(e[0]),n=t?e[0]:e;if(n.length===1)return n[0];let r=t&&e[1]?.reverseEventHandlers?kn:On,i={};for(let e of n){let t=An(e);for(let e in t)if(e[0]===`o`&&e[1]===`n`&&e[2]){let n=t[e],r=e.toLowerCase(),a=typeof n==`function`?n:Array.isArray(n)?n.length===1?n[0]:n[0].bind(void 0,n[1]):void 0;a?i[r]?i[r].push(a):i[r]=[a]:delete i[r]}}let a=R(...n);return new Proxy({get(e){if(typeof e!=`string`)return Reflect.get(a,e);if(e===`style`)return Bn(n,`style`,zn);if(e===`ref`){let t=[];for(let r of n){let n=An(r)[e];typeof n==`function`&&t.push(n)}return r(t)}if(e[0]===`o`&&e[1]===`n`&&e[2]){let t=i[e.toLowerCase()];return t?r(t):Reflect.get(a,e)}return e===`class`||e===`className`?Bn(n,e,(e,t)=>`${e} ${t}`):e===`classList`?Bn(n,e,(e,t)=>({...e,...t})):Reflect.get(a,e)},has(e){return Reflect.has(a,e)},keys(){return Object.keys(a)}},In)}function Hn(...e){return On(e)}function Un(e,t,n=-1){return n in e?[...e.slice(0,n),t,...e.slice(n)]:[...e,t]}function Wn(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Gn(e){return typeof e==`number`}function Kn(e){return Array.isArray(e)}function qn(e){return Object.prototype.toString.call(e)===`[object String]`}function Jn(e){return typeof e==`function`}function Yn(e){return t=>`${e()}-${t}`}function Xn(e,t){return e?e===t||e.contains(t):!1}function Zn(e,t=!1){let{activeElement:n}=$n(e);if(!n?.nodeName)return null;if(er(n)&&n.contentDocument)return Zn(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=$n(n).getElementById(e);if(t)return t}}return n}function Qn(e){return $n(e).defaultView||window}function $n(e){return e?e.ownerDocument||e:document}function er(e){return e.tagName===`IFRAME`}var tr=(e=>(e.Escape=`Escape`,e.Enter=`Enter`,e.Tab=`Tab`,e.Space=` `,e.ArrowDown=`ArrowDown`,e.ArrowLeft=`ArrowLeft`,e.ArrowRight=`ArrowRight`,e.ArrowUp=`ArrowUp`,e.End=`End`,e.Home=`Home`,e.PageDown=`PageDown`,e.PageUp=`PageUp`,e))(tr||{});function nr(e){return typeof window>`u`||window.navigator==null?!1:window.navigator.userAgentData?.brands.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function rr(e){return typeof window<`u`&&window.navigator!=null?e.test(window.navigator.userAgentData?.platform||window.navigator.platform):!1}function ir(){return rr(/^Mac/i)}function ar(){return rr(/^iPhone/i)}function or(){return rr(/^iPad/i)||ir()&&navigator.maxTouchPoints>1}function sr(){return ar()||or()}function cr(){return ir()||sr()}function lr(){return nr(/AppleWebKit/i)&&!ur()}function ur(){return nr(/Chrome/i)}function dr(e,t){return t&&(Jn(t)?t(e):t[0](t[1],e)),e?.defaultPrevented}function fr(e){return t=>{for(let n of e)dr(t,n)}}function pr(e){return ir()?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey}function mr(e){if(e)if(gr())e.focus({preventScroll:!0});else{let t=_r(e);e.focus(),vr(t)}}var hr=null;function gr(){if(hr==null){hr=!1;try{document.createElement(`div`).focus({get preventScroll(){return hr=!0,!0}})}catch{}}return hr}function _r(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function vr(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}var yr=[`input:not([type='hidden']):not([disabled])`,`select:not([disabled])`,`textarea:not([disabled])`,`button:not([disabled])`,`a[href]`,`area[href]`,`[tabindex]`,`iframe`,`object`,`embed`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable='false'])`],br=[...yr,`[tabindex]:not([tabindex="-1"]):not([disabled])`],xr=`${yr.join(`:not([hidden]),`)},[tabindex]:not([disabled]):not([hidden])`,Sr=br.join(`:not([hidden]):not([tabindex="-1"]),`);function Cr(e,t){let n=Array.from(e.querySelectorAll(xr)).filter(wr);return t&&wr(e)&&n.unshift(e),n.forEach((e,t)=>{if(er(e)&&e.contentDocument){let r=e.contentDocument.body,i=Cr(r,!1);n.splice(t,1,...i)}}),n}function wr(e){return Tr(e)&&!Er(e)}function Tr(e){return e.matches(xr)&&Dr(e)}function Er(e){return Number.parseInt(e.getAttribute(`tabindex`)||`0`,10)<0}function Dr(e,t){return e.nodeName!==`#comment`&&Or(e)&&kr(e,t)&&(!e.parentElement||Dr(e.parentElement,e))}function Or(e){if(!(e instanceof HTMLElement)&&!(e instanceof SVGElement))return!1;let{display:t,visibility:n}=e.style,r=t!==`none`&&n!==`hidden`&&n!==`collapse`;if(r){if(!e.ownerDocument.defaultView)return r;let{getComputedStyle:t}=e.ownerDocument.defaultView,{display:n,visibility:i}=t(e);r=n!==`none`&&i!==`hidden`&&i!==`collapse`}return r}function kr(e,t){return!e.hasAttribute(`hidden`)&&(e.nodeName===`DETAILS`&&t&&t.nodeName!==`SUMMARY`?e.hasAttribute(`open`):!0)}function Ar(e,t){return t.some(t=>t.contains(e))}function jr(e,t,n){let r=t?.tabbable?Sr:xr,i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(e){return t?.from?.contains(e)?NodeFilter.FILTER_REJECT:e.matches(r)&&Dr(e)&&(!n||Ar(e,n))&&(!t?.accept||t.accept(e))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(i.currentNode=t.from),i}function Mr(){}function Nr(e,t){let[n,r]=e,i=!1,a=t.length;for(let e=a,o=0,s=e-1;o<e;s=o++){let[a,c]=t[o],[l,u]=t[s],[,d]=t[s===0?e-1:s-1]||[0,0],f=(c-u)*(n-a)-(a-l)*(r-c);if(u<c){if(r>=u&&r<c){if(f===0)return!0;f>0&&(r===u?r>d&&(i=!i):i=!i)}}else if(c<u){if(r>c&&r<=u){if(f===0)return!0;f<0&&(r===u?r<d&&(i=!i):i=!i)}}else if(r===c&&(n>=l&&n<=a||n>=a&&n<=l))return!0}return i}function Pr(e,t){return R(e,t)}var Fr=new Map,Ir=new Set;function Lr(){if(typeof window>`u`)return;let e=e=>{if(!e.target)return;let n=Fr.get(e.target);n||(n=new Set,Fr.set(e.target,n),e.target.addEventListener(`transitioncancel`,t)),n.add(e.propertyName)},t=e=>{if(!e.target)return;let n=Fr.get(e.target);if(n&&(n.delete(e.propertyName),n.size===0&&(e.target.removeEventListener(`transitioncancel`,t),Fr.delete(e.target)),Fr.size===0)){for(let e of Ir)e();Ir.clear()}};document.body.addEventListener(`transitionrun`,e),document.body.addEventListener(`transitionend`,t)}typeof document<`u`&&(document.readyState===`loading`?document.addEventListener(`DOMContentLoaded`,Lr):Lr());function Rr(e,t){let n=zr(e,t,`left`),r=zr(e,t,`top`),i=t.offsetWidth,a=t.offsetHeight,o=e.scrollLeft,s=e.scrollTop,c=o+e.offsetWidth,l=s+e.offsetHeight;n<=o?o=n:n+i>c&&(o+=n+i-c),r<=s?s=r:r+a>l&&(s+=r+a-l),e.scrollLeft=o,e.scrollTop=s}function zr(e,t,n){let r=n===`left`?`offsetLeft`:`offsetTop`,i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[r];break}t=t.offsetParent}return i}var Br={border:`0`,clip:`rect(0 0 0 0)`,"clip-path":`inset(50%)`,height:`1px`,margin:`0 -1px -1px 0`,overflow:`hidden`,padding:`0`,position:`absolute`,width:`1px`,"white-space":`nowrap`};function Vr(e,t){let[n,r]=O(Hr(t?.()));return A(()=>{r(e()?.tagName.toLowerCase()||Hr(t?.()))}),n}function Hr(e){return qn(e)?e:void 0}function Ur(e){let[t,n]=z(e,[`as`]);if(!t.as)throw Error("[kobalte]: Polymorphic is missing the required `as` prop.");return L(At,R(n,{get component(){return t.as}}))}var Wr=Object.defineProperty,Gr=(e,t)=>{for(var n in t)Wr(e,n,{get:t[n],enumerable:!0})};Gr({},{Button:()=>Yr,Root:()=>Jr});var Kr=[`button`,`color`,`file`,`image`,`reset`,`submit`];function qr(e){let t=e.tagName.toLowerCase();return t===`button`?!0:t===`input`&&e.type?Kr.indexOf(e.type)!==-1:!1}function Jr(e){let t,[n,r]=z(Pr({type:`button`},e),[`ref`,`type`,`disabled`]),i=Vr(()=>t,()=>`button`),a=j(()=>{let e=i();return e==null?!1:qr({tagName:e,type:n.type})}),o=j(()=>i()===`input`),s=j(()=>i()===`a`&&t?.getAttribute(`href`)!=null);return L(Ur,R({as:`button`,ref(e){var r=Hn(e=>t=e,n.ref);typeof r==`function`&&r(e)},get type(){return V(()=>!!(a()||o()))()?n.type:void 0},get role(){return!a()&&!s()?`button`:void 0},get tabIndex(){return!a()&&!s()&&!n.disabled?0:void 0},get disabled(){return V(()=>!!(a()||o()))()?n.disabled:void 0},get"aria-disabled"(){return!a()&&!o()&&n.disabled?!0:void 0},get"data-disabled"(){return n.disabled?``:void 0}},r))}var Yr=Jr;function Xr(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Xr(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function Zr(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Xr(e))&&(r&&(r+=` `),r+=t);return r}var Qr=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,$r=Zr,ei=((e,t)=>n=>{if(t?.variants==null)return $r(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=Qr(t)||Qr(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return $r(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)})(`inline-flex items-center justify-center gap-2 whitespace-nowrap font-medium text-sm ring-offset-background transition focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 not-disabled:active:scale-95 disabled:cursor-not-allowed disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0`,{variants:{variant:{default:`border border-primary bg-primary text-primary-foreground hover:bg-primary/90`,destructive:`border border-destructive bg-destructive text-destructive-foreground hover:bg-destructive/90`,outline:`border border-input bg-transparent hover:bg-accent hover:text-accent-foreground`,secondary:`border border-input bg-secondary text-secondary-foreground hover:bg-secondary/80`,ghost:`hover:bg-accent hover:text-accent-foreground`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-9 px-3 py-2`,sm:`h-8 px-2 text-xs`,xs:`h-7 px-2 py-0 text-[11px]`,lg:`h-10 px-4`,icon:`size-9`}},defaultVariants:{variant:`default`,size:`default`}}),ti=e=>{let[t,n]=z(e,[`variant`,`size`,`class`,`loading`,`disabled`,`children`]);return L(Jr,R({get class(){return ei({variant:t.variant,size:t.size,class:[e.loading&&`disabled:cursor-progress`,t.class]})},get disabled(){return t.disabled||t.loading}},n,{get children(){return t.children}}))},ni=H(`<div class=sonner-loading-wrapper><div class=sonner-spinner>`),ri=H(`<div class=sonner-loading-bar>`),ii=H(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 20 20"fill=currentColor height=20 width=20><path fill-rule=evenodd d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z"clip-rule=evenodd>`),ai=H(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=currentColor height=20 width=20><path fill-rule=evenodd d="M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z"clip-rule=evenodd>`),oi=H(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 20 20"fill=currentColor height=20 width=20><path fill-rule=evenodd d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z"clip-rule=evenodd>`),si=H(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 20 20"fill=currentColor height=20 width=20><path fill-rule=evenodd d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z"clip-rule=evenodd>`),ci=H(`<div class=sonner-loader>`),li=H(`<button aria-label="Close toast"data-close-button><svg xmlns=http://www.w3.org/2000/svg width=12 height=12 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round><line x1=18 y1=6 x2=6 y2=18></line><line x1=6 y1=6 x2=18 y2=18>`),ui=H(`<li aria-atomic=true role=status tabindex=0 data-sonner-toast><!$><!/><!$><!/>`),di=H(`<div data-icon><!$><!/><!$><!/>`),fi=H(`<div data-description>`),pi=H(`<div data-content><div data-title></div><!$><!/>`),mi=H(`<button data-button data-cancel>`),hi=H(`<button data-button>`),gi=H(`<section tabindex=-1>`),_i=H(`<ol tabindex=-1 data-sonner-toaster style=--width:356px;--gap:14px>`);function vi(e,{insertAt:t}={}){if(!e||typeof document>`u`)return;let n=document.head||document.getElementsByTagName(`head`)[0],r=document.createElement(`style`);r.type=`text/css`,t===`top`&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}vi(`:where(html[dir=ltr]),
|
|
3
|
+
:where([data-sonner-toaster][dir=ltr]) {
|
|
4
|
+
--toast-icon-margin-start: -3px;
|
|
5
|
+
--toast-icon-margin-end: 4px;
|
|
6
|
+
--toast-svg-margin-start: -1px;
|
|
7
|
+
--toast-svg-margin-end: 0px;
|
|
8
|
+
--toast-button-margin-start: auto;
|
|
9
|
+
--toast-button-margin-end: 0;
|
|
10
|
+
--toast-close-button-start: 0;
|
|
11
|
+
--toast-close-button-end: unset;
|
|
12
|
+
--toast-close-button-transform: translate(-35%, -35%);
|
|
13
|
+
}
|
|
14
|
+
:where(html[dir=rtl]),
|
|
15
|
+
:where([data-sonner-toaster][dir=rtl]) {
|
|
16
|
+
--toast-icon-margin-start: 4px;
|
|
17
|
+
--toast-icon-margin-end: -3px;
|
|
18
|
+
--toast-svg-margin-start: 0px;
|
|
19
|
+
--toast-svg-margin-end: -1px;
|
|
20
|
+
--toast-button-margin-start: 0;
|
|
21
|
+
--toast-button-margin-end: auto;
|
|
22
|
+
--toast-close-button-start: unset;
|
|
23
|
+
--toast-close-button-end: 0;
|
|
24
|
+
--toast-close-button-transform: translate(35%, -35%);
|
|
25
|
+
}
|
|
26
|
+
:where([data-sonner-toaster]) {
|
|
27
|
+
position: fixed;
|
|
28
|
+
width: var(--width);
|
|
29
|
+
font-family:
|
|
30
|
+
ui-sans-serif,
|
|
31
|
+
system-ui,
|
|
32
|
+
-apple-system,
|
|
33
|
+
BlinkMacSystemFont,
|
|
34
|
+
Segoe UI,
|
|
35
|
+
Roboto,
|
|
36
|
+
Helvetica Neue,
|
|
37
|
+
Arial,
|
|
38
|
+
Noto Sans,
|
|
39
|
+
sans-serif,
|
|
40
|
+
Apple Color Emoji,
|
|
41
|
+
Segoe UI Emoji,
|
|
42
|
+
Segoe UI Symbol,
|
|
43
|
+
Noto Color Emoji;
|
|
44
|
+
--gray1: hsl(0, 0%, 99%);
|
|
45
|
+
--gray2: hsl(0, 0%, 97.3%);
|
|
46
|
+
--gray3: hsl(0, 0%, 95.1%);
|
|
47
|
+
--gray4: hsl(0, 0%, 93%);
|
|
48
|
+
--gray5: hsl(0, 0%, 90.9%);
|
|
49
|
+
--gray6: hsl(0, 0%, 88.7%);
|
|
50
|
+
--gray7: hsl(0, 0%, 85.8%);
|
|
51
|
+
--gray8: hsl(0, 0%, 78%);
|
|
52
|
+
--gray9: hsl(0, 0%, 56.1%);
|
|
53
|
+
--gray10: hsl(0, 0%, 52.3%);
|
|
54
|
+
--gray11: hsl(0, 0%, 43.5%);
|
|
55
|
+
--gray12: hsl(0, 0%, 9%);
|
|
56
|
+
--border-radius: 8px;
|
|
57
|
+
box-sizing: border-box;
|
|
58
|
+
padding: 0;
|
|
59
|
+
margin: 0;
|
|
60
|
+
list-style: none;
|
|
61
|
+
outline: none;
|
|
62
|
+
z-index: 999999999;
|
|
63
|
+
}
|
|
64
|
+
:where([data-sonner-toaster][data-x-position=right]) {
|
|
65
|
+
right: max(var(--offset), env(safe-area-inset-right));
|
|
66
|
+
}
|
|
67
|
+
:where([data-sonner-toaster][data-x-position=left]) {
|
|
68
|
+
left: max(var(--offset), env(safe-area-inset-left));
|
|
69
|
+
}
|
|
70
|
+
:where([data-sonner-toaster][data-x-position=center]) {
|
|
71
|
+
left: 50%;
|
|
72
|
+
transform: translateX(-50%);
|
|
73
|
+
}
|
|
74
|
+
:where([data-sonner-toaster][data-y-position=top]) {
|
|
75
|
+
top: max(var(--offset), env(safe-area-inset-top));
|
|
76
|
+
}
|
|
77
|
+
:where([data-sonner-toaster][data-y-position=bottom]) {
|
|
78
|
+
bottom: max(var(--offset), env(safe-area-inset-bottom));
|
|
79
|
+
}
|
|
80
|
+
:where([data-sonner-toast]) {
|
|
81
|
+
--y: translateY(100%);
|
|
82
|
+
--lift-amount: calc(var(--lift) * var(--gap));
|
|
83
|
+
z-index: var(--z-index);
|
|
84
|
+
position: absolute;
|
|
85
|
+
opacity: 0;
|
|
86
|
+
transform: var(--y);
|
|
87
|
+
filter: blur(0);
|
|
88
|
+
touch-action: none;
|
|
89
|
+
transition:
|
|
90
|
+
transform 400ms,
|
|
91
|
+
opacity 400ms,
|
|
92
|
+
height 400ms,
|
|
93
|
+
box-shadow 200ms;
|
|
94
|
+
box-sizing: border-box;
|
|
95
|
+
outline: none;
|
|
96
|
+
overflow-wrap: anywhere;
|
|
97
|
+
}
|
|
98
|
+
:where([data-sonner-toast][data-styled=true]) {
|
|
99
|
+
padding: 16px;
|
|
100
|
+
background: var(--normal-bg);
|
|
101
|
+
border: 1px solid var(--normal-border);
|
|
102
|
+
color: var(--normal-text);
|
|
103
|
+
border-radius: var(--border-radius);
|
|
104
|
+
box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
|
|
105
|
+
width: var(--width);
|
|
106
|
+
font-size: 13px;
|
|
107
|
+
display: flex;
|
|
108
|
+
align-items: center;
|
|
109
|
+
gap: 6px;
|
|
110
|
+
}
|
|
111
|
+
:where([data-sonner-toast]:focus-visible) {
|
|
112
|
+
box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1), 0 0 0 2px rgba(0, 0, 0, 0.2);
|
|
113
|
+
}
|
|
114
|
+
:where([data-sonner-toast][data-y-position=top]) {
|
|
115
|
+
top: 0;
|
|
116
|
+
--y: translateY(-100%);
|
|
117
|
+
--lift: 1;
|
|
118
|
+
--lift-amount: calc(1 * var(--gap));
|
|
119
|
+
}
|
|
120
|
+
:where([data-sonner-toast][data-y-position=bottom]) {
|
|
121
|
+
bottom: 0;
|
|
122
|
+
--y: translateY(100%);
|
|
123
|
+
--lift: -1;
|
|
124
|
+
--lift-amount: calc(var(--lift) * var(--gap));
|
|
125
|
+
}
|
|
126
|
+
:where([data-sonner-toast]) :where([data-description]) {
|
|
127
|
+
font-weight: 400;
|
|
128
|
+
line-height: 1.4;
|
|
129
|
+
color: inherit;
|
|
130
|
+
}
|
|
131
|
+
:where([data-sonner-toast]) :where([data-title]) {
|
|
132
|
+
font-weight: 500;
|
|
133
|
+
line-height: 1.5;
|
|
134
|
+
color: inherit;
|
|
135
|
+
}
|
|
136
|
+
:where([data-sonner-toast]) :where([data-icon]) {
|
|
137
|
+
display: flex;
|
|
138
|
+
height: 16px;
|
|
139
|
+
width: 16px;
|
|
140
|
+
position: relative;
|
|
141
|
+
justify-content: flex-start;
|
|
142
|
+
align-items: center;
|
|
143
|
+
flex-shrink: 0;
|
|
144
|
+
margin-left: var(--toast-icon-margin-start);
|
|
145
|
+
margin-right: var(--toast-icon-margin-end);
|
|
146
|
+
}
|
|
147
|
+
:where([data-sonner-toast][data-promise=true]) :where([data-icon]) > svg {
|
|
148
|
+
opacity: 0;
|
|
149
|
+
transform: scale(0.8);
|
|
150
|
+
transform-origin: center;
|
|
151
|
+
animation: sonner-fade-in 300ms ease forwards;
|
|
152
|
+
}
|
|
153
|
+
:where([data-sonner-toast]) :where([data-icon]) > * {
|
|
154
|
+
flex-shrink: 0;
|
|
155
|
+
}
|
|
156
|
+
:where([data-sonner-toast]) :where([data-icon]) svg {
|
|
157
|
+
margin-left: var(--toast-svg-margin-start);
|
|
158
|
+
margin-right: var(--toast-svg-margin-end);
|
|
159
|
+
}
|
|
160
|
+
:where([data-sonner-toast]) :where([data-content]) {
|
|
161
|
+
display: flex;
|
|
162
|
+
flex-direction: column;
|
|
163
|
+
gap: 2px;
|
|
164
|
+
}
|
|
165
|
+
[data-sonner-toast][data-styled=true] [data-button] {
|
|
166
|
+
border-radius: 4px;
|
|
167
|
+
padding-left: 8px;
|
|
168
|
+
padding-right: 8px;
|
|
169
|
+
height: 24px;
|
|
170
|
+
font-size: 12px;
|
|
171
|
+
color: var(--normal-bg);
|
|
172
|
+
background: var(--normal-text);
|
|
173
|
+
margin-left: var(--toast-button-margin-start);
|
|
174
|
+
margin-right: var(--toast-button-margin-end);
|
|
175
|
+
border: none;
|
|
176
|
+
cursor: pointer;
|
|
177
|
+
outline: none;
|
|
178
|
+
display: flex;
|
|
179
|
+
align-items: center;
|
|
180
|
+
flex-shrink: 0;
|
|
181
|
+
transition: opacity 400ms, box-shadow 200ms;
|
|
182
|
+
}
|
|
183
|
+
:where([data-sonner-toast]) :where([data-button]):focus-visible {
|
|
184
|
+
box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.4);
|
|
185
|
+
}
|
|
186
|
+
:where([data-sonner-toast]) :where([data-button]):first-of-type {
|
|
187
|
+
margin-left: var(--toast-button-margin-start);
|
|
188
|
+
margin-right: var(--toast-button-margin-end);
|
|
189
|
+
}
|
|
190
|
+
:where([data-sonner-toast]) :where([data-cancel]) {
|
|
191
|
+
color: var(--normal-text);
|
|
192
|
+
background: rgba(0, 0, 0, 0.08);
|
|
193
|
+
}
|
|
194
|
+
:where([data-sonner-toast][data-theme=dark]) :where([data-cancel]) {
|
|
195
|
+
background: rgba(255, 255, 255, 0.3);
|
|
196
|
+
}
|
|
197
|
+
:where([data-sonner-toast]) :where([data-close-button]) {
|
|
198
|
+
position: absolute;
|
|
199
|
+
left: var(--toast-close-button-start);
|
|
200
|
+
right: var(--toast-close-button-end);
|
|
201
|
+
top: 0;
|
|
202
|
+
height: 20px;
|
|
203
|
+
width: 20px;
|
|
204
|
+
display: flex;
|
|
205
|
+
justify-content: center;
|
|
206
|
+
align-items: center;
|
|
207
|
+
padding: 0;
|
|
208
|
+
background: var(--gray1);
|
|
209
|
+
color: var(--gray12);
|
|
210
|
+
border: 1px solid var(--gray4);
|
|
211
|
+
transform: var(--toast-close-button-transform);
|
|
212
|
+
border-radius: 50%;
|
|
213
|
+
cursor: pointer;
|
|
214
|
+
z-index: 1;
|
|
215
|
+
transition:
|
|
216
|
+
opacity 100ms,
|
|
217
|
+
background 200ms,
|
|
218
|
+
border-color 200ms;
|
|
219
|
+
}
|
|
220
|
+
:where([data-sonner-toast]) :where([data-close-button]):focus-visible {
|
|
221
|
+
box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1), 0 0 0 2px rgba(0, 0, 0, 0.2);
|
|
222
|
+
}
|
|
223
|
+
:where([data-sonner-toast]) :where([data-disabled=true]) {
|
|
224
|
+
cursor: not-allowed;
|
|
225
|
+
}
|
|
226
|
+
:where([data-sonner-toast]):hover :where([data-close-button]):hover {
|
|
227
|
+
background: var(--gray2);
|
|
228
|
+
border-color: var(--gray5);
|
|
229
|
+
}
|
|
230
|
+
:where([data-sonner-toast][data-swiping=true])::before {
|
|
231
|
+
content: "";
|
|
232
|
+
position: absolute;
|
|
233
|
+
left: 0;
|
|
234
|
+
right: 0;
|
|
235
|
+
height: 100%;
|
|
236
|
+
z-index: -1;
|
|
237
|
+
}
|
|
238
|
+
:where([data-sonner-toast][data-y-position=top][data-swiping=true])::before {
|
|
239
|
+
bottom: 50%;
|
|
240
|
+
transform: scaleY(3) translateY(50%);
|
|
241
|
+
}
|
|
242
|
+
:where([data-sonner-toast][data-y-position=bottom][data-swiping=true])::before {
|
|
243
|
+
top: 50%;
|
|
244
|
+
transform: scaleY(3) translateY(-50%);
|
|
245
|
+
}
|
|
246
|
+
:where([data-sonner-toast][data-swiping=false][data-removed=true])::before {
|
|
247
|
+
content: "";
|
|
248
|
+
position: absolute;
|
|
249
|
+
inset: 0;
|
|
250
|
+
transform: scaleY(2);
|
|
251
|
+
}
|
|
252
|
+
:where([data-sonner-toast])::after {
|
|
253
|
+
content: "";
|
|
254
|
+
position: absolute;
|
|
255
|
+
left: 0;
|
|
256
|
+
height: calc(var(--gap) + 1px);
|
|
257
|
+
bottom: 100%;
|
|
258
|
+
width: 100%;
|
|
259
|
+
}
|
|
260
|
+
:where([data-sonner-toast][data-mounted=true]) {
|
|
261
|
+
--y: translateY(0);
|
|
262
|
+
opacity: 1;
|
|
263
|
+
}
|
|
264
|
+
:where([data-sonner-toast][data-expanded=false][data-front=false]) {
|
|
265
|
+
--scale: var(--toasts-before) * 0.05 + 1;
|
|
266
|
+
--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));
|
|
267
|
+
height: var(--front-toast-height);
|
|
268
|
+
}
|
|
269
|
+
:where([data-sonner-toast]) > * {
|
|
270
|
+
transition: opacity 400ms;
|
|
271
|
+
}
|
|
272
|
+
:where([data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]) > * {
|
|
273
|
+
opacity: 0;
|
|
274
|
+
}
|
|
275
|
+
:where([data-sonner-toast][data-visible=false]) {
|
|
276
|
+
opacity: 0;
|
|
277
|
+
pointer-events: none;
|
|
278
|
+
}
|
|
279
|
+
:where([data-sonner-toast][data-mounted=true][data-expanded=true]) {
|
|
280
|
+
--y: translateY(calc(var(--lift) * var(--offset)));
|
|
281
|
+
height: var(--initial-height);
|
|
282
|
+
}
|
|
283
|
+
:where([data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]) {
|
|
284
|
+
--y: translateY(calc(var(--lift) * -100%));
|
|
285
|
+
opacity: 0;
|
|
286
|
+
}
|
|
287
|
+
:where([data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]) {
|
|
288
|
+
--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));
|
|
289
|
+
opacity: 0;
|
|
290
|
+
}
|
|
291
|
+
:where([data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]) {
|
|
292
|
+
--y: translateY(40%);
|
|
293
|
+
opacity: 0;
|
|
294
|
+
transition: transform 500ms, opacity 200ms;
|
|
295
|
+
}
|
|
296
|
+
:where([data-sonner-toast][data-removed=true][data-front=false])::before {
|
|
297
|
+
height: calc(var(--initial-height) + 20%);
|
|
298
|
+
}
|
|
299
|
+
[data-sonner-toast][data-swiping=true] {
|
|
300
|
+
transform: var(--y) translateY(var(--swipe-amount, 0px));
|
|
301
|
+
transition: none;
|
|
302
|
+
}
|
|
303
|
+
[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],
|
|
304
|
+
[data-sonner-toast][data-swipe-out=true][data-y-position=top] {
|
|
305
|
+
animation: swipe-out 200ms ease-out forwards;
|
|
306
|
+
}
|
|
307
|
+
@keyframes swipe-out {
|
|
308
|
+
from {
|
|
309
|
+
transform: translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));
|
|
310
|
+
opacity: 1;
|
|
311
|
+
}
|
|
312
|
+
to {
|
|
313
|
+
transform: translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));
|
|
314
|
+
opacity: 0;
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
@media (max-width: 600px) {
|
|
318
|
+
[data-sonner-toaster] {
|
|
319
|
+
position: fixed;
|
|
320
|
+
--mobile-offset: 16px;
|
|
321
|
+
right: var(--mobile-offset);
|
|
322
|
+
left: var(--mobile-offset);
|
|
323
|
+
width: 100%;
|
|
324
|
+
}
|
|
325
|
+
[data-sonner-toaster] [data-sonner-toast] {
|
|
326
|
+
left: 0;
|
|
327
|
+
right: 0;
|
|
328
|
+
width: calc(100% - var(--mobile-offset) * 2);
|
|
329
|
+
}
|
|
330
|
+
[data-sonner-toaster][data-x-position=left] {
|
|
331
|
+
left: var(--mobile-offset);
|
|
332
|
+
}
|
|
333
|
+
[data-sonner-toaster][data-y-position=bottom] {
|
|
334
|
+
bottom: 20px;
|
|
335
|
+
}
|
|
336
|
+
[data-sonner-toaster][data-y-position=top] {
|
|
337
|
+
top: 20px;
|
|
338
|
+
}
|
|
339
|
+
[data-sonner-toaster][data-x-position=center] {
|
|
340
|
+
left: var(--mobile-offset);
|
|
341
|
+
right: var(--mobile-offset);
|
|
342
|
+
transform: none;
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
[data-sonner-toaster][data-theme=light] {
|
|
346
|
+
--normal-bg: #fff;
|
|
347
|
+
--normal-border: var(--gray4);
|
|
348
|
+
--normal-text: var(--gray12);
|
|
349
|
+
--success-bg: hsl(143, 85%, 96%);
|
|
350
|
+
--success-border: hsl(145, 92%, 91%);
|
|
351
|
+
--success-text: hsl(140, 100%, 27%);
|
|
352
|
+
--info-bg: hsl(208, 100%, 97%);
|
|
353
|
+
--info-border: hsl(221, 91%, 91%);
|
|
354
|
+
--info-text: hsl(210, 92%, 45%);
|
|
355
|
+
--warning-bg: hsl(49, 100%, 97%);
|
|
356
|
+
--warning-border: hsl(49, 91%, 91%);
|
|
357
|
+
--warning-text: hsl(31, 92%, 45%);
|
|
358
|
+
--error-bg: hsl(359, 100%, 97%);
|
|
359
|
+
--error-border: hsl(359, 100%, 94%);
|
|
360
|
+
--error-text: hsl(360, 100%, 45%);
|
|
361
|
+
}
|
|
362
|
+
[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true] {
|
|
363
|
+
--normal-bg: #000;
|
|
364
|
+
--normal-border: hsl(0, 0%, 20%);
|
|
365
|
+
--normal-text: var(--gray1);
|
|
366
|
+
}
|
|
367
|
+
[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true] {
|
|
368
|
+
--normal-bg: #fff;
|
|
369
|
+
--normal-border: var(--gray3);
|
|
370
|
+
--normal-text: var(--gray12);
|
|
371
|
+
}
|
|
372
|
+
[data-sonner-toaster][data-theme=dark] {
|
|
373
|
+
--normal-bg: #000;
|
|
374
|
+
--normal-border: hsl(0, 0%, 20%);
|
|
375
|
+
--normal-text: var(--gray1);
|
|
376
|
+
--success-bg: hsl(150, 100%, 6%);
|
|
377
|
+
--success-border: hsl(147, 100%, 12%);
|
|
378
|
+
--success-text: hsl(150, 86%, 65%);
|
|
379
|
+
--info-bg: hsl(215, 100%, 6%);
|
|
380
|
+
--info-border: hsl(223, 100%, 12%);
|
|
381
|
+
--info-text: hsl(216, 87%, 65%);
|
|
382
|
+
--warning-bg: hsl(64, 100%, 6%);
|
|
383
|
+
--warning-border: hsl(60, 100%, 12%);
|
|
384
|
+
--warning-text: hsl(46, 87%, 65%);
|
|
385
|
+
--error-bg: hsl(358, 76%, 10%);
|
|
386
|
+
--error-border: hsl(357, 89%, 16%);
|
|
387
|
+
--error-text: hsl(358, 100%, 81%);
|
|
388
|
+
}
|
|
389
|
+
[data-rich-colors=true] [data-sonner-toast][data-type=success] {
|
|
390
|
+
background: var(--success-bg);
|
|
391
|
+
border-color: var(--success-border);
|
|
392
|
+
color: var(--success-text);
|
|
393
|
+
}
|
|
394
|
+
[data-rich-colors=true] [data-sonner-toast][data-type=success] [data-close-button] {
|
|
395
|
+
background: var(--success-bg);
|
|
396
|
+
border-color: var(--success-border);
|
|
397
|
+
color: var(--success-text);
|
|
398
|
+
}
|
|
399
|
+
[data-rich-colors=true] [data-sonner-toast][data-type=info] {
|
|
400
|
+
background: var(--info-bg);
|
|
401
|
+
border-color: var(--info-border);
|
|
402
|
+
color: var(--info-text);
|
|
403
|
+
}
|
|
404
|
+
[data-rich-colors=true] [data-sonner-toast][data-type=info] [data-close-button] {
|
|
405
|
+
background: var(--info-bg);
|
|
406
|
+
border-color: var(--info-border);
|
|
407
|
+
color: var(--info-text);
|
|
408
|
+
}
|
|
409
|
+
[data-rich-colors=true] [data-sonner-toast][data-type=warning] {
|
|
410
|
+
background: var(--warning-bg);
|
|
411
|
+
border-color: var(--warning-border);
|
|
412
|
+
color: var(--warning-text);
|
|
413
|
+
}
|
|
414
|
+
[data-rich-colors=true] [data-sonner-toast][data-type=warning] [data-close-button] {
|
|
415
|
+
background: var(--warning-bg);
|
|
416
|
+
border-color: var(--warning-border);
|
|
417
|
+
color: var(--warning-text);
|
|
418
|
+
}
|
|
419
|
+
[data-rich-colors=true] [data-sonner-toast][data-type=error] {
|
|
420
|
+
background: var(--error-bg);
|
|
421
|
+
border-color: var(--error-border);
|
|
422
|
+
color: var(--error-text);
|
|
423
|
+
}
|
|
424
|
+
[data-rich-colors=true] [data-sonner-toast][data-type=error] [data-close-button] {
|
|
425
|
+
background: var(--error-bg);
|
|
426
|
+
border-color: var(--error-border);
|
|
427
|
+
color: var(--error-text);
|
|
428
|
+
}
|
|
429
|
+
.sonner-loading-wrapper {
|
|
430
|
+
--size: 16px;
|
|
431
|
+
height: var(--size);
|
|
432
|
+
width: var(--size);
|
|
433
|
+
position: absolute;
|
|
434
|
+
inset: 0;
|
|
435
|
+
z-index: 10;
|
|
436
|
+
}
|
|
437
|
+
.sonner-loading-wrapper[data-visible=false] {
|
|
438
|
+
transform-origin: center;
|
|
439
|
+
animation: sonner-fade-out 0.2s ease forwards;
|
|
440
|
+
}
|
|
441
|
+
.sonner-spinner {
|
|
442
|
+
position: relative;
|
|
443
|
+
top: 50%;
|
|
444
|
+
left: 50%;
|
|
445
|
+
height: var(--size);
|
|
446
|
+
width: var(--size);
|
|
447
|
+
}
|
|
448
|
+
.sonner-loading-bar {
|
|
449
|
+
animation: sonner-spin 1.2s linear infinite;
|
|
450
|
+
background: var(--gray11);
|
|
451
|
+
border-radius: 6px;
|
|
452
|
+
height: 8%;
|
|
453
|
+
left: -10%;
|
|
454
|
+
position: absolute;
|
|
455
|
+
top: -3.9%;
|
|
456
|
+
width: 24%;
|
|
457
|
+
}
|
|
458
|
+
.sonner-loading-bar:nth-child(1) {
|
|
459
|
+
animation-delay: -1.2s;
|
|
460
|
+
transform: rotate(0.0001deg) translate(146%);
|
|
461
|
+
}
|
|
462
|
+
.sonner-loading-bar:nth-child(2) {
|
|
463
|
+
animation-delay: -1.1s;
|
|
464
|
+
transform: rotate(30deg) translate(146%);
|
|
465
|
+
}
|
|
466
|
+
.sonner-loading-bar:nth-child(3) {
|
|
467
|
+
animation-delay: -1s;
|
|
468
|
+
transform: rotate(60deg) translate(146%);
|
|
469
|
+
}
|
|
470
|
+
.sonner-loading-bar:nth-child(4) {
|
|
471
|
+
animation-delay: -0.9s;
|
|
472
|
+
transform: rotate(90deg) translate(146%);
|
|
473
|
+
}
|
|
474
|
+
.sonner-loading-bar:nth-child(5) {
|
|
475
|
+
animation-delay: -0.8s;
|
|
476
|
+
transform: rotate(120deg) translate(146%);
|
|
477
|
+
}
|
|
478
|
+
.sonner-loading-bar:nth-child(6) {
|
|
479
|
+
animation-delay: -0.7s;
|
|
480
|
+
transform: rotate(150deg) translate(146%);
|
|
481
|
+
}
|
|
482
|
+
.sonner-loading-bar:nth-child(7) {
|
|
483
|
+
animation-delay: -0.6s;
|
|
484
|
+
transform: rotate(180deg) translate(146%);
|
|
485
|
+
}
|
|
486
|
+
.sonner-loading-bar:nth-child(8) {
|
|
487
|
+
animation-delay: -0.5s;
|
|
488
|
+
transform: rotate(210deg) translate(146%);
|
|
489
|
+
}
|
|
490
|
+
.sonner-loading-bar:nth-child(9) {
|
|
491
|
+
animation-delay: -0.4s;
|
|
492
|
+
transform: rotate(240deg) translate(146%);
|
|
493
|
+
}
|
|
494
|
+
.sonner-loading-bar:nth-child(10) {
|
|
495
|
+
animation-delay: -0.3s;
|
|
496
|
+
transform: rotate(270deg) translate(146%);
|
|
497
|
+
}
|
|
498
|
+
.sonner-loading-bar:nth-child(11) {
|
|
499
|
+
animation-delay: -0.2s;
|
|
500
|
+
transform: rotate(300deg) translate(146%);
|
|
501
|
+
}
|
|
502
|
+
.sonner-loading-bar:nth-child(12) {
|
|
503
|
+
animation-delay: -0.1s;
|
|
504
|
+
transform: rotate(330deg) translate(146%);
|
|
505
|
+
}
|
|
506
|
+
@keyframes sonner-fade-in {
|
|
507
|
+
0% {
|
|
508
|
+
opacity: 0;
|
|
509
|
+
transform: scale(0.8);
|
|
510
|
+
}
|
|
511
|
+
100% {
|
|
512
|
+
opacity: 1;
|
|
513
|
+
transform: scale(1);
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
@keyframes sonner-fade-out {
|
|
517
|
+
0% {
|
|
518
|
+
opacity: 1;
|
|
519
|
+
transform: scale(1);
|
|
520
|
+
}
|
|
521
|
+
100% {
|
|
522
|
+
opacity: 0;
|
|
523
|
+
transform: scale(0.8);
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
@keyframes sonner-spin {
|
|
527
|
+
0% {
|
|
528
|
+
opacity: 1;
|
|
529
|
+
}
|
|
530
|
+
100% {
|
|
531
|
+
opacity: 0.15;
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
@media (prefers-reduced-motion) {
|
|
535
|
+
[data-sonner-toast],
|
|
536
|
+
[data-sonner-toast] > *,
|
|
537
|
+
.sonner-loading-bar {
|
|
538
|
+
transition: none !important;
|
|
539
|
+
animation: none !important;
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
.sonner-loader {
|
|
543
|
+
position: absolute;
|
|
544
|
+
top: 50%;
|
|
545
|
+
left: 50%;
|
|
546
|
+
transform: translate(-50%, -50%);
|
|
547
|
+
transform-origin: center;
|
|
548
|
+
transition: opacity 200ms, transform 200ms;
|
|
549
|
+
}
|
|
550
|
+
.sonner-loader[data-visible=false] {
|
|
551
|
+
opacity: 0;
|
|
552
|
+
transform: scale(0.8) translate(-50%, -50%);
|
|
553
|
+
}
|
|
554
|
+
`);var yi=Array(12).fill(0);function bi(e){return(()=>{var t=G(ni),n=t.firstChild;return W(n,L(Ue,{each:yi,children:()=>G(ri)})),k(()=>U(t,`data-visible`,e.visible)),t})()}function xi(){return G(ii)}function Si(){return G(ai)}function Ci(){return G(oi)}function wi(){return G(si)}function Ti(e){switch(e){case`success`:return xi;case`info`:return Ci;case`warning`:return Si;case`error`:return wi;default:return null}}var Ei=0,Di=new class{subscribers;toasts;constructor(){this.subscribers=[],this.toasts=[]}subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)});publish=e=>{this.subscribers.forEach(t=>t(e))};addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]};create=e=>{let{message:t,...n}=e,r=typeof e?.id==`number`||e.id&&e.id?.length>0?e.id:Ei++;return this.toasts.find(e=>e.id===r)?this.toasts=this.toasts.map(n=>n.id===r?(this.publish({...n,...e,id:r,title:t}),{...n,...e,id:r,title:t}):n):this.addToast({title:t,...n,id:r}),r};dismiss=e=>(e||this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e);message=(e,t)=>this.create({...t,message:e});error=(e,t)=>this.create({...t,message:e,type:`error`});success=(e,t)=>this.create({...t,type:`success`,message:e});info=(e,t)=>this.create({...t,type:`info`,message:e});warning=(e,t)=>this.create({...t,type:`warning`,message:e});promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:`loading`,message:t.loading}));let r=e instanceof Promise?e:e(),i=n!==void 0;return r.then(e=>{if(e&&typeof e.ok==`boolean`&&!e.ok){i=!1;let r=typeof t.error==`function`?t.error(`HTTP error! status: ${e.status}`):t.error;this.create({id:n,type:`error`,message:r})}else if(t.success!==void 0){i=!1;let r=typeof t.success==`function`?t.success(e):t.success;this.create({id:n,type:`success`,message:r})}}).catch(e=>{if(t.error!==void 0){i=!1;let r=typeof t.error==`function`?t.error(e):t.error;this.create({id:n,type:`error`,message:r})}}).finally(()=>{i&&(this.dismiss(n),n=void 0),t.finally?.()}),n};loading=(e,t)=>this.create({...t,type:`loading`,message:e});custom=(e,t)=>{let n=t?.id||Ei++;return this.publish({jsx:e(n),id:n,...t}),n}};function Oi(e,t){let n=t?.id||Ei++;return Di.addToast({title:e,...t,id:n}),n}var ki=Oi,Ai=Object.assign(ki,{success:Di.success,info:Di.info,warning:Di.warning,error:Di.error,custom:Di.custom,message:Di.message,promise:Di.promise,dismiss:Di.dismiss,loading:Di.loading});function ji(){let[e,t]=O(!1);return P(()=>{let e=()=>{t(document.hidden)};document.addEventListener(`visibilitychange`,e),F(()=>{window.removeEventListener(`visibilitychange`,e)})}),e}var Mi=3,Ni=`32px`,Pi=4e3,Fi=14,Ii=20,Li=200;function Ri(...e){return e.filter(Boolean).join(` `)}var zi=e=>{let[t,n]=O(!1),[r,i]=O(!1),[a,o]=O(!1),[s,c]=O(!1),[l,u]=O(0),[d,f]=O(0),p,m=()=>e.index===0,h=()=>e.index+1<=e.visibleToasts,g=()=>e.toast.type,_=()=>e.toast.class||``,v=()=>e.toast.descriptionClass||``,y=R({gap:Fi},e),b=()=>e.heights.findIndex(t=>t.toastId===e.toast.id)||0,x=()=>e.toast.duration||e.duration||Pi,S=0,C=0,[w,T]=O(null),E=()=>e.position.split(`-`),D=()=>e.heights.reduce((e,t,n)=>n>=b()?e:e+t.height,0),ee=ji(),j=()=>e.toast.invert||e.invert,M=()=>g()===`loading`,N=()=>b()*y.gap+D();function ne(){return e.icons?.loading?(()=>{var t=G(ci);return W(t,()=>e.icons.loading),k(()=>U(t,`data-visible`,g()===`loading`)),t})():L(bi,{get visible(){return g()===`loading`}})}P(()=>{n(!0)}),P(()=>{let t=p,n=t.style.height;t.style.height=`auto`;let r=t.getBoundingClientRect().height;t.style.height=n,f(r),A(()=>{e.setHeights(t=>t.find(t=>t.toastId===e.toast.id)?t.map(t=>t.toastId===e.toast.id?{...t,height:r}:t):[{toastId:e.toast.id,height:r,position:e.toast.position},...t])})});let re=()=>{i(!0),u(N()),e.setHeights(t=>t.filter(t=>t.toastId!==e.toast.id)),setTimeout(()=>{e.removeToast(e.toast)},Li)},ie=x();return A(te(()=>[e.expanded,e.interacting,e.toast,x(),e.toast.promise,g(),e.pauseWhenPageIsHidden,ee()],([e,t,n,r,i,a,o,s])=>{if(i&&a===`loading`||r===1/0)return;let c;e||t||o&&s?(()=>{if(C<S){let e=new Date().getTime()-S;ie-=e}C=new Date().getTime()})():(S=new Date().getTime(),c=setTimeout(()=>{n.onAutoClose?.(n),re()},ie)),F(()=>{clearTimeout(c)})})),A(te(()=>e.toast.id,t=>{let n=p;if(n){let r=n.getBoundingClientRect().height;f(r),e.setHeights(n=>[{toastId:t,height:r,position:e.toast.position},...n]),F(()=>{e.setHeights(e=>e.filter(e=>e.toastId!==t))})}})),A(te(()=>e.toast.delete,e=>{e&&re()})),(()=>{var n=G(ui),i=n.firstChild,[f,y]=K(i.nextSibling),b=f.nextSibling,[x,S]=K(b.nextSibling);n.$$pointermove=e=>{if(!w())return;let t=e.clientY-w().y,n=e.clientX-w().x,r=(E()[0]===`top`?Math.min:Math.max)(0,t),i=e.pointerType===`touch`?10:2;Math.abs(r)>i?p?.style.setProperty(`--swipe-amount`,`${t}px`):Math.abs(n)>i&&T(null)},n.$$pointerup=()=>{if(s())return;T(null);let t=Number(p?.style.getPropertyValue(`--swipe-amount`).replace(`px`,``)||0);if(Math.abs(t)>=Ii){u(N()),e.toast.onDismiss?.(e.toast),re(),c(!0);return}p?.style.setProperty(`--swipe-amount`,`0px`),o(!1)},n.$$pointerdown=e=>{M()||(u(N()),e.target.setPointerCapture(e.pointerId),e.target.tagName!==`BUTTON`&&(o(!0),T({x:e.clientX,y:e.clientY})))};var C=p;return typeof C==`function`?dt(C,n):p=n,W(n,L(B,{get when(){return V(()=>!!e.closeButton)()&&!e.toast.jsx},get children(){var t=G(li);return ot(t,`click`,M()?void 0:()=>{re(),e.toast.onDismiss?.(e.toast)},!0),k(n=>{var r=M(),i=Ri(e.classes?.closeButton,e.toast?.classes?.closeButton);return r!==n.e&&U(t,`data-disabled`,n.e=r),i!==n.t&&at(t,n.t=i),n},{e:void 0,t:void 0}),q(),t}}),f,y),W(n,L(B,{get when(){return e.toast.jsx||e.toast.title instanceof Element},get fallback(){return[L(B,{get when(){return g()||e.toast.icon||e.toast.promise},get children(){var t=G(di),n=t.firstChild,[r,i]=K(n.nextSibling),a=r.nextSibling,[o,s]=K(a.nextSibling);return W(t,(()=>{var t=V(()=>!!(e.toast.promise||e.toast.type===`loading`&&!e.toast.icon));return()=>t()?e.toast.icon||ne():null})(),r,i),W(t,(()=>{var t=V(()=>e.toast.type!==`loading`);return()=>t()?e.toast.icon||e.icons?.[g()]||Ti(g())():null})(),o,s),t}}),(()=>{var t=G(pi),n=t.firstChild,r=n.nextSibling,[i,a]=K(r.nextSibling);return W(n,()=>e.toast.title),W(t,L(B,{get when(){return e.toast.description},get children(){var t=G(fi);return W(t,()=>e.toast.description),k(()=>at(t,Ri(e.descriptionClass,v(),e.classes?.description,e.toast?.classes?.description))),t}}),i,a),k(()=>at(n,Ri(e.classes?.title,e.toast?.classes?.title))),t})(),L(B,{get when(){return e.toast.cancel},get children(){var t=G(mi);return t.$$click=()=>{re(),e.toast.cancel?.onClick&&e.toast.cancel.onClick()},W(t,()=>e.toast.cancel.label),k(n=>{var r=e.toast.cancelButtonStyle||e.cancelButtonStyle,i=Ri(e.classes?.cancelButton,e.toast?.classes?.cancelButton);return n.e=ct(t,r,n.e),i!==n.t&&at(t,n.t=i),n},{e:void 0,t:void 0}),q(),t}}),L(B,{get when(){return e.toast.action},get children(){var t=G(hi);return t.$$click=t=>{e.toast.action?.onClick(t),!t.defaultPrevented&&re()},W(t,()=>e.toast.action.label),k(n=>{var r=e.toast.actionButtonStyle||e.actionButtonStyle,i=Ri(e.classes?.actionButton,e.toast?.classes?.actionButton);return n.e=ct(t,r,n.e),i!==n.t&&at(t,n.t=i),n},{e:void 0,t:void 0}),q(),t}})]},get children(){return e.toast.jsx||e.toast.title}}),x,S),k(i=>{var o=e.toast.important?`assertive`:`polite`,c=Ri(e.class,_(),e.classes?.toast,e.toast?.classes?.toast,e.classes?.default,e.classes?.[g()],e.toast?.classes?.[g()]),u=!(e.toast.jsx||e.toast.unstyled||e.unstyled),f=t(),p=!!e.toast.promise,v=r(),y=h(),b=E()[0],x=E()[1],S=e.index,C=m(),w=a(),T=g(),D=j(),O=s(),ee=!!(e.expanded||e.expandByDefault&&t()),k={"--index":e.index,"--toasts-before":e.index,"--z-index":e.toasts.length-e.index,"--offset":`${r()?l():N()}px`,"--initial-height":e.expandByDefault?`auto`:`${d()}px`,...e.style,...e.toast.style};return o!==i.e&&U(n,`aria-live`,i.e=o),c!==i.t&&at(n,i.t=c),u!==i.a&&U(n,`data-styled`,i.a=u),f!==i.o&&U(n,`data-mounted`,i.o=f),p!==i.i&&U(n,`data-promise`,i.i=p),v!==i.n&&U(n,`data-removed`,i.n=v),y!==i.s&&U(n,`data-visible`,i.s=y),b!==i.h&&U(n,`data-y-position`,i.h=b),x!==i.r&&U(n,`data-x-position`,i.r=x),S!==i.d&&U(n,`data-index`,i.d=S),C!==i.l&&U(n,`data-front`,i.l=C),w!==i.u&&U(n,`data-swiping`,i.u=w),T!==i.c&&U(n,`data-type`,i.c=T),D!==i.w&&U(n,`data-invert`,i.w=D),O!==i.m&&U(n,`data-swipe-out`,i.m=O),ee!==i.f&&U(n,`data-expanded`,i.f=ee),i.y=ct(n,k,i.y),i},{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}),q(),n})()};function Bi(){if(typeof window>`u`||typeof document>`u`)return`ltr`;let e=document.documentElement.getAttribute(`dir`);return e===`auto`||!e?window.getComputedStyle(document.documentElement).direction:e}var Vi=e=>{let t=R({position:`bottom-right`,hotkey:[`altKey`,`KeyT`],theme:`light`,visibleToasts:Mi,dir:Bi()},e),[n,r]=tn({toasts:[]}),i=()=>Array.from(new Set([t.position].concat(n.toasts.filter(e=>e.position).map(e=>e.position)))),[a,o]=O([]),[s,c]=O(!1),[l,u]=O(!1),d,f=()=>t.hotkey.join(`+`).replace(/Key/g,``).replace(/Digit/g,``),[p,m]=O(null),[h,g]=O(!1),[_,v]=O(t.theme===`system`?typeof window<`u`&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:t.theme),y=e=>r(`toasts`,t=>t.filter(({id:t})=>t!==e.id));return P(()=>{let e=Di.subscribe(e=>{if(e.dismiss){r(`toasts`,cn(t=>{t.forEach(t=>{t.id===e.id&&(t.delete=!0)})}));return}let t=n.toasts.findIndex(t=>t.id===e.id);if(t!==-1){r(`toasts`,[t],an(e));return}r(`toasts`,cn(t=>{t.unshift(e)}))});F(()=>{e()})}),A(te(()=>t.theme,e=>{if(e!==`system`){v(e);return}typeof window>`u`||window.matchMedia(`(prefers-color-scheme: dark)`).addEventListener(`change`,({matches:e})=>{v(e?`dark`:`light`)})})),A(()=>{n.toasts.length<=1&&c(!1)}),P(()=>{let e=e=>{t.hotkey.every(t=>e[t]||e.code===t)&&(c(!0),d?.focus()),e.code===`Escape`&&(document.activeElement===d||d?.contains(document.activeElement))&&c(!1)};document.addEventListener(`keydown`,e),F(()=>{document.removeEventListener(`keydown`,e)})}),A(te(()=>d,e=>{e&&F(()=>{p()&&(p()?.focus({preventScroll:!0}),m(null),g(!1))})})),L(B,{get when(){return n.toasts.length>0},get children(){var r=G(gi);return W(r,L(Ue,{get each(){return i()},children:(r,i)=>{let[f,v]=r.split(`-`);return(()=>{var b=G(_i);b.$$pointerup=()=>u(!1),b.$$pointerdown=()=>{u(!0)},b.addEventListener(`mouseleave`,()=>{l()||c(!1)}),b.$$mousemove=()=>c(!0),b.addEventListener(`mouseenter`,()=>c(!0)),b.addEventListener(`focus`,e=>{h()||(g(!0),m(e.relatedTarget))}),b.addEventListener(`blur`,e=>{h()&&!e.currentTarget.contains(e.relatedTarget)&&(g(!1),p()&&(p()?.focus({preventScroll:!0}),m(null)))});var x=d;return typeof x==`function`?dt(x,b):d=b,U(b,`data-y-position`,f),U(b,`data-x-position`,v),W(b,L(Ue,{get each(){return n.toasts.filter(e=>!e.position&&i()===0||e.position===r)},children:(r,i)=>L(zi,{get index(){return i()},get icons(){return t.icons},toast:r,get duration(){return t.toastOptions?.duration??e.duration},get class(){return t.toastOptions?.class},get classes(){return t.toastOptions?.classes},get cancelButtonStyle(){return t.toastOptions?.cancelButtonStyle},get actionButtonStyle(){return t.toastOptions?.actionButtonStyle},get descriptionClass(){return t.toastOptions?.descriptionClass},get invert(){return!!t.invert},get visibleToasts(){return t.visibleToasts},get closeButton(){return!!t.closeButton},get interacting(){return l()},get position(){return t.position},get style(){return t.toastOptions?.style},get unstyled(){return t.toastOptions?.unstyled},removeToast:y,get toasts(){return n.toasts},get heights(){return a()},setHeights:o,get expandByDefault(){return!!t.expand},get gap(){return t.gap},get expanded(){return s()},get pauseWhenPageIsHidden(){return t.pauseWhenPageIsHidden}})})),k(e=>{var n=t.dir===`auto`?Bi():t.dir,r=t.class,i=_(),o=t.richColors,s={"--front-toast-height":`${a()[0]?.height}px`,"--offset":typeof t.offset==`number`?`${t.offset}px`:t.offset||Ni,...t.style};return n!==e.e&&U(b,`dir`,e.e=n),r!==e.t&&at(b,e.t=r),i!==e.a&&U(b,`data-theme`,e.a=i),o!==e.o&&U(b,`data-rich-colors`,e.o=o),e.i=ct(b,s,e.i),e},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),q(),b})()}})),k(()=>U(r,`aria-label`,`Notifications ${f()}`)),r}})};tt([`pointerdown`,`pointerup`,`pointermove`,`click`,`mousemove`]);function Hi(){let e=ln({asyncHook:!1});return e||=Lt(),t=>{`_headAlreadySet`in e?typeof window<`u`&&Wi(t):Ui(t,e)}}function Ui(e,t){t._configFromHook??={},Object.assign(t._configFromHook,e)}function Wi(e){let{title:t,lang:n}=e;un(t,n)}var Gi=H(`<link rel=author>`),Ki=H(`<link rel=manifest>`),qi=H(`<meta>`),Ji=H(`<link data-vike-metadata-icons>`),Yi=H(`<meta name=twitter:image>`),Xi=H(`<meta name=theme-color>`);function Zi(e){if(!e)return;let t=``;return typeof e?.email<`u`&&(e.email?t+=`email=yes,`:t+=`email=no,`),typeof e?.telephone<`u`&&(e.telephone?t+=`telephone=yes,`:t+=`telephone=no,`),typeof e?.address<`u`&&(e.address?t+=`address=yes,`:t+=`address=no,`),typeof e?.url<`u`&&(e.url?t+=`url=yes,`:t+=`url=no,`),typeof e?.date<`u`&&(e.date?t+=`date=yes`:t+=`date=no`),t}function Qi(e){if(!e)return null;if(typeof e==`string`)return e;let t=[];return(e?.follow!==void 0||e?.nofollow!==void 0)&&(e.follow===!0||e.nofollow===!1?t.push(`follow`):t.push(`nofollow`)),(e?.index!==void 0||e?.noindex!==void 0)&&(e.index===!0||e.noindex===!1?t.push(`index`):t.push(`noindex`)),e?.indexifembedded===!0&&t.push(`indexifembedded`),e?.[`max-image-preview`]!==void 0&&t.push(`max-image-preview:${e[`max-image-preview`]}`),e?.[`max-snippet`]!==void 0&&t.push(`max-snippet:${e[`max-snippet`]}`),e?.[`max-video-preview`]!==void 0&&t.push(`max-video-preview:${e[`max-video-preview`]}`),e?.noarchive===!0&&t.push(`noarchive`),e?.nocache===!0&&t.push(`nocache`),e?.noimageindex===!0&&t.push(`noimageindex`),e?.nositelinkssearchbox===!0&&t.push(`nositelinkssearchbox`),e?.nosnippet===!0&&t.push(`nosnippet`),e?.notranslate===!0&&t.push(`notranslate`),e?.unavailable_after!==void 0&&t.push(`unavailable_after: ${e.unavailable_after}`),t.join(`, `)}function $i(e){if(!e)return null;let t=[];return e.width!==void 0&&t.push(`width=${e.width}`),e.height!==void 0&&t.push(`height=${e.height}`),e.initialScale!==void 0&&t.push(`initial-scale=${e.initialScale}`),e.interactiveWidget!==void 0&&t.push(`interactive-widget=${e.interactiveWidget}`),e.maximumScale!==void 0&&t.push(`maximum-scale=${e.maximumScale}`),e.minimumScale!==void 0&&t.push(`minimum-scale=${e.minimumScale}`),e.userScalable!==void 0&&(e.userScalable===!0&&t.push(`user-scalable=yes`),t.push(`user-scalable=no`)),e.viewportFit!==void 0&&t.push(`viewport-fit=${e.viewportFit}`),t.join(`, `)}function ea(e){return typeof e==`string`?e:e.join(`,`)}var ta=`data-vike-metadata-icons`;function na(e,t){let n=document.querySelector(`meta[name="${e}"]`);n||(n=document.createElement(`meta`),n.setAttribute(`name`,e),document.head.appendChild(n)),n.setAttribute(`content`,t)}function ra(e,t){let n=document.querySelector(`meta[property="${e}"]`);n||(n=document.createElement(`meta`),n.setAttribute(`property`,e),document.head.appendChild(n)),n.setAttribute(`content`,t)}function ia(e){e&&(document.head.querySelectorAll(`link[${ta}]`).forEach(e=>e.remove()),aa(e.icon).forEach(e=>{let t=sa(`icon`,e);t&&oa(t)}),aa(e.shortcut).forEach(e=>{let t=sa(`shortcut icon`,e);t&&oa(t)}),aa(e.apple).forEach(e=>{let t=sa(`apple-touch-icon`,e);t&&oa(t)}),aa(e.other).forEach(e=>{let t=ca(e);t&&oa(t)}))}function aa(e){return e?Array.isArray(e)?e:[e]:[]}function oa(e){e.setAttribute(ta,``),document.head.appendChild(e)}function sa(e,t){let n=document.createElement(`link`);return n.rel=e,typeof t==`string`||t instanceof URL?(n.href=t.toString(),n):t?.url?(n.href=t.url.toString(),t.sizes&&n.setAttribute(`sizes`,t.sizes),t.type&&n.setAttribute(`type`,t.type),t.media&&n.setAttribute(`media`,t.media),n):null}function ca(e){if(!e?.url)return null;let t=document.createElement(`link`);return t.rel=e.rel,t.href=e.url.toString(),e.sizes&&t.setAttribute(`sizes`,e.sizes),e.type&&t.setAttribute(`type`,e.type),e.media&&t.setAttribute(`media`,e.media),t}function la(e,t){let n=Hi(),r={title:e.title??t.title,description:e.description??t.description,generator:e.generator??t.generator,applicationName:e.applicationName??t.applicationName,referrer:e.referrer??t.referrer,keywords:e.keywords??t.keywords,authors:e.authors??t.authors,creator:e.creator??t.creator,publisher:e.publisher??t.publisher,formatDetection:e.formatDetection??t.formatDetection,openGraph:{title:e.openGraph?.title??e.title??t.title,description:e.openGraph?.description??e.description??t.description,url:e.openGraph?.url??t?.openGraph?.url,siteName:e.openGraph?.siteName??t?.openGraph?.siteName,images:e.openGraph?.images??t?.openGraph?.images,videos:e.openGraph?.videos??t?.openGraph?.videos,audio:e.openGraph?.audio??t?.openGraph?.audio,locale:e.openGraph?.locale??t?.openGraph?.locale,type:e.openGraph?.type??t?.openGraph?.type},robots:e.robots??t.robots,icons:e.icons??t.icons,manifest:e.manifest??t.manifest,twitter:{creator:e.twitter?.creator??t?.twitter?.creator,creatorId:e.twitter?.creatorId??t?.twitter?.creatorId,description:e.twitter?.description??e.description??t.description,images:e.twitter?.images??t?.twitter?.images,site:e.twitter?.site??t?.twitter?.site,siteId:e.twitter?.siteId??t?.twitter?.siteId,title:e.twitter?.title??e.title??t.title,card:e.twitter?.card??t?.twitter?.card,players:e.twitter?.players??t?.twitter?.players,app:e?.twitter?.app??t?.twitter?.app},viewport:e.viewport??t.viewport,verification:e.verification??t.verification,other:e.other??t.other,otherJSX:e.otherJSX??t.otherJSX};function i(){return[V(()=>J(`generator`,r.generator)),V(()=>J(`application-name`,r.applicationName)),V(()=>J(`referrer`,r.referrer)),V(()=>J(`keywords`,r?.keywords?.length?ea(r.keywords):null)),V(()=>X(r?.authors,e=>[V(()=>J(`author`,e.name)),V(()=>V(()=>!!e.url)()?(()=>{var t=G(Gi);return k(()=>U(t,`href`,e.url?.toString())),t})():null)])),V(()=>J(`creator`,r?.creator)),V(()=>J(`publisher`,r?.publisher)),V(()=>J(`format-detection`,r?.formatDetection?Zi(r.formatDetection):null)),V(()=>ma(r?.openGraph)),V(()=>J(`robots`,r?.robots?Qi(r.robots):null)),V(()=>J(`googlebot`,r?.robots?.googleBot?Qi(r?.robots?.googleBot):null)),V(()=>ha(r.icons)),V(()=>V(()=>!!r?.manifest)()?(()=>{var e=G(Ki);return k(()=>U(e,`href`,r.manifest?.toString())),e})():null),V(()=>ga(r.twitter)),V(()=>_a(r.viewport)),V(()=>va(r?.verification)),V(()=>va(r?.other)),V(()=>r.otherJSX)]}n({title:r.title,description:r.description,Head:i}),typeof window>`u`||(r.title&&(document.title=r.title),r.openGraph.title&&ra(`og:title`,r.openGraph.title),r.description&&na(`description`,r.description),r.openGraph.description&&ra(`og:description`,r.openGraph.description),r.twitter.title&&na(`twitter:title`,r.twitter.title),r.twitter.description&&na(`twitter:description`,r.twitter.description),r.keywords?.length&&na(`keywords`,ea(r.keywords)),r.icons&&ia(r.icons))}function ua(e,t){if(typeof e==`function`){let n=e;la(n(),t),typeof window<`u`&&A(()=>{la(n(),t)});return}la(e,t)}var da={};function fa(e){da=e}var pa=e=>ua(e,da);pa.setGlobalDefaults=fa;function J(e,t){return t?(()=>{var n=G(qi);return U(n,`name`,e),U(n,`content`,t),n})():null}function Y(e,t){return t?(()=>{var n=G(qi);return U(n,`property`,e),U(n,`content`,t),n})():null}function X(e,t){return e?Array.isArray(e)?e.map(t):t(e,0):null}function ma(e){if(!e)return null;function t(e){return e.type===`article`?[V(()=>X(e.authors,e=>Y(`article:author`,e))),V(()=>Y(`article:expiration_time`,e.expirationTime)),V(()=>Y(`article:modified_time`,e.modifiedTime)),V(()=>Y(`article:published_time`,e.publishedTime)),V(()=>Y(`article:section`,e.section)),V(()=>X(e.tags,e=>Y(`article:tag`,e)))]:null}function n(e){return e.type===`book`?[V(()=>X(e.authors,e=>Y(`article:author`,e))),V(()=>Y(`book:isbn`,e.isbn)),V(()=>Y(`book:release_date`,e.releaseDate)),V(()=>X(e.tags,e=>Y(`article:tag`,e)))]:null}function r(e){return e.type===`profile`?[V(()=>Y(`profile:first_name`,e.firstName)),V(()=>Y(`profile:last_name`,e.lastName)),V(()=>Y(`profile:username`,e.username)),V(()=>Y(`profile:gender`,e.gender))]:null}function i(e){return e.type===`music.song`?[V(()=>X(e.albums,e=>typeof e==`string`||e instanceof URL?Y(`music:album`,e):[V(()=>Y(`music:album:disc`,e?.disc)),V(()=>Y(`music:album:track`,e?.track)),V(()=>Y(`music:album`,e?.url))])),V(()=>Y(`music:duration`,e.duration)),V(()=>X(e.musicians,e=>Y(`music:musician`,e)))]:null}function a(e){return e.type===`music.album`?[V(()=>X(e.musicians,e=>Y(`music:musician`,e))),V(()=>Y(`music:release_date`,e.releaseDate)),V(()=>X(e.songs,e=>typeof e==`string`||e instanceof URL?Y(`music:song`,e):[V(()=>Y(`music:song:disc`,e?.disc)),V(()=>Y(`music:song:track`,e?.track)),V(()=>Y(`music:song`,e?.url))]))]:null}function o(e){return e.type===`music.playlist`?[V(()=>X(e.creators,e=>Y(`music:creator`,e))),V(()=>X(e.songs,e=>typeof e==`string`||e instanceof URL?Y(`music:song`,e):[V(()=>Y(`music:song:disc`,e?.disc)),V(()=>Y(`music:song:track`,e?.track)),V(()=>Y(`music:song`,e?.url))]))]:null}function s(e){return e.type===`music.radio_station`?V(()=>X(e.creators,e=>Y(`music:creator`,e))):null}function c(e){return e.type===`video.movie`?[V(()=>X(e.actors,e=>typeof e==`string`||e instanceof URL?Y(`video:actor`,e):[V(()=>Y(`video:actor:role`,e?.role)),V(()=>Y(`video:actor`,e?.url))])),V(()=>X(e.directors,e=>Y(`video:director`,e))),V(()=>Y(`video:duration`,e.duration)),V(()=>Y(`video:release_date`,e.releaseDate)),V(()=>X(e.tags,e=>Y(`video.tag`,e))),V(()=>X(e.writers,e=>Y(`video:writer`,e)))]:null}function l(e){return e.type===`video.episode`?[V(()=>X(e.actors,e=>typeof e==`string`||e instanceof URL?Y(`video:actor`,e):[V(()=>Y(`video:actor:role`,e?.role)),V(()=>Y(`video:actor`,e?.url))])),V(()=>X(e.directors,e=>Y(`video:director`,e))),V(()=>Y(`video:duration`,e.duration)),V(()=>Y(`video:release_date`,e.releaseDate)),V(()=>Y(`video:series`,e.series)),V(()=>X(e.tags,e=>Y(`video.tag`,e))),V(()=>X(e.writers,e=>Y(`video:writer`,e)))]:null}return[V(()=>X(e?.alternateLocale,e=>Y(`og:locale:alternate`,e))),V(()=>X(e?.audio,e=>typeof e==`string`||e instanceof URL?Y(`og:audio`,e?.toString()):[V(()=>Y(`og:audio`,e?.url)),V(()=>Y(`og:audio:type`,e?.type))])),V(()=>Y(`og:country-name`,e?.countryName)),V(()=>Y(`og:determiner`,e?.determiner)),V(()=>X(e?.emails,e=>Y(`og:email`,e))),V(()=>X(e?.faxNumbers,e=>Y(`og:fax_number`,e))),V(()=>X(e?.images,e=>typeof e==`string`||e instanceof URL?Y(`og:image`,e?.toString()):[V(()=>Y(`og:image`,e?.url)),V(()=>Y(`og:image:secure_url`,e?.secureUrl)),V(()=>Y(`og:image:width`,e?.width)),V(()=>Y(`og:image:height`,e?.height)),V(()=>Y(`og:image:alt`,e?.alt))])),V(()=>Y(`og:locale`,e?.locale)),V(()=>X(e?.phoneNumbers,e=>Y(`og:phone_number`,e))),V(()=>Y(`og:site_name`,e?.siteName)),V(()=>Y(`og:ttl`,e?.ttl)),V(()=>Y(`og:url`,e?.url)),V(()=>X(e?.videos,e=>typeof e==`string`||e instanceof URL?Y(`og:video`,e?.toString()):[V(()=>Y(`og:video`,e?.url)),V(()=>Y(`og:video:secure_url`,e?.secureUrl)),V(()=>Y(`og:video:type`,e?.type)),V(()=>Y(`og:video:width`,e?.width)),V(()=>Y(`og:video:height`,e?.height))])),V(()=>Y(`og:type`,e?.type)),V(()=>t(e)),V(()=>n(e)),V(()=>r(e)),V(()=>i(e)),V(()=>a(e)),V(()=>o(e)),V(()=>s(e)),V(()=>c(e)),V(()=>l(e))]}function ha(e){if(!e)return null;function t(e,t){return typeof t==`string`||t instanceof URL?(()=>{var n=G(Ji);return U(n,`rel`,e),k(()=>U(n,`href`,t.toString())),n})():(()=>{var n=G(Ji);return U(n,`rel`,e),k(e=>{var r=t.url?.toString(),i=t.sizes,a=t.type,o=t.media;return r!==e.e&&U(n,`href`,e.e=r),i!==e.t&&U(n,`sizes`,e.t=i),a!==e.a&&U(n,`type`,e.a=a),o!==e.o&&U(n,`media`,e.o=o),e},{e:void 0,t:void 0,a:void 0,o:void 0}),n})()}function n(e){return(()=>{var t=G(Ji);return k(n=>{var r=e.rel,i=e.url?.toString(),a=e.sizes,o=e.type,s=e.media;return r!==n.e&&U(t,`rel`,n.e=r),i!==n.t&&U(t,`href`,n.t=i),a!==n.a&&U(t,`sizes`,n.a=a),o!==n.o&&U(t,`type`,n.o=o),s!==n.i&&U(t,`media`,n.i=s),n},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),t})()}return[V(()=>X(e.icon,e=>t(`icon`,e))),V(()=>X(e.shortcut,e=>t(`shortcut icon`,e))),V(()=>X(e.apple,e=>t(`apple-touch-icon`,e))),V(()=>X(e.other,e=>n(e)))]}function ga(e){if(!e)return null;function t(e){return e?[V(()=>J(`twitter:app:id:googleplay`,e?.id?.googleplay)),V(()=>J(`twitter:app:url:googleplay`,e?.url?.googleplay)),V(()=>J(`twitter:app:id:iphone`,e?.id?.iphone)),V(()=>J(`twitter:app:url:iphone`,e?.url?.iphone)),V(()=>J(`twitter:app:id:ipad`,e?.id?.ipad)),V(()=>J(`twitter:app:url:ipad`,e?.url?.ipad)),V(()=>J(`twitter:app:name:googleplay`,e?.id?.googleplay?e?.name:void 0)),V(()=>J(`twitter:app:name:iphone`,e?.id?.iphone?e?.name:void 0)),V(()=>J(`twitter:app:name:ipad`,e?.id?.ipad?e?.name:void 0))]:null}return[V(()=>J(`twitter:creator`,e.creator)),V(()=>J(`twitter:creator:id`,e.creatorId)),V(()=>J(`twitter:description`,e.description)),V(()=>J(`twitter:site`,e.site)),V(()=>J(`twitter:site:id`,e.siteId)),V(()=>J(`twitter:title`,e.title)),V(()=>J(`twitter:card`,e.card)),V(()=>X(e?.images,e=>typeof e==`string`||e instanceof URL?(()=>{var t=G(Yi);return k(()=>U(t,`content`,e?.toString())),t})():[(()=>{var t=G(Yi);return k(()=>U(t,`content`,e.url?.toString())),t})(),`;`,V(()=>J(`twitter:image:alt`,e.alt))])),V(()=>X(e?.players,e=>[V(()=>J(`twitter:player`,e.playerUrl)),V(()=>J(`twitter:player:width`,e.width)),V(()=>J(`twitter:player:height`,e.height)),V(()=>J(`twitter:player:stream`,e.streamUrl))])),V(()=>t(e?.app))]}function _a(e){return e?[V(()=>J(`color-scheme`,e.colorScheme)),V(()=>X(e.themeColor,e=>typeof e==`string`?(()=>{var t=G(Xi);return U(t,`content`,e),t})():e.media?(()=>{var t=G(Xi);return k(n=>{var r=e.media,i=e.color;return r!==n.e&&U(t,`media`,n.e=r),i!==n.t&&U(t,`content`,n.t=i),n},{e:void 0,t:void 0}),t})():(()=>{var t=G(Xi);return k(()=>U(t,`content`,e.color)),t})())),V(()=>J(`viewport`,$i(e)))]:null}function va(e){return e?Object.entries(e).map(([e,t])=>Array.isArray(t)?X(t,t=>J(e,t)):J(e,t)):null}function ya(e={timeout:2e3}){let[t,n]=O(null),[r,i]=O(!1),a=null,o=t=>{window.clearTimeout(a),a=window.setTimeout(()=>i(!1),e.timeout),i(t)};return{copy:e=>{`clipboard`in navigator?navigator.clipboard.writeText(e).then(()=>o(!0)).catch(e=>n(e)):n(Error(`useClipboard: navigator.clipboard is not supported`))},reset:()=>{i(!1),n(null),window.clearTimeout(a)},error:t,copied:r}}function ba(e){let t=e.toLowerCase().split(`+`).map(e=>e.trim()),n={alt:t.includes(`alt`),ctrl:t.includes(`ctrl`),meta:t.includes(`meta`),mod:t.includes(`mod`),shift:t.includes(`shift`)},r=[`alt`,`ctrl`,`meta`,`shift`,`mod`],i=t.find(e=>!r.includes(e));return{...n,key:i}}function xa(e,t){let{alt:n,ctrl:r,meta:i,mod:a,shift:o,key:s}=e,{altKey:c,ctrlKey:l,metaKey:u,shiftKey:d,key:f}=t;if(n!==c)return!1;if(a){if(!l&&!u)return!1}else if(r!==l||i!==u)return!1;return o===d?!!(s&&(f.toLowerCase()===s.toLowerCase()||t.code.replace(`Key`,``).toLowerCase()===s.toLowerCase())):!1}function Sa(e){return t=>xa(ba(e),t)}function Ca(e,t,n=!1){return e.target instanceof HTMLElement?(n||!e.target.isContentEditable)&&!t.includes(e.target.tagName):!0}function wa(e,t=[`INPUT`,`TEXTAREA`,`SELECT`],n=!1){A(()=>{let r=r=>{e.forEach(([e,i,a={preventDefault:!0}])=>{Sa(e)(r)&&Ca(r,t,n)&&(a.preventDefault&&r.preventDefault(),i(r))})};document.documentElement.addEventListener(`keydown`,r),F(()=>document.documentElement.removeEventListener(`keydown`,r))})}function Ta(e,t=`use-local-storage`){try{return JSON.stringify(e)}catch{throw Error(`bagon-hooks ${t}: Failed to serialize the value`)}}function Ea(e){try{return e&&JSON.parse(e)}catch{return e}}function Da(e){return{getItem:t=>{try{return window[e].getItem(t)}catch{return null}},setItem:(t,n)=>{try{window[e].setItem(t,n)}catch{}},removeItem:t=>{try{window[e].removeItem(t)}catch{}}}}function Oa(e){let{getItem:t}=Da(e);return function({key:n,defaultValue:r,deserialize:i=Ea}){let a;try{a=typeof window>`u`||!(e in window)||window[e]===null}catch{a=!0}if(a)return r;let o=t(n);return o===null?r:i(o)}}Oa(`localStorage`);function ka(e,t){let n=e===`localStorage`?`bagon-local-storage`:`bagon-session-storage`,{getItem:r,setItem:i,removeItem:a}=Da(e);return function({key:o,defaultValue:s,getInitialValueInEffect:c=!0,deserialize:l=Ea,serialize:u=e=>Ta(e,t)}){let d=t=>{let n;try{n=typeof window>`u`||!(e in window)||window[e]===null||!!t}catch{n=!0}if(n)return s;let i=r(o);return i===null?s:l(i)},[f,p]=O(d(c)),m=e=>{e instanceof Function?p(t=>{let r=e(t);return i(o,u(r)),window.dispatchEvent(new CustomEvent(n,{detail:{key:o,value:e(t)}})),r}):(i(o,u(e)),window.dispatchEvent(new CustomEvent(n,{detail:{key:o,value:e}})),p(e))};return P(()=>{let t=t=>{t.storageArea===window[e]&&t.key===o&&p(l(t.newValue??void 0))};window.addEventListener(`storage`,t);let r=e=>{e.detail.key===o&&p(e.detail.value)};window.addEventListener(n,t),F(()=>{window.removeEventListener(`storage`,t),window.removeEventListener(n,r)})}),A(()=>{s!==void 0&&f()===void 0&&m(s)}),P(()=>{let e=d();e!==void 0&&m(e)}),[f()===void 0?()=>s:f,m,()=>{a(o),window.dispatchEvent(new CustomEvent(n,{detail:{key:o,value:s}}))}]}}function Aa(e){return ka(`localStorage`,`use-local-storage`)(e)}function ja(e,t){let n=e===`localStorage`?`bagon-local-storage-store`:`bagon-session-storage-store`,{getItem:r,setItem:i,removeItem:a}=Da(e);return function({key:o,defaultValue:s,getInitialValueInEffect:c=!0,deserialize:l=Ea,serialize:u=e=>Ta(e,t)}){let d=t=>{let n;try{n=typeof window>`u`||!(e in window)||window[e]===null||!!t}catch{n=!0}if(n)return s;let i=r(o);return i===null?s:l(i)},[f,p]=tn(d(c)),m=(...e)=>{p(...e);let t=Wt(f);i(o,u(t)),window.dispatchEvent(new CustomEvent(n,{detail:{key:o,value:t}}))};return P(()=>{let t=t=>{t.storageArea===window[e]&&t.key===o&&p(an(l(t.newValue??void 0)))};window.addEventListener(`storage`,t);let r=e=>{e.detail.key===o&&p(an(e.detail.value))};window.addEventListener(n,t),F(()=>{window.removeEventListener(`storage`,t),window.removeEventListener(n,r)})}),A(()=>{s!==void 0&&f===void 0&&m(an(s))}),P(()=>{let e=d();e!==void 0&&m(e)}),[f===void 0?s:f,m,()=>{a(o),window.dispatchEvent(new CustomEvent(n,{detail:{key:o,value:s}}))}]}}function Ma(e){return ja(`localStorage`,`use-local-storage`)(e)}var Na=1,Pa=.9,Fa=.8,Ia=.17,La=.1,Ra=.999,za=.9999,Ba=.99,Va=/[\\\/_+.#"@\[\(\{&]/,Ha=/[\\\/_+.#"@\[\(\{&]/g,Ua=/[\s-]/,Wa=/[\s-]/g;function Ga(e,t,n,r,i,a,o){if(a===t.length)return i===e.length?Na:Ba;var s=`${i},${a}`;if(o[s]!==void 0)return o[s];for(var c=r.charAt(a),l=n.indexOf(c,i),u=0,d,f,p,m;l>=0;)d=Ga(e,t,n,r,l+1,a+1,o),d>u&&(l===i?d*=Na:Va.test(e.charAt(l-1))?(d*=Fa,p=e.slice(i,l-1).match(Ha),p&&i>0&&(d*=Ra**+p.length)):Ua.test(e.charAt(l-1))?(d*=Pa,m=e.slice(i,l-1).match(Wa),m&&i>0&&(d*=Ra**+m.length)):(d*=Ia,i>0&&(d*=Ra**+(l-i))),e.charAt(l)!==t.charAt(a)&&(d*=za)),(d<La&&n.charAt(l-1)===r.charAt(a+1)||r.charAt(a+1)===r.charAt(a)&&n.charAt(l-1)!==r.charAt(a))&&(f=Ga(e,t,n,r,l+1,a+2,o),f*La>d&&(d=f*La)),d>u&&(u=d),l=n.indexOf(c,l+1);return o[s]=u,u}function Ka(e){return e.toLowerCase().replace(Wa,` `)}function qa(e,t,n){return e=n&&n.length>0?`${e+` `+n.join(` `)}`:e,Ga(e,t,Ka(e),Ka(t),0,0,{})}function Ja(e){let[t,n]=O(e.defaultValue?.()),r=j(()=>e.value?.()!==void 0),i=j(()=>r()?e.value?.():t());return[i,t=>{N(()=>{let a=Mn(t,i());return Object.is(a,i())||(r()||n(a),e.onChange?.(a)),a})}]}function Ya(e){let[t,n]=Ja(e);return[()=>t()??!1,n]}function Xa(e={}){let[t,n]=Ya({value:()=>An(e.open),defaultValue:()=>!!An(e.defaultOpen),onChange:t=>e.onOpenChange?.(t)}),r=()=>{n(!0)},i=()=>{n(!1)};return{isOpen:t,setIsOpen:n,open:r,close:i,toggle:()=>{t()?i():r()}}}function Za(e){let t=t=>{t.key===tr.Escape&&e.onEscapeKeyDown?.(t)};A(()=>{if(An(e.isDisabled))return;let n=e.ownerDocument?.()??$n();n.addEventListener(`keydown`,t),F(()=>{n.removeEventListener(`keydown`,t)})})}var Qa=`data-kb-top-layer`,$a,eo=!1,to=[];function no(e){return to.findIndex(t=>t.node===e)}function ro(e){return to[no(e)]}function io(e){return to[to.length-1].node===e}function ao(){return to.filter(e=>e.isPointerBlocking)}function oo(){return[...ao()].slice(-1)[0]}function so(){return ao().length>0}function co(e){let t=no(oo()?.node);return no(e)<t}function lo(e){to.push(e)}function uo(e){let t=no(e);t<0||to.splice(t,1)}function fo(){for(let{node:e}of to)e.style.pointerEvents=co(e)?`none`:`auto`}function po(e){if(so()&&!eo){let t=$n(e);$a=document.body.style.pointerEvents,t.body.style.pointerEvents=`none`,eo=!0}}function mo(e){if(so())return;let t=$n(e);t.body.style.pointerEvents=$a,t.body.style.length===0&&t.body.removeAttribute(`style`),eo=!1}var ho={layers:to,isTopMostLayer:io,hasPointerBlockingLayer:so,isBelowPointerBlockingLayer:co,addLayer:lo,removeLayer:uo,indexOf:no,find:ro,assignPointerEventToLayers:fo,disableBodyPointerEvents:po,restoreBodyPointerEvents:mo},go=`focusScope.autoFocusOnMount`,_o=`focusScope.autoFocusOnUnmount`,vo={bubbles:!1,cancelable:!0},yo={stack:[],active(){return this.stack[0]},add(e){e!==this.active()&&this.active()?.pause(),this.stack=Wn(this.stack,e),this.stack.unshift(e)},remove(e){this.stack=Wn(this.stack,e),this.active()?.resume()}};function bo(e,t){let[n,r]=O(!1),i={pause(){r(!0)},resume(){r(!1)}},a=null,o=t=>e.onMountAutoFocus?.(t),s=t=>e.onUnmountAutoFocus?.(t),c=()=>$n(t()),l=()=>{let e=c().createElement(`span`);return e.setAttribute(`data-focus-trap`,``),e.tabIndex=0,Object.assign(e.style,Br),e},u=()=>{let e=t();return e?Cr(e,!0).filter(e=>!e.hasAttribute(`data-focus-trap`)):[]},d=()=>{let e=u();return e.length>0?e[0]:null},f=()=>{let e=u();return e.length>0?e[e.length-1]:null},p=()=>{let e=t();if(!e)return!1;let n=Zn(e);return!n||Xn(e,n)?!1:Tr(n)};A(()=>{let e=t();if(!e)return;yo.add(i);let n=Zn(e);if(!Xn(e,n)){let t=new CustomEvent(go,vo);e.addEventListener(go,o),e.dispatchEvent(t),t.defaultPrevented||setTimeout(()=>{mr(d()),Zn(e)===n&&mr(e)},0)}F(()=>{e.removeEventListener(go,o),setTimeout(()=>{let t=new CustomEvent(_o,vo);p()&&t.preventDefault(),e.addEventListener(_o,s),e.dispatchEvent(t),t.defaultPrevented||mr(n??c().body),e.removeEventListener(_o,s),yo.remove(i)},0)})}),A(()=>{let r=t();if(!r||!An(e.trapFocus)||n())return;let i=e=>{let t=e.target;t?.closest(`[data-kb-top-layer]`)||(Xn(r,t)?a=t:mr(a))},o=e=>{let t=e.relatedTarget??Zn(r);t?.closest(`[data-kb-top-layer]`)||Xn(r,t)||mr(a)};c().addEventListener(`focusin`,i),c().addEventListener(`focusout`,o),F(()=>{c().removeEventListener(`focusin`,i),c().removeEventListener(`focusout`,o)})}),A(()=>{let r=t();if(!r||!An(e.trapFocus)||n())return;let i=l();r.insertAdjacentElement(`afterbegin`,i);let a=l();r.insertAdjacentElement(`beforeend`,a);function o(e){let t=d(),n=f();e.relatedTarget===t?mr(n):mr(t)}i.addEventListener(`focusin`,o),a.addEventListener(`focusin`,o);let s=new MutationObserver(e=>{for(let t of e)t.previousSibling===a&&(a.remove(),r.insertAdjacentElement(`beforeend`,a)),t.nextSibling===i&&(i.remove(),r.insertAdjacentElement(`afterbegin`,i))});s.observe(r,{childList:!0,subtree:!1}),F(()=>{i.removeEventListener(`focusin`,o),a.removeEventListener(`focusin`,o),i.remove(),a.remove(),s.disconnect()})})}var xo=`data-live-announcer`;function So(e){A(()=>{An(e.isDisabled)||F(To(An(e.targets),An(e.root)))})}var Co=new WeakMap,wo=[];function To(e,t=document.body){let n=new Set(e),r=new Set,i=e=>{for(let t of e.querySelectorAll(`[${xo}], [${Qa}]`))n.add(t);let t=e=>{if(n.has(e)||e.parentElement&&r.has(e.parentElement)&&e.parentElement.getAttribute(`role`)!==`row`)return NodeFilter.FILTER_REJECT;for(let t of n)if(e.contains(t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),o=t(e);if(o===NodeFilter.FILTER_ACCEPT&&a(e),o!==NodeFilter.FILTER_REJECT){let e=i.nextNode();for(;e!=null;)a(e),e=i.nextNode()}},a=e=>{let t=Co.get(e)??0;e.getAttribute(`aria-hidden`)===`true`&&t===0||(t===0&&e.setAttribute(`aria-hidden`,`true`),r.add(e),Co.set(e,t+1))};wo.length&&wo[wo.length-1].disconnect(),i(t);let o=new MutationObserver(e=>{for(let t of e)if(!(t.type!==`childList`||t.addedNodes.length===0)&&![...n,...r].some(e=>e.contains(t.target))){for(let e of t.removedNodes)e instanceof Element&&(n.delete(e),r.delete(e));for(let e of t.addedNodes)(e instanceof HTMLElement||e instanceof SVGElement)&&(e.dataset.liveAnnouncer===`true`||e.dataset.reactAriaTopLayer===`true`)?n.add(e):e instanceof Element&&i(e)}});o.observe(t,{childList:!0,subtree:!0});let s={observe(){o.observe(t,{childList:!0,subtree:!0})},disconnect(){o.disconnect()}};return wo.push(s),()=>{o.disconnect();for(let e of r){let t=Co.get(e);if(t==null)return;t===1?(e.removeAttribute(`aria-hidden`),Co.delete(e)):Co.set(e,t-1)}s===wo[wo.length-1]?(wo.pop(),wo.length&&wo[wo.length-1].observe()):wo.splice(wo.indexOf(s),1)}}var Eo=`interactOutside.pointerDownOutside`,Do=`interactOutside.focusOutside`;function Oo(e,t){let n,r=Mr,i=()=>$n(t()),a=t=>e.onPointerDownOutside?.(t),o=t=>e.onFocusOutside?.(t),s=t=>e.onInteractOutside?.(t),c=n=>{let r=n.target;return!(r instanceof HTMLElement)||r.closest(`[data-kb-top-layer]`)||!Xn(i(),r)||Xn(t(),r)?!1:!e.shouldExcludeElement?.(r)},l=e=>{function n(){let n=t(),r=e.target;if(!n||!r||!c(e))return;let i=fr([a,s]);r.addEventListener(Eo,i,{once:!0});let o=new CustomEvent(Eo,{bubbles:!1,cancelable:!0,detail:{originalEvent:e,isContextMenu:e.button===2||pr(e)&&e.button===0}});r.dispatchEvent(o)}e.pointerType===`touch`?(i().removeEventListener(`click`,n),r=n,i().addEventListener(`click`,n,{once:!0})):n()},u=e=>{let n=t(),r=e.target;if(!n||!r||!c(e))return;let i=fr([o,s]);r.addEventListener(Do,i,{once:!0});let a=new CustomEvent(Do,{bubbles:!1,cancelable:!0,detail:{originalEvent:e,isContextMenu:!1}});r.dispatchEvent(a)};A(()=>{An(e.isDisabled)||(n=window.setTimeout(()=>{i().addEventListener(`pointerdown`,l,!0)},0),i().addEventListener(`focusin`,u,!0),F(()=>{window.clearTimeout(n),i().removeEventListener(`click`,r),i().removeEventListener(`pointerdown`,l,!0),i().removeEventListener(`focusin`,u,!0)}))})}function ko(e){let[t,n]=O(),r={},i=e(),a=`none`,[o,s]=jo(e()?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return A(te(o,e=>{let t=Ao(r);a=e===`mounted`?t:`none`})),A(te(e,e=>{if(i===e)return;let t=Ao(r);e?s(`MOUNT`):r?.display===`none`?s(`UNMOUNT`):s(i&&a!==t?`ANIMATION_OUT`:`UNMOUNT`),i=e})),A(te(t,e=>{if(e){let t=t=>{let n=Ao(r).includes(t.animationName);t.target===e&&n&&s(`ANIMATION_END`)},n=t=>{t.target===e&&(a=Ao(r))};e.addEventListener(`animationstart`,n),e.addEventListener(`animationcancel`,t),e.addEventListener(`animationend`,t),F(()=>{e.removeEventListener(`animationstart`,n),e.removeEventListener(`animationcancel`,t),e.removeEventListener(`animationend`,t)})}else s(`ANIMATION_END`)})),{isPresent:()=>[`mounted`,`unmountSuspended`].includes(o()),setRef:e=>{e&&(r=getComputedStyle(e)),n(e)}}}function Ao(e){return e?.animationName||`none`}function jo(e,t){let n=(e,n)=>t[e][n]??e,[r,i]=O(e);return[r,e=>{i(t=>n(t,e))}]}function Mo(e){return t=>(e(t),()=>e(void 0))}function No(e){let[t,n]=z(e,[`asChild`,`as`,`children`]);if(!t.asChild)return L(At,R({get component(){return t.as}},n,{get children(){return t.children}}));let r=le(()=>t.children);if(Fo(r()))return L(At,Io(n,r()?.props??{}));if(Kn(r())){let e=r().find(Fo);if(e)return L(At,R(Io(n,e?.props??{}),{children:()=>L(Ue,{get each(){return r()},children:t=>L(B,{when:t===e,fallback:t,get children(){return e.props.children}})})}))}throw Error("[kobalte]: Component is expected to render `asChild` but no children `As` component was found.")}var Po=Symbol(`$$KobalteAsComponent`);function Fo(e){return e?.[Po]===!0}function Io(e,t){return Vn([e,t],{reverseEventHandlers:!0})}var Lo=ce();function Ro(){let e=I(Lo);if(e===void 0)throw Error("[kobalte]: `useDialogContext` must be used within a `Dialog` component");return e}var zo=e=>typeof e==`function`?e():e,Bo=e=>(...t)=>{for(let n of e)n&&n(...t)},Vo=(...e)=>Bo(e),Ho=(...e)=>e.some(e=>!!e()),Uo=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g;function Wo(e){let t={},n;for(;n=Uo.exec(e);)t[n[1]]=n[2];return t}function Go(e,t){return typeof t==`string`&&(t=Wo(t)),{...e,...t}}var Ko=(e,t)=>(e&&(typeof e==`function`?e(t):e[0](e[1],t)),t.defaultPrevented),qo=(e,t)=>{if(e.contains(t))return!0;let n=t;for(;n;){if(n===e)return!0;n=n._$host??n.parentElement}return!1},Jo=(e,t)=>{let n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:0},Yo=new Map,Xo=e=>{A(()=>{let t=zo(e.style)??{},n=zo(e.properties)??[],r={};for(let n in t)r[n]=e.element.style[n];let i=Yo.get(e.key);i?i.activeCount++:Yo.set(e.key,{activeCount:1,originalStyles:r,properties:n.map(e=>e.key)}),Object.assign(e.element.style,e.style);for(let t of n)e.element.style.setProperty(t.key,t.value);F(()=>{let t=Yo.get(e.key);if(t){if(t.activeCount!==1){t.activeCount--;return}Yo.delete(e.key);for(let[n,r]of Object.entries(t.originalStyles))e.element.style[n]=r;for(let n of t.properties)e.element.style.removeProperty(n);e.element.style.length===0&&e.element.removeAttribute(`style`),e.cleanup?.()}})})},Zo=(e,t)=>{switch(t){case`x`:return[e.clientWidth,e.scrollLeft,e.scrollWidth];case`y`:return[e.clientHeight,e.scrollTop,e.scrollHeight]}},Qo=(e,t)=>{let n=getComputedStyle(e),r=t===`x`?n.overflowX:n.overflowY;return r===`auto`||r===`scroll`||e.tagName===`HTML`&&r===`visible`},$o=(e,t,n)=>{let r=t===`x`&&window.getComputedStyle(e).direction===`rtl`?-1:1,i=e,a=0,o=0,s=!1;do{let[e,c,l]=Zo(i,t),u=l-e-r*c;(c!==0||u!==0)&&Qo(i,t)&&(a+=u,o+=c),i===(n??document.documentElement)?s=!0:i=i._$host??i.parentElement}while(i&&!s);return[a,o]},[es,ts]=O([]),ns=e=>es().indexOf(e)===es().length-1,rs=e=>{let t=R({element:null,enabled:!0,hideScrollbar:!0,preventScrollbarShift:!0,preventScrollbarShiftMode:`padding`,restoreScrollPosition:!0,allowPinchZoom:!1},e),n=Ve(),r=[0,0],i=null,a=null;A(()=>{zo(t.enabled)&&(ts(e=>[...e,n]),F(()=>{ts(e=>e.filter(e=>e!==n))}))}),A(()=>{if(!zo(t.enabled)||!zo(t.hideScrollbar))return;let{body:e}=document,n=window.innerWidth-e.offsetWidth;if(zo(t.preventScrollbarShift)){let r={overflow:`hidden`},i=[];n>0&&(zo(t.preventScrollbarShiftMode)===`padding`?r.paddingRight=`calc(${window.getComputedStyle(e).paddingRight} + ${n}px)`:r.marginRight=`calc(${window.getComputedStyle(e).marginRight} + ${n}px)`,i.push({key:`--scrollbar-width`,value:`${n}px`}));let a=window.scrollY,o=window.scrollX;Xo({key:`prevent-scroll`,element:e,style:r,properties:i,cleanup:()=>{zo(t.restoreScrollPosition)&&n>0&&window.scrollTo(o,a)}})}else Xo({key:`prevent-scroll`,element:e,style:{overflow:`hidden`}})}),A(()=>{!ns(n)||!zo(t.enabled)||(document.addEventListener(`wheel`,s,{passive:!1}),document.addEventListener(`touchstart`,o,{passive:!1}),document.addEventListener(`touchmove`,c,{passive:!1}),F(()=>{document.removeEventListener(`wheel`,s),document.removeEventListener(`touchstart`,o),document.removeEventListener(`touchmove`,c)}))});let o=e=>{r=as(e),i=null,a=null},s=e=>{let n=e.target,r=zo(t.element),i=is(e),a=Math.abs(i[0])>Math.abs(i[1])?`x`:`y`,o=os(n,a,a===`x`?i[0]:i[1],r),s;s=r&&qo(r,n)?!o:!0,s&&e.cancelable&&e.preventDefault()},c=e=>{let n=zo(t.element),o=e.target,s;if(e.touches.length===2)s=!zo(t.allowPinchZoom);else{if(i==null||a===null){let t=as(e).map((e,t)=>r[t]-e),n=Math.abs(t[0])>Math.abs(t[1])?`x`:`y`;i=n,a=n===`x`?t[0]:t[1]}if(o.type===`range`)s=!1;else{let e=os(o,i,a,n);s=n&&qo(n,o)?!e:!0}}s&&e.cancelable&&e.preventDefault()}},is=e=>[e.deltaX,e.deltaY],as=e=>e.changedTouches[0]?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0],os=(e,t,n,r)=>{let[i,a]=$o(e,t,r!==null&&qo(r,e)?r:void 0);return!(n>0&&Math.abs(i)<=1||n<0&&Math.abs(a)<1)},ss=rs,cs=ce();function ls(){return I(cs)}function us(e){let t,n=ls(),[r,i]=z(e,[`ref`,`disableOutsidePointerEvents`,`excludedElements`,`onEscapeKeyDown`,`onPointerDownOutside`,`onFocusOutside`,`onInteractOutside`,`onDismiss`,`bypassTopMostLayerCheck`]),a=new Set([]),o=e=>{a.add(e);let t=n?.registerNestedLayer(e);return()=>{a.delete(e),t?.()}};Oo({shouldExcludeElement:e=>t?r.excludedElements?.some(t=>Xn(t(),e))||[...a].some(t=>Xn(t,e)):!1,onPointerDownOutside:e=>{!t||ho.isBelowPointerBlockingLayer(t)||!r.bypassTopMostLayerCheck&&!ho.isTopMostLayer(t)||(r.onPointerDownOutside?.(e),r.onInteractOutside?.(e),e.defaultPrevented||r.onDismiss?.())},onFocusOutside:e=>{r.onFocusOutside?.(e),r.onInteractOutside?.(e),e.defaultPrevented||r.onDismiss?.()}},()=>t),Za({ownerDocument:()=>$n(t),onEscapeKeyDown:e=>{!t||!ho.isTopMostLayer(t)||(r.onEscapeKeyDown?.(e),!e.defaultPrevented&&r.onDismiss&&(e.preventDefault(),r.onDismiss()))}}),P(()=>{if(!t)return;ho.addLayer({node:t,isPointerBlocking:r.disableOutsidePointerEvents,dismiss:r.onDismiss});let e=n?.registerNestedLayer(t);ho.assignPointerEventToLayers(),ho.disableBodyPointerEvents(t),F(()=>{t&&(ho.removeLayer(t),e?.(),ho.assignPointerEventToLayers(),ho.restoreBodyPointerEvents(t))})}),A(te([()=>t,()=>r.disableOutsidePointerEvents],([e,t])=>{if(!e)return;let n=ho.find(e);n&&n.isPointerBlocking!==t&&(n.isPointerBlocking=t,ho.assignPointerEventToLayers()),t&&ho.disableBodyPointerEvents(e),F(()=>{ho.restoreBodyPointerEvents(e)})},{defer:!0}));let s={registerNestedLayer:o};return L(cs.Provider,{value:s,get children(){return L(No,R({as:`div`,ref(e){var n=Hn(e=>t=e,r.ref);typeof n==`function`&&n(e)}},i))}})}function ds(e){let t,n=Ro(),[r,i]=z(Pr({id:n.generateId(`content`)},e),[`ref`,`onOpenAutoFocus`,`onCloseAutoFocus`,`onPointerDownOutside`,`onFocusOutside`,`onInteractOutside`]),a=!1,o=!1,s=e=>{r.onPointerDownOutside?.(e),n.modal()&&e.detail.isContextMenu&&e.preventDefault()},c=e=>{r.onFocusOutside?.(e),n.modal()&&e.preventDefault()},l=e=>{r.onInteractOutside?.(e),!n.modal()&&(e.defaultPrevented||(a=!0,e.detail.originalEvent.type===`pointerdown`&&(o=!0)),Xn(n.triggerRef(),e.target)&&e.preventDefault(),e.detail.originalEvent.type===`focusin`&&o&&e.preventDefault())};return So({isDisabled:()=>!(n.isOpen()&&n.modal()),targets:()=>t?[t]:[]}),ss({element:()=>t??null,enabled:()=>n.isOpen()&&n.preventScroll()}),bo({trapFocus:()=>n.isOpen()&&n.modal(),onMountAutoFocus:r.onOpenAutoFocus,onUnmountAutoFocus:e=>{r.onCloseAutoFocus?.(e),n.modal()?(e.preventDefault(),mr(n.triggerRef())):(e.defaultPrevented||(a||mr(n.triggerRef()),e.preventDefault()),a=!1,o=!1)}},()=>t),A(()=>F(n.registerContentId(i.id))),L(B,{get when(){return n.contentPresence.isPresent()},get children(){return L(us,R({ref(e){var i=Hn(e=>{n.contentPresence.setRef(e),t=e},r.ref);typeof i==`function`&&i(e)},role:`dialog`,tabIndex:-1,get disableOutsidePointerEvents(){return V(()=>!!n.modal())()&&n.isOpen()},get excludedElements(){return[n.triggerRef]},get"aria-labelledby"(){return n.titleId()},get"aria-describedby"(){return n.descriptionId()},get"data-expanded"(){return n.isOpen()?``:void 0},get"data-closed"(){return n.isOpen()?void 0:``},onPointerDownOutside:s,onFocusOutside:c,onInteractOutside:l,get onDismiss(){return n.close}},i))}})}function fs(e){let t=Ro(),[n,r]=z(e,[`ref`,`style`,`onPointerDown`]),i=e=>{dr(e,n.onPointerDown),e.target===e.currentTarget&&e.preventDefault()};return L(B,{get when(){return t.overlayPresence.isPresent()},get children(){return L(No,R({as:`div`,ref(e){var r=Hn(t.overlayPresence.setRef,n.ref);typeof r==`function`&&r(e)},get style(){return{"pointer-events":`auto`,...n.style}},get"data-expanded"(){return t.isOpen()?``:void 0},get"data-closed"(){return t.isOpen()?void 0:``},onPointerDown:i},r))}})}function ps(e){let t=Ro();return L(B,{get when(){return t.contentPresence.isPresent()||t.overlayPresence.isPresent()},get children(){return L(Ot,e)}})}var ms={dismiss:`Dismiss`};function hs(e){let t=Pr({id:`dialog-${Ve()}`,modal:!0,translations:ms},e),[n,r]=O(),[i,a]=O(),[o,s]=O(),[c,l]=O(),u=Xa({open:()=>t.open,defaultOpen:()=>t.defaultOpen,onOpenChange:e=>t.onOpenChange?.(e)}),d=()=>t.forceMount||u.isOpen(),f=ko(d),p=ko(d),m={translations:()=>t.translations??ms,isOpen:u.isOpen,modal:()=>t.modal??!0,preventScroll:()=>t.preventScroll??m.modal(),contentId:n,titleId:i,descriptionId:o,triggerRef:c,overlayPresence:f,contentPresence:p,close:u.close,toggle:u.toggle,setTriggerRef:l,generateId:Yn(()=>t.id),registerContentId:Mo(r),registerTitleId:Mo(a),registerDescriptionId:Mo(s)};return L(Lo.Provider,{value:m,get children(){return t.children}})}function gs(e){return _s(e,new Set),e}function _s(e,t){let n,r;if(typeof e==`object`&&e&&!t.has(e)&&((n=Array.isArray(e))||e[u]||!(r=Object.getPrototypeOf(e))||r===Object.prototype)){t.add(e);for(let r of n?e:Object.values(e))_s(r,t)}}var vs=H(`<div tabindex=-1><label cmdk-label></label><!$><!/>`),ys=H(`<div>`),bs=H(`<div cmdk-group-heading aria-hidden>`),xs=H(`<div><!$><!/><div cmdk-group-items role=group>`),Ss=H(`<input>`),Cs=H(`<div cmdk-list-sizer>`),ws=H(`<div aria-hidden>`),Ts=`[cmdk-group=""]`,Es=`[cmdk-group-heading=""]`,Ds=`[cmdk-item=""]`,Os=`${Ds}:not([aria-disabled="true"])`,ks=`cmdk-item-select`,As=`data-value`,js=(e,t,n)=>qa(e,t,n),Ms=ce(void 0),Ns=()=>I(Ms),Ps=ce(void 0),Fs=()=>I(Ps),Is=ce(void 0),Ls=e=>{let[t,n]=tn({search:``,value:e.value??e.defaultValue??``,filtered:{count:0,items:{},groups:[]},items:[],groups:{},ids:{}});A(()=>{gs(t.ids);let r=!t.search||e.shouldFilter===!1,i=t.items.reduce((e,n)=>(e[n]=r?1:p(t.ids[n].value,t.ids[n].keywords),e),{}),a=Object.keys(t.groups).filter(e=>t.groups[e].some(e=>(i[e]||0)>0)),o=Object.values(i).filter(e=>e>0).length;n(`filtered`,{count:o,items:i,groups:a})});let[r,i]=z(Pr({vimBindings:!0,disablePointerSelection:!1},e),[`label`,`children`,`value`,`onValueChange`,`filter`,`shouldFilter`,`loop`,`disablePointerSelection`,`vimBindings`]),a=Ve(),o=Ve(),s=Ve(),[c,l]=O(null),u=Js();A(()=>{if(r.value!==void 0){let e=r.value.trim();e!=t.value&&n(`value`,e)}}),P(()=>{u(6,h)});let d={state:t,snapshot:()=>gs(t),setState:(r,i,a)=>{if(!Object.is(t[r],i)){if(n(r,i),r===`search`)u(8,m);else if(r===`value`&&(a||u(5,h),e.value!==void 0)){let t=i??``;e.onValueChange?.(t);return}}}},f={value:(e,t,r)=>{n(`ids`,n=>({...n,[e]:{value:t,keywords:r}}))},item:(e,r)=>{c()||console.warn(`Mount Command.Item inside a Command.List component.`),n(t=>({...t,items:Array.from(new Set([...t.items,e])),...r&&{groups:{...t.groups,[r]:[...t.groups[r]||[],e]}}})),u(3,()=>{t.value||m()}),F(()=>{n(t=>({...t,items:t.items.filter(t=>t!==e),...r&&{groups:{...t.groups,[r]:t.groups[r].filter(t=>t!==e)}},ids:Object.fromEntries(Object.entries(t.ids).filter(([t])=>t!==e))})),g()?.getAttribute(`id`)===e&&u(1,()=>m())})},group:e=>{c()||console.warn(`Mount Command.Group inside a Command.List component.`),n(`groups`,t=>({[e]:[],...t})),F(()=>{n(t=>({...t,groups:Object.fromEntries(Object.entries(t.groups).filter(([t])=>t!==e)),ids:Object.fromEntries(Object.entries(t.ids).filter(([t])=>t!==e))}))})},filter:()=>e.shouldFilter!==!1,label:()=>r.label||e[`aria-label`]||``,disablePointerSelection:()=>!!e.disablePointerSelection,listId:a,inputId:s,labelId:o,listInnerRef:c,setListInnerRef:l};function p(e,n){let i=r.filter??js;return e?i(e,t.search,n):0}function m(){let e=_().find(e=>e.getAttribute(`aria-disabled`)!==`true`)?.getAttribute(As)||``;d.setState(`value`,e)}function h(){requestAnimationFrame(()=>{let e=g();e&&(e.parentElement?.firstChild===e&&e.closest(Ts)?.querySelector(Es)?.scrollIntoView({block:`nearest`}),e.scrollIntoView({block:`nearest`}))})}function g(){return c()?.querySelector(`${Ds}[aria-selected="true"]`)}function _(){return Array.from(c()?.querySelectorAll(Os)||[])}function v(e){let t=_()[e];t&&d.setState(`value`,t.getAttribute(As)||``)}function y(t){let n=g(),r=_(),i=r.findIndex(e=>e===n),a=r[i+t];e.loop&&(a=i+t<0?r[r.length-1]:i+t===r.length?r[0]:r[i+t]),a&&d.setState(`value`,a.getAttribute(As)||``)}function b(e){let t=g()?.closest(Ts),n=null;for(;t&&!n;)t=e>0?Gs(t,Ts):Ks(t,Ts),n=t?.querySelector(Os)||null;n?d.setState(`value`,n.getAttribute(As)||``):y(e)}let x=()=>v(_().length-1),S=e=>{e.preventDefault(),e.metaKey?x():e.altKey?b(1):y(1)},C=e=>{e.preventDefault(),e.metaKey?v(0):e.altKey?b(-1):y(-1)};return(()=>{var t=G(vs),n=t.firstChild,a=n.nextSibling,[o,s]=K(a.nextSibling);return ut(t,R(i,{"cmdk-root":``,onKeyDown:e=>{if(i.onKeyDown?.(e),!e.defaultPrevented)switch(e.key){case`n`:case`j`:r.vimBindings&&e.ctrlKey&&S(e);break;case`ArrowDown`:S(e);break;case`p`:case`k`:r.vimBindings&&e.ctrlKey&&C(e);break;case`ArrowUp`:C(e);break;case`Home`:e.preventDefault(),v(0);break;case`End`:e.preventDefault(),x();break;case`Enter`:if(!e.isComposing&&e.keyCode!==229){e.preventDefault();let t=g();if(t){let e=new Event(ks);t.dispatchEvent(e)}}}}}),!1,!0),W(n,()=>r.label),W(t,L(Ps.Provider,{value:d,get children(){return L(Ms.Provider,{value:f,get children(){return e.children}})}}),o,s),k(e=>{var t=f.inputId,r=f.labelId,i=Xs;return t!==e.e&&U(n,`for`,e.e=t),r!==e.t&&U(n,`id`,e.t=r),e.a=ct(n,i,e.a),e},{e:void 0,t:void 0,a:void 0}),q(),t})()},Rs=e=>{let t=Fs(),n=Ve(),[r,i]=O(),a=I(Is),o=Ns(),[s,c]=O(!1);P(()=>{if(!d())return o.item(n,a?.().id)});let[l,u]=O(e.value||``);A(()=>{if(e.value){u(e.value);return}let t=r()?.textContent;if(t){u(t);return}}),A(()=>{o.value(n,l(),e.keywords),r()?.setAttribute(As,l())});let d=()=>e.forceMount??a?.().forceMount,f=qs(e=>l()&&l()==e.value),p=qs(e=>s()?d()||o.filter()===!1?!0:e.search?(e.filtered.items[n]||0)>0:!0:!0);P(()=>{!r()||e.disabled||c(!0)}),A(te(()=>({ref:r()}),({ref:e})=>{e&&(e.addEventListener(ks,m),F(()=>{e.removeEventListener(ks,m)}))}));function m(){h(),e.onSelect?.(l())}function h(){t.setState(`value`,l(),!0)}let[g,_]=z(e,[`disabled`,`onSelect`,`value`,`forceMount`,`keywords`]);return L(B,{get when(){return p()},get children(){var t=G(ys);return dt(e=>i(e),t),ut(t,R(_,{id:n,"cmdk-item":``,role:`option`,get"aria-disabled"(){return!!g.disabled},get"aria-selected"(){return!!f()},get"data-disabled"(){return!!g.disabled},get"data-selected"(){return!!f()},get onPointerMove(){return g.disabled||o.disablePointerSelection()?void 0:h},get onClick(){return g.disabled?void 0:m}}),!1,!0),W(t,()=>e.children),q(),t}})},zs=e=>{let[t,n]=z(e,[`heading`,`value`,`forceMount`]),r=Ve(),[i,a]=O(),[o,s]=O(),c=Ve(),l=Ns(),u=qs(e=>t.forceMount||l.filter()===!1?!0:e.search?e.filtered.groups.includes(r):!0);P(()=>{l.group(r)});let[d,f]=O(e.value||``);A(()=>{if(e.value){f(e.value);return}let t=o()?.textContent;if(t){f(t);return}}),A(()=>{l.value(r,d()),i()?.setAttribute(As,d())});let p=()=>({id:r,forceMount:t.forceMount});return(()=>{var t=G(xs),i=t.firstChild,[o,l]=K(i.nextSibling),d=o.nextSibling,f=Hn(e=>a(e),e.ref);return typeof f==`function`&&dt(f,t),ut(t,R(n,{"cmdk-group":``,id:r,role:`presentation`,get hidden(){return u()?void 0:!0}}),!1,!0),W(t,L(B,{get when(){return e.heading},get children(){var t=G(bs);return dt(e=>s(e),t),U(t,`id`,c),W(t,()=>e.heading),t}}),o,l),W(d,L(Is.Provider,{value:p,get children(){return e.children}})),k(()=>U(d,`aria-labelledby`,e.heading?c:void 0)),q(),t})()},Bs=e=>{let[t,n]=z(e,[`alwaysRender`]),r=qs(e=>!e.search);return L(B,{get when(){return t.alwaysRender||r()},get children(){var e=G(ys);return ut(e,R(n,{"cmdk-separator":``,role:`separator`}),!1,!1),q(),e}})},Vs=e=>{let[t,n]=z(e,[`onValueChange`,`ref`]),r=()=>e.value!=null,i=Fs(),a=qs(e=>e.search),o=qs(e=>e.value),s=Ns(),c=j(()=>(s.listInnerRef()?.querySelector(`${Ds}[${As}="${encodeURIComponent(o())}"]`))?.getAttribute(`id`)||void 0);return A(()=>{e.value!=null&&i.setState(`search`,e.value)}),(()=>{var o=G(Ss),l=t.ref;return typeof l==`function`?dt(l,o):t.ref=o,ut(o,R(n,{"cmdk-input":``,autocomplete:`off`,autocorrect:`off`,spellcheck:!1,"aria-autocomplete":`list`,role:`combobox`,"aria-expanded":!0,get"aria-controls"(){return s.listId},get"aria-labelledby"(){return s.labelId},get"aria-activedescendant"(){return c()},get id(){return s.inputId},type:`text`,get value(){return V(()=>!!r())()?e.value:a()},onInput:e=>{r()||i.setState(`search`,e.target.value),t.onValueChange?.(e.target.value)}}),!1,!1),q(),o})()},Hs=e=>{let[t,n]=z(Pr({label:`Suggestions`},e),[`label`,`children`,`ref`]),r,i,a=Ns();return P(()=>{if(!r||!i)return;let e=i,t=r,n,a=new ResizeObserver(()=>{n=requestAnimationFrame(()=>{let n=e.offsetHeight;t.style.setProperty(`--cmdk-list-height`,n.toFixed(1)+`px`)})});return a.observe(e),()=>{cancelAnimationFrame(n),a.unobserve(e)}}),(()=>{var o=G(ys),s=Hn(e=>r=e,t.ref);return typeof s==`function`&&dt(s,o),ut(o,R(n,{"cmdk-list":``,role:`listbox`,get"aria-label"(){return t.label},get id(){return a.listId}}),!1,!0),W(o,()=>Ys(e,e=>(()=>{var t=G(Cs),n=Hn(e=>i=e,a.setListInnerRef);return typeof n==`function`&&dt(n,t),W(t,e),t})())),q(),o})()},Us=e=>{let[t,n,r]=z(e,[`overlayClassName`,`contentClassName`,`container`],[`open`,`defaultOpen`,`onOpenChange`,`id`,`modal`,`preventScroll`,`forceMount`,`translations`]);return L(hs,R(n,{get children(){return L(ps,{get mount(){return t.container},get children(){return[L(fs,{"cmdk-overlay":``,get class(){return t.overlayClassName}}),L(ds,{get"aria-label"(){return e.label},"cmdk-dialog":``,get class(){return t.contentClassName},get children(){return L(Ls,r)}})]}})}}))},Ws=e=>{let[t,n]=O(!1),r=qs(e=>e.filtered.count===0&&t());return P(()=>{n(!0)}),L(B,{get when(){return r()},get children(){var t=G(ys);return ut(t,R(e,{"cmdk-empty":``,role:`presentation`}),!1,!1),q(),t}})};Object.assign(Ls,{List:Hs,Item:Rs,Input:Vs,Group:zs,Separator:Bs,Dialog:Us,Empty:Ws,Loading:e=>{let[t,n]=z(Pr({label:`Loading...`},e),[`progress`,`children`,`label`]);return(()=>{var r=G(ys);return ut(r,R(n,{"cmdk-loading":``,role:`progressbar`,get"aria-valuenow"(){return t.progress},"aria-valuemin":0,"aria-valuemax":100,get"aria-label"(){return t.label}}),!1,!0),W(r,()=>Ys(e,e=>(()=>{var t=G(ws);return W(t,e),t})())),q(),r})()}});function Gs(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function Ks(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function qs(e){let t=Fs();return()=>e(t.state)}var Js=()=>{let[e,t]=O(0),n=new Map;return A(()=>{e(),queueMicrotask(()=>{n.forEach((e,t)=>{e()}),n=new Map})}),(r,i)=>{n.set(r,i),t(e()+1)}};function Ys(e,t){return t(e.children)}var Xs={position:`absolute`,width:`1px`,height:`1px`,padding:`0`,margin:`-1px`,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,borderWidth:`0`},Zs=`data-kb-top-layer`,Qs,$s=!1,ec=[];function tc(e){return ec.findIndex(t=>t.node===e)}function nc(e){return ec[tc(e)]}function rc(e){return ec[ec.length-1].node===e}function ic(){return ec.filter(e=>e.isPointerBlocking)}function ac(){return[...ic()].slice(-1)[0]}function oc(){return ic().length>0}function sc(e){let t=tc(ac()?.node);return tc(e)<t}function cc(e){ec.push(e)}function lc(e){let t=tc(e);t<0||ec.splice(t,1)}function uc(){for(let{node:e}of ec)e.style.pointerEvents=sc(e)?`none`:`auto`}function dc(e){if(oc()&&!$s){let t=$n(e);Qs=document.body.style.pointerEvents,t.body.style.pointerEvents=`none`,$s=!0}}function fc(e){if(oc())return;let t=$n(e);t.body.style.pointerEvents=Qs,t.body.style.length===0&&t.body.removeAttribute(`style`),$s=!1}var pc={layers:ec,isTopMostLayer:rc,hasPointerBlockingLayer:oc,isBelowPointerBlockingLayer:sc,addLayer:cc,removeLayer:lc,indexOf:tc,find:nc,assignPointerEventToLayers:uc,disableBodyPointerEvents:dc,restoreBodyPointerEvents:fc},mc=`focusScope.autoFocusOnMount`,hc=`focusScope.autoFocusOnUnmount`,gc={bubbles:!1,cancelable:!0},_c={stack:[],active(){return this.stack[0]},add(e){e!==this.active()&&this.active()?.pause(),this.stack=Wn(this.stack,e),this.stack.unshift(e)},remove(e){this.stack=Wn(this.stack,e),this.active()?.resume()}};function vc(e,t){let[n,r]=O(!1),i={pause(){r(!0)},resume(){r(!1)}},a=null,o=t=>e.onMountAutoFocus?.(t),s=t=>e.onUnmountAutoFocus?.(t),c=()=>$n(t()),l=()=>{let e=c().createElement(`span`);return e.setAttribute(`data-focus-trap`,``),e.tabIndex=0,Object.assign(e.style,Br),e},u=()=>{let e=t();return e?Cr(e,!0).filter(e=>!e.hasAttribute(`data-focus-trap`)):[]},d=()=>{let e=u();return e.length>0?e[0]:null},f=()=>{let e=u();return e.length>0?e[e.length-1]:null},p=()=>{let e=t();if(!e)return!1;let n=Zn(e);return!n||Xn(e,n)?!1:Tr(n)};A(()=>{let e=t();if(!e)return;_c.add(i);let n=Zn(e);if(!Xn(e,n)){let t=new CustomEvent(mc,gc);e.addEventListener(mc,o),e.dispatchEvent(t),t.defaultPrevented||setTimeout(()=>{mr(d()),Zn(e)===n&&mr(e)},0)}F(()=>{e.removeEventListener(mc,o),setTimeout(()=>{let t=new CustomEvent(hc,gc);p()&&t.preventDefault(),e.addEventListener(hc,s),e.dispatchEvent(t),t.defaultPrevented||mr(n??c().body),e.removeEventListener(hc,s),_c.remove(i)},0)})}),A(()=>{let r=t();if(!r||!An(e.trapFocus)||n())return;let i=e=>{let t=e.target;t?.closest(`[data-kb-top-layer]`)||(Xn(r,t)?a=t:mr(a))},o=e=>{let t=e.relatedTarget??Zn(r);t?.closest(`[data-kb-top-layer]`)||Xn(r,t)||mr(a)};c().addEventListener(`focusin`,i),c().addEventListener(`focusout`,o),F(()=>{c().removeEventListener(`focusin`,i),c().removeEventListener(`focusout`,o)})}),A(()=>{let r=t();if(!r||!An(e.trapFocus)||n())return;let i=l();r.insertAdjacentElement(`afterbegin`,i);let a=l();r.insertAdjacentElement(`beforeend`,a);function o(e){let t=d(),n=f();e.relatedTarget===t?mr(n):mr(t)}i.addEventListener(`focusin`,o),a.addEventListener(`focusin`,o);let s=new MutationObserver(e=>{for(let t of e)t.previousSibling===a&&(a.remove(),r.insertAdjacentElement(`beforeend`,a)),t.nextSibling===i&&(i.remove(),r.insertAdjacentElement(`afterbegin`,i))});s.observe(r,{childList:!0,subtree:!1}),F(()=>{i.removeEventListener(`focusin`,o),a.removeEventListener(`focusin`,o),i.remove(),a.remove(),s.disconnect()})})}var yc=`data-live-announcer`;function bc(e){A(()=>{An(e.isDisabled)||F(Cc(An(e.targets),An(e.root)))})}var xc=new WeakMap,Sc=[];function Cc(e,t=document.body){let n=new Set(e),r=new Set,i=e=>{for(let t of e.querySelectorAll(`[${yc}], [${Zs}]`))n.add(t);let t=e=>{if(n.has(e)||e.parentElement&&r.has(e.parentElement)&&e.parentElement.getAttribute(`role`)!==`row`)return NodeFilter.FILTER_REJECT;for(let t of n)if(e.contains(t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),o=t(e);if(o===NodeFilter.FILTER_ACCEPT&&a(e),o!==NodeFilter.FILTER_REJECT){let e=i.nextNode();for(;e!=null;)a(e),e=i.nextNode()}},a=e=>{let t=xc.get(e)??0;e.getAttribute(`aria-hidden`)===`true`&&t===0||(t===0&&e.setAttribute(`aria-hidden`,`true`),r.add(e),xc.set(e,t+1))};Sc.length&&Sc[Sc.length-1].disconnect(),i(t);let o=new MutationObserver(e=>{for(let t of e)if(!(t.type!==`childList`||t.addedNodes.length===0)&&![...n,...r].some(e=>e.contains(t.target))){for(let e of t.removedNodes)e instanceof Element&&(n.delete(e),r.delete(e));for(let e of t.addedNodes)(e instanceof HTMLElement||e instanceof SVGElement)&&(e.dataset.liveAnnouncer===`true`||e.dataset.reactAriaTopLayer===`true`)?n.add(e):e instanceof Element&&i(e)}});o.observe(t,{childList:!0,subtree:!0});let s={observe(){o.observe(t,{childList:!0,subtree:!0})},disconnect(){o.disconnect()}};return Sc.push(s),()=>{o.disconnect();for(let e of r){let t=xc.get(e);if(t==null)return;t===1?(e.removeAttribute(`aria-hidden`),xc.delete(e)):xc.set(e,t-1)}s===Sc[Sc.length-1]?(Sc.pop(),Sc.length&&Sc[Sc.length-1].observe()):Sc.splice(Sc.indexOf(s),1)}}var wc=`interactOutside.pointerDownOutside`,Tc=`interactOutside.focusOutside`;function Ec(e,t){let n,r=Mr,i=()=>$n(t()),a=t=>e.onPointerDownOutside?.(t),o=t=>e.onFocusOutside?.(t),s=t=>e.onInteractOutside?.(t),c=n=>{let r=n.target;return!(r instanceof Element)||r.closest(`[data-kb-top-layer]`)||!Xn(i(),r)||Xn(t(),r)?!1:!e.shouldExcludeElement?.(r)},l=e=>{function n(){let n=t(),r=e.target;if(!n||!r||!c(e))return;let i=fr([a,s]);r.addEventListener(wc,i,{once:!0});let o=new CustomEvent(wc,{bubbles:!1,cancelable:!0,detail:{originalEvent:e,isContextMenu:e.button===2||pr(e)&&e.button===0}});r.dispatchEvent(o)}e.pointerType===`touch`?(i().removeEventListener(`click`,n),r=n,i().addEventListener(`click`,n,{once:!0})):n()},u=e=>{let n=t(),r=e.target;if(!n||!r||!c(e))return;let i=fr([o,s]);r.addEventListener(Tc,i,{once:!0});let a=new CustomEvent(Tc,{bubbles:!1,cancelable:!0,detail:{originalEvent:e,isContextMenu:!1}});r.dispatchEvent(a)};A(()=>{An(e.isDisabled)||(n=window.setTimeout(()=>{i().addEventListener(`pointerdown`,l,!0)},0),i().addEventListener(`focusin`,u,!0),F(()=>{window.clearTimeout(n),i().removeEventListener(`click`,r),i().removeEventListener(`pointerdown`,l,!0),i().removeEventListener(`focusin`,u,!0)}))})}function Dc(e){let t=t=>{t.key===tr.Escape&&e.onEscapeKeyDown?.(t)};A(()=>{if(An(e.isDisabled))return;let n=e.ownerDocument?.()??$n();n.addEventListener(`keydown`,t),F(()=>{n.removeEventListener(`keydown`,t)})})}var Oc=ce();function kc(){return I(Oc)}function Ac(e){let t,n=kc(),[r,i]=z(e,[`ref`,`disableOutsidePointerEvents`,`excludedElements`,`onEscapeKeyDown`,`onPointerDownOutside`,`onFocusOutside`,`onInteractOutside`,`onDismiss`,`bypassTopMostLayerCheck`]),a=new Set([]),o=e=>{a.add(e);let t=n?.registerNestedLayer(e);return()=>{a.delete(e),t?.()}};Ec({shouldExcludeElement:e=>t?r.excludedElements?.some(t=>Xn(t(),e))||[...a].some(t=>Xn(t,e)):!1,onPointerDownOutside:e=>{!t||pc.isBelowPointerBlockingLayer(t)||!r.bypassTopMostLayerCheck&&!pc.isTopMostLayer(t)||(r.onPointerDownOutside?.(e),r.onInteractOutside?.(e),e.defaultPrevented||r.onDismiss?.())},onFocusOutside:e=>{r.onFocusOutside?.(e),r.onInteractOutside?.(e),e.defaultPrevented||r.onDismiss?.()}},()=>t),Dc({ownerDocument:()=>$n(t),onEscapeKeyDown:e=>{!t||!pc.isTopMostLayer(t)||(r.onEscapeKeyDown?.(e),!e.defaultPrevented&&r.onDismiss&&(e.preventDefault(),r.onDismiss()))}}),P(()=>{if(!t)return;pc.addLayer({node:t,isPointerBlocking:r.disableOutsidePointerEvents,dismiss:r.onDismiss});let e=n?.registerNestedLayer(t);pc.assignPointerEventToLayers(),pc.disableBodyPointerEvents(t),F(()=>{t&&(pc.removeLayer(t),e?.(),pc.assignPointerEventToLayers(),pc.restoreBodyPointerEvents(t))})}),A(te([()=>t,()=>r.disableOutsidePointerEvents],([e,t])=>{if(!e)return;let n=pc.find(e);n&&n.isPointerBlocking!==t&&(n.isPointerBlocking=t,pc.assignPointerEventToLayers()),t&&pc.disableBodyPointerEvents(e),F(()=>{pc.restoreBodyPointerEvents(e)})},{defer:!0}));let s={registerNestedLayer:o};return L(Oc.Provider,{value:s,get children(){return L(Ur,R({as:`div`,ref(e){var n=Hn(e=>t=e,r.ref);typeof n==`function`&&n(e)}},i))}})}function jc(e){let[t,n]=O(e.defaultValue?.()),r=j(()=>e.value?.()!==void 0),i=j(()=>r()?e.value?.():t());return[i,t=>{N(()=>{let a=Mn(t,i());return Object.is(a,i())||(r()||n(a),e.onChange?.(a)),a})}]}function Mc(e){let[t,n]=jc(e);return[()=>t()??!1,n]}function Nc(e){let[t,n]=jc(e);return[()=>t()??[],n]}function Pc(e={}){let[t,n]=Mc({value:()=>An(e.open),defaultValue:()=>!!An(e.defaultOpen),onChange:t=>e.onOpenChange?.(t)}),r=()=>{n(!0)},i=()=>{n(!1)};return{isOpen:t,setIsOpen:n,open:r,close:i,toggle:()=>{t()?i():r()}}}function Fc(e){return t=>(e(t),()=>e(void 0))}var Ic=e=>{let t=j(()=>{let t=zo(e.element);if(t)return getComputedStyle(t)}),n=()=>t()?.animationName??`none`,[r,i]=O(zo(e.show)?`present`:`hidden`),a=`none`;return A(r=>{let o=zo(e.show);return N(()=>{if(r===o)return o;let e=a,s=n();o?i(`present`):s===`none`||t()?.display===`none`?i(`hidden`):i(r===!0&&e!==s?`hiding`:`hidden`)}),o}),A(()=>{let t=zo(e.element);if(!t)return;let o=e=>{e.target===t&&(a=n())},s=e=>{let a=n().includes(e.animationName);e.target===t&&a&&r()===`hiding`&&i(`hidden`)};t.addEventListener(`animationstart`,o),t.addEventListener(`animationcancel`,s),t.addEventListener(`animationend`,s),F(()=>{t.removeEventListener(`animationstart`,o),t.removeEventListener(`animationcancel`,s),t.removeEventListener(`animationend`,s)})}),{present:()=>r()===`present`||r()===`hiding`,state:r,setState:i}};Gr({},{CloseButton:()=>zc,Content:()=>Bc,Description:()=>Vc,Dialog:()=>Jc,Overlay:()=>Hc,Portal:()=>Uc,Root:()=>Gc,Title:()=>Kc,Trigger:()=>qc,useDialogContext:()=>Rc});var Lc=ce();function Rc(){let e=I(Lc);if(e===void 0)throw Error("[kobalte]: `useDialogContext` must be used within a `Dialog` component");return e}function zc(e){let t=Rc(),[n,r]=z(e,[`aria-label`,`onClick`]),i=e=>{dr(e,n.onClick),t.close()};return L(Jr,R({get"aria-label"(){return n[`aria-label`]||t.translations().dismiss},onClick:i},r))}function Bc(e){let t,n=Rc(),[r,i]=z(Pr({id:n.generateId(`content`)},e),[`ref`,`onOpenAutoFocus`,`onCloseAutoFocus`,`onPointerDownOutside`,`onFocusOutside`,`onInteractOutside`]),a=!1,o=!1,s=e=>{r.onPointerDownOutside?.(e),n.modal()&&e.detail.isContextMenu&&e.preventDefault()},c=e=>{r.onFocusOutside?.(e),n.modal()&&e.preventDefault()},l=e=>{r.onInteractOutside?.(e),!n.modal()&&(e.defaultPrevented||(a=!0,e.detail.originalEvent.type===`pointerdown`&&(o=!0)),Xn(n.triggerRef(),e.target)&&e.preventDefault(),e.detail.originalEvent.type===`focusin`&&o&&e.preventDefault())};return bc({isDisabled:()=>!(n.isOpen()&&n.modal()),targets:()=>t?[t]:[]}),ss({element:()=>t??null,enabled:()=>n.contentPresent()&&n.preventScroll()}),vc({trapFocus:()=>n.isOpen()&&n.modal(),onMountAutoFocus:r.onOpenAutoFocus,onUnmountAutoFocus:e=>{r.onCloseAutoFocus?.(e),n.modal()?(e.preventDefault(),mr(n.triggerRef())):(e.defaultPrevented||(a||mr(n.triggerRef()),e.preventDefault()),a=!1,o=!1)}},()=>t),A(()=>F(n.registerContentId(i.id))),L(B,{get when(){return n.contentPresent()},get children(){return L(Ac,R({ref(e){var i=Hn(e=>{n.setContentRef(e),t=e},r.ref);typeof i==`function`&&i(e)},role:`dialog`,tabIndex:-1,get disableOutsidePointerEvents(){return V(()=>!!n.modal())()&&n.isOpen()},get excludedElements(){return[n.triggerRef]},get"aria-labelledby"(){return n.titleId()},get"aria-describedby"(){return n.descriptionId()},get"data-expanded"(){return n.isOpen()?``:void 0},get"data-closed"(){return n.isOpen()?void 0:``},onPointerDownOutside:s,onFocusOutside:c,onInteractOutside:l,get onDismiss(){return n.close}},i))}})}function Vc(e){let t=Rc(),[n,r]=z(Pr({id:t.generateId(`description`)},e),[`id`]);return A(()=>F(t.registerDescriptionId(n.id))),L(Ur,R({as:`p`,get id(){return n.id}},r))}function Hc(e){let t=Rc(),[n,r]=z(e,[`ref`,`style`,`onPointerDown`]),i=e=>{dr(e,n.onPointerDown),e.target===e.currentTarget&&e.preventDefault()};return L(B,{get when(){return t.overlayPresent()},get children(){return L(Ur,R({as:`div`,ref(e){var r=Hn(t.setOverlayRef,n.ref);typeof r==`function`&&r(e)},get style(){return zn({"pointer-events":`auto`},n.style)},get"data-expanded"(){return t.isOpen()?``:void 0},get"data-closed"(){return t.isOpen()?void 0:``},onPointerDown:i},r))}})}function Uc(e){let t=Rc();return L(B,{get when(){return t.contentPresent()||t.overlayPresent()},get children(){return L(Ot,e)}})}var Wc={dismiss:`Dismiss`};function Gc(e){let t=Pr({id:`dialog-${Ve()}`,modal:!0,translations:Wc},e),[n,r]=O(),[i,a]=O(),[o,s]=O(),[c,l]=O(),[u,d]=O(),[f,p]=O(),m=Pc({open:()=>t.open,defaultOpen:()=>t.defaultOpen,onOpenChange:e=>t.onOpenChange?.(e)}),h=()=>t.forceMount||m.isOpen(),{present:g}=Ic({show:h,element:()=>c()??null}),{present:_}=Ic({show:h,element:()=>u()??null}),v={translations:()=>t.translations??Wc,isOpen:m.isOpen,modal:()=>t.modal??!0,preventScroll:()=>t.preventScroll??v.modal(),contentId:n,titleId:i,descriptionId:o,triggerRef:f,overlayRef:c,setOverlayRef:l,contentRef:u,setContentRef:d,overlayPresent:g,contentPresent:_,close:m.close,toggle:m.toggle,setTriggerRef:p,generateId:Yn(()=>t.id),registerContentId:Fc(r),registerTitleId:Fc(a),registerDescriptionId:Fc(s)};return L(Lc.Provider,{value:v,get children(){return t.children}})}function Kc(e){let t=Rc(),[n,r]=z(Pr({id:t.generateId(`title`)},e),[`id`]);return A(()=>F(t.registerTitleId(n.id))),L(Ur,R({as:`h2`,get id(){return n.id}},r))}function qc(e){let t=Rc(),[n,r]=z(e,[`ref`,`onClick`]),i=e=>{dr(e,n.onClick),t.toggle()};return L(Jr,R({ref(e){var r=Hn(t.setTriggerRef,n.ref);typeof r==`function`&&r(e)},"aria-haspopup":`dialog`,get"aria-expanded"(){return t.isOpen()},get"aria-controls"(){return V(()=>!!t.isOpen())()?t.contentId():void 0},get"data-expanded"(){return t.isOpen()?``:void 0},get"data-closed"(){return t.isOpen()?void 0:``},onClick:i},r))}var Jc=Object.assign(Gc,{CloseButton:zc,Content:Bc,Description:Vc,Overlay:Hc,Portal:Uc,Title:Kc,Trigger:qc}),Yc=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Xc=(e,t)=>({classGroupId:e,validator:t}),Zc=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Qc=`-`,$c=[],el=`arbitrary..`,tl=e=>{let t=il(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return rl(e);let n=e.split(Qc);return nl(n,n[0]===``&&n.length>1?1:0,t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?Yc(i,t):t:i||$c}return n[e]||$c}}},nl=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=nl(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(Qc):e.slice(t).join(Qc),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},rl=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?el+r:void 0})(),il=e=>{let{theme:t,classGroups:n}=e;return al(n,t)},al=(e,t)=>{let n=Zc();for(let r in e){let i=e[r];ol(i,n,r,t)}return n},ol=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];sl(i,t,n,r)}},sl=(e,t,n,r)=>{if(typeof e==`string`){cl(e,t,n);return}if(typeof e==`function`){ll(e,t,n,r);return}ul(e,t,n,r)},cl=(e,t,n)=>{let r=e===``?t:dl(t,e);r.classGroupId=n},ll=(e,t,n,r)=>{if(fl(e)){ol(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Xc(n,e))},ul=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];ol(o,dl(t,a),n,r)}},dl=(e,t)=>{let n=e,r=t.split(Qc),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=Zc(),n.nextPart.set(t,i)),n=i}return n},fl=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,pl=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},ml=`!`,hl=`:`,gl=[],_l=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),vl=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===hl){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(ml)?(c=s.slice(0,-1),l=!0):s.startsWith(ml)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return _l(t,l,c,u)};if(t){let e=t+hl,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):_l(gl,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},yl=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},bl=e=>({cache:pl(e.cacheSize),parseClassName:vl(e),sortModifiers:yl(e),...tl(e)}),xl=/\s+/,Sl=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a}=t,o=[],s=e.trim().split(xl),c=``;for(let e=s.length-1;e>=0;--e){let t=s[e],{isExternal:l,modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(t);if(l){c=t+(c.length>0?` `+c:c);continue}let m=!!p,h=r(m?f.substring(0,p):f);if(!h){if(!m){c=t+(c.length>0?` `+c:c);continue}if(h=r(f),!h){c=t+(c.length>0?` `+c:c);continue}m=!1}let g=u.length===0?``:u.length===1?u[0]:a(u).join(`:`),_=d?g+ml:g,v=_+h;if(o.indexOf(v)>-1)continue;o.push(v);let y=i(h,m);for(let e=0;e<y.length;++e){let t=y[e];o.push(_+t)}c=t+(c.length>0?` `+c:c)}return c},Cl=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=wl(n))&&(i&&(i+=` `),i+=r);return i},wl=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=wl(e[r]))&&(n&&(n+=` `),n+=t);return n},Tl=(e,...t)=>{let n,r,i,a,o=o=>(n=bl(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=Sl(e,n);return i(e,a),a};return a=o,(...e)=>a(Cl(...e))},El=[],Dl=e=>{let t=t=>t[e]||El;return t.isThemeGetter=!0,t},Ol=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,kl=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Al=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,jl=/^(\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$/,Nl=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Pl=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Fl=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Il=e=>Al.test(e),Z=e=>!!e&&!Number.isNaN(Number(e)),Ll=e=>!!e&&Number.isInteger(Number(e)),Rl=e=>e.endsWith(`%`)&&Z(e.slice(0,-1)),zl=e=>jl.test(e),Bl=()=>!0,Vl=e=>Ml.test(e)&&!Nl.test(e),Hl=()=>!1,Ul=e=>Pl.test(e),Wl=e=>Fl.test(e),Gl=e=>!Q(e)&&!$(e),Kl=e=>su(e,du,Hl),Q=e=>Ol.test(e),ql=e=>su(e,fu,Vl),Jl=e=>su(e,pu,Z),Yl=e=>su(e,hu,Bl),Xl=e=>su(e,mu,Hl),Zl=e=>su(e,lu,Hl),Ql=e=>su(e,uu,Wl),$l=e=>su(e,gu,Ul),$=e=>kl.test(e),eu=e=>cu(e,fu),tu=e=>cu(e,mu),nu=e=>cu(e,lu),ru=e=>cu(e,du),iu=e=>cu(e,uu),au=e=>cu(e,gu,!0),ou=e=>cu(e,hu,!0),su=(e,t,n)=>{let r=Ol.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},cu=(e,t,n=!1)=>{let r=kl.exec(e);return r?r[1]?t(r[1]):n:!1},lu=e=>e===`position`||e===`percentage`,uu=e=>e===`image`||e===`url`,du=e=>e===`length`||e===`size`||e===`bg-size`,fu=e=>e===`length`,pu=e=>e===`number`,mu=e=>e===`family-name`,hu=e=>e===`number`||e===`weight`,gu=e=>e===`shadow`,_u=Tl(()=>{let e=Dl(`color`),t=Dl(`font`),n=Dl(`text`),r=Dl(`font-weight`),i=Dl(`tracking`),a=Dl(`leading`),o=Dl(`breakpoint`),s=Dl(`container`),c=Dl(`spacing`),l=Dl(`radius`),u=Dl(`shadow`),d=Dl(`inset-shadow`),f=Dl(`text-shadow`),p=Dl(`drop-shadow`),m=Dl(`blur`),h=Dl(`perspective`),g=Dl(`aspect`),_=Dl(`ease`),v=Dl(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),$,Q],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[$,Q,c],T=()=>[Il,`full`,`auto`,...w()],E=()=>[Ll,`none`,`subgrid`,$,Q],D=()=>[`auto`,{span:[`full`,Ll,$,Q]},Ll,$,Q],O=()=>[Ll,`auto`,$,Q],ee=()=>[`auto`,`min`,`max`,`fr`,$,Q],k=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],A=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],j=()=>[`auto`,...w()],M=()=>[Il,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],N=()=>[Il,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],te=()=>[Il,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],P=()=>[e,$,Q],F=()=>[...b(),nu,Zl,{position:[$,Q]}],ne=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],re=()=>[`auto`,`cover`,`contain`,ru,Kl,{size:[$,Q]}],ie=()=>[Rl,eu,ql],ae=()=>[``,`none`,`full`,l,$,Q],oe=()=>[``,Z,eu,ql],se=()=>[`solid`,`dashed`,`dotted`,`double`],ce=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],I=()=>[Z,Rl,nu,Zl],le=()=>[``,`none`,m,$,Q],ue=()=>[`none`,Z,$,Q],de=()=>[`none`,Z,$,Q],fe=()=>[Z,$,Q],pe=()=>[Il,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[zl],breakpoint:[zl],color:[Bl],container:[zl],"drop-shadow":[zl],ease:[`in`,`out`,`in-out`],font:[Gl],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[zl],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[zl],shadow:[zl],spacing:[`px`,Z],text:[zl],"text-shadow":[zl],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,Il,Q,$,g]}],container:[`container`],columns:[{columns:[Z,Q,$,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"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:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[Ll,`auto`,$,Q]}],basis:[{basis:[Il,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[Z,Il,`auto`,`initial`,`none`,Q]}],grow:[{grow:[``,Z,$,Q]}],shrink:[{shrink:[``,Z,$,Q]}],order:[{order:[Ll,`first`,`last`,`none`,$,Q]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":ee()}],"auto-rows":[{"auto-rows":ee()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...k(),`normal`]}],"justify-items":[{"justify-items":[...A(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...A()]}],"align-content":[{content:[`normal`,...k()]}],"align-items":[{items:[...A(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...A(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":k()}],"place-items":[{"place-items":[...A(),`baseline`]}],"place-self":[{"place-self":[`auto`,...A()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:j()}],mx:[{mx:j()}],my:[{my:j()}],ms:[{ms:j()}],me:[{me:j()}],mbs:[{mbs:j()}],mbe:[{mbe:j()}],mt:[{mt:j()}],mr:[{mr:j()}],mb:[{mb:j()}],ml:[{ml:j()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:M()}],"inline-size":[{inline:[`auto`,...N()]}],"min-inline-size":[{"min-inline":[`auto`,...N()]}],"max-inline-size":[{"max-inline":[`none`,...N()]}],"block-size":[{block:[`auto`,...te()]}],"min-block-size":[{"min-block":[`auto`,...te()]}],"max-block-size":[{"max-block":[`none`,...te()]}],w:[{w:[s,`screen`,...M()]}],"min-w":[{"min-w":[s,`screen`,`none`,...M()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...M()]}],h:[{h:[`screen`,`lh`,...M()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...M()]}],"max-h":[{"max-h":[`screen`,`lh`,...M()]}],"font-size":[{text:[`base`,n,eu,ql]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,ou,Yl]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,Rl,Q]}],"font-family":[{font:[tu,Xl,t]}],"font-features":[{"font-features":[Q]}],"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:[i,$,Q]}],"line-clamp":[{"line-clamp":[Z,`none`,$,Jl]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,$,Q]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,$,Q]}],"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:[...se(),`wavy`]}],"text-decoration-thickness":[{decoration:[Z,`from-font`,`auto`,$,ql]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[Z,`auto`,$,Q]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,$,Q]}],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`,$,Q]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:F()}],"bg-repeat":[{bg:ne()}],"bg-size":[{bg:re()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},Ll,$,Q],radial:[``,$,Q],conic:[Ll,$,Q]},iu,Ql]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:ie()}],"gradient-via-pos":[{via:ie()}],"gradient-to-pos":[{to:ie()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:ae()}],"rounded-s":[{"rounded-s":ae()}],"rounded-e":[{"rounded-e":ae()}],"rounded-t":[{"rounded-t":ae()}],"rounded-r":[{"rounded-r":ae()}],"rounded-b":[{"rounded-b":ae()}],"rounded-l":[{"rounded-l":ae()}],"rounded-ss":[{"rounded-ss":ae()}],"rounded-se":[{"rounded-se":ae()}],"rounded-ee":[{"rounded-ee":ae()}],"rounded-es":[{"rounded-es":ae()}],"rounded-tl":[{"rounded-tl":ae()}],"rounded-tr":[{"rounded-tr":ae()}],"rounded-br":[{"rounded-br":ae()}],"rounded-bl":[{"rounded-bl":ae()}],"border-w":[{border:oe()}],"border-w-x":[{"border-x":oe()}],"border-w-y":[{"border-y":oe()}],"border-w-s":[{"border-s":oe()}],"border-w-e":[{"border-e":oe()}],"border-w-bs":[{"border-bs":oe()}],"border-w-be":[{"border-be":oe()}],"border-w-t":[{"border-t":oe()}],"border-w-r":[{"border-r":oe()}],"border-w-b":[{"border-b":oe()}],"border-w-l":[{"border-l":oe()}],"divide-x":[{"divide-x":oe()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":oe()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...se(),`hidden`,`none`]}],"divide-style":[{divide:[...se(),`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:[...se(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[Z,$,Q]}],"outline-w":[{outline:[``,Z,eu,ql]}],"outline-color":[{outline:P()}],shadow:[{shadow:[``,`none`,u,au,$l]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":[`none`,d,au,$l]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:oe()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[Z,ql]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":oe()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":[`none`,f,au,$l]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[Z,$,Q]}],"mix-blend":[{"mix-blend":[...ce(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":ce()}],"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":[Z]}],"mask-image-linear-from-pos":[{"mask-linear-from":I()}],"mask-image-linear-to-pos":[{"mask-linear-to":I()}],"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":I()}],"mask-image-t-to-pos":[{"mask-t-to":I()}],"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":I()}],"mask-image-r-to-pos":[{"mask-r-to":I()}],"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":I()}],"mask-image-b-to-pos":[{"mask-b-to":I()}],"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":I()}],"mask-image-l-to-pos":[{"mask-l-to":I()}],"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":I()}],"mask-image-x-to-pos":[{"mask-x-to":I()}],"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":I()}],"mask-image-y-to-pos":[{"mask-y-to":I()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[$,Q]}],"mask-image-radial-from-pos":[{"mask-radial-from":I()}],"mask-image-radial-to-pos":[{"mask-radial-to":I()}],"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":b()}],"mask-image-conic-pos":[{"mask-conic":[Z]}],"mask-image-conic-from-pos":[{"mask-conic-from":I()}],"mask-image-conic-to-pos":[{"mask-conic-to":I()}],"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:F()}],"mask-repeat":[{mask:ne()}],"mask-size":[{mask:re()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,$,Q]}],filter:[{filter:[``,`none`,$,Q]}],blur:[{blur:le()}],brightness:[{brightness:[Z,$,Q]}],contrast:[{contrast:[Z,$,Q]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,au,$l]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:[``,Z,$,Q]}],"hue-rotate":[{"hue-rotate":[Z,$,Q]}],invert:[{invert:[``,Z,$,Q]}],saturate:[{saturate:[Z,$,Q]}],sepia:[{sepia:[``,Z,$,Q]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,$,Q]}],"backdrop-blur":[{"backdrop-blur":le()}],"backdrop-brightness":[{"backdrop-brightness":[Z,$,Q]}],"backdrop-contrast":[{"backdrop-contrast":[Z,$,Q]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,Z,$,Q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Z,$,Q]}],"backdrop-invert":[{"backdrop-invert":[``,Z,$,Q]}],"backdrop-opacity":[{"backdrop-opacity":[Z,$,Q]}],"backdrop-saturate":[{"backdrop-saturate":[Z,$,Q]}],"backdrop-sepia":[{"backdrop-sepia":[``,Z,$,Q]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,$,Q]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[Z,`initial`,$,Q]}],ease:[{ease:[`linear`,`initial`,_,$,Q]}],delay:[{delay:[Z,$,Q]}],animate:[{animate:[`none`,v,$,Q]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,$,Q]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:ue()}],"rotate-x":[{"rotate-x":ue()}],"rotate-y":[{"rotate-y":ue()}],"rotate-z":[{"rotate-z":ue()}],scale:[{scale:de()}],"scale-x":[{"scale-x":de()}],"scale-y":[{"scale-y":de()}],"scale-z":[{"scale-z":de()}],"scale-3d":[`scale-3d`],skew:[{skew:fe()}],"skew-x":[{"skew-x":fe()}],"skew-y":[{"skew-y":fe()}],transform:[{transform:[$,Q,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:pe()}],"translate-x":[{"translate-x":pe()}],"translate-y":[{"translate-y":pe()}],"translate-z":[{"translate-z":pe()}],"translate-none":[`translate-none`],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`,$,Q]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"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`,$,Q]}],fill:[{fill:[`none`,...P()]}],"stroke-w":[{stroke:[Z,eu,ql,Jl]}],stroke:[{stroke:[`none`,...P()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{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`]},orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}}),vu=(...e)=>_u(Zr(...e)),yu=H(`<div class="fixed inset-0 z-50 flex items-start justify-center sm:items-center">`),bu=H(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round class=size-4><path d="M18 6l-12 12"></path><path d="M6 6l12 12">`),xu=H(`<span class=sr-only>Close`);H(`<div>`);var Su=Gc,Cu=e=>{let[,t]=z(e,[`children`]);return L(Uc,R(t,{get children(){var t=G(yu);return W(t,()=>e.children),t}}))},wu=e=>{let[,t]=z(e,[`class`]);return L(Hc,R({get class(){return vu(`data-[closed]:fade-out-0 data-[expanded]:fade-in-0 fixed inset-0 z-50 bg-background/80 data-[closed]:animate-fadeOut data-[expanded]:animate-fadeIn`,e.class)}},t))},Tu=e=>{let[,t]=z(e,[`class`,`children`]),n=R({showClose:!0},e);return L(Cu,{get children(){return[L(wu,{}),L(Bc,R({get class(){return vu(`data-[closed]:fade-out-0 data-[expanded]:fade-in-0 data-[closed]:zoom-out-95 data-[expanded]:zoom-in-95 data-[closed]:slide-out-to-left-1/2 data-[closed]:slide-out-to-top-[48%] data-[expanded]:slide-in-from-left-1/2 data-[expanded]:slide-in-from-top-[48%] fixed top-1/2 left-1/2 z-50 grid max-h-screen w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 overflow-y-auto border bg-background p-6 shadow-lg duration-200 data-[closed]:animate-flyUpAndScaleExit data-[expanded]:animate-flyUpAndScale sm:rounded-lg`,e.class)}},t,{get children(){return[V(()=>e.children),L(B,{get when(){return n.showClose},get children(){return L(zc,{class:`absolute top-4 right-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[expanded]:bg-accent data-[expanded]:text-muted-foreground`,get children(){return[G(bu),G(xu)]}})}})]}}))]}})},Eu=H(`<div class="flex items-center border-b px-3"cmdk-intent-wrapper><svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round class="mr-2 size-4 shrink-0 opacity-50"><path d="M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"></path><path d="M21 21l-6 -6"></path></svg><!$><!/>`);H(`<span>`);var Du=e=>{let[t,n]=z(e,[`class`]);return L(Ls,R({get class(){return vu(`flex size-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground blur-none`,t.class)}},n))},Ou=e=>{let[t,n]=z(e,[`children`]);return L(Su,R(n,{get children(){return L(Tu,{class:`overflow-hidden p-0`,get children(){return L(Du,{class:`[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:size-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:size-5`,get children(){return t.children}})}})}}))},ku=e=>{let[t,n]=z(e,[`class`]);return(()=>{var e=G(Eu),r=e.firstChild.nextSibling,[i,a]=K(r.nextSibling);return W(e,L(Vs,R({get class(){return vu(`flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50`,t.class)}},n)),i,a),e})()},Au=e=>{let[t,n]=z(e,[`class`]);return L(Hs,R({get class(){return vu(`max-h-[300px] overflow-y-auto overflow-x-hidden`,t.class)}},n))},ju=e=>{let[t,n]=z(e,[`class`]);return L(Ws,R({get class(){return vu(`py-6 text-center text-sm`,t.class)}},n))},Mu=e=>{let[t,n]=z(e,[`class`]);return L(zs,R({get class(){return vu(`overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:text-xs`,t.class)}},n))},Nu=e=>{let[t,n]=z(e,[`class`]);return L(Bs,R({get class(){return vu(`h-px bg-border`,t.class)}},n))},Pu=e=>{let[t,n]=z(e,[`class`]);return L(Rs,R({"cmdk-item":``,get class(){return vu(`relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50`,t.class)}},n))};function Fu(e){let t=ce(null);function n(){let n=I(t);if(!n)throw Error(`${e} must be used within its provider`);return n}return[n,t.Provider]}var Iu=`
|
|
555
|
+
(function() {
|
|
556
|
+
const themes = ["light", "dark"]
|
|
557
|
+
const themeKey = "app-theme"
|
|
558
|
+
let savedTheme = null
|
|
559
|
+
try {
|
|
560
|
+
savedTheme = JSON.parse(localStorage.getItem(themeKey) || 'null')
|
|
561
|
+
} catch (e) {
|
|
562
|
+
savedTheme = null
|
|
563
|
+
}
|
|
564
|
+
const theme = savedTheme && themes.includes(savedTheme) ? savedTheme :
|
|
565
|
+
window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"
|
|
566
|
+
|
|
567
|
+
themes.forEach(function(t) {
|
|
568
|
+
if (t === theme) {
|
|
569
|
+
document.documentElement.classList.add(t)
|
|
570
|
+
} else {
|
|
571
|
+
document.documentElement.classList.remove(t)
|
|
572
|
+
}
|
|
573
|
+
})
|
|
574
|
+
})()
|
|
575
|
+
`,Lu=[`light`,`dark`,`system`],[Ru,zu]=Fu(`ThemeContext`),Bu=e=>{let[t,n]=Aa({key:`app-theme`,defaultValue:`system`}),[r,i]=O(`light`);return A(()=>{let e=t();e===`system`&&(e=window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`),Lu.forEach(t=>{t!==`system`&&(e===t?document.documentElement.classList.add(t):document.documentElement.classList.remove(t))}),i(e)}),L(zu,{value:{theme:t,setTheme:n,inferredTheme:r},get children(){return e.children}})},[Vu,Hu]=Fu(`VimModeContext`),Uu=e=>{let[t,n]=Aa({key:`vimModeEnabled`,defaultValue:!1});function r(){n(!t())}return L(Hu,{value:{vimModeEnabled:t,setVimModeEnabled:n,toggleVimMode:r},get children(){return e.children}})},Wu=H(`<div>`),Gu=H(`<div class="flex items-center gap-2"><!$><!/><span>Light`),Ku=H(`<span class="text-muted-foreground text-xs">Active`),qu=H(`<div class="flex items-center gap-2"><!$><!/><span>Dark`),Ju=H(`<div class="flex items-center gap-2"><!$><!/><span>System`),Yu=H(`<div class="flex items-center gap-2"><div></div><span>Vim Mode`),Xu=H(`<span class="text-muted-foreground text-xs">Enabled`),Zu=H(`<div class="flex items-center gap-2">`),[Qu,$u]=O(!1);function ed(){$u(!0)}function td(e){let{theme:t}=Ru(),n=()=>t()===e.theme;return(()=>{var e=G(Wu);return k(()=>at(e,`size-4 rounded-full border ${n()?`border-primary bg-primary`:`border-muted-foreground/30 bg-muted`}`)),e})()}function nd(){let{theme:e,setTheme:t}=Ru(),{vimModeEnabled:n,toggleVimMode:r}=Vu();return wa([[`meta+k`,()=>$u(!Qu())]],[]),P(()=>{let e=e=>{(e.metaKey||e.ctrlKey)&&e.key===`k`&&(e.preventDefault(),e.stopPropagation(),$u(e=>!e))};window.addEventListener(`keydown`,e,!0),F(()=>{window.removeEventListener(`keydown`,e,!0)})}),L(Ou,{get open(){return Qu()},onOpenChange:$u,get children(){return[L(ku,{placeholder:`Type a command or search...`}),L(Au,{get children(){return[L(ju,{children:`No results found.`}),L(Mu,{heading:`Theme`,get children(){return[L(Pu,{onSelect:()=>{t(`light`)},class:`flex items-center justify-between`,get children(){return[(()=>{var e=G(Gu),t=e.firstChild,[n,r]=K(t.nextSibling);return n.nextSibling,W(e,L(td,{theme:`light`}),n,r),e})(),L(B,{get when(){return e()===`light`},get children(){return G(Ku)}})]}}),L(Pu,{onSelect:()=>{t(`dark`)},class:`flex items-center justify-between`,get children(){return[(()=>{var e=G(qu),t=e.firstChild,[n,r]=K(t.nextSibling);return n.nextSibling,W(e,L(td,{theme:`dark`}),n,r),e})(),L(B,{get when(){return e()===`dark`},get children(){return G(Ku)}})]}}),L(Pu,{onSelect:()=>{t(`system`)},class:`flex items-center justify-between`,get children(){return[(()=>{var e=G(Ju),t=e.firstChild,[n,r]=K(t.nextSibling);return n.nextSibling,W(e,L(td,{theme:`system`}),n,r),e})(),L(B,{get when(){return e()===`system`},get children(){return G(Ku)}})]}})]}}),L(Nu,{}),L(Mu,{heading:`Editor`,get children(){return L(Pu,{onSelect:()=>{r()},class:`flex items-center justify-between`,get children(){return[(()=>{var e=G(Yu),t=e.firstChild;return k(()=>at(t,`size-4 rounded-sm border ${n()?`border-primary bg-primary`:`border-muted-foreground/30 bg-muted`}`)),e})(),(()=>{var e=G(Zu);return W(e,L(B,{get when(){return n()},get children(){return G(Xu)}})),e})()]}})}})]}})]}})}var rd=`sidebar-collapsed`,id=ce();function ad(){let e=I(id);if(!e)throw Error(`useSidebar must be used within SidebarProvider`);return e}function od(e){let[t,n]=Aa({key:rd,defaultValue:!1});return L(id.Provider,{value:{isCollapsed:()=>t(),toggle:()=>n(!t()),collapse:()=>n(!0),expand:()=>n(!1)},get children(){return e.children}})}var sd=`bottom`,cd=`right`,ld=`left`,ud=`auto`,dd=[`top`,sd,cd,ld],fd=`start`,pd=`clippingParents`,md=`viewport`,hd=`popper`,gd=`reference`,_d=dd.reduce(function(e,t){return e.concat([t+`-`+fd,t+`-end`])},[]),vd=[].concat(dd,[ud]).reduce(function(e,t){return e.concat([t,t+`-`+fd,t+`-end`])},[]),yd=[`beforeRead`,`read`,`afterRead`,`beforeMain`,`main`,`afterMain`,`beforeWrite`,`write`,`afterWrite`];function bd(e){return e?(e.nodeName||``).toLowerCase():null}function xd(e){if(e==null)return window;if(e.toString()!==`[object Window]`){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Sd(e){return e instanceof xd(e).Element||e instanceof Element}function Cd(e){return e instanceof xd(e).HTMLElement||e instanceof HTMLElement}function wd(e){return typeof ShadowRoot>`u`?!1:e instanceof xd(e).ShadowRoot||e instanceof ShadowRoot}function Td(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];!Cd(i)||!bd(i)||(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];t===!1?i.removeAttribute(e):i.setAttribute(e,t===!0?``:t)}))})}function Ed(e){var t=e.state,n={popper:{position:t.options.strategy,left:`0`,top:`0`,margin:`0`},arrow:{position:`absolute`},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]=``,e},{});!Cd(r)||!bd(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}}var Dd={name:`applyStyles`,enabled:!0,phase:`write`,fn:Td,effect:Ed,requires:[`computeStyles`]};function Od(e){return e.split(`-`)[0]}var kd=Math.max,Ad=Math.min,jd=Math.round;function Md(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+`/`+e.version}).join(` `):navigator.userAgent}function Nd(){return!/^((?!chrome|android).)*safari/i.test(Md())}function Pd(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&Cd(e)&&(i=e.offsetWidth>0&&jd(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&jd(r.height)/e.offsetHeight||1);var o=(Sd(e)?xd(e):window).visualViewport,s=!Nd()&&n,c=(r.left+(s&&o?o.offsetLeft:0))/i,l=(r.top+(s&&o?o.offsetTop:0))/a,u=r.width/i,d=r.height/a;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c,x:c,y:l}}function Fd(e){var t=Pd(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Id(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&wd(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ld(e){return xd(e).getComputedStyle(e)}function Rd(e){return[`table`,`td`,`th`].indexOf(bd(e))>=0}function zd(e){return((Sd(e)?e.ownerDocument:e.document)||window.document).documentElement}function Bd(e){return bd(e)===`html`?e:e.assignedSlot||e.parentNode||(wd(e)?e.host:null)||zd(e)}function Vd(e){return!Cd(e)||Ld(e).position===`fixed`?null:e.offsetParent}function Hd(e){var t=/firefox/i.test(Md());if(/Trident/i.test(Md())&&Cd(e)&&Ld(e).position===`fixed`)return null;var n=Bd(e);for(wd(n)&&(n=n.host);Cd(n)&&[`html`,`body`].indexOf(bd(n))<0;){var r=Ld(n);if(r.transform!==`none`||r.perspective!==`none`||r.contain===`paint`||[`transform`,`perspective`].indexOf(r.willChange)!==-1||t&&r.willChange===`filter`||t&&r.filter&&r.filter!==`none`)return n;n=n.parentNode}return null}function Ud(e){for(var t=xd(e),n=Vd(e);n&&Rd(n)&&Ld(n).position===`static`;)n=Vd(n);return n&&(bd(n)===`html`||bd(n)===`body`&&Ld(n).position===`static`)?t:n||Hd(e)||t}function Wd(e){return[`top`,`bottom`].indexOf(e)>=0?`x`:`y`}function Gd(e,t,n){return kd(e,Ad(t,n))}function Kd(e,t,n){var r=Gd(e,t,n);return r>n?n:r}function qd(){return{top:0,right:0,bottom:0,left:0}}function Jd(e){return Object.assign({},qd(),e)}function Yd(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var Xd=function(e,t){return e=typeof e==`function`?e(Object.assign({},t.rects,{placement:t.placement})):e,Jd(typeof e==`number`?Yd(e,dd):e)};function Zd(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=Od(n.placement),c=Wd(s),l=[`left`,`right`].indexOf(s)>=0?`height`:`width`;if(!(!a||!o)){var u=Xd(i.padding,n),d=Fd(a),f=c===`y`?`top`:ld,p=c===`y`?sd:cd,m=n.rects.reference[l]+n.rects.reference[c]-o[c]-n.rects.popper[l],h=o[c]-n.rects.reference[c],g=Ud(a),_=g?c===`y`?g.clientHeight||0:g.clientWidth||0:0,v=m/2-h/2,y=u[f],b=_-d[l]-u[p],x=_/2-d[l]/2+v,S=Gd(y,x,b),C=c;n.modifiersData[r]=(t={},t[C]=S,t.centerOffset=S-x,t)}}function Qd(e){var t=e.state,n=e.options.element,r=n===void 0?`[data-popper-arrow]`:n;r!=null&&(typeof r==`string`&&(r=t.elements.popper.querySelector(r),!r)||Id(t.elements.popper,r)&&(t.elements.arrow=r))}var $d={name:`arrow`,enabled:!0,phase:`main`,fn:Zd,effect:Qd,requires:[`popperOffsets`],requiresIfExists:[`preventOverflow`]};function ef(e){return e.split(`-`)[1]}var tf={top:`auto`,right:`auto`,bottom:`auto`,left:`auto`};function nf(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:jd(n*i)/i||0,y:jd(r*i)/i||0}}function rf(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=o.x,p=f===void 0?0:f,m=o.y,h=m===void 0?0:m,g=typeof u==`function`?u({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var _=o.hasOwnProperty(`x`),v=o.hasOwnProperty(`y`),y=ld,b=`top`,x=window;if(l){var S=Ud(n),C=`clientHeight`,w=`clientWidth`;if(S===xd(n)&&(S=zd(n),Ld(S).position!==`static`&&s===`absolute`&&(C=`scrollHeight`,w=`scrollWidth`)),S=S,i===`top`||(i===`left`||i===`right`)&&a===`end`){b=sd;var T=d&&S===x&&x.visualViewport?x.visualViewport.height:S[C];h-=T-r.height,h*=c?1:-1}if(i===`left`||(i===`top`||i===`bottom`)&&a===`end`){y=cd;var E=d&&S===x&&x.visualViewport?x.visualViewport.width:S[w];p-=E-r.width,p*=c?1:-1}}var D=Object.assign({position:s},l&&tf),O=u===!0?nf({x:p,y:h},xd(n)):{x:p,y:h};if(p=O.x,h=O.y,c){var ee;return Object.assign({},D,(ee={},ee[b]=v?`0`:``,ee[y]=_?`0`:``,ee.transform=(x.devicePixelRatio||1)<=1?`translate(`+p+`px, `+h+`px)`:`translate3d(`+p+`px, `+h+`px, 0)`,ee))}return Object.assign({},D,(t={},t[b]=v?h+`px`:``,t[y]=_?p+`px`:``,t.transform=``,t))}function af(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,o=a===void 0?!0:a,s=n.roundOffsets,c=s===void 0?!0:s,l={placement:Od(t.placement),variation:ef(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy===`fixed`};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,rf(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,rf(Object.assign({},l,{offsets:t.modifiersData.arrow,position:`absolute`,adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var of={name:`computeStyles`,enabled:!0,phase:`beforeWrite`,fn:af,data:{}},sf={passive:!0};function cf(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0?!0:i,o=r.resize,s=o===void 0?!0:o,c=xd(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(e){e.addEventListener(`scroll`,n.update,sf)}),s&&c.addEventListener(`resize`,n.update,sf),function(){a&&l.forEach(function(e){e.removeEventListener(`scroll`,n.update,sf)}),s&&c.removeEventListener(`resize`,n.update,sf)}}var lf={name:`eventListeners`,enabled:!0,phase:`write`,fn:function(){},effect:cf,data:{}},uf={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function df(e){return e.replace(/left|right|bottom|top/g,function(e){return uf[e]})}var ff={start:`end`,end:`start`};function pf(e){return e.replace(/start|end/g,function(e){return ff[e]})}function mf(e){var t=xd(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function hf(e){return Pd(zd(e)).left+mf(e).scrollLeft}function gf(e,t){var n=xd(e),r=zd(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;var l=Nd();(l||!l&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s+hf(e),y:c}}function _f(e){var t=zd(e),n=mf(e),r=e.ownerDocument?.body,i=kd(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=kd(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-n.scrollLeft+hf(e),s=-n.scrollTop;return Ld(r||t).direction===`rtl`&&(o+=kd(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:o,y:s}}function vf(e){var t=Ld(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function yf(e){return[`html`,`body`,`#document`].indexOf(bd(e))>=0?e.ownerDocument.body:Cd(e)&&vf(e)?e:yf(Bd(e))}function bf(e,t){t===void 0&&(t=[]);var n=yf(e),r=n===e.ownerDocument?.body,i=xd(n),a=r?[i].concat(i.visualViewport||[],vf(n)?n:[]):n,o=t.concat(a);return r?o:o.concat(bf(Bd(a)))}function xf(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Sf(e,t){var n=Pd(e,!1,t===`fixed`);return n.top+=e.clientTop,n.left+=e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Cf(e,t,n){return t===`viewport`?xf(gf(e,n)):Sd(t)?Sf(t,n):xf(_f(zd(e)))}function wf(e){var t=bf(Bd(e)),n=[`absolute`,`fixed`].indexOf(Ld(e).position)>=0&&Cd(e)?Ud(e):e;return Sd(n)?t.filter(function(e){return Sd(e)&&Id(e,n)&&bd(e)!==`body`}):[]}function Tf(e,t,n,r){var i=t===`clippingParents`?wf(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(t,n){var i=Cf(e,n,r);return t.top=kd(i.top,t.top),t.right=Ad(i.right,t.right),t.bottom=Ad(i.bottom,t.bottom),t.left=kd(i.left,t.left),t},Cf(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Ef(e){var t=e.reference,n=e.element,r=e.placement,i=r?Od(r):null,a=r?ef(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(i){case`top`:c={x:o,y:t.y-n.height};break;case sd:c={x:o,y:t.y+t.height};break;case cd:c={x:t.x+t.width,y:s};break;case ld:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?Wd(i):null;if(l!=null){var u=l===`y`?`height`:`width`;switch(a){case fd:c[l]=c[l]-(t[u]/2-n[u]/2);break;case`end`:c[l]=c[l]+(t[u]/2-n[u]/2);break;default:}}return c}function Df(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,s=n.boundary,c=s===void 0?pd:s,l=n.rootBoundary,u=l===void 0?md:l,d=n.elementContext,f=d===void 0?hd:d,p=n.altBoundary,m=p===void 0?!1:p,h=n.padding,g=h===void 0?0:h,_=Jd(typeof g==`number`?Yd(g,dd):g),v=f===`popper`?gd:hd,y=e.rects.popper,b=e.elements[m?v:f],x=Tf(Sd(b)?b:b.contextElement||zd(e.elements.popper),c,u,o),S=Pd(e.elements.reference),C=Ef({reference:S,element:y,strategy:`absolute`,placement:i}),w=xf(Object.assign({},y,C)),T=f===`popper`?w:S,E={top:x.top-T.top+_.top,bottom:T.bottom-x.bottom+_.bottom,left:x.left-T.left+_.left,right:T.right-x.right+_.right},D=e.modifiersData.offset;if(f===`popper`&&D){var O=D[i];Object.keys(E).forEach(function(e){var t=[`right`,`bottom`].indexOf(e)>=0?1:-1,n=[`top`,`bottom`].indexOf(e)>=0?`y`:`x`;E[e]+=O[n]*t})}return E}function Of(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?vd:c,u=ef(r),d=u?s?_d:_d.filter(function(e){return ef(e)===u}):dd,f=d.filter(function(e){return l.indexOf(e)>=0});f.length===0&&(f=d);var p=f.reduce(function(t,n){return t[n]=Df(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[Od(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}function kf(e){if(Od(e)===`auto`)return[];var t=df(e);return[pf(e),t,pf(t)]}function Af(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!0:o,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0?!0:p,h=n.allowedAutoPlacements,g=t.options.placement,_=Od(g)===g,v=c||(_||!m?[df(g)]:kf(g)),y=[g].concat(v).reduce(function(e,n){return e.concat(Od(n)===`auto`?Of(t,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:h}):n)},[]),b=t.rects.reference,x=t.rects.popper,S=new Map,C=!0,w=y[0],T=0;T<y.length;T++){var E=y[T],D=Od(E),O=ef(E)===fd,ee=[`top`,sd].indexOf(D)>=0,k=ee?`width`:`height`,A=Df(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),j=ee?O?cd:ld:O?sd:`top`;b[k]>x[k]&&(j=df(j));var M=df(j),N=[];if(a&&N.push(A[D]<=0),s&&N.push(A[j]<=0,A[M]<=0),N.every(function(e){return e})){w=E,C=!1;break}S.set(E,N)}if(C)for(var te=m?3:1,P=function(e){var t=y.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return w=t,`break`},F=te;F>0&&P(F)!==`break`;F--);t.placement!==w&&(t.modifiersData[r]._skip=!0,t.placement=w,t.reset=!0)}}var jf={name:`flip`,enabled:!0,phase:`main`,fn:Af,requiresIfExists:[`offset`],data:{_skip:!1}};function Mf(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Nf(e){return[`top`,cd,sd,ld].some(function(t){return e[t]>=0})}function Pf(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=Df(t,{elementContext:`reference`}),s=Df(t,{altBoundary:!0}),c=Mf(o,r),l=Mf(s,i,a),u=Nf(c),d=Nf(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var Ff={name:`hide`,enabled:!0,phase:`main`,requiresIfExists:[`preventOverflow`],fn:Pf};function If(e,t,n){var r=Od(e),i=[`left`,`top`].indexOf(r)>=0?-1:1,a=typeof n==`function`?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o||=0,s=(s||0)*i,[`left`,`right`].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function Lf(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=vd.reduce(function(e,n){return e[n]=If(n,t.rects,a),e},{}),s=o[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=o}var Rf={name:`offset`,enabled:!0,phase:`main`,requires:[`popperOffsets`],fn:Lf};function zf(e){var t=e.state,n=e.name;t.modifiersData[n]=Ef({reference:t.rects.reference,element:t.rects.popper,strategy:`absolute`,placement:t.placement})}var Bf={name:`popperOffsets`,enabled:!0,phase:`read`,fn:zf,data:{}};function Vf(e){return e===`x`?`y`:`x`}function Hf(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!1:o,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,m=n.tetherOffset,h=m===void 0?0:m,g=Df(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),_=Od(t.placement),v=ef(t.placement),y=!v,b=Wd(_),x=Vf(b),S=t.modifiersData.popperOffsets,C=t.rects.reference,w=t.rects.popper,T=typeof h==`function`?h(Object.assign({},t.rects,{placement:t.placement})):h,E=typeof T==`number`?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(S){if(a){var ee=b===`y`?`top`:ld,k=b===`y`?sd:cd,A=b===`y`?`height`:`width`,j=S[b],M=j+g[ee],N=j-g[k],te=p?-w[A]/2:0,P=v===`start`?C[A]:w[A],F=v===`start`?-w[A]:-C[A],ne=t.elements.arrow,re=p&&ne?Fd(ne):{width:0,height:0},ie=t.modifiersData[`arrow#persistent`]?t.modifiersData[`arrow#persistent`].padding:qd(),ae=ie[ee],oe=ie[k],se=Gd(0,C[A],re[A]),ce=y?C[A]/2-te-se-ae-E.mainAxis:P-se-ae-E.mainAxis,I=y?-C[A]/2+te+se+oe+E.mainAxis:F+se+oe+E.mainAxis,le=t.elements.arrow&&Ud(t.elements.arrow),ue=le?b===`y`?le.clientTop||0:le.clientLeft||0:0,de=D?.[b]??0,fe=j+ce-de-ue,pe=j+I-de,me=Gd(p?Ad(M,fe):M,j,p?kd(N,pe):N);S[b]=me,O[b]=me-j}if(s){var he=b===`x`?`top`:ld,ge=b===`x`?sd:cd,_e=S[x],ve=x===`y`?`height`:`width`,ye=_e+g[he],be=_e-g[ge],xe=[`top`,ld].indexOf(_)!==-1,Se=D?.[x]??0,Ce=xe?ye:_e-C[ve]-w[ve]-Se+E.altAxis,we=xe?_e+C[ve]+w[ve]-Se-E.altAxis:be,Te=p&&xe?Kd(Ce,_e,we):Gd(p?Ce:ye,_e,p?we:be);S[x]=Te,O[x]=Te-_e}t.modifiersData[r]=O}}var Uf={name:`preventOverflow`,enabled:!0,phase:`main`,fn:Hf,requiresIfExists:[`offset`]};function Wf(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Gf(e){return e===xd(e)||!Cd(e)?mf(e):Wf(e)}function Kf(e){var t=e.getBoundingClientRect(),n=jd(t.width)/e.offsetWidth||1,r=jd(t.height)/e.offsetHeight||1;return n!==1||r!==1}function qf(e,t,n){n===void 0&&(n=!1);var r=Cd(t),i=Cd(t)&&Kf(t),a=zd(t),o=Pd(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((bd(t)!==`body`||vf(a))&&(s=Gf(t)),Cd(t)?(c=Pd(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=hf(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function Jf(e){var t=new Map,n=new Set,r=[];e.forEach(function(e){t.set(e.name,e)});function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){n.has(e.name)||i(e)}),r}function Yf(e){var t=Jf(e);return yd.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function Xf(e){var t;return function(){return t||=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})}),t}}function Zf(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}var Qf={placement:`bottom`,modifiers:[],strategy:`absolute`};function $f(){return![...arguments].some(function(e){return!(e&&typeof e.getBoundingClientRect==`function`)})}function ep(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?Qf:i;return function(e,t,n){n===void 0&&(n=a);var i={placement:`bottom`,orderedModifiers:[],options:Object.assign({},Qf,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],s=!1,c={state:i,setOptions:function(n){var o=typeof n==`function`?n(i.options):n;u(),i.options=Object.assign({},a,i.options,o),i.scrollParents={reference:Sd(e)?bf(e):e.contextElement?bf(e.contextElement):[],popper:bf(t)};var s=Yf(Zf([].concat(r,i.options.modifiers)));return i.orderedModifiers=s.filter(function(e){return e.enabled}),l(),c.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if($f(t,n)){i.rects={reference:qf(t,Ud(n),i.options.strategy===`fixed`),popper:Fd(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<i.orderedModifiers.length;r++){if(i.reset===!0){i.reset=!1,r=-1;continue}var a=i.orderedModifiers[r],o=a.fn,l=a.options,u=l===void 0?{}:l,d=a.name;typeof o==`function`&&(i=o({state:i,options:u,name:d,instance:c})||i)}}}},update:Xf(function(){return new Promise(function(e){c.forceUpdate(),e(i)})}),destroy:function(){u(),s=!0}};if(!$f(e,t))return c;c.setOptions(n).then(function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)});function l(){i.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=n===void 0?{}:n,a=e.effect;if(typeof a==`function`){var s=a({state:i,name:t,instance:c,options:r});o.push(s||function(){})}})}function u(){o.forEach(function(e){return e()}),o=[]}return c}}var tp=ep({defaultModifiers:[lf,Bf,of,Dd,Rf,jf,Uf,$d,Ff]}),np=`tippy-box`,rp=`tippy-content`,ip=`tippy-backdrop`,ap=`tippy-arrow`,op=`tippy-svg-arrow`,sp={passive:!0,capture:!0},cp=function(){return document.body};function lp(e,t,n){return Array.isArray(e)?e[t]??(Array.isArray(n)?n[t]:n):e}function up(e,t){var n={}.toString.call(e);return n.indexOf(`[object`)===0&&n.indexOf(t+`]`)>-1}function dp(e,t){return typeof e==`function`?e.apply(void 0,t):e}function fp(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function pp(e){return e.split(/\s+/).filter(Boolean)}function mp(e){return[].concat(e)}function hp(e,t){e.indexOf(t)===-1&&e.push(t)}function gp(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function _p(e){return e.split(`-`)[0]}function vp(e){return[].slice.call(e)}function yp(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function bp(){return document.createElement(`div`)}function xp(e){return[`Element`,`Fragment`].some(function(t){return up(e,t)})}function Sp(e){return up(e,`NodeList`)}function Cp(e){return up(e,`MouseEvent`)}function wp(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function Tp(e){return xp(e)?[e]:Sp(e)?vp(e):Array.isArray(e)?e:vp(document.querySelectorAll(e))}function Ep(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+`ms`)})}function Dp(e,t){e.forEach(function(e){e&&e.setAttribute(`data-state`,t)})}function Op(e){var t,n=mp(e)[0];return n!=null&&(t=n.ownerDocument)!=null&&t.body?n.ownerDocument:document}function kp(e,t){var n=t.clientX,r=t.clientY;return e.every(function(e){var t=e.popperRect,i=e.popperState,a=e.props.interactiveBorder,o=_p(i.placement),s=i.modifiersData.offset;if(!s)return!0;var c=o===`bottom`?s.top.y:0,l=o===`top`?s.bottom.y:0,u=o===`right`?s.left.x:0,d=o===`left`?s.right.x:0,f=t.top-r+c>a,p=r-t.bottom-l>a,m=t.left-n+u>a,h=n-t.right-d>a;return f||p||m||h})}function Ap(e,t,n){var r=t+`EventListener`;[`transitionend`,`webkitTransitionEnd`].forEach(function(t){e[r](t,n)})}function jp(e,t){for(var n=t;n;){if(e.contains(n))return!0;n=n.getRootNode==null?void 0:n.getRootNode()?.host}return!1}var Mp={isTouch:!1},Np=0;function Pp(){Mp.isTouch||(Mp.isTouch=!0,window.performance&&document.addEventListener(`mousemove`,Fp))}function Fp(){var e=performance.now();e-Np<20&&(Mp.isTouch=!1,document.removeEventListener(`mousemove`,Fp)),Np=e}function Ip(){var e=document.activeElement;if(wp(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function Lp(){document.addEventListener(`touchstart`,Pp,sp),window.addEventListener(`blur`,Ip)}var Rp=typeof window<`u`&&typeof document<`u`?!!window.msCrypto:!1,zp=Object.assign({appendTo:cp,aria:{content:`auto`,expanded:`auto`},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:``,offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:`top`,plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:`mouseenter focus`,triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:`fade`,arrow:!0,content:``,inertia:!1,maxWidth:350,role:`tooltip`,theme:``,zIndex:9999}),Bp=Object.keys(zp),Vp=function(e){Object.keys(e).forEach(function(t){zp[t]=e[t]})};function Hp(e){var t=(e.plugins||[]).reduce(function(t,n){var r=n.name,i=n.defaultValue;return r&&(t[r]=e[r]===void 0?zp[r]??i:e[r]),t},{});return Object.assign({},e,t)}function Up(e,t){return(t?Object.keys(Hp(Object.assign({},zp,{plugins:t}))):Bp).reduce(function(t,n){var r=(e.getAttribute(`data-tippy-`+n)||``).trim();if(!r)return t;if(n===`content`)t[n]=r;else try{t[n]=JSON.parse(r)}catch{t[n]=r}return t},{})}function Wp(e,t){var n=Object.assign({},t,{content:dp(t.content,[e])},t.ignoreAttributes?{}:Up(e,t.plugins));return n.aria=Object.assign({},zp.aria,n.aria),n.aria={expanded:n.aria.expanded===`auto`?t.interactive:n.aria.expanded,content:n.aria.content===`auto`?t.interactive?null:`describedby`:n.aria.content},n}var Gp=function(){return`innerHTML`};function Kp(e,t){e[Gp()]=t}function qp(e){var t=bp();return e===!0?t.className=ap:(t.className=op,xp(e)?t.appendChild(e):Kp(t,e)),t}function Jp(e,t){xp(t.content)?(Kp(e,``),e.appendChild(t.content)):typeof t.content!=`function`&&(t.allowHTML?Kp(e,t.content):e.textContent=t.content)}function Yp(e){var t=e.firstElementChild,n=vp(t.children);return{box:t,content:n.find(function(e){return e.classList.contains(rp)}),arrow:n.find(function(e){return e.classList.contains(ap)||e.classList.contains(op)}),backdrop:n.find(function(e){return e.classList.contains(ip)})}}function Xp(e){var t=bp(),n=bp();n.className=np,n.setAttribute(`data-state`,`hidden`),n.setAttribute(`tabindex`,`-1`);var r=bp();r.className=rp,r.setAttribute(`data-state`,`hidden`),Jp(r,e.props),t.appendChild(n),n.appendChild(r),i(e.props,e.props);function i(n,r){var i=Yp(t),a=i.box,o=i.content,s=i.arrow;r.theme?a.setAttribute(`data-theme`,r.theme):a.removeAttribute(`data-theme`),typeof r.animation==`string`?a.setAttribute(`data-animation`,r.animation):a.removeAttribute(`data-animation`),r.inertia?a.setAttribute(`data-inertia`,``):a.removeAttribute(`data-inertia`),a.style.maxWidth=typeof r.maxWidth==`number`?r.maxWidth+`px`:r.maxWidth,r.role?a.setAttribute(`role`,r.role):a.removeAttribute(`role`),(n.content!==r.content||n.allowHTML!==r.allowHTML)&&Jp(o,e.props),r.arrow?s?n.arrow!==r.arrow&&(a.removeChild(s),a.appendChild(qp(r.arrow))):a.appendChild(qp(r.arrow)):s&&a.removeChild(s)}return{popper:t,onUpdate:i}}Xp.$$tippy=!0;var Zp=1,Qp=[],$p=[];function em(e,t){var n=Wp(e,Object.assign({},zp,Hp(yp(t)))),r,i,a,o=!1,s=!1,c=!1,l=!1,u,d,f,p=[],m=fp(fe,n.interactiveDebounce),h,g=Zp++,_=null,v=gp(n.plugins),y={id:g,reference:e,popper:bp(),popperInstance:_,props:n,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:v,clearDelayTimeouts:we,setProps:Te,setContent:Ee,show:De,hide:Oe,hideWithInteractivity:ke,enable:Se,disable:Ce,unmount:Ae,destroy:je};if(!n.render)return y;var b=n.render(y),x=b.popper,S=b.onUpdate;x.setAttribute(`data-tippy-root`,``),x.id=`tippy-`+y.id,y.popper=x,e._tippy=y,x._tippy=y;var C=v.map(function(e){return e.fn(y)}),w=e.hasAttribute(`aria-expanded`);return le(),te(),j(),M(`onCreate`,[y]),n.showOnCreate&&be(),x.addEventListener(`mouseenter`,function(){y.props.interactive&&y.state.isVisible&&y.clearDelayTimeouts()}),x.addEventListener(`mouseleave`,function(){y.props.interactive&&y.props.trigger.indexOf(`mouseenter`)>=0&&ee().addEventListener(`mousemove`,m)}),y;function T(){var e=y.props.touch;return Array.isArray(e)?e:[e,0]}function E(){return T()[0]===`hold`}function D(){var e;return!!((e=y.props.render)!=null&&e.$$tippy)}function O(){return h||e}function ee(){var e=O().parentNode;return e?Op(e):document}function k(){return Yp(x)}function A(e){return y.state.isMounted&&!y.state.isVisible||Mp.isTouch||u&&u.type===`focus`?0:lp(y.props.delay,e?0:1,zp.delay)}function j(e){e===void 0&&(e=!1),x.style.pointerEvents=y.props.interactive&&!e?``:`none`,x.style.zIndex=``+y.props.zIndex}function M(e,t,n){if(n===void 0&&(n=!0),C.forEach(function(n){n[e]&&n[e].apply(n,t)}),n){var r;(r=y.props)[e].apply(r,t)}}function N(){var t=y.props.aria;if(t.content){var n=`aria-`+t.content,r=x.id;mp(y.props.triggerTarget||e).forEach(function(e){var t=e.getAttribute(n);if(y.state.isVisible)e.setAttribute(n,t?t+` `+r:r);else{var i=t&&t.replace(r,``).trim();i?e.setAttribute(n,i):e.removeAttribute(n)}})}}function te(){w||!y.props.aria.expanded||mp(y.props.triggerTarget||e).forEach(function(e){y.props.interactive?e.setAttribute(`aria-expanded`,y.state.isVisible&&e===O()?`true`:`false`):e.removeAttribute(`aria-expanded`)})}function P(){ee().removeEventListener(`mousemove`,m),Qp=Qp.filter(function(e){return e!==m})}function F(t){if(!(Mp.isTouch&&(c||t.type===`mousedown`))){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!(y.props.interactive&&jp(x,n))){if(mp(y.props.triggerTarget||e).some(function(e){return jp(e,n)})){if(Mp.isTouch||y.state.isVisible&&y.props.trigger.indexOf(`click`)>=0)return}else M(`onClickOutside`,[y,t]);y.props.hideOnClick===!0&&(y.clearDelayTimeouts(),y.hide(),s=!0,setTimeout(function(){s=!1}),y.state.isMounted||ae())}}}function ne(){c=!0}function re(){c=!1}function ie(){var e=ee();e.addEventListener(`mousedown`,F,!0),e.addEventListener(`touchend`,F,sp),e.addEventListener(`touchstart`,re,sp),e.addEventListener(`touchmove`,ne,sp)}function ae(){var e=ee();e.removeEventListener(`mousedown`,F,!0),e.removeEventListener(`touchend`,F,sp),e.removeEventListener(`touchstart`,re,sp),e.removeEventListener(`touchmove`,ne,sp)}function oe(e,t){ce(e,function(){!y.state.isVisible&&x.parentNode&&x.parentNode.contains(x)&&t()})}function se(e,t){ce(e,t)}function ce(e,t){var n=k().box;function r(e){e.target===n&&(Ap(n,`remove`,r),t())}if(e===0)return t();Ap(n,`remove`,d),Ap(n,`add`,r),d=r}function I(t,n,r){r===void 0&&(r=!1),mp(y.props.triggerTarget||e).forEach(function(e){e.addEventListener(t,n,r),p.push({node:e,eventType:t,handler:n,options:r})})}function le(){E()&&(I(`touchstart`,de,{passive:!0}),I(`touchend`,pe,{passive:!0})),pp(y.props.trigger).forEach(function(e){if(e!==`manual`)switch(I(e,de),e){case`mouseenter`:I(`mouseleave`,pe);break;case`focus`:I(Rp?`focusout`:`blur`,me);break;case`focusin`:I(`focusout`,me);break}})}function ue(){p.forEach(function(e){var t=e.node,n=e.eventType,r=e.handler,i=e.options;t.removeEventListener(n,r,i)}),p=[]}function de(e){var t=!1;if(!(!y.state.isEnabled||he(e)||s)){var n=u?.type===`focus`;u=e,h=e.currentTarget,te(),!y.state.isVisible&&Cp(e)&&Qp.forEach(function(t){return t(e)}),e.type===`click`&&(y.props.trigger.indexOf(`mouseenter`)<0||o)&&y.props.hideOnClick!==!1&&y.state.isVisible?t=!0:be(e),e.type===`click`&&(o=!t),t&&!n&&xe(e)}}function fe(e){var t=e.target,r=O().contains(t)||x.contains(t);e.type===`mousemove`&&r||kp(ye().concat(x).map(function(e){var t=e._tippy.popperInstance?.state;return t?{popperRect:e.getBoundingClientRect(),popperState:t,props:n}:null}).filter(Boolean),e)&&(P(),xe(e))}function pe(e){if(!(he(e)||y.props.trigger.indexOf(`click`)>=0&&o)){if(y.props.interactive){y.hideWithInteractivity(e);return}xe(e)}}function me(e){y.props.trigger.indexOf(`focusin`)<0&&e.target!==O()||y.props.interactive&&e.relatedTarget&&x.contains(e.relatedTarget)||xe(e)}function he(e){return Mp.isTouch?E()!==e.type.indexOf(`touch`)>=0:!1}function ge(){_e();var t=y.props,n=t.popperOptions,r=t.placement,i=t.offset,a=t.getReferenceClientRect,o=t.moveTransition,s=D()?Yp(x).arrow:null,c=a?{getBoundingClientRect:a,contextElement:a.contextElement||O()}:e,l=[{name:`offset`,options:{offset:i}},{name:`preventOverflow`,options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:`flip`,options:{padding:5}},{name:`computeStyles`,options:{adaptive:!o}},{name:`$$tippy`,enabled:!0,phase:`beforeWrite`,requires:[`computeStyles`],fn:function(e){var t=e.state;if(D()){var n=k().box;[`placement`,`reference-hidden`,`escaped`].forEach(function(e){e===`placement`?n.setAttribute(`data-placement`,t.placement):t.attributes.popper[`data-popper-`+e]?n.setAttribute(`data-`+e,``):n.removeAttribute(`data-`+e)}),t.attributes.popper={}}}}];D()&&s&&l.push({name:`arrow`,options:{element:s,padding:3}}),l.push.apply(l,n?.modifiers||[]),y.popperInstance=tp(c,x,Object.assign({},n,{placement:r,onFirstUpdate:f,modifiers:l}))}function _e(){y.popperInstance&&=(y.popperInstance.destroy(),null)}function ve(){var e=y.props.appendTo,t,n=O();t=y.props.interactive&&e===cp||e===`parent`?n.parentNode:dp(e,[n]),t.contains(x)||t.appendChild(x),y.state.isMounted=!0,ge()}function ye(){return vp(x.querySelectorAll(`[data-tippy-root]`))}function be(e){y.clearDelayTimeouts(),e&&M(`onTrigger`,[y,e]),ie();var t=A(!0),n=T(),i=n[0],a=n[1];Mp.isTouch&&i===`hold`&&a&&(t=a),t?r=setTimeout(function(){y.show()},t):y.show()}function xe(e){if(y.clearDelayTimeouts(),M(`onUntrigger`,[y,e]),!y.state.isVisible){ae();return}if(!(y.props.trigger.indexOf(`mouseenter`)>=0&&y.props.trigger.indexOf(`click`)>=0&&[`mouseleave`,`mousemove`].indexOf(e.type)>=0&&o)){var t=A(!1);t?i=setTimeout(function(){y.state.isVisible&&y.hide()},t):a=requestAnimationFrame(function(){y.hide()})}}function Se(){y.state.isEnabled=!0}function Ce(){y.hide(),y.state.isEnabled=!1}function we(){clearTimeout(r),clearTimeout(i),cancelAnimationFrame(a)}function Te(t){if(!y.state.isDestroyed){M(`onBeforeUpdate`,[y,t]),ue();var n=y.props,r=Wp(e,Object.assign({},n,yp(t),{ignoreAttributes:!0}));y.props=r,le(),n.interactiveDebounce!==r.interactiveDebounce&&(P(),m=fp(fe,r.interactiveDebounce)),n.triggerTarget&&!r.triggerTarget?mp(n.triggerTarget).forEach(function(e){e.removeAttribute(`aria-expanded`)}):r.triggerTarget&&e.removeAttribute(`aria-expanded`),te(),j(),S&&S(n,r),y.popperInstance&&(ge(),ye().forEach(function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})),M(`onAfterUpdate`,[y,t])}}function Ee(e){y.setProps({content:e})}function De(){var e=y.state.isVisible,t=y.state.isDestroyed,n=!y.state.isEnabled,r=Mp.isTouch&&!y.props.touch,i=lp(y.props.duration,0,zp.duration);if(!(e||t||n||r)&&!O().hasAttribute(`disabled`)&&(M(`onShow`,[y],!1),y.props.onShow(y)!==!1)){if(y.state.isVisible=!0,D()&&(x.style.visibility=`visible`),j(),ie(),y.state.isMounted||(x.style.transition=`none`),D()){var a=k(),o=a.box,s=a.content;Ep([o,s],0)}f=function(){var e;if(!(!y.state.isVisible||l)){if(l=!0,x.offsetHeight,x.style.transition=y.props.moveTransition,D()&&y.props.animation){var t=k(),n=t.box,r=t.content;Ep([n,r],i),Dp([n,r],`visible`)}N(),te(),hp($p,y),(e=y.popperInstance)==null||e.forceUpdate(),M(`onMount`,[y]),y.props.animation&&D()&&se(i,function(){y.state.isShown=!0,M(`onShown`,[y])})}},ve()}}function Oe(){var e=!y.state.isVisible,t=y.state.isDestroyed,n=!y.state.isEnabled,r=lp(y.props.duration,1,zp.duration);if(!(e||t||n)&&(M(`onHide`,[y],!1),y.props.onHide(y)!==!1)){if(y.state.isVisible=!1,y.state.isShown=!1,l=!1,o=!1,D()&&(x.style.visibility=`hidden`),P(),ae(),j(!0),D()){var i=k(),a=i.box,s=i.content;y.props.animation&&(Ep([a,s],r),Dp([a,s],`hidden`))}N(),te(),y.props.animation?D()&&oe(r,y.unmount):y.unmount()}}function ke(e){ee().addEventListener(`mousemove`,m),hp(Qp,m),m(e)}function Ae(){y.state.isVisible&&y.hide(),y.state.isMounted&&(_e(),ye().forEach(function(e){e._tippy.unmount()}),x.parentNode&&x.parentNode.removeChild(x),$p=$p.filter(function(e){return e!==y}),y.state.isMounted=!1,M(`onHidden`,[y]))}function je(){y.state.isDestroyed||(y.clearDelayTimeouts(),y.unmount(),ue(),delete e._tippy,y.state.isDestroyed=!0,M(`onDestroy`,[y]))}}function tm(e,t){t===void 0&&(t={});var n=zp.plugins.concat(t.plugins||[]);Lp();var r=Object.assign({},t,{plugins:n}),i=Tp(e).reduce(function(e,t){var n=t&&em(t,r);return n&&e.push(n),e},[]);return xp(e)?i[0]:i}tm.defaultProps=zp,tm.setDefaultProps=Vp,tm.currentInput=Mp,Object.assign({},Dd,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:`0`,top:`0`,margin:`0`},arrow:{position:`absolute`},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),tm.setDefaultProps({render:Xp});var nm=H(`<div style=display:none><div>`);function rm(e,t){let[n,r]=O();return A(()=>{let n=e();if(n){let e=tm(n,N(()=>t?.props));r(e),ee(()=>{t?.disabled?e.disable():e.enable()}),ee(()=>{t?.hidden?e.hide():e.show()}),ee(()=>{e.setProps({...t?.props??{}})}),F(()=>{e.destroy()})}}),()=>n()}function im(e){let[t,n]=z(e,[`children`,`content`,`open`]),r=le(()=>t.children),[i,a]=O();A(()=>{let e=r.toArray()[0];e instanceof HTMLElement&&a(e)});let[o,s]=O(),c=rm(i,{get disabled(){return n.disabled},get hidden(){return t.open===void 0?n.hidden??!0:!t.open},get props(){return{animation:`scale-subtle`,theme:`custom`,...n.props,content:o(),...t.open!==void 0&&{trigger:`manual`,hideOnClick:!1}}}});return A(()=>{let e=o();if(!e)return;let t=new MutationObserver(()=>{c()?.popperInstance?.update()});t.observe(e,{childList:!0,subtree:!0,characterData:!0}),F(()=>t.disconnect())}),[V(r),(()=>{var e=G(nm),n=e.firstChild;return dt(s,n),W(n,()=>t.content),e})()]}var am=H(`<aside>`),om=H(`<div>`),sm=H(`<a><!$><!/><!$><!/>`);H(`<span class=truncate>`);var cm=H(`<div><!$><!/><!$><!/>`),lm=H(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><path d="M7 17L17 7"></path><path d="M7 7h10v10">`),um=H(`<span class="flex items-center gap-1.5"><!$><!/><!$><!/>`),dm=H(`<span class="flex-1 truncate">`),fm=e=>{let[t,n]=z(e,[`class`,`children`]),{isCollapsed:r}=ad();return(()=>{var e=G(am);return ut(e,R({get class(){return vu(`flex h-full shrink-0 flex-col border-border border-r bg-background font-mono transition-all duration-200`,r()?`w-12`:`w-56`,t.class)}},n),!1,!0),W(e,()=>t.children),q(),e})()},pm=e=>{let[t,n]=z(e,[`class`,`children`]),{isCollapsed:r}=ad();return(()=>{var e=G(om);return ut(e,R({get class(){return vu(`flex items-center gap-3 border-border border-b px-4 py-3`,r()&&`justify-center px-2`,t.class)}},n),!1,!0),W(e,()=>t.children),q(),e})()},mm=e=>{let[t,n]=z(e,[`class`,`children`]);return(()=>{var e=G(om);return ut(e,R({get class(){return vu(`flex-1 overflow-auto py-2`,t.class)}},n),!1,!0),W(e,()=>t.children),q(),e})()},hm=e=>{let[t,n]=z(e,[`class`,`label`,`children`]),{isCollapsed:r}=ad();return(()=>{var e=G(cm),i=e.firstChild,[a,o]=K(i.nextSibling),s=a.nextSibling,[c,l]=K(s.nextSibling);return ut(e,R({get class(){return vu(`py-1`,t.class)}},n),!1,!0),W(e,(()=>{var e=V(()=>!!t.label);return()=>e()&&L(im,{get content(){return t.label},get disabled(){return!r()},props:{placement:`right`},get children(){var e=G(om);return W(e,(()=>{var e=V(()=>!!r());return()=>e()?t.label[0]:t.label})()),k(()=>at(e,vu(`px-4 py-1.5 font-medium text-[10px] text-muted-foreground uppercase tracking-wider`,r()&&`text-center`))),e}})})(),a,o),W(e,()=>t.children,c,l),q(),e})()},gm=e=>{let[t,n]=z(e,[`class`,`children`]),{isCollapsed:r}=ad();return(()=>{var e=G(om);return ut(e,R({get class(){return vu(`border-border border-t p-4`,r()&&`p-2`,t.class)}},n),!1,!0),W(e,()=>t.children),q(),e})()},_m=e=>(()=>{var t=G(lm);return k(()=>U(t,`class`,e.class)),t})(),vm=e=>{let[t]=z(e,[`active`,`icon`,`label`,`href`,`target`,`class`,`onClick`,`external`,`tooltipContent`]),{isCollapsed:n}=ad(),r=()=>t.tooltipContent??(t.external?(()=>{var e=G(um),n=e.firstChild,[r,i]=K(n.nextSibling),a=r.nextSibling,[o,s]=K(a.nextSibling);return W(e,()=>t.label,r,i),W(e,L(_m,{class:`size-3`}),o,s),e})():t.label);return L(im,{get content(){return r()},get disabled(){return!n()},props:{placement:`right`},get children(){var e=G(sm),r=e.firstChild,[i,a]=K(r.nextSibling),o=i.nextSibling,[s,c]=K(o.nextSibling);return ot(e,`click`,t.onClick,!0),W(e,L(t.icon,{class:`size-4 shrink-0`}),i,a),W(e,(()=>{var e=V(()=>!n());return()=>e()&&[(()=>{var e=G(dm);return W(e,()=>t.label),e})(),V(()=>V(()=>!!t.external)()&&L(_m,{class:`size-3 shrink-0 text-muted-foreground`}))]})(),s,c),k(r=>{var i=t.href,a=t.target,o=vu(`flex w-full items-center gap-3 px-4 py-2 text-left text-sm transition-colors`,`hover:bg-accent hover:text-accent-foreground`,t.active?`border-l-2 border-l-primary bg-accent text-accent-foreground`:`border-l-2 border-l-transparent text-muted-foreground`,n()&&`justify-center px-2`,t.class);return i!==r.e&&U(e,`href`,r.e=i),a!==r.t&&U(e,`target`,r.t=a),o!==r.a&&at(e,r.a=o),r},{e:void 0,t:void 0,a:void 0}),q(),e}})};tt([`click`]);var ym=ce();function bm(e){if(typeof window>`u`)return null;try{let t=sessionStorage.getItem(e);return t?JSON.parse(t):null}catch{return null}}function xm(e,t){if(!(typeof window>`u`))try{t===null?sessionStorage.removeItem(e):sessionStorage.setItem(e,JSON.stringify(t))}catch{}}function Sm(e){let[t,n]=O(null),[r,i]=O(!0),[a,o]=O(null);return P(()=>{let e=bm(`spacetime-db`);e&&n(e),i(!1)}),L(ym.Provider,{value:{database:t,setDatabase:e=>{n(t=>{let n=typeof e==`function`?e(t):e;return xm(`spacetime-db`,n),n})},loading:r,selectedTable:a,setSelectedTable:o},get children(){return e.children}})}function Cm(){let e=I(ym);if(!e)throw Error(`useDatabase must be used within DatabaseProvider`);return e}var wm=(e,t,n={})=>{let r=`${e}=${t}`;if(e.startsWith(`__Secure-`)&&!n.secure)throw Error(`__Secure- Cookie must have Secure attributes`);if(e.startsWith(`__Host-`)){if(!n.secure)throw Error(`__Host- Cookie must have Secure attributes`);if(n.path!==`/`)throw Error(`__Host- Cookie must have Path attributes with "/"`);if(n.domain)throw Error(`__Host- Cookie must not have Domain attributes`)}for(let e of[`domain`,`path`])if(n[e]&&/[;\r\n]/.test(n[e]))throw Error(`${e} must not contain ";", "\\r", or "\\n"`);if(n&&typeof n.maxAge==`number`&&n.maxAge>=0){if(n.maxAge>3456e4)throw Error(`Cookies Max-Age SHOULD NOT be greater than 400 days (34560000 seconds) in duration.`);r+=`; Max-Age=${n.maxAge|0}`}if(n.domain&&n.prefix!==`host`&&(r+=`; Domain=${n.domain}`),n.path&&(r+=`; Path=${n.path}`),n.expires){if(n.expires.getTime()-Date.now()>3456e7)throw Error(`Cookies Expires SHOULD NOT be greater than 400 days (34560000 seconds) in the future.`);r+=`; Expires=${n.expires.toUTCString()}`}if(n.httpOnly&&(r+=`; HttpOnly`),n.secure&&(r+=`; Secure`),n.sameSite&&(r+=`; SameSite=${n.sameSite.charAt(0).toUpperCase()+n.sameSite.slice(1)}`),n.priority&&(r+=`; Priority=${n.priority.charAt(0).toUpperCase()+n.priority.slice(1)}`),n.partitioned){if(!n.secure)throw Error(`Partitioned Cookie must have Secure attributes`);r+=`; Partitioned`}return r},Tm=(e,t,n)=>(t=encodeURIComponent(t),wm(e,t,n)),Em=(e,t)=>(e=e.replace(/\/+$/,``),e+=`/`,t=t.replace(/^\/+/,``),e+t),Dm=(e,t)=>{for(let[n,r]of Object.entries(t)){let t=RegExp(`/:`+n+`(?:{[^/]+})?\\??`);e=e.replace(t,r?`/${r}`:``)}return e},Om=e=>{let t=new URLSearchParams;for(let[n,r]of Object.entries(e))if(r!==void 0)if(Array.isArray(r))for(let e of r)t.append(n,e);else t.set(n,r);return t},km=(e,t)=>{switch(t){case`ws`:return e.replace(/^http/,`ws`);case`http`:return e.replace(/^ws/,`http`)}},Am=e=>/^https?:\/\/[^\/]+?\/index(?=\?|$)/.test(e)?e.replace(/\/index(?=\?|$)/,`/`):e.replace(/\/index(?=\?|$)/,``);function jm(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Mm(e,t){if(!jm(e)&&!jm(t))return t;let n={...e};for(let e in t){let r=t[e];jm(n[e])&&jm(r)?n[e]=Mm(n[e],r):n[e]=r}return n}var Nm=(e,t)=>new Proxy(()=>{},{get(n,r){if(!(typeof r!=`string`||r===`then`))return Nm(e,[...t,r])},apply(n,r,i){return e({path:t,args:i})}}),Pm=class{url;method;buildSearchParams;queryParams=void 0;pathParams={};rBody;cType=void 0;constructor(e,t,n){this.url=e,this.method=t,this.buildSearchParams=n.buildSearchParams}fetch=async(e,t)=>{if(e){if(e.query&&(this.queryParams=this.buildSearchParams(e.query)),e.form){let t=new FormData;for(let[n,r]of Object.entries(e.form))if(r!==void 0)if(Array.isArray(r))for(let e of r)t.append(n,e);else t.append(n,r);this.rBody=t}e.json&&(this.rBody=JSON.stringify(e.json),this.cType=`application/json`),e.param&&(this.pathParams=e.param)}let n=this.method.toUpperCase(),r={...e?.header,...typeof t?.headers==`function`?await t.headers():t?.headers};if(e?.cookie){let t=[];for(let[n,r]of Object.entries(e.cookie))t.push(Tm(n,r,{path:`/`}));r.Cookie=t.join(`,`)}this.cType&&(r[`Content-Type`]=this.cType);let i=new Headers(r??void 0),a=this.url;a=Am(a),a=Dm(a,this.pathParams),this.queryParams&&(a=a+`?`+this.queryParams.toString()),n=this.method.toUpperCase();let o=!(n===`GET`||n===`HEAD`);return(t?.fetch||fetch)(a,{body:o?this.rBody:void 0,method:n,headers:i,...t?.init})}},Fm=(e,t)=>Nm(function n(r){let i=t?.buildSearchParams??Om,a=[...r.path],o=a.slice(-3).reverse();if(o[0]===`toString`)return o[1]===`name`?o[2]||``:n.toString();if(o[0]===`valueOf`)return o[1]===`name`?o[2]||``:n;let s=``;if(/^\$/.test(o[0])){let e=a.pop();e&&(s=e.replace(/^\$/,``))}let c=Em(e,a.join(`/`));if(s===`url`||s===`path`){let t=c;return r.args[0]&&(r.args[0].param&&(t=Dm(c,r.args[0].param)),r.args[0].query&&(t=t+`?`+i(r.args[0].query).toString())),t=Am(t),s===`url`?new URL(t):t.slice(e.replace(/\/+$/,``).length).replace(/^\/?/,`/`)}if(s===`ws`){let e=km(r.args[0]&&r.args[0].param?Dm(c,r.args[0].param):c,`ws`),n=new URL(e),i=r.args[0]?.query;return i&&Object.entries(i).forEach(([e,t])=>{Array.isArray(t)?t.forEach(t=>n.searchParams.append(e,t)):n.searchParams.set(e,t)}),((...e)=>t?.webSocket!==void 0&&typeof t.webSocket==`function`?t.webSocket(...e):new WebSocket(...e))(n.toString())}let l=new Pm(c,s,{buildSearchParams:i});if(s){t??={};let e=Mm(t,{...r.args[1]});return l.fetch(r.args[0],e)}return l},[]),Im=class extends Error{res;status;constructor(e=500,t){super(t?.message,{cause:t?.cause}),this.res=t?.res,this.status=e}getResponse(){return this.res?new Response(this.res.body,{status:this.status,headers:this.res.headers}):new Response(this.message,{status:this.status})}};function Lm(e){if(e?.length)return e.map(e=>`${e.path.join(`.`)}: ${e.message}`).join(`, `)}var Rm=((e,t)=>Fm(`${e}/api`,{headers:t?.requestHeaders??{},fetch:async(e,n)=>{let r=await fetch(e,{...n,cache:`no-store`});if(!r.ok){let e=await r.json(),t=e?.error?.name===`ZodError`?Lm(e.error.issues):e.error.message;throw new Im(r.status,{message:t||r.statusText,cause:e.error.cause,res:r})}for(let[e,n]of r.headers)e.toLowerCase()===`set-cookie`&&t?.responseHeaders?.append(e,n);return r}}))(typeof window>`u`?``:window?.location?.origin??``),zm=ce();async function Bm(e){let t=await(await Rm.spacetime.connection[`:database`].$get({param:{database:e}})).json();if(!t.success||!t.data)throw Error(t.error||`Failed to get connection config`);return t.data}async function Vm(e){let t=await(await Rm.spacetime.schema[`:database`].$get({param:{database:e}})).json();if(!t.success||!t.data)throw Error(t.error||`Failed to get schema`);return t.data}var Hm=null;async function Um(){if(!Hm){let e=await n(()=>import(`./chunk-DHOLzkJl.js`),__vite__mapDeps([0,1]));Hm={DbConnectionBuilder:e.DbConnectionBuilder,DbConnectionImpl:e.DbConnectionImpl,t:e.t,table:e.table,schema:e.schema,reducers:e.reducers,procedures:e.procedures,reducerSchema:e.reducerSchema}}return Hm}function Wm(e,t,n,r){try{if(!n||typeof n!=`object`)return console.warn(`[Spacetime] Invalid typeRef for field:`,r,n),e.byteArray();if(n.String!==void 0)return e.string();if(n.Bytes!==void 0)return e.byteArray();if(n.U8!==void 0)return e.u8();if(n.U16!==void 0)return e.u16();if(n.U32!==void 0)return e.u32();if(n.U64!==void 0)return e.u64();if(n.U128!==void 0)return e.u128();if(n.U256!==void 0)return e.u256();if(n.I8!==void 0)return e.i8();if(n.I16!==void 0)return e.i16();if(n.I32!==void 0)return e.i32();if(n.I64!==void 0)return e.i64();if(n.I128!==void 0)return e.i128();if(n.I256!==void 0)return e.i256();if(n.F32!==void 0)return e.f32();if(n.F64!==void 0)return e.f64();if(n.Bool!==void 0)return e.bool();if(n.Identity!==void 0)return e.identity();if(n.Timestamp!==void 0)return e.timestamp();if(n.Duration!==void 0)return e.timeDuration();if(n.Ref!==void 0){let i=t[n.Ref];if(i){if(i.Product){let t=i.Product?.elements||[];if(t.length===1){let n=t[0];if((n.name?.some??n.name)===`__uuid__`)return e.uuid()}}return Wm(e,t,i,r)}}if(n.Option!==void 0&&n.Option!==null){let i=n.Option?.some;if(i!=null)return e.option(Wm(e,t,i,r))}if(n.Array!==void 0&&n.Array!==null){let i=n.Array?.element;if(i!=null)return e.array(Wm(e,t,i,r))}if(n.Product!==void 0&&n.Product!==null){let r=n.Product?.elements||[];if(r.length===1){let t=r[0];if((t.name?.some??t.name)===`__uuid__`)return e.uuid()}let i={};for(let n of r){let r=n.name?.some??n.name;r&&(i[r]=Wm(e,t,n.algebraic_type,r))}return e.object(void 0,i)}if(n.Sum!==void 0&&n.Sum!==null){let r={},i=n.Sum?.variants||[];for(let n of i){let i=n.name?.some??n.name;i&&(r[i]=Wm(e,t,n.algebraic_type,i))}return e.enum(void 0,r)}}catch(e){console.warn(`[Spacetime] Error converting type for field:`,r,e)}return e.byteArray()}async function Gm(e){let{t,table:n,schema:r,reducers:i,procedures:a,reducerSchema:o}=await Um(),s=e.typespace?.types||[],c={};for(let r of e.tables||[]){let e=s[r.product_type_ref];if(e&&e.Product){let i={},a=e.Product?.elements||[];for(let e of a){let n=e.name?.some??e.name;n&&(i[n]=Wm(t,s,e.algebraic_type,n))}let o=t.row(i);c[r.name]=n({name:r.name,indexes:[],constraints:[]},o)}}let l=[];for(let n of e.reducers||[]){let e={},r=n.params?.elements||[];for(let n of r){let r=n.name?.some??n.name;r&&(e[r]=Wm(t,s,n.algebraic_type,r))}l.push(o(n.name,e))}let u=r(c),d=i(...l);return{versionInfo:{cliVersion:`2.0.4`},tables:u.schemaType.tables,reducers:d.reducersType.reducers,...a()}}var[Km,qm]=O(null),[Jm,Ym]=O(!1),[Xm,Zm]=O(null),Qm=!1,$m=null,eh=new Map;function th(e){F(()=>{eh.clear();let e=Km();if(e&&typeof e==`object`&&`disconnect`in e)try{e.disconnect()}catch{}qm(null),Ym(!1),Zm(null),$m=null});let t={connection:Km,isConnected:Jm,connectionError:Xm,connect:async e=>{if(Qm||$m===e&&Km())return;Qm=!0;let t=Km();if(t&&typeof t==`object`&&`disconnect`in t)try{t.disconnect()}catch{}eh.clear(),qm(null),Ym(!1),Zm(null);try{let[t,n,r]=await Promise.all([Bm(e),Um(),Vm(e)]),i=await Gm(r),a=new n.DbConnectionBuilder(i,e=>new n.DbConnectionImpl(e)).withUri(t.uri).withDatabaseName(t.database).onConnect((t,n,r)=>{Qm=!1,$m=e,qm(t),Ym(!0),Zm(null)}).onDisconnect((e,t)=>{Qm=!1,$m=null,qm(null),Ym(!1)}).onConnectError((e,t)=>{Qm=!1,$m=null,Zm(t.message),qm(null),Ym(!1)});t.token&&a.withToken(t.token),a.build()}catch(e){Qm=!1,$m=null,Zm(e instanceof Error?e.message:`Failed to connect`),qm(null),Ym(!1)}},disconnect:()=>{eh.clear();let e=Km();if(e&&typeof e==`object`&&`disconnect`in e)try{e.disconnect()}catch{}qm(null),Ym(!1),Zm(null),$m=null},subscribeToTable:(e,t)=>{let n=eh.get(e);n&&n();let r=Km();if(!r)return t.onApplied?.([]),()=>{};let i=r,a=[],o=i.db[e];if(o){let e=o.onInsert((e,n)=>{t.onInsert?.(n)});a.push(e);let n=o.onDelete((e,n)=>{t.onDelete?.(n)});a.push(n);let r=o.onUpdate((e,n,r)=>{t.onUpdate?.(n,r)});a.push(r)}let s=i.subscriptionBuilder().onApplied(()=>{let n=i.db[e];if(n)try{let e=Array.from(n.iter());t.onApplied?.(e)}catch{t.onApplied?.([])}else t.onApplied?.([])}).subscribe(`SELECT * FROM ${e}`),c=()=>{try{s.unsubscribe()}catch{}for(let e of a)try{e()}catch{}eh.delete(e)};return eh.set(e,c),c},getConnectionState:()=>{let e=Xm(),t=Jm(),n=Km();return e?`error`:t?`connected`:n||Qm?`connecting`:`disconnected`}};return L(zm.Provider,{value:t,get children(){return e.children}})}function nh(){let e=I(zm);if(!e)throw Error(`useSpacetime must be used within SpacetimeProvider`);return e}var rh=H(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 640 640"aria-hidden=true><g clip-path=url(#logo-clip)><path fill-rule=evenodd clip-rule=evenodd d="M514.832 308.261C510.567 208.836 529.176 151.399 622 45L470.805 197.793L457.45 211.29C445.419 223.447 444.68 242.492 452.167 257.87C478.81 312.596 469.606 380.633 424.553 426.162C379.691 471.498 312.743 480.913 258.708 454.407C243.11 446.756 223.705 447.505 211.485 459.854L198.573 472.903L198.7 473.01L144.099 528.589C185.326 504.458 248.988 511.382 287.392 515.558C298.029 516.715 306.728 517.661 312.476 517.678C365.084 520.293 418.548 501.3 458.727 460.697C500.074 418.912 518.776 362.908 514.832 308.261ZM326.524 122.322C332.272 122.339 340.971 123.285 351.608 124.442C390.012 128.619 453.674 135.542 494.901 111.412L440.3 166.99L440.427 167.097L427.515 180.146C415.295 192.495 395.89 193.245 380.292 185.593C326.257 159.087 259.309 168.502 214.447 213.838C169.394 259.367 160.19 327.404 186.833 382.131C194.32 397.509 193.581 416.553 181.55 428.71L168.195 442.207L17 595C109.824 488.601 128.433 431.164 124.168 331.74C120.224 277.092 138.926 221.088 180.273 179.304C220.452 138.701 273.916 119.707 326.524 122.322ZM435.847 320C435.847 384.935 383.757 437.576 319.5 437.576C255.243 437.576 203.153 384.935 203.153 320C203.153 255.064 255.243 202.423 319.5 202.423C383.757 202.423 435.847 255.064 435.847 320ZM444.797 320C444.797 389.93 388.7 446.621 319.5 446.621C250.3 446.621 194.203 389.93 194.203 320C194.203 250.069 250.3 193.378 319.5 193.378C388.7 193.378 444.797 250.069 444.797 320Z"fill=currentColor></path><path d="M439.25 320C439.25 386.136 385.636 439.75 319.5 439.75C253.364 439.75 199.75 386.136 199.75 320C199.75 253.864 253.364 200.25 319.5 200.25C385.636 200.25 439.25 253.864 439.25 320Z"stroke=currentColor stroke-width=8></path></g><defs><clipPath id=logo-clip><rect width=640 height=640 fill=white>`);H(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><ellipse cx=12 cy=5 rx=9 ry=3></ellipse><path d="M3 5V19A9 3 0 0 0 21 19V5"></path><path d="M3 12A9 3 0 0 0 21 12">`);var ih=H(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><polyline points="4 7 4 4 20 4 20 7"></polyline><line x1=9 y1=20 x2=15 y2=20></line><line x1=12 y1=4 x2=12 y2=20>`),ah=H(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.1a2 2 0 0 1-1-1.72v-.51a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"></path><circle cx=12 cy=12 r=3>`),oh=H(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><path d="M12 3v18"></path><rect width=18 height=18 x=3 y=3 rx=0 ry=0></rect><path d="M3 9h18"></path><path d="M3 15h18">`),sh=H(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"></path><polyline points="14 2 14 8 20 8"></polyline><path d="M10 12a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1v-4a1 1 0 0 0-1-1h-4z"></path><path d="M12 15h.01">`),ch=H(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1=16 y1=13 x2=8 y2=13></line><line x1=16 y1=17 x2=8 y2=17></line><polyline points="10 9 9 9 8 9">`),lh=H(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><path d="M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"></path><path d="M3 3v5h5"></path><path d="M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 6.74-2.74L21 16"></path><path d="M16 16h5v5">`);H(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><path d="M7 17L17 7"></path><path d="M7 7h10v10">`);var uh=e=>(()=>{var t=G(rh);return k(()=>U(t,`class`,e.class)),t})(),dh=e=>(()=>{var t=G(ih);return k(()=>U(t,`class`,e.class)),t})(),fh=e=>(()=>{var t=G(ah);return k(()=>U(t,`class`,e.class)),t})(),ph=e=>(()=>{var t=G(oh);return k(()=>U(t,`class`,e.class)),t})(),mh=e=>(()=>{var t=G(sh);return k(()=>U(t,`class`,e.class)),t})(),hh=e=>(()=>{var t=G(ch);return k(()=>U(t,`class`,e.class)),t})(),gh=e=>(()=>{var t=G(lh);return k(()=>U(t,`class`,e.class)),t})();function _h(e,...t){let n=t[0]||{},r=e;if(n.params){let t={...n.params};if(Object.entries(t).forEach(([e,t])=>{e!==`@`&&(r=r.replace(`@${e}`,String(t)))}),e.endsWith(`/@`)&&`@`in t){let e=t[`@`];if(r=r.substring(0,r.length-2),Array.isArray(e))r+=`/${e.join(`/`)}`;else if(typeof e==`string`){let t=e.startsWith(`/`)?``:`/`;r+=`${t}${e}`}}}if(n.search){let e=new URLSearchParams(n.search);r+=`?${e.toString()}`}return r}var vh=`%s | SpacetimeDB Studio`;function yh(e=`Home`){return vh.replace(`%s`,e)}function bh(e,t,n=1){t=t.split(`/`).slice(0,n+1).join(`/`);let r=e.split(`/`).slice(0,n+1).join(`/`);return t===r}var xh=e({default:()=>Kh}),Sh=H(`<link rel=icon type=image/svg+xml href=/icon-logo-dark.svg class=icon-dark>`),Ch=H(`<link rel=icon type=image/svg+xml href=/icon-logo-light.svg class=icon-light>`),wh=H(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><circle cx=11 cy=11 r=8></circle><path d="m21 21-4.3-4.3">`),Th=H(`<svg xmlns=http://www.w3.org/2000/svg width=14 height=14 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><path d="m11 17-5-5 5-5"></path><path d="m18 17-5-5 5-5">`),Eh=H(`<svg xmlns=http://www.w3.org/2000/svg width=14 height=14 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round><path d="m13 17 5-5-5-5"></path><path d="m6 17 5-5-5-5">`),Dh=H(`<span class="font-mono font-semibold text-sm">SpacetimeDB`),Oh=H(`<div class="py-4 text-center text-muted-foreground text-xs">Loading tables...`),kh=H(`<div class="mb-2 space-y-0.5">`),Ah=H(`<div class="mb-1 text-[9px] text-muted-foreground/70 uppercase tracking-wider">System Tables`),jh=H(`<div class=space-y-0.5>`),Mh=H(`<div class="mt-2 border-border border-t px-4 py-2"><div class="mb-2 font-medium text-[10px] text-muted-foreground uppercase tracking-wider">Tables</div><div class="relative mb-2"><!$><!/><input type=text placeholder="Search tables..."class="w-full border border-border bg-muted/30 px-7 py-1.5 text-xs outline-none focus:border-primary focus:ring-0"></div><!$><!/><!$><!/><!$><!/>`),Nh=H(`<span class=truncate>Settings`),Ph=H(`<button type=button><!$><!/><!$><!/>`),Fh=H(`<button type=button><!$><!/><span class="flex-1 truncate"></span><span class="ml-2 shrink-0 font-mono text-[10px] text-muted-foreground">`),Ih=H(`<span class="flex items-center gap-2">Settings <kbd class="inline-flex items-center gap-0.5 rounded bg-white/10 px-1.5 py-0.5 font-mono text-[10px] leading-none"><span>⌘</span><span>K`),Lh=H(`<script>`),Rh=H(`<div class="flex h-screen overflow-hidden bg-background text-foreground"><!$><!/><div class="flex min-w-0 flex-1 flex-col">`);pa.setGlobalDefaults({title:yh(`SQL Editor`),description:`SpacetimeDB Studio - SQL Editor with vim mode support`,otherJSX:()=>[G(Sh),G(Ch)]});var zh=e=>(()=>{var t=G(wh);return k(()=>U(t,`class`,e.class)),t})(),Bh=()=>G(Th),Vh=()=>G(Eh),Hh=e=>e===null?`—`:e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:e.toString();function Uh(){let{database:e,selectedTable:t,setSelectedTable:n}=Cm(),{isCollapsed:r,toggle:i}=ad(),a=Lt(),[o,s]=O([]),[c,l]=O(!1),[u,d]=O(``),f=()=>a.urlPathname,p=()=>bh(_h(`/`),f(),1),m=()=>bh(_h(`/tables`),f(),1),h=()=>bh(_h(`/schemas`),f(),1);A(()=>{let t=e();t&&(l(!0),Rm.spacetime.tables.$get({query:{db:t}}).then(e=>e.json()).then(e=>{e.success&&e.data&&s(()=>e.data)}).finally(()=>l(!1)))});let g=()=>{let e=u().toLowerCase();return e?o().filter(t=>t.name.toLowerCase().includes(e)):o()},_=()=>g().filter(e=>e.type===`user`),v=()=>g().filter(e=>e.type===`system`);return[L(pm,{get children(){return[L(B,{get when(){return!r()},get children(){return[L(uh,{class:`size-5 shrink-0 text-foreground`}),G(Dh)]}}),L(im,{get content(){return r()?`Expand`:`Collapse`},get props(){return{placement:r()?`right`:`bottom`}},get children(){return L(ti,{variant:`ghost`,size:`icon`,get class(){return vu(`size-6 p-0`,!r()&&`ml-auto`)},onClick:()=>i(),get children(){return L(B,{get when(){return r()},get fallback(){return L(Bh,{})},get children(){return L(Vh,{})}})}})}})]}}),L(mm,{get children(){return[L(hm,{label:`Workspace`,get children(){return[L(vm,{href:`/`,icon:dh,label:`SQL Editor`,get active(){return p()}}),L(vm,{href:`/tables`,icon:ph,label:`Tables`,get active(){return m()}}),L(vm,{href:`/schemas`,icon:mh,label:`Schemas`,get active(){return h()}})]}}),L(hm,{label:`Resources`,get children(){return L(vm,{icon:hh,label:`Documentation`,href:`https://spacetimedb.com/docs/`,target:`_blank`,external:!0})}}),L(B,{get when(){return V(()=>!!m())()&&!r()},get children(){var e=G(Mh),r=e.firstChild.nextSibling,i=r.firstChild,[a,o]=K(i.nextSibling),s=a.nextSibling,l=r.nextSibling,[f,p]=K(l.nextSibling),m=f.nextSibling,[h,g]=K(m.nextSibling),y=h.nextSibling,[b,x]=K(y.nextSibling);return W(r,L(zh,{class:`absolute top-1/2 left-2.5 size-3 -translate-y-1/2 text-muted-foreground`}),a,o),s.$$input=e=>d(e.currentTarget.value),W(e,L(B,{get when(){return c()},get children(){return G(Oh)}}),f,p),W(e,L(B,{get when(){return V(()=>!c())()&&_().length>0},get children(){var e=G(kh);return W(e,L(Ue,{get each(){return _()},children:e=>(()=>{var r=G(Fh),i=r.firstChild,[a,o]=K(i.nextSibling),s=a.nextSibling,c=s.nextSibling;return r.$$click=()=>n(e.name),W(r,L(ph,{class:`mr-2 size-3 shrink-0`}),a,o),W(s,()=>e.name),W(c,()=>Hh(e.rowCount)),k(()=>at(r,vu(`flex w-full items-center justify-between px-2 py-1.5 text-left text-xs transition-colors`,t()===e.name?`bg-accent text-accent-foreground`:`text-muted-foreground hover:bg-accent/50 hover:text-accent-foreground`))),q(),r})()})),e}}),h,g),W(e,L(B,{get when(){return V(()=>!c())()&&v().length>0},get children(){return[G(Ah),(()=>{var e=G(jh);return W(e,L(Ue,{get each(){return v()},children:e=>(()=>{var r=G(Fh),i=r.firstChild,[a,o]=K(i.nextSibling),s=a.nextSibling,c=s.nextSibling;return r.$$click=()=>n(e.name),W(r,L(ph,{class:`mr-2 size-3 shrink-0`}),a,o),W(s,()=>e.name),W(c,()=>Hh(e.rowCount)),k(()=>at(r,vu(`flex w-full items-center justify-between px-2 py-1.5 text-left text-xs transition-colors`,t()===e.name?`bg-accent text-accent-foreground`:`text-muted-foreground hover:bg-accent/50 hover:text-accent-foreground`))),q(),r})()})),e})()]}}),b,x),k(()=>nt(s,`value`,u())),q(),e}})]}}),L(gm,{get children(){return L(im,{get content(){return G(Ih)},get props(){return{placement:r()?`right`:`bottom`}},get children(){var e=G(Ph),t=e.firstChild,[n,i]=K(t.nextSibling),a=n.nextSibling,[o,s]=K(a.nextSibling);return ot(e,`click`,ed,!0),W(e,L(fh,{class:`size-4 shrink-0`}),n,i),W(e,L(B,{get when(){return!r()},get children(){return G(Nh)}}),o,s),k(()=>at(e,vu(`flex w-full items-center text-left text-muted-foreground text-sm transition-colors hover:bg-accent hover:text-accent-foreground`,r()?`justify-center px-2 py-2`:`gap-3 px-4 py-2`))),q(),e}})}})]}function Wh(e){let{database:t,setDatabase:n,loading:r}=Cm();return A(()=>{if(!r()&&t())return;let e=new URLSearchParams(window.location.search).get(`db`);if(e){n(e);return}t()||Rm.spacetime.config.$get().then(e=>e.json()).then(e=>{e.database&&n(e.database)})}),V(()=>e.children)}function Gh(){let{inferredTheme:e}=Ru();return L(Vi,{get theme(){return e()},richColors:!0})}function Kh(e){return[(()=>{var e=G(Lh);return nt(e,`innerHTML`,Iu),e})(),L(Bu,{get children(){return[L(Uu,{get children(){return L(Sm,{get children(){return L(th,{get children(){return L(od,{get children(){return L(Wh,{get children(){return[(()=>{var t=G(Rh),n=t.firstChild,[r,i]=K(n.nextSibling),a=r.nextSibling;return W(t,L(fm,{get children(){return L(Uh,{})}}),r,i),W(a,()=>e.children),t})(),L(nd,{})]}})}})}})}})}}),L(Gh,{})]}})]}tt([`input`,`click`]);export{Wn as $,Ma as A,L as At,Xn as B,F as Bt,Ko as C,lt as Ct,Vo as D,Ue as Dt,zo as E,dt as Et,Ur as F,k as Ft,Qn as G,mr as H,z as Ht,Vr as I,O as It,Gn as J,cr as K,Un as L,Ve as Lt,Ai as M,ce as Mt,ti as N,A as Nt,Ho as O,B as Ot,Gr as P,j as Pt,Pr as Q,dr as R,R as Rt,ss as S,nt as St,Jo as T,H as Tt,$n as U,N as Ut,Yn as V,P as Vt,jr as W,I as Wt,qn as X,Nr as Y,lr as Z,Mc as _,K as _t,ph as a,Dn as at,bc as b,q as bt,Cm as c,Nn as ct,Ru as d,Lt as dt,Rr as et,vu as f,At as ft,Nc as g,G as gt,Pc as h,tt as ht,gh as i,jn as it,pa as j,ee as jt,ya as k,M as kt,im as l,Sn as lt,Fc as m,at as mt,yh as n,zn as nt,nh as o,Pn as ot,Ic as p,Ot as pt,ir as q,mh as r,An as rt,Rm as s,Tn as st,xh as t,Hn as tt,Vu as u,tn as ut,jc as v,W as vt,Go as w,ut as wt,vc as x,U as xt,Ac as y,V as yt,fr as z,te as zt};
|