@akashjs/runtime 0.1.41 → 0.1.43
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/dist/index.cjs +12 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +12 -10
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export{a as createMachine}from'./chunk-42ZHET2G.js';export{b as generateSWScript,a as registerServiceWorker,c as subscribePush}from'./chunk-WG5GKD3B.js';import {B as B$1,z as z$1,u,y,e,f,h}from'./chunk-367DJVST.js';export{t as For,s as Show,w as __getter,b as akashError,o as bindProperty,n as bindText,p as bindVisible,l as cloneTemplate,g as createContext,j as createElement,k as createText,B as defineComponent,a as formatError,d as getAllErrorCodes,e as getCurrentScope,c as getErrorDef,i as inject,v as insert,u as nodeToDOM,z as onError,x as onMount,y as onUnmount,h as provide,A as ref,q as renderConditional,r as renderList,f as runInScope,m as setProperty}from'./chunk-367DJVST.js';import {d}from'./chunk-3KIPMVCN.js';export{d as __getStoreInstances,c as clearStores,a as configureStores,b as defineStore}from'./chunk-3KIPMVCN.js';export{b as isServerRendering,i as nodeToHtml,j as renderNodes,e as renderToStream,c as renderToString,d as renderToStringSync,f as ssrElement,h as ssrRaw,g as ssrText}from'./chunk-QTPP343X.js';export{a as LWWRegister,c as createLocalTransport,d as createSync,b as createWebSocketTransport}from'./chunk-CEJF44LZ.js';export{a as createOfflineStore}from'./chunk-NC5RE4IQ.js';import {l,n,m,a}from'./chunk-TWA4T6PX.js';export{a as batch,m as computed,j as createTimer,n as effect,b as flushSync,k as formatProfile,g as getProfileSummary,e as isProfiling,i as measureAsync,h as measureSync,p as on,f as recordPerfEntry,l as signal,c as startProfiling,d as stopProfiling,o as untrack}from'./chunk-TWA4T6PX.js';export{a as animate,d as animateGroup,c as animateSequence,e as animateSpring,b as animateStagger,g as defineStates,f as keyframes}from'./chunk-Q3E2UVUK.js';function
|
|
1
|
+
export{a as createMachine}from'./chunk-42ZHET2G.js';export{b as generateSWScript,a as registerServiceWorker,c as subscribePush}from'./chunk-WG5GKD3B.js';import {B as B$1,z as z$1,u,y,e,f,h}from'./chunk-367DJVST.js';export{t as For,s as Show,w as __getter,b as akashError,o as bindProperty,n as bindText,p as bindVisible,l as cloneTemplate,g as createContext,j as createElement,k as createText,B as defineComponent,a as formatError,d as getAllErrorCodes,e as getCurrentScope,c as getErrorDef,i as inject,v as insert,u as nodeToDOM,z as onError,x as onMount,y as onUnmount,h as provide,A as ref,q as renderConditional,r as renderList,f as runInScope,m as setProperty}from'./chunk-367DJVST.js';import {d}from'./chunk-3KIPMVCN.js';export{d as __getStoreInstances,c as clearStores,a as configureStores,b as defineStore}from'./chunk-3KIPMVCN.js';export{b as isServerRendering,i as nodeToHtml,j as renderNodes,e as renderToStream,c as renderToString,d as renderToStringSync,f as ssrElement,h as ssrRaw,g as ssrText}from'./chunk-QTPP343X.js';export{a as LWWRegister,c as createLocalTransport,d as createSync,b as createWebSocketTransport}from'./chunk-CEJF44LZ.js';export{a as createOfflineStore}from'./chunk-NC5RE4IQ.js';import {l,n,m,a}from'./chunk-TWA4T6PX.js';export{a as batch,m as computed,j as createTimer,n as effect,b as flushSync,k as formatProfile,g as getProfileSummary,e as isProfiling,i as measureAsync,h as measureSync,p as on,f as recordPerfEntry,l as signal,c as startProfiling,d as stopProfiling,o as untrack}from'./chunk-TWA4T6PX.js';export{a as animate,d as animateGroup,c as animateSequence,e as animateSpring,b as animateStagger,g as defineStates,f as keyframes}from'./chunk-Q3E2UVUK.js';function pn(e,t){if(e&&typeof e=="function"){let n=e();return u(n)}return t?u(t()):document.createComment("empty slot")}function fn(e,t){if(!e)return false;let n=t&&typeof e=="object"?e[t]:e;if(!n||typeof n!="function")return false;let r=n();return !(r==null||r===false||typeof r=="string"&&r.trim()==="")}function mn(e,t){let n={},r=t??Object.keys(e);for(let o of r){let i=e[o];typeof i=="function"&&(n[o]=i);}return n}var gn=B$1(e=>{let t=l(null);z$1(r=>{t.set(r);});function n(){t.set(null);}return ()=>{let r=t();return r?u(e.props.fallback(r,n)):u(e.children())}});var j=null;function yn(){return j}function hn(e){j&&j.addPending(e);}var vn=B$1(e=>{let t=l(false),n$1=[],r={addPending(s){n$1.push(s);},isResolved:()=>t()},o=j;j=r;let i;try{i=e.children();}finally{j=o;}return n$1.length>0?Promise.all(n$1).then(()=>{t.set(true);}):t.set(true),()=>{let s=document.createElement("div");return s.setAttribute("data-akash-suspense",""),s.style.display="contents",t()?s.appendChild(u(i)):s.appendChild(u(e.props.fallback())),n(()=>{if(t()){for(;s.firstChild;)s.removeChild(s.firstChild);s.appendChild(u(i));}}),s}});var N=false,D=null;function Tn(){return N}function ee(e){let{container:t,component:n,props:r={}}=e;N=true,D=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT);try{n(r);}finally{N=false,D=null;}return ()=>{}}function bn(e){if(!N||!D)return null;let t=D.nextNode();for(;t;){if(t instanceof HTMLElement&&t.tagName.toLowerCase()===e.toLowerCase())return t;t=D.nextNode();}return null}function wn(){if(!N||!D)return null;let e=D.nextNode();for(;e;){if(e instanceof Text)return e;e=D.nextNode();}return null}function Sn(e){let{target:t,component:n,props:r,rootMargin:o="200px"}=e;if(typeof IntersectionObserver>"u")return ee({container:t,component:n,props:r});let i=false,s=new IntersectionObserver(a=>{for(let c of a)c.isIntersecting&&!i&&(s.disconnect(),ee({container:t,component:n,props:r}));},{rootMargin:o});return s.observe(t),()=>{i=true,s.disconnect();}}var ye="data-akash-hydrate";function xn(e=document.body){return Array.from(e.querySelectorAll(`[${ye}]`))}function he(e){return {enterFrom:`${e}-enter-from`,enterActive:`${e}-enter-active`,enterTo:`${e}-enter-to`,exitFrom:`${e}-exit-from`,exitActive:`${e}-exit-active`,exitTo:`${e}-exit-to`}}function ve(e,t,n){return new Promise(r=>{e.classList.add(t.enterFrom,t.enterActive),e.offsetHeight,e.classList.remove(t.enterFrom),e.classList.add(t.enterTo);let o=()=>{e.classList.remove(t.enterActive,t.enterTo),e.removeEventListener("transitionend",o),r();};n!==void 0?setTimeout(o,n):(e.addEventListener("transitionend",o,{once:true}),setTimeout(o,5e3));})}function En(e,t,n){return new Promise(r=>{e.classList.add(t.exitFrom,t.exitActive),e.offsetHeight,e.classList.remove(t.exitFrom),e.classList.add(t.exitTo);let o=()=>{e.classList.remove(t.exitActive,t.exitTo),e.removeEventListener("transitionend",o),r();};n!==void 0?setTimeout(o,n):(e.addEventListener("transitionend",o,{once:true}),setTimeout(o,5e3));})}var kn=B$1(e=>{let t=e.props.name??"akash",n=he(t);return ()=>{let r=document.createElement("div");if(r.style.display="contents",e.props.when){let o=u(e.children());r.appendChild(o),o instanceof HTMLElement&&(e.props.onEnter?.(o),ve(o,n,e.props.duration).then(()=>{e.props.onAfterEnter?.(o);}));}return r}});function Cn(e,t={}){let{property:n="all",duration:r="0.3s",easing:o="ease"}=t;return `
|
|
2
2
|
.${e}-enter-active,
|
|
3
3
|
.${e}-exit-active {
|
|
4
4
|
transition: ${n} ${r} ${o};
|
|
@@ -13,13 +13,13 @@ export{a as createMachine}from'./chunk-42ZHET2G.js';export{b as generateSWScript
|
|
|
13
13
|
.${e}-exit-from {
|
|
14
14
|
opacity: 1;
|
|
15
15
|
}
|
|
16
|
-
`.trim()}var
|
|
16
|
+
`.trim()}var ne=[];function Pn(){let e=ne;return ne=[],e}function An(e){let t="",n=e.reduce((o,i)=>i.title??o,""),r=e.reduce((o,i)=>i.titleTemplate??o,"");if(n){let o=r?r.replace("%s",n):n;t+=`<title>${o}</title>
|
|
17
17
|
`;}for(let o of e)for(let i of o.meta??[])t+=" <meta",i.name&&(t+=` name="${i.name}"`),i.property&&(t+=` property="${i.property}"`),i.httpEquiv&&(t+=` http-equiv="${i.httpEquiv}"`),t+=` content="${i.content}"`,t+=` />
|
|
18
18
|
`;for(let o of e)for(let i of o.link??[])t+=` <link rel="${i.rel}" href="${i.href}"`,i.type&&(t+=` type="${i.type}"`),t+=` />
|
|
19
|
-
`;return t}var ee="data-akash-head";function F(e){let t=typeof e=="function"?e:()=>e;if(typeof document>"u"){te.push(t());return}let n$1=[],r=n(()=>{let o=t();for(let i of n$1)i.remove();if(n$1.length=0,o.title){let i=o.titleTemplate?o.titleTemplate.replace("%s",o.title):o.title;document.title=i;}for(let i of o.meta??[]){let s=document.createElement("meta");s.setAttribute(ee,""),i.name&&s.setAttribute("name",i.name),i.property&&s.setAttribute("property",i.property),i.httpEquiv&&s.setAttribute("http-equiv",i.httpEquiv),s.setAttribute("content",i.content),document.head.appendChild(s),n$1.push(s);}for(let i of o.link??[]){let s=document.createElement("link");s.setAttribute(ee,""),s.setAttribute("rel",i.rel),s.setAttribute("href",i.href),i.type&&s.setAttribute("type",i.type),document.head.appendChild(s),n$1.push(s);}for(let i of o.script??[]){let s=document.createElement("script");s.setAttribute(ee,""),i.src&&s.setAttribute("src",i.src),i.type&&s.setAttribute("type",i.type),i.async&&s.setAttribute("async",""),i.defer&&s.setAttribute("defer",""),i.innerHTML&&(s.textContent=i.innerHTML),document.head.appendChild(s),n$1.push(s);}if(o.htmlAttrs)for(let[i,s]of Object.entries(o.htmlAttrs))document.documentElement.setAttribute(i,s);if(o.bodyAttrs)for(let[i,s]of Object.entries(o.bodyAttrs))document.body.setAttribute(i,s);});try{y(()=>{r();for(let o of n$1)o.remove();});}catch{}}function Cn(e){return e}function An(e,t){let n=[],r=[],o=[],i={},s=null,a=null,c={provide(d,l){h(d,l);},onError(d){r.push(d);},onBeforeMount(d){o.push(d);},config:i},u={use(d){return n.push(d),u},config(d,l){return i[d]=l,u},mount(d){if(a=typeof d=="string"?document.querySelector(d):d,!a)throw new Error(`[AkashJS] Mount target not found: ${d}`);for(let l of n)l.setup(c);for(let l of o)l();try{s=e(t??{}),a.appendChild(s);}catch(l){let p=l instanceof Error?l:new Error(String(l));if(r.length>0)for(let f of r)f(p);else throw p}},unmount(){s&&a&&(a.removeChild(s),s=null);}};return u}function Rn(e,t){let n=l(0),r=l(t?.immediate!==false),o=null;function i(){s(),o=setInterval(()=>n.update(a=>a+1),e);}function s(){o&&(clearInterval(o),o=null);}return r()&&i(),{count:(()=>n()),isActive:(()=>r()),pause(){r.set(false),s();},resume(){r.set(true),i();},reset(){n.set(0);},dispose(){s();}}}function On(e){let t=l(false),n=null;function r(){o(),t.set(false),n=setTimeout(()=>t.set(true),e);}function o(){n&&(clearTimeout(n),n=null);}return r(),{ready:(()=>t()),restart(){r();},dispose(){o();}}}function Ln(e,t){let n$1=l(e()),r=null;return n(()=>{let o=e();return r&&clearTimeout(r),r=setTimeout(()=>n$1.set(o),t),()=>{r&&clearTimeout(r);}}),(()=>n$1())}function Dn(e,t){let n$1=l(e()),r=0,o=null;return n(()=>{let i=e(),s=Date.now(),a=s-r;return a>=t?(n$1.set(i),r=s):(o&&clearTimeout(o),o=setTimeout(()=>{n$1.set(i),r=Date.now();},t-a)),()=>{o&&clearTimeout(o);}}),(()=>n$1())}function Mn(e=0){let t=l(e);return {count:(()=>t()),inc(n=1){t.update(r=>r+n);},dec(n=1){t.update(r=>r-n);},set(n){t.set(n);},reset(){t.set(e);}}}function In(e=false){let t=l(e);return {value:(()=>t()),toggle(){t.update(n=>!n);},setTrue(){t.set(true);},setFalse(){t.set(false);}}}function Hn(e){let t,n$1=l(void 0);return n(()=>{let r=e();n$1.set(t),t=r;}),(()=>n$1())}function jn(e){if(typeof window>"u")return(()=>false);let t=window.matchMedia(e),n=l(t.matches),r=o=>n.set(o.matches);return t.addEventListener("change",r),(()=>n())}var Fn={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};function _n(e=Fn){let t=Object.entries(e).sort((s,a)=>s[1]-a[1]),n=l(typeof window<"u"?window.innerWidth:1024);if(typeof window<"u"){let s=()=>n.set(window.innerWidth);window.addEventListener("resize",s,{passive:true});}function r(){let s=n(),a="";for(let[c,u]of t)s>=u&&(a=c);return a||t[0]?.[0]||""}function o(s){let a=e[s];return a!==void 0&&n()>=a}function i(s){let a=e[s];return a!==void 0&&n()<a}return {current:r,gte:o,lt:i,width:(()=>n())}}function Nn(e,t,n$1="local"){let r=typeof window<"u"?n$1==="local"?localStorage:sessionStorage:null,o=t;if(r)try{let s=r.getItem(e);s!==null&&(o=JSON.parse(s));}catch{}let i=l(o);return r&&(n(()=>{let s=i();try{r.setItem(e,JSON.stringify(s));}catch{}}),typeof window<"u"&&window.addEventListener("storage",s=>{if(s.key===e&&s.newValue!==null)try{i.set(JSON.parse(s.newValue));}catch{}})),i}function $n(e){let t=l(""),n=l(false),r=e?.timeout??2e3,o=null;async function i(s){typeof navigator>"u"||!navigator.clipboard||(await navigator.clipboard.writeText(s),t.set(s),n.set(true),o&&clearTimeout(o),o=setTimeout(()=>n.set(false),r));}return {text:(()=>t()),copied:(()=>n()),copy:i}}function Kn(){if(typeof window>"u")return(()=>true);let e=l(navigator.onLine);return window.addEventListener("online",()=>e.set(true)),window.addEventListener("offline",()=>e.set(false)),(()=>e())}function Vn(e){let t=l({latitude:null,longitude:null,accuracy:null,error:null,loading:true});return typeof navigator<"u"&&navigator.geolocation?navigator.geolocation.watchPosition(n=>{t.set({latitude:n.coords.latitude,longitude:n.coords.longitude,accuracy:n.coords.accuracy,error:null,loading:false});},n=>{t.set({latitude:null,longitude:null,accuracy:null,error:n,loading:false});},e):t.set({...t(),loading:false}),(()=>t())}function Wn(){let e=l(typeof window<"u"?window.innerWidth:0),t=l(typeof window<"u"?window.innerHeight:0);return typeof window<"u"&&window.addEventListener("resize",()=>{e.set(window.innerWidth),t.set(window.innerHeight);},{passive:true}),{width:(()=>e()),height:(()=>t())}}function zn(e,t,n={}){if(typeof document>"u")return ()=>{};let{events:r=["pointerdown"],ignore:o=[],active:i=true}=n,s=i;function a(){return typeof e=="function"?e():e}function c(l){let p=l.target;if(!p)return false;for(let f of o)if(typeof f=="string"){if(p.closest(f))return true}else if(f===p||f.contains(p))return true;return false}function u(l){if(!s)return;let p=a();if(!p)return;let f=l.target;p===f||p.contains(f)||c(l)||t(l);}for(let l of r)document.addEventListener(l,u,{passive:true,capture:true});let d=()=>{for(let l of r)document.removeEventListener(l,u,{capture:true});};return d.enable=()=>{s=true;},d.disable=()=>{s=false;},d}var qn=B$1(e=>{let t=null,n=null;function r(){let o=e.props.target;return o?typeof o=="string"?document.querySelector(o)??document.body:o:document.body}return y(()=>{n&&t&&t.removeChild(n);}),()=>{t=r();let o=e.children();return n=u(o),t.appendChild(n),document.createComment("portal")}});var Bn=0;function Un(e={}){let{maxVisible:t=5,defaultDuration:n=3e3,position:r="top-right"}=e,o=l([]),i=new Map;function s(d,l,p){let f=`toast-${++Bn}`,y=p?.duration??n,T=p?.dismissible??true,m={id:f,type:d,message:l,duration:y,dismissible:T,createdAt:Date.now()};if(o.update(h=>{let b=[...h,m];if(b.length>t){let k=b.shift();u(k.id);}return b}),y>0){let h=setTimeout(()=>a(f),y);i.set(f,h);}return f}function a(d){u(d),o.update(l=>l.filter(p=>p.id!==d));}function c(){for(let[d]of i)u(d);o.set([]);}function u(d){let l=i.get(d);l&&(clearTimeout(l),i.delete(d));}return {toasts:(()=>o()),position:r,success:(d,l)=>s("success",d,l),error:(d,l)=>s("error",d,l),info:(d,l)=>s("info",d,l),warning:(d,l)=>s("warning",d,l),add:s,dismiss:a,dismissAll:c}}function Gn(e={}){let{themes:t={light:{},dark:{}},storageKey:n$1="akash-theme",attribute:r="data-theme",syncSystem:o=true}=e,i=Object.keys(t);function s(){return typeof window>"u"?e.defaultTheme??"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function a(){if(typeof window<"u"&&n$1){let l=localStorage.getItem(n$1);if(l&&i.includes(l))return l}return e.defaultTheme??s()}let c=l(a()),u=m(()=>c()==="dark");function d(l){if(typeof document>"u")return;document.documentElement.setAttribute(r,l);let p=t[l];if(p)for(let[f,y]of Object.entries(p))document.documentElement.style.setProperty(f,y);document.documentElement.classList.remove(...i),document.documentElement.classList.add(l);}return n(()=>{let l=c();d(l),typeof window<"u"&&n$1&&localStorage.setItem(n$1,l);}),o&&typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",p=>{localStorage.getItem(n$1)||c.set(p.matches?"dark":"light");}),{current:()=>c(),isDark:u,set(l){i.includes(l)&&c.set(l);},toggle(){c.set(u()?"light":"dark");},setSystem(){typeof window<"u"&&n$1&&localStorage.removeItem(n$1),c.set(s());},themes:i}}function ne(e,t,n,r,o=3){let i,s,a,c,u;typeof e=="object"?(i=e.scrollTop,s=e.containerHeight,a=e.itemHeight,c=e.totalItems,u=e.overscan??3):(i=e,s=t,a=n,c=r,u=o);let d=Math.floor(i/a),l=Math.ceil(s/a),p=Math.max(0,d-u),f=Math.min(c,d+l+u);return {start:p,end:f,totalHeight:c*a,offsetTop:p*a}}function Jn(e){let t=l(0),n=l(e.containerHeight??400),r=e.overscan??3,o=m(()=>ne(t(),n(),e.itemHeight,e.items().length,r)),i=m(()=>{let c=o();return e.items().slice(c.start,c.end).map((u,d)=>({item:u,index:c.start+d}))});function s(c){let u=c.target;t.set(u.scrollTop);}function a(c){n.set(c);}return {range:o,visibleItems:i,onScroll:s,setContainerHeight:a,scrollTop:(()=>t())}}var Qn=B$1(e=>{let{itemHeight:t,containerHeight:n,overscan:r=3}=e.props,o=l(0);return ()=>{let i=e.props.each,s=n??400,a=ne(o(),s,t,i.length,r),c=document.createElement("div");c.style.height=`${s}px`,c.style.overflow="auto",c.style.position="relative",c.addEventListener("scroll",()=>{o.set(c.scrollTop);},{passive:true});let u$1=document.createElement("div");u$1.style.height=`${a.totalHeight}px`,u$1.style.position="relative";let d=document.createElement("div");d.style.position="absolute",d.style.top=`${a.offsetTop}px`,d.style.left="0",d.style.right="0";for(let l=a.start;l<a.end;l++){let p=i[l];if(!p)continue;let f=u(e.props.children(p,l));f instanceof HTMLElement&&(f.style.height=`${t}px`),d.appendChild(f);}return u$1.appendChild(d),c.appendChild(u$1),c}});function Yn(e){let t=typeof e=="function"?{loader:e}:e,{loader:n,loading:r,error:o,timeout:i,delay:s=200}=t,a=null,c=null,u$1=null;function d(){return c||(c=n().then(l=>{a=l.default;}).catch(l=>{u$1=l instanceof Error?l:new Error(String(l));}),c)}return B$1(l$1=>{let p=l("loading"),f=l(false);d().then(()=>{u$1?p.set("error"):p.set("ready");});let y=null;s>0?y=setTimeout(()=>f.set(true),s):f.set(true);let T=null;return i&&(T=setTimeout(()=>{p()==="loading"&&(u$1=new Error(`Async component timed out after ${i}ms`),p.set("error"));},i)),()=>{let m=p();return m!=="loading"&&(y&&clearTimeout(y),T&&clearTimeout(T)),m==="ready"&&a?a(l$1.props):m==="error"&&o&&u$1?u(o(u$1)):m==="loading"&&f()&&r?u(r()):document.createComment("async-loading")}})}function Te(e){let t=e.length;if(t===0)return [];let n=[],r=new Array(t).fill(-1),o=[];for(let a=0;a<t;a++){let c=e[a];if(c===-1)continue;let u=0,d=n.length;for(;u<d;){let l=u+d>>1;n[l]<c?u=l+1:d=l;}n[u]=c,o[u]=a,u>0&&(r[a]=o[u-1]);}let i=new Array(n.length),s=o[n.length-1];for(let a=n.length-1;a>=0;a--)i[a]=s,s=r[s];return i}function ve(e,t){let n=[],r=new Map;for(let a=0;a<e.length;a++)r.set(e[a],a);let o=new Array(t.length);for(let a=0;a<t.length;a++)o[a]=r.get(t[a])??-1;let i=new Set(t);for(let a=0;a<e.length;a++)i.has(e[a])||n.push({type:"remove",oldIndex:a});let s=new Set(Te(o));for(let a=0;a<t.length;a++)o[a]===-1?n.push({type:"insert",newIndex:a}):s.has(a)||n.push({type:"move",newIndex:a,oldIndex:o[a]});return n}function Xn(e,t){let n=ve(e,t),r=0,o=0,i=0;for(let s of n)s.type==="insert"?r++:s.type==="move"?o++:i++;return {inserts:r,moves:o,removes:i}}var I=false,M=new Map,be=0;function Zn(){I=true;}function er(){I=false,M.clear();}function tr(){return I}function nr(e){if(!I)return -1;let t=++be;return M.set(t,{id:t,createdAt:Date.now(),stackTrace:ar(),componentName:e??null,disposed:false}),t}function rr(e){if(!I||e===-1)return;let t=M.get(e);t&&(t.disposed=true,M.delete(e));}function or(){return Array.from(M.values())}function we(e=3e4){if(!I)return [];let t=Date.now(),n=[];for(let r of M.values())!r.disposed&&t-r.createdAt>e&&n.push({effectId:r.id,age:t-r.createdAt,componentName:r.componentName,stackTrace:r.stackTrace});return n}function ir(e=3e4){let t=we(e);if(t.length!==0){console.warn(`[AkashJS] ${t.length} potential effect leak(s) detected:`);for(let n of t){let r=n.componentName?` in ${n.componentName}`:"";console.warn(` Effect #${n.effectId}${r} \u2014 active for ${(n.age/1e3).toFixed(1)}s`),n.stackTrace&&console.warn(` Created at:
|
|
20
|
-
${n.stackTrace}`);}}}function
|
|
19
|
+
`;return t}var te="data-akash-head";function F(e){let t=typeof e=="function"?e:()=>e;if(typeof document>"u"){ne.push(t());return}let n$1=[],r=n(()=>{let o=t();for(let i of n$1)i.remove();if(n$1.length=0,o.title){let i=o.titleTemplate?o.titleTemplate.replace("%s",o.title):o.title;document.title=i;}for(let i of o.meta??[]){let s=document.createElement("meta");s.setAttribute(te,""),i.name&&s.setAttribute("name",i.name),i.property&&s.setAttribute("property",i.property),i.httpEquiv&&s.setAttribute("http-equiv",i.httpEquiv),s.setAttribute("content",i.content),document.head.appendChild(s),n$1.push(s);}for(let i of o.link??[]){let s=document.createElement("link");s.setAttribute(te,""),s.setAttribute("rel",i.rel),s.setAttribute("href",i.href),i.type&&s.setAttribute("type",i.type),document.head.appendChild(s),n$1.push(s);}for(let i of o.script??[]){let s=document.createElement("script");s.setAttribute(te,""),i.src&&s.setAttribute("src",i.src),i.type&&s.setAttribute("type",i.type),i.async&&s.setAttribute("async",""),i.defer&&s.setAttribute("defer",""),i.innerHTML&&(s.textContent=i.innerHTML),document.head.appendChild(s),n$1.push(s);}if(o.htmlAttrs)for(let[i,s]of Object.entries(o.htmlAttrs))document.documentElement.setAttribute(i,s);if(o.bodyAttrs)for(let[i,s]of Object.entries(o.bodyAttrs))document.body.setAttribute(i,s);});try{y(()=>{r();for(let o of n$1)o.remove();});}catch{}}function Rn(e){return e}function On(e,t){let n=[],r=[],o=[],i={},s=null,a=null,c={provide(d,u){h(d,u);},onError(d){r.push(d);},onBeforeMount(d){o.push(d);},config:i},l={use(d){return n.push(d),l},config(d,u){return i[d]=u,l},mount(d){if(a=typeof d=="string"?document.querySelector(d):d,!a)throw new Error(`[AkashJS] Mount target not found: ${d}`);for(let u of n)u.setup(c);for(let u of o)u();try{s=e(t??{}),a.appendChild(s);}catch(u){let p=u instanceof Error?u:new Error(String(u));if(r.length>0)for(let f of r)f(p);else throw p}},unmount(){s&&a&&(a.removeChild(s),s=null);}};return l}function Dn(e,t){let n=l(0),r=l(t?.immediate!==false),o=null;function i(){s(),o=setInterval(()=>n.update(a=>a+1),e);}function s(){o&&(clearInterval(o),o=null);}return r()&&i(),{count:(()=>n()),isActive:(()=>r()),pause(){r.set(false),s();},resume(){r.set(true),i();},reset(){n.set(0);},dispose(){s();}}}function Ln(e){let t=l(false),n=null;function r(){o(),t.set(false),n=setTimeout(()=>t.set(true),e);}function o(){n&&(clearTimeout(n),n=null);}return r(),{ready:(()=>t()),restart(){r();},dispose(){o();}}}function Mn(e,t){let n$1=l(e()),r=null;return n(()=>{let o=e();return r&&clearTimeout(r),r=setTimeout(()=>n$1.set(o),t),()=>{r&&clearTimeout(r);}}),(()=>n$1())}function In(e,t){let n$1=l(e()),r=0,o=null;return n(()=>{let i=e(),s=Date.now(),a=s-r;return a>=t?(n$1.set(i),r=s):(o&&clearTimeout(o),o=setTimeout(()=>{n$1.set(i),r=Date.now();},t-a)),()=>{o&&clearTimeout(o);}}),(()=>n$1())}function Hn(e=0){let t=l(e);return {count:(()=>t()),inc(n=1){t.update(r=>r+n);},dec(n=1){t.update(r=>r-n);},set(n){t.set(n);},reset(){t.set(e);}}}function jn(e=false){let t=l(e);return {value:(()=>t()),toggle(){t.update(n=>!n);},setTrue(){t.set(true);},setFalse(){t.set(false);}}}function Fn(e){let t,n$1=l(void 0);return n(()=>{let r=e();n$1.set(t),t=r;}),(()=>n$1())}function _n(e){if(typeof window>"u")return(()=>false);let t=window.matchMedia(e),n=l(t.matches),r=o=>n.set(o.matches);return t.addEventListener("change",r),(()=>n())}var Nn={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};function $n(e=Nn){let t=Object.entries(e).sort((s,a)=>s[1]-a[1]),n=l(typeof window<"u"?window.innerWidth:1024);if(typeof window<"u"){let s=()=>n.set(window.innerWidth);window.addEventListener("resize",s,{passive:true});}function r(){let s=n(),a="";for(let[c,l]of t)s>=l&&(a=c);return a||t[0]?.[0]||""}function o(s){let a=e[s];return a!==void 0&&n()>=a}function i(s){let a=e[s];return a!==void 0&&n()<a}return {current:r,gte:o,lt:i,width:(()=>n())}}function Kn(e,t,n$1="local"){let r=typeof window<"u"?n$1==="local"?localStorage:sessionStorage:null,o=t;if(r)try{let s=r.getItem(e);s!==null&&(o=JSON.parse(s));}catch{}let i=l(o);return r&&(n(()=>{let s=i();try{r.setItem(e,JSON.stringify(s));}catch{}}),typeof window<"u"&&window.addEventListener("storage",s=>{if(s.key===e&&s.newValue!==null)try{i.set(JSON.parse(s.newValue));}catch{}})),i}function Vn(e){let t=l(""),n=l(false),r=e?.timeout??2e3,o=null;async function i(s){typeof navigator>"u"||!navigator.clipboard||(await navigator.clipboard.writeText(s),t.set(s),n.set(true),o&&clearTimeout(o),o=setTimeout(()=>n.set(false),r));}return {text:(()=>t()),copied:(()=>n()),copy:i}}function Wn(){if(typeof window>"u")return(()=>true);let e=l(navigator.onLine);return window.addEventListener("online",()=>e.set(true)),window.addEventListener("offline",()=>e.set(false)),(()=>e())}function zn(e){let t=l({latitude:null,longitude:null,accuracy:null,error:null,loading:true});return typeof navigator<"u"&&navigator.geolocation?navigator.geolocation.watchPosition(n=>{t.set({latitude:n.coords.latitude,longitude:n.coords.longitude,accuracy:n.coords.accuracy,error:null,loading:false});},n=>{t.set({latitude:null,longitude:null,accuracy:null,error:n,loading:false});},e):t.set({...t(),loading:false}),(()=>t())}function qn(){let e=l(typeof window<"u"?window.innerWidth:0),t=l(typeof window<"u"?window.innerHeight:0);return typeof window<"u"&&window.addEventListener("resize",()=>{e.set(window.innerWidth),t.set(window.innerHeight);},{passive:true}),{width:(()=>e()),height:(()=>t())}}function Bn(e,t,n={}){if(typeof document>"u")return ()=>{};let{events:r=["pointerdown"],ignore:o=[],active:i=true}=n,s=i;function a(){return typeof e=="function"?e():e}function c(u){let p=u.target;if(!p)return false;for(let f of o)if(typeof f=="string"){if(p.closest(f))return true}else if(f===p||f.contains(p))return true;return false}function l(u){if(!s)return;let p=a();if(!p)return;let f=u.target;p===f||p.contains(f)||c(u)||t(u);}for(let u of r)document.addEventListener(u,l,{passive:true,capture:true});let d=()=>{for(let u of r)document.removeEventListener(u,l,{capture:true});};return d.enable=()=>{s=true;},d.disable=()=>{s=false;},d}var Un=B$1(e=>{let t=null,n=null;function r(){let o=e.props.target;return o?typeof o=="string"?document.querySelector(o)??document.body:o:document.body}return y(()=>{n&&t&&t.removeChild(n);}),()=>{t=r();let o=e.children();return n=u(o),t.appendChild(n),document.createComment("portal")}});var Gn=0;function Jn(e={}){let{maxVisible:t=5,defaultDuration:n=3e3,position:r="top-right"}=e,o=l([]),i=new Map;function s(d,u,p){let f=`toast-${++Gn}`,y=p?.duration??n,h=p?.dismissible??true,m={id:f,type:d,message:u,duration:y,dismissible:h,createdAt:Date.now()};if(o.update(v=>{let b=[...v,m];if(b.length>t){let k=b.shift();l$1(k.id);}return b}),y>0){let v=setTimeout(()=>a(f),y);i.set(f,v);}return f}function a(d){l$1(d),o.update(u=>u.filter(p=>p.id!==d));}function c(){for(let[d]of i)l$1(d);o.set([]);}function l$1(d){let u=i.get(d);u&&(clearTimeout(u),i.delete(d));}return {toasts:(()=>o()),position:r,success:(d,u)=>s("success",d,u),error:(d,u)=>s("error",d,u),info:(d,u)=>s("info",d,u),warning:(d,u)=>s("warning",d,u),add:s,dismiss:a,dismissAll:c}}function Qn(e={}){let{themes:t={light:{},dark:{}},storageKey:n$1="akash-theme",attribute:r="data-theme",syncSystem:o=true}=e,i=Object.keys(t);function s(){return typeof window>"u"?e.defaultTheme??"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function a(){if(typeof window<"u"&&n$1){let u=localStorage.getItem(n$1);if(u&&i.includes(u))return u}return e.defaultTheme??s()}let c=l(a()),l$1=m(()=>c()==="dark");function d(u){if(typeof document>"u")return;document.documentElement.setAttribute(r,u);let p=t[u];if(p)for(let[f,y]of Object.entries(p))document.documentElement.style.setProperty(f,y);document.documentElement.classList.remove(...i),document.documentElement.classList.add(u);}return n(()=>{let u=c();d(u),typeof window<"u"&&n$1&&localStorage.setItem(n$1,u);}),o&&typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",p=>{localStorage.getItem(n$1)||c.set(p.matches?"dark":"light");}),{current:()=>c(),isDark:l$1,set(u){i.includes(u)&&c.set(u);},toggle(){c.set(l$1()?"light":"dark");},setSystem(){typeof window<"u"&&n$1&&localStorage.removeItem(n$1),c.set(s());},themes:i}}function re(e,t,n,r,o=3){let i,s,a,c,l;typeof e=="object"?(i=e.scrollTop,s=e.containerHeight,a=e.itemHeight,c=e.totalItems,l=e.overscan??3):(i=e,s=t,a=n,c=r,l=o);let d=Math.floor(i/a),u=Math.ceil(s/a),p=Math.max(0,d-l),f=Math.min(c,d+u+l);return {start:p,end:f,totalHeight:c*a,offsetTop:p*a}}function Yn(e){let t=l(0),n=l(e.containerHeight??400),r=e.overscan??3,o=m(()=>re(t(),n(),e.itemHeight,e.items().length,r)),i=m(()=>{let c=o();return e.items().slice(c.start,c.end).map((l,d)=>({item:l,index:c.start+d}))});function s(c){let l=c.target;t.set(l.scrollTop);}function a(c){n.set(c);}return {range:o,visibleItems:i,onScroll:s,setContainerHeight:a,scrollTop:(()=>t())}}var Xn=B$1(e=>{let{itemHeight:t,containerHeight:n,overscan:r=3}=e.props,o=l(0);return ()=>{let i=e.props.each,s=n??400,a=re(o(),s,t,i.length,r),c=document.createElement("div");c.style.height=`${s}px`,c.style.overflow="auto",c.style.position="relative",c.addEventListener("scroll",()=>{o.set(c.scrollTop);},{passive:true});let l=document.createElement("div");l.style.height=`${a.totalHeight}px`,l.style.position="relative";let d=document.createElement("div");d.style.position="absolute",d.style.top=`${a.offsetTop}px`,d.style.left="0",d.style.right="0";for(let u$1=a.start;u$1<a.end;u$1++){let p=i[u$1];if(!p)continue;let f=u(e.props.children(p,u$1));f instanceof HTMLElement&&(f.style.height=`${t}px`),d.appendChild(f);}return l.appendChild(d),c.appendChild(l),c}});function Zn(e){let t=typeof e=="function"?{loader:e}:e,{loader:n,loading:r,error:o,timeout:i,delay:s=200}=t,a=null,c=null,l$1=null;function d(){return c||(c=n().then(u=>{a=u.default;}).catch(u=>{l$1=u instanceof Error?u:new Error(String(u));}),c)}return B$1(u$1=>{let p=l("loading"),f=l(false);d().then(()=>{l$1?p.set("error"):p.set("ready");});let y=null;s>0?y=setTimeout(()=>f.set(true),s):f.set(true);let h=null;return i&&(h=setTimeout(()=>{p()==="loading"&&(l$1=new Error(`Async component timed out after ${i}ms`),p.set("error"));},i)),()=>{let m=p();return m!=="loading"&&(y&&clearTimeout(y),h&&clearTimeout(h)),m==="ready"&&a?a(u$1.props):m==="error"&&o&&l$1?u(o(l$1)):m==="loading"&&f()&&r?u(r()):document.createComment("async-loading")}})}function Te(e){let t=e.length;if(t===0)return [];let n=[],r=new Array(t).fill(-1),o=[];for(let a=0;a<t;a++){let c=e[a];if(c===-1)continue;let l=0,d=n.length;for(;l<d;){let u=l+d>>1;n[u]<c?l=u+1:d=u;}n[l]=c,o[l]=a,l>0&&(r[a]=o[l-1]);}let i=new Array(n.length),s=o[n.length-1];for(let a=n.length-1;a>=0;a--)i[a]=s,s=r[s];return i}function be(e,t){let n=[],r=new Map;for(let a=0;a<e.length;a++)r.set(e[a],a);let o=new Array(t.length);for(let a=0;a<t.length;a++)o[a]=r.get(t[a])??-1;let i=new Set(t);for(let a=0;a<e.length;a++)i.has(e[a])||n.push({type:"remove",oldIndex:a});let s=new Set(Te(o));for(let a=0;a<t.length;a++)o[a]===-1?n.push({type:"insert",newIndex:a}):s.has(a)||n.push({type:"move",newIndex:a,oldIndex:o[a]});return n}function er(e,t){let n=be(e,t),r=0,o=0,i=0;for(let s of n)s.type==="insert"?r++:s.type==="move"?o++:i++;return {inserts:r,moves:o,removes:i}}var I=false,M=new Map,we=0;function tr(){I=true;}function nr(){I=false,M.clear();}function rr(){return I}function or(e){if(!I)return -1;let t=++we;return M.set(t,{id:t,createdAt:Date.now(),stackTrace:lr(),componentName:e??null,disposed:false}),t}function ir(e){if(!I||e===-1)return;let t=M.get(e);t&&(t.disposed=true,M.delete(e));}function sr(){return Array.from(M.values())}function Se(e=3e4){if(!I)return [];let t=Date.now(),n=[];for(let r of M.values())!r.disposed&&t-r.createdAt>e&&n.push({effectId:r.id,age:t-r.createdAt,componentName:r.componentName,stackTrace:r.stackTrace});return n}function ar(e=3e4){let t=Se(e);if(t.length!==0){console.warn(`[AkashJS] ${t.length} potential effect leak(s) detected:`);for(let n of t){let r=n.componentName?` in ${n.componentName}`:"";console.warn(` Effect #${n.effectId}${r} \u2014 active for ${(n.age/1e3).toFixed(1)}s`),n.stackTrace&&console.warn(` Created at:
|
|
20
|
+
${n.stackTrace}`);}}}function cr(){return {enabled:I,activeCount:M.size,totalTracked:we}}function lr(){try{let t=new Error().stack;return t?t.split(`
|
|
21
21
|
`).slice(3,8).join(`
|
|
22
|
-
`):null}catch{return null}}var
|
|
22
|
+
`):null}catch{return null}}var ur=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])',"[contenteditable]"].join(", ");function dr(e,t={}){let{initialFocus:n,returnFocus:r=true,escapeDeactivates:o=true,allowOutsideClick:i=false,onDeactivate:s}=t,a=l(false),c=null;function l$1(){return typeof e=="function"?e():e}function d(){let h=l$1();return h?Array.from(h.querySelectorAll(ur)):[]}function u(h){if(h.key==="Escape"&&o){h.preventDefault(),y(),s?.();return}if(h.key!=="Tab")return;let m=d();if(m.length===0)return;let v=m[0],b=m[m.length-1];h.shiftKey?document.activeElement===v&&(h.preventDefault(),b.focus()):document.activeElement===b&&(h.preventDefault(),v.focus());}function p(h){if(!a()||i)return;let m=l$1();if(!m)return;let v=h.relatedTarget;if(v&&!m.contains(v)){let b=d();b.length>0&&b[0].focus();}}function f(){if(a())return;a.set(true),c=document.activeElement,document.addEventListener("keydown",u,true);let h=l$1();h&&h.addEventListener("focusout",p),requestAnimationFrame(()=>{if(n)(typeof n=="string"?l$1()?.querySelector(n):n)?.focus();else {let m=d();m.length>0&&m[0].focus();}});}function y(){if(!a())return;a.set(false),document.removeEventListener("keydown",u,true);let h=l$1();h&&h.removeEventListener("focusout",p),r&&c&&(c.focus(),c=null);}return {activate:f,deactivate:y,active:()=>a()}}var z=null;function pr(){if(z&&document.body.contains(z))return z;let e=document.createElement("div");return e.setAttribute("role","status"),e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),e.style.cssText=["position: absolute","width: 1px","height: 1px","padding: 0","margin: -1px","overflow: hidden","clip: rect(0,0,0,0)","white-space: nowrap","border: 0"].join("; "),document.body.appendChild(e),z=e,e}function fr(){return (e,t="polite")=>{if(typeof document>"u")return;let n=pr();n.setAttribute("aria-live",t),n.textContent="",requestAnimationFrame(()=>{n.textContent=e;});}}function mr(){let e=[],t=new Set,n=false;function r(s){for(let a of e)if(!(a.scope&&!t.has(a.scope))&&gr(s,a.key)){a.preventDefault!==false&&s.preventDefault(),a.handler(s);return}}function o(){n||typeof document>"u"||(document.addEventListener("keydown",r),n=true);}function i(s,a,c){let l={key:s,handler:a,scope:c?.scope,description:c?.description??"",preventDefault:c?.preventDefault};return e.push(l),o(),()=>{let d=e.indexOf(l);d!==-1&&e.splice(d,1);}}return {bind:i,enableScope(s){t.add(s);},disableScope(s){t.delete(s);},getBindings(){return e.map(s=>({key:yr(s.key),description:s.description??"",scope:s.scope}))},dispose(){e.length=0,typeof document<"u"&&document.removeEventListener("keydown",r),n=false;}}}function gr(e,t){let n=t.toLowerCase().split("+"),r=n.pop(),o=n.includes("mod"),i=n.includes("ctrl"),s=n.includes("shift"),a=n.includes("alt"),l=typeof navigator<"u"&&navigator.platform?.includes("Mac")?e.metaKey:e.ctrlKey;return o&&!l||i&&!e.ctrlKey||s&&!e.shiftKey||a&&!e.altKey?false:e.key.toLowerCase()===r||e.code.toLowerCase()===r}function yr(e){let t=typeof navigator<"u"&&navigator.platform?.includes("Mac");return e.replace(/mod/gi,t?"\u2318":"Ctrl").replace(/shift/gi,t?"\u21E7":"Shift").replace(/alt/gi,t?"\u2325":"Alt").replace(/\+/g,t?"":"+")}var hr=B$1(e=>{let t=l(false),n=l(false);return ()=>{let{src:r,alt:o,width:i,height:s,loading:a="lazy",srcset:c,sizes:l,placeholder:d,blurDataUrl:u,class:p,fallbackSrc:f,onLoad:y,onError:h}=e.props,m=document.createElement("div");if(m.style.position="relative",m.style.display="inline-block",m.style.overflow="hidden",i&&(m.style.width=`${i}px`),s&&(m.style.height=`${s}px`),d==="blur"&&u&&!t()){let b=document.createElement("img");b.src=u,b.alt="",b.setAttribute("aria-hidden","true"),b.style.cssText="position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:blur(20px);transform:scale(1.1);",m.appendChild(b);}let v=document.createElement("img");if(v.alt=o,v.loading=a,n()&&f?v.src=f:v.src=r,c&&(v.srcset=c),l&&(v.sizes=l),i&&(v.width=i),s&&(v.height=s),p&&(v.className=p),v.style.display="block",v.style.width="100%",v.style.height="auto",v.addEventListener("load",()=>{t.set(true),y?.();}),v.addEventListener("error",b=>{n.set(true),h?.(b);}),a==="lazy"&&typeof IntersectionObserver<"u"){v.setAttribute("data-src",v.src);let b=v.src;v.removeAttribute("src");let k=new IntersectionObserver(T=>{T[0].isIntersecting&&(v.src=b,k.disconnect());},{rootMargin:"200px"});requestAnimationFrame(()=>{v.parentElement?k.observe(v):v.src=b;});}return m.appendChild(v),m}});function vr(e){let{onLoadMore:t,hasMore:n,rootMargin:r="200px",threshold:o=0}=e,i=l(false),s=l(false),a=null,c=null,l$1=false;async function d(){if(!(i()||s()||l$1)){if(!n()){s.set(true);return}i.set(true);try{await t(),n()||s.set(!0);}finally{i.set(false);}}}function u(f){typeof IntersectionObserver>"u"||(a=new IntersectionObserver(y=>{y[0]?.isIntersecting&&d();},{rootMargin:r,threshold:o}),a.observe(f));}function p(){return c||(c=document.createElement("div"),c.setAttribute("data-akash-sentinel",""),c.style.height="1px",c.setAttribute("aria-hidden","true"),requestAnimationFrame(()=>{c&&!l$1&&u(c);}),c)}return {sentinel:p,loading:()=>i(),done:()=>s(),reset(){s.set(false),i.set(false);},dispose(){l$1=true,a?.disconnect(),a=null;}}}function xe(...e){let t=[];for(let n of e)if(n){if(typeof n=="string")t.push(n);else if(Array.isArray(n)){let r=xe(...n);r&&t.push(r);}else if(typeof n=="object")for(let[r,o]of Object.entries(n))o&&t.push(r);}return t.join(" ")}function Tr(e){let t=[];for(let[n,r]of Object.entries(e)){if(r==null)continue;let o=oe(n),i=typeof r=="number"&&!Ee.has(n)?`${r}px`:String(r);t.push(`${o}: ${i}`);}return t.join("; ")}function br(e,t){for(let[n,r]of Object.entries(t))if(r==null)e.style.removeProperty(oe(n));else {let o=typeof r=="number"&&!Ee.has(n)?`${r}px`:String(r);e.style.setProperty(oe(n),o);}}function oe(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}var Ee=new Set(["animationIterationCount","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","fillOpacity","flex","flexGrow","flexPositive","flexShrink","flexNegative","flexOrder","fontWeight","gridColumn","gridRow","lineClamp","lineHeight","opacity","order","orphans","tabSize","widows","zIndex","zoom"]);function wr(e){let{data:t,columns:n,pageSize:r=0,initialSort:o}=e,i=l(o??{column:null,direction:null}),s=l(""),a=l(1),c=l(Object.fromEntries(n.map(T=>[T.key,T.visible!==false]))),l$1=m(()=>{let T=c();return n.filter(S=>T[S.key])}),d=m(()=>{let T=s().toLowerCase().trim();if(!T)return t();let S=n.filter(C=>C.filterable),A=S.length>0?S:n;return t().filter(C=>A.some(R=>{let V=ie(C,R.key);return String(V).toLowerCase().includes(T)}))}),u=m(()=>{let{column:T,direction:S}=i(),A=[...d()];if(!T||!S)return A;let C=n.find(R=>R.key===T);return C?A.sort((R,V)=>{if(C.compare){let me=C.compare(R,V);return S==="desc"?-me:me}let nt=ie(R,T),rt=ie(V,T),fe=Sr(nt,rt);return S==="desc"?-fe:fe}):A}),p=m(()=>d().length),f=m(()=>r<=0?1:Math.max(1,Math.ceil(p()/r))),y=m(()=>{let T=u();if(r<=0)return T;let S=(a()-1)*r;return T.slice(S,S+r)});function h(T){let S=i();S.column===T?S.direction==="asc"?i.set({column:T,direction:"desc"}):S.direction==="desc"?i.set({column:null,direction:null}):i.set({column:T,direction:"asc"}):i.set({column:T,direction:"asc"}),a.set(1);}function m$1(T){s.set(T),a.set(1);}function v(T){c.update(S=>({...S,[T]:!S[T]}));}function b(T){c.update(S=>({...S,[T]:true}));}function k(T){c.update(S=>({...S,[T]:false}));}return {rows:y,allRows:u,totalRows:p,visibleColumns:l$1,sortState:()=>i(),filterText:()=>s(),page:()=>a(),totalPages:f,sort:h,filter:m$1,toggleColumn:v,showColumn:b,hideColumn:k,nextPage(){a()<f()&&a.update(T=>T+1);},prevPage(){a()>1&&a.update(T=>T-1);},goToPage(T){a.set(Math.max(1,Math.min(T,f())));},reset(){i.set({column:null,direction:null}),s.set(""),a.set(1);}}}function ie(e,t){return t.split(".").reduce((n,r)=>n?.[r],e)}function Sr(e,t){return e==null&&t==null?0:e==null?-1:t==null?1:typeof e=="number"&&typeof t=="number"?e-t:String(e).localeCompare(String(t))}function ke(e){let t=Array.isArray(e)?e:[e];for(let n of t){let r={"@context":"https://schema.org",...n};F({script:[{type:"application/ld+json",innerHTML:JSON.stringify(r)}]});}}function Ce(e){let t=[{property:"og:title",content:e.title}];e.description&&t.push({property:"og:description",content:e.description}),e.image&&t.push({property:"og:image",content:e.image}),e.url&&t.push({property:"og:url",content:e.url}),e.type&&t.push({property:"og:type",content:e.type}),e.siteName&&t.push({property:"og:site_name",content:e.siteName}),e.locale&&t.push({property:"og:locale",content:e.locale}),F({meta:t});}function Pe(e){let t=[{name:"twitter:title",content:e.title}];e.card&&t.push({name:"twitter:card",content:e.card}),e.description&&t.push({name:"twitter:description",content:e.description}),e.image&&t.push({name:"twitter:image",content:e.image}),e.site&&t.push({name:"twitter:site",content:e.site}),e.creator&&t.push({name:"twitter:creator",content:e.creator}),F({meta:t});}function xr(e){let t=[];e.description&&t.push({name:"description",content:e.description}),e.robots&&t.push({name:"robots",content:e.robots});let n=[];e.canonical&&n.push({rel:"canonical",href:e.canonical}),F({title:e.title,meta:t,link:n}),e.openGraph&&Ce(e.openGraph),e.twitter&&Pe(e.twitter),e.structuredData&&ke(e.structuredData);}function Er(e,t){let n=`<?xml version="1.0" encoding="UTF-8"?>
|
|
23
23
|
`;n+=`<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
|
24
24
|
`;for(let r of t)n+=` <url>
|
|
25
25
|
`,n+=` <loc>${e}${r.url}</loc>
|
|
@@ -28,7 +28,7 @@ ${n.stackTrace}`);}}}function sr(){return {enabled:I,activeCount:M.size,totalTra
|
|
|
28
28
|
`),r.priority!=null&&(n+=` <priority>${r.priority}</priority>
|
|
29
29
|
`),n+=` </url>
|
|
30
30
|
`;return n+=`</urlset>
|
|
31
|
-
`,n}function
|
|
31
|
+
`,n}function kr(e,t,...n){return t(e,...n)}function Cr(...e){return (t,...n)=>{let r=t;for(let o of e)r=o(r,...n);return r}}function Pr(e){return e}var Ar=e=>String(e).toUpperCase(),Rr=e=>String(e).toLowerCase(),Or=e=>{let t=String(e);return t.charAt(0).toUpperCase()+t.slice(1)},Dr=e=>String(e).replace(/\b\w/g,t=>t.toUpperCase()),Lr=e=>String(e).trim(),Mr=(e,t=50,n="...")=>{let r=String(e);return r.length<=t?r:r.slice(0,t-n.length)+n},Ir=(e,t="medium",n)=>{let r=e instanceof Date?e:new Date(e);if(isNaN(r.getTime()))return String(e);if(t==="iso")return r.toISOString();let o=n??"en-US",i={short:{year:"2-digit",month:"numeric",day:"numeric"},medium:{year:"numeric",month:"numeric",day:"numeric"},long:{year:"numeric",month:"long",day:"numeric"},full:{weekday:"long",year:"numeric",month:"long",day:"numeric"},time:{hour:"numeric",minute:"2-digit"}};return new Intl.DateTimeFormat(o,i[t]).format(r)},Hr=(e,t="USD",n)=>new Intl.NumberFormat(n??"en-US",{style:"currency",currency:t}).format(Number(e)),jr=(e,t,n)=>{let r={};if(t){let[o,i]=t.split("-").map(Number);r.minimumFractionDigits=o,r.maximumFractionDigits=i??o;}return new Intl.NumberFormat(n??"en-US",r).format(Number(e))},Fr=(e,t=0,n)=>new Intl.NumberFormat(n??"en-US",{style:"percent",minimumFractionDigits:t,maximumFractionDigits:t}).format(Number(e)),_r=(e,t=2)=>JSON.stringify(e,null,t),Nr=(e,t,n)=>{let r=n??`${t}s`;return `${e} ${e===1?t:r}`},$r=(e,t)=>{let r=(e instanceof Date?e.getTime():Number(e))-Date.now(),o=Math.abs(r),i=[[6e4,"second"],[36e5,"minute"],[864e5,"hour"],[2592e6,"day"],[31536e6,"month"],[1/0,"year"]],s={second:1e3,minute:6e4,hour:36e5,day:864e5,month:2592e6,year:31536e6},a="second";for(let[u,p]of i)if(o<u){a=p;break}let c=Math.round(r/s[a]);if(typeof Intl<"u"&&Intl.RelativeTimeFormat)return new Intl.RelativeTimeFormat(t??"en",{numeric:"auto"}).format(c,a);let l=Math.abs(c),d=c<0?"ago":"from now";return `${l} ${a}${l!==1?"s":""} ${d}`};function H(e){return {_type:"directive",hooks:e}}function Kr(e){return H({mounted(t,n){let r=e(t,n);typeof r=="function"&&(t.__directiveCleanup=r);},unmounted(t){t.__directiveCleanup?.();}})}var $=Symbol("akash.directives");function Vr(e,t,n,r){let o={value:n,arg:r?.arg,modifiers:r?.modifiers},i=e[$]??[];i.push({directive:t,binding:o}),e[$]=i,t.hooks.mounted?.(e,o);}function Wr(e,t,n){let o=(e[$]??[]).find(i=>i.directive===t);if(o){let i=o.binding.value;o.binding={...o.binding,value:n,oldValue:i},t.hooks.updated?.(e,o.binding);}}function zr(e){let t=e[$]??[];for(let n of t)n.directive.hooks.unmounted?.(e,n.binding);delete e[$];}var qr=H({mounted(e){requestAnimationFrame(()=>e.focus());}}),Br=H({mounted(e,{value:t}){let n=r=>{e.contains(r.target)||t();};document.addEventListener("click",n,true),e.__vClickOutside=n;},unmounted(e){document.removeEventListener("click",e.__vClickOutside,true),delete e.__vClickOutside;}}),Ur=H({mounted(e,{value:t}){let n=null,r=t.duration??500,o=()=>{n=setTimeout(t.handler,r);},i=()=>{n&&(clearTimeout(n),n=null);};e.addEventListener("pointerdown",o),e.addEventListener("pointerup",i),e.addEventListener("pointerleave",i),e.__vLongPress={start:o,cancel:i};},unmounted(e){let t=e.__vLongPress;t&&(e.removeEventListener("pointerdown",t.start),e.removeEventListener("pointerup",t.cancel),e.removeEventListener("pointerleave",t.cancel));}}),Gr=H({mounted(e,{value:t}){let n=new IntersectionObserver(r=>{t(r[0].isIntersecting);});n.observe(e),e.__vIntersect=n;},unmounted(e){e.__vIntersect?.disconnect();}}),Jr=H({mounted(e,{value:t}){let n=new ResizeObserver(r=>{t(r[0]);});n.observe(e),e.__vResize=n;},unmounted(e){e.__vResize?.disconnect();}});function Qr(e,t,n={}){let{props:r=[],shadow:o=true,styles:i}=n;class s extends HTMLElement{static get observedAttributes(){return r}_root;_mounted=false;_props={};constructor(){super(),this._root=o?this.attachShadow({mode:"open"}):this;}connectedCallback(){for(let c of r){let l=this.getAttribute(c);l!==null&&(this._props[c]=q(l));}this._render(),this._mounted=true;}disconnectedCallback(){for(;this._root.firstChild;)this._root.removeChild(this._root.firstChild);this._mounted=false;}attributeChangedCallback(c,l,d){this._props[c]=d!==null?q(d):void 0,this._mounted&&this._render();}_render(){for(;this._root.firstChild;)this._root.removeChild(this._root.firstChild);if(o&&i){let l=document.createElement("style");l.textContent=i,this._root.appendChild(l);}let c=t(this._props);this._root.appendChild(c);}setProps(c){Object.assign(this._props,c),this._mounted&&this._render();}}return typeof customElements<"u"&&!customElements.get(e)&&(n.extends?customElements.define(e,s,{extends:n.extends}):customElements.define(e,s)),s}function Yr(e,t={}){let{props:n=[],shadow:r=true,styles:o}=t;return class extends HTMLElement{static get observedAttributes(){return n}_root;_mounted=false;_props={};constructor(){super(),this._root=r?this.attachShadow({mode:"open"}):this;}connectedCallback(){for(let i of n){let s=this.getAttribute(i);s!==null&&(this._props[i]=q(s));}this._render(),this._mounted=true;}disconnectedCallback(){for(;this._root.firstChild;)this._root.removeChild(this._root.firstChild);this._mounted=false;}attributeChangedCallback(i,s,a){this._props[i]=a!==null?q(a):void 0,this._mounted&&this._render();}_render(){for(;this._root.firstChild;)this._root.removeChild(this._root.firstChild);if(r&&o){let i=document.createElement("style");i.textContent=o,this._root.appendChild(i);}this._root.appendChild(e(this._props));}}}function q(e){try{return JSON.parse(e)}catch{return e}}var Xr=`<!DOCTYPE html>
|
|
32
32
|
<html lang="en">
|
|
33
33
|
<head>
|
|
34
34
|
<meta charset="UTF-8">
|
|
@@ -39,14 +39,14 @@ ${n.stackTrace}`);}}}function sr(){return {enabled:I,activeCount:M.size,totalTra
|
|
|
39
39
|
<div id="app">{{content}}</div>
|
|
40
40
|
{{scripts}}
|
|
41
41
|
</body>
|
|
42
|
-
</html>`;async function
|
|
42
|
+
</html>`;async function Zr(e){let{routes:t,render:n,outDir:r="dist",template:o=Xr,onPage:i,onError:s,concurrency:a=5}=e,c=Date.now(),l=typeof t=="function"?await t():t,d={rendered:[],errors:[],duration:0};for(let u=0;u<l.length;u+=a){let p=l.slice(u,u+a);await Promise.all(p.map(async f=>{try{let y=await n(f),h=o.replace("{{content}}",y).replace("{{head}}","").replace("{{scripts}}",""),m=Ae(f);d.rendered.push({url:f,file:`${r}/${m}`,size:new Blob([h]).size}),i?.(f,h);}catch(y){let h=y instanceof Error?y:new Error(String(y));d.errors.push({url:f,error:h.message}),s?.(f,h);}}));}return d.duration=Date.now()-c,d}function eo(e){return e.filter(t=>!t.path.includes(":")&&!t.path.includes("*")).map(t=>t.path)}function to(e,t){return t.map(n=>{let r=e;for(let[o,i]of Object.entries(n))r=r.replace(`:${o}`,i);return r})}function Ae(e){let t=e.replace(/^\//,"").replace(/\/$/,"");return t?`${t}/index.html`:"index.html"}function no(e,t){let n=`<?xml version="1.0" encoding="UTF-8"?>
|
|
43
43
|
`;n+=`<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
|
44
44
|
`;for(let r of t.rendered)n+=` <url>
|
|
45
45
|
`,n+=` <loc>${e}${r.url}</loc>
|
|
46
46
|
`,n+=` <lastmod>${new Date().toISOString().split("T")[0]}</lastmod>
|
|
47
47
|
`,n+=` </url>
|
|
48
48
|
`;return n+=`</urlset>
|
|
49
|
-
`,n}function
|
|
49
|
+
`,n}function Re(e$1,t,n$1,r){let o=[],i=e(),s=n(()=>{let a=String(n$1());for(let d of o)d.parentNode&&d.parentNode.removeChild(d);o=[];let c=r[a]??r._default,l=t.parentNode;if(c&&l){let d=i?f(i,c):c(),u=d instanceof DocumentFragment?Array.from(d.childNodes):[d];for(let p of u)l.insertBefore(p,t);o=u;}},{render:true});return ()=>{s();for(let a of o)a.parentNode&&a.parentNode.removeChild(a);}}var ro=B$1(e=>()=>{let t=document.createElement("div");t.style.display="contents";let n=document.createComment("switch");t.appendChild(n);let r={...e.props.cases};return e.props.fallback&&(r._default=()=>u(e.props.fallback())),Re(t,n,()=>e.props.on,Object.fromEntries(Object.entries(r).map(([o,i])=>[o,()=>u(i())]))),t});function oo(e,t){let n=String(e),r=t[n]??t._;return r?r(e):void 0}var io=0;function so(e){return {_type:"provider",factory:e.factory,providedIn:e.providedIn,multi:e.multi,_id:Symbol(`provider-${++io}`)}}var L=new Map;function De(e=[],t){let n=new Map,r=new Map,o=new Map;for(let s of e)o.set(s.provide._id,s);let i={get(s){let a=s._id;if(s.multi){if(r.has(a))return r.get(a);let d=[],u=o.get(a);if(u?.useFactory?d.push(u.useFactory()):u?.useValue!==void 0&&d.push(u.useValue),t?.has(s)){let p=t.get(s);Array.isArray(p)&&d.push(...p);}return r.set(a,d),d}if(n.has(a))return n.get(a);if(s.providedIn==="root"&&L.has(a))return L.get(a);let c=o.get(a);if(c){let d=ao(c,i);return n.set(a,d),d}if(t)return t.get(s);let l=s.factory();return s.providedIn==="root"?L.set(a,l):n.set(a,l),l},has(s){return n.has(s._id)||o.has(s._id)||s.providedIn==="root"&&L.has(s._id)?true:t?t.has(s):false},createChild(s){return De(s??[],i)},dispose(){n.clear(),r.clear();}};return i}function ao(e,t){return e.useValue!==void 0?e.useValue:e.useFactory?e.useFactory():e.useExisting?t.get(e.useExisting):e.provide.factory()}function co(e){{if(e.providedIn==="root"){if(L.has(e._id))return L.get(e._id);let t=e.factory();return L.set(e._id,t),t}return e.factory()}}function lo(){L.clear();}function uo(e,t={}){let{trigger:n="viewport",loading:r,error:o,prefetch:i=false,minLoadTime:s=0,rootMargin:a="200px"}=t,c=null,l$1=null,d=null;function u$1(){if(l$1)return l$1;let p=Date.now();return l$1=e().then(async f=>{let y=Date.now()-p;s>0&&y<s&&await new Promise(h=>setTimeout(h,s-y)),c=f.default;}).catch(f=>{d=f instanceof Error?f:new Error(String(f));}),l$1}return i&&u$1(),B$1(p=>{let f=l("idle");async function h(){f()==="idle"&&(f.set("loading"),await u$1(),f.set(d?"error":"ready"));}return ()=>{let m=document.createElement("div");m.style.display="contents";let v=f();return v==="ready"&&c?(m.appendChild(c(p.props)),m):v==="error"&&o&&d?(m.appendChild(u(o(d))),m):(r&&v==="loading"&&m.appendChild(u(r())),v==="idle"&&po(m,n,h,a).then(b=>{}),m)}})}async function po(e,t,n,r){return t==="immediate"?(n(),()=>{}):t==="viewport"?fo(e,n,r):t==="interaction"||t==="hover"?mo(e,n,t):t==="idle"?go(n):typeof t=="object"&&t.type==="timer"?yo(n,t.delay):typeof t=="object"&&t.type==="custom"?ho(n,t.condition):(n(),()=>{})}function fo(e,t,n){if(typeof IntersectionObserver>"u")return t(),()=>{};let r=new IntersectionObserver(o=>{o[0]?.isIntersecting&&(r.disconnect(),t());},{rootMargin:n});return requestAnimationFrame(()=>r.observe(e)),()=>r.disconnect()}function mo(e,t,n){let r=n==="hover"?["mouseenter","focusin"]:["click","mouseenter","focusin","touchstart"],o=()=>{for(let i of r)e.removeEventListener(i,o);t();};for(let i of r)e.addEventListener(i,o,{once:true,passive:true});return ()=>{for(let i of r)e.removeEventListener(i,o);}}function go(e){if(typeof requestIdleCallback<"u"){let n=requestIdleCallback(()=>e());return ()=>cancelIdleCallback(n)}let t=setTimeout(e,200);return ()=>clearTimeout(t)}function yo(e,t){let n=setTimeout(e,t);return ()=>clearTimeout(n)}function ho(e,t){let n=()=>{t()?e():requestAnimationFrame(n);};return requestAnimationFrame(n),()=>{}}function Le(){return typeof document<"u"&&"startViewTransition"in document}function vo(e,t={}){let{className:n,onBefore:r,onAfter:o,fallback:i="instant"}=t;if(r?.(),Le()){n&&document.documentElement.classList.add(n);let c=document.startViewTransition(async()=>{await e();});return {finished:c.finished.then(()=>{n&&document.documentElement.classList.remove(n),o?.();}),updateCallbackDone:c.updateCallbackDone,ready:c.ready,skipTransition:()=>c.skipTransition()}}if(i==="fade")return wo(e,t);let s=e(),a=s instanceof Promise?s:Promise.resolve();return o?.(),{finished:a,updateCallbackDone:a,ready:Promise.resolve(),skipTransition:()=>{}}}function To(e={}){let{duration:t="0.25s",easing:n="ease",oldAnimation:r,newAnimation:o}=e,i=`::view-transition-old(root),
|
|
50
50
|
::view-transition-new(root) {
|
|
51
51
|
`;return i+=` animation-duration: ${t};
|
|
52
52
|
`,i+=` animation-timing-function: ${n};
|
|
@@ -57,6 +57,8 @@ ${n.stackTrace}`);}}}function sr(){return {enabled:I,activeCount:M.size,totalTra
|
|
|
57
57
|
`),o&&(i+=`::view-transition-new(root) {
|
|
58
58
|
animation-name: ${o};
|
|
59
59
|
}
|
|
60
|
-
`),i}function To(e,t){e.style.viewTransitionName=t;}function vo(e,t){let n=document.documentElement,r=new Promise(async o=>{n.style.transition="opacity 0.15s ease",n.style.opacity="0",await new Promise(i=>setTimeout(i,150)),await e(),n.style.opacity="1",await new Promise(i=>setTimeout(i,150)),n.style.transition="",n.style.opacity="",t.onAfter?.(),o();});return {finished:r,updateCallbackDone:r,ready:Promise.resolve(),skipTransition:()=>{n.style.transition="",n.style.opacity="";}}}function bo(e){return Array.isArray(e)?e.join(","):typeof e=="boolean"?e?"true":"false":String(e)}function wo(e,t){return typeof t=="number"?Number(e):typeof t=="boolean"?e==="true"||e==="1":Array.isArray(t)?e?e.split(","):[]:e}function B(){return typeof window>"u"?new URLSearchParams:new URLSearchParams(window.location.search)}function So(e,t){if(typeof window>"u")return;let n=e.toString(),r=n?`${window.location.pathname}?${n}${window.location.hash}`:`${window.location.pathname}${window.location.hash}`;t==="push"?window.history.pushState(null,"",r):window.history.replaceState(null,"",r);}var K=new Map,De=false;function xo(){De||typeof window>"u"||(De=true,window.addEventListener("popstate",()=>{let e=B();a(()=>{for(let[t,n]of K){let r=e.get(t),o=r!==null?n.deserialize(r):n.defaultValue;n.signal.set(o);}});}));}function Me(e,t,n={}){let{serialize:r=m=>bo(m),deserialize:o=m=>wo(m,t),history:i="replace",debounce:s=0,removeDefault:a=true}=n,u=B().get(e),d=u!==null?o(u):t,l$1=l(d);K.set(e,{signal:l$1,deserialize:o,defaultValue:t}),xo();let p=null,f=false,y=l$1.set;l$1.set=m=>{if(y(m),f);let h=()=>{let b=B();a&&m===t?b.delete(e):b.set(e,r(m)),So(b,i);};s>0?(p&&clearTimeout(p),p=setTimeout(h,s)):h();};l$1.update;return l$1.update=m=>{l$1.set(m(l$1()));},l$1}function Eo(e,t){let n={};for(let[r,o]of Object.entries(e))n[r]=Me(r,o.default,{serialize:o.serialize,deserialize:o.deserialize,history:t?.history});return n}function ko(){if(typeof window>"u")return;let e=`${window.location.pathname}${window.location.hash}`;window.history.replaceState(null,"",e),a(()=>{for(let[,t]of K)t.signal.set(t.defaultValue);});}function Po(){let e=B(),t={};return e.forEach((n,r)=>{t[r]=n;}),t}function Co(e){K.delete(e);}function Ao(){K.clear();}var ie=typeof requestAnimationFrame=="function"?requestAnimationFrame:e=>setTimeout(()=>e(Date.now()),16),Ie=typeof cancelAnimationFrame=="function"?cancelAnimationFrame:e=>clearTimeout(e),He={linear:e=>e,cubicIn:e=>e*e*e,cubicOut:e=>1-Math.pow(1-e,3),cubicInOut:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,quadIn:e=>e*e,quadOut:e=>1-(1-e)*(1-e),quintOut:e=>1-Math.pow(1-e,5),bounceOut:e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,elasticOut:e=>e===0||e===1?e:Math.pow(2,-10*e)*Math.sin((e-.1)*5*Math.PI)+1};function Ro(e,t,n){return typeof e=="number"&&typeof t=="number"?e+(t-e)*n:n<.5?e:t}function Oo(e,t={}){let{duration:n=400,easing:r=He.cubicOut,interpolate:o=Ro,delay:i=0}=t,s=l(e),a=l(e),c=0,u=false,d=(()=>s());return d.set=(l,p)=>{let f=p?.duration??n,y=p?.easing??r,T=p?.interpolate??o,m=p?.delay??i,h=s();return a.set(l),f===0?(s.set(l),Promise.resolve()):(u&&(Ie(c),u=false),new Promise(b=>{let k=performance.now()+m;u=true;function v(S){if(!u){b();return}let A=S-k;if(A<0){c=ie(v);return}let P=Math.min(A/f,1),R=y(P);s.set(T(h,l,R)),P<1?c=ie(v):(u=false,b());}c=ie(v);}))},d.setImmediate=l=>{u&&(Ie(c),u=false),s.set(l),a.set(l);},d.target=()=>a(),d}function je(e,t={}){let{duration:n=300,easing:r="cubic-bezier(0.2, 0, 0, 1)",delay:o=0,selector:i,keyAttribute:s="data-key",onComplete:a}=t,c=new Map;function u(){return Array.from(i?e.querySelectorAll(i):e.children)}function d(f){return f.getAttribute(s)??f.id??""}function l(){c=new Map;for(let f of u()){let y=d(f);if(y){let T=f.getBoundingClientRect();c.set(y,{left:T.left,top:T.top,width:T.width,height:T.height});}}}function p(){let f=u(),y=[];for(let m of f){let h=d(m),b=c.get(h);if(!b)continue;let k=m.getBoundingClientRect(),v=b.left-k.left,S=b.top-k.top,A=b.width/(k.width||1),P=b.height/(k.height||1);if(Math.abs(v)<.5&&Math.abs(S)<.5&&Math.abs(A-1)<.01&&Math.abs(P-1)<.01)continue;let R=m.animate([{transform:`translate(${v}px, ${S}px) scale(${A}, ${P})`},{transform:"translate(0, 0) scale(1, 1)"}],{duration:n,easing:r,delay:o,fill:"both"});y.push(R);}let T=new Set(f.map(d));for(let[m,h]of c)T.has(m);return c.clear(),new Promise(m=>{if(y.length===0){a?.(),m();return}Promise.all(y.map(h=>h.finished)).then(()=>{for(let h of y)h.cancel();a?.(),m();});})}return {measure:l,animate:p,async flip(f){return l(),f(),await new Promise(y=>requestAnimationFrame(y)),p()}}}async function Lo(e,t,n){return je(e,n).flip(t)}var Do=B$1(e=>{let t=l({status:"pending"}),n=e.props.promise;return e.props.promise.then(r=>{e.props.promise===n&&t.set({status:"resolved",value:r});}).catch(r=>{e.props.promise===n&&t.set({status:"rejected",error:r instanceof Error?r:new Error(String(r))});}),()=>{let r=t();switch(r.status){case "pending":return e.props.pending?u(e.props.pending()):document.createComment("await-pending");case "resolved":return u(e.props.then(r.value));case "rejected":return e.props.catch?u(e.props.catch(r.error)):document.createComment("await-error")}}});function Mo(e){let t=l({status:"pending"});return e.then(n=>t.set({status:"resolved",value:n})).catch(n=>t.set({status:"rejected",error:n instanceof Error?n:new Error(String(n))})),()=>t()}function Fe(e,t){return n=>{t.self&&n.target!==n.currentTarget||(t.preventDefault&&n.preventDefault(),t.stopPropagation&&n.stopPropagation(),t.stopImmediatePropagation&&n.stopImmediatePropagation?.(),e(n));}}function Io(e,t,n,r={}){let o=Fe(n,r),i={once:r.once,capture:r.capture,passive:r.passive};return e.addEventListener(t,o,i),()=>e.removeEventListener(t,o,i)}function Ho(e){let t=l(e.clientWidth),n=l(e.clientHeight);return typeof ResizeObserver<"u"&&new ResizeObserver(o=>{let i=o[0];i&&(t.set(i.contentRect.width),n.set(i.contentRect.height));}).observe(e),{width:()=>t(),height:()=>n()}}function jo(e){let t=e??(typeof window<"u"?window:null),n=l(e?e.scrollLeft:window?.scrollX??0),r=l(e?e.scrollTop:window?.scrollY??0);if(t){let s=()=>{e?(n.set(e.scrollLeft),r.set(e.scrollTop)):(n.set(window.scrollX),r.set(window.scrollY));};t.addEventListener("scroll",s,{passive:true});}let o=r.set;r.set=s=>{o(s),e?e.scrollTop=s:window?.scrollTo(window.scrollX,s);};let i=n.set;return n.set=s=>{i(s),e?e.scrollLeft=s:window?.scrollTo(s,window.scrollY);},{scrollX:n,scrollY:r}}function Fo(){return l(null)}function _o(e){return l(null)}function No(e,t,n$1){e.name=typeof n$1=="string"?n$1:"",e.addEventListener("change",()=>{e.checked&&t.set(n$1);}),n(()=>{e.checked=t()===n$1;});}function _e(e,t,n$1){return n(()=>{n$1()?e.classList.add(t):e.classList.remove(t);})}function $o(e,t){let n=Object.entries(t).map(([r,o])=>_e(e,r,o));return ()=>n.forEach(r=>r())}function Ne(e,t,n$1){let r=t.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`);return n(()=>{let o=n$1();o==null?e.style.removeProperty(r):e.style.setProperty(r,typeof o=="number"?`${o}px`:String(o));})}function Ko(e,t){let n=Object.entries(t).map(([r,o])=>Ne(e,r,o));return ()=>n.forEach(r=>r())}function Vo(e){return e}function Wo(...e){let t={},n$1=[];for(let c of e)typeof c=="function"?n$1.push(c):typeof c=="object"&&c!==null&&(t=c);let{label:r="inspect",level:o="log",logger:i,when:s}=t,a={dispose:null,get values(){return n$1.map(c=>c())},get value(){return n$1.length===1?n$1[0]():n$1.map(c=>c())},label:r,sources:n$1.length};return a.dispose=n(()=>{if(s&&!s())return;let c=n$1.map(u=>u());i?i(r,...c):console[o](`[${r}]`,...c);}),a}function zo(e,t={}){let{method:n="POST",headers:r={},onSuccess:o,onError:i,fetch:s=globalThis.fetch.bind(globalThis)}=t,a=l(false),c=l(null),u=l(null);async function d(l){a.set(true),u.set(null);try{let p=await s(e,{method:n,headers:{"Content-Type":"application/json",...r},body:JSON.stringify(l)});if(!p.ok)throw new Error(`Form action failed: ${p.status}`);let f=await p.json();return c.set(f),a.set(!1),o?.(f),f}catch(p){let f=p instanceof Error?p:new Error(String(p));throw u.set(f),a.set(false),i?.(f),f}}return {url:e,method:n,submitting:()=>a(),result:()=>c(),error:()=>u(),handle(l){return p=>{p.preventDefault();let f=p.target,y=new FormData(f),T={...l};y.forEach((m,h)=>{T[h]=m;}),d(T);}},submit:d}}function qo(e={}){if(typeof window>"u")return ()=>{};let{keyPrefix:t="akash-snapshot",capture:n=["scroll","forms"]}=e;function r(){let c={scrollX:window.scrollX,scrollY:window.scrollY,forms:{},timestamp:Date.now()};return n.includes("forms")&&document.querySelectorAll("form[id]").forEach(u=>{let d=u,l={};new FormData(d).forEach((p,f)=>{l[f]=String(p);}),c.forms[d.id]=l;}),c}function o(c){if(n.includes("scroll")&&requestAnimationFrame(()=>{window.scrollTo(c.scrollX,c.scrollY);}),n.includes("forms"))for(let[u,d]of Object.entries(c.forms)){let l=document.getElementById(u);if(l)for(let[p,f]of Object.entries(d)){let y=l.elements.namedItem(p);y&&(y.value=f);}}}let i=()=>`${t}-${window.location.pathname}`;function s(){try{let c=r();sessionStorage.setItem(i(),JSON.stringify(c));}catch{}}function a(){try{let c=sessionStorage.getItem(i());if(c){let u=JSON.parse(c);Date.now()-u.timestamp<1800*1e3&&o(u);}}catch{}}return window.addEventListener("beforeunload",s),window.addEventListener("popstate",()=>{requestAnimationFrame(a);}),performance.getEntriesByType("navigation")[0]?.type==="back_forward"&&requestAnimationFrame(a),()=>{window.removeEventListener("beforeunload",s);}}function se(e,t,n$1={}){let{immediate:r=false,once:o=false,debounce:i,deep:s=false}=n$1,a=Array.isArray(e),c=a?e:[e],u=c.map(()=>{}),d=true,l=null,p=false,f=null,y=()=>{p=true,l&&clearTimeout(l),f?.();};f=n(()=>{let m=c.map(k=>k());if(d){d=false,u=s?m.map($e):[...m],r&&T(m,c.map(()=>{}));return}if(!(s?m.some((k,v)=>!Go(k,u[v])):m.some((k,v)=>!Object.is(k,u[v]))))return;let b=[...u];u=s?m.map($e):[...m],T(m,b);});function T(m,h){if(p)return;let b=()=>{o&&(p=true,queueMicrotask(y)),a?t(m,h):t(m[0],h[0]);};i&&i>0?(l&&clearTimeout(l),l=setTimeout(b,i)):b();}return y}function Bo(e,t){return se(e,t,{once:true})}function Uo(e,t,n){return se(e,t,{debounce:n})}function $e(e){if(e===null||typeof e!="object")return e;try{return JSON.parse(JSON.stringify(e))}catch{return e}}function Go(e,t){if(Object.is(e,t))return true;if(e===null||t===null||typeof e!="object"||typeof t!="object")return false;try{return JSON.stringify(e)===JSON.stringify(t)}catch{return false}}var Ke=Symbol("deepSignal"),Jo=Symbol("deepRaw");function Qo(e){let t=l(0),n=JSON.parse(JSON.stringify(e)),r=new Map;function o(u){let d=r.get(u);return d||(d=l(0),r.set(u,d)),d}let i=false;function s(u){if(i)return;let d=r.get(u);d&&d.update(l=>l+1),t.update(l=>l+1);}function a(u,d){i=true;try{return u()}finally{i=false,s(d);}}function c(u,d=[]){return new Proxy(u,{get(l,p,f){if(p==="$raw")return JSON.parse(JSON.stringify(n));if(p==="$signal")return ()=>(t(),JSON.parse(JSON.stringify(n)));if(p===Ke)return t;if(p===Jo)return n;let y=Reflect.get(l,p,f),T=[...d,String(p)].join(".");if(o(T)(),Array.isArray(l)&&typeof y=="function"&&new Set(["push","pop","shift","unshift","splice","sort","reverse","fill","copyWithin"]).has(String(p))){let h=d.join(".")||"__root";return (...b)=>a(()=>y.apply(l,b),h)}return y!==null&&typeof y=="object"?c(y,[...d,String(p)]):y},set(l,p,f){let y=Reflect.set(l,p,f);return s([...d,String(p)].join(".")),y},deleteProperty(l,p){let f=Reflect.deleteProperty(l,p);return s([...d,String(p)].join(".")),f}})}return c(n)}function Yo(e){return e.$raw??e}function Xo(e){if(e===null||typeof e!="object")return false;try{return e[Ke]!==void 0}catch{return false}}function Ve(){let e=new Map;function t(n){let r=e.get(n);return r||(r=new Set,e.set(n,r)),r}return {on(n,r){return t(n).add(r),()=>t(n).delete(r)},once(n,r){let o=i=>{t(n).delete(o),r(i);};return t(n).add(o),()=>t(n).delete(o)},emit(n,r){let o=e.get(n);if(o)for(let i of Array.from(o))i(r);},off(n,r){t(n).delete(r);},clear(n){n?e.delete(n):e.clear();},listenerCount(n){return e.get(n)?.size??0},hasListeners(n){return (e.get(n)?.size??0)>0}}}var ae=null;function Zo(){return ae||(ae=Ve()),ae}var ei=new Set(["a","abbr","address","article","aside","b","bdi","bdo","blockquote","br","caption","cite","code","col","colgroup","dd","del","details","dfn","div","dl","dt","em","figcaption","figure","footer","h1","h2","h3","h4","h5","h6","header","hr","i","img","ins","kbd","li","main","mark","nav","ol","p","pre","q","rp","rt","ruby","s","samp","section","small","span","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","time","tr","u","ul","var","wbr"]),ti=new Set(["alt","class","dir","href","id","lang","name","rel","src","style","tabindex","target","title","type","width","height","colspan","rowspan","scope","loading","decoding"]),ni=/^(javascript|data|vbscript):/i,ri=/^on/i;function ze(e,t={}){if(typeof document>"u")return e.replace(/<[^>]*>/g,"");let{allowTags:n=[],allowAttrs:r=[],allowDataAttrs:o=true,allowAriaAttrs:i=true,allowStyle:s=false,tagFilter:a,attrFilter:c}=t,u=new Set([...ei,...n]),d=new Set([...ti,...r]);s||d.delete("style");let l=new DOMParser().parseFromString(e,"text/html");return qe(l.body,u,d,o,i,a,c),l.body.innerHTML}function qe(e,t,n,r,o,i,s){let a=Array.from(e.childNodes);for(let c of a)if(c.nodeType===Node.ELEMENT_NODE){let u=c,d=u.tagName.toLowerCase();if(!(i?i(d):t.has(d))){let f=document.createTextNode(u.textContent??"");e.replaceChild(f,c);continue}let p=Array.from(u.attributes);for(let f of p){let y=f.name.toLowerCase(),T=f.value;if(ri.test(y)){u.removeAttribute(f.name);continue}if(!(y.startsWith("data-")&&r)&&!(y.startsWith("aria-")&&o)){if(s&&!s(y,T,d)){u.removeAttribute(f.name);continue}if(!n.has(y)){u.removeAttribute(f.name);continue}if((y==="href"||y==="src")&&ni.test(T)){u.removeAttribute(f.name);continue}}}qe(u,t,n,r,o,i,s);}}function oi(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function ii(e,t){return n=>{e.innerHTML=ze(n,t);}}function Be(e={}){let n={...{"default-src":["'self'"],"script-src":["'self'"],"style-src":["'self'","'unsafe-inline'"],"img-src":["'self'","data:","https:"],"font-src":["'self'","https:"],"connect-src":["'self'"],"frame-ancestors":["'none'"],"base-uri":["'self'"],"form-action":["'self'"],"object-src":["'none'"]},...e.directives};if(e.nonce){let r=`'nonce-${e.nonce}'`;n["script-src"]&&n["script-src"].push(r),n["style-src"]&&n["style-src"].push(r);}return e.reportUri&&(n["report-uri"]=[e.reportUri]),Object.entries(n).map(([r,o])=>`${r} ${o.join(" ")}`).join("; ")}function Ue(e={}){return e.reportOnly?"Content-Security-Policy-Report-Only":"Content-Security-Policy"}function si(e={}){let t={};if(e.csp!==false){let n=e.csp??{};t[Ue(n)]=Be(n);}if(e.frameOptions!==false&&(t["X-Frame-Options"]=e.frameOptions??"DENY"),e.contentTypeOptions!==false&&(t["X-Content-Type-Options"]="nosniff"),t["X-XSS-Protection"]=e.xssProtection?"1; mode=block":"0",e.hsts!==false){let n=e.hsts??{maxAge:31536e3,includeSubDomains:true},r=`max-age=${n.maxAge}`;n.includeSubDomains&&(r+="; includeSubDomains"),n.preload&&(r+="; preload"),t["Strict-Transport-Security"]=r;}if(e.referrerPolicy!==false&&(t["Referrer-Policy"]=e.referrerPolicy??"strict-origin-when-cross-origin"),e.permissionsPolicy!==false){let n=e.permissionsPolicy??{camera:[],microphone:[],geolocation:[],payment:[]};t["Permissions-Policy"]=Object.entries(n).map(([r,o])=>`${r}=(${o.join(" ")})`).join(", ");}return e.coop!==false&&(t["Cross-Origin-Opener-Policy"]=e.coop??"same-origin"),e.coep!==false&&(t["Cross-Origin-Embedder-Policy"]=e.coep??"require-corp"),t}function Ge(e,...t){let n=new Set(["__proto__","constructor","prototype"]);for(let r of t)if(!(!r||typeof r!="object"))for(let o of Object.keys(r)){if(n.has(o))continue;let i=e[o],s=r[o];We(s)&&We(i)?e[o]=Ge({...i},s):e[o]=s;}return e}function Je(e){if(e===null||typeof e!="object")return e;Object.freeze(e);for(let t of Object.values(e))typeof t=="object"&&t!==null&&Je(t);return e}function We(e){return e!==null&&typeof e=="object"&&Object.getPrototypeOf(e)===Object.prototype}async function ai(e,t="sha384"){let r=new TextEncoder().encode(e),o=t==="sha256"?"SHA-256":t==="sha384"?"SHA-384":"SHA-512",i=await crypto.subtle.digest(o,r),s=new Uint8Array(i),a=btoa(String.fromCharCode(...s));return `${t}-${a}`}function Qe(){let e=new Uint8Array(32);return crypto.getRandomValues(e),Array.from(e,t=>t.toString(16).padStart(2,"0")).join("")}function ci(e={}){let{headerName:t="X-CSRF-Token",cookieName:n="csrf-token",tokenGenerator:r=Qe}=e,o=null;function i(){if(!o){if(typeof document<"u"){let a=document.cookie.match(new RegExp(`${n}=([^;]+)`));if(a)return o=a[1],o}o=r();}return o}return {interceptor:async(a,c)=>{let u=a.method.toUpperCase();return ["POST","PUT","PATCH","DELETE"].includes(u)&&a.headers.set(t,i()),c(a)},token:i,refresh(){o=r();}}}function li(e,t={}){if(e==null)return null;let{allowedHosts:n,allowedProtocols:r=["http:","https:"],allowRelative:o=true}=t;if(e.startsWith("/")&&!e.startsWith("//"))return o?e:null;try{let i=new URL(e);return !r.includes(i.protocol)||n&&!n.includes(i.hostname)?null:i.toString()}catch{return null}}function ui(e){let{maxAttempts:t,windowMs:n}=e,r=[];return {check(){let o=Date.now();for(;r.length>0&&r[0]<o-n;)r.shift();return r.length>=t?false:(r.push(o),true)},remaining(){let o=Date.now();for(;r.length>0&&r[0]<o-n;)r.shift();return Math.max(0,t-r.length)},reset(){r.length=0;}}}var ce=new Set,Ye=true,le=null;function di(e){Ye=e;}function pi(e){le=e;}function fi(){ce.clear();}function mi(e,t){let n=((...r)=>(Xe(t),e(...r)));return Object.keys(e).forEach(r=>{n[r]=e[r];}),n.__deprecated=t,n}function gi(e,t){return Xe(t),e}function Xe(e){if(!Ye||ce.has(e.name))return;ce.add(e.name);let t=[`[AkashJS] DEPRECATED: ${e.name}() is deprecated since v${e.since}`];e.removeIn?t[0]+=` and will be removed in v${e.removeIn}.`:t[0]+=".",e.replacement&&t.push(` Migrate to: ${e.replacement}()`),e.message&&t.push(` ${e.message}`),t.push(` See: ${e.link??"https://akash.js.org/migration"}`);let n=t.join(`
|
|
61
|
-
`);
|
|
60
|
+
`),i}function bo(e,t){e.style.viewTransitionName=t;}function wo(e,t){let n=document.documentElement,r=new Promise(async o=>{n.style.transition="opacity 0.15s ease",n.style.opacity="0",await new Promise(i=>setTimeout(i,150)),await e(),n.style.opacity="1",await new Promise(i=>setTimeout(i,150)),n.style.transition="",n.style.opacity="",t.onAfter?.(),o();});return {finished:r,updateCallbackDone:r,ready:Promise.resolve(),skipTransition:()=>{n.style.transition="",n.style.opacity="";}}}function So(e){return Array.isArray(e)?e.join(","):typeof e=="boolean"?e?"true":"false":String(e)}function xo(e,t){return typeof t=="number"?Number(e):typeof t=="boolean"?e==="true"||e==="1":Array.isArray(t)?e?e.split(","):[]:e}function B(){return typeof window>"u"?new URLSearchParams:new URLSearchParams(window.location.search)}function Eo(e,t){if(typeof window>"u")return;let n=e.toString(),r=n?`${window.location.pathname}?${n}${window.location.hash}`:`${window.location.pathname}${window.location.hash}`;t==="push"?window.history.pushState(null,"",r):window.history.replaceState(null,"",r);}var K=new Map,Me=false;function ko(){Me||typeof window>"u"||(Me=true,window.addEventListener("popstate",()=>{let e=B();a(()=>{for(let[t,n]of K){let r=e.get(t),o=r!==null?n.deserialize(r):n.defaultValue;n.signal.set(o);}});}));}function Ie(e,t,n={}){let{serialize:r=m=>So(m),deserialize:o=m=>xo(m,t),history:i="replace",debounce:s=0,removeDefault:a=true}=n,l$1=B().get(e),d=l$1!==null?o(l$1):t,u=l(d);K.set(e,{signal:u,deserialize:o,defaultValue:t}),ko();let p=null,f=false,y=u.set;u.set=m=>{if(y(m),f);let v=()=>{let b=B();a&&m===t?b.delete(e):b.set(e,r(m)),Eo(b,i);};s>0?(p&&clearTimeout(p),p=setTimeout(v,s)):v();};u.update;return u.update=m=>{u.set(m(u()));},u}function Co(e,t){let n={};for(let[r,o]of Object.entries(e))n[r]=Ie(r,o.default,{serialize:o.serialize,deserialize:o.deserialize,history:t?.history});return n}function Po(){if(typeof window>"u")return;let e=`${window.location.pathname}${window.location.hash}`;window.history.replaceState(null,"",e),a(()=>{for(let[,t]of K)t.signal.set(t.defaultValue);});}function Ao(){let e=B(),t={};return e.forEach((n,r)=>{t[r]=n;}),t}function Ro(e){K.delete(e);}function Oo(){K.clear();}var se=typeof requestAnimationFrame=="function"?requestAnimationFrame:e=>setTimeout(()=>e(Date.now()),16),He=typeof cancelAnimationFrame=="function"?cancelAnimationFrame:e=>clearTimeout(e),je={linear:e=>e,cubicIn:e=>e*e*e,cubicOut:e=>1-Math.pow(1-e,3),cubicInOut:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,quadIn:e=>e*e,quadOut:e=>1-(1-e)*(1-e),quintOut:e=>1-Math.pow(1-e,5),bounceOut:e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,elasticOut:e=>e===0||e===1?e:Math.pow(2,-10*e)*Math.sin((e-.1)*5*Math.PI)+1};function Do(e,t,n){return typeof e=="number"&&typeof t=="number"?e+(t-e)*n:n<.5?e:t}function Lo(e,t={}){let{duration:n=400,easing:r=je.cubicOut,interpolate:o=Do,delay:i=0}=t,s=l(e),a=l(e),c=0,l$1=false,d=(()=>s());return d.set=(u,p)=>{let f=p?.duration??n,y=p?.easing??r,h=p?.interpolate??o,m=p?.delay??i,v=s();return a.set(u),f===0?(s.set(u),Promise.resolve()):(l$1&&(He(c),l$1=false),new Promise(b=>{let k=performance.now()+m;l$1=true;function T(S){if(!l$1){b();return}let A=S-k;if(A<0){c=se(T);return}let C=Math.min(A/f,1),R=y(C);s.set(h(v,u,R)),C<1?c=se(T):(l$1=false,b());}c=se(T);}))},d.setImmediate=u=>{l$1&&(He(c),l$1=false),s.set(u),a.set(u);},d.target=()=>a(),d}function Fe(e,t={}){let{duration:n=300,easing:r="cubic-bezier(0.2, 0, 0, 1)",delay:o=0,selector:i,keyAttribute:s="data-key",onComplete:a}=t,c=new Map;function l(){return Array.from(i?e.querySelectorAll(i):e.children)}function d(f){return f.getAttribute(s)??f.id??""}function u(){c=new Map;for(let f of l()){let y=d(f);if(y){let h=f.getBoundingClientRect();c.set(y,{left:h.left,top:h.top,width:h.width,height:h.height});}}}function p(){let f=l(),y=[];for(let m of f){let v=d(m),b=c.get(v);if(!b)continue;let k=m.getBoundingClientRect(),T=b.left-k.left,S=b.top-k.top,A=b.width/(k.width||1),C=b.height/(k.height||1);if(Math.abs(T)<.5&&Math.abs(S)<.5&&Math.abs(A-1)<.01&&Math.abs(C-1)<.01)continue;let R=m.animate([{transform:`translate(${T}px, ${S}px) scale(${A}, ${C})`},{transform:"translate(0, 0) scale(1, 1)"}],{duration:n,easing:r,delay:o,fill:"both"});y.push(R);}let h=new Set(f.map(d));for(let[m,v]of c)h.has(m);return c.clear(),new Promise(m=>{if(y.length===0){a?.(),m();return}Promise.all(y.map(v=>v.finished)).then(()=>{for(let v of y)v.cancel();a?.(),m();});})}return {measure:u,animate:p,async flip(f){return u(),f(),await new Promise(y=>requestAnimationFrame(y)),p()}}}async function Mo(e,t,n){return Fe(e,n).flip(t)}var Io=B$1(e=>{let t=l({status:"pending"}),n=e.props.promise;return e.props.promise.then(r=>{e.props.promise===n&&t.set({status:"resolved",value:r});}).catch(r=>{e.props.promise===n&&t.set({status:"rejected",error:r instanceof Error?r:new Error(String(r))});}),()=>{let r=t();switch(r.status){case "pending":return e.props.pending?u(e.props.pending()):document.createComment("await-pending");case "resolved":return u(e.props.then(r.value));case "rejected":return e.props.catch?u(e.props.catch(r.error)):document.createComment("await-error")}}});function Ho(e){let t=l({status:"pending"});return e.then(n=>t.set({status:"resolved",value:n})).catch(n=>t.set({status:"rejected",error:n instanceof Error?n:new Error(String(n))})),()=>t()}function _e(e,t){return n=>{t.self&&n.target!==n.currentTarget||(t.preventDefault&&n.preventDefault(),t.stopPropagation&&n.stopPropagation(),t.stopImmediatePropagation&&n.stopImmediatePropagation?.(),e(n));}}function jo(e,t,n,r={}){let o=_e(n,r),i={once:r.once,capture:r.capture,passive:r.passive};return e.addEventListener(t,o,i),()=>e.removeEventListener(t,o,i)}function Fo(e){let t=l(e.clientWidth),n=l(e.clientHeight);return typeof ResizeObserver<"u"&&new ResizeObserver(o=>{let i=o[0];i&&(t.set(i.contentRect.width),n.set(i.contentRect.height));}).observe(e),{width:()=>t(),height:()=>n()}}function _o(e){let t=e??(typeof window<"u"?window:null),n=l(e?e.scrollLeft:window?.scrollX??0),r=l(e?e.scrollTop:window?.scrollY??0);if(t){let s=()=>{e?(n.set(e.scrollLeft),r.set(e.scrollTop)):(n.set(window.scrollX),r.set(window.scrollY));};t.addEventListener("scroll",s,{passive:true});}let o=r.set;r.set=s=>{o(s),e?e.scrollTop=s:window?.scrollTo(window.scrollX,s);};let i=n.set;return n.set=s=>{i(s),e?e.scrollLeft=s:window?.scrollTo(s,window.scrollY);},{scrollX:n,scrollY:r}}function No(){return l(null)}function $o(e){return l(null)}function Ko(e,t,n$1){e.name=typeof n$1=="string"?n$1:"",e.addEventListener("change",()=>{e.checked&&t.set(n$1);}),n(()=>{e.checked=t()===n$1;});}function Ne(e,t,n$1){return n(()=>{n$1()?e.classList.add(t):e.classList.remove(t);})}function Vo(e,t){let n=Object.entries(t).map(([r,o])=>Ne(e,r,o));return ()=>n.forEach(r=>r())}function $e(e,t,n$1){let r=t.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`);return n(()=>{let o=n$1();o==null?e.style.removeProperty(r):e.style.setProperty(r,typeof o=="number"?`${o}px`:String(o));})}function Wo(e,t){let n=Object.entries(t).map(([r,o])=>$e(e,r,o));return ()=>n.forEach(r=>r())}function zo(e){return e}function qo(...e){let t={},n$1=[];for(let c of e)typeof c=="function"?n$1.push(c):typeof c=="object"&&c!==null&&(t=c);let{label:r="inspect",level:o="log",logger:i,when:s}=t,a={dispose:null,get values(){return n$1.map(c=>c())},get value(){return n$1.length===1?n$1[0]():n$1.map(c=>c())},label:r,sources:n$1.length};return a.dispose=n(()=>{if(s&&!s())return;let c=n$1.map(l=>l());i?i(r,...c):console[o](`[${r}]`,...c);}),a}function Bo(e,t={}){let{method:n="POST",headers:r={},onSuccess:o,onError:i,fetch:s=globalThis.fetch.bind(globalThis)}=t,a=l(false),c=l(null),l$1=l(null);async function d(u){a.set(true),l$1.set(null);try{let p=await s(e,{method:n,headers:{"Content-Type":"application/json",...r},body:JSON.stringify(u)});if(!p.ok)throw new Error(`Form action failed: ${p.status}`);let f=await p.json();return c.set(f),a.set(!1),o?.(f),f}catch(p){let f=p instanceof Error?p:new Error(String(p));throw l$1.set(f),a.set(false),i?.(f),f}}return {url:e,method:n,submitting:()=>a(),result:()=>c(),error:()=>l$1(),handle(u){return p=>{p.preventDefault();let f=p.target,y=new FormData(f),h={...u};y.forEach((m,v)=>{h[v]=m;}),d(h);}},submit:d}}function Uo(e={}){if(typeof window>"u")return ()=>{};let{keyPrefix:t="akash-snapshot",capture:n=["scroll","forms"]}=e;function r(){let c={scrollX:window.scrollX,scrollY:window.scrollY,forms:{},timestamp:Date.now()};return n.includes("forms")&&document.querySelectorAll("form[id]").forEach(l=>{let d=l,u={};new FormData(d).forEach((p,f)=>{u[f]=String(p);}),c.forms[d.id]=u;}),c}function o(c){if(n.includes("scroll")&&requestAnimationFrame(()=>{window.scrollTo(c.scrollX,c.scrollY);}),n.includes("forms"))for(let[l,d]of Object.entries(c.forms)){let u=document.getElementById(l);if(u)for(let[p,f]of Object.entries(d)){let y=u.elements.namedItem(p);y&&(y.value=f);}}}let i=()=>`${t}-${window.location.pathname}`;function s(){try{let c=r();sessionStorage.setItem(i(),JSON.stringify(c));}catch{}}function a(){try{let c=sessionStorage.getItem(i());if(c){let l=JSON.parse(c);Date.now()-l.timestamp<1800*1e3&&o(l);}}catch{}}return window.addEventListener("beforeunload",s),window.addEventListener("popstate",()=>{requestAnimationFrame(a);}),performance.getEntriesByType("navigation")[0]?.type==="back_forward"&&requestAnimationFrame(a),()=>{window.removeEventListener("beforeunload",s);}}function ae(e,t,n$1={}){let{immediate:r=false,once:o=false,debounce:i,deep:s=false}=n$1,a=Array.isArray(e),c=a?e:[e],l=c.map(()=>{}),d=true,u=null,p=false,f=null,y=()=>{p=true,u&&clearTimeout(u),f?.();};f=n(()=>{let m=c.map(k=>k());if(d){d=false,l=s?m.map(Ke):[...m],r&&h(m,c.map(()=>{}));return}if(!(s?m.some((k,T)=>!Qo(k,l[T])):m.some((k,T)=>!Object.is(k,l[T]))))return;let b=[...l];l=s?m.map(Ke):[...m],h(m,b);});function h(m,v){if(p)return;let b=()=>{o&&(p=true,queueMicrotask(y)),a?t(m,v):t(m[0],v[0]);};i&&i>0?(u&&clearTimeout(u),u=setTimeout(b,i)):b();}return y}function Go(e,t){return ae(e,t,{once:true})}function Jo(e,t,n){return ae(e,t,{debounce:n})}function Ke(e){if(e===null||typeof e!="object")return e;try{return JSON.parse(JSON.stringify(e))}catch{return e}}function Qo(e,t){if(Object.is(e,t))return true;if(e===null||t===null||typeof e!="object"||typeof t!="object")return false;try{return JSON.stringify(e)===JSON.stringify(t)}catch{return false}}var Ve=Symbol("deepSignal"),Yo=Symbol("deepRaw");function Xo(e){let t=l(0),n=JSON.parse(JSON.stringify(e)),r=new Map;function o(l$1){let d=r.get(l$1);return d||(d=l(0),r.set(l$1,d)),d}let i=false;function s(l){if(i)return;let d=r.get(l);d&&d.update(u=>u+1);}function a(l,d){i=true;try{return l()}finally{i=false,s(d);}}function c(l,d=[]){return new Proxy(l,{get(u,p,f){if(p==="$raw")return JSON.parse(JSON.stringify(n));if(p==="$signal")return ()=>(t(),JSON.parse(JSON.stringify(n)));if(p===Ve)return t;if(p===Yo)return n;let y=Reflect.get(u,p,f),h=[...d,String(p)].join(".");if(o(h)(),Array.isArray(u)&&typeof y=="function"&&new Set(["push","pop","shift","unshift","splice","sort","reverse","fill","copyWithin"]).has(String(p))){let v=d.join(".")||"__root";return (...b)=>a(()=>y.apply(u,b),v)}return y!==null&&typeof y=="object"?c(y,[...d,String(p)]):y},set(u,p,f){let y=Reflect.set(u,p,f);return s([...d,String(p)].join(".")),t.update(h=>h+1),y},deleteProperty(u,p){let f=Reflect.deleteProperty(u,p);return s([...d,String(p)].join(".")),t.update(y=>y+1),f}})}return c(n)}function Zo(e){return e.$raw??e}function ei(e){if(e===null||typeof e!="object")return false;try{return e[Ve]!==void 0}catch{return false}}function We(){let e=new Map;function t(n){let r=e.get(n);return r||(r=new Set,e.set(n,r)),r}return {on(n,r){return t(n).add(r),()=>t(n).delete(r)},once(n,r){let o=i=>{t(n).delete(o),r(i);};return t(n).add(o),()=>t(n).delete(o)},emit(n,r){let o=e.get(n);if(o)for(let i of Array.from(o))i(r);},off(n,r){t(n).delete(r);},clear(n){n?e.delete(n):e.clear();},listenerCount(n){return e.get(n)?.size??0},hasListeners(n){return (e.get(n)?.size??0)>0}}}var ce=null;function ti(){return ce||(ce=We()),ce}var ni=new Set(["a","abbr","address","article","aside","b","bdi","bdo","blockquote","br","caption","cite","code","col","colgroup","dd","del","details","dfn","div","dl","dt","em","figcaption","figure","footer","h1","h2","h3","h4","h5","h6","header","hr","i","img","ins","kbd","li","main","mark","nav","ol","p","pre","q","rp","rt","ruby","s","samp","section","small","span","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","time","tr","u","ul","var","wbr"]),ri=new Set(["alt","class","dir","href","id","lang","name","rel","src","style","tabindex","target","title","type","width","height","colspan","rowspan","scope","loading","decoding"]),oi=/^(javascript|data|vbscript):/i,ii=/^on/i;function qe(e,t={}){if(typeof document>"u")return e.replace(/<[^>]*>/g,"");let{allowTags:n=[],allowAttrs:r=[],allowDataAttrs:o=true,allowAriaAttrs:i=true,allowStyle:s=false,tagFilter:a,attrFilter:c}=t,l=new Set([...ni,...n]),d=new Set([...ri,...r]);s||d.delete("style");let u=new DOMParser().parseFromString(e,"text/html");return Be(u.body,l,d,o,i,a,c),u.body.innerHTML}function Be(e,t,n,r,o,i,s){let a=Array.from(e.childNodes);for(let c of a)if(c.nodeType===Node.ELEMENT_NODE){let l=c,d=l.tagName.toLowerCase();if(!(i?i(d):t.has(d))){let f=document.createTextNode(l.textContent??"");e.replaceChild(f,c);continue}let p=Array.from(l.attributes);for(let f of p){let y=f.name.toLowerCase(),h=f.value;if(ii.test(y)){l.removeAttribute(f.name);continue}if(!(y.startsWith("data-")&&r)&&!(y.startsWith("aria-")&&o)){if(s&&!s(y,h,d)){l.removeAttribute(f.name);continue}if(!n.has(y)){l.removeAttribute(f.name);continue}if((y==="href"||y==="src")&&oi.test(h)){l.removeAttribute(f.name);continue}}}Be(l,t,n,r,o,i,s);}}function si(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function ai(e,t){return n=>{e.innerHTML=qe(n,t);}}function Ue(e={}){let n={...{"default-src":["'self'"],"script-src":["'self'"],"style-src":["'self'","'unsafe-inline'"],"img-src":["'self'","data:","https:"],"font-src":["'self'","https:"],"connect-src":["'self'"],"frame-ancestors":["'none'"],"base-uri":["'self'"],"form-action":["'self'"],"object-src":["'none'"]},...e.directives};if(e.nonce){let r=`'nonce-${e.nonce}'`;n["script-src"]&&n["script-src"].push(r),n["style-src"]&&n["style-src"].push(r);}return e.reportUri&&(n["report-uri"]=[e.reportUri]),Object.entries(n).map(([r,o])=>`${r} ${o.join(" ")}`).join("; ")}function Ge(e={}){return e.reportOnly?"Content-Security-Policy-Report-Only":"Content-Security-Policy"}function ci(e={}){let t={};if(e.csp!==false){let n=e.csp??{};t[Ge(n)]=Ue(n);}if(e.frameOptions!==false&&(t["X-Frame-Options"]=e.frameOptions??"DENY"),e.contentTypeOptions!==false&&(t["X-Content-Type-Options"]="nosniff"),t["X-XSS-Protection"]=e.xssProtection?"1; mode=block":"0",e.hsts!==false){let n=e.hsts??{maxAge:31536e3,includeSubDomains:true},r=`max-age=${n.maxAge}`;n.includeSubDomains&&(r+="; includeSubDomains"),n.preload&&(r+="; preload"),t["Strict-Transport-Security"]=r;}if(e.referrerPolicy!==false&&(t["Referrer-Policy"]=e.referrerPolicy??"strict-origin-when-cross-origin"),e.permissionsPolicy!==false){let n=e.permissionsPolicy??{camera:[],microphone:[],geolocation:[],payment:[]};t["Permissions-Policy"]=Object.entries(n).map(([r,o])=>`${r}=(${o.join(" ")})`).join(", ");}return e.coop!==false&&(t["Cross-Origin-Opener-Policy"]=e.coop??"same-origin"),e.coep!==false&&(t["Cross-Origin-Embedder-Policy"]=e.coep??"require-corp"),t}function Je(e,...t){let n=new Set(["__proto__","constructor","prototype"]);for(let r of t)if(!(!r||typeof r!="object"))for(let o of Object.keys(r)){if(n.has(o))continue;let i=e[o],s=r[o];ze(s)&&ze(i)?e[o]=Je({...i},s):e[o]=s;}return e}function Qe(e){if(e===null||typeof e!="object")return e;Object.freeze(e);for(let t of Object.values(e))typeof t=="object"&&t!==null&&Qe(t);return e}function ze(e){return e!==null&&typeof e=="object"&&Object.getPrototypeOf(e)===Object.prototype}async function li(e,t="sha384"){let r=new TextEncoder().encode(e),o=t==="sha256"?"SHA-256":t==="sha384"?"SHA-384":"SHA-512",i=await crypto.subtle.digest(o,r),s=new Uint8Array(i),a=btoa(String.fromCharCode(...s));return `${t}-${a}`}function Ye(){let e=new Uint8Array(32);return crypto.getRandomValues(e),Array.from(e,t=>t.toString(16).padStart(2,"0")).join("")}function ui(e={}){let{headerName:t="X-CSRF-Token",cookieName:n="csrf-token",tokenGenerator:r=Ye}=e,o=null;function i(){if(!o){if(typeof document<"u"){let a=document.cookie.match(new RegExp(`${n}=([^;]+)`));if(a)return o=a[1],o}o=r();}return o}return {interceptor:async(a,c)=>{let l=a.method.toUpperCase();return ["POST","PUT","PATCH","DELETE"].includes(l)&&a.headers.set(t,i()),c(a)},token:i,refresh(){o=r();}}}function di(e,t={}){if(e==null)return null;let{allowedHosts:n,allowedProtocols:r=["http:","https:"],allowRelative:o=true}=t;if(e.startsWith("/")&&!e.startsWith("//"))return o?e:null;try{let i=new URL(e);return !r.includes(i.protocol)||n&&!n.includes(i.hostname)?null:i.toString()}catch{return null}}function pi(e){let{maxAttempts:t,windowMs:n}=e,r=[];return {check(){let o=Date.now();for(;r.length>0&&r[0]<o-n;)r.shift();return r.length>=t?false:(r.push(o),true)},remaining(){let o=Date.now();for(;r.length>0&&r[0]<o-n;)r.shift();return Math.max(0,t-r.length)},reset(){r.length=0;}}}var le=new Set,Xe=true,ue=null;function fi(e){Xe=e;}function mi(e){ue=e;}function gi(){le.clear();}function yi(e,t){let n=((...r)=>(Ze(t),e(...r)));return Object.keys(e).forEach(r=>{n[r]=e[r];}),n.__deprecated=t,n}function hi(e,t){return Ze(t),e}function Ze(e){if(!Xe||le.has(e.name))return;le.add(e.name);let t=[`[AkashJS] DEPRECATED: ${e.name}() is deprecated since v${e.since}`];e.removeIn?t[0]+=` and will be removed in v${e.removeIn}.`:t[0]+=".",e.replacement&&t.push(` Migrate to: ${e.replacement}()`),e.message&&t.push(` ${e.message}`),t.push(` See: ${e.link??"https://akash.js.org/migration"}`);let n=t.join(`
|
|
61
|
+
`);ue?ue(n):typeof console<"u"&&console.warn(n);}var U=new Map;function vi(e){U.set(e.name,e);}function et(){return Array.from(U.values())}function Ti(e){return et().filter(t=>t.stability===e)}function bi(e){return U.get(e)?.stability==="deprecated"}function wi(e){return U.get(e)?.deprecation??null}function Si(e){let t=[],n=[],r=Object.entries(e);if(r.length===0)return {compatible:true,warnings:t,errors:n};let o=r.filter(([i])=>i.startsWith("@akashjs/"));if(o.length>1){let i=new Set(o.map(([,a])=>a.split(".")[0])),s=new Set(o.map(([,a])=>a.split(".").slice(0,2).join(".")));i.size>1?n.push(`Major version mismatch: ${o.map(([a,c])=>`${a}@${c}`).join(", ")}. All @akashjs packages should be on the same major version.`):s.size>1&&t.push(`Minor version mismatch: ${o.map(([a,c])=>`${a}@${c}`).join(", ")}. Consider updating all packages to the same version with \`akash update\`.`);}return {compatible:n.length===0,warnings:t,errors:n}}var xi=new Map,Ei=new Map;function G(e){let n=d()[e];if(!n)return null;let r=n.$snapshot(),i={},s=[];for(let[a,c]of Object.entries(n))if(!a.startsWith("$")){if(typeof c=="function"&&"set"in c&&"update"in c)c();else if(typeof c=="function"&&!("set"in c)&&!a.startsWith("$"))try{let l=c();typeof l<"u"?i[a]=l:s.push(a);}catch{s.push(a);}}return {$id:e,state:r,getters:i,actions:s,subscriberCount:0}}var de=new Map,pe=new Map;function ki(){return {stores(){return Object.keys(d())},store(e){return G(e)},storeSnapshots(){let e={};for(let t of Object.keys(d())){let n=G(t);n&&(e[t]=n);}return e},signals(){return [...xi.values()].map(e=>({name:e.name,value:e.read(),subscribers:e.subscriberCount}))},effects(){return [...Ei.values()].map(e=>({name:e.name,runs:e.runCount,isRender:e.isRender,sources:e.sourceCount}))},version(){return {runtime:"0.1.26"}},log(e){if(e){let t=G(e);t?(console.group(`\u{1F50D} Store: ${e}`),console.log("State:",t.state),console.log("Getters:",t.getters),console.log("Actions:",t.actions),console.groupEnd()):console.warn(`Store "${e}" not found. Available:`,Object.keys(d()));}else {let t=Object.keys(d());console.group("\u{1F50D} AkashJS Stores");for(let n of t){let r=G(n);r&&(console.group(n),console.log("State:",r.state),console.log("Getters:",r.getters),console.groupEnd());}console.groupEnd();}},startRecording(e){let t=d()[e];if(!t){console.warn(`Store "${e}" not found.`);return}let n=[];n.push({timestamp:Date.now(),state:t.$snapshot()});let r=t.$subscribe(o=>{n.push({timestamp:Date.now(),state:{...o}});});de.set(e,n),pe.set(e,r),console.log(`\u23FA Recording store "${e}". Call __AKASH_DEVTOOLS__.stopRecording("${e}") to view history.`);},stopRecording(e){let t=pe.get(e);t&&t(),pe.delete(e);let n=de.get(e)??[];return de.delete(e),console.log(`\u23F9 Stopped recording "${e}". ${n.length} snapshots captured.`),console.table(n.map((r,o)=>({"#":o,time:new Date(r.timestamp).toISOString().slice(11,23),state:JSON.stringify(r.state)}))),n}}}function Ci(){let e=ki();typeof globalThis<"u"&&(globalThis.__AKASH_DEVTOOLS__=e,console.log("%c\u{1F527} AkashJS DevTools installed. Access via __AKASH_DEVTOOLS__ in console.","color: #7c3aed; font-weight: bold;"),console.log(" .stores() \u2014 list stores"),console.log(' .store("id") \u2014 inspect store'),console.log(" .log() \u2014 pretty-print all stores"),console.log(' .log("id") \u2014 pretty-print one store'),console.log(' .startRecording("id") \u2014 record state changes'),console.log(' .stopRecording("id") \u2014 view recorded history'),console.log(" .signals() \u2014 list tracked signals"),console.log(" .effects() \u2014 list tracked effects"));}var tt=typeof process>"u"||process.env?.NODE_ENV!=="production",Pi=[{pattern:/Cannot set property '?(\w+)'? of/,hint:e=>`Did you try to reassign a signal? Use ${e[1]}.set(value) instead of ${e[1]} = value.`},{pattern:/(\w+) is not a function/,hint:e=>`"${e[1]}" may be a signal. Read it with ${e[1]}(), set it with ${e[1]}.set(value).`},{pattern:/Cannot read propert(?:y|ies) of (null|undefined)/,hint:()=>"A value is null/undefined. Use optional chaining (?.) or wrap in <Show when={value()}>."},{pattern:/(\w+)\.(?:forEach|map|filter|reduce) is not a function/,hint:e=>`"${e[1]}" might be a signal containing an array. Call ${e[1]}() first to get the value: ${e[1]}().map(...)`},{pattern:/(\w+)\.set is not a function/,hint:e=>`"${e[1]}" is not a writable signal. Only signal() values have .set(). Computed values are read-only.`},{pattern:/Maximum call stack size exceeded/,hint:()=>"Possible circular dependency. Check if two computed values or effects read and write to each other."}];function J(e){if(!tt)return e;for(let{pattern:t,hint:n}of Pi){let r=t.exec(e.message);if(r){e.message+=`
|
|
62
|
+
|
|
63
|
+
\u{1F4A1} Hint: ${n(r)}`;break}}return e}function Ai(){tt&&(typeof window<"u"&&(window.addEventListener("error",e=>{e.error instanceof Error&&J(e.error);}),window.addEventListener("unhandledrejection",e=>{e.reason instanceof Error&&J(e.reason);})),typeof process<"u"&&process.on&&process.on("uncaughtException",e=>{J(e),console.error(e),process.exit(1);}));}export{Io as Await,gn as ErrorBoundary,ye as HYDRATE_ATTR,hr as Image,Un as Portal,vn as Suspense,ro as Switch,kn as Transition,Xn as VirtualFor,Vr as applyDirective,br as applyStyles,bo as assignTransitionName,Ho as awaitSignal,Ne as bindClass,Vo as bindClasses,Fo as bindDimensions,No as bindElement,$o as bindGroup,Ko as bindGroupItem,_o as bindScroll,$e as bindStyle,Wo as bindStyles,re as calculateRange,Or as capitalize,Cr as chain,Si as checkCompatibility,Se as checkForLeaks,bn as claimElement,wn as claimText,lo as clearProviders,Po as clearQueryState,Pn as collectSSRHead,er as countOps,On as createApp,ui as createCSRFInterceptor,wr as createDataTable,We as createEventBus,Fe as createFlip,De as createInjector,pi as createRateLimiter,ai as createSafeHTML,mn as createSlots,Jn as createToaster,Tr as css,Hr as currency,xe as cx,Ir as date,Qe as deepFreeze,Xo as deepSignal,uo as defer,Zn as defineAsyncComponent,Qr as defineCustomElement,H as defineDirective,Bo as defineFormAction,Pr as definePipe,Rn as definePlugin,so as defineProvider,zo as defineSnippet,yi as deprecated,hi as deprecatedValue,Kr as directiveFromFn,nr as disableLeakDetection,eo as discoverStaticRoutes,je as easings,tr as enableLeakDetection,Uo as enableSnapshots,J as enhanceError,ve as enterTransition,si as escapeHtml,En as exitTransition,xn as findHydrationBoundaries,Mo as flip,Ue as generateCSP,Ye as generateCSRFToken,to as generatePaths,li as generateSRI,ci as generateSecurityHeaders,Er as generateSitemap,Cn as generateTransitionCSS,Ti as getAPIsByStability,sr as getActiveEffects,Ge as getCSPHeaderName,wi as getDeprecationInfo,cr as getLeakDetectionStats,Ao as getQueryParams,et as getRegisteredAPIs,yn as getSuspenseContext,he as getTransitionClasses,ti as globalEventBus,fn as hasSlot,ee as hydrate,co as injectProvider,qo as inspect,Ci as installDevtools,Ai as installErrorHints,ei as isDeepSignal,bi as isDeprecated,Tn as isHydrationActive,rr as isLeakDetectionEnabled,_r as json,Te as longestIncreasingSubsequence,Rr as lowercase,oo as match,jr as number,jo as onEvent,Fr as percent,kr as pipe,Nr as plural,Zr as prerender,Sn as progressiveHydrate,be as reconcileKeys,vi as registerAPI,hn as registerPending,$r as relativeTime,zr as removeDirectives,Ro as removeQueryState,An as renderHeadToString,pn as renderSlot,Re as renderSwitch,ar as reportLeaks,gi as resetDeprecationWarnings,Oo as resetQueryState,Je as safeMerge,qe as sanitize,di as sanitizeURL,fi as setDeprecationWarnings,mi as setWarningHandler,no as sitemapFromResults,vo as startViewTransition,Le as supportsViewTransitions,Dr as titleCase,Yr as toCustomElement,Zo as toRaw,or as trackEffect,Lr as trim,Mr as truncate,Lo as tweened,ir as untrackEffect,Wr as updateDirective,Ar as uppercase,Ae as urlToFilePath,fr as useAnnounce,$n as useBreakpoint,Bn as useClickOutside,Vn as useClipboard,Hn as useCounter,Mn as useDebounce,dr as useFocusTrap,zn as useGeolocation,F as useHead,vr as useInfiniteScroll,Dn as useInterval,mr as useKeyboard,_n as useMediaQuery,Wn as useOnline,Ce as useOpenGraph,Fn as usePrevious,Ie as useQueryState,Co as useQueryStates,xr as useSEO,Kn as useStorage,ke as useStructuredData,Qn as useTheme,In as useThrottle,Ln as useTimeout,jn as useToggle,Pe as useTwitterCard,Yn as useVirtualList,qn as useWindowSize,qr as vAutoFocus,Br as vClickOutside,Gr as vIntersect,Ur as vLongPress,Jr as vResize,To as viewTransitionCSS,ae as watch,Jo as watchDebounced,Go as watchOnce,_e as withModifiers};//# sourceMappingURL=index.js.map
|
|
62
64
|
//# sourceMappingURL=index.js.map
|