From 3b1fe3ea5d87bee6fbc3c5a2310e2bdc913b7ce3 Mon Sep 17 00:00:00 2001 From: Tris0n Date: Sun, 28 Jul 2024 19:05:35 -0300 Subject: [PATCH] Updates --- 200.html | 8 ++++---- 404.html | 8 ++++---- CNAME | 1 - _payload.json | 2 +- assets/{DgK7STBN.js => 4vY3FX29.js} | 2 +- assets/{RN4l9m0U.js => BsD2QxVV.js} | 2 +- assets/{Bsabt5YL.js => CdskMUEL.js} | 10 +++++----- assets/{Dbnj5q1_.js => Citt7cBG.js} | 2 +- assets/{tIISvBlV.js => ZYpizJza.js} | 4 ++-- assets/builds/latest.json | 2 +- .../56a47d77-77ea-409d-a5b1-703fb33e3a0b.json | 1 + .../c57761cd-ce93-4c4e-8d99-72c8fb6c0a4e.json | 1 - assets/{DIgTqSKF.js => ys1wDdiv.js} | 2 +- index.html | 16 ++++++++-------- 14 files changed, 30 insertions(+), 31 deletions(-) delete mode 100644 CNAME rename assets/{DgK7STBN.js => 4vY3FX29.js} (99%) rename assets/{RN4l9m0U.js => BsD2QxVV.js} (97%) rename assets/{Bsabt5YL.js => CdskMUEL.js} (99%) rename assets/{Dbnj5q1_.js => Citt7cBG.js} (87%) rename assets/{tIISvBlV.js => ZYpizJza.js} (79%) create mode 100644 assets/builds/meta/56a47d77-77ea-409d-a5b1-703fb33e3a0b.json delete mode 100644 assets/builds/meta/c57761cd-ce93-4c4e-8d99-72c8fb6c0a4e.json rename assets/{DIgTqSKF.js => ys1wDdiv.js} (99%) diff --git a/200.html b/200.html index 144df85..938e60d 100644 --- a/200.html +++ b/200.html @@ -4,8 +4,8 @@ - - - -
+ + + +
\ No newline at end of file diff --git a/404.html b/404.html index 144df85..938e60d 100644 --- a/404.html +++ b/404.html @@ -4,8 +4,8 @@ - - - -
+ + + +
\ No newline at end of file diff --git a/CNAME b/CNAME deleted file mode 100644 index bc14cc7..0000000 --- a/CNAME +++ /dev/null @@ -1 +0,0 @@ -jwthunter.io \ No newline at end of file diff --git a/_payload.json b/_payload.json index f79ab0a..8c552b3 100644 --- a/_payload.json +++ b/_payload.json @@ -1 +1 @@ -[{"data":1,"prerenderedAt":3},["Reactive",2],{},1722194294625] \ No newline at end of file +[{"data":1,"prerenderedAt":3},["Reactive",2],{},1722204319937] \ No newline at end of file diff --git a/assets/DgK7STBN.js b/assets/4vY3FX29.js similarity index 99% rename from assets/DgK7STBN.js rename to assets/4vY3FX29.js index 9de8a6b..e516cf6 100644 --- a/assets/DgK7STBN.js +++ b/assets/4vY3FX29.js @@ -1 +1 @@ -import{u as P,d as A,c as y,h as N,r as C,o as B,a as j,b as I,e as E,f as L,g as S,i as T,j as U,p as V,k as D,n as H,l as F,m as q,q as O,w as $,s as M,_ as G,t as Q,v as W,x as J,y as m,z as k,A as K,B as X,C as Y,D as Z,E as ee}from"./Bsabt5YL.js";async function z(t,a=P()){const{path:i,matched:e}=a.resolve(t);if(!e.length||(a._routePreloaded||(a._routePreloaded=new Set),a._routePreloaded.has(i)))return;const r=a._preloadPromises=a._preloadPromises||[];if(r.length>4)return Promise.all(r).then(()=>z(t,a));a._routePreloaded.add(i);const s=e.map(u=>{var n;return(n=u.components)==null?void 0:n.default}).filter(u=>typeof u=="function");for(const u of s){const n=Promise.resolve(u()).catch(()=>{}).finally(()=>r.splice(r.indexOf(n)));r.push(n)}await Promise.all(r)}const te=(...t)=>t.find(a=>a!==void 0);function ae(t){const a=t.componentName||"NuxtLink";function i(e,r){if(!e||t.trailingSlash!=="append"&&t.trailingSlash!=="remove")return e;if(typeof e=="string")return w(e,t.trailingSlash);const s="path"in e&&e.path!==void 0?e.path:r(e).path;return{...e,name:void 0,path:w(s,t.trailingSlash)}}return A({name:a,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1}},setup(e,{slots:r}){const s=P(),u=F(),n=y(()=>{const o=e.to||e.href||"";return i(o,s.resolve)}),d=y(()=>typeof n.value=="string"&&N(n.value,{acceptRelative:!0})),g=y(()=>e.target&&e.target!=="_self"),b=y(()=>e.external||g.value?!0:typeof n.value=="object"?!1:n.value===""||d.value),_=C(!1),h=C(null),R=o=>{var f;h.value=e.custom?(f=o==null?void 0:o.$el)==null?void 0:f.nextElementSibling:o==null?void 0:o.$el};if(e.prefetch!==!1&&e.noPrefetch!==!0&&e.target!=="_blank"&&!oe()){const f=q();let p,l=null;B(()=>{const x=re();j(()=>{p=I(()=>{var c;(c=h==null?void 0:h.value)!=null&&c.tagName&&(l=x.observe(h.value,async()=>{l==null||l(),l=null;const v=typeof n.value=="string"?n.value:s.resolve(n.value).fullPath;await Promise.all([f.hooks.callHook("link:prefetch",v).catch(()=>{}),!b.value&&z(n.value,s).catch(()=>{})]),_.value=!0}))})})}),E(()=>{p&&L(p),l==null||l(),l=null})}return()=>{var l,x;if(!b.value){const c={ref:R,to:n.value,activeClass:e.activeClass||t.activeClass,exactActiveClass:e.exactActiveClass||t.exactActiveClass,replace:e.replace,ariaCurrentValue:e.ariaCurrentValue,custom:e.custom};return e.custom||(_.value&&(c.class=e.prefetchedClass||t.prefetchedClass),c.rel=e.rel||void 0),S(T("RouterLink"),c,r.default)}const o=typeof n.value=="object"?((l=s.resolve(n.value))==null?void 0:l.href)??null:n.value&&!e.external&&!d.value?i(U(u.app.baseURL,n.value),s.resolve):n.value||null,f=e.target||null,p=te(e.noRel?"":e.rel,t.externalRelAttribute,d.value||g.value?"noopener noreferrer":"")||null;if(e.custom){if(!r.default)return null;const c=()=>O(o,{replace:e.replace,external:e.external});return r.default({href:o,navigate:c,get route(){if(!o)return;const v=V(o);return{path:v.pathname,fullPath:v.pathname,get query(){return D(v.search)},hash:v.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:o}},rel:p,target:f,isExternal:b.value,isActive:!1,isExactActive:!1})}return S("a",{ref:h,href:o,rel:p,target:f},(x=r.default)==null?void 0:x.call(r))}}})}const ne=ae(H);function w(t,a){const i=a==="append"?$:M;return N(t)&&!t.startsWith("http")?t:i(t,!0)}function re(){const t=q();if(t._observer)return t._observer;let a=null;const i=new Map,e=(s,u)=>(a||(a=new IntersectionObserver(n=>{for(const d of n){const g=i.get(d.target);(d.isIntersecting||d.intersectionRatio>0)&&g&&g()}})),i.set(s,u),a.observe(s),()=>{i.delete(s),a.unobserve(s),i.size===0&&(a.disconnect(),a=null)});return t._observer={observe:e}}function oe(){const t=navigator.connection;return!!(t&&(t.saveData||/2g/.test(t.effectiveType)))}const se=t=>(Z("data-v-71447f4e"),t=t(),ee(),t),ie={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},le=se(()=>m("div",{class:"fixed left-0 right-0 spotlight z-10"},null,-1)),ue={class:"max-w-520px text-center z-20"},ce=["textContent"],de=["textContent"],fe={class:"w-full flex items-center justify-center"},he={__name:"error-404",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:404},statusMessage:{type:String,default:"Not Found"},description:{type:String,default:"Sorry, the page you are looking for could not be found."},backHome:{type:String,default:"Go back home"}},setup(t){const a=t;return Q({title:`${a.statusCode} - ${a.statusMessage} | ${a.appName}`,script:[],style:[{children:'*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:var(--un-default-border-color, #e5e7eb)}:before,:after{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}h1{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}h1,p{margin:0}*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(i,e)=>{const r=ne;return W(),J("div",ie,[le,m("div",ue,[m("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:k(t.statusCode)},null,8,ce),m("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:k(t.description)},null,8,de),m("div",fe,[K(r,{to:"/",class:"gradient-border text-md sm:text-xl py-2 px-4 sm:py-3 sm:px-6 cursor-pointer"},{default:X(()=>[Y(k(t.backHome),1)]),_:1})])])])}}},ve=G(he,[["__scopeId","data-v-71447f4e"]]);export{ve as default}; +import{u as P,d as A,c as y,h as N,r as C,o as B,a as j,b as I,e as E,f as L,g as S,i as T,j as U,p as V,k as D,n as H,l as F,m as q,q as O,w as $,s as M,_ as G,t as Q,v as W,x as J,y as m,z as k,A as K,B as X,C as Y,D as Z,E as ee}from"./CdskMUEL.js";async function z(t,a=P()){const{path:i,matched:e}=a.resolve(t);if(!e.length||(a._routePreloaded||(a._routePreloaded=new Set),a._routePreloaded.has(i)))return;const r=a._preloadPromises=a._preloadPromises||[];if(r.length>4)return Promise.all(r).then(()=>z(t,a));a._routePreloaded.add(i);const s=e.map(u=>{var n;return(n=u.components)==null?void 0:n.default}).filter(u=>typeof u=="function");for(const u of s){const n=Promise.resolve(u()).catch(()=>{}).finally(()=>r.splice(r.indexOf(n)));r.push(n)}await Promise.all(r)}const te=(...t)=>t.find(a=>a!==void 0);function ae(t){const a=t.componentName||"NuxtLink";function i(e,r){if(!e||t.trailingSlash!=="append"&&t.trailingSlash!=="remove")return e;if(typeof e=="string")return w(e,t.trailingSlash);const s="path"in e&&e.path!==void 0?e.path:r(e).path;return{...e,name:void 0,path:w(s,t.trailingSlash)}}return A({name:a,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1}},setup(e,{slots:r}){const s=P(),u=F(),n=y(()=>{const o=e.to||e.href||"";return i(o,s.resolve)}),d=y(()=>typeof n.value=="string"&&N(n.value,{acceptRelative:!0})),g=y(()=>e.target&&e.target!=="_self"),b=y(()=>e.external||g.value?!0:typeof n.value=="object"?!1:n.value===""||d.value),_=C(!1),h=C(null),R=o=>{var f;h.value=e.custom?(f=o==null?void 0:o.$el)==null?void 0:f.nextElementSibling:o==null?void 0:o.$el};if(e.prefetch!==!1&&e.noPrefetch!==!0&&e.target!=="_blank"&&!oe()){const f=q();let p,l=null;B(()=>{const x=re();j(()=>{p=I(()=>{var c;(c=h==null?void 0:h.value)!=null&&c.tagName&&(l=x.observe(h.value,async()=>{l==null||l(),l=null;const v=typeof n.value=="string"?n.value:s.resolve(n.value).fullPath;await Promise.all([f.hooks.callHook("link:prefetch",v).catch(()=>{}),!b.value&&z(n.value,s).catch(()=>{})]),_.value=!0}))})})}),E(()=>{p&&L(p),l==null||l(),l=null})}return()=>{var l,x;if(!b.value){const c={ref:R,to:n.value,activeClass:e.activeClass||t.activeClass,exactActiveClass:e.exactActiveClass||t.exactActiveClass,replace:e.replace,ariaCurrentValue:e.ariaCurrentValue,custom:e.custom};return e.custom||(_.value&&(c.class=e.prefetchedClass||t.prefetchedClass),c.rel=e.rel||void 0),S(T("RouterLink"),c,r.default)}const o=typeof n.value=="object"?((l=s.resolve(n.value))==null?void 0:l.href)??null:n.value&&!e.external&&!d.value?i(U(u.app.baseURL,n.value),s.resolve):n.value||null,f=e.target||null,p=te(e.noRel?"":e.rel,t.externalRelAttribute,d.value||g.value?"noopener noreferrer":"")||null;if(e.custom){if(!r.default)return null;const c=()=>O(o,{replace:e.replace,external:e.external});return r.default({href:o,navigate:c,get route(){if(!o)return;const v=V(o);return{path:v.pathname,fullPath:v.pathname,get query(){return D(v.search)},hash:v.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:o}},rel:p,target:f,isExternal:b.value,isActive:!1,isExactActive:!1})}return S("a",{ref:h,href:o,rel:p,target:f},(x=r.default)==null?void 0:x.call(r))}}})}const ne=ae(H);function w(t,a){const i=a==="append"?$:M;return N(t)&&!t.startsWith("http")?t:i(t,!0)}function re(){const t=q();if(t._observer)return t._observer;let a=null;const i=new Map,e=(s,u)=>(a||(a=new IntersectionObserver(n=>{for(const d of n){const g=i.get(d.target);(d.isIntersecting||d.intersectionRatio>0)&&g&&g()}})),i.set(s,u),a.observe(s),()=>{i.delete(s),a.unobserve(s),i.size===0&&(a.disconnect(),a=null)});return t._observer={observe:e}}function oe(){const t=navigator.connection;return!!(t&&(t.saveData||/2g/.test(t.effectiveType)))}const se=t=>(Z("data-v-71447f4e"),t=t(),ee(),t),ie={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},le=se(()=>m("div",{class:"fixed left-0 right-0 spotlight z-10"},null,-1)),ue={class:"max-w-520px text-center z-20"},ce=["textContent"],de=["textContent"],fe={class:"w-full flex items-center justify-center"},he={__name:"error-404",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:404},statusMessage:{type:String,default:"Not Found"},description:{type:String,default:"Sorry, the page you are looking for could not be found."},backHome:{type:String,default:"Go back home"}},setup(t){const a=t;return Q({title:`${a.statusCode} - ${a.statusMessage} | ${a.appName}`,script:[],style:[{children:'*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:var(--un-default-border-color, #e5e7eb)}:before,:after{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}h1{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}h1,p{margin:0}*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(i,e)=>{const r=ne;return W(),J("div",ie,[le,m("div",ue,[m("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:k(t.statusCode)},null,8,ce),m("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:k(t.description)},null,8,de),m("div",fe,[K(r,{to:"/",class:"gradient-border text-md sm:text-xl py-2 px-4 sm:py-3 sm:px-6 cursor-pointer"},{default:X(()=>[Y(k(t.backHome),1)]),_:1})])])])}}},ve=G(he,[["__scopeId","data-v-71447f4e"]]);export{ve as default}; diff --git a/assets/RN4l9m0U.js b/assets/BsD2QxVV.js similarity index 97% rename from assets/RN4l9m0U.js rename to assets/BsD2QxVV.js index c6be7db..4887c9f 100644 --- a/assets/RN4l9m0U.js +++ b/assets/BsD2QxVV.js @@ -1 +1 @@ -import{_ as a,t as o,v as s,x as i,y as e,z as r,D as u,E as l}from"./Bsabt5YL.js";const c=t=>(u("data-v-f271b975"),t=t(),l(),t),d={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},p=c(()=>e("div",{class:"fixed -bottom-1/2 left-0 right-0 h-1/2 spotlight"},null,-1)),h={class:"max-w-520px text-center"},b=["textContent"],g=["textContent"],f={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:500},statusMessage:{type:String,default:"Server error"},description:{type:String,default:"This page is temporarily unavailable."}},setup(t){const n=t;return o({title:`${n.statusCode} - ${n.statusMessage} | ${n.appName}`,script:[],style:[{children:'*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:var(--un-default-border-color, #e5e7eb)}:before,:after{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}h1{font-size:inherit;font-weight:inherit}h1,p{margin:0}*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(x,m)=>(s(),i("div",d,[p,e("div",h,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:r(t.statusCode)},null,8,b),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:r(t.description)},null,8,g)])]))}},k=a(f,[["__scopeId","data-v-f271b975"]]);export{k as default}; +import{_ as a,t as o,v as s,x as i,y as e,z as r,D as u,E as l}from"./CdskMUEL.js";const c=t=>(u("data-v-f271b975"),t=t(),l(),t),d={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},p=c(()=>e("div",{class:"fixed -bottom-1/2 left-0 right-0 h-1/2 spotlight"},null,-1)),h={class:"max-w-520px text-center"},b=["textContent"],g=["textContent"],f={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:500},statusMessage:{type:String,default:"Server error"},description:{type:String,default:"This page is temporarily unavailable."}},setup(t){const n=t;return o({title:`${n.statusCode} - ${n.statusMessage} | ${n.appName}`,script:[],style:[{children:'*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:var(--un-default-border-color, #e5e7eb)}:before,:after{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}h1{font-size:inherit;font-weight:inherit}h1,p{margin:0}*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(x,m)=>(s(),i("div",d,[p,e("div",h,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:r(t.statusCode)},null,8,b),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:r(t.description)},null,8,g)])]))}},k=a(f,[["__scopeId","data-v-f271b975"]]);export{k as default}; diff --git a/assets/Bsabt5YL.js b/assets/CdskMUEL.js similarity index 99% rename from assets/Bsabt5YL.js rename to assets/CdskMUEL.js index 66165cf..e8ad8a0 100644 --- a/assets/Bsabt5YL.js +++ b/assets/CdskMUEL.js @@ -1,4 +1,4 @@ -const __vite__fileDeps=["./tIISvBlV.js","./DIgTqSKF.js","./CAZilBRX.js","./Icon.Cuzu67LG.css","./Dbnj5q1_.js","./IconCSS.DlI1Mekx.css","./DgK7STBN.js","./error-404.Cs7Z0ZwI.css","./RN4l9m0U.js","./error-500.BY691cIp.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +const __vite__fileDeps=["./ZYpizJza.js","./ys1wDdiv.js","./CAZilBRX.js","./Icon.Cuzu67LG.css","./Citt7cBG.js","./IconCSS.DlI1Mekx.css","./4vY3FX29.js","./error-404.Cs7Z0ZwI.css","./BsD2QxVV.js","./error-500.BY691cIp.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); /** * @vue/shared v3.4.27 * (c) 2018-present Yuxi (Evan) You and Vue contributors @@ -15,15 +15,15 @@ const __vite__fileDeps=["./tIISvBlV.js","./DIgTqSKF.js","./CAZilBRX.js","./Icon. * @vue/runtime-dom v3.4.27 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/const Sd="http://www.w3.org/2000/svg",xd="http://www.w3.org/1998/Math/MathML",Ot=typeof document<"u"?document:null,zi=Ot&&Ot.createElement("template"),Td={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t==="svg"?Ot.createElementNS(Sd,e):t==="mathml"?Ot.createElementNS(xd,e):Ot.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>Ot.createTextNode(e),createComment:e=>Ot.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ot.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,s){const i=n?n.previousSibling:t.lastChild;if(o&&(o===s||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===s||!(o=o.nextSibling)););else{zi.innerHTML=r==="svg"?`${e}`:r==="mathml"?`${e}`:e;const a=zi.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ct="transition",Nn="animation",tr=Symbol("_vtc"),ri=(e,{slots:t})=>Ke(Ff,Rd(e),t);ri.displayName="Transition";const vc={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};ri.props=Ee({},Bl,vc);const qt=(e,t=[])=>{K(e)?e.forEach(n=>n(...t)):e&&e(...t)},Gi=e=>e?K(e)?e.some(t=>t.length>1):e.length>1:!1;function Rd(e){const t={};for(const T in e)T in vc||(t[T]=e[T]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:s=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=s,appearActiveClass:u=i,appearToClass:c=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,b=Ad(o),E=b&&b[0],A=b&&b[1],{onBeforeEnter:P,onEnter:y,onEnterCancelled:m,onLeave:v,onLeaveCancelled:_,onBeforeAppear:C=P,onAppear:M=y,onAppearCancelled:S=m}=t,I=(T,z,oe)=>{Vt(T,z?c:a),Vt(T,z?u:i),oe&&oe()},L=(T,z)=>{T._isLeaving=!1,Vt(T,f),Vt(T,h),Vt(T,d),z&&z()},V=T=>(z,oe)=>{const re=T?M:y,H=()=>I(z,T,oe);qt(re,[z,H]),Ji(()=>{Vt(z,T?l:s),St(z,T?c:a),Gi(re)||Qi(z,r,E,H)})};return Ee(t,{onBeforeEnter(T){qt(P,[T]),St(T,s),St(T,i)},onBeforeAppear(T){qt(C,[T]),St(T,l),St(T,u)},onEnter:V(!1),onAppear:V(!0),onLeave(T,z){T._isLeaving=!0;const oe=()=>L(T,z);St(T,f),St(T,d),Id(),Ji(()=>{T._isLeaving&&(Vt(T,f),St(T,h),Gi(v)||Qi(T,r,A,oe))}),qt(v,[T,oe])},onEnterCancelled(T){I(T,!1),qt(m,[T])},onAppearCancelled(T){I(T,!0),qt(S,[T])},onLeaveCancelled(T){L(T),qt(_,[T])}})}function Ad(e){if(e==null)return null;if(fe(e))return[Mo(e.enter),Mo(e.leave)];{const t=Mo(e);return[t,t]}}function Mo(e){return nl(e)}function St(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[tr]||(e[tr]=new Set)).add(t)}function Vt(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[tr];n&&(n.delete(t),n.size||(e[tr]=void 0))}function Ji(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Pd=0;function Qi(e,t,n,r){const o=e._endId=++Pd,s=()=>{o===e._endId&&r()};if(n)return setTimeout(s,n);const{type:i,timeout:a,propCount:l}=kd(e,t);if(!i)return r();const u=i+"end";let c=0;const f=()=>{e.removeEventListener(u,d),s()},d=h=>{h.target===e&&++c>=l&&f()};setTimeout(()=>{c(n[b]||"").split(", "),o=r(`${Ct}Delay`),s=r(`${Ct}Duration`),i=Xi(o,s),a=r(`${Nn}Delay`),l=r(`${Nn}Duration`),u=Xi(a,l);let c=null,f=0,d=0;t===Ct?i>0&&(c=Ct,f=i,d=s.length):t===Nn?u>0&&(c=Nn,f=u,d=l.length):(f=Math.max(i,u),c=f>0?i>u?Ct:Nn:null,d=c?c===Ct?s.length:l.length:0);const h=c===Ct&&/\b(transform|all)(,|$)/.test(r(`${Ct}Property`).toString());return{type:c,timeout:f,propCount:d,hasTransform:h}}function Xi(e,t){for(;e.lengthYi(n)+Yi(e[r])))}function Yi(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Id(){return document.body.offsetHeight}function Od(e,t,n){const r=e[tr];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Zi=Symbol("_vod"),Ld=Symbol("_vsh"),_c=Symbol("");function Fb(e){const t=nn();if(!t)return;const n=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(s=>ls(s,o))},r=()=>{const o=e(t.proxy);as(t.subTree,o),n(o)};On(()=>{Nf(r);const o=new MutationObserver(r);o.observe(t.subTree.el.parentNode,{childList:!0}),ur(()=>o.disconnect())})}function as(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{as(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)ls(e.el,t);else if(e.type===Oe)e.children.forEach(n=>as(n,t));else if(e.type===vn){let{el:n,anchor:r}=e;for(;n&&(ls(n,t),n!==r);)n=n.nextSibling}}function ls(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const o in t)n.setProperty(`--${o}`,t[o]),r+=`--${o}: ${t[o]};`;n[_c]=r}}const Md=/(^|;)\s*display\s*:/;function Nd(e,t,n){const r=e.style,o=be(n);let s=!1;if(n&&!o){if(t)if(be(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();n[a]==null&&kr(r,a,"")}else for(const i in t)n[i]==null&&kr(r,i,"");for(const i in n)i==="display"&&(s=!0),kr(r,i,n[i])}else if(o){if(t!==n){const i=r[_c];i&&(n+=";"+i),r.cssText=n,s=Md.test(n)}}else t&&e.removeAttribute("style");Zi in e&&(e[Zi]=s?r.display:"",e[Ld]&&(r.display="none"))}const ea=/\s*!important$/;function kr(e,t,n){if(K(n))n.forEach(r=>kr(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=$d(e,t);ea.test(n)?e.setProperty(kn(r),n.replace(ea,""),"important"):e[r]=n}}const ta=["Webkit","Moz","ms"],No={};function $d(e,t){const n=No[t];if(n)return n;let r=lt(t);if(r!=="filter"&&r in e)return No[t]=r;r=ro(r);for(let o=0;o$o||(Dd.then(()=>$o=0),$o=Date.now());function Vd(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Xe(Wd(r,n.value),t,5,[r])};return n.value=e,n.attached=qd(),n}function Wd(e,t){if(K(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const sa=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Kd=(e,t,n,r,o,s,i,a,l)=>{const u=o==="svg";t==="class"?Od(e,r,u):t==="style"?Nd(e,n,r):ar(t)?Hs(t)||Bd(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):zd(e,t,r,u))?jd(e,t,r,s,i,a,l):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Hd(e,t,r,u))};function zd(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&sa(t)&&Q(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return sa(t)&&be(n)?!1:t in e}const zr=e=>{const t=e.props["onUpdate:modelValue"]||!1;return K(t)?n=>hn(t,n):t};function Gd(e){e.target.composing=!0}function ia(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const _n=Symbol("_assign"),Bb={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e[_n]=zr(o);const s=r||o.props&&o.props.type==="number";zt(e,t?"change":"input",i=>{if(i.target.composing)return;let a=e.value;n&&(a=a.trim()),s&&(a=Wo(a)),e[_n](a)}),n&&zt(e,"change",()=>{e.value=e.value.trim()}),t||(zt(e,"compositionstart",Gd),zt(e,"compositionend",ia),zt(e,"change",ia))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:o}},s){if(e[_n]=zr(s),e.composing)return;const i=(o||e.type==="number")&&!/^0\d/.test(e.value)?Wo(e.value):e.value,a=t??"";i!==a&&(document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===a)||(e.value=a))}},Ub={deep:!0,created(e,t,n){e[_n]=zr(n),zt(e,"change",()=>{const r=e._modelValue,o=Jd(e),s=e.checked,i=e[_n];if(K(r)){const a=sl(r,o),l=a!==-1;if(s&&!l)i(r.concat(o));else if(!s&&l){const u=[...r];u.splice(a,1),i(u)}}else if(to(r)){const a=new Set(r);s?a.add(o):a.delete(o),i(a)}else i(wc(e,s))})},mounted:aa,beforeUpdate(e,t,n){e[_n]=zr(n),aa(e,t,n)}};function aa(e,{value:t,oldValue:n},r){e._modelValue=t,K(t)?e.checked=sl(t,r.props.value)>-1:to(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=io(t,wc(e,!0)))}function Jd(e){return"_value"in e?e._value:e.value}function wc(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Ec=Ee({patchProp:Kd},Td);let Wn,la=!1;function Qd(){return Wn||(Wn=fd(Ec))}function Xd(){return Wn=la?Wn:dd(Ec),la=!0,Wn}const Cc=(...e)=>{const t=Qd().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=xc(r);if(!o)return;const s=t._component;!Q(s)&&!s.render&&!s.template&&(s.template=o.innerHTML),o.innerHTML="";const i=n(o,!1,Sc(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t},Yd=(...e)=>{const t=Xd().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=xc(r);if(o)return n(o,!0,Sc(o))},t};function Sc(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function xc(e){return be(e)?document.querySelector(e):e}const Zd=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,ep=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,tp=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function np(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){rp(e);return}return t}function rp(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Gr(e,t={}){if(typeof e!="string")return e;const n=e.trim();if(e[0]==='"'&&e.endsWith('"')&&!e.includes("\\"))return n.slice(1,-1);if(n.length<=9){const r=n.toLowerCase();if(r==="true")return!0;if(r==="false")return!1;if(r==="undefined")return;if(r==="null")return null;if(r==="nan")return Number.NaN;if(r==="infinity")return Number.POSITIVE_INFINITY;if(r==="-infinity")return Number.NEGATIVE_INFINITY}if(!tp.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(Zd.test(e)||ep.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,np)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}const op=/#/g,sp=/&/g,ip=/\//g,ap=/=/g,oi=/\+/g,lp=/%5e/gi,cp=/%60/gi,up=/%7c/gi,fp=/%20/gi;function dp(e){return encodeURI(""+e).replace(up,"|")}function cs(e){return dp(typeof e=="string"?e:JSON.stringify(e)).replace(oi,"%2B").replace(fp,"+").replace(op,"%23").replace(sp,"%26").replace(cp,"`").replace(lp,"^").replace(ip,"%2F")}function Ho(e){return cs(e).replace(ap,"%3D")}function Jr(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function pp(e){return Jr(e.replace(oi," "))}function hp(e){return Jr(e.replace(oi," "))}function gp(e=""){const t={};e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const o=pp(r[1]);if(o==="__proto__"||o==="constructor")continue;const s=hp(r[2]||"");t[o]===void 0?t[o]=s:Array.isArray(t[o])?t[o].push(s):t[o]=[t[o],s]}return t}function mp(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${Ho(e)}=${cs(n)}`).join("&"):`${Ho(e)}=${cs(t)}`:Ho(e)}function yp(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>mp(t,e[t])).filter(Boolean).join("&")}const bp=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,vp=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,_p=/^([/\\]\s*){2,}[^/\\]/,wp=/^[\s\0]*(blob|data|javascript|vbscript):$/i,Ep=/\/$|\/\?|\/#/,Cp=/^\.?\//;function rn(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?bp.test(e):vp.test(e)||(t.acceptRelative?_p.test(e):!1)}function Sp(e){return!!e&&wp.test(e)}function us(e="",t){return t?Ep.test(e):e.endsWith("/")}function si(e="",t){if(!t)return(us(e)?e.slice(0,-1):e)||"/";if(!us(e,!0))return e||"/";let n=e,r="";const o=e.indexOf("#");o>=0&&(n=e.slice(0,o),r=e.slice(o));const[s,...i]=n.split("?");return((s.endsWith("/")?s.slice(0,-1):s)||"/")+(i.length>0?`?${i.join("?")}`:"")+r}function fs(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(us(e,!0))return e||"/";let n=e,r="";const o=e.indexOf("#");if(o>=0&&(n=e.slice(0,o),r=e.slice(o),!n))return r;const[s,...i]=n.split("?");return s+"/"+(i.length>0?`?${i.join("?")}`:"")+r}function xp(e=""){return e.startsWith("/")}function ca(e=""){return xp(e)?e:"/"+e}function Tp(e,t){if(Rc(t)||rn(e))return e;const n=si(t);return e.startsWith(n)?e:ii(n,e)}function ua(e,t){if(Rc(t))return e;const n=si(t);if(!e.startsWith(n))return e;const r=e.slice(n.length);return r[0]==="/"?r:"/"+r}function Tc(e,t){const n=mo(e),r={...gp(n.search),...t};return n.search=yp(r),Pp(n)}function Rc(e){return!e||e==="/"}function Rp(e){return e&&e!=="/"}function ii(e,...t){let n=e||"";for(const r of t.filter(o=>Rp(o)))if(n){const o=r.replace(Cp,"");n=fs(n)+o}else n=r;return n}function Ac(...e){var i,a,l,u;const t=/\/(?!\/)/,n=e.filter(Boolean),r=[];let o=0;for(const c of n)if(!(!c||c==="/")){for(const[f,d]of c.split(t).entries())if(!(!d||d===".")){if(d===".."){if(r.length===1&&rn(r[0]))continue;r.pop(),o--;continue}if(f===1&&((i=r[r.length-1])!=null&&i.endsWith(":/"))){r[r.length-1]+="/"+d;continue}r.push(d),o++}}let s=r.join("/");return o>=0?(a=n[0])!=null&&a.startsWith("/")&&!s.startsWith("/")?s="/"+s:(l=n[0])!=null&&l.startsWith("./")&&!s.startsWith("./")&&(s="./"+s):s="../".repeat(-1*o)+s,(u=n[n.length-1])!=null&&u.endsWith("/")&&!s.endsWith("/")&&(s+="/"),s}function Ap(e,t,n={}){return n.trailingSlash||(e=fs(e),t=fs(t)),n.leadingSlash||(e=ca(e),t=ca(t)),n.encoding||(e=Jr(e),t=Jr(t)),e===t}const Pc=Symbol.for("ufo:protocolRelative");function mo(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,f,d=""]=n;return{protocol:f.toLowerCase(),pathname:d,href:f+d,auth:"",host:"",search:"",hash:""}}if(!rn(e,{acceptRelative:!0}))return t?mo(t+e):fa(e);const[,r="",o,s=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,i="",a=""]=s.match(/([^#/?]*)(.*)?/)||[],{pathname:l,search:u,hash:c}=fa(a.replace(/\/(?=[A-Za-z]:)/,""));return{protocol:r.toLowerCase(),auth:o?o.slice(0,Math.max(0,o.length-1)):"",host:i,pathname:l,search:u,hash:c,[Pc]:!r}}function fa(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function Pp(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",r=e.hash||"",o=e.auth?e.auth+"@":"",s=e.host||"";return(e.protocol||e[Pc]?(e.protocol||"")+"//":"")+o+s+t+n+r}class kp extends Error{constructor(t,n){super(t,n),this.name="FetchError",n!=null&&n.cause&&!this.cause&&(this.cause=n.cause)}}function Ip(e){var l,u,c,f,d;const t=((l=e.error)==null?void 0:l.message)||((u=e.error)==null?void 0:u.toString())||"",n=((c=e.request)==null?void 0:c.method)||((f=e.options)==null?void 0:f.method)||"GET",r=((d=e.request)==null?void 0:d.url)||String(e.request)||"/",o=`[${n}] ${JSON.stringify(r)}`,s=e.response?`${e.response.status} ${e.response.statusText}`:"",i=`${o}: ${s}${t?` ${t}`:""}`,a=new kp(i,e.error?{cause:e.error}:void 0);for(const h of["request","options","response"])Object.defineProperty(a,h,{get(){return e[h]}});for(const[h,b]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,h,{get(){return e.response&&e.response[b]}});return a}const Op=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function da(e="GET"){return Op.has(e.toUpperCase())}function Lp(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const Mp=new Set(["image/svg","application/xml","application/xhtml","application/html"]),Np=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function $p(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return Np.test(t)?"json":Mp.has(t)||t.startsWith("text/")?"text":"blob"}function Hp(e,t,n=globalThis.Headers){const r={...t,...e};if(t!=null&&t.params&&(e!=null&&e.params)&&(r.params={...t==null?void 0:t.params,...e==null?void 0:e.params}),t!=null&&t.query&&(e!=null&&e.query)&&(r.query={...t==null?void 0:t.query,...e==null?void 0:e.query}),t!=null&&t.headers&&(e!=null&&e.headers)){r.headers=new n((t==null?void 0:t.headers)||{});for(const[o,s]of new n((e==null?void 0:e.headers)||{}))r.headers.set(o,s)}return r}const jp=new Set([408,409,425,429,500,502,503,504]),Fp=new Set([101,204,205,304]);function kc(e={}){const{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;async function o(a){const l=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!l){let c;typeof a.options.retry=="number"?c=a.options.retry:c=da(a.options.method)?0:1;const f=a.response&&a.response.status||500;if(c>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(f):jp.has(f))){const d=a.options.retryDelay||0;return d>0&&await new Promise(h=>setTimeout(h,d)),s(a.request,{...a.options,retry:c-1})}}const u=Ip(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,s),u}const s=async function(l,u={}){var h;const c={request:l,options:Hp(u,e.defaults,n),response:void 0,error:void 0};c.options.method=(h=c.options.method)==null?void 0:h.toUpperCase(),c.options.onRequest&&await c.options.onRequest(c),typeof c.request=="string"&&(c.options.baseURL&&(c.request=Tp(c.request,c.options.baseURL)),(c.options.query||c.options.params)&&(c.request=Tc(c.request,{...c.options.params,...c.options.query}))),c.options.body&&da(c.options.method)&&(Lp(c.options.body)?(c.options.body=typeof c.options.body=="string"?c.options.body:JSON.stringify(c.options.body),c.options.headers=new n(c.options.headers||{}),c.options.headers.has("content-type")||c.options.headers.set("content-type","application/json"),c.options.headers.has("accept")||c.options.headers.set("accept","application/json")):("pipeTo"in c.options.body&&typeof c.options.body.pipeTo=="function"||typeof c.options.body.pipe=="function")&&("duplex"in c.options||(c.options.duplex="half")));let f;if(!c.options.signal&&c.options.timeout){const b=new r;f=setTimeout(()=>b.abort(),c.options.timeout),c.options.signal=b.signal}try{c.response=await t(c.request,c.options)}catch(b){return c.error=b,c.options.onRequestError&&await c.options.onRequestError(c),await o(c)}finally{f&&clearTimeout(f)}if(c.response.body&&!Fp.has(c.response.status)&&c.options.method!=="HEAD"){const b=(c.options.parseResponse?"json":c.options.responseType)||$p(c.response.headers.get("content-type")||"");switch(b){case"json":{const E=await c.response.text(),A=c.options.parseResponse||Gr;c.response._data=A(E);break}case"stream":{c.response._data=c.response.body;break}default:c.response._data=await c.response[b]()}}return c.options.onResponse&&await c.options.onResponse(c),!c.options.ignoreResponseError&&c.response.status>=400&&c.response.status<600?(c.options.onResponseError&&await c.options.onResponseError(c),await o(c)):c.response},i=async function(l,u){return(await s(l,u))._data};return i.raw=s,i.native=(...a)=>t(...a),i.create=(a={})=>kc({...e,defaults:{...e.defaults,...a}}),i}const ai=function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}(),Bp=ai.fetch||(()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!"))),Up=ai.Headers,Dp=ai.AbortController,qp=kc({fetch:Bp,Headers:Up,AbortController:Dp}),Vp=qp,Wp=()=>{var e;return((e=window==null?void 0:window.__NUXT__)==null?void 0:e.config)||{}},Qr=Wp().app,Kp=()=>Qr.baseURL,zp=()=>Qr.buildAssetsDir,li=(...e)=>Ac(Ic(),zp(),...e),Ic=(...e)=>{const t=Qr.cdnURL||Qr.baseURL;return e.length?Ac(t,...e):t};globalThis.__buildAssetsURL=li,globalThis.__publicAssetsURL=Ic;globalThis.$fetch||(globalThis.$fetch=Vp.create({baseURL:Kp()}));function ds(e,t={},n){for(const r in e){const o=e[r],s=n?`${n}:${r}`:r;typeof o=="object"&&o!==null?ds(o,t,s):typeof o=="function"&&(t[s]=o)}return t}const Gp={run:e=>e()},Jp=()=>Gp,Oc=typeof console.createTask<"u"?console.createTask:Jp;function Qp(e,t){const n=t.shift(),r=Oc(n);return e.reduce((o,s)=>o.then(()=>r.run(()=>s(...t))),Promise.resolve())}function Xp(e,t){const n=t.shift(),r=Oc(n);return Promise.all(e.map(o=>r.run(()=>o(...t))))}function jo(e,t){for(const n of[...e])n(t)}class Yp{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,r={}){if(!t||typeof n!="function")return()=>{};const o=t;let s;for(;this._deprecatedHooks[t];)s=this._deprecatedHooks[t],t=s.to;if(s&&!r.allowDeprecated){let i=s.message;i||(i=`${o} hook has been deprecated`+(s.to?`, please use ${s.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(i)||(console.warn(i),this._deprecatedMessages.add(i))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let r,o=(...s)=>(typeof r=="function"&&r(),r=void 0,o=void 0,n(...s));return r=this.hook(t,o),r}removeHook(t,n){if(this._hooks[t]){const r=this._hooks[t].indexOf(n);r!==-1&&this._hooks[t].splice(r,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const r=this._hooks[t]||[];delete this._hooks[t];for(const o of r)this.hook(t,o)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=ds(t),r=Object.keys(n).map(o=>this.hook(o,n[o]));return()=>{for(const o of r.splice(0,r.length))o()}}removeHooks(t){const n=ds(t);for(const r in n)this.removeHook(r,n[r])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(Qp,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(Xp,t,...n)}callHookWith(t,n,...r){const o=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&jo(this._before,o);const s=t(n in this._hooks?[...this._hooks[n]]:[],r);return s instanceof Promise?s.finally(()=>{this._after&&o&&jo(this._after,o)}):(this._after&&o&&jo(this._after,o),s)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function Lc(){return new Yp}function Zp(e={}){let t,n=!1;const r=i=>{if(t&&t!==i)throw new Error("Context conflict")};let o;if(e.asyncContext){const i=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;i?o=new i:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const s=()=>{if(o&&t===void 0){const i=o.getStore();if(i!==void 0)return i}return t};return{use:()=>{const i=s();if(i===void 0)throw new Error("Context is not available");return i},tryUse:()=>s(),set:(i,a)=>{a||r(i),t=i,n=!0},unset:()=>{t=void 0,n=!1},call:(i,a)=>{r(i),t=i;try{return o?o.run(i,a):a()}finally{n||(t=void 0)}},async callAsync(i,a){t=i;const l=()=>{t=i},u=()=>t===i?l:void 0;ps.add(u);try{const c=o?o.run(i,a):a();return n||(t=void 0),await c}finally{ps.delete(u)}}}}function eh(e={}){const t={};return{get(n,r={}){return t[n]||(t[n]=Zp({...e,...r})),t[n],t[n]}}}const Xr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},pa="__unctx__",th=Xr[pa]||(Xr[pa]=eh()),nh=(e,t={})=>th.get(e,t),ha="__unctx_async_handlers__",ps=Xr[ha]||(Xr[ha]=new Set);function nr(e){const t=[];for(const o of ps){const s=o();s&&t.push(s)}const n=()=>{for(const o of t)o()};let r=e();return r&&typeof r=="object"&&"catch"in r&&(r=r.catch(o=>{throw n(),o})),[r,n]}const Mc=nh("nuxt-app",{asyncContext:!1}),rh="__nuxt_plugin";function oh(e){let t=0;const n={_scope:Us(),provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.11.2"},get vue(){return n.vueApp.version}},payload:Ne({data:{},state:{},once:new Set,_errors:{},...window.__NUXT__??{}}),static:{data:{}},runWithContext:o=>n._scope.run(()=>ah(n,o)),isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let o=!1;return()=>{if(!o&&(o=!0,t--,t===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:{},_payloadRevivers:{},...e};n.hooks=Lc(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(o,s)=>{const i="$"+o;Sr(n,i,s),Sr(n.vueApp.config.globalProperties,i,s)},Sr(n.vueApp,"$nuxt",n),Sr(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener("nuxt.preloadError",s=>{n.callHook("app:chunkError",{error:s.payload})}),window.useNuxtApp=window.useNuxtApp||ve;const o=n.hook("app:error",(...s)=>{console.error("[nuxt] error caught during app initialization",...s)});n.hook("app:mounted",o)}const r=n.payload.config;return n.provide("config",r),n}async function sh(e,t){if(t.hooks&&e.hooks.addHooks(t.hooks),typeof t=="function"){const{provide:n}=await e.runWithContext(()=>t(e))||{};if(n&&typeof n=="object")for(const r in n)e.provide(r,n[r])}}async function ih(e,t){const n=[],r=[],o=[],s=[];let i=0;async function a(l){var c;const u=((c=l.dependsOn)==null?void 0:c.filter(f=>t.some(d=>d._name===f)&&!n.includes(f)))??[];if(u.length>0)r.push([new Set(u),l]);else{const f=sh(e,l).then(async()=>{l._name&&(n.push(l._name),await Promise.all(r.map(async([d,h])=>{d.has(l._name)&&(d.delete(l._name),d.size===0&&(i++,await a(h)))})))});l.parallel?o.push(f.catch(d=>s.push(d))):await f}}for(const l of t)await a(l);if(await Promise.all(o),i)for(let l=0;l{}),e,{[rh]:!0,_name:t})}function ah(e,t,n){const r=()=>t();return Mc.set(e),e.vueApp.runWithContext(r)}function lh(){var t;let e;return ei()&&(e=(t=nn())==null?void 0:t.appContext.app.$nuxt),e=e||Mc.tryUse(),e||null}function ve(){const e=lh();if(!e)throw new Error("[nuxt] instance unavailable");return e}function ci(e){return ve().$config}function Sr(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function ch(e,t){return{ctx:{table:e},matchAll:n=>$c(n,e)}}function Nc(e){const t={};for(const n in e)t[n]=n==="dynamic"?new Map(Object.entries(e[n]).map(([r,o])=>[r,Nc(o)])):new Map(Object.entries(e[n]));return t}function uh(e){return ch(Nc(e))}function $c(e,t,n){e.endsWith("/")&&(e=e.slice(0,-1)||"/");const r=[];for(const[s,i]of ga(t.wildcard))(e===s||e.startsWith(s+"/"))&&r.push(i);for(const[s,i]of ga(t.dynamic))if(e.startsWith(s+"/")){const a="/"+e.slice(s.length).split("/").splice(2).join("/");r.push(...$c(a,i))}const o=t.static.get(e);return o&&r.push(o),r.filter(Boolean)}function ga(e){return[...e.entries()].sort((t,n)=>t[0].length-n[0].length)}function Fo(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function hs(e,t,n=".",r){if(!Fo(t))return hs(e,{},n,r);const o=Object.assign({},t);for(const s in e){if(s==="__proto__"||s==="constructor")continue;const i=e[s];i!=null&&(r&&r(o,s,i,n)||(Array.isArray(i)&&Array.isArray(o[s])?o[s]=[...i,...o[s]]:Fo(i)&&Fo(o[s])?o[s]=hs(i,o[s],(n?`${n}.`:"")+s.toString(),r):o[s]=i))}return o}function ui(e){return(...t)=>t.reduce((n,r)=>hs(n,r,"",e),{})}const fi=ui(),fh=ui((e,t,n)=>{if(e[t]!==void 0&&typeof n=="function")return e[t]=n(e[t]),!0});function dh(e,t){try{return t in e}catch{return!1}}var ph=Object.defineProperty,hh=(e,t,n)=>t in e?ph(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Wt=(e,t,n)=>(hh(e,typeof t!="symbol"?t+"":t,n),n);class gs extends Error{constructor(t,n={}){super(t,n),Wt(this,"statusCode",500),Wt(this,"fatal",!1),Wt(this,"unhandled",!1),Wt(this,"statusMessage"),Wt(this,"data"),Wt(this,"cause"),n.cause&&!this.cause&&(this.cause=n.cause)}toJSON(){const t={message:this.message,statusCode:ys(this.statusCode,500)};return this.statusMessage&&(t.statusMessage=Hc(this.statusMessage)),this.data!==void 0&&(t.data=this.data),t}}Wt(gs,"__h3_error__",!0);function ms(e){if(typeof e=="string")return new gs(e);if(gh(e))return e;const t=new gs(e.message??e.statusMessage??"",{cause:e.cause||e});if(dh(e,"stack"))try{Object.defineProperty(t,"stack",{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=ys(e.statusCode,t.statusCode):e.status&&(t.statusCode=ys(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;Hc(t.statusMessage)!==n&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function gh(e){var t;return((t=e==null?void 0:e.constructor)==null?void 0:t.__h3_error__)===!0}const mh=/[^\u0009\u0020-\u007E]/g;function Hc(e=""){return e.replace(mh,"")}function ys(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const yh=Symbol("layout-meta"),yo=Symbol("route"),ft=()=>{var e;return(e=ve())==null?void 0:e.$router},jc=()=>ei()?Fe(yo,ve()._route):ve()._route;const bh=()=>{try{if(ve()._processingMiddleware)return!0}catch{return!1}return!1},Db=(e,t)=>{e||(e="/");const n=typeof e=="string"?e:Tc(e.path||"/",e.query||{})+(e.hash||"");if(t!=null&&t.open){const{target:a="_blank",windowFeatures:l={}}=t.open,u=Object.entries(l).filter(([c,f])=>f!==void 0).map(([c,f])=>`${c.toLowerCase()}=${f}`).join(", ");return open(n,a,u),Promise.resolve()}const r=(t==null?void 0:t.external)||rn(n,{acceptRelative:!0});if(r){if(!(t!=null&&t.external))throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const a=mo(n).protocol;if(a&&Sp(a))throw new Error(`Cannot navigate to a URL with '${a}' protocol.`)}const o=bh();if(!r&&o)return e;const s=ft(),i=ve();return r?(i._scope.stop(),t!=null&&t.replace?location.replace(n):location.href=n,o?i.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):t!=null&&t.replace?s.replace(e):s.push(e)},Fc="__nuxt_error",bo=()=>Tl(ve().payload,"error"),un=e=>{const t=vo(e);try{const n=ve(),r=bo();n.hooks.callHook("app:error",t),r.value=r.value||t}catch{throw t}return t},vh=async(e={})=>{const t=ve(),n=bo();t.callHook("app:error:cleared",e),e.redirect&&await ft().replace(e.redirect),n.value=null},_h=e=>!!e&&typeof e=="object"&&Fc in e,vo=e=>{const t=ms(e);return Object.defineProperty(t,Fc,{value:!0,configurable:!1,writable:!1}),t},wh=-1,Eh=-2,Ch=-3,Sh=-4,xh=-5,Th=-6;function Rh(e,t){return Ah(JSON.parse(e),t)}function Ah(e,t){if(typeof e=="number")return o(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function o(s,i=!1){if(s===wh)return;if(s===Ch)return NaN;if(s===Sh)return 1/0;if(s===xh)return-1/0;if(s===Th)return-0;if(i)throw new Error("Invalid input");if(s in r)return r[s];const a=n[s];if(!a||typeof a!="object")r[s]=a;else if(Array.isArray(a))if(typeof a[0]=="string"){const l=a[0],u=t==null?void 0:t[l];if(u)return r[s]=u(o(a[1]));switch(l){case"Date":r[s]=new Date(a[1]);break;case"Set":const c=new Set;r[s]=c;for(let h=1;h>>9)+65536).toString(16).substring(1,8).toLowerCase()}function ma(e){return e._h||di(e._d?e._d:`${e.tag}:${e.textContent||e.innerHTML||""}:${Object.entries(e.props).map(([t,n])=>`${t}:${String(n)}`).join(",")}`)}function Uc(e,t){const{props:n,tag:r}=e;if(Oh.includes(r))return r;if(r==="link"&&n.rel==="canonical")return"canonical";if(n.charset)return"charset";const o=["id"];r==="meta"&&o.push("name","property","http-equiv");for(const s of o)if(typeof n[s]<"u"){const i=String(n[s]);return`${r}:${s}:${i}`}return!1}function ya(e,t){return e==null?t||null:typeof e=="function"?e(t):e}async function Mh(e,t,n){const r={tag:e,props:await Dc(typeof t=="object"&&typeof t!="function"&&!(t instanceof Promise)?{...t}:{[["script","noscript","style"].includes(e)?"innerHTML":"textContent"]:t},["templateParams","titleTemplate"].includes(e))};return Bc.forEach(o=>{const s=typeof r.props[o]<"u"?r.props[o]:n[o];typeof s<"u"&&((!["innerHTML","textContent","children"].includes(o)||kh.includes(r.tag))&&(r[o==="children"?"innerHTML":o]=s),delete r.props[o])}),r.props.body&&(r.tagPosition="bodyClose",delete r.props.body),r.tag==="script"&&typeof r.innerHTML=="object"&&(r.innerHTML=JSON.stringify(r.innerHTML),r.props.type=r.props.type||"application/json"),Array.isArray(r.props.content)?r.props.content.map(o=>({...r,props:{...r.props,content:o}})):r}function Nh(e,t){var r;const n=e==="class"?" ":";";return typeof t=="object"&&!Array.isArray(t)&&(t=Object.entries(t).filter(([,o])=>o).map(([o,s])=>e==="style"?`${o}:${s}`:o)),(r=String(Array.isArray(t)?t.join(n):t))==null?void 0:r.split(n).filter(o=>o.trim()).filter(Boolean).join(n)}async function Dc(e,t){for(const n of Object.keys(e)){if(["class","style"].includes(n)){e[n]=Nh(n,e[n]);continue}if(e[n]instanceof Promise&&(e[n]=await e[n]),!t&&!Bc.includes(n)){const r=String(e[n]),o=n.startsWith("data-");r==="true"||r===""?e[n]=o?"true":!0:e[n]||(o&&r==="false"?e[n]="false":delete e[n])}}return e}const $h=10;async function Hh(e){const t=[];return Object.entries(e.resolvedInput).filter(([n,r])=>typeof r<"u"&&Ih.includes(n)).forEach(([n,r])=>{const o=Ph(r);t.push(...o.map(s=>Mh(n,s,e)).flat())}),(await Promise.all(t)).flat().filter(Boolean).map((n,r)=>(n._e=e._i,e.mode&&(n._m=e.mode),n._p=(e._i<<$h)+r,n))}const ba={base:-10,title:10},va={critical:-80,high:-10,low:20};function Yr(e){let t=100;const n=e.tagPriority;return typeof n=="number"?n:(e.tag==="meta"?(e.props["http-equiv"]==="content-security-policy"&&(t=-30),e.props.charset&&(t=-20),e.props.name==="viewport"&&(t=-15)):e.tag==="link"&&e.props.rel==="preconnect"?t=20:e.tag in ba&&(t=ba[e.tag]),typeof n=="string"&&n in va?t+va[n]:t)}const jh=[{prefix:"before:",offset:-1},{prefix:"after:",offset:1}],_a=["onload","onerror","onabort","onprogress","onloadstart"],xt="%separator";function Or(e,t,n){if(typeof e!="string"||!e.includes("%"))return e;function r(i){let a;return["s","pageTitle"].includes(i)?a=t.pageTitle:i.includes(".")?a=i.split(".").reduce((l,u)=>l&&l[u]||void 0,t):a=t[i],typeof a<"u"?(a||"").replace(/"/g,'\\"'):!1}let o=e;try{o=decodeURI(e)}catch{}return(o.match(/%(\w+\.+\w+)|%(\w+)/g)||[]).sort().reverse().forEach(i=>{const a=r(i.slice(1));typeof a=="string"&&(e=e.replace(new RegExp(`\\${i}(\\W|$)`,"g"),(l,u)=>`${a}${u}`).trim())}),e.includes(xt)&&(e.endsWith(xt)&&(e=e.slice(0,-xt.length).trim()),e.startsWith(xt)&&(e=e.slice(xt.length).trim()),e=e.replace(new RegExp(`\\${xt}\\s*\\${xt}`,"g"),xt),e=Or(e,{separator:n},n)),e}async function qc(e,t={}){var c;const n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;const r={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",r),!r.shouldRender)return;const o=(await e.resolveTags()).map(f=>({tag:f,id:Ir.includes(f.tag)?ma(f):f.tag,shouldRender:!0}));let s=e._dom;if(!s){s={elMap:{htmlAttrs:n.documentElement,bodyAttrs:n.body}};for(const f of["body","head"]){const d=(c=n[f])==null?void 0:c.children,h=[];for(const b of[...d].filter(E=>Ir.includes(E.tagName.toLowerCase()))){const E={tag:b.tagName.toLowerCase(),props:await Dc(b.getAttributeNames().reduce((y,m)=>({...y,[m]:b.getAttribute(m)}),{})),innerHTML:b.innerHTML};let A=1,P=Uc(E);for(;P&&h.find(y=>y._d===P);)P=`${P}:${A++}`;E._d=P||void 0,h.push(E),s.elMap[b.getAttribute("data-hid")||ma(E)]=b}}}s.pendingSideEffects={...s.sideEffects||{}},s.sideEffects={};function i(f,d,h){const b=`${f}:${d}`;s.sideEffects[b]=h,delete s.pendingSideEffects[b]}function a({id:f,$el:d,tag:h}){const b=h.tag.endsWith("Attrs");s.elMap[f]=d,b||(["textContent","innerHTML"].forEach(E=>{h[E]&&h[E]!==d[E]&&(d[E]=h[E])}),i(f,"el",()=>{var E;(E=s.elMap[f])==null||E.remove(),delete s.elMap[f]}));for(const[E,A]of Object.entries(h._eventHandlers||{}))d.getAttribute(`data-${E}`)!==""&&((h.tag==="bodyAttrs"?n.defaultView:d).addEventListener(E.replace("on",""),A.bind(d)),d.setAttribute(`data-${E}`,""));Object.entries(h.props).forEach(([E,A])=>{const P=`attr:${E}`;if(E==="class")for(const y of(A||"").split(" ").filter(Boolean))b&&i(f,`${P}:${y}`,()=>d.classList.remove(y)),!d.classList.contains(y)&&d.classList.add(y);else if(E==="style")for(const y of(A||"").split(";").filter(Boolean)){const[m,...v]=y.split(":").map(_=>_.trim());i(f,`${P}:${y}:${m}`,()=>{d.style.removeProperty(m)}),d.style.setProperty(m,v.join(":"))}else d.getAttribute(E)!==A&&d.setAttribute(E,A===!0?"":String(A)),b&&i(f,P,()=>d.removeAttribute(E))})}const l=[],u={bodyClose:void 0,bodyOpen:void 0,head:void 0};for(const f of o){const{tag:d,shouldRender:h,id:b}=f;if(h){if(d.tag==="title"){n.title=d.textContent;continue}f.$el=f.$el||s.elMap[b],f.$el?a(f):Ir.includes(d.tag)&&l.push(f)}}for(const f of l){const d=f.tag.tagPosition||"head";f.$el=n.createElement(f.tag.tag),a(f),u[d]=u[d]||n.createDocumentFragment(),u[d].appendChild(f.$el)}for(const f of o)await e.hooks.callHook("dom:renderTag",f,n,i);u.head&&n.head.appendChild(u.head),u.bodyOpen&&n.body.insertBefore(u.bodyOpen,n.body.firstChild),u.bodyClose&&n.body.appendChild(u.bodyClose),Object.values(s.pendingSideEffects).forEach(f=>f()),e._dom=s,e.dirty=!1,await e.hooks.callHook("dom:rendered",{renders:o})}async function Fh(e,t={}){const n=t.delayFn||(r=>setTimeout(r,10));return e._domUpdatePromise=e._domUpdatePromise||new Promise(r=>n(async()=>{await qc(e,t),delete e._domUpdatePromise,r()}))}function Bh(e){return t=>{var r,o;const n=((o=(r=t.resolvedOptions.document)==null?void 0:r.head.querySelector('script[id="unhead:payload"]'))==null?void 0:o.innerHTML)||!1;return n&&t.push(JSON.parse(n)),{mode:"client",hooks:{"entries:updated":function(s){Fh(s,e)}}}}}const Uh=["templateParams","htmlAttrs","bodyAttrs"],Dh={hooks:{"tag:normalise":function({tag:e}){["hid","vmid","key"].forEach(r=>{e.props[r]&&(e.key=e.props[r],delete e.props[r])});const n=Uc(e)||(e.key?`${e.tag}:${e.key}`:!1);n&&(e._d=n)},"tags:resolve":function(e){const t={};e.tags.forEach(r=>{const o=(r.key?`${r.tag}:${r.key}`:r._d)||r._p,s=t[o];if(s){let a=r==null?void 0:r.tagDuplicateStrategy;if(!a&&Uh.includes(r.tag)&&(a="merge"),a==="merge"){const l=s.props;["class","style"].forEach(u=>{l[u]&&(r.props[u]?(u==="style"&&!l[u].endsWith(";")&&(l[u]+=";"),r.props[u]=`${l[u]} ${r.props[u]}`):r.props[u]=l[u])}),t[o].props={...l,...r.props};return}else if(r._e===s._e){s._duped=s._duped||[],r._d=`${s._d}:${s._duped.length+1}`,s._duped.push(r);return}else if(Yr(r)>Yr(s))return}const i=Object.keys(r.props).length+(r.innerHTML?1:0)+(r.textContent?1:0);if(Ir.includes(r.tag)&&i===0){delete t[o];return}t[o]=r});const n=[];Object.values(t).forEach(r=>{const o=r._duped;delete r._duped,n.push(r),o&&n.push(...o)}),e.tags=n,e.tags=e.tags.filter(r=>!(r.tag==="meta"&&(r.props.name||r.props.property)&&!r.props.content))}}},qh={mode:"server",hooks:{"tags:resolve":function(e){const t={};e.tags.filter(n=>["titleTemplate","templateParams","title"].includes(n.tag)&&n._m==="server").forEach(n=>{t[n.tag]=n.tag.startsWith("title")?n.textContent:n.props}),Object.keys(t).length&&e.tags.push({tag:"script",innerHTML:JSON.stringify(t),props:{id:"unhead:payload",type:"application/json"}})}}},Vh=["script","link","bodyAttrs"],Wh=e=>({hooks:{"tags:resolve":function(t){for(const n of t.tags.filter(r=>Vh.includes(r.tag)))Object.entries(n.props).forEach(([r,o])=>{r.startsWith("on")&&typeof o=="function"&&(e.ssr&&_a.includes(r)?n.props[r]=`this.dataset.${r}fired = true`:delete n.props[r],n._eventHandlers=n._eventHandlers||{},n._eventHandlers[r]=o)}),e.ssr&&n._eventHandlers&&(n.props.src||n.props.href)&&(n.key=n.key||di(n.props.src||n.props.href))},"dom:renderTag":function({$el:t,tag:n}){var r,o;for(const s of Object.keys((t==null?void 0:t.dataset)||{}).filter(i=>_a.some(a=>`${a}fired`===i))){const i=s.replace("fired","");(o=(r=n._eventHandlers)==null?void 0:r[i])==null||o.call(t,new Event(i.replace("on","")))}}}}),Kh=["link","style","script","noscript"],zh={hooks:{"tag:normalise":({tag:e})=>{e.key&&Kh.includes(e.tag)&&(e.props["data-hid"]=e._h=di(e.key))}}},Gh={hooks:{"tags:resolve":e=>{const t=n=>{var r;return(r=e.tags.find(o=>o._d===n))==null?void 0:r._p};for(const{prefix:n,offset:r}of jh)for(const o of e.tags.filter(s=>typeof s.tagPriority=="string"&&s.tagPriority.startsWith(n))){const s=t(o.tagPriority.replace(n,""));typeof s<"u"&&(o._p=s+r)}e.tags.sort((n,r)=>n._p-r._p).sort((n,r)=>Yr(n)-Yr(r))}}},Jh={meta:"content",link:"href",htmlAttrs:"lang"},Qh=e=>({hooks:{"tags:resolve":t=>{var a;const{tags:n}=t,r=(a=n.find(l=>l.tag==="title"))==null?void 0:a.textContent,o=n.findIndex(l=>l.tag==="templateParams"),s=o!==-1?n[o].props:{},i=s.separator||"|";delete s.separator,s.pageTitle=Or(s.pageTitle||r||"",s,i);for(const l of n.filter(u=>u.processTemplateParams!==!1)){const u=Jh[l.tag];u&&typeof l.props[u]=="string"?l.props[u]=Or(l.props[u],s,i):(l.processTemplateParams===!0||["titleTemplate","title"].includes(l.tag))&&["innerHTML","textContent"].forEach(c=>{typeof l[c]=="string"&&(l[c]=Or(l[c],s,i))})}e._templateParams=s,e._separator=i,t.tags=n.filter(l=>l.tag!=="templateParams")}}}),Xh={hooks:{"tags:resolve":e=>{const{tags:t}=e;let n=t.findIndex(o=>o.tag==="titleTemplate");const r=t.findIndex(o=>o.tag==="title");if(r!==-1&&n!==-1){const o=ya(t[n].textContent,t[r].textContent);o!==null?t[r].textContent=o||t[r].textContent:delete t[r]}else if(n!==-1){const o=ya(t[n].textContent);o!==null&&(t[n].textContent=o,t[n].tag="title",n=-1)}n!==-1&&delete t[n],e.tags=t.filter(Boolean)}}},Yh={hooks:{"tags:afterResolve":function(e){for(const t of e.tags)typeof t.innerHTML=="string"&&(t.innerHTML&&["application/ld+json","application/json"].includes(t.props.type)?t.innerHTML=t.innerHTML.replace(/{a.dirty=!0,t.callHook("entries:updated",a)};let o=0,s=[];const i=[],a={plugins:i,dirty:!1,resolvedOptions:e,hooks:t,headEntries(){return s},use(l){const u=typeof l=="function"?l(a):l;(!u.key||!i.some(c=>c.key===u.key))&&(i.push(u),wa(u.mode,n)&&t.addHooks(u.hooks||{}))},push(l,u){u==null||delete u.head;const c={_i:o++,input:l,...u};return wa(c.mode,n)&&(s.push(c),r()),{dispose(){s=s.filter(f=>f._i!==c._i),t.callHook("entries:updated",a),r()},patch(f){s=s.map(d=>(d._i===c._i&&(d.input=c.input=f),d)),r()}}},async resolveTags(){const l={tags:[],entries:[...s]};await t.callHook("entries:resolve",l);for(const u of l.entries){const c=u.resolvedInput||u.input;if(u.resolvedInput=await(u.transform?u.transform(c):c),u.resolvedInput)for(const f of await Hh(u)){const d={tag:f,entry:u,resolvedOptions:a.resolvedOptions};await t.callHook("tag:normalise",d),l.tags.push(d.tag)}}return await t.callHook("tags:beforeResolve",l),await t.callHook("tags:resolve",l),await t.callHook("tags:afterResolve",l),l.tags},ssr:n};return[Dh,qh,Wh,zh,Gh,Qh,Xh,Yh,...(e==null?void 0:e.plugins)||[]].forEach(l=>a.use(l)),a.hooks.callHook("init",a),a}function tg(){return Vc}const ng=bc.startsWith("3");function rg(e){return typeof e=="function"?e():ye(e)}function Zr(e,t=""){if(e instanceof Promise)return e;const n=rg(e);return!e||!n?n:Array.isArray(n)?n.map(r=>Zr(r,t)):typeof n=="object"?Object.fromEntries(Object.entries(n).map(([r,o])=>r==="titleTemplate"||r.startsWith("on")?[r,ye(o)]:[r,Zr(o,r)])):n}const og={hooks:{"entries:resolve":function(e){for(const t of e.entries)t.resolvedInput=Zr(t.input)}}},Wc="usehead";function sg(e){return{install(n){ng&&(n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(Wc,e))}}.install}function ig(e={}){e.domDelayFn=e.domDelayFn||(n=>yt(()=>setTimeout(()=>n(),0)));const t=Zh(e);return t.use(og),t.install=sg(t),t}const bs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},vs="__unhead_injection_handler__";function ag(e){bs[vs]=e}function lg(){if(vs in bs)return bs[vs]();const e=Fe(Wc);return e||tg()}function cg(e,t={}){const n=t.head||lg();if(n)return n.ssr?n.push(e,t):ug(n,e,t)}function ug(e,t,n={}){const r=Te(!1),o=Te({});Dn(()=>{o.value=r.value?{}:Zr(t)});const s=e.push(o.value,n);return at(o,a=>{s.patch(a)}),nn()&&(ho(()=>{s.dispose()}),Vl(()=>{r.value=!0}),ql(()=>{r.value=!1})),s}const fg={ui:{primary:"primary-ui"}},dg={nuxt:{buildId:"c57761cd-ce93-4c4e-8d99-72c8fb6c0a4e"},ui:{primary:"green",gray:"cool",colors:["red","orange","amber","yellow","lime","green","emerald","teal","cyan","sky","blue","indigo","violet","purple","fuchsia","pink","rose","primary-dark","secondary","primary-ui","primary"],strategy:"merge"}},pg=fh(fg,dg);function pi(){const e=ve();return e._appConfig||(e._appConfig=Ne(pg)),e._appConfig}const _s=!1,hg=!1,qb={componentName:"NuxtLink"},gg="#__nuxt";let Lr,Kc;function mg(){var t;const e=(t=pi().nuxt)==null?void 0:t.buildId;return Lr=$fetch(li(`builds/meta/${e}.json`)),Lr.then(n=>{Kc=uh(n.matcher)}),Lr}function _o(){return Lr||mg()}async function hi(e){return await _o(),fi({},...Kc.matchAll(e).reverse())}function Ea(e,t={}){const n=bg(e,t),r=ve(),o=r._payloadCache=r._payloadCache||{};return n in o||(o[n]=vg(e).then(s=>s?zc(n).then(i=>i||(delete o[n],null)):(o[n]=null,null))),o[n]}const yg="_payload.json";function bg(e,t={}){var o;const n=new URL(e,"http://localhost");if(n.host!=="localhost"||rn(n.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);const r=t.hash||(t.fresh?Date.now():(o=pi().nuxt)==null?void 0:o.buildId);return ii(ci().app.baseURL,n.pathname,yg+(r?`?${r}`:""))}async function zc(e){const t=fetch(e).then(n=>n.text().then(Gc));try{return await t}catch(n){console.warn("[nuxt] Cannot load payload ",e,n)}return null}async function vg(e=jc().path){if(e=si(e),(await _o()).prerendered.includes(e))return!0;const n=await hi(e);return!!n.prerender&&!n.redirect}let xr=null;async function _g(){if(xr)return xr;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await Gc(e.textContent||""),n=e.dataset.src?await zc(e.dataset.src):void 0;return xr={...t,...n,...window.__NUXT__},xr}async function Gc(e){return await Rh(e,ve()._payloadRevivers)}function wg(e,t){ve()._payloadRevivers[e]=t}const Ca={NuxtError:e=>vo(e),EmptyShallowRef:e=>en(e==="_"?void 0:e==="0n"?BigInt(0):Gr(e)),EmptyRef:e=>Te(e==="_"?void 0:e==="0n"?BigInt(0):Gr(e)),ShallowRef:e=>en(e),ShallowReactive:e=>lr(e),Ref:e=>Te(e),Reactive:e=>Ne(e)},Eg=Ue({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const r in Ca)wg(r,Ca[r]);Object.assign(e.payload,([t,n]=nr(()=>e.runWithContext(_g)),t=await t,n(),t)),window.__NUXT__=e.payload}}),Cg=[],Sg=Ue({name:"nuxt:head",enforce:"pre",setup(e){const t=ig({plugins:Cg});ag(()=>ve().vueApp._context.provides.usehead),e.vueApp.use(t);{let n=!0;const r=async()=>{n=!1,await qc(t)};t.hooks.hook("dom:beforeRender",o=>{o.shouldRender=!n}),e.hooks.hook("page:start",()=>{n=!0}),e.hooks.hook("page:finish",()=>{e.isHydrating||r()}),e.hooks.hook("app:error",r),e.hooks.hook("app:suspense:resolve",r)}}});/*! +**/const Sd="http://www.w3.org/2000/svg",xd="http://www.w3.org/1998/Math/MathML",Ot=typeof document<"u"?document:null,zi=Ot&&Ot.createElement("template"),Td={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t==="svg"?Ot.createElementNS(Sd,e):t==="mathml"?Ot.createElementNS(xd,e):Ot.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>Ot.createTextNode(e),createComment:e=>Ot.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ot.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,s){const i=n?n.previousSibling:t.lastChild;if(o&&(o===s||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===s||!(o=o.nextSibling)););else{zi.innerHTML=r==="svg"?`${e}`:r==="mathml"?`${e}`:e;const a=zi.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ct="transition",Nn="animation",tr=Symbol("_vtc"),ri=(e,{slots:t})=>Ke(Ff,Rd(e),t);ri.displayName="Transition";const vc={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};ri.props=Ee({},Bl,vc);const qt=(e,t=[])=>{K(e)?e.forEach(n=>n(...t)):e&&e(...t)},Gi=e=>e?K(e)?e.some(t=>t.length>1):e.length>1:!1;function Rd(e){const t={};for(const T in e)T in vc||(t[T]=e[T]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:s=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=s,appearActiveClass:u=i,appearToClass:c=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,b=Ad(o),E=b&&b[0],A=b&&b[1],{onBeforeEnter:P,onEnter:y,onEnterCancelled:m,onLeave:v,onLeaveCancelled:_,onBeforeAppear:C=P,onAppear:M=y,onAppearCancelled:S=m}=t,I=(T,z,oe)=>{Vt(T,z?c:a),Vt(T,z?u:i),oe&&oe()},L=(T,z)=>{T._isLeaving=!1,Vt(T,f),Vt(T,h),Vt(T,d),z&&z()},V=T=>(z,oe)=>{const re=T?M:y,H=()=>I(z,T,oe);qt(re,[z,H]),Ji(()=>{Vt(z,T?l:s),St(z,T?c:a),Gi(re)||Qi(z,r,E,H)})};return Ee(t,{onBeforeEnter(T){qt(P,[T]),St(T,s),St(T,i)},onBeforeAppear(T){qt(C,[T]),St(T,l),St(T,u)},onEnter:V(!1),onAppear:V(!0),onLeave(T,z){T._isLeaving=!0;const oe=()=>L(T,z);St(T,f),St(T,d),Id(),Ji(()=>{T._isLeaving&&(Vt(T,f),St(T,h),Gi(v)||Qi(T,r,A,oe))}),qt(v,[T,oe])},onEnterCancelled(T){I(T,!1),qt(m,[T])},onAppearCancelled(T){I(T,!0),qt(S,[T])},onLeaveCancelled(T){L(T),qt(_,[T])}})}function Ad(e){if(e==null)return null;if(fe(e))return[Mo(e.enter),Mo(e.leave)];{const t=Mo(e);return[t,t]}}function Mo(e){return nl(e)}function St(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[tr]||(e[tr]=new Set)).add(t)}function Vt(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[tr];n&&(n.delete(t),n.size||(e[tr]=void 0))}function Ji(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Pd=0;function Qi(e,t,n,r){const o=e._endId=++Pd,s=()=>{o===e._endId&&r()};if(n)return setTimeout(s,n);const{type:i,timeout:a,propCount:l}=kd(e,t);if(!i)return r();const u=i+"end";let c=0;const f=()=>{e.removeEventListener(u,d),s()},d=h=>{h.target===e&&++c>=l&&f()};setTimeout(()=>{c(n[b]||"").split(", "),o=r(`${Ct}Delay`),s=r(`${Ct}Duration`),i=Xi(o,s),a=r(`${Nn}Delay`),l=r(`${Nn}Duration`),u=Xi(a,l);let c=null,f=0,d=0;t===Ct?i>0&&(c=Ct,f=i,d=s.length):t===Nn?u>0&&(c=Nn,f=u,d=l.length):(f=Math.max(i,u),c=f>0?i>u?Ct:Nn:null,d=c?c===Ct?s.length:l.length:0);const h=c===Ct&&/\b(transform|all)(,|$)/.test(r(`${Ct}Property`).toString());return{type:c,timeout:f,propCount:d,hasTransform:h}}function Xi(e,t){for(;e.lengthYi(n)+Yi(e[r])))}function Yi(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Id(){return document.body.offsetHeight}function Od(e,t,n){const r=e[tr];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Zi=Symbol("_vod"),Ld=Symbol("_vsh"),_c=Symbol("");function Fb(e){const t=nn();if(!t)return;const n=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(s=>ls(s,o))},r=()=>{const o=e(t.proxy);as(t.subTree,o),n(o)};On(()=>{Nf(r);const o=new MutationObserver(r);o.observe(t.subTree.el.parentNode,{childList:!0}),ur(()=>o.disconnect())})}function as(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{as(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)ls(e.el,t);else if(e.type===Oe)e.children.forEach(n=>as(n,t));else if(e.type===vn){let{el:n,anchor:r}=e;for(;n&&(ls(n,t),n!==r);)n=n.nextSibling}}function ls(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const o in t)n.setProperty(`--${o}`,t[o]),r+=`--${o}: ${t[o]};`;n[_c]=r}}const Md=/(^|;)\s*display\s*:/;function Nd(e,t,n){const r=e.style,o=be(n);let s=!1;if(n&&!o){if(t)if(be(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();n[a]==null&&kr(r,a,"")}else for(const i in t)n[i]==null&&kr(r,i,"");for(const i in n)i==="display"&&(s=!0),kr(r,i,n[i])}else if(o){if(t!==n){const i=r[_c];i&&(n+=";"+i),r.cssText=n,s=Md.test(n)}}else t&&e.removeAttribute("style");Zi in e&&(e[Zi]=s?r.display:"",e[Ld]&&(r.display="none"))}const ea=/\s*!important$/;function kr(e,t,n){if(K(n))n.forEach(r=>kr(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=$d(e,t);ea.test(n)?e.setProperty(kn(r),n.replace(ea,""),"important"):e[r]=n}}const ta=["Webkit","Moz","ms"],No={};function $d(e,t){const n=No[t];if(n)return n;let r=lt(t);if(r!=="filter"&&r in e)return No[t]=r;r=ro(r);for(let o=0;o$o||(Dd.then(()=>$o=0),$o=Date.now());function Vd(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Xe(Wd(r,n.value),t,5,[r])};return n.value=e,n.attached=qd(),n}function Wd(e,t){if(K(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const sa=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Kd=(e,t,n,r,o,s,i,a,l)=>{const u=o==="svg";t==="class"?Od(e,r,u):t==="style"?Nd(e,n,r):ar(t)?Hs(t)||Bd(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):zd(e,t,r,u))?jd(e,t,r,s,i,a,l):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Hd(e,t,r,u))};function zd(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&sa(t)&&Q(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return sa(t)&&be(n)?!1:t in e}const zr=e=>{const t=e.props["onUpdate:modelValue"]||!1;return K(t)?n=>hn(t,n):t};function Gd(e){e.target.composing=!0}function ia(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const _n=Symbol("_assign"),Bb={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e[_n]=zr(o);const s=r||o.props&&o.props.type==="number";zt(e,t?"change":"input",i=>{if(i.target.composing)return;let a=e.value;n&&(a=a.trim()),s&&(a=Wo(a)),e[_n](a)}),n&&zt(e,"change",()=>{e.value=e.value.trim()}),t||(zt(e,"compositionstart",Gd),zt(e,"compositionend",ia),zt(e,"change",ia))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:o}},s){if(e[_n]=zr(s),e.composing)return;const i=(o||e.type==="number")&&!/^0\d/.test(e.value)?Wo(e.value):e.value,a=t??"";i!==a&&(document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===a)||(e.value=a))}},Ub={deep:!0,created(e,t,n){e[_n]=zr(n),zt(e,"change",()=>{const r=e._modelValue,o=Jd(e),s=e.checked,i=e[_n];if(K(r)){const a=sl(r,o),l=a!==-1;if(s&&!l)i(r.concat(o));else if(!s&&l){const u=[...r];u.splice(a,1),i(u)}}else if(to(r)){const a=new Set(r);s?a.add(o):a.delete(o),i(a)}else i(wc(e,s))})},mounted:aa,beforeUpdate(e,t,n){e[_n]=zr(n),aa(e,t,n)}};function aa(e,{value:t,oldValue:n},r){e._modelValue=t,K(t)?e.checked=sl(t,r.props.value)>-1:to(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=io(t,wc(e,!0)))}function Jd(e){return"_value"in e?e._value:e.value}function wc(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Ec=Ee({patchProp:Kd},Td);let Wn,la=!1;function Qd(){return Wn||(Wn=fd(Ec))}function Xd(){return Wn=la?Wn:dd(Ec),la=!0,Wn}const Cc=(...e)=>{const t=Qd().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=xc(r);if(!o)return;const s=t._component;!Q(s)&&!s.render&&!s.template&&(s.template=o.innerHTML),o.innerHTML="";const i=n(o,!1,Sc(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t},Yd=(...e)=>{const t=Xd().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=xc(r);if(o)return n(o,!0,Sc(o))},t};function Sc(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function xc(e){return be(e)?document.querySelector(e):e}const Zd=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,ep=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,tp=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function np(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){rp(e);return}return t}function rp(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Gr(e,t={}){if(typeof e!="string")return e;const n=e.trim();if(e[0]==='"'&&e.endsWith('"')&&!e.includes("\\"))return n.slice(1,-1);if(n.length<=9){const r=n.toLowerCase();if(r==="true")return!0;if(r==="false")return!1;if(r==="undefined")return;if(r==="null")return null;if(r==="nan")return Number.NaN;if(r==="infinity")return Number.POSITIVE_INFINITY;if(r==="-infinity")return Number.NEGATIVE_INFINITY}if(!tp.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(Zd.test(e)||ep.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,np)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}const op=/#/g,sp=/&/g,ip=/\//g,ap=/=/g,oi=/\+/g,lp=/%5e/gi,cp=/%60/gi,up=/%7c/gi,fp=/%20/gi;function dp(e){return encodeURI(""+e).replace(up,"|")}function cs(e){return dp(typeof e=="string"?e:JSON.stringify(e)).replace(oi,"%2B").replace(fp,"+").replace(op,"%23").replace(sp,"%26").replace(cp,"`").replace(lp,"^").replace(ip,"%2F")}function Ho(e){return cs(e).replace(ap,"%3D")}function Jr(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function pp(e){return Jr(e.replace(oi," "))}function hp(e){return Jr(e.replace(oi," "))}function gp(e=""){const t={};e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const o=pp(r[1]);if(o==="__proto__"||o==="constructor")continue;const s=hp(r[2]||"");t[o]===void 0?t[o]=s:Array.isArray(t[o])?t[o].push(s):t[o]=[t[o],s]}return t}function mp(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${Ho(e)}=${cs(n)}`).join("&"):`${Ho(e)}=${cs(t)}`:Ho(e)}function yp(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>mp(t,e[t])).filter(Boolean).join("&")}const bp=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,vp=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,_p=/^([/\\]\s*){2,}[^/\\]/,wp=/^[\s\0]*(blob|data|javascript|vbscript):$/i,Ep=/\/$|\/\?|\/#/,Cp=/^\.?\//;function rn(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?bp.test(e):vp.test(e)||(t.acceptRelative?_p.test(e):!1)}function Sp(e){return!!e&&wp.test(e)}function us(e="",t){return t?Ep.test(e):e.endsWith("/")}function si(e="",t){if(!t)return(us(e)?e.slice(0,-1):e)||"/";if(!us(e,!0))return e||"/";let n=e,r="";const o=e.indexOf("#");o>=0&&(n=e.slice(0,o),r=e.slice(o));const[s,...i]=n.split("?");return((s.endsWith("/")?s.slice(0,-1):s)||"/")+(i.length>0?`?${i.join("?")}`:"")+r}function fs(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(us(e,!0))return e||"/";let n=e,r="";const o=e.indexOf("#");if(o>=0&&(n=e.slice(0,o),r=e.slice(o),!n))return r;const[s,...i]=n.split("?");return s+"/"+(i.length>0?`?${i.join("?")}`:"")+r}function xp(e=""){return e.startsWith("/")}function ca(e=""){return xp(e)?e:"/"+e}function Tp(e,t){if(Rc(t)||rn(e))return e;const n=si(t);return e.startsWith(n)?e:ii(n,e)}function ua(e,t){if(Rc(t))return e;const n=si(t);if(!e.startsWith(n))return e;const r=e.slice(n.length);return r[0]==="/"?r:"/"+r}function Tc(e,t){const n=mo(e),r={...gp(n.search),...t};return n.search=yp(r),Pp(n)}function Rc(e){return!e||e==="/"}function Rp(e){return e&&e!=="/"}function ii(e,...t){let n=e||"";for(const r of t.filter(o=>Rp(o)))if(n){const o=r.replace(Cp,"");n=fs(n)+o}else n=r;return n}function Ac(...e){var i,a,l,u;const t=/\/(?!\/)/,n=e.filter(Boolean),r=[];let o=0;for(const c of n)if(!(!c||c==="/")){for(const[f,d]of c.split(t).entries())if(!(!d||d===".")){if(d===".."){if(r.length===1&&rn(r[0]))continue;r.pop(),o--;continue}if(f===1&&((i=r[r.length-1])!=null&&i.endsWith(":/"))){r[r.length-1]+="/"+d;continue}r.push(d),o++}}let s=r.join("/");return o>=0?(a=n[0])!=null&&a.startsWith("/")&&!s.startsWith("/")?s="/"+s:(l=n[0])!=null&&l.startsWith("./")&&!s.startsWith("./")&&(s="./"+s):s="../".repeat(-1*o)+s,(u=n[n.length-1])!=null&&u.endsWith("/")&&!s.endsWith("/")&&(s+="/"),s}function Ap(e,t,n={}){return n.trailingSlash||(e=fs(e),t=fs(t)),n.leadingSlash||(e=ca(e),t=ca(t)),n.encoding||(e=Jr(e),t=Jr(t)),e===t}const Pc=Symbol.for("ufo:protocolRelative");function mo(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,f,d=""]=n;return{protocol:f.toLowerCase(),pathname:d,href:f+d,auth:"",host:"",search:"",hash:""}}if(!rn(e,{acceptRelative:!0}))return t?mo(t+e):fa(e);const[,r="",o,s=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,i="",a=""]=s.match(/([^#/?]*)(.*)?/)||[],{pathname:l,search:u,hash:c}=fa(a.replace(/\/(?=[A-Za-z]:)/,""));return{protocol:r.toLowerCase(),auth:o?o.slice(0,Math.max(0,o.length-1)):"",host:i,pathname:l,search:u,hash:c,[Pc]:!r}}function fa(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function Pp(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",r=e.hash||"",o=e.auth?e.auth+"@":"",s=e.host||"";return(e.protocol||e[Pc]?(e.protocol||"")+"//":"")+o+s+t+n+r}class kp extends Error{constructor(t,n){super(t,n),this.name="FetchError",n!=null&&n.cause&&!this.cause&&(this.cause=n.cause)}}function Ip(e){var l,u,c,f,d;const t=((l=e.error)==null?void 0:l.message)||((u=e.error)==null?void 0:u.toString())||"",n=((c=e.request)==null?void 0:c.method)||((f=e.options)==null?void 0:f.method)||"GET",r=((d=e.request)==null?void 0:d.url)||String(e.request)||"/",o=`[${n}] ${JSON.stringify(r)}`,s=e.response?`${e.response.status} ${e.response.statusText}`:"",i=`${o}: ${s}${t?` ${t}`:""}`,a=new kp(i,e.error?{cause:e.error}:void 0);for(const h of["request","options","response"])Object.defineProperty(a,h,{get(){return e[h]}});for(const[h,b]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,h,{get(){return e.response&&e.response[b]}});return a}const Op=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function da(e="GET"){return Op.has(e.toUpperCase())}function Lp(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const Mp=new Set(["image/svg","application/xml","application/xhtml","application/html"]),Np=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function $p(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return Np.test(t)?"json":Mp.has(t)||t.startsWith("text/")?"text":"blob"}function Hp(e,t,n=globalThis.Headers){const r={...t,...e};if(t!=null&&t.params&&(e!=null&&e.params)&&(r.params={...t==null?void 0:t.params,...e==null?void 0:e.params}),t!=null&&t.query&&(e!=null&&e.query)&&(r.query={...t==null?void 0:t.query,...e==null?void 0:e.query}),t!=null&&t.headers&&(e!=null&&e.headers)){r.headers=new n((t==null?void 0:t.headers)||{});for(const[o,s]of new n((e==null?void 0:e.headers)||{}))r.headers.set(o,s)}return r}const jp=new Set([408,409,425,429,500,502,503,504]),Fp=new Set([101,204,205,304]);function kc(e={}){const{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;async function o(a){const l=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!l){let c;typeof a.options.retry=="number"?c=a.options.retry:c=da(a.options.method)?0:1;const f=a.response&&a.response.status||500;if(c>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(f):jp.has(f))){const d=a.options.retryDelay||0;return d>0&&await new Promise(h=>setTimeout(h,d)),s(a.request,{...a.options,retry:c-1})}}const u=Ip(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,s),u}const s=async function(l,u={}){var h;const c={request:l,options:Hp(u,e.defaults,n),response:void 0,error:void 0};c.options.method=(h=c.options.method)==null?void 0:h.toUpperCase(),c.options.onRequest&&await c.options.onRequest(c),typeof c.request=="string"&&(c.options.baseURL&&(c.request=Tp(c.request,c.options.baseURL)),(c.options.query||c.options.params)&&(c.request=Tc(c.request,{...c.options.params,...c.options.query}))),c.options.body&&da(c.options.method)&&(Lp(c.options.body)?(c.options.body=typeof c.options.body=="string"?c.options.body:JSON.stringify(c.options.body),c.options.headers=new n(c.options.headers||{}),c.options.headers.has("content-type")||c.options.headers.set("content-type","application/json"),c.options.headers.has("accept")||c.options.headers.set("accept","application/json")):("pipeTo"in c.options.body&&typeof c.options.body.pipeTo=="function"||typeof c.options.body.pipe=="function")&&("duplex"in c.options||(c.options.duplex="half")));let f;if(!c.options.signal&&c.options.timeout){const b=new r;f=setTimeout(()=>b.abort(),c.options.timeout),c.options.signal=b.signal}try{c.response=await t(c.request,c.options)}catch(b){return c.error=b,c.options.onRequestError&&await c.options.onRequestError(c),await o(c)}finally{f&&clearTimeout(f)}if(c.response.body&&!Fp.has(c.response.status)&&c.options.method!=="HEAD"){const b=(c.options.parseResponse?"json":c.options.responseType)||$p(c.response.headers.get("content-type")||"");switch(b){case"json":{const E=await c.response.text(),A=c.options.parseResponse||Gr;c.response._data=A(E);break}case"stream":{c.response._data=c.response.body;break}default:c.response._data=await c.response[b]()}}return c.options.onResponse&&await c.options.onResponse(c),!c.options.ignoreResponseError&&c.response.status>=400&&c.response.status<600?(c.options.onResponseError&&await c.options.onResponseError(c),await o(c)):c.response},i=async function(l,u){return(await s(l,u))._data};return i.raw=s,i.native=(...a)=>t(...a),i.create=(a={})=>kc({...e,defaults:{...e.defaults,...a}}),i}const ai=function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}(),Bp=ai.fetch||(()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!"))),Up=ai.Headers,Dp=ai.AbortController,qp=kc({fetch:Bp,Headers:Up,AbortController:Dp}),Vp=qp,Wp=()=>{var e;return((e=window==null?void 0:window.__NUXT__)==null?void 0:e.config)||{}},Qr=Wp().app,Kp=()=>Qr.baseURL,zp=()=>Qr.buildAssetsDir,li=(...e)=>Ac(Ic(),zp(),...e),Ic=(...e)=>{const t=Qr.cdnURL||Qr.baseURL;return e.length?Ac(t,...e):t};globalThis.__buildAssetsURL=li,globalThis.__publicAssetsURL=Ic;globalThis.$fetch||(globalThis.$fetch=Vp.create({baseURL:Kp()}));function ds(e,t={},n){for(const r in e){const o=e[r],s=n?`${n}:${r}`:r;typeof o=="object"&&o!==null?ds(o,t,s):typeof o=="function"&&(t[s]=o)}return t}const Gp={run:e=>e()},Jp=()=>Gp,Oc=typeof console.createTask<"u"?console.createTask:Jp;function Qp(e,t){const n=t.shift(),r=Oc(n);return e.reduce((o,s)=>o.then(()=>r.run(()=>s(...t))),Promise.resolve())}function Xp(e,t){const n=t.shift(),r=Oc(n);return Promise.all(e.map(o=>r.run(()=>o(...t))))}function jo(e,t){for(const n of[...e])n(t)}class Yp{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,r={}){if(!t||typeof n!="function")return()=>{};const o=t;let s;for(;this._deprecatedHooks[t];)s=this._deprecatedHooks[t],t=s.to;if(s&&!r.allowDeprecated){let i=s.message;i||(i=`${o} hook has been deprecated`+(s.to?`, please use ${s.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(i)||(console.warn(i),this._deprecatedMessages.add(i))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let r,o=(...s)=>(typeof r=="function"&&r(),r=void 0,o=void 0,n(...s));return r=this.hook(t,o),r}removeHook(t,n){if(this._hooks[t]){const r=this._hooks[t].indexOf(n);r!==-1&&this._hooks[t].splice(r,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const r=this._hooks[t]||[];delete this._hooks[t];for(const o of r)this.hook(t,o)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=ds(t),r=Object.keys(n).map(o=>this.hook(o,n[o]));return()=>{for(const o of r.splice(0,r.length))o()}}removeHooks(t){const n=ds(t);for(const r in n)this.removeHook(r,n[r])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(Qp,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(Xp,t,...n)}callHookWith(t,n,...r){const o=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&jo(this._before,o);const s=t(n in this._hooks?[...this._hooks[n]]:[],r);return s instanceof Promise?s.finally(()=>{this._after&&o&&jo(this._after,o)}):(this._after&&o&&jo(this._after,o),s)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function Lc(){return new Yp}function Zp(e={}){let t,n=!1;const r=i=>{if(t&&t!==i)throw new Error("Context conflict")};let o;if(e.asyncContext){const i=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;i?o=new i:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const s=()=>{if(o&&t===void 0){const i=o.getStore();if(i!==void 0)return i}return t};return{use:()=>{const i=s();if(i===void 0)throw new Error("Context is not available");return i},tryUse:()=>s(),set:(i,a)=>{a||r(i),t=i,n=!0},unset:()=>{t=void 0,n=!1},call:(i,a)=>{r(i),t=i;try{return o?o.run(i,a):a()}finally{n||(t=void 0)}},async callAsync(i,a){t=i;const l=()=>{t=i},u=()=>t===i?l:void 0;ps.add(u);try{const c=o?o.run(i,a):a();return n||(t=void 0),await c}finally{ps.delete(u)}}}}function eh(e={}){const t={};return{get(n,r={}){return t[n]||(t[n]=Zp({...e,...r})),t[n],t[n]}}}const Xr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},pa="__unctx__",th=Xr[pa]||(Xr[pa]=eh()),nh=(e,t={})=>th.get(e,t),ha="__unctx_async_handlers__",ps=Xr[ha]||(Xr[ha]=new Set);function nr(e){const t=[];for(const o of ps){const s=o();s&&t.push(s)}const n=()=>{for(const o of t)o()};let r=e();return r&&typeof r=="object"&&"catch"in r&&(r=r.catch(o=>{throw n(),o})),[r,n]}const Mc=nh("nuxt-app",{asyncContext:!1}),rh="__nuxt_plugin";function oh(e){let t=0;const n={_scope:Us(),provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.11.2"},get vue(){return n.vueApp.version}},payload:Ne({data:{},state:{},once:new Set,_errors:{},...window.__NUXT__??{}}),static:{data:{}},runWithContext:o=>n._scope.run(()=>ah(n,o)),isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let o=!1;return()=>{if(!o&&(o=!0,t--,t===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:{},_payloadRevivers:{},...e};n.hooks=Lc(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(o,s)=>{const i="$"+o;Sr(n,i,s),Sr(n.vueApp.config.globalProperties,i,s)},Sr(n.vueApp,"$nuxt",n),Sr(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener("nuxt.preloadError",s=>{n.callHook("app:chunkError",{error:s.payload})}),window.useNuxtApp=window.useNuxtApp||ve;const o=n.hook("app:error",(...s)=>{console.error("[nuxt] error caught during app initialization",...s)});n.hook("app:mounted",o)}const r=n.payload.config;return n.provide("config",r),n}async function sh(e,t){if(t.hooks&&e.hooks.addHooks(t.hooks),typeof t=="function"){const{provide:n}=await e.runWithContext(()=>t(e))||{};if(n&&typeof n=="object")for(const r in n)e.provide(r,n[r])}}async function ih(e,t){const n=[],r=[],o=[],s=[];let i=0;async function a(l){var c;const u=((c=l.dependsOn)==null?void 0:c.filter(f=>t.some(d=>d._name===f)&&!n.includes(f)))??[];if(u.length>0)r.push([new Set(u),l]);else{const f=sh(e,l).then(async()=>{l._name&&(n.push(l._name),await Promise.all(r.map(async([d,h])=>{d.has(l._name)&&(d.delete(l._name),d.size===0&&(i++,await a(h)))})))});l.parallel?o.push(f.catch(d=>s.push(d))):await f}}for(const l of t)await a(l);if(await Promise.all(o),i)for(let l=0;l{}),e,{[rh]:!0,_name:t})}function ah(e,t,n){const r=()=>t();return Mc.set(e),e.vueApp.runWithContext(r)}function lh(){var t;let e;return ei()&&(e=(t=nn())==null?void 0:t.appContext.app.$nuxt),e=e||Mc.tryUse(),e||null}function ve(){const e=lh();if(!e)throw new Error("[nuxt] instance unavailable");return e}function ci(e){return ve().$config}function Sr(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function ch(e,t){return{ctx:{table:e},matchAll:n=>$c(n,e)}}function Nc(e){const t={};for(const n in e)t[n]=n==="dynamic"?new Map(Object.entries(e[n]).map(([r,o])=>[r,Nc(o)])):new Map(Object.entries(e[n]));return t}function uh(e){return ch(Nc(e))}function $c(e,t,n){e.endsWith("/")&&(e=e.slice(0,-1)||"/");const r=[];for(const[s,i]of ga(t.wildcard))(e===s||e.startsWith(s+"/"))&&r.push(i);for(const[s,i]of ga(t.dynamic))if(e.startsWith(s+"/")){const a="/"+e.slice(s.length).split("/").splice(2).join("/");r.push(...$c(a,i))}const o=t.static.get(e);return o&&r.push(o),r.filter(Boolean)}function ga(e){return[...e.entries()].sort((t,n)=>t[0].length-n[0].length)}function Fo(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function hs(e,t,n=".",r){if(!Fo(t))return hs(e,{},n,r);const o=Object.assign({},t);for(const s in e){if(s==="__proto__"||s==="constructor")continue;const i=e[s];i!=null&&(r&&r(o,s,i,n)||(Array.isArray(i)&&Array.isArray(o[s])?o[s]=[...i,...o[s]]:Fo(i)&&Fo(o[s])?o[s]=hs(i,o[s],(n?`${n}.`:"")+s.toString(),r):o[s]=i))}return o}function ui(e){return(...t)=>t.reduce((n,r)=>hs(n,r,"",e),{})}const fi=ui(),fh=ui((e,t,n)=>{if(e[t]!==void 0&&typeof n=="function")return e[t]=n(e[t]),!0});function dh(e,t){try{return t in e}catch{return!1}}var ph=Object.defineProperty,hh=(e,t,n)=>t in e?ph(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Wt=(e,t,n)=>(hh(e,typeof t!="symbol"?t+"":t,n),n);class gs extends Error{constructor(t,n={}){super(t,n),Wt(this,"statusCode",500),Wt(this,"fatal",!1),Wt(this,"unhandled",!1),Wt(this,"statusMessage"),Wt(this,"data"),Wt(this,"cause"),n.cause&&!this.cause&&(this.cause=n.cause)}toJSON(){const t={message:this.message,statusCode:ys(this.statusCode,500)};return this.statusMessage&&(t.statusMessage=Hc(this.statusMessage)),this.data!==void 0&&(t.data=this.data),t}}Wt(gs,"__h3_error__",!0);function ms(e){if(typeof e=="string")return new gs(e);if(gh(e))return e;const t=new gs(e.message??e.statusMessage??"",{cause:e.cause||e});if(dh(e,"stack"))try{Object.defineProperty(t,"stack",{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=ys(e.statusCode,t.statusCode):e.status&&(t.statusCode=ys(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;Hc(t.statusMessage)!==n&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function gh(e){var t;return((t=e==null?void 0:e.constructor)==null?void 0:t.__h3_error__)===!0}const mh=/[^\u0009\u0020-\u007E]/g;function Hc(e=""){return e.replace(mh,"")}function ys(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const yh=Symbol("layout-meta"),yo=Symbol("route"),ft=()=>{var e;return(e=ve())==null?void 0:e.$router},jc=()=>ei()?Fe(yo,ve()._route):ve()._route;const bh=()=>{try{if(ve()._processingMiddleware)return!0}catch{return!1}return!1},Db=(e,t)=>{e||(e="/");const n=typeof e=="string"?e:Tc(e.path||"/",e.query||{})+(e.hash||"");if(t!=null&&t.open){const{target:a="_blank",windowFeatures:l={}}=t.open,u=Object.entries(l).filter(([c,f])=>f!==void 0).map(([c,f])=>`${c.toLowerCase()}=${f}`).join(", ");return open(n,a,u),Promise.resolve()}const r=(t==null?void 0:t.external)||rn(n,{acceptRelative:!0});if(r){if(!(t!=null&&t.external))throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const a=mo(n).protocol;if(a&&Sp(a))throw new Error(`Cannot navigate to a URL with '${a}' protocol.`)}const o=bh();if(!r&&o)return e;const s=ft(),i=ve();return r?(i._scope.stop(),t!=null&&t.replace?location.replace(n):location.href=n,o?i.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):t!=null&&t.replace?s.replace(e):s.push(e)},Fc="__nuxt_error",bo=()=>Tl(ve().payload,"error"),un=e=>{const t=vo(e);try{const n=ve(),r=bo();n.hooks.callHook("app:error",t),r.value=r.value||t}catch{throw t}return t},vh=async(e={})=>{const t=ve(),n=bo();t.callHook("app:error:cleared",e),e.redirect&&await ft().replace(e.redirect),n.value=null},_h=e=>!!e&&typeof e=="object"&&Fc in e,vo=e=>{const t=ms(e);return Object.defineProperty(t,Fc,{value:!0,configurable:!1,writable:!1}),t},wh=-1,Eh=-2,Ch=-3,Sh=-4,xh=-5,Th=-6;function Rh(e,t){return Ah(JSON.parse(e),t)}function Ah(e,t){if(typeof e=="number")return o(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function o(s,i=!1){if(s===wh)return;if(s===Ch)return NaN;if(s===Sh)return 1/0;if(s===xh)return-1/0;if(s===Th)return-0;if(i)throw new Error("Invalid input");if(s in r)return r[s];const a=n[s];if(!a||typeof a!="object")r[s]=a;else if(Array.isArray(a))if(typeof a[0]=="string"){const l=a[0],u=t==null?void 0:t[l];if(u)return r[s]=u(o(a[1]));switch(l){case"Date":r[s]=new Date(a[1]);break;case"Set":const c=new Set;r[s]=c;for(let h=1;h>>9)+65536).toString(16).substring(1,8).toLowerCase()}function ma(e){return e._h||di(e._d?e._d:`${e.tag}:${e.textContent||e.innerHTML||""}:${Object.entries(e.props).map(([t,n])=>`${t}:${String(n)}`).join(",")}`)}function Uc(e,t){const{props:n,tag:r}=e;if(Oh.includes(r))return r;if(r==="link"&&n.rel==="canonical")return"canonical";if(n.charset)return"charset";const o=["id"];r==="meta"&&o.push("name","property","http-equiv");for(const s of o)if(typeof n[s]<"u"){const i=String(n[s]);return`${r}:${s}:${i}`}return!1}function ya(e,t){return e==null?t||null:typeof e=="function"?e(t):e}async function Mh(e,t,n){const r={tag:e,props:await Dc(typeof t=="object"&&typeof t!="function"&&!(t instanceof Promise)?{...t}:{[["script","noscript","style"].includes(e)?"innerHTML":"textContent"]:t},["templateParams","titleTemplate"].includes(e))};return Bc.forEach(o=>{const s=typeof r.props[o]<"u"?r.props[o]:n[o];typeof s<"u"&&((!["innerHTML","textContent","children"].includes(o)||kh.includes(r.tag))&&(r[o==="children"?"innerHTML":o]=s),delete r.props[o])}),r.props.body&&(r.tagPosition="bodyClose",delete r.props.body),r.tag==="script"&&typeof r.innerHTML=="object"&&(r.innerHTML=JSON.stringify(r.innerHTML),r.props.type=r.props.type||"application/json"),Array.isArray(r.props.content)?r.props.content.map(o=>({...r,props:{...r.props,content:o}})):r}function Nh(e,t){var r;const n=e==="class"?" ":";";return typeof t=="object"&&!Array.isArray(t)&&(t=Object.entries(t).filter(([,o])=>o).map(([o,s])=>e==="style"?`${o}:${s}`:o)),(r=String(Array.isArray(t)?t.join(n):t))==null?void 0:r.split(n).filter(o=>o.trim()).filter(Boolean).join(n)}async function Dc(e,t){for(const n of Object.keys(e)){if(["class","style"].includes(n)){e[n]=Nh(n,e[n]);continue}if(e[n]instanceof Promise&&(e[n]=await e[n]),!t&&!Bc.includes(n)){const r=String(e[n]),o=n.startsWith("data-");r==="true"||r===""?e[n]=o?"true":!0:e[n]||(o&&r==="false"?e[n]="false":delete e[n])}}return e}const $h=10;async function Hh(e){const t=[];return Object.entries(e.resolvedInput).filter(([n,r])=>typeof r<"u"&&Ih.includes(n)).forEach(([n,r])=>{const o=Ph(r);t.push(...o.map(s=>Mh(n,s,e)).flat())}),(await Promise.all(t)).flat().filter(Boolean).map((n,r)=>(n._e=e._i,e.mode&&(n._m=e.mode),n._p=(e._i<<$h)+r,n))}const ba={base:-10,title:10},va={critical:-80,high:-10,low:20};function Yr(e){let t=100;const n=e.tagPriority;return typeof n=="number"?n:(e.tag==="meta"?(e.props["http-equiv"]==="content-security-policy"&&(t=-30),e.props.charset&&(t=-20),e.props.name==="viewport"&&(t=-15)):e.tag==="link"&&e.props.rel==="preconnect"?t=20:e.tag in ba&&(t=ba[e.tag]),typeof n=="string"&&n in va?t+va[n]:t)}const jh=[{prefix:"before:",offset:-1},{prefix:"after:",offset:1}],_a=["onload","onerror","onabort","onprogress","onloadstart"],xt="%separator";function Or(e,t,n){if(typeof e!="string"||!e.includes("%"))return e;function r(i){let a;return["s","pageTitle"].includes(i)?a=t.pageTitle:i.includes(".")?a=i.split(".").reduce((l,u)=>l&&l[u]||void 0,t):a=t[i],typeof a<"u"?(a||"").replace(/"/g,'\\"'):!1}let o=e;try{o=decodeURI(e)}catch{}return(o.match(/%(\w+\.+\w+)|%(\w+)/g)||[]).sort().reverse().forEach(i=>{const a=r(i.slice(1));typeof a=="string"&&(e=e.replace(new RegExp(`\\${i}(\\W|$)`,"g"),(l,u)=>`${a}${u}`).trim())}),e.includes(xt)&&(e.endsWith(xt)&&(e=e.slice(0,-xt.length).trim()),e.startsWith(xt)&&(e=e.slice(xt.length).trim()),e=e.replace(new RegExp(`\\${xt}\\s*\\${xt}`,"g"),xt),e=Or(e,{separator:n},n)),e}async function qc(e,t={}){var c;const n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;const r={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",r),!r.shouldRender)return;const o=(await e.resolveTags()).map(f=>({tag:f,id:Ir.includes(f.tag)?ma(f):f.tag,shouldRender:!0}));let s=e._dom;if(!s){s={elMap:{htmlAttrs:n.documentElement,bodyAttrs:n.body}};for(const f of["body","head"]){const d=(c=n[f])==null?void 0:c.children,h=[];for(const b of[...d].filter(E=>Ir.includes(E.tagName.toLowerCase()))){const E={tag:b.tagName.toLowerCase(),props:await Dc(b.getAttributeNames().reduce((y,m)=>({...y,[m]:b.getAttribute(m)}),{})),innerHTML:b.innerHTML};let A=1,P=Uc(E);for(;P&&h.find(y=>y._d===P);)P=`${P}:${A++}`;E._d=P||void 0,h.push(E),s.elMap[b.getAttribute("data-hid")||ma(E)]=b}}}s.pendingSideEffects={...s.sideEffects||{}},s.sideEffects={};function i(f,d,h){const b=`${f}:${d}`;s.sideEffects[b]=h,delete s.pendingSideEffects[b]}function a({id:f,$el:d,tag:h}){const b=h.tag.endsWith("Attrs");s.elMap[f]=d,b||(["textContent","innerHTML"].forEach(E=>{h[E]&&h[E]!==d[E]&&(d[E]=h[E])}),i(f,"el",()=>{var E;(E=s.elMap[f])==null||E.remove(),delete s.elMap[f]}));for(const[E,A]of Object.entries(h._eventHandlers||{}))d.getAttribute(`data-${E}`)!==""&&((h.tag==="bodyAttrs"?n.defaultView:d).addEventListener(E.replace("on",""),A.bind(d)),d.setAttribute(`data-${E}`,""));Object.entries(h.props).forEach(([E,A])=>{const P=`attr:${E}`;if(E==="class")for(const y of(A||"").split(" ").filter(Boolean))b&&i(f,`${P}:${y}`,()=>d.classList.remove(y)),!d.classList.contains(y)&&d.classList.add(y);else if(E==="style")for(const y of(A||"").split(";").filter(Boolean)){const[m,...v]=y.split(":").map(_=>_.trim());i(f,`${P}:${y}:${m}`,()=>{d.style.removeProperty(m)}),d.style.setProperty(m,v.join(":"))}else d.getAttribute(E)!==A&&d.setAttribute(E,A===!0?"":String(A)),b&&i(f,P,()=>d.removeAttribute(E))})}const l=[],u={bodyClose:void 0,bodyOpen:void 0,head:void 0};for(const f of o){const{tag:d,shouldRender:h,id:b}=f;if(h){if(d.tag==="title"){n.title=d.textContent;continue}f.$el=f.$el||s.elMap[b],f.$el?a(f):Ir.includes(d.tag)&&l.push(f)}}for(const f of l){const d=f.tag.tagPosition||"head";f.$el=n.createElement(f.tag.tag),a(f),u[d]=u[d]||n.createDocumentFragment(),u[d].appendChild(f.$el)}for(const f of o)await e.hooks.callHook("dom:renderTag",f,n,i);u.head&&n.head.appendChild(u.head),u.bodyOpen&&n.body.insertBefore(u.bodyOpen,n.body.firstChild),u.bodyClose&&n.body.appendChild(u.bodyClose),Object.values(s.pendingSideEffects).forEach(f=>f()),e._dom=s,e.dirty=!1,await e.hooks.callHook("dom:rendered",{renders:o})}async function Fh(e,t={}){const n=t.delayFn||(r=>setTimeout(r,10));return e._domUpdatePromise=e._domUpdatePromise||new Promise(r=>n(async()=>{await qc(e,t),delete e._domUpdatePromise,r()}))}function Bh(e){return t=>{var r,o;const n=((o=(r=t.resolvedOptions.document)==null?void 0:r.head.querySelector('script[id="unhead:payload"]'))==null?void 0:o.innerHTML)||!1;return n&&t.push(JSON.parse(n)),{mode:"client",hooks:{"entries:updated":function(s){Fh(s,e)}}}}}const Uh=["templateParams","htmlAttrs","bodyAttrs"],Dh={hooks:{"tag:normalise":function({tag:e}){["hid","vmid","key"].forEach(r=>{e.props[r]&&(e.key=e.props[r],delete e.props[r])});const n=Uc(e)||(e.key?`${e.tag}:${e.key}`:!1);n&&(e._d=n)},"tags:resolve":function(e){const t={};e.tags.forEach(r=>{const o=(r.key?`${r.tag}:${r.key}`:r._d)||r._p,s=t[o];if(s){let a=r==null?void 0:r.tagDuplicateStrategy;if(!a&&Uh.includes(r.tag)&&(a="merge"),a==="merge"){const l=s.props;["class","style"].forEach(u=>{l[u]&&(r.props[u]?(u==="style"&&!l[u].endsWith(";")&&(l[u]+=";"),r.props[u]=`${l[u]} ${r.props[u]}`):r.props[u]=l[u])}),t[o].props={...l,...r.props};return}else if(r._e===s._e){s._duped=s._duped||[],r._d=`${s._d}:${s._duped.length+1}`,s._duped.push(r);return}else if(Yr(r)>Yr(s))return}const i=Object.keys(r.props).length+(r.innerHTML?1:0)+(r.textContent?1:0);if(Ir.includes(r.tag)&&i===0){delete t[o];return}t[o]=r});const n=[];Object.values(t).forEach(r=>{const o=r._duped;delete r._duped,n.push(r),o&&n.push(...o)}),e.tags=n,e.tags=e.tags.filter(r=>!(r.tag==="meta"&&(r.props.name||r.props.property)&&!r.props.content))}}},qh={mode:"server",hooks:{"tags:resolve":function(e){const t={};e.tags.filter(n=>["titleTemplate","templateParams","title"].includes(n.tag)&&n._m==="server").forEach(n=>{t[n.tag]=n.tag.startsWith("title")?n.textContent:n.props}),Object.keys(t).length&&e.tags.push({tag:"script",innerHTML:JSON.stringify(t),props:{id:"unhead:payload",type:"application/json"}})}}},Vh=["script","link","bodyAttrs"],Wh=e=>({hooks:{"tags:resolve":function(t){for(const n of t.tags.filter(r=>Vh.includes(r.tag)))Object.entries(n.props).forEach(([r,o])=>{r.startsWith("on")&&typeof o=="function"&&(e.ssr&&_a.includes(r)?n.props[r]=`this.dataset.${r}fired = true`:delete n.props[r],n._eventHandlers=n._eventHandlers||{},n._eventHandlers[r]=o)}),e.ssr&&n._eventHandlers&&(n.props.src||n.props.href)&&(n.key=n.key||di(n.props.src||n.props.href))},"dom:renderTag":function({$el:t,tag:n}){var r,o;for(const s of Object.keys((t==null?void 0:t.dataset)||{}).filter(i=>_a.some(a=>`${a}fired`===i))){const i=s.replace("fired","");(o=(r=n._eventHandlers)==null?void 0:r[i])==null||o.call(t,new Event(i.replace("on","")))}}}}),Kh=["link","style","script","noscript"],zh={hooks:{"tag:normalise":({tag:e})=>{e.key&&Kh.includes(e.tag)&&(e.props["data-hid"]=e._h=di(e.key))}}},Gh={hooks:{"tags:resolve":e=>{const t=n=>{var r;return(r=e.tags.find(o=>o._d===n))==null?void 0:r._p};for(const{prefix:n,offset:r}of jh)for(const o of e.tags.filter(s=>typeof s.tagPriority=="string"&&s.tagPriority.startsWith(n))){const s=t(o.tagPriority.replace(n,""));typeof s<"u"&&(o._p=s+r)}e.tags.sort((n,r)=>n._p-r._p).sort((n,r)=>Yr(n)-Yr(r))}}},Jh={meta:"content",link:"href",htmlAttrs:"lang"},Qh=e=>({hooks:{"tags:resolve":t=>{var a;const{tags:n}=t,r=(a=n.find(l=>l.tag==="title"))==null?void 0:a.textContent,o=n.findIndex(l=>l.tag==="templateParams"),s=o!==-1?n[o].props:{},i=s.separator||"|";delete s.separator,s.pageTitle=Or(s.pageTitle||r||"",s,i);for(const l of n.filter(u=>u.processTemplateParams!==!1)){const u=Jh[l.tag];u&&typeof l.props[u]=="string"?l.props[u]=Or(l.props[u],s,i):(l.processTemplateParams===!0||["titleTemplate","title"].includes(l.tag))&&["innerHTML","textContent"].forEach(c=>{typeof l[c]=="string"&&(l[c]=Or(l[c],s,i))})}e._templateParams=s,e._separator=i,t.tags=n.filter(l=>l.tag!=="templateParams")}}}),Xh={hooks:{"tags:resolve":e=>{const{tags:t}=e;let n=t.findIndex(o=>o.tag==="titleTemplate");const r=t.findIndex(o=>o.tag==="title");if(r!==-1&&n!==-1){const o=ya(t[n].textContent,t[r].textContent);o!==null?t[r].textContent=o||t[r].textContent:delete t[r]}else if(n!==-1){const o=ya(t[n].textContent);o!==null&&(t[n].textContent=o,t[n].tag="title",n=-1)}n!==-1&&delete t[n],e.tags=t.filter(Boolean)}}},Yh={hooks:{"tags:afterResolve":function(e){for(const t of e.tags)typeof t.innerHTML=="string"&&(t.innerHTML&&["application/ld+json","application/json"].includes(t.props.type)?t.innerHTML=t.innerHTML.replace(/{a.dirty=!0,t.callHook("entries:updated",a)};let o=0,s=[];const i=[],a={plugins:i,dirty:!1,resolvedOptions:e,hooks:t,headEntries(){return s},use(l){const u=typeof l=="function"?l(a):l;(!u.key||!i.some(c=>c.key===u.key))&&(i.push(u),wa(u.mode,n)&&t.addHooks(u.hooks||{}))},push(l,u){u==null||delete u.head;const c={_i:o++,input:l,...u};return wa(c.mode,n)&&(s.push(c),r()),{dispose(){s=s.filter(f=>f._i!==c._i),t.callHook("entries:updated",a),r()},patch(f){s=s.map(d=>(d._i===c._i&&(d.input=c.input=f),d)),r()}}},async resolveTags(){const l={tags:[],entries:[...s]};await t.callHook("entries:resolve",l);for(const u of l.entries){const c=u.resolvedInput||u.input;if(u.resolvedInput=await(u.transform?u.transform(c):c),u.resolvedInput)for(const f of await Hh(u)){const d={tag:f,entry:u,resolvedOptions:a.resolvedOptions};await t.callHook("tag:normalise",d),l.tags.push(d.tag)}}return await t.callHook("tags:beforeResolve",l),await t.callHook("tags:resolve",l),await t.callHook("tags:afterResolve",l),l.tags},ssr:n};return[Dh,qh,Wh,zh,Gh,Qh,Xh,Yh,...(e==null?void 0:e.plugins)||[]].forEach(l=>a.use(l)),a.hooks.callHook("init",a),a}function tg(){return Vc}const ng=bc.startsWith("3");function rg(e){return typeof e=="function"?e():ye(e)}function Zr(e,t=""){if(e instanceof Promise)return e;const n=rg(e);return!e||!n?n:Array.isArray(n)?n.map(r=>Zr(r,t)):typeof n=="object"?Object.fromEntries(Object.entries(n).map(([r,o])=>r==="titleTemplate"||r.startsWith("on")?[r,ye(o)]:[r,Zr(o,r)])):n}const og={hooks:{"entries:resolve":function(e){for(const t of e.entries)t.resolvedInput=Zr(t.input)}}},Wc="usehead";function sg(e){return{install(n){ng&&(n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(Wc,e))}}.install}function ig(e={}){e.domDelayFn=e.domDelayFn||(n=>yt(()=>setTimeout(()=>n(),0)));const t=Zh(e);return t.use(og),t.install=sg(t),t}const bs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},vs="__unhead_injection_handler__";function ag(e){bs[vs]=e}function lg(){if(vs in bs)return bs[vs]();const e=Fe(Wc);return e||tg()}function cg(e,t={}){const n=t.head||lg();if(n)return n.ssr?n.push(e,t):ug(n,e,t)}function ug(e,t,n={}){const r=Te(!1),o=Te({});Dn(()=>{o.value=r.value?{}:Zr(t)});const s=e.push(o.value,n);return at(o,a=>{s.patch(a)}),nn()&&(ho(()=>{s.dispose()}),Vl(()=>{r.value=!0}),ql(()=>{r.value=!1})),s}const fg={ui:{primary:"primary-ui"}},dg={nuxt:{buildId:"56a47d77-77ea-409d-a5b1-703fb33e3a0b"},ui:{primary:"green",gray:"cool",colors:["red","orange","amber","yellow","lime","green","emerald","teal","cyan","sky","blue","indigo","violet","purple","fuchsia","pink","rose","primary-dark","secondary","primary-ui","primary"],strategy:"merge"}},pg=fh(fg,dg);function pi(){const e=ve();return e._appConfig||(e._appConfig=Ne(pg)),e._appConfig}const _s=!1,hg=!1,qb={componentName:"NuxtLink"},gg="#__nuxt";let Lr,Kc;function mg(){var t;const e=(t=pi().nuxt)==null?void 0:t.buildId;return Lr=$fetch(li(`builds/meta/${e}.json`)),Lr.then(n=>{Kc=uh(n.matcher)}),Lr}function _o(){return Lr||mg()}async function hi(e){return await _o(),fi({},...Kc.matchAll(e).reverse())}function Ea(e,t={}){const n=bg(e,t),r=ve(),o=r._payloadCache=r._payloadCache||{};return n in o||(o[n]=vg(e).then(s=>s?zc(n).then(i=>i||(delete o[n],null)):(o[n]=null,null))),o[n]}const yg="_payload.json";function bg(e,t={}){var o;const n=new URL(e,"http://localhost");if(n.host!=="localhost"||rn(n.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);const r=t.hash||(t.fresh?Date.now():(o=pi().nuxt)==null?void 0:o.buildId);return ii(ci().app.baseURL,n.pathname,yg+(r?`?${r}`:""))}async function zc(e){const t=fetch(e).then(n=>n.text().then(Gc));try{return await t}catch(n){console.warn("[nuxt] Cannot load payload ",e,n)}return null}async function vg(e=jc().path){if(e=si(e),(await _o()).prerendered.includes(e))return!0;const n=await hi(e);return!!n.prerender&&!n.redirect}let xr=null;async function _g(){if(xr)return xr;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await Gc(e.textContent||""),n=e.dataset.src?await zc(e.dataset.src):void 0;return xr={...t,...n,...window.__NUXT__},xr}async function Gc(e){return await Rh(e,ve()._payloadRevivers)}function wg(e,t){ve()._payloadRevivers[e]=t}const Ca={NuxtError:e=>vo(e),EmptyShallowRef:e=>en(e==="_"?void 0:e==="0n"?BigInt(0):Gr(e)),EmptyRef:e=>Te(e==="_"?void 0:e==="0n"?BigInt(0):Gr(e)),ShallowRef:e=>en(e),ShallowReactive:e=>lr(e),Ref:e=>Te(e),Reactive:e=>Ne(e)},Eg=Ue({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const r in Ca)wg(r,Ca[r]);Object.assign(e.payload,([t,n]=nr(()=>e.runWithContext(_g)),t=await t,n(),t)),window.__NUXT__=e.payload}}),Cg=[],Sg=Ue({name:"nuxt:head",enforce:"pre",setup(e){const t=ig({plugins:Cg});ag(()=>ve().vueApp._context.provides.usehead),e.vueApp.use(t);{let n=!0;const r=async()=>{n=!1,await qc(t)};t.hooks.hook("dom:beforeRender",o=>{o.shouldRender=!n}),e.hooks.hook("page:start",()=>{n=!0}),e.hooks.hook("page:finish",()=>{e.isHydrating||r()}),e.hooks.hook("app:error",r),e.hooks.hook("app:suspense:resolve",r)}}});/*! * vue-router v4.3.2 * (c) 2024 Eduardo San Martin Morote * @license MIT - */const cn=typeof document<"u";function xg(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const le=Object.assign;function Bo(e,t){const n={};for(const r in t){const o=t[r];n[r]=nt(o)?o.map(e):e(o)}return n}const Kn=()=>{},nt=Array.isArray,Jc=/#/g,Tg=/&/g,Rg=/\//g,Ag=/=/g,Pg=/\?/g,Qc=/\+/g,kg=/%5B/g,Ig=/%5D/g,Xc=/%5E/g,Og=/%60/g,Yc=/%7B/g,Lg=/%7C/g,Zc=/%7D/g,Mg=/%20/g;function gi(e){return encodeURI(""+e).replace(Lg,"|").replace(kg,"[").replace(Ig,"]")}function Ng(e){return gi(e).replace(Yc,"{").replace(Zc,"}").replace(Xc,"^")}function ws(e){return gi(e).replace(Qc,"%2B").replace(Mg,"+").replace(Jc,"%23").replace(Tg,"%26").replace(Og,"`").replace(Yc,"{").replace(Zc,"}").replace(Xc,"^")}function $g(e){return ws(e).replace(Ag,"%3D")}function Hg(e){return gi(e).replace(Jc,"%23").replace(Pg,"%3F")}function jg(e){return e==null?"":Hg(e).replace(Rg,"%2F")}function rr(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const Fg=/\/$/,Bg=e=>e.replace(Fg,"");function Uo(e,t,n="/"){let r,o={},s="",i="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(r=t.slice(0,l),s=t.slice(l+1,a>-1?a:t.length),o=e(s)),a>-1&&(r=r||t.slice(0,a),i=t.slice(a,t.length)),r=Vg(r??t,n),{fullPath:r+(s&&"?")+s+i,path:r,query:o,hash:rr(i)}}function Ug(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Sa(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Dg(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&xn(t.matched[r],n.matched[o])&&eu(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function xn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function eu(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!qg(e[n],t[n]))return!1;return!0}function qg(e,t){return nt(e)?xa(e,t):nt(t)?xa(t,e):e===t}function xa(e,t){return nt(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Vg(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let s=n.length-1,i,a;for(i=0;i1&&s--;else break;return n.slice(0,s).join("/")+"/"+r.slice(i).join("/")}var or;(function(e){e.pop="pop",e.push="push"})(or||(or={}));var zn;(function(e){e.back="back",e.forward="forward",e.unknown=""})(zn||(zn={}));function Wg(e){if(!e)if(cn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Bg(e)}const Kg=/^[^#]+#/;function zg(e,t){return e.replace(Kg,"#")+t}function Gg(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const wo=()=>({left:window.scrollX,top:window.scrollY});function Jg(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Gg(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Ta(e,t){return(history.state?history.state.position-t:-1)+e}const Es=new Map;function Qg(e,t){Es.set(e,t)}function Xg(e){const t=Es.get(e);return Es.delete(e),t}let Yg=()=>location.protocol+"//"+location.host;function tu(e,t){const{pathname:n,search:r,hash:o}=t,s=e.indexOf("#");if(s>-1){let a=o.includes(e.slice(s))?e.slice(s).length:1,l=o.slice(a);return l[0]!=="/"&&(l="/"+l),Sa(l,"")}return Sa(n,e)+r+o}function Zg(e,t,n,r){let o=[],s=[],i=null;const a=({state:d})=>{const h=tu(e,location),b=n.value,E=t.value;let A=0;if(d){if(n.value=h,t.value=d,i&&i===b){i=null;return}A=E?d.position-E.position:0}else r(h);o.forEach(P=>{P(n.value,b,{delta:A,type:or.pop,direction:A?A>0?zn.forward:zn.back:zn.unknown})})};function l(){i=n.value}function u(d){o.push(d);const h=()=>{const b=o.indexOf(d);b>-1&&o.splice(b,1)};return s.push(h),h}function c(){const{history:d}=window;d.state&&d.replaceState(le({},d.state,{scroll:wo()}),"")}function f(){for(const d of s)d();s=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:l,listen:u,destroy:f}}function Ra(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?wo():null}}function em(e){const{history:t,location:n}=window,r={value:tu(e,n)},o={value:t.state};o.value||s(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(l,u,c){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:Yg()+e+l;try{t[c?"replaceState":"pushState"](u,"",d),o.value=u}catch(h){console.error(h),n[c?"replace":"assign"](d)}}function i(l,u){const c=le({},t.state,Ra(o.value.back,l,o.value.forward,!0),u,{position:o.value.position});s(l,c,!0),r.value=l}function a(l,u){const c=le({},o.value,t.state,{forward:l,scroll:wo()});s(c.current,c,!0);const f=le({},Ra(r.value,l,null),{position:c.position+1},u);s(l,f,!1),r.value=l}return{location:r,state:o,push:a,replace:i}}function nu(e){e=Wg(e);const t=em(e),n=Zg(e,t.state,t.location,t.replace);function r(s,i=!0){i||n.pauseListeners(),history.go(s)}const o=le({location:"",base:e,go:r,createHref:zg.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function tm(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),nu(e)}function nm(e){return typeof e=="string"||e&&typeof e=="object"}function ru(e){return typeof e=="string"||typeof e=="symbol"}const et={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},ou=Symbol("");var Aa;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Aa||(Aa={}));function Tn(e,t){return le(new Error,{type:e,[ou]:!0},t)}function dt(e,t){return e instanceof Error&&ou in e&&(t==null||!!(e.type&t))}const Pa="[^/]+?",rm={sensitive:!1,strict:!1,start:!0,end:!0},om=/[.+*?^${}()[\]/\\]/g;function sm(e,t){const n=le({},rm,t),r=[];let o=n.start?"^":"";const s=[];for(const u of e){const c=u.length?[]:[90];n.strict&&!u.length&&(o+="/");for(let f=0;ft.length?t.length===1&&t[0]===80?1:-1:0}function am(e,t){let n=0;const r=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const lm={type:0,value:""},cm=/[a-zA-Z0-9_]/;function um(e){if(!e)return[[]];if(e==="/")return[[lm]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${u}": ${h}`)}let n=0,r=n;const o=[];let s;function i(){s&&o.push(s),s=[]}let a=0,l,u="",c="";function f(){u&&(n===0?s.push({type:0,value:u}):n===1||n===2||n===3?(s.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function d(){u+=l}for(;a{i(y)}:Kn}function i(c){if(ru(c)){const f=r.get(c);f&&(r.delete(c),n.splice(n.indexOf(f),1),f.children.forEach(i),f.alias.forEach(i))}else{const f=n.indexOf(c);f>-1&&(n.splice(f,1),c.record.name&&r.delete(c.record.name),c.children.forEach(i),c.alias.forEach(i))}}function a(){return n}function l(c){let f=0;for(;f=0&&(c.record.path!==n[f].record.path||!su(c,n[f]));)f++;n.splice(f,0,c),c.record.name&&!Oa(c)&&r.set(c.record.name,c)}function u(c,f){let d,h={},b,E;if("name"in c&&c.name){if(d=r.get(c.name),!d)throw Tn(1,{location:c});E=d.record.name,h=le(Ia(f.params,d.keys.filter(y=>!y.optional).concat(d.parent?d.parent.keys.filter(y=>y.optional):[]).map(y=>y.name)),c.params&&Ia(c.params,d.keys.map(y=>y.name))),b=d.stringify(h)}else if(c.path!=null)b=c.path,d=n.find(y=>y.re.test(b)),d&&(h=d.parse(b),E=d.record.name);else{if(d=f.name?r.get(f.name):n.find(y=>y.re.test(f.path)),!d)throw Tn(1,{location:c,currentLocation:f});E=d.record.name,h=le({},f.params,c.params),b=d.stringify(h)}const A=[];let P=d;for(;P;)A.unshift(P.record),P=P.parent;return{name:E,path:b,params:h,matched:A,meta:gm(A)}}return e.forEach(c=>s(c)),{addRoute:s,resolve:u,removeRoute:i,getRoutes:a,getRecordMatcher:o}}function Ia(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function pm(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:hm(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function hm(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function Oa(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function gm(e){return e.reduce((t,n)=>le(t,n.meta),{})}function La(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function su(e,t){return t.children.some(n=>n===e||su(e,n))}function mm(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;os&&ws(s)):[r&&ws(r)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function ym(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=nt(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const bm=Symbol(""),Na=Symbol(""),mi=Symbol(""),iu=Symbol(""),Cs=Symbol("");function $n(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Lt(e,t,n,r,o,s=i=>i()){const i=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((a,l)=>{const u=d=>{d===!1?l(Tn(4,{from:n,to:t})):d instanceof Error?l(d):nm(d)?l(Tn(2,{from:t,to:d})):(i&&r.enterCallbacks[o]===i&&typeof d=="function"&&i.push(d),a())},c=s(()=>e.call(r&&r.instances[o],t,n,u));let f=Promise.resolve(c);e.length<3&&(f=f.then(u)),f.catch(d=>l(d))})}function Do(e,t,n,r,o=s=>s()){const s=[];for(const i of e)for(const a in i.components){let l=i.components[a];if(!(t!=="beforeRouteEnter"&&!i.instances[a]))if(vm(l)){const c=(l.__vccOpts||l)[t];c&&s.push(Lt(c,n,r,i,a,o))}else{let u=l();s.push(()=>u.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${a}" at "${i.path}"`));const f=xg(c)?c.default:c;i.components[a]=f;const h=(f.__vccOpts||f)[t];return h&&Lt(h,n,r,i,a,o)()}))}}return s}function vm(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function $a(e){const t=Fe(mi),n=Fe(iu),r=ce(()=>{const l=ye(e.to);return t.resolve(l)}),o=ce(()=>{const{matched:l}=r.value,{length:u}=l,c=l[u-1],f=n.matched;if(!c||!f.length)return-1;const d=f.findIndex(xn.bind(null,c));if(d>-1)return d;const h=Ha(l[u-2]);return u>1&&Ha(c)===h&&f[f.length-1].path!==h?f.findIndex(xn.bind(null,l[u-2])):d}),s=ce(()=>o.value>-1&&Cm(n.params,r.value.params)),i=ce(()=>o.value>-1&&o.value===n.matched.length-1&&eu(n.params,r.value.params));function a(l={}){return Em(l)?t[ye(e.replace)?"replace":"push"](ye(e.to)).catch(Kn):Promise.resolve()}return{route:r,href:ce(()=>r.value.href),isActive:s,isExactActive:i,navigate:a}}const _m=bt({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:$a,setup(e,{slots:t}){const n=Ne($a(e)),{options:r}=Fe(mi),o=ce(()=>({[ja(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[ja(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=t.default&&t.default(n);return e.custom?s:Ke("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},s)}}}),wm=_m;function Em(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Cm(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!nt(o)||o.length!==r.length||r.some((s,i)=>s!==o[i]))return!1}return!0}function Ha(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const ja=(e,t,n)=>e??t??n,Sm=bt({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Fe(Cs),o=ce(()=>e.route||r.value),s=Fe(Na,0),i=ce(()=>{let u=ye(s);const{matched:c}=o.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),a=ce(()=>o.value.matched[i.value]);bn(Na,ce(()=>i.value+1)),bn(bm,a),bn(Cs,o);const l=Te();return at(()=>[l.value,a.value,e.name],([u,c,f],[d,h,b])=>{c&&(c.instances[f]=u,h&&h!==c&&u&&u===d&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),u&&c&&(!h||!xn(c,h)||!d)&&(c.enterCallbacks[f]||[]).forEach(E=>E(u))},{flush:"post"}),()=>{const u=o.value,c=e.name,f=a.value,d=f&&f.components[c];if(!d)return Fa(n.default,{Component:d,route:u});const h=f.props[c],b=h?h===!0?u.params:typeof h=="function"?h(u):h:null,A=Ke(d,le({},b,t,{onVnodeUnmounted:P=>{P.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return Fa(n.default,{Component:A,route:u})||A}}});function Fa(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const au=Sm;function xm(e){const t=dm(e.routes,e),n=e.parseQuery||mm,r=e.stringifyQuery||Ma,o=e.history,s=$n(),i=$n(),a=$n(),l=en(et);let u=et;cn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Bo.bind(null,R=>""+R),f=Bo.bind(null,jg),d=Bo.bind(null,rr);function h(R,U){let F,W;return ru(R)?(F=t.getRecordMatcher(R),W=U):W=R,t.addRoute(W,F)}function b(R){const U=t.getRecordMatcher(R);U&&t.removeRoute(U)}function E(){return t.getRoutes().map(R=>R.record)}function A(R){return!!t.getRecordMatcher(R)}function P(R,U){if(U=le({},U||l.value),typeof R=="string"){const g=Uo(n,R,U.path),w=t.resolve({path:g.path},U),k=o.createHref(g.fullPath);return le(g,w,{params:d(w.params),hash:rr(g.hash),redirectedFrom:void 0,href:k})}let F;if(R.path!=null)F=le({},R,{path:Uo(n,R.path,U.path).path});else{const g=le({},R.params);for(const w in g)g[w]==null&&delete g[w];F=le({},R,{params:f(g)}),U.params=f(U.params)}const W=t.resolve(F,U),ie=R.hash||"";W.params=c(d(W.params));const ge=Ug(r,le({},R,{hash:Ng(ie),path:W.path})),p=o.createHref(ge);return le({fullPath:ge,hash:ie,query:r===Ma?ym(R.query):R.query||{}},W,{redirectedFrom:void 0,href:p})}function y(R){return typeof R=="string"?Uo(n,R,l.value.path):le({},R)}function m(R,U){if(u!==R)return Tn(8,{from:U,to:R})}function v(R){return M(R)}function _(R){return v(le(y(R),{replace:!0}))}function C(R){const U=R.matched[R.matched.length-1];if(U&&U.redirect){const{redirect:F}=U;let W=typeof F=="function"?F(R):F;return typeof W=="string"&&(W=W.includes("?")||W.includes("#")?W=y(W):{path:W},W.params={}),le({query:R.query,hash:R.hash,params:W.path!=null?{}:R.params},W)}}function M(R,U){const F=u=P(R),W=l.value,ie=R.state,ge=R.force,p=R.replace===!0,g=C(F);if(g)return M(le(y(g),{state:typeof g=="object"?le({},ie,g.state):ie,force:ge,replace:p}),U||F);const w=F;w.redirectedFrom=U;let k;return!ge&&Dg(r,W,F)&&(k=Tn(16,{to:w,from:W}),ke(W,W,!0,!1)),(k?Promise.resolve(k):L(w,W)).catch(x=>dt(x)?dt(x,2)?x:Ye(x):q(x,w,W)).then(x=>{if(x){if(dt(x,2))return M(le({replace:p},y(x.to),{state:typeof x.to=="object"?le({},ie,x.to.state):ie,force:ge}),U||w)}else x=T(w,W,!0,p,ie);return V(w,W,x),x})}function S(R,U){const F=m(R,U);return F?Promise.reject(F):Promise.resolve()}function I(R){const U=sn.values().next().value;return U&&typeof U.runWithContext=="function"?U.runWithContext(R):R()}function L(R,U){let F;const[W,ie,ge]=Tm(R,U);F=Do(W.reverse(),"beforeRouteLeave",R,U);for(const g of W)g.leaveGuards.forEach(w=>{F.push(Lt(w,R,U))});const p=S.bind(null,R,U);return F.push(p),Ie(F).then(()=>{F=[];for(const g of s.list())F.push(Lt(g,R,U));return F.push(p),Ie(F)}).then(()=>{F=Do(ie,"beforeRouteUpdate",R,U);for(const g of ie)g.updateGuards.forEach(w=>{F.push(Lt(w,R,U))});return F.push(p),Ie(F)}).then(()=>{F=[];for(const g of ge)if(g.beforeEnter)if(nt(g.beforeEnter))for(const w of g.beforeEnter)F.push(Lt(w,R,U));else F.push(Lt(g.beforeEnter,R,U));return F.push(p),Ie(F)}).then(()=>(R.matched.forEach(g=>g.enterCallbacks={}),F=Do(ge,"beforeRouteEnter",R,U,I),F.push(p),Ie(F))).then(()=>{F=[];for(const g of i.list())F.push(Lt(g,R,U));return F.push(p),Ie(F)}).catch(g=>dt(g,8)?g:Promise.reject(g))}function V(R,U,F){a.list().forEach(W=>I(()=>W(R,U,F)))}function T(R,U,F,W,ie){const ge=m(R,U);if(ge)return ge;const p=U===et,g=cn?history.state:{};F&&(W||p?o.replace(R.fullPath,le({scroll:p&&g&&g.scroll},ie)):o.push(R.fullPath,ie)),l.value=R,ke(R,U,F,p),Ye()}let z;function oe(){z||(z=o.listen((R,U,F)=>{if(!hr.listening)return;const W=P(R),ie=C(W);if(ie){M(le(ie,{replace:!0}),W).catch(Kn);return}u=W;const ge=l.value;cn&&Qg(Ta(ge.fullPath,F.delta),wo()),L(W,ge).catch(p=>dt(p,12)?p:dt(p,2)?(M(p.to,W).then(g=>{dt(g,20)&&!F.delta&&F.type===or.pop&&o.go(-1,!1)}).catch(Kn),Promise.reject()):(F.delta&&o.go(-F.delta,!1),q(p,W,ge))).then(p=>{p=p||T(W,ge,!1),p&&(F.delta&&!dt(p,8)?o.go(-F.delta,!1):F.type===or.pop&&dt(p,20)&&o.go(-1,!1)),V(W,ge,p)}).catch(Kn)}))}let re=$n(),H=$n(),X;function q(R,U,F){Ye(R);const W=H.list();return W.length?W.forEach(ie=>ie(R,U,F)):console.error(R),Promise.reject(R)}function Re(){return X&&l.value!==et?Promise.resolve():new Promise((R,U)=>{re.add([R,U])})}function Ye(R){return X||(X=!R,oe(),re.list().forEach(([U,F])=>R?F(R):U()),re.reset()),R}function ke(R,U,F,W){const{scrollBehavior:ie}=e;if(!cn||!ie)return Promise.resolve();const ge=!F&&Xg(Ta(R.fullPath,0))||(W||!F)&&history.state&&history.state.scroll||null;return yt().then(()=>ie(R,U,ge)).then(p=>p&&Jg(p)).catch(p=>q(p,R,U))}const Ce=R=>o.go(R);let on;const sn=new Set,hr={currentRoute:l,listening:!0,addRoute:h,removeRoute:b,hasRoute:A,getRoutes:E,resolve:P,options:e,push:v,replace:_,go:Ce,back:()=>Ce(-1),forward:()=>Ce(1),beforeEach:s.add,beforeResolve:i.add,afterEach:a.add,onError:H.add,isReady:Re,install(R){const U=this;R.component("RouterLink",wm),R.component("RouterView",au),R.config.globalProperties.$router=U,Object.defineProperty(R.config.globalProperties,"$route",{enumerable:!0,get:()=>ye(l)}),cn&&!on&&l.value===et&&(on=!0,v(o.location).catch(ie=>{}));const F={};for(const ie in et)Object.defineProperty(F,ie,{get:()=>l.value[ie],enumerable:!0});R.provide(mi,U),R.provide(iu,lr(F)),R.provide(Cs,l);const W=R.unmount;sn.add(R),R.unmount=function(){sn.delete(R),sn.size<1&&(u=et,z&&z(),z=null,l.value=et,on=!1,X=!1),W()}}};function Ie(R){return R.reduce((U,F)=>U.then(()=>I(F)),Promise.resolve())}return hr}function Tm(e,t){const n=[],r=[],o=[],s=Math.max(t.matched.length,e.matched.length);for(let i=0;ixn(u,a))?r.push(a):n.push(a));const l=e.matched[i];l&&(t.matched.find(u=>xn(u,l))||o.push(l))}return[n,r,o]}const Rm=(e,t)=>t.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,n=>{var r;return((r=e.params[n.slice(1)])==null?void 0:r.toString())||""}),Ss=(e,t)=>{const n=e.route.matched.find(o=>{var s;return((s=o.components)==null?void 0:s.default)===e.Component.type}),r=t??(n==null?void 0:n.meta.key)??(n&&Rm(e.route,n));return typeof r=="function"?r(e.route):r},Am=(e,t)=>({default:()=>e?Ke(Uf,e===!0?{}:e,t):t});function yi(e){return Array.isArray(e)?e:[e]}const Pm="modulepreload",km=function(e,t){return e[0]==="."?new URL(e,t).href:e},Ba={},Im=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){const s=document.getElementsByTagName("link"),i=document.querySelector("meta[property=csp-nonce]"),a=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));o=Promise.all(n.map(l=>{if(l=km(l,r),l in Ba)return;Ba[l]=!0;const u=l.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(!!r)for(let h=s.length-1;h>=0;h--){const b=s[h];if(b.href===l&&(!u||b.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${c}`))return;const d=document.createElement("link");if(d.rel=u?"stylesheet":Pm,u||(d.as="script",d.crossOrigin=""),d.href=l,a&&d.setAttribute("nonce",a),document.head.appendChild(d),u)return new Promise((h,b)=>{d.addEventListener("load",h),d.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${l}`)))})}))}return o.then(()=>t()).catch(s=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=s,window.dispatchEvent(i),!i.defaultPrevented)throw s})},sr=(...e)=>Im(...e).catch(t=>{const n=new Event("nuxt.preloadError");throw n.payload=t,window.dispatchEvent(n),t}),qo=null,Ua=[{name:"index",path:"/",meta:{},alias:[],redirect:qo==null?void 0:qo.redirect,component:()=>sr(()=>import("./tIISvBlV.js"),__vite__mapDeps([0,1,2,3]),import.meta.url).then(e=>e.default||e)}],Om=(e,t,n)=>(t=t===!0?{}:t,{default:()=>{var r;return t?Ke(e,t,n):(r=n.default)==null?void 0:r.call(n)}});function Da(e){const t=(e==null?void 0:e.meta.key)??e.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,n=>{var r;return((r=e.params[n.slice(1)])==null?void 0:r.toString())||""});return typeof t=="function"?t(e):t}function Lm(e,t){return e===t||t===et?!1:Da(e)!==Da(t)?!0:!e.matched.every((r,o)=>{var s,i;return r.components&&r.components.default===((i=(s=t.matched[o])==null?void 0:s.components)==null?void 0:i.default)})}const Mm={scrollBehavior(e,t,n){var u;const r=ve(),o=((u=ft().options)==null?void 0:u.scrollBehaviorType)??"auto";let s=n||void 0;const i=typeof e.meta.scrollToTop=="function"?e.meta.scrollToTop(e,t):e.meta.scrollToTop;if(!s&&t&&e&&i!==!1&&Lm(e,t)&&(s={left:0,top:0}),e.path===t.path)return t.hash&&!e.hash?{left:0,top:0}:e.hash?{el:e.hash,top:qa(e.hash),behavior:o}:!1;const a=c=>!!(c.meta.pageTransition??_s),l=a(t)&&a(e)?"page:transition:finish":"page:finish";return new Promise(c=>{r.hooks.hookOnce(l,async()=>{await new Promise(f=>setTimeout(f,0)),e.hash&&(s={el:e.hash,top:qa(e.hash),behavior:o}),c(s)})})}};function qa(e){try{const t=document.querySelector(e);if(t)return parseFloat(getComputedStyle(t).scrollMarginTop)}catch{}return 0}const Nm={hashMode:!1,scrollBehaviorType:"auto"},qe={...Nm,...Mm},$m=async e=>{var l;let t,n;if(!((l=e.meta)!=null&&l.validate))return;const r=ve(),o=ft();if(([t,n]=nr(()=>Promise.resolve(e.meta.validate(e))),t=await t,n(),t)===!0)return;const i=vo({statusCode:404,statusMessage:`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}}),a=o.beforeResolve(u=>{if(a(),u===e){const c=o.afterEach(async()=>{c(),await r.runWithContext(()=>un(i)),window.history.pushState({},"",e.fullPath)});return!1}})},Hm=async e=>{let t,n;const r=([t,n]=nr(()=>hi(e.path)),t=await t,n(),t);if(r.redirect)return rn(r.redirect,{acceptRelative:!0})?(window.location.href=r.redirect,!1):r.redirect},jm=[$m,Hm],Gn={};function Fm(e,t,n){const{pathname:r,search:o,hash:s}=t,i=e.indexOf("#");if(i>-1){const u=s.includes(e.slice(i))?e.slice(i).length:1;let c=s.slice(u);return c[0]!=="/"&&(c="/"+c),ua(c,"")}const a=ua(r,e),l=!n||Ap(a,n,{trailingSlash:!0})?a:n;return l+(l.includes("?")?"":o)+s}const Bm=Ue({name:"nuxt:router",enforce:"pre",async setup(e){var A,P;let t,n,r=ci().app.baseURL;qe.hashMode&&!r.includes("#")&&(r+="#");const o=((A=qe.history)==null?void 0:A.call(qe,r))??(qe.hashMode?tm(r):nu(r)),s=((P=qe.routes)==null?void 0:P.call(qe,Ua))??Ua;let i;const a=xm({...qe,scrollBehavior:(y,m,v)=>{if(m===et){i=v;return}if(qe.scrollBehavior){if(a.options.scrollBehavior=qe.scrollBehavior,"scrollRestoration"in window.history){const _=a.beforeEach(()=>{_(),window.history.scrollRestoration="manual"})}return qe.scrollBehavior(y,et,i||v)}},history:o,routes:s});"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),e.vueApp.use(a);const l=en(a.currentRoute.value);a.afterEach((y,m)=>{l.value=m}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>l.value});const u=Fm(r,window.location,e.payload.path),c=en(a.currentRoute.value),f=()=>{c.value=a.currentRoute.value};e.hook("page:finish",f),a.afterEach((y,m)=>{var v,_,C,M;((_=(v=y.matched[0])==null?void 0:v.components)==null?void 0:_.default)===((M=(C=m.matched[0])==null?void 0:C.components)==null?void 0:M.default)&&f()});const d={};for(const y in c.value)Object.defineProperty(d,y,{get:()=>c.value[y]});e._route=lr(d),e._middleware=e._middleware||{global:[],named:{}};try{[t,n]=nr(()=>a.isReady()),await t,n()}catch(y){[t,n]=nr(()=>e.runWithContext(()=>un(y))),await t,n()}const h=u!==a.currentRoute.value.fullPath?a.resolve(u):a.currentRoute.value;f();const b=e.payload.state._layout;a.beforeEach(async(y,m)=>{var v;await e.callHook("page:loading:start"),y.meta=Ne(y.meta),e.isHydrating&&b&&!En(y.meta.layout)&&(y.meta.layout=b),e._processingMiddleware=!0;{const _=new Set([...jm,...e._middleware.global]);for(const C of y.matched){const M=C.meta.middleware;if(M)for(const S of yi(M))_.add(S)}{const C=await e.runWithContext(()=>hi(y.path));if(C.appMiddleware)for(const M in C.appMiddleware)C.appMiddleware[M]?_.add(M):_.delete(M)}for(const C of _){const M=typeof C=="string"?e._middleware.named[C]||await((v=Gn[C])==null?void 0:v.call(Gn).then(I=>I.default||I)):C;if(!M)throw new Error(`Unknown route middleware: '${C}'.`);const S=await e.runWithContext(()=>M(y,m));if(!e.payload.serverRendered&&e.isHydrating&&(S===!1||S instanceof Error)){const I=S||ms({statusCode:404,statusMessage:`Page Not Found: ${u}`});return await e.runWithContext(()=>un(I)),!1}if(S!==!0&&(S||S===!1))return S}}}),a.onError(async()=>{delete e._processingMiddleware,await e.callHook("page:loading:end")});const E=bo();return a.afterEach(async(y,m,v)=>{delete e._processingMiddleware,!e.isHydrating&&E.value&&await e.runWithContext(vh),v&&await e.callHook("page:loading:end"),y.matched.length===0&&await e.runWithContext(()=>un(ms({statusCode:404,fatal:!1,statusMessage:`Page not found: ${y.fullPath}`,data:{path:y.fullPath}})))}),e.hooks.hookOnce("app:created",async()=>{try{"name"in h&&(h.name=void 0),await a.replace({...h,force:!0}),a.options.scrollBehavior=qe.scrollBehavior}catch(y){await e.runWithContext(()=>un(y))}}),{provide:{router:a}}}}),Va=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),Vb=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),lu=e=>{const t=ve();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{Va(e)}):Va(e)},Um=Ue({name:"nuxt:payload",setup(e){ft().beforeResolve(async(t,n)=>{if(t.path===n.path)return;const r=await Ea(t.path);r&&Object.assign(e.static.data,r.data)}),lu(()=>{var t;e.hooks.hook("link:prefetch",async n=>{mo(n).protocol||await Ea(n)}),((t=navigator.connection)==null?void 0:t.effectiveType)!=="slow-2g"&&setTimeout(_o,1e3)})}}),Dm=Ue(e=>{let t;async function n(){const r=await _o();t&&clearTimeout(t),t=setTimeout(n,1e3*60*60);try{const o=await $fetch(li("builds/latest.json")+`?${Date.now()}`);o.id!==r.id&&e.hooks.callHook("app:manifest:update",o)}catch{}}lu(()=>{t=setTimeout(n,1e3*60*60)})}),qm=!1;/*! + */const cn=typeof document<"u";function xg(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const le=Object.assign;function Bo(e,t){const n={};for(const r in t){const o=t[r];n[r]=nt(o)?o.map(e):e(o)}return n}const Kn=()=>{},nt=Array.isArray,Jc=/#/g,Tg=/&/g,Rg=/\//g,Ag=/=/g,Pg=/\?/g,Qc=/\+/g,kg=/%5B/g,Ig=/%5D/g,Xc=/%5E/g,Og=/%60/g,Yc=/%7B/g,Lg=/%7C/g,Zc=/%7D/g,Mg=/%20/g;function gi(e){return encodeURI(""+e).replace(Lg,"|").replace(kg,"[").replace(Ig,"]")}function Ng(e){return gi(e).replace(Yc,"{").replace(Zc,"}").replace(Xc,"^")}function ws(e){return gi(e).replace(Qc,"%2B").replace(Mg,"+").replace(Jc,"%23").replace(Tg,"%26").replace(Og,"`").replace(Yc,"{").replace(Zc,"}").replace(Xc,"^")}function $g(e){return ws(e).replace(Ag,"%3D")}function Hg(e){return gi(e).replace(Jc,"%23").replace(Pg,"%3F")}function jg(e){return e==null?"":Hg(e).replace(Rg,"%2F")}function rr(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const Fg=/\/$/,Bg=e=>e.replace(Fg,"");function Uo(e,t,n="/"){let r,o={},s="",i="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(r=t.slice(0,l),s=t.slice(l+1,a>-1?a:t.length),o=e(s)),a>-1&&(r=r||t.slice(0,a),i=t.slice(a,t.length)),r=Vg(r??t,n),{fullPath:r+(s&&"?")+s+i,path:r,query:o,hash:rr(i)}}function Ug(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Sa(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Dg(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&xn(t.matched[r],n.matched[o])&&eu(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function xn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function eu(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!qg(e[n],t[n]))return!1;return!0}function qg(e,t){return nt(e)?xa(e,t):nt(t)?xa(t,e):e===t}function xa(e,t){return nt(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Vg(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let s=n.length-1,i,a;for(i=0;i1&&s--;else break;return n.slice(0,s).join("/")+"/"+r.slice(i).join("/")}var or;(function(e){e.pop="pop",e.push="push"})(or||(or={}));var zn;(function(e){e.back="back",e.forward="forward",e.unknown=""})(zn||(zn={}));function Wg(e){if(!e)if(cn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Bg(e)}const Kg=/^[^#]+#/;function zg(e,t){return e.replace(Kg,"#")+t}function Gg(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const wo=()=>({left:window.scrollX,top:window.scrollY});function Jg(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Gg(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Ta(e,t){return(history.state?history.state.position-t:-1)+e}const Es=new Map;function Qg(e,t){Es.set(e,t)}function Xg(e){const t=Es.get(e);return Es.delete(e),t}let Yg=()=>location.protocol+"//"+location.host;function tu(e,t){const{pathname:n,search:r,hash:o}=t,s=e.indexOf("#");if(s>-1){let a=o.includes(e.slice(s))?e.slice(s).length:1,l=o.slice(a);return l[0]!=="/"&&(l="/"+l),Sa(l,"")}return Sa(n,e)+r+o}function Zg(e,t,n,r){let o=[],s=[],i=null;const a=({state:d})=>{const h=tu(e,location),b=n.value,E=t.value;let A=0;if(d){if(n.value=h,t.value=d,i&&i===b){i=null;return}A=E?d.position-E.position:0}else r(h);o.forEach(P=>{P(n.value,b,{delta:A,type:or.pop,direction:A?A>0?zn.forward:zn.back:zn.unknown})})};function l(){i=n.value}function u(d){o.push(d);const h=()=>{const b=o.indexOf(d);b>-1&&o.splice(b,1)};return s.push(h),h}function c(){const{history:d}=window;d.state&&d.replaceState(le({},d.state,{scroll:wo()}),"")}function f(){for(const d of s)d();s=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:l,listen:u,destroy:f}}function Ra(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?wo():null}}function em(e){const{history:t,location:n}=window,r={value:tu(e,n)},o={value:t.state};o.value||s(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(l,u,c){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:Yg()+e+l;try{t[c?"replaceState":"pushState"](u,"",d),o.value=u}catch(h){console.error(h),n[c?"replace":"assign"](d)}}function i(l,u){const c=le({},t.state,Ra(o.value.back,l,o.value.forward,!0),u,{position:o.value.position});s(l,c,!0),r.value=l}function a(l,u){const c=le({},o.value,t.state,{forward:l,scroll:wo()});s(c.current,c,!0);const f=le({},Ra(r.value,l,null),{position:c.position+1},u);s(l,f,!1),r.value=l}return{location:r,state:o,push:a,replace:i}}function nu(e){e=Wg(e);const t=em(e),n=Zg(e,t.state,t.location,t.replace);function r(s,i=!0){i||n.pauseListeners(),history.go(s)}const o=le({location:"",base:e,go:r,createHref:zg.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function tm(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),nu(e)}function nm(e){return typeof e=="string"||e&&typeof e=="object"}function ru(e){return typeof e=="string"||typeof e=="symbol"}const et={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},ou=Symbol("");var Aa;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Aa||(Aa={}));function Tn(e,t){return le(new Error,{type:e,[ou]:!0},t)}function dt(e,t){return e instanceof Error&&ou in e&&(t==null||!!(e.type&t))}const Pa="[^/]+?",rm={sensitive:!1,strict:!1,start:!0,end:!0},om=/[.+*?^${}()[\]/\\]/g;function sm(e,t){const n=le({},rm,t),r=[];let o=n.start?"^":"";const s=[];for(const u of e){const c=u.length?[]:[90];n.strict&&!u.length&&(o+="/");for(let f=0;ft.length?t.length===1&&t[0]===80?1:-1:0}function am(e,t){let n=0;const r=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const lm={type:0,value:""},cm=/[a-zA-Z0-9_]/;function um(e){if(!e)return[[]];if(e==="/")return[[lm]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${u}": ${h}`)}let n=0,r=n;const o=[];let s;function i(){s&&o.push(s),s=[]}let a=0,l,u="",c="";function f(){u&&(n===0?s.push({type:0,value:u}):n===1||n===2||n===3?(s.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function d(){u+=l}for(;a{i(y)}:Kn}function i(c){if(ru(c)){const f=r.get(c);f&&(r.delete(c),n.splice(n.indexOf(f),1),f.children.forEach(i),f.alias.forEach(i))}else{const f=n.indexOf(c);f>-1&&(n.splice(f,1),c.record.name&&r.delete(c.record.name),c.children.forEach(i),c.alias.forEach(i))}}function a(){return n}function l(c){let f=0;for(;f=0&&(c.record.path!==n[f].record.path||!su(c,n[f]));)f++;n.splice(f,0,c),c.record.name&&!Oa(c)&&r.set(c.record.name,c)}function u(c,f){let d,h={},b,E;if("name"in c&&c.name){if(d=r.get(c.name),!d)throw Tn(1,{location:c});E=d.record.name,h=le(Ia(f.params,d.keys.filter(y=>!y.optional).concat(d.parent?d.parent.keys.filter(y=>y.optional):[]).map(y=>y.name)),c.params&&Ia(c.params,d.keys.map(y=>y.name))),b=d.stringify(h)}else if(c.path!=null)b=c.path,d=n.find(y=>y.re.test(b)),d&&(h=d.parse(b),E=d.record.name);else{if(d=f.name?r.get(f.name):n.find(y=>y.re.test(f.path)),!d)throw Tn(1,{location:c,currentLocation:f});E=d.record.name,h=le({},f.params,c.params),b=d.stringify(h)}const A=[];let P=d;for(;P;)A.unshift(P.record),P=P.parent;return{name:E,path:b,params:h,matched:A,meta:gm(A)}}return e.forEach(c=>s(c)),{addRoute:s,resolve:u,removeRoute:i,getRoutes:a,getRecordMatcher:o}}function Ia(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function pm(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:hm(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function hm(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function Oa(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function gm(e){return e.reduce((t,n)=>le(t,n.meta),{})}function La(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function su(e,t){return t.children.some(n=>n===e||su(e,n))}function mm(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;os&&ws(s)):[r&&ws(r)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function ym(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=nt(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const bm=Symbol(""),Na=Symbol(""),mi=Symbol(""),iu=Symbol(""),Cs=Symbol("");function $n(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Lt(e,t,n,r,o,s=i=>i()){const i=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((a,l)=>{const u=d=>{d===!1?l(Tn(4,{from:n,to:t})):d instanceof Error?l(d):nm(d)?l(Tn(2,{from:t,to:d})):(i&&r.enterCallbacks[o]===i&&typeof d=="function"&&i.push(d),a())},c=s(()=>e.call(r&&r.instances[o],t,n,u));let f=Promise.resolve(c);e.length<3&&(f=f.then(u)),f.catch(d=>l(d))})}function Do(e,t,n,r,o=s=>s()){const s=[];for(const i of e)for(const a in i.components){let l=i.components[a];if(!(t!=="beforeRouteEnter"&&!i.instances[a]))if(vm(l)){const c=(l.__vccOpts||l)[t];c&&s.push(Lt(c,n,r,i,a,o))}else{let u=l();s.push(()=>u.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${a}" at "${i.path}"`));const f=xg(c)?c.default:c;i.components[a]=f;const h=(f.__vccOpts||f)[t];return h&&Lt(h,n,r,i,a,o)()}))}}return s}function vm(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function $a(e){const t=Fe(mi),n=Fe(iu),r=ce(()=>{const l=ye(e.to);return t.resolve(l)}),o=ce(()=>{const{matched:l}=r.value,{length:u}=l,c=l[u-1],f=n.matched;if(!c||!f.length)return-1;const d=f.findIndex(xn.bind(null,c));if(d>-1)return d;const h=Ha(l[u-2]);return u>1&&Ha(c)===h&&f[f.length-1].path!==h?f.findIndex(xn.bind(null,l[u-2])):d}),s=ce(()=>o.value>-1&&Cm(n.params,r.value.params)),i=ce(()=>o.value>-1&&o.value===n.matched.length-1&&eu(n.params,r.value.params));function a(l={}){return Em(l)?t[ye(e.replace)?"replace":"push"](ye(e.to)).catch(Kn):Promise.resolve()}return{route:r,href:ce(()=>r.value.href),isActive:s,isExactActive:i,navigate:a}}const _m=bt({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:$a,setup(e,{slots:t}){const n=Ne($a(e)),{options:r}=Fe(mi),o=ce(()=>({[ja(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[ja(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=t.default&&t.default(n);return e.custom?s:Ke("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},s)}}}),wm=_m;function Em(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Cm(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!nt(o)||o.length!==r.length||r.some((s,i)=>s!==o[i]))return!1}return!0}function Ha(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const ja=(e,t,n)=>e??t??n,Sm=bt({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Fe(Cs),o=ce(()=>e.route||r.value),s=Fe(Na,0),i=ce(()=>{let u=ye(s);const{matched:c}=o.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),a=ce(()=>o.value.matched[i.value]);bn(Na,ce(()=>i.value+1)),bn(bm,a),bn(Cs,o);const l=Te();return at(()=>[l.value,a.value,e.name],([u,c,f],[d,h,b])=>{c&&(c.instances[f]=u,h&&h!==c&&u&&u===d&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),u&&c&&(!h||!xn(c,h)||!d)&&(c.enterCallbacks[f]||[]).forEach(E=>E(u))},{flush:"post"}),()=>{const u=o.value,c=e.name,f=a.value,d=f&&f.components[c];if(!d)return Fa(n.default,{Component:d,route:u});const h=f.props[c],b=h?h===!0?u.params:typeof h=="function"?h(u):h:null,A=Ke(d,le({},b,t,{onVnodeUnmounted:P=>{P.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return Fa(n.default,{Component:A,route:u})||A}}});function Fa(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const au=Sm;function xm(e){const t=dm(e.routes,e),n=e.parseQuery||mm,r=e.stringifyQuery||Ma,o=e.history,s=$n(),i=$n(),a=$n(),l=en(et);let u=et;cn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Bo.bind(null,R=>""+R),f=Bo.bind(null,jg),d=Bo.bind(null,rr);function h(R,U){let F,W;return ru(R)?(F=t.getRecordMatcher(R),W=U):W=R,t.addRoute(W,F)}function b(R){const U=t.getRecordMatcher(R);U&&t.removeRoute(U)}function E(){return t.getRoutes().map(R=>R.record)}function A(R){return!!t.getRecordMatcher(R)}function P(R,U){if(U=le({},U||l.value),typeof R=="string"){const g=Uo(n,R,U.path),w=t.resolve({path:g.path},U),k=o.createHref(g.fullPath);return le(g,w,{params:d(w.params),hash:rr(g.hash),redirectedFrom:void 0,href:k})}let F;if(R.path!=null)F=le({},R,{path:Uo(n,R.path,U.path).path});else{const g=le({},R.params);for(const w in g)g[w]==null&&delete g[w];F=le({},R,{params:f(g)}),U.params=f(U.params)}const W=t.resolve(F,U),ie=R.hash||"";W.params=c(d(W.params));const ge=Ug(r,le({},R,{hash:Ng(ie),path:W.path})),p=o.createHref(ge);return le({fullPath:ge,hash:ie,query:r===Ma?ym(R.query):R.query||{}},W,{redirectedFrom:void 0,href:p})}function y(R){return typeof R=="string"?Uo(n,R,l.value.path):le({},R)}function m(R,U){if(u!==R)return Tn(8,{from:U,to:R})}function v(R){return M(R)}function _(R){return v(le(y(R),{replace:!0}))}function C(R){const U=R.matched[R.matched.length-1];if(U&&U.redirect){const{redirect:F}=U;let W=typeof F=="function"?F(R):F;return typeof W=="string"&&(W=W.includes("?")||W.includes("#")?W=y(W):{path:W},W.params={}),le({query:R.query,hash:R.hash,params:W.path!=null?{}:R.params},W)}}function M(R,U){const F=u=P(R),W=l.value,ie=R.state,ge=R.force,p=R.replace===!0,g=C(F);if(g)return M(le(y(g),{state:typeof g=="object"?le({},ie,g.state):ie,force:ge,replace:p}),U||F);const w=F;w.redirectedFrom=U;let k;return!ge&&Dg(r,W,F)&&(k=Tn(16,{to:w,from:W}),ke(W,W,!0,!1)),(k?Promise.resolve(k):L(w,W)).catch(x=>dt(x)?dt(x,2)?x:Ye(x):q(x,w,W)).then(x=>{if(x){if(dt(x,2))return M(le({replace:p},y(x.to),{state:typeof x.to=="object"?le({},ie,x.to.state):ie,force:ge}),U||w)}else x=T(w,W,!0,p,ie);return V(w,W,x),x})}function S(R,U){const F=m(R,U);return F?Promise.reject(F):Promise.resolve()}function I(R){const U=sn.values().next().value;return U&&typeof U.runWithContext=="function"?U.runWithContext(R):R()}function L(R,U){let F;const[W,ie,ge]=Tm(R,U);F=Do(W.reverse(),"beforeRouteLeave",R,U);for(const g of W)g.leaveGuards.forEach(w=>{F.push(Lt(w,R,U))});const p=S.bind(null,R,U);return F.push(p),Ie(F).then(()=>{F=[];for(const g of s.list())F.push(Lt(g,R,U));return F.push(p),Ie(F)}).then(()=>{F=Do(ie,"beforeRouteUpdate",R,U);for(const g of ie)g.updateGuards.forEach(w=>{F.push(Lt(w,R,U))});return F.push(p),Ie(F)}).then(()=>{F=[];for(const g of ge)if(g.beforeEnter)if(nt(g.beforeEnter))for(const w of g.beforeEnter)F.push(Lt(w,R,U));else F.push(Lt(g.beforeEnter,R,U));return F.push(p),Ie(F)}).then(()=>(R.matched.forEach(g=>g.enterCallbacks={}),F=Do(ge,"beforeRouteEnter",R,U,I),F.push(p),Ie(F))).then(()=>{F=[];for(const g of i.list())F.push(Lt(g,R,U));return F.push(p),Ie(F)}).catch(g=>dt(g,8)?g:Promise.reject(g))}function V(R,U,F){a.list().forEach(W=>I(()=>W(R,U,F)))}function T(R,U,F,W,ie){const ge=m(R,U);if(ge)return ge;const p=U===et,g=cn?history.state:{};F&&(W||p?o.replace(R.fullPath,le({scroll:p&&g&&g.scroll},ie)):o.push(R.fullPath,ie)),l.value=R,ke(R,U,F,p),Ye()}let z;function oe(){z||(z=o.listen((R,U,F)=>{if(!hr.listening)return;const W=P(R),ie=C(W);if(ie){M(le(ie,{replace:!0}),W).catch(Kn);return}u=W;const ge=l.value;cn&&Qg(Ta(ge.fullPath,F.delta),wo()),L(W,ge).catch(p=>dt(p,12)?p:dt(p,2)?(M(p.to,W).then(g=>{dt(g,20)&&!F.delta&&F.type===or.pop&&o.go(-1,!1)}).catch(Kn),Promise.reject()):(F.delta&&o.go(-F.delta,!1),q(p,W,ge))).then(p=>{p=p||T(W,ge,!1),p&&(F.delta&&!dt(p,8)?o.go(-F.delta,!1):F.type===or.pop&&dt(p,20)&&o.go(-1,!1)),V(W,ge,p)}).catch(Kn)}))}let re=$n(),H=$n(),X;function q(R,U,F){Ye(R);const W=H.list();return W.length?W.forEach(ie=>ie(R,U,F)):console.error(R),Promise.reject(R)}function Re(){return X&&l.value!==et?Promise.resolve():new Promise((R,U)=>{re.add([R,U])})}function Ye(R){return X||(X=!R,oe(),re.list().forEach(([U,F])=>R?F(R):U()),re.reset()),R}function ke(R,U,F,W){const{scrollBehavior:ie}=e;if(!cn||!ie)return Promise.resolve();const ge=!F&&Xg(Ta(R.fullPath,0))||(W||!F)&&history.state&&history.state.scroll||null;return yt().then(()=>ie(R,U,ge)).then(p=>p&&Jg(p)).catch(p=>q(p,R,U))}const Ce=R=>o.go(R);let on;const sn=new Set,hr={currentRoute:l,listening:!0,addRoute:h,removeRoute:b,hasRoute:A,getRoutes:E,resolve:P,options:e,push:v,replace:_,go:Ce,back:()=>Ce(-1),forward:()=>Ce(1),beforeEach:s.add,beforeResolve:i.add,afterEach:a.add,onError:H.add,isReady:Re,install(R){const U=this;R.component("RouterLink",wm),R.component("RouterView",au),R.config.globalProperties.$router=U,Object.defineProperty(R.config.globalProperties,"$route",{enumerable:!0,get:()=>ye(l)}),cn&&!on&&l.value===et&&(on=!0,v(o.location).catch(ie=>{}));const F={};for(const ie in et)Object.defineProperty(F,ie,{get:()=>l.value[ie],enumerable:!0});R.provide(mi,U),R.provide(iu,lr(F)),R.provide(Cs,l);const W=R.unmount;sn.add(R),R.unmount=function(){sn.delete(R),sn.size<1&&(u=et,z&&z(),z=null,l.value=et,on=!1,X=!1),W()}}};function Ie(R){return R.reduce((U,F)=>U.then(()=>I(F)),Promise.resolve())}return hr}function Tm(e,t){const n=[],r=[],o=[],s=Math.max(t.matched.length,e.matched.length);for(let i=0;ixn(u,a))?r.push(a):n.push(a));const l=e.matched[i];l&&(t.matched.find(u=>xn(u,l))||o.push(l))}return[n,r,o]}const Rm=(e,t)=>t.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,n=>{var r;return((r=e.params[n.slice(1)])==null?void 0:r.toString())||""}),Ss=(e,t)=>{const n=e.route.matched.find(o=>{var s;return((s=o.components)==null?void 0:s.default)===e.Component.type}),r=t??(n==null?void 0:n.meta.key)??(n&&Rm(e.route,n));return typeof r=="function"?r(e.route):r},Am=(e,t)=>({default:()=>e?Ke(Uf,e===!0?{}:e,t):t});function yi(e){return Array.isArray(e)?e:[e]}const Pm="modulepreload",km=function(e,t){return e[0]==="."?new URL(e,t).href:e},Ba={},Im=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){const s=document.getElementsByTagName("link"),i=document.querySelector("meta[property=csp-nonce]"),a=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));o=Promise.all(n.map(l=>{if(l=km(l,r),l in Ba)return;Ba[l]=!0;const u=l.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(!!r)for(let h=s.length-1;h>=0;h--){const b=s[h];if(b.href===l&&(!u||b.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${c}`))return;const d=document.createElement("link");if(d.rel=u?"stylesheet":Pm,u||(d.as="script",d.crossOrigin=""),d.href=l,a&&d.setAttribute("nonce",a),document.head.appendChild(d),u)return new Promise((h,b)=>{d.addEventListener("load",h),d.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${l}`)))})}))}return o.then(()=>t()).catch(s=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=s,window.dispatchEvent(i),!i.defaultPrevented)throw s})},sr=(...e)=>Im(...e).catch(t=>{const n=new Event("nuxt.preloadError");throw n.payload=t,window.dispatchEvent(n),t}),qo=null,Ua=[{name:"index",path:"/",meta:{},alias:[],redirect:qo==null?void 0:qo.redirect,component:()=>sr(()=>import("./ZYpizJza.js"),__vite__mapDeps([0,1,2,3]),import.meta.url).then(e=>e.default||e)}],Om=(e,t,n)=>(t=t===!0?{}:t,{default:()=>{var r;return t?Ke(e,t,n):(r=n.default)==null?void 0:r.call(n)}});function Da(e){const t=(e==null?void 0:e.meta.key)??e.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,n=>{var r;return((r=e.params[n.slice(1)])==null?void 0:r.toString())||""});return typeof t=="function"?t(e):t}function Lm(e,t){return e===t||t===et?!1:Da(e)!==Da(t)?!0:!e.matched.every((r,o)=>{var s,i;return r.components&&r.components.default===((i=(s=t.matched[o])==null?void 0:s.components)==null?void 0:i.default)})}const Mm={scrollBehavior(e,t,n){var u;const r=ve(),o=((u=ft().options)==null?void 0:u.scrollBehaviorType)??"auto";let s=n||void 0;const i=typeof e.meta.scrollToTop=="function"?e.meta.scrollToTop(e,t):e.meta.scrollToTop;if(!s&&t&&e&&i!==!1&&Lm(e,t)&&(s={left:0,top:0}),e.path===t.path)return t.hash&&!e.hash?{left:0,top:0}:e.hash?{el:e.hash,top:qa(e.hash),behavior:o}:!1;const a=c=>!!(c.meta.pageTransition??_s),l=a(t)&&a(e)?"page:transition:finish":"page:finish";return new Promise(c=>{r.hooks.hookOnce(l,async()=>{await new Promise(f=>setTimeout(f,0)),e.hash&&(s={el:e.hash,top:qa(e.hash),behavior:o}),c(s)})})}};function qa(e){try{const t=document.querySelector(e);if(t)return parseFloat(getComputedStyle(t).scrollMarginTop)}catch{}return 0}const Nm={hashMode:!1,scrollBehaviorType:"auto"},qe={...Nm,...Mm},$m=async e=>{var l;let t,n;if(!((l=e.meta)!=null&&l.validate))return;const r=ve(),o=ft();if(([t,n]=nr(()=>Promise.resolve(e.meta.validate(e))),t=await t,n(),t)===!0)return;const i=vo({statusCode:404,statusMessage:`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}}),a=o.beforeResolve(u=>{if(a(),u===e){const c=o.afterEach(async()=>{c(),await r.runWithContext(()=>un(i)),window.history.pushState({},"",e.fullPath)});return!1}})},Hm=async e=>{let t,n;const r=([t,n]=nr(()=>hi(e.path)),t=await t,n(),t);if(r.redirect)return rn(r.redirect,{acceptRelative:!0})?(window.location.href=r.redirect,!1):r.redirect},jm=[$m,Hm],Gn={};function Fm(e,t,n){const{pathname:r,search:o,hash:s}=t,i=e.indexOf("#");if(i>-1){const u=s.includes(e.slice(i))?e.slice(i).length:1;let c=s.slice(u);return c[0]!=="/"&&(c="/"+c),ua(c,"")}const a=ua(r,e),l=!n||Ap(a,n,{trailingSlash:!0})?a:n;return l+(l.includes("?")?"":o)+s}const Bm=Ue({name:"nuxt:router",enforce:"pre",async setup(e){var A,P;let t,n,r=ci().app.baseURL;qe.hashMode&&!r.includes("#")&&(r+="#");const o=((A=qe.history)==null?void 0:A.call(qe,r))??(qe.hashMode?tm(r):nu(r)),s=((P=qe.routes)==null?void 0:P.call(qe,Ua))??Ua;let i;const a=xm({...qe,scrollBehavior:(y,m,v)=>{if(m===et){i=v;return}if(qe.scrollBehavior){if(a.options.scrollBehavior=qe.scrollBehavior,"scrollRestoration"in window.history){const _=a.beforeEach(()=>{_(),window.history.scrollRestoration="manual"})}return qe.scrollBehavior(y,et,i||v)}},history:o,routes:s});"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),e.vueApp.use(a);const l=en(a.currentRoute.value);a.afterEach((y,m)=>{l.value=m}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>l.value});const u=Fm(r,window.location,e.payload.path),c=en(a.currentRoute.value),f=()=>{c.value=a.currentRoute.value};e.hook("page:finish",f),a.afterEach((y,m)=>{var v,_,C,M;((_=(v=y.matched[0])==null?void 0:v.components)==null?void 0:_.default)===((M=(C=m.matched[0])==null?void 0:C.components)==null?void 0:M.default)&&f()});const d={};for(const y in c.value)Object.defineProperty(d,y,{get:()=>c.value[y]});e._route=lr(d),e._middleware=e._middleware||{global:[],named:{}};try{[t,n]=nr(()=>a.isReady()),await t,n()}catch(y){[t,n]=nr(()=>e.runWithContext(()=>un(y))),await t,n()}const h=u!==a.currentRoute.value.fullPath?a.resolve(u):a.currentRoute.value;f();const b=e.payload.state._layout;a.beforeEach(async(y,m)=>{var v;await e.callHook("page:loading:start"),y.meta=Ne(y.meta),e.isHydrating&&b&&!En(y.meta.layout)&&(y.meta.layout=b),e._processingMiddleware=!0;{const _=new Set([...jm,...e._middleware.global]);for(const C of y.matched){const M=C.meta.middleware;if(M)for(const S of yi(M))_.add(S)}{const C=await e.runWithContext(()=>hi(y.path));if(C.appMiddleware)for(const M in C.appMiddleware)C.appMiddleware[M]?_.add(M):_.delete(M)}for(const C of _){const M=typeof C=="string"?e._middleware.named[C]||await((v=Gn[C])==null?void 0:v.call(Gn).then(I=>I.default||I)):C;if(!M)throw new Error(`Unknown route middleware: '${C}'.`);const S=await e.runWithContext(()=>M(y,m));if(!e.payload.serverRendered&&e.isHydrating&&(S===!1||S instanceof Error)){const I=S||ms({statusCode:404,statusMessage:`Page Not Found: ${u}`});return await e.runWithContext(()=>un(I)),!1}if(S!==!0&&(S||S===!1))return S}}}),a.onError(async()=>{delete e._processingMiddleware,await e.callHook("page:loading:end")});const E=bo();return a.afterEach(async(y,m,v)=>{delete e._processingMiddleware,!e.isHydrating&&E.value&&await e.runWithContext(vh),v&&await e.callHook("page:loading:end"),y.matched.length===0&&await e.runWithContext(()=>un(ms({statusCode:404,fatal:!1,statusMessage:`Page not found: ${y.fullPath}`,data:{path:y.fullPath}})))}),e.hooks.hookOnce("app:created",async()=>{try{"name"in h&&(h.name=void 0),await a.replace({...h,force:!0}),a.options.scrollBehavior=qe.scrollBehavior}catch(y){await e.runWithContext(()=>un(y))}}),{provide:{router:a}}}}),Va=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),Vb=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),lu=e=>{const t=ve();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{Va(e)}):Va(e)},Um=Ue({name:"nuxt:payload",setup(e){ft().beforeResolve(async(t,n)=>{if(t.path===n.path)return;const r=await Ea(t.path);r&&Object.assign(e.static.data,r.data)}),lu(()=>{var t;e.hooks.hook("link:prefetch",async n=>{mo(n).protocol||await Ea(n)}),((t=navigator.connection)==null?void 0:t.effectiveType)!=="slow-2g"&&setTimeout(_o,1e3)})}}),Dm=Ue(e=>{let t;async function n(){const r=await _o();t&&clearTimeout(t),t=setTimeout(n,1e3*60*60);try{const o=await $fetch(li("builds/latest.json")+`?${Date.now()}`);o.id!==r.id&&e.hooks.callHook("app:manifest:update",o)}catch{}}lu(()=>{t=setTimeout(n,1e3*60*60)})}),qm=!1;/*! * pinia v2.1.7 * (c) 2023 Eduardo San Martin Morote * @license MIT - */let cu;const dr=e=>cu=e,uu=Symbol();function xs(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Jn;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Jn||(Jn={}));function Vm(){const e=Us(!0),t=e.run(()=>Te({}));let n=[],r=[];const o=Gs({install(s){dr(o),o._a=s,s.provide(uu,o),s.config.globalProperties.$pinia=o,r.forEach(i=>n.push(i)),r=[]},use(s){return!this._a&&!qm?r.push(s):n.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const fu=()=>{};function Wa(e,t,n,r=fu){e.push(t);const o=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),r())};return!n&&ll()&&qu(o),o}function ln(e,...t){e.slice().forEach(n=>{n(...t)})}const Wm=e=>e();function Ts(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],o=e[n];xs(o)&&xs(r)&&e.hasOwnProperty(n)&&!_e(r)&&!Yt(r)?e[n]=Ts(o,r):e[n]=r}return e}const Km=Symbol();function zm(e){return!xs(e)||!e.hasOwnProperty(Km)}const{assign:At}=Object;function Gm(e){return!!(_e(e)&&e.effect)}function Jm(e,t,n,r){const{state:o,actions:s,getters:i}=t,a=n.state.value[e];let l;function u(){a||(n.state.value[e]=o?o():{});const c=hf(n.state.value[e]);return At(c,s,Object.keys(i||{}).reduce((f,d)=>(f[d]=Gs(ce(()=>{dr(n);const h=n._s.get(e);return i[d].call(h,h)})),f),{}))}return l=du(e,u,t,n,r,!0),l}function du(e,t,n={},r,o,s){let i;const a=At({actions:{}},n),l={deep:!0};let u,c,f=[],d=[],h;const b=r.state.value[e];!s&&!b&&(r.state.value[e]={}),Te({});let E;function A(S){let I;u=c=!1,typeof S=="function"?(S(r.state.value[e]),I={type:Jn.patchFunction,storeId:e,events:h}):(Ts(r.state.value[e],S),I={type:Jn.patchObject,payload:S,storeId:e,events:h});const L=E=Symbol();yt().then(()=>{E===L&&(u=!0)}),c=!0,ln(f,I,r.state.value[e])}const P=s?function(){const{state:I}=n,L=I?I():{};this.$patch(V=>{At(V,L)})}:fu;function y(){i.stop(),f=[],d=[],r._s.delete(e)}function m(S,I){return function(){dr(r);const L=Array.from(arguments),V=[],T=[];function z(H){V.push(H)}function oe(H){T.push(H)}ln(d,{args:L,name:S,store:_,after:z,onError:oe});let re;try{re=I.apply(this&&this.$id===e?this:_,L)}catch(H){throw ln(T,H),H}return re instanceof Promise?re.then(H=>(ln(V,H),H)).catch(H=>(ln(T,H),Promise.reject(H))):(ln(V,re),re)}}const v={_p:r,$id:e,$onAction:Wa.bind(null,d),$patch:A,$reset:P,$subscribe(S,I={}){const L=Wa(f,S,I.detached,()=>V()),V=i.run(()=>at(()=>r.state.value[e],T=>{(I.flush==="sync"?c:u)&&S({storeId:e,type:Jn.direct,events:h},T)},At({},l,I)));return L},$dispose:y},_=Ne(v);r._s.set(e,_);const M=(r._a&&r._a.runWithContext||Wm)(()=>r._e.run(()=>(i=Us()).run(t)));for(const S in M){const I=M[S];if(_e(I)&&!Gm(I)||Yt(I))s||(b&&zm(I)&&(_e(I)?I.value=b[S]:Ts(I,b[S])),r.state.value[e][S]=I);else if(typeof I=="function"){const L=m(S,I);M[S]=L,a.actions[S]=I}}return At(_,M),At(Z(_),M),Object.defineProperty(_,"$state",{get:()=>r.state.value[e],set:S=>{A(I=>{At(I,S)})}}),r._p.forEach(S=>{At(_,i.run(()=>S({store:_,app:r._a,pinia:r,options:a})))}),b&&s&&n.hydrate&&n.hydrate(_.$state,b),u=!0,c=!0,_}function Wb(e,t,n){let r,o;const s=typeof t=="function";r=e,o=s?n:t;function i(a,l){const u=ei();return a=a||(u?Fe(uu,null):null),a&&dr(a),a=cu,a._s.has(r)||(s?du(r,t,o,a):Jm(r,o,a)),a._s.get(r)}return i.$id=r,i}const Qm="$s";function Xm(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);const[n,r]=e;if(!n||typeof n!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+n);if(r!==void 0&&typeof r!="function")throw new Error("[nuxt] [useState] init must be a function: "+r);const o=Qm+n,s=ve(),i=Tl(s.payload.state,o);if(i.value===void 0&&r){const a=r();if(_e(a))return s.payload.state[o]=a,a;i.value=a}return i}function Ym(e={}){const t=e.path||window.location.pathname;let n={};try{n=Gr(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||(n==null?void 0:n.path)!==t||(n==null?void 0:n.expires){const t=Vm();return e.vueApp.use(t),dr(t),e.payload&&e.payload.pinia&&(t.state.value=e.payload.pinia),{provide:{pinia:t}}}),e0=qr(()=>sr(()=>import("./DIgTqSKF.js"),__vite__mapDeps([1,2,3]),import.meta.url).then(e=>e.default||e.default||e)),t0=qr(()=>sr(()=>import("./Dbnj5q1_.js"),__vite__mapDeps([4,2,5]),import.meta.url).then(e=>e.default||e.default||e)),n0=[["Icon",e0],["IconCSS",t0]],r0=Ue({name:"nuxt:global-components",setup(e){for(const[t,n]of n0)e.vueApp.component(t,n),e.vueApp.component("Lazy"+t,n)}}),Tr={},o0=Ue({name:"nuxt:prefetch",setup(e){const t=ft();e.hooks.hook("app:mounted",()=>{t.beforeEach(async n=>{var o;const r=(o=n==null?void 0:n.meta)==null?void 0:o.layout;r&&typeof Tr[r]=="function"&&await Tr[r]()})}),e.hooks.hook("link:prefetch",n=>{if(rn(n))return;const r=t.resolve(n);if(!r)return;const o=r.meta.layout;let s=yi(r.meta.middleware);s=s.filter(i=>typeof i=="string");for(const i of s)typeof Gn[i]=="function"&&Gn[i]();o&&typeof Tr[o]=="function"&&Tr[o]()})}}),s0=Symbol("nuxt-ui.slideover"),i0=Ue(e=>{const t=en({component:"div",props:{}});e.vueApp.provide(s0,t)}),a0=Symbol("nuxt-ui.modal"),l0=Ue(e=>{const t=en({component:"div",props:{}});e.vueApp.provide(a0,t)}),bi="-";function c0(e){const t=f0(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;function o(i){const a=i.split(bi);return a[0]===""&&a.length!==1&&a.shift(),pu(a,t)||u0(i)}function s(i,a){const l=n[i]||[];return a&&r[i]?[...l,...r[i]]:l}return{getClassGroupId:o,getConflictingClassGroupIds:s}}function pu(e,t){var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?pu(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(bi);return(i=t.validators.find(({validator:a})=>a(s)))==null?void 0:i.classGroupId}const Ka=/^\[(.+)\]$/;function u0(e){if(Ka.test(e)){const t=Ka.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function f0(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return p0(Object.entries(e.classGroups),n).forEach(([s,i])=>{Rs(i,r,s,t)}),r}function Rs(e,t,n,r){e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:za(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(d0(o)){Rs(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,i])=>{Rs(i,za(t,s),n,r)})})}function za(e,t){let n=e;return t.split(bi).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function d0(e){return e.isThemeGetter}function p0(e,t){return t?e.map(([n,r])=>{const o=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,a])=>[t+i,a])):s);return[n,o]}):e}function h0(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function o(s,i){n.set(s,i),t++,t>e&&(t=0,r=n,n=new Map)}return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=r.get(s))!==void 0)return o(s,i),i},set(s,i){n.has(s)?n.set(s,i):o(s,i)}}}const hu="!";function g0(e){const t=e.separator,n=t.length===1,r=t[0],o=t.length;return function(i){const a=[];let l=0,u=0,c;for(let E=0;Eu?c-u:void 0;return{modifiers:a,hasImportantModifier:d,baseClassName:h,maybePostfixModifierPosition:b}}}function m0(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t}function y0(e){return{cache:h0(e.cacheSize),splitModifiers:g0(e),...c0(e)}}const b0=/\s+/;function v0(e,t){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=new Set;return e.trim().split(b0).map(i=>{const{modifiers:a,hasImportantModifier:l,baseClassName:u,maybePostfixModifierPosition:c}=n(i);let f=r(c?u.substring(0,c):u),d=!!c;if(!f){if(!c)return{isTailwindClass:!1,originalClassName:i};if(f=r(u),!f)return{isTailwindClass:!1,originalClassName:i};d=!1}const h=m0(a).join(":");return{isTailwindClass:!0,modifierId:l?h+hu:h,classGroupId:f,originalClassName:i,hasPostfixModifier:d}}).reverse().filter(i=>{if(!i.isTailwindClass)return!0;const{modifierId:a,classGroupId:l,hasPostfixModifier:u}=i,c=a+l;return s.has(c)?!1:(s.add(c),o(l,u).forEach(f=>s.add(a+f)),!0)}).reverse().map(i=>i.originalClassName).join(" ")}function _0(){let e=0,t,n,r="";for(;ef(c),e());return n=y0(u),r=n.cache.get,o=n.cache.set,s=a,a(l)}function a(l){const u=r(l);if(u)return u;const c=v0(l,n);return o(l,c),c}return function(){return s(_0.apply(null,arguments))}}function pe(e){const t=n=>n[e]||[];return t.isThemeGetter=!0,t}const mu=/^\[(?:([a-z-]+):)?(.+)\]$/i,w0=/^\d+\/\d+$/,E0=new Set(["px","full","screen"]),C0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,S0=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,x0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,T0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,R0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function pt(e){return Jt(e)||E0.has(e)||w0.test(e)}function Tt(e){return Ln(e,"length",N0)}function Jt(e){return!!e&&!Number.isNaN(Number(e))}function Rr(e){return Ln(e,"number",Jt)}function Hn(e){return!!e&&Number.isInteger(Number(e))}function A0(e){return e.endsWith("%")&&Jt(e.slice(0,-1))}function te(e){return mu.test(e)}function Rt(e){return C0.test(e)}const P0=new Set(["length","size","percentage"]);function k0(e){return Ln(e,P0,yu)}function I0(e){return Ln(e,"position",yu)}const O0=new Set(["image","url"]);function L0(e){return Ln(e,O0,H0)}function M0(e){return Ln(e,"",$0)}function jn(){return!0}function Ln(e,t,n){const r=mu.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1}function N0(e){return S0.test(e)&&!x0.test(e)}function yu(){return!1}function $0(e){return T0.test(e)}function H0(e){return R0.test(e)}function Ps(){const e=pe("colors"),t=pe("spacing"),n=pe("blur"),r=pe("brightness"),o=pe("borderColor"),s=pe("borderRadius"),i=pe("borderSpacing"),a=pe("borderWidth"),l=pe("contrast"),u=pe("grayscale"),c=pe("hueRotate"),f=pe("invert"),d=pe("gap"),h=pe("gradientColorStops"),b=pe("gradientColorStopPositions"),E=pe("inset"),A=pe("margin"),P=pe("opacity"),y=pe("padding"),m=pe("saturate"),v=pe("scale"),_=pe("sepia"),C=pe("skew"),M=pe("space"),S=pe("translate"),I=()=>["auto","contain","none"],L=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto",te,t],T=()=>[te,t],z=()=>["",pt,Tt],oe=()=>["auto",Jt,te],re=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],H=()=>["solid","dashed","dotted","double","none"],X=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],q=()=>["start","end","center","between","around","evenly","stretch"],Re=()=>["","0",te],Ye=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ke=()=>[Jt,Rr],Ce=()=>[Jt,te];return{cacheSize:500,separator:":",theme:{colors:[jn],spacing:[pt,Tt],blur:["none","",Rt,te],brightness:ke(),borderColor:[e],borderRadius:["none","","full",Rt,te],borderSpacing:T(),borderWidth:z(),contrast:ke(),grayscale:Re(),hueRotate:Ce(),invert:Re(),gap:T(),gradientColorStops:[e],gradientColorStopPositions:[A0,Tt],inset:V(),margin:V(),opacity:ke(),padding:T(),saturate:ke(),scale:ke(),sepia:Re(),skew:Ce(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",te]}],container:["container"],columns:[{columns:[Rt]}],"break-after":[{"break-after":Ye()}],"break-before":[{"break-before":Ye()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...re(),te]}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[E]}],"inset-x":[{"inset-x":[E]}],"inset-y":[{"inset-y":[E]}],start:[{start:[E]}],end:[{end:[E]}],top:[{top:[E]}],right:[{right:[E]}],bottom:[{bottom:[E]}],left:[{left:[E]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Hn,te]}],basis:[{basis:V()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",te]}],grow:[{grow:Re()}],shrink:[{shrink:Re()}],order:[{order:["first","last","none",Hn,te]}],"grid-cols":[{"grid-cols":[jn]}],"col-start-end":[{col:["auto",{span:["full",Hn,te]},te]}],"col-start":[{"col-start":oe()}],"col-end":[{"col-end":oe()}],"grid-rows":[{"grid-rows":[jn]}],"row-start-end":[{row:["auto",{span:[Hn,te]},te]}],"row-start":[{"row-start":oe()}],"row-end":[{"row-end":oe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",te]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",te]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...q()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...q(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...q(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[A]}],mx:[{mx:[A]}],my:[{my:[A]}],ms:[{ms:[A]}],me:[{me:[A]}],mt:[{mt:[A]}],mr:[{mr:[A]}],mb:[{mb:[A]}],ml:[{ml:[A]}],"space-x":[{"space-x":[M]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[M]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",te,t]}],"min-w":[{"min-w":[te,t,"min","max","fit"]}],"max-w":[{"max-w":[te,t,"none","full","min","max","fit","prose",{screen:[Rt]},Rt]}],h:[{h:[te,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[te,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[te,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[te,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Rt,Tt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Rr]}],"font-family":[{font:[jn]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",te]}],"line-clamp":[{"line-clamp":["none",Jt,Rr]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",pt,te]}],"list-image":[{"list-image":["none",te]}],"list-style-type":[{list:["none","disc","decimal",te]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[P]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[P]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...H(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",pt,Tt]}],"underline-offset":[{"underline-offset":["auto",pt,te]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",te]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[P]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...re(),I0]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",k0]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},L0]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[P]}],"border-style":[{border:[...H(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[P]}],"divide-style":[{divide:H()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...H()]}],"outline-offset":[{"outline-offset":[pt,te]}],"outline-w":[{outline:[pt,Tt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[P]}],"ring-offset-w":[{"ring-offset":[pt,Tt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Rt,M0]}],"shadow-color":[{shadow:[jn]}],opacity:[{opacity:[P]}],"mix-blend":[{"mix-blend":[...X(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":X()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Rt,te]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[m]}],sepia:[{sepia:[_]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[P]}],"backdrop-saturate":[{"backdrop-saturate":[m]}],"backdrop-sepia":[{"backdrop-sepia":[_]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",te]}],duration:[{duration:Ce()}],ease:[{ease:["linear","in","out","in-out",te]}],delay:[{delay:Ce()}],animate:[{animate:["none","spin","ping","pulse","bounce",te]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[v]}],"scale-x":[{"scale-x":[v]}],"scale-y":[{"scale-y":[v]}],rotate:[{rotate:[Hn,te]}],"translate-x":[{"translate-x":[S]}],"translate-y":[{"translate-y":[S]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",te]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",te]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",te]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[pt,Tt,Rr]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}function j0(e,{cacheSize:t,prefix:n,separator:r,extend:o={},override:s={}}){Mr(e,"cacheSize",t),Mr(e,"prefix",n),Mr(e,"separator",r);for(const i in s)F0(e[i],s[i]);for(const i in o)B0(e[i],o[i]);return e}function Mr(e,t,n){n!==void 0&&(e[t]=n)}function F0(e,t){if(t)for(const n in t)Mr(e,n,t[n])}function B0(e,t){if(t)for(const n in t){const r=t[n];r!==void 0&&(e[n]=(e[n]||[]).concat(r))}}function U0(e,...t){return typeof e=="function"?As(Ps,e,...t):As(()=>j0(Ps(),e),...t)}const Kb=As(Ps),D0=U0({extend:{classGroups:{icons:[e=>/^i-/.test(e)]}}}),q0=ui((e,t,n,r)=>{if(r==="default"||r.startsWith("default.")||r==="popper"||r.startsWith("popper.")||r.endsWith("avatar")&&t==="size"||r.endsWith("chip")&&t==="size"||r.endsWith("badge")&&t==="size"||t==="color"||t==="variant")return!1;if(typeof e[t]=="string"&&typeof n=="string"&&e[t]&&n)return e[t]=D0(e[t],n),!0});function zb(e,...t){return e==="override"?fi({},...t):q0({},...t)}function Ga(e){const t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;e=e.replace(t,function(r,o,s,i){return o+o+s+s+i+i});const n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return n?`${parseInt(n[1],16)} ${parseInt(n[2],16)} ${parseInt(n[3],16)}`:null}function Gb(e){const t=parseFloat(e);return isNaN(t)?e:t}const V0="inherit",W0="currentColor",K0="transparent",z0="#000",G0="#fff",J0={50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},Q0={50:"rgb(var(--color-gray-50) / )",100:"rgb(var(--color-gray-100) / )",200:"rgb(var(--color-gray-200) / )",300:"rgb(var(--color-gray-300) / )",400:"rgb(var(--color-gray-400) / )",500:"rgb(var(--color-gray-500) / )",600:"rgb(var(--color-gray-600) / )",700:"rgb(var(--color-gray-700) / )",800:"rgb(var(--color-gray-800) / )",900:"rgb(var(--color-gray-900) / )",950:"rgb(var(--color-gray-950) / )"},X0={50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},Y0={50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},Z0={50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},ey={50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},ty={50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},ny={50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},ry={50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},oy={50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},sy={50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},iy={50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},ay={50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},ly={50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},cy={50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},uy={50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},fy={50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},dy={50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},py={50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},hy={50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},gy={50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},my={50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},yy={50:"#5E7491",100:"#566A85",200:"#46566C",300:"#364254",400:"#262F3B",500:"#161B22",600:"#000000",700:"#000000",800:"#000000",900:"#000000",950:"#000000",DEFAULT:"#161B22"},by="#dc2626",vy={50:"rgb(var(--color-primary-50) / )",100:"rgb(var(--color-primary-100) / )",200:"rgb(var(--color-primary-200) / )",300:"rgb(var(--color-primary-300) / )",400:"rgb(var(--color-primary-400) / )",500:"rgb(var(--color-primary-500) / )",600:"rgb(var(--color-primary-600) / )",700:"rgb(var(--color-primary-700) / )",800:"rgb(var(--color-primary-800) / )",900:"rgb(var(--color-primary-900) / )",950:"rgb(var(--color-primary-950) / )",DEFAULT:"rgb(var(--color-primary-DEFAULT) / )"},_y={50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},Ar={inherit:V0,current:W0,transparent:K0,black:z0,white:G0,slate:J0,gray:Q0,zinc:X0,neutral:Y0,stone:Z0,red:ey,orange:ty,amber:ny,yellow:ry,lime:oy,green:sy,emerald:iy,teal:ay,cyan:ly,sky:cy,blue:uy,indigo:fy,violet:dy,purple:py,fuchsia:hy,pink:gy,rose:my,secondary:yy,error:by,primary:vy,cool:_y,"primary-dark":{50:"#4F688C",100:"#485E7F",200:"#394B65",300:"#2A384B",400:"#1C2431",500:"#0D1117",600:"#000000",700:"#000000",800:"#000000",900:"#000000",950:"#000000",DEFAULT:"#0D1117"},"primary-ui":{400:"#ffffff",DEFAULT:"#0D1117"},"jwt-header":"#ef4444","jwt-payload":"#d946ef","jwt-sign":"#38bdf8"},wy=Ue(()=>{const e=pi(),t=ve(),n=ce(()=>{const o=Ar[e.ui.primary],s=Ar[e.ui.gray];return o||console.warn(`[@nuxt/ui] Primary color '${e.ui.primary}' not found in Tailwind config`),s||console.warn(`[@nuxt/ui] Gray color '${e.ui.gray}' not found in Tailwind config`),`:root { + */let cu;const dr=e=>cu=e,uu=Symbol();function xs(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Jn;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Jn||(Jn={}));function Vm(){const e=Us(!0),t=e.run(()=>Te({}));let n=[],r=[];const o=Gs({install(s){dr(o),o._a=s,s.provide(uu,o),s.config.globalProperties.$pinia=o,r.forEach(i=>n.push(i)),r=[]},use(s){return!this._a&&!qm?r.push(s):n.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const fu=()=>{};function Wa(e,t,n,r=fu){e.push(t);const o=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),r())};return!n&&ll()&&qu(o),o}function ln(e,...t){e.slice().forEach(n=>{n(...t)})}const Wm=e=>e();function Ts(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],o=e[n];xs(o)&&xs(r)&&e.hasOwnProperty(n)&&!_e(r)&&!Yt(r)?e[n]=Ts(o,r):e[n]=r}return e}const Km=Symbol();function zm(e){return!xs(e)||!e.hasOwnProperty(Km)}const{assign:At}=Object;function Gm(e){return!!(_e(e)&&e.effect)}function Jm(e,t,n,r){const{state:o,actions:s,getters:i}=t,a=n.state.value[e];let l;function u(){a||(n.state.value[e]=o?o():{});const c=hf(n.state.value[e]);return At(c,s,Object.keys(i||{}).reduce((f,d)=>(f[d]=Gs(ce(()=>{dr(n);const h=n._s.get(e);return i[d].call(h,h)})),f),{}))}return l=du(e,u,t,n,r,!0),l}function du(e,t,n={},r,o,s){let i;const a=At({actions:{}},n),l={deep:!0};let u,c,f=[],d=[],h;const b=r.state.value[e];!s&&!b&&(r.state.value[e]={}),Te({});let E;function A(S){let I;u=c=!1,typeof S=="function"?(S(r.state.value[e]),I={type:Jn.patchFunction,storeId:e,events:h}):(Ts(r.state.value[e],S),I={type:Jn.patchObject,payload:S,storeId:e,events:h});const L=E=Symbol();yt().then(()=>{E===L&&(u=!0)}),c=!0,ln(f,I,r.state.value[e])}const P=s?function(){const{state:I}=n,L=I?I():{};this.$patch(V=>{At(V,L)})}:fu;function y(){i.stop(),f=[],d=[],r._s.delete(e)}function m(S,I){return function(){dr(r);const L=Array.from(arguments),V=[],T=[];function z(H){V.push(H)}function oe(H){T.push(H)}ln(d,{args:L,name:S,store:_,after:z,onError:oe});let re;try{re=I.apply(this&&this.$id===e?this:_,L)}catch(H){throw ln(T,H),H}return re instanceof Promise?re.then(H=>(ln(V,H),H)).catch(H=>(ln(T,H),Promise.reject(H))):(ln(V,re),re)}}const v={_p:r,$id:e,$onAction:Wa.bind(null,d),$patch:A,$reset:P,$subscribe(S,I={}){const L=Wa(f,S,I.detached,()=>V()),V=i.run(()=>at(()=>r.state.value[e],T=>{(I.flush==="sync"?c:u)&&S({storeId:e,type:Jn.direct,events:h},T)},At({},l,I)));return L},$dispose:y},_=Ne(v);r._s.set(e,_);const M=(r._a&&r._a.runWithContext||Wm)(()=>r._e.run(()=>(i=Us()).run(t)));for(const S in M){const I=M[S];if(_e(I)&&!Gm(I)||Yt(I))s||(b&&zm(I)&&(_e(I)?I.value=b[S]:Ts(I,b[S])),r.state.value[e][S]=I);else if(typeof I=="function"){const L=m(S,I);M[S]=L,a.actions[S]=I}}return At(_,M),At(Z(_),M),Object.defineProperty(_,"$state",{get:()=>r.state.value[e],set:S=>{A(I=>{At(I,S)})}}),r._p.forEach(S=>{At(_,i.run(()=>S({store:_,app:r._a,pinia:r,options:a})))}),b&&s&&n.hydrate&&n.hydrate(_.$state,b),u=!0,c=!0,_}function Wb(e,t,n){let r,o;const s=typeof t=="function";r=e,o=s?n:t;function i(a,l){const u=ei();return a=a||(u?Fe(uu,null):null),a&&dr(a),a=cu,a._s.has(r)||(s?du(r,t,o,a):Jm(r,o,a)),a._s.get(r)}return i.$id=r,i}const Qm="$s";function Xm(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);const[n,r]=e;if(!n||typeof n!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+n);if(r!==void 0&&typeof r!="function")throw new Error("[nuxt] [useState] init must be a function: "+r);const o=Qm+n,s=ve(),i=Tl(s.payload.state,o);if(i.value===void 0&&r){const a=r();if(_e(a))return s.payload.state[o]=a,a;i.value=a}return i}function Ym(e={}){const t=e.path||window.location.pathname;let n={};try{n=Gr(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||(n==null?void 0:n.path)!==t||(n==null?void 0:n.expires){const t=Vm();return e.vueApp.use(t),dr(t),e.payload&&e.payload.pinia&&(t.state.value=e.payload.pinia),{provide:{pinia:t}}}),e0=qr(()=>sr(()=>import("./ys1wDdiv.js"),__vite__mapDeps([1,2,3]),import.meta.url).then(e=>e.default||e.default||e)),t0=qr(()=>sr(()=>import("./Citt7cBG.js"),__vite__mapDeps([4,2,5]),import.meta.url).then(e=>e.default||e.default||e)),n0=[["Icon",e0],["IconCSS",t0]],r0=Ue({name:"nuxt:global-components",setup(e){for(const[t,n]of n0)e.vueApp.component(t,n),e.vueApp.component("Lazy"+t,n)}}),Tr={},o0=Ue({name:"nuxt:prefetch",setup(e){const t=ft();e.hooks.hook("app:mounted",()=>{t.beforeEach(async n=>{var o;const r=(o=n==null?void 0:n.meta)==null?void 0:o.layout;r&&typeof Tr[r]=="function"&&await Tr[r]()})}),e.hooks.hook("link:prefetch",n=>{if(rn(n))return;const r=t.resolve(n);if(!r)return;const o=r.meta.layout;let s=yi(r.meta.middleware);s=s.filter(i=>typeof i=="string");for(const i of s)typeof Gn[i]=="function"&&Gn[i]();o&&typeof Tr[o]=="function"&&Tr[o]()})}}),s0=Symbol("nuxt-ui.slideover"),i0=Ue(e=>{const t=en({component:"div",props:{}});e.vueApp.provide(s0,t)}),a0=Symbol("nuxt-ui.modal"),l0=Ue(e=>{const t=en({component:"div",props:{}});e.vueApp.provide(a0,t)}),bi="-";function c0(e){const t=f0(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;function o(i){const a=i.split(bi);return a[0]===""&&a.length!==1&&a.shift(),pu(a,t)||u0(i)}function s(i,a){const l=n[i]||[];return a&&r[i]?[...l,...r[i]]:l}return{getClassGroupId:o,getConflictingClassGroupIds:s}}function pu(e,t){var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?pu(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(bi);return(i=t.validators.find(({validator:a})=>a(s)))==null?void 0:i.classGroupId}const Ka=/^\[(.+)\]$/;function u0(e){if(Ka.test(e)){const t=Ka.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function f0(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return p0(Object.entries(e.classGroups),n).forEach(([s,i])=>{Rs(i,r,s,t)}),r}function Rs(e,t,n,r){e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:za(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(d0(o)){Rs(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,i])=>{Rs(i,za(t,s),n,r)})})}function za(e,t){let n=e;return t.split(bi).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function d0(e){return e.isThemeGetter}function p0(e,t){return t?e.map(([n,r])=>{const o=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,a])=>[t+i,a])):s);return[n,o]}):e}function h0(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function o(s,i){n.set(s,i),t++,t>e&&(t=0,r=n,n=new Map)}return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=r.get(s))!==void 0)return o(s,i),i},set(s,i){n.has(s)?n.set(s,i):o(s,i)}}}const hu="!";function g0(e){const t=e.separator,n=t.length===1,r=t[0],o=t.length;return function(i){const a=[];let l=0,u=0,c;for(let E=0;Eu?c-u:void 0;return{modifiers:a,hasImportantModifier:d,baseClassName:h,maybePostfixModifierPosition:b}}}function m0(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t}function y0(e){return{cache:h0(e.cacheSize),splitModifiers:g0(e),...c0(e)}}const b0=/\s+/;function v0(e,t){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=new Set;return e.trim().split(b0).map(i=>{const{modifiers:a,hasImportantModifier:l,baseClassName:u,maybePostfixModifierPosition:c}=n(i);let f=r(c?u.substring(0,c):u),d=!!c;if(!f){if(!c)return{isTailwindClass:!1,originalClassName:i};if(f=r(u),!f)return{isTailwindClass:!1,originalClassName:i};d=!1}const h=m0(a).join(":");return{isTailwindClass:!0,modifierId:l?h+hu:h,classGroupId:f,originalClassName:i,hasPostfixModifier:d}}).reverse().filter(i=>{if(!i.isTailwindClass)return!0;const{modifierId:a,classGroupId:l,hasPostfixModifier:u}=i,c=a+l;return s.has(c)?!1:(s.add(c),o(l,u).forEach(f=>s.add(a+f)),!0)}).reverse().map(i=>i.originalClassName).join(" ")}function _0(){let e=0,t,n,r="";for(;ef(c),e());return n=y0(u),r=n.cache.get,o=n.cache.set,s=a,a(l)}function a(l){const u=r(l);if(u)return u;const c=v0(l,n);return o(l,c),c}return function(){return s(_0.apply(null,arguments))}}function pe(e){const t=n=>n[e]||[];return t.isThemeGetter=!0,t}const mu=/^\[(?:([a-z-]+):)?(.+)\]$/i,w0=/^\d+\/\d+$/,E0=new Set(["px","full","screen"]),C0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,S0=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,x0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,T0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,R0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function pt(e){return Jt(e)||E0.has(e)||w0.test(e)}function Tt(e){return Ln(e,"length",N0)}function Jt(e){return!!e&&!Number.isNaN(Number(e))}function Rr(e){return Ln(e,"number",Jt)}function Hn(e){return!!e&&Number.isInteger(Number(e))}function A0(e){return e.endsWith("%")&&Jt(e.slice(0,-1))}function te(e){return mu.test(e)}function Rt(e){return C0.test(e)}const P0=new Set(["length","size","percentage"]);function k0(e){return Ln(e,P0,yu)}function I0(e){return Ln(e,"position",yu)}const O0=new Set(["image","url"]);function L0(e){return Ln(e,O0,H0)}function M0(e){return Ln(e,"",$0)}function jn(){return!0}function Ln(e,t,n){const r=mu.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1}function N0(e){return S0.test(e)&&!x0.test(e)}function yu(){return!1}function $0(e){return T0.test(e)}function H0(e){return R0.test(e)}function Ps(){const e=pe("colors"),t=pe("spacing"),n=pe("blur"),r=pe("brightness"),o=pe("borderColor"),s=pe("borderRadius"),i=pe("borderSpacing"),a=pe("borderWidth"),l=pe("contrast"),u=pe("grayscale"),c=pe("hueRotate"),f=pe("invert"),d=pe("gap"),h=pe("gradientColorStops"),b=pe("gradientColorStopPositions"),E=pe("inset"),A=pe("margin"),P=pe("opacity"),y=pe("padding"),m=pe("saturate"),v=pe("scale"),_=pe("sepia"),C=pe("skew"),M=pe("space"),S=pe("translate"),I=()=>["auto","contain","none"],L=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto",te,t],T=()=>[te,t],z=()=>["",pt,Tt],oe=()=>["auto",Jt,te],re=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],H=()=>["solid","dashed","dotted","double","none"],X=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],q=()=>["start","end","center","between","around","evenly","stretch"],Re=()=>["","0",te],Ye=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ke=()=>[Jt,Rr],Ce=()=>[Jt,te];return{cacheSize:500,separator:":",theme:{colors:[jn],spacing:[pt,Tt],blur:["none","",Rt,te],brightness:ke(),borderColor:[e],borderRadius:["none","","full",Rt,te],borderSpacing:T(),borderWidth:z(),contrast:ke(),grayscale:Re(),hueRotate:Ce(),invert:Re(),gap:T(),gradientColorStops:[e],gradientColorStopPositions:[A0,Tt],inset:V(),margin:V(),opacity:ke(),padding:T(),saturate:ke(),scale:ke(),sepia:Re(),skew:Ce(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",te]}],container:["container"],columns:[{columns:[Rt]}],"break-after":[{"break-after":Ye()}],"break-before":[{"break-before":Ye()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...re(),te]}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[E]}],"inset-x":[{"inset-x":[E]}],"inset-y":[{"inset-y":[E]}],start:[{start:[E]}],end:[{end:[E]}],top:[{top:[E]}],right:[{right:[E]}],bottom:[{bottom:[E]}],left:[{left:[E]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Hn,te]}],basis:[{basis:V()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",te]}],grow:[{grow:Re()}],shrink:[{shrink:Re()}],order:[{order:["first","last","none",Hn,te]}],"grid-cols":[{"grid-cols":[jn]}],"col-start-end":[{col:["auto",{span:["full",Hn,te]},te]}],"col-start":[{"col-start":oe()}],"col-end":[{"col-end":oe()}],"grid-rows":[{"grid-rows":[jn]}],"row-start-end":[{row:["auto",{span:[Hn,te]},te]}],"row-start":[{"row-start":oe()}],"row-end":[{"row-end":oe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",te]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",te]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...q()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...q(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...q(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[A]}],mx:[{mx:[A]}],my:[{my:[A]}],ms:[{ms:[A]}],me:[{me:[A]}],mt:[{mt:[A]}],mr:[{mr:[A]}],mb:[{mb:[A]}],ml:[{ml:[A]}],"space-x":[{"space-x":[M]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[M]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",te,t]}],"min-w":[{"min-w":[te,t,"min","max","fit"]}],"max-w":[{"max-w":[te,t,"none","full","min","max","fit","prose",{screen:[Rt]},Rt]}],h:[{h:[te,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[te,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[te,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[te,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Rt,Tt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Rr]}],"font-family":[{font:[jn]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",te]}],"line-clamp":[{"line-clamp":["none",Jt,Rr]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",pt,te]}],"list-image":[{"list-image":["none",te]}],"list-style-type":[{list:["none","disc","decimal",te]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[P]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[P]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...H(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",pt,Tt]}],"underline-offset":[{"underline-offset":["auto",pt,te]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",te]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[P]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...re(),I0]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",k0]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},L0]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[P]}],"border-style":[{border:[...H(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[P]}],"divide-style":[{divide:H()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...H()]}],"outline-offset":[{"outline-offset":[pt,te]}],"outline-w":[{outline:[pt,Tt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[P]}],"ring-offset-w":[{"ring-offset":[pt,Tt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Rt,M0]}],"shadow-color":[{shadow:[jn]}],opacity:[{opacity:[P]}],"mix-blend":[{"mix-blend":[...X(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":X()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Rt,te]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[m]}],sepia:[{sepia:[_]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[P]}],"backdrop-saturate":[{"backdrop-saturate":[m]}],"backdrop-sepia":[{"backdrop-sepia":[_]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",te]}],duration:[{duration:Ce()}],ease:[{ease:["linear","in","out","in-out",te]}],delay:[{delay:Ce()}],animate:[{animate:["none","spin","ping","pulse","bounce",te]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[v]}],"scale-x":[{"scale-x":[v]}],"scale-y":[{"scale-y":[v]}],rotate:[{rotate:[Hn,te]}],"translate-x":[{"translate-x":[S]}],"translate-y":[{"translate-y":[S]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",te]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",te]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",te]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[pt,Tt,Rr]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}function j0(e,{cacheSize:t,prefix:n,separator:r,extend:o={},override:s={}}){Mr(e,"cacheSize",t),Mr(e,"prefix",n),Mr(e,"separator",r);for(const i in s)F0(e[i],s[i]);for(const i in o)B0(e[i],o[i]);return e}function Mr(e,t,n){n!==void 0&&(e[t]=n)}function F0(e,t){if(t)for(const n in t)Mr(e,n,t[n])}function B0(e,t){if(t)for(const n in t){const r=t[n];r!==void 0&&(e[n]=(e[n]||[]).concat(r))}}function U0(e,...t){return typeof e=="function"?As(Ps,e,...t):As(()=>j0(Ps(),e),...t)}const Kb=As(Ps),D0=U0({extend:{classGroups:{icons:[e=>/^i-/.test(e)]}}}),q0=ui((e,t,n,r)=>{if(r==="default"||r.startsWith("default.")||r==="popper"||r.startsWith("popper.")||r.endsWith("avatar")&&t==="size"||r.endsWith("chip")&&t==="size"||r.endsWith("badge")&&t==="size"||t==="color"||t==="variant")return!1;if(typeof e[t]=="string"&&typeof n=="string"&&e[t]&&n)return e[t]=D0(e[t],n),!0});function zb(e,...t){return e==="override"?fi({},...t):q0({},...t)}function Ga(e){const t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;e=e.replace(t,function(r,o,s,i){return o+o+s+s+i+i});const n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return n?`${parseInt(n[1],16)} ${parseInt(n[2],16)} ${parseInt(n[3],16)}`:null}function Gb(e){const t=parseFloat(e);return isNaN(t)?e:t}const V0="inherit",W0="currentColor",K0="transparent",z0="#000",G0="#fff",J0={50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},Q0={50:"rgb(var(--color-gray-50) / )",100:"rgb(var(--color-gray-100) / )",200:"rgb(var(--color-gray-200) / )",300:"rgb(var(--color-gray-300) / )",400:"rgb(var(--color-gray-400) / )",500:"rgb(var(--color-gray-500) / )",600:"rgb(var(--color-gray-600) / )",700:"rgb(var(--color-gray-700) / )",800:"rgb(var(--color-gray-800) / )",900:"rgb(var(--color-gray-900) / )",950:"rgb(var(--color-gray-950) / )"},X0={50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},Y0={50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},Z0={50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},ey={50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},ty={50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},ny={50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},ry={50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},oy={50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},sy={50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},iy={50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},ay={50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},ly={50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},cy={50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},uy={50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},fy={50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},dy={50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},py={50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},hy={50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},gy={50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},my={50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},yy={50:"#5E7491",100:"#566A85",200:"#46566C",300:"#364254",400:"#262F3B",500:"#161B22",600:"#000000",700:"#000000",800:"#000000",900:"#000000",950:"#000000",DEFAULT:"#161B22"},by="#dc2626",vy={50:"rgb(var(--color-primary-50) / )",100:"rgb(var(--color-primary-100) / )",200:"rgb(var(--color-primary-200) / )",300:"rgb(var(--color-primary-300) / )",400:"rgb(var(--color-primary-400) / )",500:"rgb(var(--color-primary-500) / )",600:"rgb(var(--color-primary-600) / )",700:"rgb(var(--color-primary-700) / )",800:"rgb(var(--color-primary-800) / )",900:"rgb(var(--color-primary-900) / )",950:"rgb(var(--color-primary-950) / )",DEFAULT:"rgb(var(--color-primary-DEFAULT) / )"},_y={50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},Ar={inherit:V0,current:W0,transparent:K0,black:z0,white:G0,slate:J0,gray:Q0,zinc:X0,neutral:Y0,stone:Z0,red:ey,orange:ty,amber:ny,yellow:ry,lime:oy,green:sy,emerald:iy,teal:ay,cyan:ly,sky:cy,blue:uy,indigo:fy,violet:dy,purple:py,fuchsia:hy,pink:gy,rose:my,secondary:yy,error:by,primary:vy,cool:_y,"primary-dark":{50:"#4F688C",100:"#485E7F",200:"#394B65",300:"#2A384B",400:"#1C2431",500:"#0D1117",600:"#000000",700:"#000000",800:"#000000",900:"#000000",950:"#000000",DEFAULT:"#0D1117"},"primary-ui":{400:"#ffffff",DEFAULT:"#0D1117"},"jwt-header":"#ef4444","jwt-payload":"#d946ef","jwt-sign":"#38bdf8"},wy=Ue(()=>{const e=pi(),t=ve(),n=ce(()=>{const o=Ar[e.ui.primary],s=Ar[e.ui.gray];return o||console.warn(`[@nuxt/ui] Primary color '${e.ui.primary}' not found in Tailwind config`),s||console.warn(`[@nuxt/ui] Gray color '${e.ui.gray}' not found in Tailwind config`),`:root { ${Object.entries(o||Ar.green).map(([i,a])=>`--color-primary-${i}: ${Ga(a)};`).join(` `)} --color-primary-DEFAULT: var(--color-primary-500); @@ -37,4 +37,4 @@ ${Object.entries(s||Ar.cool).map(([i,a])=>`--color-gray-${i}: ${Ga(a)};`).join(` } `}),r={style:[{innerHTML:()=>n.value,tagPriority:-2,id:"nuxt-ui-colors"}]};if(t.isHydrating&&!t.payload.serverRendered){const o=document.createElement("style");o.innerHTML=n.value,o.setAttribute("data-nuxt-ui-colors",""),document.head.appendChild(o),r.script=[{innerHTML:"document.head.removeChild(document.querySelector('[data-nuxt-ui-colors]'))"}]}cg(r)}),Ey="__NUXT_COLOR_MODE__",Cy="nuxt-color-mode",ht=window[Ey]||{},Sy=Ue(e=>{const t=Xm("color-mode",()=>Ne({preference:ht.preference,value:ht.value,unknown:!1,forced:!1})).value;ft().afterEach(o=>{const s=o.meta.colorMode;s&&s!=="system"?(t.value=s,t.forced=!0):(s==="system"&&console.warn("You cannot force the colorMode to system at the page level."),t.forced=!1,t.value=t.preference==="system"?ht.getColorScheme():t.preference)});let n;function r(){n||!window.matchMedia||(n=window.matchMedia("(prefers-color-scheme: dark)"),n.addEventListener("change",()=>{!t.forced&&t.preference==="system"&&(t.value=ht.getColorScheme())}))}at(()=>t.preference,o=>{var s;t.forced||(o==="system"?(t.value=ht.getColorScheme(),r()):t.value=o,(s=window.localStorage)==null||s.setItem(Cy,o))},{immediate:!0}),at(()=>t.value,(o,s)=>{ht.removeColorScheme(s),ht.addColorScheme(o)}),t.preference==="system"&&r(),e.hook("app:mounted",()=>{t.unknown&&(t.preference=ht.preference,t.value=ht.value,t.unknown=!1)}),e.provide("colorMode",t)}),xy=Ue({name:"nuxt:chunk-reload",setup(e){const t=ft(),n=ci(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook("app:chunkError",({error:s})=>{r.add(s)});function o(s){const a="href"in s&&s.href[0]==="#"?n.app.baseURL+s.href:ii(n.app.baseURL,s.fullPath);Ym({path:a,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(o)}),t.onError((s,i)=>{r.has(s)&&o(i)})}}),pr={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},Rn={LIGHT:"light",DARK:"dark",COLORED:"colored",AUTO:"auto"},He={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},Ty={BOUNCE:"bounce",SLIDE:"slide",FLIP:"flip",ZOOM:"zoom",NONE:"none"},bu={dangerouslyHTMLString:!1,multiple:!0,position:pr.TOP_RIGHT,autoClose:5e3,transition:"bounce",hideProgressBar:!1,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,className:"",bodyClassName:"",style:{},progressClassName:"",progressStyle:{},role:"alert",theme:"light"},Ry={rtl:!1,newestOnTop:!1,toastClassName:""},vu={...bu,...Ry};({...bu,type:He.DEFAULT});var ae=(e=>(e[e.COLLAPSE_DURATION=300]="COLLAPSE_DURATION",e[e.DEBOUNCE_DURATION=50]="DEBOUNCE_DURATION",e.CSS_NAMESPACE="Toastify",e))(ae||{}),ks=(e=>(e.ENTRANCE_ANIMATION_END="d",e))(ks||{});const Ay={enter:"Toastify--animate Toastify__bounce-enter",exit:"Toastify--animate Toastify__bounce-exit",appendPosition:!0},Py={enter:"Toastify--animate Toastify__slide-enter",exit:"Toastify--animate Toastify__slide-exit",appendPosition:!0},ky={enter:"Toastify--animate Toastify__zoom-enter",exit:"Toastify--animate Toastify__zoom-exit"},Iy={enter:"Toastify--animate Toastify__flip-enter",exit:"Toastify--animate Toastify__flip-exit"},Ja="Toastify--animate Toastify__none-enter";function _u(e,t=!1){var n;let r=Ay;if(!e||typeof e=="string")switch(e){case"flip":r=Iy;break;case"zoom":r=ky;break;case"slide":r=Py;break}else r=e;if(t)r.enter=Ja;else if(r.enter===Ja){const o=(n=r.exit.split("__")[1])==null?void 0:n.split("-")[0];r.enter=`Toastify--animate Toastify__${o}-enter`}return r}function Oy(e){return e.containerId||String(e.position)}const Eo="will-unmount";function Ly(e=pr.TOP_RIGHT){return!!document.querySelector(`.${ae.CSS_NAMESPACE}__toast-container--${e}`)}function My(e=pr.TOP_RIGHT){return`${ae.CSS_NAMESPACE}__toast-container--${e}`}function Ny(e,t,n=!1){const r=[`${ae.CSS_NAMESPACE}__toast-container`,`${ae.CSS_NAMESPACE}__toast-container--${e}`,n?`${ae.CSS_NAMESPACE}__toast-container--rtl`:null].filter(Boolean).join(" ");return wn(t)?t({position:e,rtl:n,defaultClassName:r}):`${r} ${t||""}`}function $y(e){var t;const{position:n,containerClassName:r,rtl:o=!1,style:s={}}=e,i=ae.CSS_NAMESPACE,a=My(n),l=document.querySelector(`.${i}`),u=document.querySelector(`.${a}`),c=!!u&&!((t=u.className)!=null&&t.includes(Eo)),f=l||document.createElement("div"),d=document.createElement("div");d.className=Ny(n,r,o),d.dataset.testid=`${ae.CSS_NAMESPACE}__toast-container--${n}`,d.id=Oy(e);for(const h in s)if(Object.prototype.hasOwnProperty.call(s,h)){const b=s[h];d.style[h]=b}return l||(f.className=ae.CSS_NAMESPACE,document.body.appendChild(f)),c||f.appendChild(d),d}function Is(e){var t,n,r;const o=typeof e=="string"?e:((t=e.currentTarget)==null?void 0:t.id)||((n=e.target)==null?void 0:n.id),s=document.getElementById(o);s&&s.removeEventListener("animationend",Is,!1);try{ir[o].unmount(),(r=document.getElementById(o))==null||r.remove(),delete ir[o],delete Pe[o]}catch{}}const ir=Ne({});function Hy(e,t){const n=document.getElementById(String(t));n&&(ir[n.id]=e)}function Os(e,t=!0){const n=String(e);if(!ir[n])return;const r=document.getElementById(n);r&&r.classList.add(Eo),t?(Fy(e),r&&r.addEventListener("animationend",Is,!1)):Is(n),ut.items=ut.items.filter(o=>o.containerId!==e)}function jy(e){for(const t in ir)Os(t,e);ut.items=[]}function wu(e,t){const n=document.getElementById(e.toastId);if(n){let r=e;r={...r,..._u(r.transition)};const o=r.appendPosition?`${r.exit}--${r.position}`:r.exit;n.className+=` ${o}`,t&&t(n)}}function Fy(e){for(const t in Pe)if(t===e)for(const n of Pe[t]||[])wu(n)}function By(e){const t=An().find(n=>n.toastId===e);return t==null?void 0:t.containerId}function vi(e){return document.getElementById(e)}function Uy(e){const t=vi(e.containerId);return t&&t.classList.contains(Eo)}function Qa(e){var t;const n=jt(e.content)?Z(e.content.props):null;return n??Z((t=e.data)!=null?t:{})}function Dy(e){return e?ut.items.filter(t=>t.containerId===e).length>0:ut.items.length>0}function qy(){if(ut.items.length>0){const e=ut.items.shift();Nr(e==null?void 0:e.toastContent,e==null?void 0:e.toastProps)}}const Pe=Ne({}),ut=Ne({items:[]});function An(){const e=Z(Pe);return Object.values(e).reduce((t,n)=>[...t,...n],[])}function Vy(e){return An().find(t=>t.toastId===e)}function Nr(e,t={}){if(Uy(t)){const n=vi(t.containerId);n&&n.addEventListener("animationend",Ls.bind(null,e,t),!1)}else Ls(e,t)}function Ls(e,t={}){const n=vi(t.containerId);n&&n.removeEventListener("animationend",Ls.bind(null,e,t),!1);const r=Pe[t.containerId]||[],o=r.length>0;if(!o&&!Ly(t.position)){const s=$y(t),i=Cc(cb,t);i.mount(s),Hy(i,s.id)}o&&!t.updateId&&(t.position=r[0].position),yt(()=>{t.updateId?We.update(t):We.add(e,t)})}const We={add(e,t){const{containerId:n=""}=t;n&&(Pe[n]=Pe[n]||[],Pe[n].find(r=>r.toastId===t.toastId)||setTimeout(()=>{var r,o;t.newestOnTop?(r=Pe[n])==null||r.unshift(t):(o=Pe[n])==null||o.push(t),t.onOpen&&t.onOpen(Qa(t))},t.delay||0))},remove(e){if(e){const t=By(e);if(t){const n=Pe[t];let r=n.find(o=>o.toastId===e);Pe[t]=n.filter(o=>o.toastId!==e),!Pe[t].length&&!Dy(t)&&Os(t,!1),qy(),yt(()=>{r!=null&&r.onClose&&(r.onClose(Qa(r)),r=void 0)})}}},update(e={}){const{containerId:t=""}=e;if(t&&e.updateId){Pe[t]=Pe[t]||[];const n=Pe[t].find(s=>s.toastId===e.toastId),r=(n==null?void 0:n.position)!==e.position||(n==null?void 0:n.transition)!==e.transition,o={...e,disabledEnterTransition:!r,updateId:void 0};We.dismissForce(e==null?void 0:e.toastId),setTimeout(()=>{de(o.content,o)},e.delay||0)}},clear(e,t=!0){e?Os(e,t):jy(t)},dismissCallback(e){var t;const n=(t=e.currentTarget)==null?void 0:t.id,r=document.getElementById(n);r&&(r.removeEventListener("animationend",We.dismissCallback,!1),setTimeout(()=>{We.remove(n)}))},dismiss(e){if(e){const t=An();for(const n of t)if(n.toastId===e){wu(n,r=>{r.addEventListener("animationend",We.dismissCallback,!1)});break}}},dismissForce(e){if(e){const t=An();for(const n of t)if(n.toastId===e){const r=document.getElementById(e);r&&(r.remove(),r.removeEventListener("animationend",We.dismissCallback,!1),We.remove(e));break}}}},Eu=Ne({}),eo=Ne({});function Cu(){return Math.random().toString(36).substring(2,9)}function Wy(e){return typeof e=="number"&&!isNaN(e)}function Ms(e){return typeof e=="string"}function wn(e){return typeof e=="function"}function Co(...e){return _t(...e)}function $r(e){return typeof e=="object"&&(!!(e!=null&&e.render)||!!(e!=null&&e.setup)||typeof(e==null?void 0:e.type)=="object")}function Ky(e={}){Eu[`${ae.CSS_NAMESPACE}-default-options`]=e}function zy(){return Eu[`${ae.CSS_NAMESPACE}-default-options`]||vu}function Gy(){return document.documentElement.classList.contains("dark")?"dark":"light"}var Hr=(e=>(e[e.Enter=0]="Enter",e[e.Exit=1]="Exit",e))(Hr||{});const Su={containerId:{type:[String,Number],required:!1,default:""},clearOnUrlChange:{type:Boolean,required:!1,default:!0},disabledEnterTransition:{type:Boolean,required:!1,default:!1},dangerouslyHTMLString:{type:Boolean,required:!1,default:!1},multiple:{type:Boolean,required:!1,default:!0},limit:{type:Number,required:!1,default:void 0},position:{type:String,required:!1,default:pr.TOP_LEFT},bodyClassName:{type:String,required:!1,default:""},autoClose:{type:[Number,Boolean],required:!1,default:!1},closeButton:{type:[Boolean,Function,Object],required:!1,default:void 0},transition:{type:[String,Object],required:!1,default:"bounce"},hideProgressBar:{type:Boolean,required:!1,default:!1},pauseOnHover:{type:Boolean,required:!1,default:!0},pauseOnFocusLoss:{type:Boolean,required:!1,default:!0},closeOnClick:{type:Boolean,required:!1,default:!0},progress:{type:Number,required:!1,default:void 0},progressClassName:{type:String,required:!1,default:""},toastStyle:{type:Object,required:!1,default(){return{}}},progressStyle:{type:Object,required:!1,default(){return{}}},role:{type:String,required:!1,default:"alert"},theme:{type:String,required:!1,default:Rn.AUTO},content:{type:[String,Object,Function],required:!1,default:""},toastId:{type:[String,Number],required:!1,default:""},data:{type:[Object,String],required:!1,default(){return{}}},type:{type:String,required:!1,default:He.DEFAULT},icon:{type:[Boolean,String,Number,Object,Function],required:!1,default:void 0},delay:{type:Number,required:!1,default:void 0},onOpen:{type:Function,required:!1,default:void 0},onClose:{type:Function,required:!1,default:void 0},onClick:{type:Function,required:!1,default:void 0},isLoading:{type:Boolean,required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},toastClassName:{type:String,required:!1,default:""},updateId:{type:[String,Number],required:!1,default:""}},Jy={autoClose:{type:[Number,Boolean],required:!0},isRunning:{type:Boolean,required:!1,default:void 0},type:{type:String,required:!1,default:He.DEFAULT},theme:{type:String,required:!1,default:Rn.AUTO},hide:{type:Boolean,required:!1,default:void 0},className:{type:[String,Function],required:!1,default:""},controlledProgress:{type:Boolean,required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:void 0},isIn:{type:Boolean,required:!1,default:void 0},progress:{type:Number,required:!1,default:void 0},closeToast:{type:Function,required:!1,default:void 0}},Qy=bt({name:"ProgressBar",props:Jy,setup(e,{attrs:t}){const n=Te(),r=ce(()=>e.hide?"true":"false"),o=ce(()=>({...t.style||{},animationDuration:`${e.autoClose===!0?5e3:e.autoClose}ms`,animationPlayState:e.isRunning?"running":"paused",opacity:e.hide||e.autoClose===!1?0:1,transform:e.controlledProgress?`scaleX(${e.progress})`:"none"})),s=ce(()=>[`${ae.CSS_NAMESPACE}__progress-bar`,e.controlledProgress?`${ae.CSS_NAMESPACE}__progress-bar--controlled`:`${ae.CSS_NAMESPACE}__progress-bar--animated`,`${ae.CSS_NAMESPACE}__progress-bar-theme--${e.theme}`,`${ae.CSS_NAMESPACE}__progress-bar--${e.type}`,e.rtl?`${ae.CSS_NAMESPACE}__progress-bar--rtl`:null].filter(Boolean).join(" ")),i=ce(()=>`${s.value} ${(t==null?void 0:t.class)||""}`),a=()=>{n.value&&(n.value.onanimationend=null,n.value.ontransitionend=null)},l=()=>{e.isIn&&e.closeToast&&e.autoClose!==!1&&(e.closeToast(),a())},u=ce(()=>e.controlledProgress?null:l),c=ce(()=>e.controlledProgress?l:null);return Dn(()=>{n.value&&(a(),n.value.onanimationend=u.value,n.value.ontransitionend=c.value)}),()=>ee("div",{ref:n,role:"progressbar","aria-hidden":r.value,"aria-label":"notification timer",class:i.value,style:o.value},null)}}),Xy=bt({name:"CloseButton",inheritAttrs:!1,props:{theme:{type:String,required:!1,default:Rn.AUTO},type:{type:String,required:!1,default:Rn.LIGHT},ariaLabel:{type:String,required:!1,default:"close"},closeToast:{type:Function,required:!1,default:void 0}},setup(e){return()=>ee("button",{class:`${ae.CSS_NAMESPACE}__close-button ${ae.CSS_NAMESPACE}__close-button--${e.theme}`,type:"button",onClick:t=>{t.stopPropagation(),e.closeToast&&e.closeToast(t)},"aria-label":e.ariaLabel},[ee("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},[ee("path",{"fill-rule":"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"},null)])])}}),So=({theme:e,type:t,path:n,...r})=>ee("svg",_t({viewBox:"0 0 24 24",width:"100%",height:"100%",fill:e==="colored"?"currentColor":`var(--toastify-icon-color-${t})`},r),[ee("path",{d:n},null)]);function Yy(e){return ee(So,_t(e,{path:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}),null)}function Zy(e){return ee(So,_t(e,{path:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}),null)}function eb(e){return ee(So,_t(e,{path:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}),null)}function tb(e){return ee(So,_t(e,{path:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}),null)}function nb(){return ee("div",{class:`${ae.CSS_NAMESPACE}__spinner`},null)}const Ns={info:Zy,warning:Yy,success:eb,error:tb,spinner:nb},rb=e=>e in Ns;function ob({theme:e,type:t,isLoading:n,icon:r}){let o;const s={theme:e,type:t};return n?o=Ns.spinner():r===!1?o=void 0:$r(r)?o=Z(r):wn(r)?o=r(s):jt(r)?o=ct(r,s):Ms(r)||Wy(r)?o=r:rb(t)&&(o=Ns[t](s)),o}const sb=()=>{};function ib(e,t,n=ae.COLLAPSE_DURATION){const{scrollHeight:r,style:o}=e,s=n;requestAnimationFrame(()=>{o.minHeight="initial",o.height=r+"px",o.transition=`all ${s}ms`,requestAnimationFrame(()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,s)})})}function ab(e){const t=Te(!1),n=Te(!1),r=Te(!1),o=Te(Hr.Enter),s=Ne({...e,appendPosition:e.appendPosition||!1,collapse:typeof e.collapse>"u"?!0:e.collapse,collapseDuration:e.collapseDuration||ae.COLLAPSE_DURATION}),i=s.done||sb,a=ce(()=>s.appendPosition?`${s.enter}--${s.position}`:s.enter),l=ce(()=>s.appendPosition?`${s.exit}--${s.position}`:s.exit),u=ce(()=>e.pauseOnHover?{onMouseenter:A,onMouseleave:E}:{});function c(){const y=a.value.split(" ");d().addEventListener(ks.ENTRANCE_ANIMATION_END,E,{once:!0});const m=_=>{const C=d();_.target===C&&(C.dispatchEvent(new Event(ks.ENTRANCE_ANIMATION_END)),C.removeEventListener("animationend",m),C.removeEventListener("animationcancel",m),o.value===Hr.Enter&&_.type!=="animationcancel"&&C.classList.remove(...y))},v=()=>{const _=d();_.classList.add(...y),_.addEventListener("animationend",m),_.addEventListener("animationcancel",m)};e.pauseOnFocusLoss&&h(),v()}function f(){if(!d())return;const y=()=>{const v=d();v.removeEventListener("animationend",y),s.collapse?ib(v,i,s.collapseDuration):i()},m=()=>{const v=d();o.value=Hr.Exit,v&&(v.className+=` ${l.value}`,v.addEventListener("animationend",y))};n.value||(r.value?y():setTimeout(m))}function d(){return e.toastRef.value}function h(){document.hasFocus()||A(),window.addEventListener("focus",E),window.addEventListener("blur",A)}function b(){window.removeEventListener("focus",E),window.removeEventListener("blur",A)}function E(){(!e.loading.value||e.isLoading===void 0)&&(t.value=!0)}function A(){t.value=!1}function P(y){y&&(y.stopPropagation(),y.preventDefault()),n.value=!1}return Dn(f),Dn(()=>{const y=An();n.value=y.findIndex(m=>m.toastId===s.toastId)>-1}),Dn(()=>{e.isLoading!==void 0&&(e.loading.value?A():E())}),On(c),ur(()=>{e.pauseOnFocusLoss&&b()}),{isIn:n,isRunning:t,hideToast:P,eventHandlers:u}}const lb=bt({name:"ToastItem",inheritAttrs:!1,props:Su,setup(e){const t=Te(),n=ce(()=>!!e.isLoading),r=ce(()=>e.progress!==void 0&&e.progress!==null),o=ce(()=>ob(e)),s=ce(()=>[`${ae.CSS_NAMESPACE}__toast`,`${ae.CSS_NAMESPACE}__toast-theme--${e.theme}`,`${ae.CSS_NAMESPACE}__toast--${e.type}`,e.rtl?`${ae.CSS_NAMESPACE}__toast--rtl`:void 0,e.toastClassName||""].filter(Boolean).join(" ")),{isRunning:i,isIn:a,hideToast:l,eventHandlers:u}=ab({toastRef:t,loading:n,done:()=>{We.remove(e.toastId)},..._u(e.transition,e.disabledEnterTransition),...e});return()=>ee("div",_t({id:e.toastId,class:s.value,style:e.toastStyle||{},ref:t,"data-testid":`toast-item-${e.toastId}`,onClick:c=>{e.closeOnClick&&l(),e.onClick&&e.onClick(c)}},u.value),[ee("div",{role:e.role,"data-testid":"toast-body",class:`${ae.CSS_NAMESPACE}__toast-body ${e.bodyClassName||""}`},[o.value!=null&&ee("div",{"data-testid":`toast-icon-${e.type}`,class:[`${ae.CSS_NAMESPACE}__toast-icon`,e.isLoading?"":`${ae.CSS_NAMESPACE}--animate-icon ${ae.CSS_NAMESPACE}__zoom-enter`].join(" ")},[$r(o.value)?Ke(Z(o.value),{theme:e.theme,type:e.type}):wn(o.value)?o.value({theme:e.theme,type:e.type}):o.value]),ee("div",{"data-testid":"toast-content"},[$r(e.content)?Ke(Z(e.content),{toastProps:Z(e),closeToast:l,data:e.data}):wn(e.content)?e.content({toastProps:Z(e),closeToast:l,data:e.data}):e.dangerouslyHTMLString?Ke("div",{innerHTML:e.content}):e.content])]),(e.closeButton===void 0||e.closeButton===!0)&&ee(Xy,{theme:e.theme,closeToast:c=>{c.stopPropagation(),c.preventDefault(),l()}},null),$r(e.closeButton)?Ke(Z(e.closeButton),{closeToast:l,type:e.type,theme:e.theme}):wn(e.closeButton)?e.closeButton({closeToast:l,type:e.type,theme:e.theme}):null,ee(Qy,{className:e.progressClassName,style:e.progressStyle,rtl:e.rtl,theme:e.theme,isIn:a.value,type:e.type,hide:e.hideProgressBar,isRunning:i.value,autoClose:e.autoClose,controlledProgress:r.value,progress:e.progress,closeToast:e.isLoading?void 0:l},null)])}});let Qn=0;function xu(){typeof window>"u"||(Qn&&window.cancelAnimationFrame(Qn),Qn=window.requestAnimationFrame(xu),eo.lastUrl!==window.location.href&&(eo.lastUrl=window.location.href,We.clear()))}const cb=bt({name:"ToastifyContainer",inheritAttrs:!1,props:Su,setup(e){const t=ce(()=>e.containerId),n=ce(()=>Pe[t.value]||[]),r=ce(()=>n.value.filter(o=>o.position===e.position));return On(()=>{typeof window<"u"&&e.clearOnUrlChange&&window.requestAnimationFrame(xu)}),ur(()=>{typeof window<"u"&&Qn&&(window.cancelAnimationFrame(Qn),eo.lastUrl="")}),()=>ee(Oe,null,[r.value.map(o=>{const{toastId:s=""}=o;return ee(lb,_t({key:s},o),null)})])}});let Vo=!1;function Tu(){const e=[];return An().forEach(t=>{const n=document.getElementById(t.containerId);n&&!n.classList.contains(Eo)&&e.push(t)}),e}function ub(e){const t=Tu().length,n=e??0;return n>0&&t+ut.items.length>=n}function fb(e){ub(e.limit)&&!e.updateId&&ut.items.push({toastId:e.toastId,containerId:e.containerId,toastContent:e.content,toastProps:e})}function Ut(e,t,n={}){if(Vo)return;n=Co(zy(),{type:t},Z(n)),(!n.toastId||typeof n.toastId!="string"&&typeof n.toastId!="number")&&(n.toastId=Cu()),n={...n,content:e,containerId:n.containerId||String(n.position)};const r=Number(n==null?void 0:n.progress);return r<0&&(n.progress=0),r>1&&(n.progress=1),n.theme==="auto"&&(n.theme=Gy()),fb(n),eo.lastUrl=window.location.href,n.multiple?ut.items.length?n.updateId&&Nr(e,n):Nr(e,n):(Vo=!0,de.clearAll(void 0,!1),setTimeout(()=>{Nr(e,n)},0),setTimeout(()=>{Vo=!1},390)),n.toastId}const de=(e,t)=>Ut(e,He.DEFAULT,t);de.info=(e,t)=>Ut(e,He.DEFAULT,{...t,type:He.INFO});de.error=(e,t)=>Ut(e,He.DEFAULT,{...t,type:He.ERROR});de.warning=(e,t)=>Ut(e,He.DEFAULT,{...t,type:He.WARNING});de.warn=de.warning;de.success=(e,t)=>Ut(e,He.DEFAULT,{...t,type:He.SUCCESS});de.loading=(e,t)=>Ut(e,He.DEFAULT,Co(t,{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1}));de.dark=(e,t)=>Ut(e,He.DEFAULT,Co(t,{theme:Rn.DARK}));de.remove=e=>{e?We.dismiss(e):We.clear()};de.clearAll=(e,t)=>{yt(()=>{We.clear(e,t)})};de.isActive=e=>{let t=!1;return t=Tu().findIndex(n=>n.toastId===e)>-1,t};de.update=(e,t={})=>{setTimeout(()=>{const n=Vy(e);if(n){const r=Z(n),{content:o}=r,s={...r,...t,toastId:t.toastId||e,updateId:Cu()},i=s.render||o;delete s.render,Ut(i,s.type,s)}},0)};de.done=e=>{de.update(e,{isLoading:!1,progress:1})};de.promise=db;function db(e,{pending:t,error:n,success:r},o){var s,i,a;let l;const u={...o||{},autoClose:!1};t&&(l=Ms(t)?de.loading(t,u):de.loading(t.render,{...u,...t}));const c={autoClose:(s=o==null?void 0:o.autoClose)!=null?s:!0,closeOnClick:(i=o==null?void 0:o.closeOnClick)!=null?i:!0,closeButton:(a=o==null?void 0:o.autoClose)!=null?a:null,isLoading:void 0,draggable:null,delay:100},f=(h,b,E)=>{if(b==null){de.remove(l);return}const A={type:h,...c,...o,data:E},P=Ms(b)?{render:b}:b;return l?de.update(l,{...A,...P,isLoading:!1}):de(P.render,{...A,...P,isLoading:!1}),E},d=wn(e)?e():e;return d.then(h=>{f("success",r,h)}).catch(h=>{f("error",n,h)}),d}de.POSITION=pr;de.THEME=Rn;de.TYPE=He;de.TRANSITIONS=Ty;const Ru={install(e,t={}){pb(t)}};typeof window<"u"&&(window.Vue3Toastify=Ru);function pb(e={}){const t=Co(vu,e);Ky(t)}const hb=Ue(e=>{e.vueApp.use(Ru)}),gb=[Eg,Sg,Bm,Um,Dm,Zm,r0,o0,i0,l0,wy,Sy,xy,hb],mb=bt({props:{vnode:{type:Object,required:!0},route:{type:Object,required:!0},vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(e){const t=e.renderKey,n=e.route,r={};for(const o in e.route)Object.defineProperty(r,o,{get:()=>t===e.renderKey?e.route[o]:n[o]});return bn(yo,lr(r)),()=>Ke(e.vnode,{ref:e.vnodeRef})}}),yb=bt({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,expose:n}){const r=ve(),o=Te(),s=Fe(yo,null);let i;n({pageRef:o});const a=Fe(yh,null);let l;const u=r.deferHydration();if(r.isHydrating){const c=r.hooks.hookOnce("app:error",u);ft().beforeEach(c)}return e.pageKey&&at(()=>e.pageKey,(c,f)=>{c!==f&&r.callHook("page:loading:start")}),()=>Ke(au,{name:e.name,route:e.route,...t},{default:c=>{const f=vb(s,c.route,c.Component),d=s&&s.matched.length===c.route.matched.length;if(!c.Component){if(l&&!d)return l;u();return}if(l&&a&&!a.isCurrent(c.route))return l;if(f&&s&&(!a||a!=null&&a.isCurrent(s)))return d?l:null;const h=Ss(c,e.pageKey);!r.isHydrating&&!_b(s,c.route,c.Component)&&i===h&&r.callHook("page:loading:end"),i=h;const b=!!(e.transition??c.route.meta.pageTransition??_s),E=b&&bb([e.transition,c.route.meta.pageTransition,_s,{onAfterLeave:()=>{r.callHook("page:transition:finish",c.Component)}}].filter(Boolean)),A=e.keepalive??c.route.meta.keepalive??hg;return l=Om(ri,b&&E,Am(A,Ke(Hl,{suspensible:!0,onPending:()=>r.callHook("page:start",c.Component),onResolve:()=>{yt(()=>r.callHook("page:finish",c.Component).then(()=>r.callHook("page:loading:end")).finally(u))}},{default:()=>{const P=Ke(mb,{key:h||void 0,vnode:c.Component,route:c.route,renderKey:h||void 0,trackRootNodes:b,vnodeRef:o});return A&&(P.type.name=c.Component.type.name||c.Component.type.__name||"RouteProvider"),P}}))).default(),l}})}});function bb(e){const t=e.map(n=>({...n,onAfterLeave:n.onAfterLeave?yi(n.onAfterLeave):void 0}));return fi(...t)}function vb(e,t,n){if(!e)return!1;const r=t.matched.findIndex(o=>{var s;return((s=o.components)==null?void 0:s.default)===(n==null?void 0:n.type)});return!r||r===-1?!1:t.matched.slice(0,r).some((o,s)=>{var i,a,l;return((i=o.components)==null?void 0:i.default)!==((l=(a=e.matched[s])==null?void 0:a.components)==null?void 0:l.default)})||n&&Ss({route:t,Component:n})!==Ss({route:e,Component:n})}function _b(e,t,n){return e?t.matched.findIndex(o=>{var s;return((s=o.components)==null?void 0:s.default)===(n==null?void 0:n.type)}){const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},Eb={};function Cb(e,t){const n=yb;return it(),gd("div",null,[ee(n)])}const Sb=wb(Eb,[["render",Cb]]),xb={__name:"nuxt-error-page",props:{error:Object},setup(e){const n=e.error;n.stack&&n.stack.split(` `).splice(1).map(f=>({text:f.replace("webpack:/","").replace(".vue",".js").trim(),internal:f.includes("node_modules")&&!f.includes(".cache")||f.includes("internal")||f.includes("new Promise")})).map(f=>`${f.text}`).join(` -`);const r=Number(n.statusCode||500),o=r===404,s=n.statusMessage??(o?"Page Not Found":"Internal Server Error"),i=n.message||n.toString(),a=void 0,c=o?qr(()=>sr(()=>import("./DgK7STBN.js"),__vite__mapDeps([6,7]),import.meta.url).then(f=>f.default||f)):qr(()=>sr(()=>import("./RN4l9m0U.js"),__vite__mapDeps([8,9]),import.meta.url).then(f=>f.default||f));return(f,d)=>(it(),Mt(ye(c),ju(pc({statusCode:ye(r),statusMessage:ye(s),description:ye(i),stack:ye(a)})),null,16))}},Xa={__name:"nuxt-root",setup(e){const t=()=>null,n=ve(),r=n.deferHydration();if(n.isHydrating){const a=n.hooks.hookOnce("app:error",r);ft().beforeEach(a)}const o=!1;bn(yo,jc()),n.hooks.callHookWith(a=>a.map(l=>l()),"vue:setup");const s=bo();zl((a,l,u)=>{if(n.hooks.callHook("vue:error",a,l,u).catch(c=>console.error("[nuxt] Error in `vue:error` hook",c)),_h(a)&&(a.fatal||a.unhandled))return n.runWithContext(()=>un(a)),!1});const i=!1;return(a,l)=>(it(),Mt(Hl,{onResolve:ye(r)},{default:Ol(()=>[ye(s)?(it(),Mt(ye(xb),{key:0,error:ye(s)},null,8,["error"])):ye(i)?(it(),Mt(ye(t),{key:1,context:ye(i)},null,8,["context"])):ye(o)?(it(),Mt(Tf(ye(o)),{key:2})):(it(),Mt(ye(Sb),{key:3}))]),_:1},8,["onResolve"]))}};let Ya;{let e;Ya=async function(){var i,a;if(e)return e;const r=!!((i=window.__NUXT__)!=null&&i.serverRendered||((a=document.getElementById("__NUXT_DATA__"))==null?void 0:a.dataset.ssr)==="true")?Yd(Xa):Cc(Xa),o=oh({vueApp:r});async function s(l){await o.callHook("app:error",l),o.payload.error=o.payload.error||vo(l)}r.config.errorHandler=s;try{await ih(o,gb)}catch(l){s(l)}try{await o.hooks.callHook("app:created",r),await o.hooks.callHook("app:beforeMount",r),r.mount(gg),await o.hooks.callHook("app:mounted",r),await yt()}catch(l){s(l)}return r.config.errorHandler===s&&(r.config.errorHandler=void 0),r},e=Ya().catch(t=>{throw console.error("Error while mounting app:",t),t})}export{jb as $,ee as A,Ol as B,hc as C,Pb as D,kb as E,Fe as F,nn as G,ye as H,_e as I,en as J,Dn as K,Ic as L,Hb as M,pi as N,Mt as O,so as P,Nb as Q,Ab as R,zb as S,pg as T,Tl as U,Kb as V,_0 as W,at as X,_t as Y,Tf as Z,wb as _,lu as a,Mb as a0,Rb as a1,qu as a2,ur as a3,bn as a4,ct as a5,Oe as a6,Ne as a7,yt as a8,Z as a9,fi as aa,Lb as ab,ri as ac,oo as ad,Xm as ae,Wb as af,Gb as ag,Ob as ah,Ub as ai,Bb as aj,de as ak,$b as al,Fb as am,Va as b,ce as c,bt as d,ho as e,Vb as f,Ke as g,rn as h,Ib as i,ii as j,gp as k,ci as l,ve as m,qb as n,On as o,mo as p,Db as q,Te as r,si as s,cg as t,ft as u,it as v,fs as w,gd as x,dc as y,Tb as z}; +`);const r=Number(n.statusCode||500),o=r===404,s=n.statusMessage??(o?"Page Not Found":"Internal Server Error"),i=n.message||n.toString(),a=void 0,c=o?qr(()=>sr(()=>import("./4vY3FX29.js"),__vite__mapDeps([6,7]),import.meta.url).then(f=>f.default||f)):qr(()=>sr(()=>import("./BsD2QxVV.js"),__vite__mapDeps([8,9]),import.meta.url).then(f=>f.default||f));return(f,d)=>(it(),Mt(ye(c),ju(pc({statusCode:ye(r),statusMessage:ye(s),description:ye(i),stack:ye(a)})),null,16))}},Xa={__name:"nuxt-root",setup(e){const t=()=>null,n=ve(),r=n.deferHydration();if(n.isHydrating){const a=n.hooks.hookOnce("app:error",r);ft().beforeEach(a)}const o=!1;bn(yo,jc()),n.hooks.callHookWith(a=>a.map(l=>l()),"vue:setup");const s=bo();zl((a,l,u)=>{if(n.hooks.callHook("vue:error",a,l,u).catch(c=>console.error("[nuxt] Error in `vue:error` hook",c)),_h(a)&&(a.fatal||a.unhandled))return n.runWithContext(()=>un(a)),!1});const i=!1;return(a,l)=>(it(),Mt(Hl,{onResolve:ye(r)},{default:Ol(()=>[ye(s)?(it(),Mt(ye(xb),{key:0,error:ye(s)},null,8,["error"])):ye(i)?(it(),Mt(ye(t),{key:1,context:ye(i)},null,8,["context"])):ye(o)?(it(),Mt(Tf(ye(o)),{key:2})):(it(),Mt(ye(Sb),{key:3}))]),_:1},8,["onResolve"]))}};let Ya;{let e;Ya=async function(){var i,a;if(e)return e;const r=!!((i=window.__NUXT__)!=null&&i.serverRendered||((a=document.getElementById("__NUXT_DATA__"))==null?void 0:a.dataset.ssr)==="true")?Yd(Xa):Cc(Xa),o=oh({vueApp:r});async function s(l){await o.callHook("app:error",l),o.payload.error=o.payload.error||vo(l)}r.config.errorHandler=s;try{await ih(o,gb)}catch(l){s(l)}try{await o.hooks.callHook("app:created",r),await o.hooks.callHook("app:beforeMount",r),r.mount(gg),await o.hooks.callHook("app:mounted",r),await yt()}catch(l){s(l)}return r.config.errorHandler===s&&(r.config.errorHandler=void 0),r},e=Ya().catch(t=>{throw console.error("Error while mounting app:",t),t})}export{jb as $,ee as A,Ol as B,hc as C,Pb as D,kb as E,Fe as F,nn as G,ye as H,_e as I,en as J,Dn as K,Ic as L,Hb as M,pi as N,Mt as O,so as P,Nb as Q,Ab as R,zb as S,pg as T,Tl as U,Kb as V,_0 as W,at as X,_t as Y,Tf as Z,wb as _,lu as a,Mb as a0,Rb as a1,qu as a2,ur as a3,bn as a4,ct as a5,Oe as a6,Ne as a7,yt as a8,Z as a9,fi as aa,Lb as ab,ri as ac,oo as ad,Xm as ae,Wb as af,Gb as ag,Ob as ah,Ub as ai,Bb as aj,de as ak,$b as al,Fb as am,Va as b,ce as c,bt as d,ho as e,Vb as f,Ke as g,rn as h,Ib as i,ii as j,gp as k,ci as l,ve as m,qb as n,On as o,mo as p,Db as q,Te as r,si as s,cg as t,ft as u,it as v,fs as w,gd as x,dc as y,Tb as z}; diff --git a/assets/Dbnj5q1_.js b/assets/Citt7cBG.js similarity index 87% rename from assets/Dbnj5q1_.js rename to assets/Citt7cBG.js index 671085a..efdeb52 100644 --- a/assets/Dbnj5q1_.js +++ b/assets/Citt7cBG.js @@ -1 +1 @@ -import{d as m,am as f,N as I,c as r,v as d,x,ad as v,_}from"./Bsabt5YL.js";import{r as S}from"./CAZilBRX.js";const y=m({__name:"IconCSS",props:{name:{type:String,required:!0},size:{type:String,default:""}},setup(u){f(e=>({"51392f73":p.value}));const t=I(),s=u,l=r(()=>{var e,n;return(n=(e=t.nuxtIcon)==null?void 0:e.aliases)!=null&&n[s.name]?t.nuxtIcon.aliases[s.name]:s.name}),c=r(()=>S(l.value)),p=r(()=>{var o,a;const e=(a=(o=t.nuxtIcon)==null?void 0:o.iconifyApiOptions)==null?void 0:a.url;if(e)try{new URL(e)}catch{console.warn("Nuxt IconCSS: Invalid custom Iconify API URL");return}return`url('${e||"https://api.iconify.design"}/${c.value.prefix}/${c.value.name}.svg')`}),i=r(()=>{var n,o,a;if(!s.size&&typeof((n=t.nuxtIcon)==null?void 0:n.size)=="boolean"&&!((o=t.nuxtIcon)!=null&&o.size))return;const e=s.size||((a=t.nuxtIcon)==null?void 0:a.size)||"1em";return String(Number(e))===e?`${e}px`:e});return(e,n)=>(d(),x("span",{style:v({width:i.value,height:i.value})},null,4))}}),h=_(y,[["__scopeId","data-v-51e6c86a"]]);export{h as default}; +import{d as m,am as f,N as I,c as r,v as d,x,ad as v,_}from"./CdskMUEL.js";import{r as S}from"./CAZilBRX.js";const y=m({__name:"IconCSS",props:{name:{type:String,required:!0},size:{type:String,default:""}},setup(u){f(e=>({"51392f73":p.value}));const t=I(),s=u,l=r(()=>{var e,n;return(n=(e=t.nuxtIcon)==null?void 0:e.aliases)!=null&&n[s.name]?t.nuxtIcon.aliases[s.name]:s.name}),c=r(()=>S(l.value)),p=r(()=>{var o,a;const e=(a=(o=t.nuxtIcon)==null?void 0:o.iconifyApiOptions)==null?void 0:a.url;if(e)try{new URL(e)}catch{console.warn("Nuxt IconCSS: Invalid custom Iconify API URL");return}return`url('${e||"https://api.iconify.design"}/${c.value.prefix}/${c.value.name}.svg')`}),i=r(()=>{var n,o,a;if(!s.size&&typeof((n=t.nuxtIcon)==null?void 0:n.size)=="boolean"&&!((o=t.nuxtIcon)!=null&&o.size))return;const e=s.size||((a=t.nuxtIcon)==null?void 0:a.size)||"1em";return String(Number(e))===e?`${e}px`:e});return(e,n)=>(d(),x("span",{style:v({width:i.value,height:i.value})},null,4))}}),h=_(y,[["__scopeId","data-v-51e6c86a"]]);export{h as default}; diff --git a/assets/tIISvBlV.js b/assets/ZYpizJza.js similarity index 79% rename from assets/tIISvBlV.js rename to assets/ZYpizJza.js index a864cd1..3700eb9 100644 --- a/assets/tIISvBlV.js +++ b/assets/ZYpizJza.js @@ -1,4 +1,4 @@ -import{F as At,m as qf,G as Vo,H as Z,I as Ma,r as re,J as Ko,K as It,c as K,L as Hf,_ as On,v as G,x as oe,M as Vf,d as _e,N as Wo,O as bt,P as ce,Q as Kf,R as Ui,S as Bn,T as st,U as Vr,V as Hn,W as Ft,X as Xe,Y as _n,Z as jr,z as pr,$ as Je,a0 as zt,a1 as ho,a2 as Wf,a3 as ti,a4 as sn,o as Ot,a5 as Jo,g as Rr,a6 as fn,a7 as ln,a8 as rt,a9 as We,aa as Yo,i as Jf,B as Fr,A as Be,y as ne,ab as Yf,ac as Xf,ad as Gf,C as Jr,ae as Xo,af as Zf,ag as Qf,ah as Go,ai as el,aj as tl,ak as Vn,al as qi}from"./Bsabt5YL.js";import rl from"./DIgTqSKF.js";import"./CAZilBRX.js";const nl=Symbol.for("nuxt:client-only"),il="data-n-ids",al="-";function ol(t){var i,a,s,o,h,b;if(typeof t!="string")throw new TypeError("[nuxt] [useId] key must be a string.");t=`n${t.slice(1)}`;const e=qf(),r=Vo();if(!r)throw new TypeError("[nuxt] `useId` must be called within a component setup function.");e._id||(e._id=0),r._nuxtIdIndex||(r._nuxtIdIndex={}),(i=r._nuxtIdIndex)[t]||(i[t]=0);const n=t+al+r._nuxtIdIndex[t]++;if(e.payload.serverRendered&&e.isHydrating&&!At(nl,!1)){const p=((a=r.vnode.el)==null?void 0:a.nodeType)===8&&((o=(s=r.vnode.el)==null?void 0:s.nextElementSibling)!=null&&o.getAttribute)?(h=r.vnode.el)==null?void 0:h.nextElementSibling:r.vnode.el,y=JSON.parse(((b=p==null?void 0:p.getAttribute)==null?void 0:b.call(p,il))||"{}");if(y[n])return y[n]}return t+"_"+e._id++}function la(t){return typeof t=="function"?t():Z(t)}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ua=()=>{};function sl(t,e){function r(...n){return new Promise((i,a)=>{Promise.resolve(t(()=>e.apply(this,n),{fn:e,thisArg:this,args:n})).then(i).catch(a)})}return r}function fl(t,e={}){let r,n,i=ua;const a=o=>{clearTimeout(o),i(),i=ua};return o=>{const h=la(t),b=la(e.maxWait);return r&&a(r),h<=0||b!==void 0&&b<=0?(n&&(a(n),n=null),Promise.resolve(o())):new Promise((p,y)=>{i=e.rejectOnCancel?y:p,b&&!n&&(n=setTimeout(()=>{r&&a(r),n=null,p(o())},b)),r=setTimeout(()=>{n&&a(n),n=null,p(o())},h)})}}function Zo(t,e=200,r={}){return sl(fl(e,r),t)}function ll(t,e,r){let n;Ma(r)?n={evaluating:r}:n=r||{};const{lazy:i=!1,evaluating:a=void 0,shallow:s=!0,onError:o=ua}=n,h=re(!i),b=s?Ko(e):re(e);let p=0;return It(async y=>{if(!h.value)return;p++;const E=p;let O=!1;a&&Promise.resolve().then(()=>{a.value=!0});try{const B=await t(T=>{y(()=>{a&&(a.value=!1),O||T()})});E===p&&(b.value=B)}catch(B){o(B)}finally{a&&E===p&&(a.value=!1),O=!0}}),i?K(()=>(h.value=!0,b.value)):b}function po(t){var e;const r=la(t);return(e=r==null?void 0:r.$el)!=null?e:r}function ul(t,e){const r={...t};for(const n of e)delete r[n];return r}function Qo(t,e,r){typeof e=="string"&&(e=e.split(".").map(i=>{const a=Number(i);return isNaN(a)?i:a}));let n=t;for(const i of e){if(n==null)return r;n=n[i]}return n!==void 0?n:r}const cl=Hf("/images/logo-2.png"),dl={},hl={class:"w-full bg-secondary fixed text-2xl font-bold py-1 top-0 z-50 flex items-center justify-between px-8 border-b border-gray-700"},pl=Vf('',3),bl=[pl];function vl(t,e){return G(),oe("header",hl,bl)}const ml=On(dl,[["render",vl]]),yl=_e({props:{name:{type:String,required:!0},dynamic:{type:Boolean,default:!1}},setup(t){const e=Wo();return{dynamic:K(()=>{var n,i;return t.dynamic||((i=(n=e.ui)==null?void 0:n.icons)==null?void 0:i.dynamic)})}}});function gl(t,e,r,n,i,a){const s=rl;return t.dynamic?(G(),bt(s,{key:0,name:t.name},null,8,["name"])):(G(),oe("span",{key:1,class:ce(t.name)},null,2))}const ri=On(yl,[["render",gl]]),Kn=(t,e,r,n,i=!1)=>{const a=Kf(),s=Wo(),o=K(()=>{var E;const b=Ui(e),p=Ui(r),y=Ui(n);return Bn((b==null?void 0:b.strategy)||((E=s.ui)==null?void 0:E.strategy),y?{wrapper:y}:{},b||{},i?Qo(s.ui,t,{}):{},p||{})}),h=K(()=>ul(a,["class"]));return{ui:o,attrs:h}},xl={wrapper:"relative inline-flex items-center justify-center flex-shrink-0",background:"bg-gray-100 dark:bg-gray-800",rounded:"rounded-full",text:"font-medium leading-none text-gray-900 dark:text-white truncate",placeholder:"font-medium leading-none text-gray-500 dark:text-gray-400 truncate",size:{"3xs":"h-4 w-4 text-[8px]","2xs":"h-5 w-5 text-[10px]",xs:"h-6 w-6 text-xs",sm:"h-8 w-8 text-sm",md:"h-10 w-10 text-base",lg:"h-12 w-12 text-lg",xl:"h-14 w-14 text-xl","2xl":"h-16 w-16 text-2xl","3xl":"h-20 w-20 text-3xl"},chip:{base:"absolute rounded-full ring-1 ring-white dark:ring-gray-900 flex items-center justify-center text-white dark:text-gray-900 font-medium",background:"bg-{color}-500 dark:bg-{color}-400",position:{"top-right":"top-0 right-0","bottom-right":"bottom-0 right-0","top-left":"top-0 left-0","bottom-left":"bottom-0 left-0"},size:{"3xs":"h-[4px] min-w-[4px] text-[4px] p-px","2xs":"h-[5px] min-w-[5px] text-[5px] p-px",xs:"h-1.5 min-w-[0.375rem] text-[6px] p-px",sm:"h-2 min-w-[0.5rem] text-[7px] p-0.5",md:"h-2.5 min-w-[0.625rem] text-[8px] p-0.5",lg:"h-3 min-w-[0.75rem] text-[10px] p-0.5",xl:"h-3.5 min-w-[0.875rem] text-[11px] p-1","2xl":"h-4 min-w-[1rem] text-[12px] p-1","3xl":"h-5 min-w-[1.25rem] text-[14px] p-1"}},icon:{base:"text-gray-500 dark:text-gray-400 flex-shrink-0",size:{"3xs":"h-2 w-2","2xs":"h-2.5 w-2.5",xs:"h-3 w-3",sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6",xl:"h-7 w-7","2xl":"h-8 w-8","3xl":"h-10 w-10"}},default:{size:"sm",icon:null,chipColor:null,chipPosition:"top-right"}},es={base:"invisible before:visible before:block before:rotate-45 before:z-[-1] before:w-2 before:h-2",ring:"before:ring-1 before:ring-gray-200 dark:before:ring-gray-800",rounded:"before:rounded-sm",background:"before:bg-gray-200 dark:before:bg-gray-800",shadow:"before:shadow",placement:"group-data-[popper-placement*='right']:-left-1 group-data-[popper-placement*='left']:-right-1 group-data-[popper-placement*='top']:-bottom-1 group-data-[popper-placement*='bottom']:-top-1"},ts={wrapper:"relative",base:"relative block w-full disabled:cursor-not-allowed disabled:opacity-75 focus:outline-none border-0",form:"form-input",rounded:"rounded-md",placeholder:"placeholder-gray-400 dark:placeholder-gray-500",file:{base:"file:mr-1.5 file:font-medium file:text-gray-500 dark:file:text-gray-400 file:bg-transparent file:border-0 file:p-0 file:outline-none"},size:{"2xs":"text-xs",xs:"text-xs",sm:"text-sm",md:"text-sm",lg:"text-sm",xl:"text-base"},gap:{"2xs":"gap-x-1",xs:"gap-x-1.5",sm:"gap-x-1.5",md:"gap-x-2",lg:"gap-x-2.5",xl:"gap-x-2.5"},padding:{"2xs":"px-2 py-1",xs:"px-2.5 py-1.5",sm:"px-2.5 py-1.5",md:"px-3 py-2",lg:"px-3.5 py-2.5",xl:"px-3.5 py-2.5"},leading:{padding:{"2xs":"ps-7",xs:"ps-8",sm:"ps-9",md:"ps-10",lg:"ps-11",xl:"ps-12"}},trailing:{padding:{"2xs":"pe-7",xs:"pe-8",sm:"pe-9",md:"pe-10",lg:"pe-11",xl:"pe-12"}},color:{white:{outline:"shadow-sm bg-white dark:bg-gray-900 text-gray-900 dark:text-white ring-1 ring-inset ring-gray-300 dark:ring-gray-700 focus:ring-2 focus:ring-primary-500 dark:focus:ring-primary-400"},gray:{outline:"shadow-sm bg-gray-50 dark:bg-gray-800 text-gray-900 dark:text-white ring-1 ring-inset ring-gray-300 dark:ring-gray-700 focus:ring-2 focus:ring-primary-500 dark:focus:ring-primary-400"}},variant:{outline:"shadow-sm bg-transparent text-gray-900 dark:text-white ring-1 ring-inset ring-{color}-500 dark:ring-{color}-400 focus:ring-2 focus:ring-{color}-500 dark:focus:ring-{color}-400",none:"bg-transparent focus:ring-0 focus:shadow-none"},icon:{base:"flex-shrink-0 text-gray-400 dark:text-gray-500",color:"text-{color}-500 dark:text-{color}-400",loading:"animate-spin",size:{"2xs":"h-4 w-4",xs:"h-4 w-4",sm:"h-5 w-5",md:"h-5 w-5",lg:"h-5 w-5",xl:"h-6 w-6"},leading:{wrapper:"absolute inset-y-0 start-0 flex items-center",pointer:"pointer-events-none",padding:{"2xs":"px-2",xs:"px-2.5",sm:"px-2.5",md:"px-3",lg:"px-3.5",xl:"px-3.5"}},trailing:{wrapper:"absolute inset-y-0 end-0 flex items-center",pointer:"pointer-events-none",padding:{"2xs":"px-2",xs:"px-2.5",sm:"px-2.5",md:"px-3",lg:"px-3.5",xl:"px-3.5"}}},default:{size:"sm",color:"white",variant:"outline",loadingIcon:"i-heroicons-arrow-path-20-solid"}},bo={container:"z-20 group",trigger:"flex items-center w-full",width:"w-full",height:"max-h-60",base:"relative focus:outline-none overflow-y-auto scroll-py-1",background:"bg-white dark:bg-gray-800",shadow:"shadow-lg",rounded:"rounded-md",padding:"p-1",ring:"ring-1 ring-gray-200 dark:ring-gray-700",empty:"text-sm text-gray-400 dark:text-gray-500 px-2 py-1.5",option:{base:"cursor-default select-none relative flex items-center justify-between gap-1",rounded:"rounded-md",padding:"px-1.5 py-1.5",size:"text-sm",color:"text-gray-900 dark:text-white",container:"flex items-center gap-1.5 min-w-0",active:"bg-gray-100 dark:bg-gray-900",inactive:"",selected:"pe-7",disabled:"cursor-not-allowed opacity-50",empty:"text-sm text-gray-400 dark:text-gray-500 px-2 py-1.5",icon:{base:"flex-shrink-0 h-5 w-5",active:"text-gray-900 dark:text-white",inactive:"text-gray-400 dark:text-gray-500"},selectedIcon:{wrapper:"absolute inset-y-0 end-0 flex items-center",padding:"pe-2",base:"h-5 w-5 text-gray-900 dark:text-white flex-shrink-0"},avatar:{base:"flex-shrink-0",size:"2xs"},chip:{base:"flex-shrink-0 w-2 h-2 mx-1 rounded-full"}},transition:{leaveActiveClass:"transition ease-in duration-100",leaveFromClass:"opacity-100",leaveToClass:"opacity-0"},popper:{placement:"bottom-end"},default:{selectedIcon:"i-heroicons-check-20-solid",trailingIcon:"i-heroicons-chevron-down-20-solid"},arrow:{...es,ring:"before:ring-1 before:ring-gray-200 dark:before:ring-gray-700",background:"before:bg-white dark:before:bg-gray-700"}},wl={...ts,form:"form-textarea",default:{size:"sm",color:"white",variant:"outline"}},Sl={...ts,form:"form-select",placeholder:"text-gray-400 dark:text-gray-500",default:{size:"sm",color:"white",variant:"outline",loadingIcon:"i-heroicons-arrow-path-20-solid",trailingIcon:"i-heroicons-chevron-down-20-solid"}},Ml={...bo,select:"inline-flex items-center text-left cursor-default",input:"block w-[calc(100%+0.5rem)] focus:ring-transparent text-sm px-3 py-1.5 text-gray-700 dark:text-gray-200 bg-white dark:bg-gray-800 border-0 border-b border-gray-200 dark:border-gray-700 sticky -top-1 -mt-1 mb-1 -mx-1 z-10 placeholder-gray-400 dark:placeholder-gray-500 focus:outline-none",required:"absolute inset-0 w-px opacity-0 cursor-default",label:"block truncate",option:{...bo.option,create:"block truncate"},transition:{leaveActiveClass:"transition ease-in duration-100",leaveFromClass:"opacity-100",leaveToClass:"opacity-0"},popper:{placement:"bottom-end"},default:{selectedIcon:"i-heroicons-check-20-solid",clearSearchOnClose:!1,showCreateOptionWhen:"empty"},arrow:{...es,ring:"before:ring-1 before:ring-gray-200 dark:before:ring-gray-700",background:"before:bg-white dark:before:bg-gray-700"}},Mr=Bn(st.ui.strategy,st.ui.avatar,xl),_l=_e({components:{UIcon:ri},inheritAttrs:!1,props:{as:{type:[String,Object],default:"img"},src:{type:[String,Boolean],default:null},alt:{type:String,default:null},text:{type:String,default:null},icon:{type:String,default:()=>Mr.default.icon},size:{type:String,default:()=>Mr.default.size,validator(t){return Object.keys(Mr.size).includes(t)}},chipColor:{type:String,default:()=>Mr.default.chipColor,validator(t){return["gray",...st.ui.colors].includes(t)}},chipPosition:{type:String,default:()=>Mr.default.chipPosition,validator(t){return Object.keys(Mr.chip.position).includes(t)}},chipText:{type:[String,Number],default:null},imgClass:{type:String,default:""},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},setup(t){const{ui:e,attrs:r}=Kn("avatar",Vr(t,"ui"),Mr),n=K(()=>typeof t.src=="boolean"?null:t.src),i=K(()=>(t.alt||"").split(" ").map(y=>y.charAt(0)).join("").substring(0,2)),a=K(()=>Hn(Ft(e.value.wrapper,(b.value||!n.value)&&e.value.background,e.value.rounded,e.value.size[t.size]),t.class)),s=K(()=>Hn(Ft(e.value.rounded,e.value.size[t.size]),t.imgClass)),o=K(()=>Ft(e.value.icon.base,e.value.icon.size[t.size])),h=K(()=>Ft(e.value.chip.base,e.value.chip.size[t.size],e.value.chip.position[t.chipPosition],e.value.chip.background.replaceAll("{color}",t.chipColor))),b=re(!1);Xe(()=>t.src,()=>{b.value&&(b.value=!1)});function p(){b.value=!0}return{ui:e,attrs:r,wrapperClass:a,imgClass:s,iconClass:o,chipClass:h,url:n,placeholder:i,error:b,onError:p}}});function El(t,e,r,n,i,a){const s=ri;return G(),oe("span",{class:ce(t.wrapperClass)},[t.url&&!t.error?(G(),bt(jr(t.as),_n({key:0,class:t.imgClass,alt:t.alt,src:t.url},t.attrs,{onError:t.onError}),null,16,["class","alt","src","onError"])):t.text?(G(),oe("span",{key:1,class:ce(t.ui.text)},pr(t.text),3)):t.icon?(G(),bt(s,{key:2,name:t.icon,class:ce(t.iconClass)},null,8,["name","class"])):t.placeholder?(G(),oe("span",{key:3,class:ce(t.ui.placeholder)},pr(t.placeholder),3)):Je("",!0),t.chipColor?(G(),oe("span",{key:4,class:ce(t.chipClass)},pr(t.chipText),3)):Je("",!0),zt(t.$slots,"default")],2)}const rs=On(_l,[["render",El]]);function yn(t,e,r){let n=r.initialDeps??[],i;return()=>{var a,s,o,h;let b;r.key&&((a=r.debug)!=null&&a.call(r))&&(b=Date.now());const p=t();if(!(p.length!==n.length||p.some((O,B)=>n[B]!==O)))return i;n=p;let E;if(r.key&&((s=r.debug)!=null&&s.call(r))&&(E=Date.now()),i=e(...p),r.key&&((o=r.debug)!=null&&o.call(r))){const O=Math.round((Date.now()-b)*100)/100,B=Math.round((Date.now()-E)*100)/100,T=B/16,L=(D,z)=>{for(D=String(D);D.length{};function sl(t,e){function r(...n){return new Promise((i,a)=>{Promise.resolve(t(()=>e.apply(this,n),{fn:e,thisArg:this,args:n})).then(i).catch(a)})}return r}function fl(t,e={}){let r,n,i=ua;const a=o=>{clearTimeout(o),i(),i=ua};return o=>{const h=la(t),b=la(e.maxWait);return r&&a(r),h<=0||b!==void 0&&b<=0?(n&&(a(n),n=null),Promise.resolve(o())):new Promise((p,y)=>{i=e.rejectOnCancel?y:p,b&&!n&&(n=setTimeout(()=>{r&&a(r),n=null,p(o())},b)),r=setTimeout(()=>{n&&a(n),n=null,p(o())},h)})}}function Zo(t,e=200,r={}){return sl(fl(e,r),t)}function ll(t,e,r){let n;Ma(r)?n={evaluating:r}:n=r||{};const{lazy:i=!1,evaluating:a=void 0,shallow:s=!0,onError:o=ua}=n,h=re(!i),b=s?Ko(e):re(e);let p=0;return It(async y=>{if(!h.value)return;p++;const E=p;let O=!1;a&&Promise.resolve().then(()=>{a.value=!0});try{const B=await t(T=>{y(()=>{a&&(a.value=!1),O||T()})});E===p&&(b.value=B)}catch(B){o(B)}finally{a&&E===p&&(a.value=!1),O=!0}}),i?K(()=>(h.value=!0,b.value)):b}function po(t){var e;const r=la(t);return(e=r==null?void 0:r.$el)!=null?e:r}function ul(t,e){const r={...t};for(const n of e)delete r[n];return r}function Qo(t,e,r){typeof e=="string"&&(e=e.split(".").map(i=>{const a=Number(i);return isNaN(a)?i:a}));let n=t;for(const i of e){if(n==null)return r;n=n[i]}return n!==void 0?n:r}const cl=Hf("/images/logo-2.png"),dl={},hl={class:"w-full bg-secondary fixed text-2xl font-bold py-1 top-0 z-50 flex items-center justify-between px-8 border-b border-gray-700"},pl=Vf('',3),bl=[pl];function vl(t,e){return G(),oe("header",hl,bl)}const ml=On(dl,[["render",vl]]),yl=_e({props:{name:{type:String,required:!0},dynamic:{type:Boolean,default:!1}},setup(t){const e=Wo();return{dynamic:K(()=>{var n,i;return t.dynamic||((i=(n=e.ui)==null?void 0:n.icons)==null?void 0:i.dynamic)})}}});function gl(t,e,r,n,i,a){const s=rl;return t.dynamic?(G(),bt(s,{key:0,name:t.name},null,8,["name"])):(G(),oe("span",{key:1,class:ce(t.name)},null,2))}const ri=On(yl,[["render",gl]]),Kn=(t,e,r,n,i=!1)=>{const a=Kf(),s=Wo(),o=K(()=>{var E;const b=Ui(e),p=Ui(r),y=Ui(n);return Bn((b==null?void 0:b.strategy)||((E=s.ui)==null?void 0:E.strategy),y?{wrapper:y}:{},b||{},i?Qo(s.ui,t,{}):{},p||{})}),h=K(()=>ul(a,["class"]));return{ui:o,attrs:h}},xl={wrapper:"relative inline-flex items-center justify-center flex-shrink-0",background:"bg-gray-100 dark:bg-gray-800",rounded:"rounded-full",text:"font-medium leading-none text-gray-900 dark:text-white truncate",placeholder:"font-medium leading-none text-gray-500 dark:text-gray-400 truncate",size:{"3xs":"h-4 w-4 text-[8px]","2xs":"h-5 w-5 text-[10px]",xs:"h-6 w-6 text-xs",sm:"h-8 w-8 text-sm",md:"h-10 w-10 text-base",lg:"h-12 w-12 text-lg",xl:"h-14 w-14 text-xl","2xl":"h-16 w-16 text-2xl","3xl":"h-20 w-20 text-3xl"},chip:{base:"absolute rounded-full ring-1 ring-white dark:ring-gray-900 flex items-center justify-center text-white dark:text-gray-900 font-medium",background:"bg-{color}-500 dark:bg-{color}-400",position:{"top-right":"top-0 right-0","bottom-right":"bottom-0 right-0","top-left":"top-0 left-0","bottom-left":"bottom-0 left-0"},size:{"3xs":"h-[4px] min-w-[4px] text-[4px] p-px","2xs":"h-[5px] min-w-[5px] text-[5px] p-px",xs:"h-1.5 min-w-[0.375rem] text-[6px] p-px",sm:"h-2 min-w-[0.5rem] text-[7px] p-0.5",md:"h-2.5 min-w-[0.625rem] text-[8px] p-0.5",lg:"h-3 min-w-[0.75rem] text-[10px] p-0.5",xl:"h-3.5 min-w-[0.875rem] text-[11px] p-1","2xl":"h-4 min-w-[1rem] text-[12px] p-1","3xl":"h-5 min-w-[1.25rem] text-[14px] p-1"}},icon:{base:"text-gray-500 dark:text-gray-400 flex-shrink-0",size:{"3xs":"h-2 w-2","2xs":"h-2.5 w-2.5",xs:"h-3 w-3",sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6",xl:"h-7 w-7","2xl":"h-8 w-8","3xl":"h-10 w-10"}},default:{size:"sm",icon:null,chipColor:null,chipPosition:"top-right"}},es={base:"invisible before:visible before:block before:rotate-45 before:z-[-1] before:w-2 before:h-2",ring:"before:ring-1 before:ring-gray-200 dark:before:ring-gray-800",rounded:"before:rounded-sm",background:"before:bg-gray-200 dark:before:bg-gray-800",shadow:"before:shadow",placement:"group-data-[popper-placement*='right']:-left-1 group-data-[popper-placement*='left']:-right-1 group-data-[popper-placement*='top']:-bottom-1 group-data-[popper-placement*='bottom']:-top-1"},ts={wrapper:"relative",base:"relative block w-full disabled:cursor-not-allowed disabled:opacity-75 focus:outline-none border-0",form:"form-input",rounded:"rounded-md",placeholder:"placeholder-gray-400 dark:placeholder-gray-500",file:{base:"file:mr-1.5 file:font-medium file:text-gray-500 dark:file:text-gray-400 file:bg-transparent file:border-0 file:p-0 file:outline-none"},size:{"2xs":"text-xs",xs:"text-xs",sm:"text-sm",md:"text-sm",lg:"text-sm",xl:"text-base"},gap:{"2xs":"gap-x-1",xs:"gap-x-1.5",sm:"gap-x-1.5",md:"gap-x-2",lg:"gap-x-2.5",xl:"gap-x-2.5"},padding:{"2xs":"px-2 py-1",xs:"px-2.5 py-1.5",sm:"px-2.5 py-1.5",md:"px-3 py-2",lg:"px-3.5 py-2.5",xl:"px-3.5 py-2.5"},leading:{padding:{"2xs":"ps-7",xs:"ps-8",sm:"ps-9",md:"ps-10",lg:"ps-11",xl:"ps-12"}},trailing:{padding:{"2xs":"pe-7",xs:"pe-8",sm:"pe-9",md:"pe-10",lg:"pe-11",xl:"pe-12"}},color:{white:{outline:"shadow-sm bg-white dark:bg-gray-900 text-gray-900 dark:text-white ring-1 ring-inset ring-gray-300 dark:ring-gray-700 focus:ring-2 focus:ring-primary-500 dark:focus:ring-primary-400"},gray:{outline:"shadow-sm bg-gray-50 dark:bg-gray-800 text-gray-900 dark:text-white ring-1 ring-inset ring-gray-300 dark:ring-gray-700 focus:ring-2 focus:ring-primary-500 dark:focus:ring-primary-400"}},variant:{outline:"shadow-sm bg-transparent text-gray-900 dark:text-white ring-1 ring-inset ring-{color}-500 dark:ring-{color}-400 focus:ring-2 focus:ring-{color}-500 dark:focus:ring-{color}-400",none:"bg-transparent focus:ring-0 focus:shadow-none"},icon:{base:"flex-shrink-0 text-gray-400 dark:text-gray-500",color:"text-{color}-500 dark:text-{color}-400",loading:"animate-spin",size:{"2xs":"h-4 w-4",xs:"h-4 w-4",sm:"h-5 w-5",md:"h-5 w-5",lg:"h-5 w-5",xl:"h-6 w-6"},leading:{wrapper:"absolute inset-y-0 start-0 flex items-center",pointer:"pointer-events-none",padding:{"2xs":"px-2",xs:"px-2.5",sm:"px-2.5",md:"px-3",lg:"px-3.5",xl:"px-3.5"}},trailing:{wrapper:"absolute inset-y-0 end-0 flex items-center",pointer:"pointer-events-none",padding:{"2xs":"px-2",xs:"px-2.5",sm:"px-2.5",md:"px-3",lg:"px-3.5",xl:"px-3.5"}}},default:{size:"sm",color:"white",variant:"outline",loadingIcon:"i-heroicons-arrow-path-20-solid"}},bo={container:"z-20 group",trigger:"flex items-center w-full",width:"w-full",height:"max-h-60",base:"relative focus:outline-none overflow-y-auto scroll-py-1",background:"bg-white dark:bg-gray-800",shadow:"shadow-lg",rounded:"rounded-md",padding:"p-1",ring:"ring-1 ring-gray-200 dark:ring-gray-700",empty:"text-sm text-gray-400 dark:text-gray-500 px-2 py-1.5",option:{base:"cursor-default select-none relative flex items-center justify-between gap-1",rounded:"rounded-md",padding:"px-1.5 py-1.5",size:"text-sm",color:"text-gray-900 dark:text-white",container:"flex items-center gap-1.5 min-w-0",active:"bg-gray-100 dark:bg-gray-900",inactive:"",selected:"pe-7",disabled:"cursor-not-allowed opacity-50",empty:"text-sm text-gray-400 dark:text-gray-500 px-2 py-1.5",icon:{base:"flex-shrink-0 h-5 w-5",active:"text-gray-900 dark:text-white",inactive:"text-gray-400 dark:text-gray-500"},selectedIcon:{wrapper:"absolute inset-y-0 end-0 flex items-center",padding:"pe-2",base:"h-5 w-5 text-gray-900 dark:text-white flex-shrink-0"},avatar:{base:"flex-shrink-0",size:"2xs"},chip:{base:"flex-shrink-0 w-2 h-2 mx-1 rounded-full"}},transition:{leaveActiveClass:"transition ease-in duration-100",leaveFromClass:"opacity-100",leaveToClass:"opacity-0"},popper:{placement:"bottom-end"},default:{selectedIcon:"i-heroicons-check-20-solid",trailingIcon:"i-heroicons-chevron-down-20-solid"},arrow:{...es,ring:"before:ring-1 before:ring-gray-200 dark:before:ring-gray-700",background:"before:bg-white dark:before:bg-gray-700"}},wl={...ts,form:"form-textarea",default:{size:"sm",color:"white",variant:"outline"}},Sl={...ts,form:"form-select",placeholder:"text-gray-400 dark:text-gray-500",default:{size:"sm",color:"white",variant:"outline",loadingIcon:"i-heroicons-arrow-path-20-solid",trailingIcon:"i-heroicons-chevron-down-20-solid"}},Ml={...bo,select:"inline-flex items-center text-left cursor-default",input:"block w-[calc(100%+0.5rem)] focus:ring-transparent text-sm px-3 py-1.5 text-gray-700 dark:text-gray-200 bg-white dark:bg-gray-800 border-0 border-b border-gray-200 dark:border-gray-700 sticky -top-1 -mt-1 mb-1 -mx-1 z-10 placeholder-gray-400 dark:placeholder-gray-500 focus:outline-none",required:"absolute inset-0 w-px opacity-0 cursor-default",label:"block truncate",option:{...bo.option,create:"block truncate"},transition:{leaveActiveClass:"transition ease-in duration-100",leaveFromClass:"opacity-100",leaveToClass:"opacity-0"},popper:{placement:"bottom-end"},default:{selectedIcon:"i-heroicons-check-20-solid",clearSearchOnClose:!1,showCreateOptionWhen:"empty"},arrow:{...es,ring:"before:ring-1 before:ring-gray-200 dark:before:ring-gray-700",background:"before:bg-white dark:before:bg-gray-700"}},Mr=Bn(st.ui.strategy,st.ui.avatar,xl),_l=_e({components:{UIcon:ri},inheritAttrs:!1,props:{as:{type:[String,Object],default:"img"},src:{type:[String,Boolean],default:null},alt:{type:String,default:null},text:{type:String,default:null},icon:{type:String,default:()=>Mr.default.icon},size:{type:String,default:()=>Mr.default.size,validator(t){return Object.keys(Mr.size).includes(t)}},chipColor:{type:String,default:()=>Mr.default.chipColor,validator(t){return["gray",...st.ui.colors].includes(t)}},chipPosition:{type:String,default:()=>Mr.default.chipPosition,validator(t){return Object.keys(Mr.chip.position).includes(t)}},chipText:{type:[String,Number],default:null},imgClass:{type:String,default:""},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},setup(t){const{ui:e,attrs:r}=Kn("avatar",Vr(t,"ui"),Mr),n=K(()=>typeof t.src=="boolean"?null:t.src),i=K(()=>(t.alt||"").split(" ").map(y=>y.charAt(0)).join("").substring(0,2)),a=K(()=>Hn(Ft(e.value.wrapper,(b.value||!n.value)&&e.value.background,e.value.rounded,e.value.size[t.size]),t.class)),s=K(()=>Hn(Ft(e.value.rounded,e.value.size[t.size]),t.imgClass)),o=K(()=>Ft(e.value.icon.base,e.value.icon.size[t.size])),h=K(()=>Ft(e.value.chip.base,e.value.chip.size[t.size],e.value.chip.position[t.chipPosition],e.value.chip.background.replaceAll("{color}",t.chipColor))),b=re(!1);Xe(()=>t.src,()=>{b.value&&(b.value=!1)});function p(){b.value=!0}return{ui:e,attrs:r,wrapperClass:a,imgClass:s,iconClass:o,chipClass:h,url:n,placeholder:i,error:b,onError:p}}});function El(t,e,r,n,i,a){const s=ri;return G(),oe("span",{class:ce(t.wrapperClass)},[t.url&&!t.error?(G(),bt(jr(t.as),_n({key:0,class:t.imgClass,alt:t.alt,src:t.url},t.attrs,{onError:t.onError}),null,16,["class","alt","src","onError"])):t.text?(G(),oe("span",{key:1,class:ce(t.ui.text)},pr(t.text),3)):t.icon?(G(),bt(s,{key:2,name:t.icon,class:ce(t.iconClass)},null,8,["name","class"])):t.placeholder?(G(),oe("span",{key:3,class:ce(t.ui.placeholder)},pr(t.placeholder),3)):Je("",!0),t.chipColor?(G(),oe("span",{key:4,class:ce(t.chipClass)},pr(t.chipText),3)):Je("",!0),zt(t.$slots,"default")],2)}const rs=On(_l,[["render",El]]);function yn(t,e,r){let n=r.initialDeps??[],i;return()=>{var a,s,o,h;let b;r.key&&((a=r.debug)!=null&&a.call(r))&&(b=Date.now());const p=t();if(!(p.length!==n.length||p.some((O,B)=>n[B]!==O)))return i;n=p;let E;if(r.key&&((s=r.debug)!=null&&s.call(r))&&(E=Date.now()),i=e(...p),r.key&&((o=r.debug)!=null&&o.call(r))){const O=Math.round((Date.now()-b)*100)/100,B=Math.round((Date.now()-E)*100)/100,T=B/16,L=(D,z)=>{for(D=String(D);D.lengthMath.abs(t-e)<1,Il=(t,e,r)=>{let n;return function(...i){t.clearTimeout(n),n=t.setTimeout(()=>e.apply(this,i),r)}},Ol=t=>t,Bl=t=>{const e=Math.max(t.startIndex-t.overscan,0),r=Math.min(t.endIndex+t.overscan,t.count-1),n=[];for(let i=e;i<=r;i++)n.push(i);return n},Cl=(t,e)=>{const r=t.scrollElement;if(!r)return;const n=t.targetWindow;if(!n)return;const i=s=>{const{width:o,height:h}=s;e({width:Math.round(o),height:Math.round(h)})};if(i(r.getBoundingClientRect()),!n.ResizeObserver)return()=>{};const a=new n.ResizeObserver(s=>{const o=s[0];if(o!=null&&o.borderBoxSize){const h=o.borderBoxSize[0];if(h){i({width:h.inlineSize,height:h.blockSize});return}}i(r.getBoundingClientRect())});return a.observe(r,{box:"border-box"}),()=>{a.unobserve(r)}},vo={passive:!0},Rl=typeof window>"u"?!0:"onscrollend"in window,Tl=(t,e)=>{const r=t.scrollElement;if(!r)return;const n=t.targetWindow;if(!n)return;let i=0;const a=Rl?()=>{}:Il(n,()=>{e(i,!1)},t.options.isScrollingResetDelay),s=b=>()=>{i=r[t.options.horizontal?"scrollLeft":"scrollTop"],a(),e(i,b)},o=s(!0),h=s(!1);return h(),r.addEventListener("scroll",o,vo),r.addEventListener("scrollend",h,vo),()=>{r.removeEventListener("scroll",o),r.removeEventListener("scrollend",h)}},Pl=(t,e,r)=>{if(e!=null&&e.borderBoxSize){const n=e.borderBoxSize[0];if(n)return Math.round(n[r.options.horizontal?"inlineSize":"blockSize"])}return Math.round(t.getBoundingClientRect()[r.options.horizontal?"width":"height"])},$l=(t,{adjustments:e=0,behavior:r},n)=>{var i,a;const s=t+e;(a=(i=n.scrollElement)==null?void 0:i.scrollTo)==null||a.call(i,{[n.options.horizontal?"left":"top"]:s,behavior:r})};class kl{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let r=null;const n=()=>r||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:r=new this.targetWindow.ResizeObserver(i=>{i.forEach(a=>{this._measureElement(a.target,a)})}));return{disconnect:()=>{var i;return(i=n())==null?void 0:i.disconnect()},observe:i=>{var a;return(a=n())==null?void 0:a.observe(i,{box:"border-box"})},unobserve:i=>{var a;return(a=n())==null?void 0:a.unobserve(i)}}})(),this.range=null,this.setOptions=r=>{Object.entries(r).forEach(([n,i])=>{typeof i>"u"&&delete r[n]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Ol,rangeExtractor:Bl,onChange:()=>{},measureElement:Pl,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,...r}},this.notify=(r,n)=>{var i,a;const{startIndex:s,endIndex:o}=this.range??{startIndex:void 0,endIndex:void 0},h=this.calculateRange();(r||s!==(h==null?void 0:h.startIndex)||o!==(h==null?void 0:h.endIndex))&&((a=(i=this.options).onChange)==null||a.call(i,this,n))},this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(r=>r()),this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.observer.disconnect(),this.elementsCache.clear()},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var r;const n=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==n){if(this.cleanup(),!n){this.notify(!1,!1);return}this.scrollElement=n,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((r=this.scrollElement)==null?void 0:r.window)??null,this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,i=>{this.scrollRect=i,this.notify(!1,!1)})),this.unsubs.push(this.options.observeElementOffset(this,(i,a)=>{this.scrollAdjustments=0,this.scrollDirection=a?this.getScrollOffset()this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(r,n)=>{const i=new Map,a=new Map;for(let s=n-1;s>=0;s--){const o=r[s];if(i.has(o.lane))continue;const h=a.get(o.lane);if(h==null||o.end>h.end?a.set(o.lane,o):o.ends.end===o.end?s.index-o.index:s.end-o.end)[0]:void 0},this.getMeasurementOptions=yn(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(r,n,i,a,s)=>(this.pendingMeasuredCacheIndexes=[],{count:r,paddingStart:n,scrollMargin:i,getItemKey:a,enabled:s}),{key:!1}),this.getMeasurements=yn(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:r,paddingStart:n,scrollMargin:i,getItemKey:a,enabled:s},o)=>{var h;if(!s)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(y=>{this.itemSizeCache.set(y.key,y.size)}));const b=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const p=this.measurementsCache.slice(0,b);for(let y=b;y{const P=a(y),F=this.elementsCache.get(P);if(!N){F&&(this.observer.unobserve(F),this.elementsCache.delete(P));return}F!==N&&(F&&this.observer.unobserve(F),this.observer.observe(N),this.elementsCache.set(P,N)),N.isConnected&&this.resizeItem(y,this.options.measureElement(N,void 0,this))});const O=a(y),B=this.options.lanes===1?p[y-1]:this.getFurthestMeasurement(p,y),T=B?B.end+this.options.gap:n+i,L=o.get(O),D=typeof L=="number"?L:this.options.estimateSize(y),z=T+D,R=B?B.lane:y%this.options.lanes;p[y]={index:y,start:T,size:D,end:z,key:O,lane:R,measureElement:E}}return this.measurementsCache=p,p},{key:!1,debug:()=>this.options.debug}),this.calculateRange=yn(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(r,n,i)=>this.range=r.length>0&&n>0?Nl({measurements:r,outerSize:n,scrollOffset:i}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=yn(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(r,n,i,a)=>n===null?[]:r({startIndex:n.startIndex,endIndex:n.endIndex,overscan:i,count:a}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=r=>{const n=this.options.indexAttribute,i=r.getAttribute(n);return i?parseInt(i,10):(console.warn(`Missing attribute name '${n}={index}' on measured element.`),-1)},this._measureElement=(r,n)=>{const i=this.indexFromElement(r),a=this.getMeasurements()[i];if(!a||!r.isConnected){this.elementsCache.forEach((o,h)=>{o===r&&(this.observer.unobserve(r),this.elementsCache.delete(h))});return}const s=this.elementsCache.get(a.key);s!==r&&(s&&this.observer.unobserve(s),this.observer.observe(r),this.elementsCache.set(a.key,r)),this.resizeItem(i,this.options.measureElement(r,n,this))},this.resizeItem=(r,n)=>{const i=this.getMeasurements()[r];if(!i)return;const a=this.itemSizeCache.get(i.key)??i.size,s=n-a;s!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(i,s,this):i.start{r&&this._measureElement(r,void 0)},this.getVirtualItems=yn(()=>[this.getIndexes(),this.getMeasurements()],(r,n)=>{const i=[];for(let a=0,s=r.length;athis.options.debug}),this.getVirtualItemForOffset=r=>{const n=this.getMeasurements();if(n.length!==0)return Hi(n[ns(0,n.length-1,i=>Hi(n[i]).start,r)])},this.getOffsetForAlignment=(r,n)=>{const i=this.getSize(),a=this.getScrollOffset();n==="auto"&&(r<=a?n="start":r>=a+i?n="end":n="start"),n==="start"?r=r:n==="end"?r=r-i:n==="center"&&(r=r-i/2);const s=this.options.horizontal?"scrollWidth":"scrollHeight",h=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[s]:this.scrollElement[s]:0)-i;return Math.max(Math.min(h,r),0)},this.getOffsetForIndex=(r,n="auto")=>{r=Math.max(0,Math.min(r,this.options.count-1));const i=this.getMeasurements()[r];if(!i)return;const a=this.getSize(),s=this.getScrollOffset();if(n==="auto")if(i.end>=s+a-this.options.scrollPaddingEnd)n="end";else if(i.start<=s+this.options.scrollPaddingStart)n="start";else return[s,n];const o=n==="end"?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(o,n),n]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(r,{align:n="start",behavior:i}={})=>{this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(r,n),{adjustments:void 0,behavior:i})},this.scrollToIndex=(r,{align:n="auto",behavior:i}={})=>{r=Math.max(0,Math.min(r,this.options.count-1)),this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const a=this.getOffsetForIndex(r,n);if(!a)return;const[s,o]=a;this._scrollToOffset(s,{adjustments:void 0,behavior:i}),i!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(r))){const[b]=Hi(this.getOffsetForIndex(r,o));Al(b,this.getScrollOffset())||this.scrollToIndex(r,{align:o,behavior:i})}else this.scrollToIndex(r,{align:o,behavior:i})}))},this.scrollBy=(r,{behavior:n}={})=>{this.cancelScrollToIndex(),n==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+r,{adjustments:void 0,behavior:n})},this.getTotalSize=()=>{var r;const n=this.getMeasurements();let i;return n.length===0?i=this.options.paddingStart:i=this.options.lanes===1?((r=n[n.length-1])==null?void 0:r.end)??0:Math.max(...n.slice(-this.options.lanes).map(a=>a.end)),i-this.options.scrollMargin+this.options.paddingEnd},this._scrollToOffset=(r,{adjustments:n,behavior:i})=>{this.options.scrollToFn(r,{behavior:i,adjustments:n},this)},this.measure=()=>{var r,n;this.itemSizeCache=new Map,(n=(r=this.options).onChange)==null||n.call(r,this,!1)},this.setOptions(e)}}const ns=(t,e,r,n)=>{for(;t<=e;){const i=(t+e)/2|0,a=r(i);if(an)e=i-1;else return i}return t>0?t-1:0};function Nl({measurements:t,outerSize:e,scrollOffset:r}){const n=t.length-1,a=ns(0,n,o=>t[o].start,r);let s=a;for(;sZ(t).getScrollElement(),i=>{i&&e._willUpdate()},{immediate:!0}),Xe(()=>Z(t),i=>{e.setOptions({...i,onChange:(a,s)=>{var o;ho(r),(o=i.onChange)==null||o.call(i,a,s)}}),e._willUpdate(),ho(r)},{immediate:!0}),Wf(n),r}function zl(t){return Dl(K(()=>({observeElementRect:Cl,observeElementOffset:Tl,scrollToFn:$l,...Z(t)})))}function is(t,e,r){let n=re(r==null?void 0:r.value),i=K(()=>t.value!==void 0);return[K(()=>i.value?t.value:n.value),function(a){return i.value||(n.value=a),e==null?void 0:e(a)}]}function Fl(t){typeof queueMicrotask=="function"?queueMicrotask(t):Promise.resolve().then(t).catch(e=>setTimeout(()=>{throw e}))}function Wn(){let t=[],e={addEventListener(r,n,i,a){return r.addEventListener(n,i,a),e.add(()=>r.removeEventListener(n,i,a))},requestAnimationFrame(...r){let n=requestAnimationFrame(...r);e.add(()=>cancelAnimationFrame(n))},nextFrame(...r){e.requestAnimationFrame(()=>{e.requestAnimationFrame(...r)})},setTimeout(...r){let n=setTimeout(...r);e.add(()=>clearTimeout(n))},microTask(...r){let n={current:!0};return Fl(()=>{n.current&&r[0]()}),e.add(()=>{n.current=!1})},style(r,n,i){let a=r.style.getPropertyValue(n);return Object.assign(r.style,{[n]:i}),this.add(()=>{Object.assign(r.style,{[n]:a})})},group(r){let n=Wn();return r(n),this.add(()=>n.dispose())},add(r){return t.push(r),()=>{let n=t.indexOf(r);if(n>=0)for(let i of t.splice(n,1))i()}},dispose(){for(let r of t.splice(0))r()}};return e}function Ll(){let t=Wn();return ti(()=>t.dispose()),t}function jl(){let t=Ll();return e=>{t.dispose(),t.nextFrame(e)}}let as=Symbol("headlessui.useid"),Ul=0;function Dr(){return At(as,()=>`${++Ul}`)()}function ql(t){sn(as,t)}function ee(t){var e;if(t==null||t.value==null)return null;let r=(e=t.value.$el)!=null?e:t.value;return r instanceof Node?r:null}function Qe(t,e,...r){if(t in e){let i=e[t];return typeof i=="function"?i(...r):i}let n=new Error(`Tried to handle "${t}" but there is no handler defined. Only defined handlers are: ${Object.keys(e).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Qe),n}var Hl=Object.defineProperty,Vl=(t,e,r)=>e in t?Hl(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,mo=(t,e,r)=>(Vl(t,typeof e!="symbol"?e+"":e,r),r);let Kl=class{constructor(){mo(this,"current",this.detect()),mo(this,"currentId",0)}set(e){this.current!==e&&(this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}},_a=new Kl;function Ea(t){if(_a.isServer)return null;if(t instanceof Node)return t.ownerDocument;if(t!=null&&t.hasOwnProperty("value")){let e=ee(t);if(e)return e.ownerDocument}return document}let yo=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(t=>`${t}:not([tabindex='-1'])`).join(",");var Wl=(t=>(t[t.First=1]="First",t[t.Previous=2]="Previous",t[t.Next=4]="Next",t[t.Last=8]="Last",t[t.WrapAround=16]="WrapAround",t[t.NoScroll=32]="NoScroll",t))(Wl||{}),Jl=(t=>(t[t.Error=0]="Error",t[t.Overflow=1]="Overflow",t[t.Success=2]="Success",t[t.Underflow=3]="Underflow",t))(Jl||{}),Yl=(t=>(t[t.Previous=-1]="Previous",t[t.Next=1]="Next",t))(Yl||{}),Aa=(t=>(t[t.Strict=0]="Strict",t[t.Loose=1]="Loose",t))(Aa||{});function os(t,e=0){var r;return t===((r=Ea(t))==null?void 0:r.body)?!1:Qe(e,{0(){return t.matches(yo)},1(){let n=t;for(;n!==null;){if(n.matches(yo))return!0;n=n.parentElement}return!1}})}var Xl=(t=>(t[t.Keyboard=0]="Keyboard",t[t.Mouse=1]="Mouse",t))(Xl||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",t=>{t.metaKey||t.altKey||t.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",t=>{t.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:t.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function ss(t,e=r=>r){return t.slice().sort((r,n)=>{let i=e(r),a=e(n);if(i===null||a===null)return 0;let s=i.compareDocumentPosition(a);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Gl(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Zl(){return/Android/gi.test(window.navigator.userAgent)}function fs(){return Gl()||Zl()}function Dn(t,e,r){_a.isServer||It(n=>{document.addEventListener(t,e,r),n(()=>document.removeEventListener(t,e,r))})}function Ql(t,e,r){_a.isServer||It(n=>{window.addEventListener(t,e,r),n(()=>window.removeEventListener(t,e,r))})}function ls(t,e,r=K(()=>!0)){function n(a,s){if(!r.value||a.defaultPrevented)return;let o=s(a);if(o===null||!o.getRootNode().contains(o))return;let h=function b(p){return typeof p=="function"?b(p()):Array.isArray(p)||p instanceof Set?p:[p]}(t);for(let b of h){if(b===null)continue;let p=b instanceof HTMLElement?b:ee(b);if(p!=null&&p.contains(o)||a.composed&&a.composedPath().includes(p))return}return!os(o,Aa.Loose)&&o.tabIndex!==-1&&a.preventDefault(),e(a,o)}let i=re(null);Dn("pointerdown",a=>{var s,o;r.value&&(i.value=((o=(s=a.composedPath)==null?void 0:s.call(a))==null?void 0:o[0])||a.target)},!0),Dn("mousedown",a=>{var s,o;r.value&&(i.value=((o=(s=a.composedPath)==null?void 0:s.call(a))==null?void 0:o[0])||a.target)},!0),Dn("click",a=>{fs()||i.value&&(n(a,()=>i.value),i.value=null)},!0),Dn("touchend",a=>n(a,()=>a.target instanceof HTMLElement?a.target:null),!0),Ql("blur",a=>n(a,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function go(t,e){if(t)return t;let r=e??"button";if(typeof r=="string"&&r.toLowerCase()==="button")return"button"}function us(t,e){let r=re(go(t.value.type,t.value.as));return Ot(()=>{r.value=go(t.value.type,t.value.as)}),It(()=>{var n;r.value||ee(e)&&ee(e)instanceof HTMLButtonElement&&!((n=ee(e))!=null&&n.hasAttribute("type"))&&(r.value="button")}),r}function xo(t){return[t.screenX,t.screenY]}function cs(){let t=re([-1,-1]);return{wasMoved(e){let r=xo(e);return t.value[0]===r[0]&&t.value[1]===r[1]?!1:(t.value=r,!0)},update(e){t.value=xo(e)}}}function eu({container:t,accept:e,walk:r,enabled:n}){It(()=>{let i=t.value;if(!i||n!==void 0&&!n.value)return;let a=Ea(t);if(!a)return;let s=Object.assign(h=>e(h),{acceptNode:e}),o=a.createTreeWalker(i,NodeFilter.SHOW_ELEMENT,s,!1);for(;o.nextNode();)r(o.currentNode)})}var Tr=(t=>(t[t.None=0]="None",t[t.RenderStrategy=1]="RenderStrategy",t[t.Static=2]="Static",t))(Tr||{}),tu=(t=>(t[t.Unmount=0]="Unmount",t[t.Hidden=1]="Hidden",t))(tu||{});function Xt({visible:t=!0,features:e=0,ourProps:r,theirProps:n,...i}){var a;let s=hs(n,r),o=Object.assign(i,{props:s});if(t||e&2&&s.static)return Vi(o);if(e&1){let h=(a=s.unmount)==null||a?0:1;return Qe(h,{0(){return null},1(){return Vi({...i,props:{...s,hidden:!0,style:{display:"none"}}})}})}return Vi(o)}function Vi({props:t,attrs:e,slots:r,slot:n,name:i}){var a,s;let{as:o,...h}=Cn(t,["unmount","static"]),b=(a=r.default)==null?void 0:a.call(r,n),p={};if(n){let y=!1,E=[];for(let[O,B]of Object.entries(n))typeof B=="boolean"&&(y=!0),B===!0&&E.push(O);y&&(p["data-headlessui-state"]=E.join(" "))}if(o==="template"){if(b=ds(b??[]),Object.keys(h).length>0||Object.keys(e).length>0){let[y,...E]=b??[];if(!ru(y)||E.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${i} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(h).concat(Object.keys(e)).map(T=>T.trim()).filter((T,L,D)=>D.indexOf(T)===L).sort((T,L)=>T.localeCompare(L)).map(T=>` - ${T}`).join(` @@ -9,7 +9,7 @@ import{F as At,m as qf,G as Vo,H as Z,I as Ma,r as re,J as Ko,K as It,c as K,L a * * @author Feross Aboukhadijeh * @license MIT - */(function(t){const e=si,r=Da,n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=o,t.SlowBuffer=z,t.INSPECT_MAX_BYTES=50;const i=2147483647;t.kMaxLength=i,o.TYPED_ARRAY_SUPPORT=a(),!o.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{const v=new Uint8Array(1),l={foo:function(){return 42}};return Object.setPrototypeOf(l,Uint8Array.prototype),Object.setPrototypeOf(v,l),v.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function s(v){if(v>i)throw new RangeError('The value "'+v+'" is invalid for option "size"');const l=new Uint8Array(v);return Object.setPrototypeOf(l,o.prototype),l}function o(v,l,c){if(typeof v=="number"){if(typeof l=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return y(v)}return h(v,l,c)}o.poolSize=8192;function h(v,l,c){if(typeof v=="string")return E(v,l);if(ArrayBuffer.isView(v))return B(v);if(v==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof v);if(le(v,ArrayBuffer)||v&&le(v.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(le(v,SharedArrayBuffer)||v&&le(v.buffer,SharedArrayBuffer)))return T(v,l,c);if(typeof v=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const w=v.valueOf&&v.valueOf();if(w!=null&&w!==v)return o.from(w,l,c);const I=L(v);if(I)return I;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof v[Symbol.toPrimitive]=="function")return o.from(v[Symbol.toPrimitive]("string"),l,c);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof v)}o.from=function(v,l,c){return h(v,l,c)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function b(v){if(typeof v!="number")throw new TypeError('"size" argument must be of type number');if(v<0)throw new RangeError('The value "'+v+'" is invalid for option "size"')}function p(v,l,c){return b(v),v<=0?s(v):l!==void 0?typeof c=="string"?s(v).fill(l,c):s(v).fill(l):s(v)}o.alloc=function(v,l,c){return p(v,l,c)};function y(v){return b(v),s(v<0?0:D(v)|0)}o.allocUnsafe=function(v){return y(v)},o.allocUnsafeSlow=function(v){return y(v)};function E(v,l){if((typeof l!="string"||l==="")&&(l="utf8"),!o.isEncoding(l))throw new TypeError("Unknown encoding: "+l);const c=R(v,l)|0;let w=s(c);const I=w.write(v,l);return I!==c&&(w=w.slice(0,I)),w}function O(v){const l=v.length<0?0:D(v.length)|0,c=s(l);for(let w=0;w=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return v|0}function z(v){return+v!=v&&(v=0),o.alloc(+v)}o.isBuffer=function(l){return l!=null&&l._isBuffer===!0&&l!==o.prototype},o.compare=function(l,c){if(le(l,Uint8Array)&&(l=o.from(l,l.offset,l.byteLength)),le(c,Uint8Array)&&(c=o.from(c,c.offset,c.byteLength)),!o.isBuffer(l)||!o.isBuffer(c))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(l===c)return 0;let w=l.length,I=c.length;for(let $=0,k=Math.min(w,I);$I.length?(o.isBuffer(k)||(k=o.from(k)),k.copy(I,$)):Uint8Array.prototype.set.call(I,k,$);else if(o.isBuffer(k))k.copy(I,$);else throw new TypeError('"list" argument must be an Array of Buffers');$+=k.length}return I};function R(v,l){if(o.isBuffer(v))return v.length;if(ArrayBuffer.isView(v)||le(v,ArrayBuffer))return v.byteLength;if(typeof v!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof v);const c=v.length,w=arguments.length>2&&arguments[2]===!0;if(!w&&c===0)return 0;let I=!1;for(;;)switch(l){case"ascii":case"latin1":case"binary":return c;case"utf8":case"utf-8":return Qt(v).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c*2;case"hex":return c>>>1;case"base64":return ot(v).length;default:if(I)return w?-1:Qt(v).length;l=(""+l).toLowerCase(),I=!0}}o.byteLength=R;function N(v,l,c){let w=!1;if((l===void 0||l<0)&&(l=0),l>this.length||((c===void 0||c>this.length)&&(c=this.length),c<=0)||(c>>>=0,l>>>=0,c<=l))return"";for(v||(v="utf8");;)switch(v){case"hex":return _(this,l,c);case"utf8":case"utf-8":return m(this,l,c);case"ascii":return A(this,l,c);case"latin1":case"binary":return C(this,l,c);case"base64":return d(this,l,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u(this,l,c);default:if(w)throw new TypeError("Unknown encoding: "+v);v=(v+"").toLowerCase(),w=!0}}o.prototype._isBuffer=!0;function P(v,l,c){const w=v[l];v[l]=v[c],v[c]=w}o.prototype.swap16=function(){const l=this.length;if(l%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let c=0;cc&&(l+=" ... "),""},n&&(o.prototype[n]=o.prototype.inspect),o.prototype.compare=function(l,c,w,I,$){if(le(l,Uint8Array)&&(l=o.from(l,l.offset,l.byteLength)),!o.isBuffer(l))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof l);if(c===void 0&&(c=0),w===void 0&&(w=l?l.length:0),I===void 0&&(I=0),$===void 0&&($=this.length),c<0||w>l.length||I<0||$>this.length)throw new RangeError("out of range index");if(I>=$&&c>=w)return 0;if(I>=$)return-1;if(c>=w)return 1;if(c>>>=0,w>>>=0,I>>>=0,$>>>=0,this===l)return 0;let k=$-I,Y=w-c;const Me=Math.min(k,Y),Q=this.slice(I,$),te=l.slice(c,w);for(let be=0;be2147483647?c=2147483647:c<-2147483648&&(c=-2147483648),c=+c,er(c)&&(c=I?0:v.length-1),c<0&&(c=v.length+c),c>=v.length){if(I)return-1;c=v.length-1}else if(c<0)if(I)c=0;else return-1;if(typeof l=="string"&&(l=o.from(l,w)),o.isBuffer(l))return l.length===0?-1:V(v,l,c,w,I);if(typeof l=="number")return l=l&255,typeof Uint8Array.prototype.indexOf=="function"?I?Uint8Array.prototype.indexOf.call(v,l,c):Uint8Array.prototype.lastIndexOf.call(v,l,c):V(v,[l],c,w,I);throw new TypeError("val must be string, number or Buffer")}function V(v,l,c,w,I){let $=1,k=v.length,Y=l.length;if(w!==void 0&&(w=String(w).toLowerCase(),w==="ucs2"||w==="ucs-2"||w==="utf16le"||w==="utf-16le")){if(v.length<2||l.length<2)return-1;$=2,k/=2,Y/=2,c/=2}function Me(te,be){return $===1?te[be]:te.readUInt16BE(be*$)}let Q;if(I){let te=-1;for(Q=c;Qk&&(c=k-Y),Q=c;Q>=0;Q--){let te=!0;for(let be=0;beI&&(w=I)):w=I;const $=l.length;w>$/2&&(w=$/2);let k;for(k=0;k>>0,isFinite(w)?(w=w>>>0,I===void 0&&(I="utf8")):(I=w,w=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const $=this.length-c;if((w===void 0||w>$)&&(w=$),l.length>0&&(w<0||c<0)||c>this.length)throw new RangeError("Attempt to write outside buffer bounds");I||(I="utf8");let k=!1;for(;;)switch(I){case"hex":return j(this,l,c,w);case"utf8":case"utf-8":return q(this,l,c,w);case"ascii":case"latin1":case"binary":return U(this,l,c,w);case"base64":return x(this,l,c,w);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return f(this,l,c,w);default:if(k)throw new TypeError("Unknown encoding: "+I);I=(""+I).toLowerCase(),k=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function d(v,l,c){return l===0&&c===v.length?e.fromByteArray(v):e.fromByteArray(v.slice(l,c))}function m(v,l,c){c=Math.min(v.length,c);const w=[];let I=l;for(;I239?4:$>223?3:$>191?2:1;if(I+Y<=c){let Me,Q,te,be;switch(Y){case 1:$<128&&(k=$);break;case 2:Me=v[I+1],(Me&192)===128&&(be=($&31)<<6|Me&63,be>127&&(k=be));break;case 3:Me=v[I+1],Q=v[I+2],(Me&192)===128&&(Q&192)===128&&(be=($&15)<<12|(Me&63)<<6|Q&63,be>2047&&(be<55296||be>57343)&&(k=be));break;case 4:Me=v[I+1],Q=v[I+2],te=v[I+3],(Me&192)===128&&(Q&192)===128&&(te&192)===128&&(be=($&15)<<18|(Me&63)<<12|(Q&63)<<6|te&63,be>65535&&be<1114112&&(k=be))}}k===null?(k=65533,Y=1):k>65535&&(k-=65536,w.push(k>>>10&1023|55296),k=56320|k&1023),w.push(k),I+=Y}return M(w)}const g=4096;function M(v){const l=v.length;if(l<=g)return String.fromCharCode.apply(String,v);let c="",w=0;for(;ww)&&(c=w);let I="";for(let $=l;$w&&(l=w),c<0?(c+=w,c<0&&(c=0)):c>w&&(c=w),cc)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(l,c,w){l=l>>>0,c=c>>>0,w||S(l,c,this.length);let I=this[l],$=1,k=0;for(;++k>>0,c=c>>>0,w||S(l,c,this.length);let I=this[l+--c],$=1;for(;c>0&&($*=256);)I+=this[l+--c]*$;return I},o.prototype.readUint8=o.prototype.readUInt8=function(l,c){return l=l>>>0,c||S(l,1,this.length),this[l]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(l,c){return l=l>>>0,c||S(l,2,this.length),this[l]|this[l+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(l,c){return l=l>>>0,c||S(l,2,this.length),this[l]<<8|this[l+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(l,c){return l=l>>>0,c||S(l,4,this.length),(this[l]|this[l+1]<<8|this[l+2]<<16)+this[l+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(l,c){return l=l>>>0,c||S(l,4,this.length),this[l]*16777216+(this[l+1]<<16|this[l+2]<<8|this[l+3])},o.prototype.readBigUInt64LE=ue(function(l){l=l>>>0,he(l,"offset");const c=this[l],w=this[l+7];(c===void 0||w===void 0)&&kt(l,this.length-8);const I=c+this[++l]*2**8+this[++l]*2**16+this[++l]*2**24,$=this[++l]+this[++l]*2**8+this[++l]*2**16+w*2**24;return BigInt(I)+(BigInt($)<>>0,he(l,"offset");const c=this[l],w=this[l+7];(c===void 0||w===void 0)&&kt(l,this.length-8);const I=c*2**24+this[++l]*2**16+this[++l]*2**8+this[++l],$=this[++l]*2**24+this[++l]*2**16+this[++l]*2**8+w;return(BigInt(I)<>>0,c=c>>>0,w||S(l,c,this.length);let I=this[l],$=1,k=0;for(;++k=$&&(I-=Math.pow(2,8*c)),I},o.prototype.readIntBE=function(l,c,w){l=l>>>0,c=c>>>0,w||S(l,c,this.length);let I=c,$=1,k=this[l+--I];for(;I>0&&($*=256);)k+=this[l+--I]*$;return $*=128,k>=$&&(k-=Math.pow(2,8*c)),k},o.prototype.readInt8=function(l,c){return l=l>>>0,c||S(l,1,this.length),this[l]&128?(255-this[l]+1)*-1:this[l]},o.prototype.readInt16LE=function(l,c){l=l>>>0,c||S(l,2,this.length);const w=this[l]|this[l+1]<<8;return w&32768?w|4294901760:w},o.prototype.readInt16BE=function(l,c){l=l>>>0,c||S(l,2,this.length);const w=this[l+1]|this[l]<<8;return w&32768?w|4294901760:w},o.prototype.readInt32LE=function(l,c){return l=l>>>0,c||S(l,4,this.length),this[l]|this[l+1]<<8|this[l+2]<<16|this[l+3]<<24},o.prototype.readInt32BE=function(l,c){return l=l>>>0,c||S(l,4,this.length),this[l]<<24|this[l+1]<<16|this[l+2]<<8|this[l+3]},o.prototype.readBigInt64LE=ue(function(l){l=l>>>0,he(l,"offset");const c=this[l],w=this[l+7];(c===void 0||w===void 0)&&kt(l,this.length-8);const I=this[l+4]+this[l+5]*2**8+this[l+6]*2**16+(w<<24);return(BigInt(I)<>>0,he(l,"offset");const c=this[l],w=this[l+7];(c===void 0||w===void 0)&&kt(l,this.length-8);const I=(c<<24)+this[++l]*2**16+this[++l]*2**8+this[++l];return(BigInt(I)<>>0,c||S(l,4,this.length),r.read(this,l,!0,23,4)},o.prototype.readFloatBE=function(l,c){return l=l>>>0,c||S(l,4,this.length),r.read(this,l,!1,23,4)},o.prototype.readDoubleLE=function(l,c){return l=l>>>0,c||S(l,8,this.length),r.read(this,l,!0,52,8)},o.prototype.readDoubleBE=function(l,c){return l=l>>>0,c||S(l,8,this.length),r.read(this,l,!1,52,8)};function H(v,l,c,w,I,$){if(!o.isBuffer(v))throw new TypeError('"buffer" argument must be a Buffer instance');if(l>I||l<$)throw new RangeError('"value" argument is out of bounds');if(c+w>v.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(l,c,w,I){if(l=+l,c=c>>>0,w=w>>>0,!I){const Y=Math.pow(2,8*w)-1;H(this,l,c,w,Y,0)}let $=1,k=0;for(this[c]=l&255;++k>>0,w=w>>>0,!I){const Y=Math.pow(2,8*w)-1;H(this,l,c,w,Y,0)}let $=w-1,k=1;for(this[c+$]=l&255;--$>=0&&(k*=256);)this[c+$]=l/k&255;return c+w},o.prototype.writeUint8=o.prototype.writeUInt8=function(l,c,w){return l=+l,c=c>>>0,w||H(this,l,c,1,255,0),this[c]=l&255,c+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(l,c,w){return l=+l,c=c>>>0,w||H(this,l,c,2,65535,0),this[c]=l&255,this[c+1]=l>>>8,c+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(l,c,w){return l=+l,c=c>>>0,w||H(this,l,c,2,65535,0),this[c]=l>>>8,this[c+1]=l&255,c+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(l,c,w){return l=+l,c=c>>>0,w||H(this,l,c,4,4294967295,0),this[c+3]=l>>>24,this[c+2]=l>>>16,this[c+1]=l>>>8,this[c]=l&255,c+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(l,c,w){return l=+l,c=c>>>0,w||H(this,l,c,4,4294967295,0),this[c]=l>>>24,this[c+1]=l>>>16,this[c+2]=l>>>8,this[c+3]=l&255,c+4};function W(v,l,c,w,I){we(l,w,I,v,c,7);let $=Number(l&BigInt(4294967295));v[c++]=$,$=$>>8,v[c++]=$,$=$>>8,v[c++]=$,$=$>>8,v[c++]=$;let k=Number(l>>BigInt(32)&BigInt(4294967295));return v[c++]=k,k=k>>8,v[c++]=k,k=k>>8,v[c++]=k,k=k>>8,v[c++]=k,c}function J(v,l,c,w,I){we(l,w,I,v,c,7);let $=Number(l&BigInt(4294967295));v[c+7]=$,$=$>>8,v[c+6]=$,$=$>>8,v[c+5]=$,$=$>>8,v[c+4]=$;let k=Number(l>>BigInt(32)&BigInt(4294967295));return v[c+3]=k,k=k>>8,v[c+2]=k,k=k>>8,v[c+1]=k,k=k>>8,v[c]=k,c+8}o.prototype.writeBigUInt64LE=ue(function(l,c=0){return W(this,l,c,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=ue(function(l,c=0){return J(this,l,c,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(l,c,w,I){if(l=+l,c=c>>>0,!I){const Me=Math.pow(2,8*w-1);H(this,l,c,w,Me-1,-Me)}let $=0,k=1,Y=0;for(this[c]=l&255;++$>0)-Y&255;return c+w},o.prototype.writeIntBE=function(l,c,w,I){if(l=+l,c=c>>>0,!I){const Me=Math.pow(2,8*w-1);H(this,l,c,w,Me-1,-Me)}let $=w-1,k=1,Y=0;for(this[c+$]=l&255;--$>=0&&(k*=256);)l<0&&Y===0&&this[c+$+1]!==0&&(Y=1),this[c+$]=(l/k>>0)-Y&255;return c+w},o.prototype.writeInt8=function(l,c,w){return l=+l,c=c>>>0,w||H(this,l,c,1,127,-128),l<0&&(l=255+l+1),this[c]=l&255,c+1},o.prototype.writeInt16LE=function(l,c,w){return l=+l,c=c>>>0,w||H(this,l,c,2,32767,-32768),this[c]=l&255,this[c+1]=l>>>8,c+2},o.prototype.writeInt16BE=function(l,c,w){return l=+l,c=c>>>0,w||H(this,l,c,2,32767,-32768),this[c]=l>>>8,this[c+1]=l&255,c+2},o.prototype.writeInt32LE=function(l,c,w){return l=+l,c=c>>>0,w||H(this,l,c,4,2147483647,-2147483648),this[c]=l&255,this[c+1]=l>>>8,this[c+2]=l>>>16,this[c+3]=l>>>24,c+4},o.prototype.writeInt32BE=function(l,c,w){return l=+l,c=c>>>0,w||H(this,l,c,4,2147483647,-2147483648),l<0&&(l=4294967295+l+1),this[c]=l>>>24,this[c+1]=l>>>16,this[c+2]=l>>>8,this[c+3]=l&255,c+4},o.prototype.writeBigInt64LE=ue(function(l,c=0){return W(this,l,c,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=ue(function(l,c=0){return J(this,l,c,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function X(v,l,c,w,I,$){if(c+w>v.length)throw new RangeError("Index out of range");if(c<0)throw new RangeError("Index out of range")}function ie(v,l,c,w,I){return l=+l,c=c>>>0,I||X(v,l,c,4),r.write(v,l,c,w,23,4),c+4}o.prototype.writeFloatLE=function(l,c,w){return ie(this,l,c,!0,w)},o.prototype.writeFloatBE=function(l,c,w){return ie(this,l,c,!1,w)};function se(v,l,c,w,I){return l=+l,c=c>>>0,I||X(v,l,c,8),r.write(v,l,c,w,52,8),c+8}o.prototype.writeDoubleLE=function(l,c,w){return se(this,l,c,!0,w)},o.prototype.writeDoubleBE=function(l,c,w){return se(this,l,c,!1,w)},o.prototype.copy=function(l,c,w,I){if(!o.isBuffer(l))throw new TypeError("argument should be a Buffer");if(w||(w=0),!I&&I!==0&&(I=this.length),c>=l.length&&(c=l.length),c||(c=0),I>0&&I=this.length)throw new RangeError("Index out of range");if(I<0)throw new RangeError("sourceEnd out of bounds");I>this.length&&(I=this.length),l.length-c>>0,w=w===void 0?this.length:w>>>0,l||(l=0);let $;if(typeof l=="number")for($=c;$2**32?I=me(String(c)):typeof c=="bigint"&&(I=String(c),(c>BigInt(2)**BigInt(32)||c<-(BigInt(2)**BigInt(32)))&&(I=me(I)),I+="n"),w+=` It must be ${l}. Received ${I}`,w},RangeError);function me(v){let l="",c=v.length;const w=v[0]==="-"?1:0;for(;c>=w+4;c-=3)l=`_${v.slice(c-3,c)}${l}`;return`${v.slice(0,c)}${l}`}function fr(v,l,c){he(l,"offset"),(v[l]===void 0||v[l+c]===void 0)&&kt(l,v.length-(c+1))}function we(v,l,c,w,I,$){if(v>c||v= 0${k} and < 2${k} ** ${($+1)*8}${k}`:Y=`>= -(2${k} ** ${($+1)*8-1}${k}) and < 2 ** ${($+1)*8-1}${k}`,new Oe.ERR_OUT_OF_RANGE("value",Y,v)}fr(w,I,$)}function he(v,l){if(typeof v!="number")throw new Oe.ERR_INVALID_ARG_TYPE(l,"number",v)}function kt(v,l,c){throw Math.floor(v)!==v?(he(v,c),new Oe.ERR_OUT_OF_RANGE("offset","an integer",v)):l<0?new Oe.ERR_BUFFER_OUT_OF_BOUNDS:new Oe.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${l}`,v)}const Ee=/[^+/0-9A-Za-z-_]/g;function Se(v){if(v=v.split("=")[0],v=v.trim().replace(Ee,""),v.length<2)return"";for(;v.length%4!==0;)v=v+"=";return v}function Qt(v,l){l=l||1/0;let c;const w=v.length;let I=null;const $=[];for(let k=0;k55295&&c<57344){if(!I){if(c>56319){(l-=3)>-1&&$.push(239,191,189);continue}else if(k+1===w){(l-=3)>-1&&$.push(239,191,189);continue}I=c;continue}if(c<56320){(l-=3)>-1&&$.push(239,191,189),I=c;continue}c=(I-55296<<10|c-56320)+65536}else I&&(l-=3)>-1&&$.push(239,191,189);if(I=null,c<128){if((l-=1)<0)break;$.push(c)}else if(c<2048){if((l-=2)<0)break;$.push(c>>6|192,c&63|128)}else if(c<65536){if((l-=3)<0)break;$.push(c>>12|224,c>>6&63|128,c&63|128)}else if(c<1114112){if((l-=4)<0)break;$.push(c>>18|240,c>>12&63|128,c>>6&63|128,c&63|128)}else throw new Error("Invalid code point")}return $}function Ae(v){const l=[];for(let c=0;c>8,I=c%256,$.push(I),$.push(w);return $}function ot(v){return e.toByteArray(Se(v))}function pe(v,l,c,w){let I;for(I=0;I=l.length||I>=v.length);++I)l[I+c]=v[I];return I}function le(v,l){return v instanceof l||v!=null&&v.constructor!=null&&v.constructor.name!=null&&v.constructor.name===l.name}function er(v){return v!==v}const ge=function(){const v="0123456789abcdef",l=new Array(256);for(let c=0;c<16;++c){const w=c*16;for(let I=0;I<16;++I)l[w+I]=v[c]+v[I]}return l}();function ue(v){return typeof BigInt>"u"?Sr:v}function Sr(){throw new Error("BigInt not supported")}})(oi);const fi=crypto,zs=t=>t instanceof CryptoKey,Ur=new TextEncoder,pa=new TextDecoder;function Gc(...t){const e=t.reduce((i,{length:a})=>i+a,0),r=new Uint8Array(e);let n=0;for(const i of t)r.set(i,n),n+=i.length;return r}const Zc=t=>{let e=t;typeof e=="string"&&(e=Ur.encode(e));const r=32768,n=[];for(let i=0;iZc(t).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"),Qc=t=>{const e=atob(t),r=new Uint8Array(e.length);for(let n=0;n{let e=t;e instanceof Uint8Array&&(e=pa.decode(e)),e=e.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return Qc(e)}catch{throw new TypeError("The input to be decoded is not correctly encoded.")}};class za extends Error{static get code(){return"ERR_JOSE_GENERIC"}constructor(e){var r;super(e),this.code="ERR_JOSE_GENERIC",this.name=this.constructor.name,(r=Error.captureStackTrace)==null||r.call(Error,this,this.constructor)}}class br extends za{constructor(){super(...arguments),this.code="ERR_JOSE_NOT_SUPPORTED"}static get code(){return"ERR_JOSE_NOT_SUPPORTED"}}class xn extends za{constructor(){super(...arguments),this.code="ERR_JWS_INVALID"}static get code(){return"ERR_JWS_INVALID"}}class td extends za{constructor(){super(...arguments),this.code="ERR_JWT_INVALID"}static get code(){return"ERR_JWT_INVALID"}}function tr(t,e="algorithm.name"){return new TypeError(`CryptoKey does not support this operation, its ${e} must be ${t}`)}function Ln(t,e){return t.name===e}function Ji(t){return parseInt(t.name.slice(4),10)}function rd(t){switch(t){case"ES256":return"P-256";case"ES384":return"P-384";case"ES512":return"P-521";default:throw new Error("unreachable")}}function nd(t,e){if(e.length&&!e.some(r=>t.usages.includes(r))){let r="CryptoKey does not support this operation, its usages must include ";if(e.length>2){const n=e.pop();r+=`one of ${e.join(", ")}, or ${n}.`}else e.length===2?r+=`one of ${e[0]} or ${e[1]}.`:r+=`${e[0]}.`;throw new TypeError(r)}}function id(t,e,...r){switch(e){case"HS256":case"HS384":case"HS512":{if(!Ln(t.algorithm,"HMAC"))throw tr("HMAC");const n=parseInt(e.slice(2),10);if(Ji(t.algorithm.hash)!==n)throw tr(`SHA-${n}`,"algorithm.hash");break}case"RS256":case"RS384":case"RS512":{if(!Ln(t.algorithm,"RSASSA-PKCS1-v1_5"))throw tr("RSASSA-PKCS1-v1_5");const n=parseInt(e.slice(2),10);if(Ji(t.algorithm.hash)!==n)throw tr(`SHA-${n}`,"algorithm.hash");break}case"PS256":case"PS384":case"PS512":{if(!Ln(t.algorithm,"RSA-PSS"))throw tr("RSA-PSS");const n=parseInt(e.slice(2),10);if(Ji(t.algorithm.hash)!==n)throw tr(`SHA-${n}`,"algorithm.hash");break}case"EdDSA":{if(t.algorithm.name!=="Ed25519"&&t.algorithm.name!=="Ed448")throw tr("Ed25519 or Ed448");break}case"ES256":case"ES384":case"ES512":{if(!Ln(t.algorithm,"ECDSA"))throw tr("ECDSA");const n=rd(e);if(t.algorithm.namedCurve!==n)throw tr(n,"algorithm.namedCurve");break}default:throw new TypeError("CryptoKey does not support this operation")}nd(t,r)}function Fs(t,e,...r){var n;if(r.length>2){const i=r.pop();t+=`one of type ${r.join(", ")}, or ${i}.`}else r.length===2?t+=`one of type ${r[0]} or ${r[1]}.`:t+=`of type ${r[0]}.`;return e==null?t+=` Received ${e}`:typeof e=="function"&&e.name?t+=` Received function ${e.name}`:typeof e=="object"&&e!=null&&(n=e.constructor)!=null&&n.name&&(t+=` Received an instance of ${e.constructor.name}`),t}const Co=(t,...e)=>Fs("Key must be ",t,...e);function Ls(t,e,...r){return Fs(`Key for the ${t} algorithm must be `,e,...r)}const js=t=>zs(t)?!0:(t==null?void 0:t[Symbol.toStringTag])==="KeyObject",Yn=["CryptoKey"],ad=(...t)=>{const e=t.filter(Boolean);if(e.length===0||e.length===1)return!0;let r;for(const n of e){const i=Object.keys(n);if(!r||r.size===0){r=new Set(i);continue}for(const a of i){if(r.has(a))return!1;r.add(a)}}return!0};function od(t){return typeof t=="object"&&t!==null}function sd(t){if(!od(t)||Object.prototype.toString.call(t)!=="[object Object]")return!1;if(Object.getPrototypeOf(t)===null)return!0;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}const fd=(t,e)=>{if(t.startsWith("RS")||t.startsWith("PS")){const{modulusLength:r}=e.algorithm;if(typeof r!="number"||r<2048)throw new TypeError(`${t} requires key modulusLength to be 2048 bits or larger`)}};function ld(t){let e,r;switch(t.kty){case"RSA":{switch(t.alg){case"PS256":case"PS384":case"PS512":e={name:"RSA-PSS",hash:`SHA-${t.alg.slice(-3)}`},r=t.d?["sign"]:["verify"];break;case"RS256":case"RS384":case"RS512":e={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${t.alg.slice(-3)}`},r=t.d?["sign"]:["verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":e={name:"RSA-OAEP",hash:`SHA-${parseInt(t.alg.slice(-3),10)||1}`},r=t.d?["decrypt","unwrapKey"]:["encrypt","wrapKey"];break;default:throw new br('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break}case"EC":{switch(t.alg){case"ES256":e={name:"ECDSA",namedCurve:"P-256"},r=t.d?["sign"]:["verify"];break;case"ES384":e={name:"ECDSA",namedCurve:"P-384"},r=t.d?["sign"]:["verify"];break;case"ES512":e={name:"ECDSA",namedCurve:"P-521"},r=t.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":e={name:"ECDH",namedCurve:t.crv},r=t.d?["deriveBits"]:[];break;default:throw new br('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break}case"OKP":{switch(t.alg){case"EdDSA":e={name:t.crv},r=t.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":e={name:t.crv},r=t.d?["deriveBits"]:[];break;default:throw new br('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break}default:throw new br('Invalid or unsupported JWK "kty" (Key Type) Parameter value')}return{algorithm:e,keyUsages:r}}const ud=async t=>{if(!t.alg)throw new TypeError('"alg" argument is required when "jwk.alg" is not present');const{algorithm:e,keyUsages:r}=ld(t),n=[e,t.ext??!1,t.key_ops??r],i={...t};return delete i.alg,delete i.use,fi.subtle.importKey("jwk",i,...n)},Us=t=>ed(t);let Yi,Xi;const qs=t=>(t==null?void 0:t[Symbol.toStringTag])==="KeyObject",Hs=async(t,e,r,n)=>{let i=t.get(e);if(i!=null&&i[n])return i[n];const a=await ud({...r,alg:n});return i?i[n]=a:t.set(e,{[n]:a}),a},cd=(t,e)=>{if(qs(t)){let r=t.export({format:"jwk"});return delete r.d,delete r.dp,delete r.dq,delete r.p,delete r.q,delete r.qi,r.k?Us(r.k):(Xi||(Xi=new WeakMap),Hs(Xi,t,r,e))}return t},dd=(t,e)=>{if(qs(t)){let r=t.export({format:"jwk"});return r.k?Us(r.k):(Yi||(Yi=new WeakMap),Hs(Yi,t,r,e))}return t},hd={normalizePublicKey:cd,normalizePrivateKey:dd},cr=(t,e,r=0)=>{r===0&&(e.unshift(e.length),e.unshift(6));const n=t.indexOf(e[0],r);if(n===-1)return!1;const i=t.subarray(n,n+e.length);return i.length!==e.length?!1:i.every((a,s)=>a===e[s])||cr(t,e,n+1)},Ro=t=>{switch(!0){case cr(t,[42,134,72,206,61,3,1,7]):return"P-256";case cr(t,[43,129,4,0,34]):return"P-384";case cr(t,[43,129,4,0,35]):return"P-521";case cr(t,[43,101,110]):return"X25519";case cr(t,[43,101,111]):return"X448";case cr(t,[43,101,112]):return"Ed25519";case cr(t,[43,101,113]):return"Ed448";default:throw new br("Invalid or unsupported EC Key Curve or OKP Key Sub Type")}},pd=async(t,e,r,n,i)=>{let a,s;const o=new Uint8Array(atob(r.replace(t,"")).split("").map(h=>h.charCodeAt(0)));switch(n){case"PS256":case"PS384":case"PS512":a={name:"RSA-PSS",hash:`SHA-${n.slice(-3)}`},s=["sign"];break;case"RS256":case"RS384":case"RS512":a={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${n.slice(-3)}`},s=["sign"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":a={name:"RSA-OAEP",hash:`SHA-${parseInt(n.slice(-3),10)||1}`},s=["decrypt","unwrapKey"];break;case"ES256":a={name:"ECDSA",namedCurve:"P-256"},s=["sign"];break;case"ES384":a={name:"ECDSA",namedCurve:"P-384"},s=["sign"];break;case"ES512":a={name:"ECDSA",namedCurve:"P-521"},s=["sign"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{const h=Ro(o);a=h.startsWith("P-")?{name:"ECDH",namedCurve:h}:{name:h},s=["deriveBits"];break}case"EdDSA":a={name:Ro(o)},s=["sign"];break;default:throw new br('Invalid or unsupported "alg" (Algorithm) value')}return fi.subtle.importKey(e,o,a,!1,s)},bd=(t,e,r)=>pd(/(?:-----(?:BEGIN|END) PRIVATE KEY-----|\s)/g,"pkcs8",t,e);async function vd(t,e,r){if(typeof t!="string"||t.indexOf("-----BEGIN PRIVATE KEY-----")!==0)throw new TypeError('"pkcs8" must be PKCS#8 formatted string');return bd(t,e)}const Mn=t=>t==null?void 0:t[Symbol.toStringTag],md=(t,e)=>{if(!(e instanceof Uint8Array)){if(!js(e))throw new TypeError(Ls(t,e,...Yn,"Uint8Array"));if(e.type!=="secret")throw new TypeError(`${Mn(e)} instances for symmetric algorithms must be of type "secret"`)}},yd=(t,e,r)=>{if(!js(e))throw new TypeError(Ls(t,e,...Yn));if(e.type==="secret")throw new TypeError(`${Mn(e)} instances for asymmetric algorithms must not be of type "secret"`);if(e.type==="public")throw new TypeError(`${Mn(e)} instances for asymmetric algorithm signing must be of type "private"`);if(e.algorithm&&r==="verify"&&e.type==="private")throw new TypeError(`${Mn(e)} instances for asymmetric algorithm verifying must be of type "public"`);if(e.algorithm&&r==="encrypt"&&e.type==="private")throw new TypeError(`${Mn(e)} instances for asymmetric algorithm encryption must be of type "public"`)},gd=(t,e,r)=>{t.startsWith("HS")||t==="dir"||t.startsWith("PBES2")||/^A\d{3}(?:GCM)?KW$/.test(t)?md(t,e):yd(t,e,r)};function xd(t,e,r,n,i){if(i.crit!==void 0&&(n==null?void 0:n.crit)===void 0)throw new t('"crit" (Critical) Header Parameter MUST be integrity protected');if(!n||n.crit===void 0)return new Set;if(!Array.isArray(n.crit)||n.crit.length===0||n.crit.some(s=>typeof s!="string"||s.length===0))throw new t('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present');let a;r!==void 0?a=new Map([...Object.entries(r),...e.entries()]):a=e;for(const s of n.crit){if(!a.has(s))throw new br(`Extension Header Parameter "${s}" is not recognized`);if(i[s]===void 0)throw new t(`Extension Header Parameter "${s}" is missing`);if(a.get(s)&&n[s]===void 0)throw new t(`Extension Header Parameter "${s}" MUST be integrity protected`)}return new Set(n.crit)}function wd(t,e){const r=`SHA-${t.slice(-3)}`;switch(t){case"HS256":case"HS384":case"HS512":return{hash:r,name:"HMAC"};case"PS256":case"PS384":case"PS512":return{hash:r,name:"RSA-PSS",saltLength:t.slice(-3)>>3};case"RS256":case"RS384":case"RS512":return{hash:r,name:"RSASSA-PKCS1-v1_5"};case"ES256":case"ES384":case"ES512":return{hash:r,name:"ECDSA",namedCurve:e.namedCurve};case"EdDSA":return{name:e.name};default:throw new br(`alg ${t} is not supported either by JOSE or your javascript runtime`)}}async function Sd(t,e,r){if(e=await hd.normalizePrivateKey(e,t),zs(e))return id(e,t,r),e;if(e instanceof Uint8Array){if(!t.startsWith("HS"))throw new TypeError(Co(e,...Yn));return fi.subtle.importKey("raw",e,{hash:`SHA-${t.slice(-3)}`,name:"HMAC"},!1,[r])}throw new TypeError(Co(e,...Yn,"Uint8Array"))}const _r=t=>Math.floor(t.getTime()/1e3),Vs=60,Ks=Vs*60,Fa=Ks*24,Md=Fa*7,_d=Fa*365.25,Ed=/^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i,Gi=t=>{const e=Ed.exec(t);if(!e||e[4]&&e[1])throw new TypeError("Invalid time period format");const r=parseFloat(e[2]),n=e[3].toLowerCase();let i;switch(n){case"sec":case"secs":case"second":case"seconds":case"s":i=Math.round(r);break;case"minute":case"minutes":case"min":case"mins":case"m":i=Math.round(r*Vs);break;case"hour":case"hours":case"hr":case"hrs":case"h":i=Math.round(r*Ks);break;case"day":case"days":case"d":i=Math.round(r*Fa);break;case"week":case"weeks":case"w":i=Math.round(r*Md);break;default:i=Math.round(r*_d);break}return e[1]==="-"||e[4]==="ago"?-i:i},Ad=async(t,e,r)=>{const n=await Sd(t,e,"sign");fd(t,n);const i=await fi.subtle.sign(wd(t,n.algorithm),n,r);return new Uint8Array(i)};class Id{constructor(e){if(!(e instanceof Uint8Array))throw new TypeError("payload must be an instance of Uint8Array");this._payload=e}setProtectedHeader(e){if(this._protectedHeader)throw new TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setUnprotectedHeader(e){if(this._unprotectedHeader)throw new TypeError("setUnprotectedHeader can only be called once");return this._unprotectedHeader=e,this}async sign(e,r){if(!this._protectedHeader&&!this._unprotectedHeader)throw new xn("either setProtectedHeader or setUnprotectedHeader must be called before #sign()");if(!ad(this._protectedHeader,this._unprotectedHeader))throw new xn("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");const n={...this._protectedHeader,...this._unprotectedHeader},i=xd(xn,new Map([["b64",!0]]),r==null?void 0:r.crit,this._protectedHeader,n);let a=!0;if(i.has("b64")&&(a=this._protectedHeader.b64,typeof a!="boolean"))throw new xn('The "b64" (base64url-encode payload) Header Parameter must be a boolean');const{alg:s}=n;if(typeof s!="string"||!s)throw new xn('JWS "alg" (Algorithm) Header Parameter missing or invalid');gd(s,e,"sign");let o=this._payload;a&&(o=Ur.encode(Wi(o)));let h;this._protectedHeader?h=Ur.encode(Wi(JSON.stringify(this._protectedHeader))):h=Ur.encode("");const b=Gc(h,Ur.encode("."),o),p=await Ad(s,e,b),y={signature:Wi(p),payload:""};return a&&(y.payload=pa.decode(o)),this._unprotectedHeader&&(y.header=this._unprotectedHeader),this._protectedHeader&&(y.protected=pa.decode(h)),y}}class Od{constructor(e){this._flattened=new Id(e)}setProtectedHeader(e){return this._flattened.setProtectedHeader(e),this}async sign(e,r){const n=await this._flattened.sign(e,r);if(n.payload===void 0)throw new TypeError("use the flattened module for creating JWS with b64: false");return`${n.protected}.${n.payload}.${n.signature}`}}function Er(t,e){if(!Number.isFinite(e))throw new TypeError(`Invalid ${t} input`);return e}class Bd{constructor(e={}){if(!sd(e))throw new TypeError("JWT Claims Set MUST be an object");this._payload=e}setIssuer(e){return this._payload={...this._payload,iss:e},this}setSubject(e){return this._payload={...this._payload,sub:e},this}setAudience(e){return this._payload={...this._payload,aud:e},this}setJti(e){return this._payload={...this._payload,jti:e},this}setNotBefore(e){return typeof e=="number"?this._payload={...this._payload,nbf:Er("setNotBefore",e)}:e instanceof Date?this._payload={...this._payload,nbf:Er("setNotBefore",_r(e))}:this._payload={...this._payload,nbf:_r(new Date)+Gi(e)},this}setExpirationTime(e){return typeof e=="number"?this._payload={...this._payload,exp:Er("setExpirationTime",e)}:e instanceof Date?this._payload={...this._payload,exp:Er("setExpirationTime",_r(e))}:this._payload={...this._payload,exp:_r(new Date)+Gi(e)},this}setIssuedAt(e){return typeof e>"u"?this._payload={...this._payload,iat:_r(new Date)}:e instanceof Date?this._payload={...this._payload,iat:Er("setIssuedAt",_r(e))}:typeof e=="string"?this._payload={...this._payload,iat:Er("setIssuedAt",_r(new Date)+Gi(e))}:this._payload={...this._payload,iat:Er("setIssuedAt",e)},this}}class Cd extends Bd{setProtectedHeader(e){return this._protectedHeader=e,this}async sign(e,r){var i;const n=new Od(Ur.encode(JSON.stringify(this._payload)));if(n.setProtectedHeader(this._protectedHeader),Array.isArray((i=this._protectedHeader)==null?void 0:i.crit)&&this._protectedHeader.crit.includes("b64")&&this._protectedHeader.b64===!1)throw new td("JWTs MUST NOT use unencoded payload");return n.sign(e,r)}}class Ws extends Error{}function $r(t,e=!1){try{let r=t.split(".").map(s=>oi.Buffer.from(s,"base64").toString("utf-8"));const n=JSON.parse(r[0]),i=JSON.parse(r[1]);let a=[n,i];return e&&a.push(JSON.parse(r[2])),a}catch{throw new Ws}}function Xn(t){return btoa(JSON.stringify(t)).replace(/={1,2}$/,"")}async function li(t){let e,r;return t.alg?r=t.alg:r=t.header.alg,r.startsWith("HS")?e=new TextEncoder().encode(t.secretKey):e=await vd(t.secretKey,r),await new Cd(t.payload).setProtectedHeader({alg:t.alg,typ:"JWT",...t.header}).sign(e)}function Js(t){var r,n;for(var e in t)e=t[e],(r=document.getElementById(e))==null||r.classList.remove("border-error"),(n=document.getElementById(e))==null||n.classList.add("border-secondary-300")}function La(t){var r,n;for(var e in t)e=t[e],(r=document.getElementById(e))==null||r.classList.remove("border-secondary-300"),(n=document.getElementById(e))==null||n.classList.add("border-error")}function dr(t,e){var n;for(var r in e){const i=e[r];(n=document.getElementById(t))==null||n.classList.remove(i)}}function hr(t,e){var n;for(var r in e){const i=e[r];(n=document.getElementById(t))==null||n.classList.add(i)}}async function Zi(){return await li({header:{typ:"JWT",alg:"HS256"},payload:{sub:"1",name:"admin",groups:["user","admin"]},alg:Et.HS256,secretKey:"secret-to-sign-token"})}var Gn=(t=>(t.RANDOMIZE_VA_SPACE="/proc/sys/kernel/randomize_va_space",t.TIMER_MIGRATION="/proc/sys/kernel/timer_migration",t))(Gn||{}),qr=(t=>(t.NONE="none",t.FALSE="false",t.NULL="null",t.EMPTY="empty",t))(qr||{});function Rd(t,e){const r={[qr.NONE]:"none",[qr.EMPTY]:"",[qr.FALSE]:!1,[qr.NULL]:null};let[n,i]=$r(t);return n.alg=r[e],n=Xn(n),i=Xn(i),`${n}.${i}.`}async function Td(t,e,r=Et.HS256){let[n,i]=$r(t);return n.alg=r,await li({header:n,payload:i,alg:r,secretKey:e})}async function Pd(t,e){let[r,n]=$r(t);r.kid=e;const i={[Gn.TIMER_MIGRATION]:1,[Gn.RANDOMIZE_VA_SPACE]:2};return await li({header:r,payload:n,secretKey:i[e].toString()})}const $n=Zf("token",{state:()=>({value:""})}),$d={class:"flex justify-center"},kd=_e({__name:"none-attack",setup(t){const e=$n(),r=ai().value,n=ln({algorithms:Object.values(Et),options:{algorithm:""}});return Xe(n,async()=>{Js(["jwt-token"]);try{const i=Rd(e.value,n.options.algorithm);e.value=i,r.header=JSON.stringify($r(e.value)[0],null,2)}catch{La(["jwt-token"])}}),(i,a)=>{const s=Pn;return G(),oe("div",$d,[Be(s,{modelValue:Z(n).options.algorithm,"onUpdate:modelValue":a[0]||(a[0]=o=>Z(n).options.algorithm=o),options:Object.values(Z(qr)),size:"lg",color:"gray",class:"w-1/3",placeholder:"Select algorithm payload"},null,8,["modelValue","options"])])}}}),lr=Bn(st.ui.strategy,st.ui.textarea,wl),Nd=_e({inheritAttrs:!1,props:{modelValue:{type:[String,Number],default:""},id:{type:String,default:null},name:{type:String,default:null},placeholder:{type:String,default:null},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},rows:{type:Number,default:3},maxrows:{type:Number,default:0},autoresize:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!1},autofocusDelay:{type:Number,default:100},resize:{type:Boolean,default:!1},padded:{type:Boolean,default:!0},size:{type:String,default:null,validator(t){return Object.keys(lr.size).includes(t)}},color:{type:String,default:()=>lr.default.color,validator(t){return[...st.ui.colors,...Object.keys(lr.color)].includes(t)}},variant:{type:String,default:()=>lr.default.variant,validator(t){return[...Object.keys(lr.variant),...Object.values(lr.color).flatMap(e=>Object.keys(e))].includes(t)}},textareaClass:{type:String,default:null},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})},modelModifiers:{type:Object,default:()=>({})}},emits:["update:modelValue","blur","change"],setup(t,{emit:e}){const{ui:r,attrs:n}=Kn("textarea",Vr(t,"ui"),lr,Vr(t,"class")),{emitFormBlur:i,emitFormInput:a,inputId:s,color:o,size:h,name:b}=Ns(t,lr),p=re(Yo({},t.modelModifiers,{trim:!1,lazy:!1,number:!1})),y=re(null),E=()=>{var R;t.autofocus&&((R=y.value)==null||R.focus())},O=()=>{if(t.autoresize){if(!y.value)return;y.value.rows=t.rows;const R=window.getComputedStyle(y.value),N=parseInt(R.paddingTop),P=parseInt(R.paddingBottom),F=N+P,V=parseInt(R.lineHeight),{scrollHeight:j}=y.value,q=(j-F)/V;q>t.rows&&(y.value.rows=t.maxrows?Math.min(q,t.maxrows):q)}},B=R=>{p.value.trim&&(R=R.trim()),p.value.number&&(R=Qf(R)),e("update:modelValue",R),a()},T=R=>{O(),p.value.lazy||B(R.target.value)},L=R=>{const N=R.target.value;e("change",N),p.value.lazy&&B(N),p.value.trim&&(R.target.value=N.trim())},D=R=>{e("blur",R),i()};Ot(()=>{setTimeout(()=>{E()},t.autofocusDelay)}),Xe(()=>t.modelValue,()=>{rt(O)}),Ot(()=>{setTimeout(()=>{E(),O()},100)});const z=K(()=>{var N,P;const R=((P=(N=r.value.color)==null?void 0:N[o.value])==null?void 0:P[t.variant])||r.value.variant[t.variant];return Hn(Ft(r.value.base,r.value.form,r.value.rounded,r.value.placeholder,r.value.size[h.value],t.padded?r.value.padding[h.value]:"p-0",R==null?void 0:R.replaceAll("{color}",o.value),!t.resize&&"resize-none"),t.textareaClass)});return{ui:r,attrs:n,name:b,inputId:s,textarea:y,textareaClass:z,onInput:T,onChange:L,onBlur:D}}}),Dd=["id","value","name","rows","required","disabled","placeholder"];function zd(t,e,r,n,i,a){return G(),oe("div",{class:ce(t.ui.wrapper)},[ne("textarea",_n({id:t.inputId,ref:"textarea",value:t.modelValue,name:t.name,rows:t.rows,required:t.required,disabled:t.disabled,placeholder:t.placeholder,class:t.textareaClass},t.attrs,{onInput:e[0]||(e[0]=(...s)=>t.onInput&&t.onInput(...s)),onBlur:e[1]||(e[1]=(...s)=>t.onBlur&&t.onBlur(...s)),onChange:e[2]||(e[2]=(...s)=>t.onChange&&t.onChange(...s))}),null,16,Dd),zt(t.$slots,"default")],2)}const ja=On(Nd,[["render",zd]]);var gr={},Ua={exports:{}};const Fd={},Ld=Object.freeze(Object.defineProperty({__proto__:null,default:Fd},Symbol.toStringTag,{value:"Module"})),Ys=Uc(Ld);Ua.exports;(function(t){(function(e,r){function n(x,f){if(!x)throw new Error(f||"Assertion failed")}function i(x,f){x.super_=f;var d=function(){};d.prototype=f.prototype,x.prototype=new d,x.prototype.constructor=x}function a(x,f,d){if(a.isBN(x))return x;this.negative=0,this.words=null,this.length=0,this.red=null,x!==null&&((f==="le"||f==="be")&&(d=f,f=10),this._init(x||0,f||10,d||"be"))}typeof e=="object"?e.exports=a:r.BN=a,a.BN=a,a.wordSize=26;var s;try{typeof window<"u"&&typeof window.Buffer<"u"?s=window.Buffer:s=Ys.Buffer}catch{}a.isBN=function(f){return f instanceof a?!0:f!==null&&typeof f=="object"&&f.constructor.wordSize===a.wordSize&&Array.isArray(f.words)},a.max=function(f,d){return f.cmp(d)>0?f:d},a.min=function(f,d){return f.cmp(d)<0?f:d},a.prototype._init=function(f,d,m){if(typeof f=="number")return this._initNumber(f,d,m);if(typeof f=="object")return this._initArray(f,d,m);d==="hex"&&(d=16),n(d===(d|0)&&d>=2&&d<=36),f=f.toString().replace(/\s+/g,"");var g=0;f[0]==="-"&&(g++,this.negative=1),g=0;g-=3)A=f[g]|f[g-1]<<8|f[g-2]<<16,this.words[M]|=A<>>26-C&67108863,C+=24,C>=26&&(C-=26,M++);else if(m==="le")for(g=0,M=0;g>>26-C&67108863,C+=24,C>=26&&(C-=26,M++);return this.strip()};function o(x,f){var d=x.charCodeAt(f);return d>=65&&d<=70?d-55:d>=97&&d<=102?d-87:d-48&15}function h(x,f,d){var m=o(x,d);return d-1>=f&&(m|=o(x,d-1)<<4),m}a.prototype._parseHex=function(f,d,m){this.length=Math.ceil((f.length-d)/6),this.words=new Array(this.length);for(var g=0;g=d;g-=2)C=h(f,d,g)<=18?(M-=18,A+=1,this.words[A]|=C>>>26):M+=8;else{var _=f.length-d;for(g=_%2===0?d+1:d;g=18?(M-=18,A+=1,this.words[A]|=C>>>26):M+=8}this.strip()};function b(x,f,d,m){for(var g=0,M=Math.min(x.length,d),A=f;A=49?g+=C-49+10:C>=17?g+=C-17+10:g+=C}return g}a.prototype._parseBase=function(f,d,m){this.words=[0],this.length=1;for(var g=0,M=1;M<=67108863;M*=d)g++;g--,M=M/d|0;for(var A=f.length-m,C=A%g,_=Math.min(A,A-C)+m,u=0,S=m;S<_;S+=g)u=b(f,S,S+g,d),this.imuln(M),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(C!==0){var H=1;for(u=b(f,S,f.length,d),S=0;S1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var p=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],y=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],E=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(f,d){f=f||10,d=d|0||1;var m;if(f===16||f==="hex"){m="";for(var g=0,M=0,A=0;A>>24-g&16777215,M!==0||A!==this.length-1?m=p[6-_.length]+_+m:m=_+m,g+=2,g>=26&&(g-=26,A--)}for(M!==0&&(m=M.toString(16)+m);m.length%d!==0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}if(f===(f|0)&&f>=2&&f<=36){var u=y[f],S=E[f];m="";var H=this.clone();for(H.negative=0;!H.isZero();){var W=H.modn(S).toString(f);H=H.idivn(S),H.isZero()?m=W+m:m=p[u-W.length]+W+m}for(this.isZero()&&(m="0"+m);m.length%d!==0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}n(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var f=this.words[0];return this.length===2?f+=this.words[1]*67108864:this.length===3&&this.words[2]===1?f+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-f:f},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(f,d){return n(typeof s<"u"),this.toArrayLike(s,f,d)},a.prototype.toArray=function(f,d){return this.toArrayLike(Array,f,d)},a.prototype.toArrayLike=function(f,d,m){var g=this.byteLength(),M=m||Math.max(1,g);n(g<=M,"byte array longer than desired length"),n(M>0,"Requested array length <= 0"),this.strip();var A=d==="le",C=new f(M),_,u,S=this.clone();if(A){for(u=0;!S.isZero();u++)_=S.andln(255),S.iushrn(8),C[u]=_;for(;u=4096&&(m+=13,d>>>=13),d>=64&&(m+=7,d>>>=7),d>=8&&(m+=4,d>>>=4),d>=2&&(m+=2,d>>>=2),m+d},a.prototype._zeroBits=function(f){if(f===0)return 26;var d=f,m=0;return d&8191||(m+=13,d>>>=13),d&127||(m+=7,d>>>=7),d&15||(m+=4,d>>>=4),d&3||(m+=2,d>>>=2),d&1||m++,m},a.prototype.bitLength=function(){var f=this.words[this.length-1],d=this._countBits(f);return(this.length-1)*26+d};function O(x){for(var f=new Array(x.bitLength()),d=0;d>>g}return f}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var f=0,d=0;df.length?this.clone().ior(f):f.clone().ior(this)},a.prototype.uor=function(f){return this.length>f.length?this.clone().iuor(f):f.clone().iuor(this)},a.prototype.iuand=function(f){var d;this.length>f.length?d=f:d=this;for(var m=0;mf.length?this.clone().iand(f):f.clone().iand(this)},a.prototype.uand=function(f){return this.length>f.length?this.clone().iuand(f):f.clone().iuand(this)},a.prototype.iuxor=function(f){var d,m;this.length>f.length?(d=this,m=f):(d=f,m=this);for(var g=0;gf.length?this.clone().ixor(f):f.clone().ixor(this)},a.prototype.uxor=function(f){return this.length>f.length?this.clone().iuxor(f):f.clone().iuxor(this)},a.prototype.inotn=function(f){n(typeof f=="number"&&f>=0);var d=Math.ceil(f/26)|0,m=f%26;this._expand(d),m>0&&d--;for(var g=0;g0&&(this.words[g]=~this.words[g]&67108863>>26-m),this.strip()},a.prototype.notn=function(f){return this.clone().inotn(f)},a.prototype.setn=function(f,d){n(typeof f=="number"&&f>=0);var m=f/26|0,g=f%26;return this._expand(m+1),d?this.words[m]=this.words[m]|1<f.length?(m=this,g=f):(m=f,g=this);for(var M=0,A=0;A>>26;for(;M!==0&&A>>26;if(this.length=m.length,M!==0)this.words[this.length]=M,this.length++;else if(m!==this)for(;Af.length?this.clone().iadd(f):f.clone().iadd(this)},a.prototype.isub=function(f){if(f.negative!==0){f.negative=0;var d=this.iadd(f);return f.negative=1,d._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(f),this.negative=1,this._normSign();var m=this.cmp(f);if(m===0)return this.negative=0,this.length=1,this.words[0]=0,this;var g,M;m>0?(g=this,M=f):(g=f,M=this);for(var A=0,C=0;C>26,this.words[C]=d&67108863;for(;A!==0&&C>26,this.words[C]=d&67108863;if(A===0&&C>>26,H=_&67108863,W=Math.min(u,f.length-1),J=Math.max(0,u-x.length+1);J<=W;J++){var X=u-J|0;g=x.words[X]|0,M=f.words[J]|0,A=g*M+H,S+=A/67108864|0,H=A&67108863}d.words[u]=H|0,_=S|0}return _!==0?d.words[u]=_|0:d.length--,d.strip()}var T=function(f,d,m){var g=f.words,M=d.words,A=m.words,C=0,_,u,S,H=g[0]|0,W=H&8191,J=H>>>13,X=g[1]|0,ie=X&8191,se=X>>>13,Oe=g[2]|0,fe=Oe&8191,me=Oe>>>13,fr=g[3]|0,we=fr&8191,he=fr>>>13,kt=g[4]|0,Ee=kt&8191,Se=kt>>>13,Qt=g[5]|0,Ae=Qt&8191,Ie=Qt>>>13,ot=g[6]|0,pe=ot&8191,le=ot>>>13,er=g[7]|0,ge=er&8191,ue=er>>>13,Sr=g[8]|0,v=Sr&8191,l=Sr>>>13,c=g[9]|0,w=c&8191,I=c>>>13,$=M[0]|0,k=$&8191,Y=$>>>13,Me=M[1]|0,Q=Me&8191,te=Me>>>13,be=M[2]|0,Re=be&8191,Te=be>>>13,ao=M[3]|0,Pe=ao&8191,$e=ao>>>13,oo=M[4]|0,ke=oo&8191,Ne=oo>>>13,so=M[5]|0,De=so&8191,ze=so>>>13,fo=M[6]|0,Fe=fo&8191,Le=fo>>>13,lo=M[7]|0,je=lo&8191,Ue=lo>>>13,uo=M[8]|0,qe=uo&8191,He=uo>>>13,co=M[9]|0,Ve=co&8191,Ke=co>>>13;m.negative=f.negative^d.negative,m.length=19,_=Math.imul(W,k),u=Math.imul(W,Y),u=u+Math.imul(J,k)|0,S=Math.imul(J,Y);var Mi=(C+_|0)+((u&8191)<<13)|0;C=(S+(u>>>13)|0)+(Mi>>>26)|0,Mi&=67108863,_=Math.imul(ie,k),u=Math.imul(ie,Y),u=u+Math.imul(se,k)|0,S=Math.imul(se,Y),_=_+Math.imul(W,Q)|0,u=u+Math.imul(W,te)|0,u=u+Math.imul(J,Q)|0,S=S+Math.imul(J,te)|0;var _i=(C+_|0)+((u&8191)<<13)|0;C=(S+(u>>>13)|0)+(_i>>>26)|0,_i&=67108863,_=Math.imul(fe,k),u=Math.imul(fe,Y),u=u+Math.imul(me,k)|0,S=Math.imul(me,Y),_=_+Math.imul(ie,Q)|0,u=u+Math.imul(ie,te)|0,u=u+Math.imul(se,Q)|0,S=S+Math.imul(se,te)|0,_=_+Math.imul(W,Re)|0,u=u+Math.imul(W,Te)|0,u=u+Math.imul(J,Re)|0,S=S+Math.imul(J,Te)|0;var Ei=(C+_|0)+((u&8191)<<13)|0;C=(S+(u>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,_=Math.imul(we,k),u=Math.imul(we,Y),u=u+Math.imul(he,k)|0,S=Math.imul(he,Y),_=_+Math.imul(fe,Q)|0,u=u+Math.imul(fe,te)|0,u=u+Math.imul(me,Q)|0,S=S+Math.imul(me,te)|0,_=_+Math.imul(ie,Re)|0,u=u+Math.imul(ie,Te)|0,u=u+Math.imul(se,Re)|0,S=S+Math.imul(se,Te)|0,_=_+Math.imul(W,Pe)|0,u=u+Math.imul(W,$e)|0,u=u+Math.imul(J,Pe)|0,S=S+Math.imul(J,$e)|0;var Ai=(C+_|0)+((u&8191)<<13)|0;C=(S+(u>>>13)|0)+(Ai>>>26)|0,Ai&=67108863,_=Math.imul(Ee,k),u=Math.imul(Ee,Y),u=u+Math.imul(Se,k)|0,S=Math.imul(Se,Y),_=_+Math.imul(we,Q)|0,u=u+Math.imul(we,te)|0,u=u+Math.imul(he,Q)|0,S=S+Math.imul(he,te)|0,_=_+Math.imul(fe,Re)|0,u=u+Math.imul(fe,Te)|0,u=u+Math.imul(me,Re)|0,S=S+Math.imul(me,Te)|0,_=_+Math.imul(ie,Pe)|0,u=u+Math.imul(ie,$e)|0,u=u+Math.imul(se,Pe)|0,S=S+Math.imul(se,$e)|0,_=_+Math.imul(W,ke)|0,u=u+Math.imul(W,Ne)|0,u=u+Math.imul(J,ke)|0,S=S+Math.imul(J,Ne)|0;var Ii=(C+_|0)+((u&8191)<<13)|0;C=(S+(u>>>13)|0)+(Ii>>>26)|0,Ii&=67108863,_=Math.imul(Ae,k),u=Math.imul(Ae,Y),u=u+Math.imul(Ie,k)|0,S=Math.imul(Ie,Y),_=_+Math.imul(Ee,Q)|0,u=u+Math.imul(Ee,te)|0,u=u+Math.imul(Se,Q)|0,S=S+Math.imul(Se,te)|0,_=_+Math.imul(we,Re)|0,u=u+Math.imul(we,Te)|0,u=u+Math.imul(he,Re)|0,S=S+Math.imul(he,Te)|0,_=_+Math.imul(fe,Pe)|0,u=u+Math.imul(fe,$e)|0,u=u+Math.imul(me,Pe)|0,S=S+Math.imul(me,$e)|0,_=_+Math.imul(ie,ke)|0,u=u+Math.imul(ie,Ne)|0,u=u+Math.imul(se,ke)|0,S=S+Math.imul(se,Ne)|0,_=_+Math.imul(W,De)|0,u=u+Math.imul(W,ze)|0,u=u+Math.imul(J,De)|0,S=S+Math.imul(J,ze)|0;var Oi=(C+_|0)+((u&8191)<<13)|0;C=(S+(u>>>13)|0)+(Oi>>>26)|0,Oi&=67108863,_=Math.imul(pe,k),u=Math.imul(pe,Y),u=u+Math.imul(le,k)|0,S=Math.imul(le,Y),_=_+Math.imul(Ae,Q)|0,u=u+Math.imul(Ae,te)|0,u=u+Math.imul(Ie,Q)|0,S=S+Math.imul(Ie,te)|0,_=_+Math.imul(Ee,Re)|0,u=u+Math.imul(Ee,Te)|0,u=u+Math.imul(Se,Re)|0,S=S+Math.imul(Se,Te)|0,_=_+Math.imul(we,Pe)|0,u=u+Math.imul(we,$e)|0,u=u+Math.imul(he,Pe)|0,S=S+Math.imul(he,$e)|0,_=_+Math.imul(fe,ke)|0,u=u+Math.imul(fe,Ne)|0,u=u+Math.imul(me,ke)|0,S=S+Math.imul(me,Ne)|0,_=_+Math.imul(ie,De)|0,u=u+Math.imul(ie,ze)|0,u=u+Math.imul(se,De)|0,S=S+Math.imul(se,ze)|0,_=_+Math.imul(W,Fe)|0,u=u+Math.imul(W,Le)|0,u=u+Math.imul(J,Fe)|0,S=S+Math.imul(J,Le)|0;var Bi=(C+_|0)+((u&8191)<<13)|0;C=(S+(u>>>13)|0)+(Bi>>>26)|0,Bi&=67108863,_=Math.imul(ge,k),u=Math.imul(ge,Y),u=u+Math.imul(ue,k)|0,S=Math.imul(ue,Y),_=_+Math.imul(pe,Q)|0,u=u+Math.imul(pe,te)|0,u=u+Math.imul(le,Q)|0,S=S+Math.imul(le,te)|0,_=_+Math.imul(Ae,Re)|0,u=u+Math.imul(Ae,Te)|0,u=u+Math.imul(Ie,Re)|0,S=S+Math.imul(Ie,Te)|0,_=_+Math.imul(Ee,Pe)|0,u=u+Math.imul(Ee,$e)|0,u=u+Math.imul(Se,Pe)|0,S=S+Math.imul(Se,$e)|0,_=_+Math.imul(we,ke)|0,u=u+Math.imul(we,Ne)|0,u=u+Math.imul(he,ke)|0,S=S+Math.imul(he,Ne)|0,_=_+Math.imul(fe,De)|0,u=u+Math.imul(fe,ze)|0,u=u+Math.imul(me,De)|0,S=S+Math.imul(me,ze)|0,_=_+Math.imul(ie,Fe)|0,u=u+Math.imul(ie,Le)|0,u=u+Math.imul(se,Fe)|0,S=S+Math.imul(se,Le)|0,_=_+Math.imul(W,je)|0,u=u+Math.imul(W,Ue)|0,u=u+Math.imul(J,je)|0,S=S+Math.imul(J,Ue)|0;var Ci=(C+_|0)+((u&8191)<<13)|0;C=(S+(u>>>13)|0)+(Ci>>>26)|0,Ci&=67108863,_=Math.imul(v,k),u=Math.imul(v,Y),u=u+Math.imul(l,k)|0,S=Math.imul(l,Y),_=_+Math.imul(ge,Q)|0,u=u+Math.imul(ge,te)|0,u=u+Math.imul(ue,Q)|0,S=S+Math.imul(ue,te)|0,_=_+Math.imul(pe,Re)|0,u=u+Math.imul(pe,Te)|0,u=u+Math.imul(le,Re)|0,S=S+Math.imul(le,Te)|0,_=_+Math.imul(Ae,Pe)|0,u=u+Math.imul(Ae,$e)|0,u=u+Math.imul(Ie,Pe)|0,S=S+Math.imul(Ie,$e)|0,_=_+Math.imul(Ee,ke)|0,u=u+Math.imul(Ee,Ne)|0,u=u+Math.imul(Se,ke)|0,S=S+Math.imul(Se,Ne)|0,_=_+Math.imul(we,De)|0,u=u+Math.imul(we,ze)|0,u=u+Math.imul(he,De)|0,S=S+Math.imul(he,ze)|0,_=_+Math.imul(fe,Fe)|0,u=u+Math.imul(fe,Le)|0,u=u+Math.imul(me,Fe)|0,S=S+Math.imul(me,Le)|0,_=_+Math.imul(ie,je)|0,u=u+Math.imul(ie,Ue)|0,u=u+Math.imul(se,je)|0,S=S+Math.imul(se,Ue)|0,_=_+Math.imul(W,qe)|0,u=u+Math.imul(W,He)|0,u=u+Math.imul(J,qe)|0,S=S+Math.imul(J,He)|0;var Ri=(C+_|0)+((u&8191)<<13)|0;C=(S+(u>>>13)|0)+(Ri>>>26)|0,Ri&=67108863,_=Math.imul(w,k),u=Math.imul(w,Y),u=u+Math.imul(I,k)|0,S=Math.imul(I,Y),_=_+Math.imul(v,Q)|0,u=u+Math.imul(v,te)|0,u=u+Math.imul(l,Q)|0,S=S+Math.imul(l,te)|0,_=_+Math.imul(ge,Re)|0,u=u+Math.imul(ge,Te)|0,u=u+Math.imul(ue,Re)|0,S=S+Math.imul(ue,Te)|0,_=_+Math.imul(pe,Pe)|0,u=u+Math.imul(pe,$e)|0,u=u+Math.imul(le,Pe)|0,S=S+Math.imul(le,$e)|0,_=_+Math.imul(Ae,ke)|0,u=u+Math.imul(Ae,Ne)|0,u=u+Math.imul(Ie,ke)|0,S=S+Math.imul(Ie,Ne)|0,_=_+Math.imul(Ee,De)|0,u=u+Math.imul(Ee,ze)|0,u=u+Math.imul(Se,De)|0,S=S+Math.imul(Se,ze)|0,_=_+Math.imul(we,Fe)|0,u=u+Math.imul(we,Le)|0,u=u+Math.imul(he,Fe)|0,S=S+Math.imul(he,Le)|0,_=_+Math.imul(fe,je)|0,u=u+Math.imul(fe,Ue)|0,u=u+Math.imul(me,je)|0,S=S+Math.imul(me,Ue)|0,_=_+Math.imul(ie,qe)|0,u=u+Math.imul(ie,He)|0,u=u+Math.imul(se,qe)|0,S=S+Math.imul(se,He)|0,_=_+Math.imul(W,Ve)|0,u=u+Math.imul(W,Ke)|0,u=u+Math.imul(J,Ve)|0,S=S+Math.imul(J,Ke)|0;var Ti=(C+_|0)+((u&8191)<<13)|0;C=(S+(u>>>13)|0)+(Ti>>>26)|0,Ti&=67108863,_=Math.imul(w,Q),u=Math.imul(w,te),u=u+Math.imul(I,Q)|0,S=Math.imul(I,te),_=_+Math.imul(v,Re)|0,u=u+Math.imul(v,Te)|0,u=u+Math.imul(l,Re)|0,S=S+Math.imul(l,Te)|0,_=_+Math.imul(ge,Pe)|0,u=u+Math.imul(ge,$e)|0,u=u+Math.imul(ue,Pe)|0,S=S+Math.imul(ue,$e)|0,_=_+Math.imul(pe,ke)|0,u=u+Math.imul(pe,Ne)|0,u=u+Math.imul(le,ke)|0,S=S+Math.imul(le,Ne)|0,_=_+Math.imul(Ae,De)|0,u=u+Math.imul(Ae,ze)|0,u=u+Math.imul(Ie,De)|0,S=S+Math.imul(Ie,ze)|0,_=_+Math.imul(Ee,Fe)|0,u=u+Math.imul(Ee,Le)|0,u=u+Math.imul(Se,Fe)|0,S=S+Math.imul(Se,Le)|0,_=_+Math.imul(we,je)|0,u=u+Math.imul(we,Ue)|0,u=u+Math.imul(he,je)|0,S=S+Math.imul(he,Ue)|0,_=_+Math.imul(fe,qe)|0,u=u+Math.imul(fe,He)|0,u=u+Math.imul(me,qe)|0,S=S+Math.imul(me,He)|0,_=_+Math.imul(ie,Ve)|0,u=u+Math.imul(ie,Ke)|0,u=u+Math.imul(se,Ve)|0,S=S+Math.imul(se,Ke)|0;var Pi=(C+_|0)+((u&8191)<<13)|0;C=(S+(u>>>13)|0)+(Pi>>>26)|0,Pi&=67108863,_=Math.imul(w,Re),u=Math.imul(w,Te),u=u+Math.imul(I,Re)|0,S=Math.imul(I,Te),_=_+Math.imul(v,Pe)|0,u=u+Math.imul(v,$e)|0,u=u+Math.imul(l,Pe)|0,S=S+Math.imul(l,$e)|0,_=_+Math.imul(ge,ke)|0,u=u+Math.imul(ge,Ne)|0,u=u+Math.imul(ue,ke)|0,S=S+Math.imul(ue,Ne)|0,_=_+Math.imul(pe,De)|0,u=u+Math.imul(pe,ze)|0,u=u+Math.imul(le,De)|0,S=S+Math.imul(le,ze)|0,_=_+Math.imul(Ae,Fe)|0,u=u+Math.imul(Ae,Le)|0,u=u+Math.imul(Ie,Fe)|0,S=S+Math.imul(Ie,Le)|0,_=_+Math.imul(Ee,je)|0,u=u+Math.imul(Ee,Ue)|0,u=u+Math.imul(Se,je)|0,S=S+Math.imul(Se,Ue)|0,_=_+Math.imul(we,qe)|0,u=u+Math.imul(we,He)|0,u=u+Math.imul(he,qe)|0,S=S+Math.imul(he,He)|0,_=_+Math.imul(fe,Ve)|0,u=u+Math.imul(fe,Ke)|0,u=u+Math.imul(me,Ve)|0,S=S+Math.imul(me,Ke)|0;var $i=(C+_|0)+((u&8191)<<13)|0;C=(S+(u>>>13)|0)+($i>>>26)|0,$i&=67108863,_=Math.imul(w,Pe),u=Math.imul(w,$e),u=u+Math.imul(I,Pe)|0,S=Math.imul(I,$e),_=_+Math.imul(v,ke)|0,u=u+Math.imul(v,Ne)|0,u=u+Math.imul(l,ke)|0,S=S+Math.imul(l,Ne)|0,_=_+Math.imul(ge,De)|0,u=u+Math.imul(ge,ze)|0,u=u+Math.imul(ue,De)|0,S=S+Math.imul(ue,ze)|0,_=_+Math.imul(pe,Fe)|0,u=u+Math.imul(pe,Le)|0,u=u+Math.imul(le,Fe)|0,S=S+Math.imul(le,Le)|0,_=_+Math.imul(Ae,je)|0,u=u+Math.imul(Ae,Ue)|0,u=u+Math.imul(Ie,je)|0,S=S+Math.imul(Ie,Ue)|0,_=_+Math.imul(Ee,qe)|0,u=u+Math.imul(Ee,He)|0,u=u+Math.imul(Se,qe)|0,S=S+Math.imul(Se,He)|0,_=_+Math.imul(we,Ve)|0,u=u+Math.imul(we,Ke)|0,u=u+Math.imul(he,Ve)|0,S=S+Math.imul(he,Ke)|0;var ki=(C+_|0)+((u&8191)<<13)|0;C=(S+(u>>>13)|0)+(ki>>>26)|0,ki&=67108863,_=Math.imul(w,ke),u=Math.imul(w,Ne),u=u+Math.imul(I,ke)|0,S=Math.imul(I,Ne),_=_+Math.imul(v,De)|0,u=u+Math.imul(v,ze)|0,u=u+Math.imul(l,De)|0,S=S+Math.imul(l,ze)|0,_=_+Math.imul(ge,Fe)|0,u=u+Math.imul(ge,Le)|0,u=u+Math.imul(ue,Fe)|0,S=S+Math.imul(ue,Le)|0,_=_+Math.imul(pe,je)|0,u=u+Math.imul(pe,Ue)|0,u=u+Math.imul(le,je)|0,S=S+Math.imul(le,Ue)|0,_=_+Math.imul(Ae,qe)|0,u=u+Math.imul(Ae,He)|0,u=u+Math.imul(Ie,qe)|0,S=S+Math.imul(Ie,He)|0,_=_+Math.imul(Ee,Ve)|0,u=u+Math.imul(Ee,Ke)|0,u=u+Math.imul(Se,Ve)|0,S=S+Math.imul(Se,Ke)|0;var Ni=(C+_|0)+((u&8191)<<13)|0;C=(S+(u>>>13)|0)+(Ni>>>26)|0,Ni&=67108863,_=Math.imul(w,De),u=Math.imul(w,ze),u=u+Math.imul(I,De)|0,S=Math.imul(I,ze),_=_+Math.imul(v,Fe)|0,u=u+Math.imul(v,Le)|0,u=u+Math.imul(l,Fe)|0,S=S+Math.imul(l,Le)|0,_=_+Math.imul(ge,je)|0,u=u+Math.imul(ge,Ue)|0,u=u+Math.imul(ue,je)|0,S=S+Math.imul(ue,Ue)|0,_=_+Math.imul(pe,qe)|0,u=u+Math.imul(pe,He)|0,u=u+Math.imul(le,qe)|0,S=S+Math.imul(le,He)|0,_=_+Math.imul(Ae,Ve)|0,u=u+Math.imul(Ae,Ke)|0,u=u+Math.imul(Ie,Ve)|0,S=S+Math.imul(Ie,Ke)|0;var Di=(C+_|0)+((u&8191)<<13)|0;C=(S+(u>>>13)|0)+(Di>>>26)|0,Di&=67108863,_=Math.imul(w,Fe),u=Math.imul(w,Le),u=u+Math.imul(I,Fe)|0,S=Math.imul(I,Le),_=_+Math.imul(v,je)|0,u=u+Math.imul(v,Ue)|0,u=u+Math.imul(l,je)|0,S=S+Math.imul(l,Ue)|0,_=_+Math.imul(ge,qe)|0,u=u+Math.imul(ge,He)|0,u=u+Math.imul(ue,qe)|0,S=S+Math.imul(ue,He)|0,_=_+Math.imul(pe,Ve)|0,u=u+Math.imul(pe,Ke)|0,u=u+Math.imul(le,Ve)|0,S=S+Math.imul(le,Ke)|0;var zi=(C+_|0)+((u&8191)<<13)|0;C=(S+(u>>>13)|0)+(zi>>>26)|0,zi&=67108863,_=Math.imul(w,je),u=Math.imul(w,Ue),u=u+Math.imul(I,je)|0,S=Math.imul(I,Ue),_=_+Math.imul(v,qe)|0,u=u+Math.imul(v,He)|0,u=u+Math.imul(l,qe)|0,S=S+Math.imul(l,He)|0,_=_+Math.imul(ge,Ve)|0,u=u+Math.imul(ge,Ke)|0,u=u+Math.imul(ue,Ve)|0,S=S+Math.imul(ue,Ke)|0;var Fi=(C+_|0)+((u&8191)<<13)|0;C=(S+(u>>>13)|0)+(Fi>>>26)|0,Fi&=67108863,_=Math.imul(w,qe),u=Math.imul(w,He),u=u+Math.imul(I,qe)|0,S=Math.imul(I,He),_=_+Math.imul(v,Ve)|0,u=u+Math.imul(v,Ke)|0,u=u+Math.imul(l,Ve)|0,S=S+Math.imul(l,Ke)|0;var Li=(C+_|0)+((u&8191)<<13)|0;C=(S+(u>>>13)|0)+(Li>>>26)|0,Li&=67108863,_=Math.imul(w,Ve),u=Math.imul(w,Ke),u=u+Math.imul(I,Ve)|0,S=Math.imul(I,Ke);var ji=(C+_|0)+((u&8191)<<13)|0;return C=(S+(u>>>13)|0)+(ji>>>26)|0,ji&=67108863,A[0]=Mi,A[1]=_i,A[2]=Ei,A[3]=Ai,A[4]=Ii,A[5]=Oi,A[6]=Bi,A[7]=Ci,A[8]=Ri,A[9]=Ti,A[10]=Pi,A[11]=$i,A[12]=ki,A[13]=Ni,A[14]=Di,A[15]=zi,A[16]=Fi,A[17]=Li,A[18]=ji,C!==0&&(A[19]=C,m.length++),m};Math.imul||(T=B);function L(x,f,d){d.negative=f.negative^x.negative,d.length=x.length+f.length;for(var m=0,g=0,M=0;M>>26)|0,g+=A>>>26,A&=67108863}d.words[M]=C,m=A,A=g}return m!==0?d.words[M]=m:d.length--,d.strip()}function D(x,f,d){var m=new z;return m.mulp(x,f,d)}a.prototype.mulTo=function(f,d){var m,g=this.length+f.length;return this.length===10&&f.length===10?m=T(this,f,d):g<63?m=B(this,f,d):g<1024?m=L(this,f,d):m=D(this,f,d),m};function z(x,f){this.x=x,this.y=f}z.prototype.makeRBT=function(f){for(var d=new Array(f),m=a.prototype._countBits(f)-1,g=0;g>=1;return g},z.prototype.permute=function(f,d,m,g,M,A){for(var C=0;C>>1)M++;return 1<>>13,m[2*A+1]=M&8191,M=M>>>13;for(A=2*d;A>=26,d+=g/67108864|0,d+=M>>>26,this.words[m]=M&67108863}return d!==0&&(this.words[m]=d,this.length++),this},a.prototype.muln=function(f){return this.clone().imuln(f)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(f){var d=O(f);if(d.length===0)return new a(1);for(var m=this,g=0;g=0);var d=f%26,m=(f-d)/26,g=67108863>>>26-d<<26-d,M;if(d!==0){var A=0;for(M=0;M>>26-d}A&&(this.words[M]=A,this.length++)}if(m!==0){for(M=this.length-1;M>=0;M--)this.words[M+m]=this.words[M];for(M=0;M=0);var g;d?g=(d-d%26)/26:g=0;var M=f%26,A=Math.min((f-M)/26,this.length),C=67108863^67108863>>>M<A)for(this.length-=A,u=0;u=0&&(S!==0||u>=g);u--){var H=this.words[u]|0;this.words[u]=S<<26-M|H>>>M,S=H&C}return _&&S!==0&&(_.words[_.length++]=S),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(f,d,m){return n(this.negative===0),this.iushrn(f,d,m)},a.prototype.shln=function(f){return this.clone().ishln(f)},a.prototype.ushln=function(f){return this.clone().iushln(f)},a.prototype.shrn=function(f){return this.clone().ishrn(f)},a.prototype.ushrn=function(f){return this.clone().iushrn(f)},a.prototype.testn=function(f){n(typeof f=="number"&&f>=0);var d=f%26,m=(f-d)/26,g=1<=0);var d=f%26,m=(f-d)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=m)return this;if(d!==0&&m++,this.length=Math.min(m,this.length),d!==0){var g=67108863^67108863>>>d<=67108864;d++)this.words[d]-=67108864,d===this.length-1?this.words[d+1]=1:this.words[d+1]++;return this.length=Math.max(this.length,d+1),this},a.prototype.isubn=function(f){if(n(typeof f=="number"),n(f<67108864),f<0)return this.iaddn(-f);if(this.negative!==0)return this.negative=0,this.iaddn(f),this.negative=1,this;if(this.words[0]-=f,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var d=0;d>26)-(_/67108864|0),this.words[M+m]=A&67108863}for(;M>26,this.words[M+m]=A&67108863;if(C===0)return this.strip();for(n(C===-1),C=0,M=0;M>26,this.words[M]=A&67108863;return this.negative=1,this.strip()},a.prototype._wordDiv=function(f,d){var m=this.length-f.length,g=this.clone(),M=f,A=M.words[M.length-1]|0,C=this._countBits(A);m=26-C,m!==0&&(M=M.ushln(m),g.iushln(m),A=M.words[M.length-1]|0);var _=g.length-M.length,u;if(d!=="mod"){u=new a(null),u.length=_+1,u.words=new Array(u.length);for(var S=0;S=0;W--){var J=(g.words[M.length+W]|0)*67108864+(g.words[M.length+W-1]|0);for(J=Math.min(J/A|0,67108863),g._ishlnsubmul(M,J,W);g.negative!==0;)J--,g.negative=0,g._ishlnsubmul(M,1,W),g.isZero()||(g.negative^=1);u&&(u.words[W]=J)}return u&&u.strip(),g.strip(),d!=="div"&&m!==0&&g.iushrn(m),{div:u||null,mod:g}},a.prototype.divmod=function(f,d,m){if(n(!f.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var g,M,A;return this.negative!==0&&f.negative===0?(A=this.neg().divmod(f,d),d!=="mod"&&(g=A.div.neg()),d!=="div"&&(M=A.mod.neg(),m&&M.negative!==0&&M.iadd(f)),{div:g,mod:M}):this.negative===0&&f.negative!==0?(A=this.divmod(f.neg(),d),d!=="mod"&&(g=A.div.neg()),{div:g,mod:A.mod}):this.negative&f.negative?(A=this.neg().divmod(f.neg(),d),d!=="div"&&(M=A.mod.neg(),m&&M.negative!==0&&M.isub(f)),{div:A.div,mod:M}):f.length>this.length||this.cmp(f)<0?{div:new a(0),mod:this}:f.length===1?d==="div"?{div:this.divn(f.words[0]),mod:null}:d==="mod"?{div:null,mod:new a(this.modn(f.words[0]))}:{div:this.divn(f.words[0]),mod:new a(this.modn(f.words[0]))}:this._wordDiv(f,d)},a.prototype.div=function(f){return this.divmod(f,"div",!1).div},a.prototype.mod=function(f){return this.divmod(f,"mod",!1).mod},a.prototype.umod=function(f){return this.divmod(f,"mod",!0).mod},a.prototype.divRound=function(f){var d=this.divmod(f);if(d.mod.isZero())return d.div;var m=d.div.negative!==0?d.mod.isub(f):d.mod,g=f.ushrn(1),M=f.andln(1),A=m.cmp(g);return A<0||M===1&&A===0?d.div:d.div.negative!==0?d.div.isubn(1):d.div.iaddn(1)},a.prototype.modn=function(f){n(f<=67108863);for(var d=(1<<26)%f,m=0,g=this.length-1;g>=0;g--)m=(d*m+(this.words[g]|0))%f;return m},a.prototype.idivn=function(f){n(f<=67108863);for(var d=0,m=this.length-1;m>=0;m--){var g=(this.words[m]|0)+d*67108864;this.words[m]=g/f|0,d=g%f}return this.strip()},a.prototype.divn=function(f){return this.clone().idivn(f)},a.prototype.egcd=function(f){n(f.negative===0),n(!f.isZero());var d=this,m=f.clone();d.negative!==0?d=d.umod(f):d=d.clone();for(var g=new a(1),M=new a(0),A=new a(0),C=new a(1),_=0;d.isEven()&&m.isEven();)d.iushrn(1),m.iushrn(1),++_;for(var u=m.clone(),S=d.clone();!d.isZero();){for(var H=0,W=1;!(d.words[0]&W)&&H<26;++H,W<<=1);if(H>0)for(d.iushrn(H);H-- >0;)(g.isOdd()||M.isOdd())&&(g.iadd(u),M.isub(S)),g.iushrn(1),M.iushrn(1);for(var J=0,X=1;!(m.words[0]&X)&&J<26;++J,X<<=1);if(J>0)for(m.iushrn(J);J-- >0;)(A.isOdd()||C.isOdd())&&(A.iadd(u),C.isub(S)),A.iushrn(1),C.iushrn(1);d.cmp(m)>=0?(d.isub(m),g.isub(A),M.isub(C)):(m.isub(d),A.isub(g),C.isub(M))}return{a:A,b:C,gcd:m.iushln(_)}},a.prototype._invmp=function(f){n(f.negative===0),n(!f.isZero());var d=this,m=f.clone();d.negative!==0?d=d.umod(f):d=d.clone();for(var g=new a(1),M=new a(0),A=m.clone();d.cmpn(1)>0&&m.cmpn(1)>0;){for(var C=0,_=1;!(d.words[0]&_)&&C<26;++C,_<<=1);if(C>0)for(d.iushrn(C);C-- >0;)g.isOdd()&&g.iadd(A),g.iushrn(1);for(var u=0,S=1;!(m.words[0]&S)&&u<26;++u,S<<=1);if(u>0)for(m.iushrn(u);u-- >0;)M.isOdd()&&M.iadd(A),M.iushrn(1);d.cmp(m)>=0?(d.isub(m),g.isub(M)):(m.isub(d),M.isub(g))}var H;return d.cmpn(1)===0?H=g:H=M,H.cmpn(0)<0&&H.iadd(f),H},a.prototype.gcd=function(f){if(this.isZero())return f.abs();if(f.isZero())return this.abs();var d=this.clone(),m=f.clone();d.negative=0,m.negative=0;for(var g=0;d.isEven()&&m.isEven();g++)d.iushrn(1),m.iushrn(1);do{for(;d.isEven();)d.iushrn(1);for(;m.isEven();)m.iushrn(1);var M=d.cmp(m);if(M<0){var A=d;d=m,m=A}else if(M===0||m.cmpn(1)===0)break;d.isub(m)}while(!0);return m.iushln(g)},a.prototype.invm=function(f){return this.egcd(f).a.umod(f)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(f){return this.words[0]&f},a.prototype.bincn=function(f){n(typeof f=="number");var d=f%26,m=(f-d)/26,g=1<>>26,C&=67108863,this.words[A]=C}return M!==0&&(this.words[A]=M,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(f){var d=f<0;if(this.negative!==0&&!d)return-1;if(this.negative===0&&d)return 1;this.strip();var m;if(this.length>1)m=1;else{d&&(f=-f),n(f<=67108863,"Number is too big");var g=this.words[0]|0;m=g===f?0:gf.length)return 1;if(this.length=0;m--){var g=this.words[m]|0,M=f.words[m]|0;if(g!==M){gM&&(d=1);break}}return d},a.prototype.gtn=function(f){return this.cmpn(f)===1},a.prototype.gt=function(f){return this.cmp(f)===1},a.prototype.gten=function(f){return this.cmpn(f)>=0},a.prototype.gte=function(f){return this.cmp(f)>=0},a.prototype.ltn=function(f){return this.cmpn(f)===-1},a.prototype.lt=function(f){return this.cmp(f)===-1},a.prototype.lten=function(f){return this.cmpn(f)<=0},a.prototype.lte=function(f){return this.cmp(f)<=0},a.prototype.eqn=function(f){return this.cmpn(f)===0},a.prototype.eq=function(f){return this.cmp(f)===0},a.red=function(f){return new q(f)},a.prototype.toRed=function(f){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),f.convertTo(this)._forceRed(f)},a.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(f){return this.red=f,this},a.prototype.forceRed=function(f){return n(!this.red,"Already a number in reduction context"),this._forceRed(f)},a.prototype.redAdd=function(f){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,f)},a.prototype.redIAdd=function(f){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,f)},a.prototype.redSub=function(f){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,f)},a.prototype.redISub=function(f){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,f)},a.prototype.redShl=function(f){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,f)},a.prototype.redMul=function(f){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.mul(this,f)},a.prototype.redIMul=function(f){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.imul(this,f)},a.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(f){return n(this.red&&!f.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,f)};var R={k256:null,p224:null,p192:null,p25519:null};function N(x,f){this.name=x,this.p=new a(f,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}N.prototype._tmp=function(){var f=new a(null);return f.words=new Array(Math.ceil(this.n/13)),f},N.prototype.ireduce=function(f){var d=f,m;do this.split(d,this.tmp),d=this.imulK(d),d=d.iadd(this.tmp),m=d.bitLength();while(m>this.n);var g=m0?d.isub(this.p):d.strip!==void 0?d.strip():d._strip(),d},N.prototype.split=function(f,d){f.iushrn(this.n,0,d)},N.prototype.imulK=function(f){return f.imul(this.k)};function P(){N.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(P,N),P.prototype.split=function(f,d){for(var m=4194303,g=Math.min(f.length,9),M=0;M>>22,A=C}A>>>=22,f.words[M-10]=A,A===0&&f.length>10?f.length-=10:f.length-=9},P.prototype.imulK=function(f){f.words[f.length]=0,f.words[f.length+1]=0,f.length+=2;for(var d=0,m=0;m>>=26,f.words[m]=M,d=g}return d!==0&&(f.words[f.length++]=d),f},a._prime=function(f){if(R[f])return R[f];var d;if(f==="k256")d=new P;else if(f==="p224")d=new F;else if(f==="p192")d=new V;else if(f==="p25519")d=new j;else throw new Error("Unknown prime "+f);return R[f]=d,d};function q(x){if(typeof x=="string"){var f=a._prime(x);this.m=f.p,this.prime=f}else n(x.gtn(1),"modulus must be greater than 1"),this.m=x,this.prime=null}q.prototype._verify1=function(f){n(f.negative===0,"red works only with positives"),n(f.red,"red works only with red numbers")},q.prototype._verify2=function(f,d){n((f.negative|d.negative)===0,"red works only with positives"),n(f.red&&f.red===d.red,"red works only with red numbers")},q.prototype.imod=function(f){return this.prime?this.prime.ireduce(f)._forceRed(this):f.umod(this.m)._forceRed(this)},q.prototype.neg=function(f){return f.isZero()?f.clone():this.m.sub(f)._forceRed(this)},q.prototype.add=function(f,d){this._verify2(f,d);var m=f.add(d);return m.cmp(this.m)>=0&&m.isub(this.m),m._forceRed(this)},q.prototype.iadd=function(f,d){this._verify2(f,d);var m=f.iadd(d);return m.cmp(this.m)>=0&&m.isub(this.m),m},q.prototype.sub=function(f,d){this._verify2(f,d);var m=f.sub(d);return m.cmpn(0)<0&&m.iadd(this.m),m._forceRed(this)},q.prototype.isub=function(f,d){this._verify2(f,d);var m=f.isub(d);return m.cmpn(0)<0&&m.iadd(this.m),m},q.prototype.shl=function(f,d){return this._verify1(f),this.imod(f.ushln(d))},q.prototype.imul=function(f,d){return this._verify2(f,d),this.imod(f.imul(d))},q.prototype.mul=function(f,d){return this._verify2(f,d),this.imod(f.mul(d))},q.prototype.isqr=function(f){return this.imul(f,f.clone())},q.prototype.sqr=function(f){return this.mul(f,f)},q.prototype.sqrt=function(f){if(f.isZero())return f.clone();var d=this.m.andln(3);if(n(d%2===1),d===3){var m=this.m.add(new a(1)).iushrn(2);return this.pow(f,m)}for(var g=this.m.subn(1),M=0;!g.isZero()&&g.andln(1)===0;)M++,g.iushrn(1);n(!g.isZero());var A=new a(1).toRed(this),C=A.redNeg(),_=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);this.pow(u,_).cmp(C)!==0;)u.redIAdd(C);for(var S=this.pow(u,g),H=this.pow(f,g.addn(1).iushrn(1)),W=this.pow(f,g),J=M;W.cmp(A)!==0;){for(var X=W,ie=0;X.cmp(A)!==0;ie++)X=X.redSqr();n(ie=0;M--){for(var S=d.words[M],H=u-1;H>=0;H--){var W=S>>H&1;if(A!==g[0]&&(A=this.sqr(A)),W===0&&C===0){_=0;continue}C<<=1,C|=W,_++,!(_!==m&&(M!==0||H!==0))&&(A=this.mul(A,g[C]),_=0,C=0)}u=26}return A},q.prototype.convertTo=function(f){var d=f.umod(this.m);return d===f?d.clone():d},q.prototype.convertFrom=function(f){var d=f.clone();return d.red=null,d},a.mont=function(f){return new U(f)};function U(x){q.call(this,x),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}i(U,q),U.prototype.convertTo=function(f){return this.imod(f.ushln(this.shift))},U.prototype.convertFrom=function(f){var d=this.imod(f.mul(this.rinv));return d.red=null,d},U.prototype.imul=function(f,d){if(f.isZero()||d.isZero())return f.words[0]=0,f.length=1,f;var m=f.imul(d),g=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=m.isub(g).iushrn(this.shift),A=M;return M.cmp(this.m)>=0?A=M.isub(this.m):M.cmpn(0)<0&&(A=M.iadd(this.m)),A._forceRed(this)},U.prototype.mul=function(f,d){if(f.isZero()||d.isZero())return new a(0)._forceRed(this);var m=f.mul(d),g=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=m.isub(g).iushrn(this.shift),A=M;return M.cmp(this.m)>=0?A=M.isub(this.m):M.cmpn(0)<0&&(A=M.iadd(this.m)),A._forceRed(this)},U.prototype.invm=function(f){var d=this.imod(f._invmp(this.m).mul(this.r2));return d._forceRed(this)}})(t,Lc)})(Ua);var Tt=Ua.exports,Xs={},qa={},ba={exports:{}};typeof Object.create=="function"?ba.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:ba.exports=function(e,r){if(r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e}};var Pt=ba.exports,qn=oi,Kr=qn.Buffer,vt={},mt;for(mt in qn)qn.hasOwnProperty(mt)&&(mt==="SlowBuffer"||mt==="Buffer"||(vt[mt]=qn[mt]));var Wr=vt.Buffer={};for(mt in Kr)Kr.hasOwnProperty(mt)&&(mt==="allocUnsafe"||mt==="allocUnsafeSlow"||(Wr[mt]=Kr[mt]));vt.Buffer.prototype=Kr.prototype;(!Wr.from||Wr.from===Uint8Array.from)&&(Wr.from=function(t,e,r){if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof t);if(t&&typeof t.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);return Kr(t,e,r)});Wr.alloc||(Wr.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof t);if(t<0||t>=2*(1<<30))throw new RangeError('The value "'+t+'" is invalid for option "size"');var n=Kr(t);return!e||e.length===0?n.fill(0):typeof r=="string"?n.fill(e,r):n.fill(e),n});if(!vt.kStringMaxLength)try{vt.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch{}vt.constants||(vt.constants={MAX_LENGTH:vt.kMaxLength},vt.kStringMaxLength&&(vt.constants.MAX_STRING_LENGTH=vt.kStringMaxLength));var Ha=vt,ui={};const jd=Pt;function wt(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}ui.Reporter=wt;wt.prototype.isError=function(e){return e instanceof Qr};wt.prototype.save=function(){const e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}};wt.prototype.restore=function(e){const r=this._reporterState;r.obj=e.obj,r.path=r.path.slice(0,e.pathLen)};wt.prototype.enterKey=function(e){return this._reporterState.path.push(e)};wt.prototype.exitKey=function(e){const r=this._reporterState;r.path=r.path.slice(0,e-1)};wt.prototype.leaveKey=function(e,r,n){const i=this._reporterState;this.exitKey(e),i.obj!==null&&(i.obj[r]=n)};wt.prototype.path=function(){return this._reporterState.path.join("/")};wt.prototype.enterObject=function(){const e=this._reporterState,r=e.obj;return e.obj={},r};wt.prototype.leaveObject=function(e){const r=this._reporterState,n=r.obj;return r.obj=e,n};wt.prototype.error=function(e){let r;const n=this._reporterState,i=e instanceof Qr;if(i?r=e:r=new Qr(n.path.map(function(a){return"["+JSON.stringify(a)+"]"}).join(""),e.message||e,e.stack),!n.options.partial)throw r;return i||n.errors.push(r),r};wt.prototype.wrapResult=function(e){const r=this._reporterState;return r.options.partial?{result:this.isError(e)?null:e,errors:r.errors}:e};function Qr(t,e){this.path=t,this.rethrow(e)}jd(Qr,Error);Qr.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,Qr),!this.stack)try{throw new Error(this.message)}catch(r){this.stack=r.stack}return this};var kr={};const Ud=Pt,ci=ui.Reporter,en=Ha.Buffer;function gt(t,e){if(ci.call(this,e),!en.isBuffer(t)){this.error("Input not Buffer");return}this.base=t,this.offset=0,this.length=t.length}Ud(gt,ci);kr.DecoderBuffer=gt;gt.isDecoderBuffer=function(e){return e instanceof gt?!0:typeof e=="object"&&en.isBuffer(e.base)&&e.constructor.name==="DecoderBuffer"&&typeof e.offset=="number"&&typeof e.length=="number"&&typeof e.save=="function"&&typeof e.restore=="function"&&typeof e.isEmpty=="function"&&typeof e.readUInt8=="function"&&typeof e.skip=="function"&&typeof e.raw=="function"};gt.prototype.save=function(){return{offset:this.offset,reporter:ci.prototype.save.call(this)}};gt.prototype.restore=function(e){const r=new gt(this.base);return r.offset=e.offset,r.length=this.offset,this.offset=e.offset,ci.prototype.restore.call(this,e.reporter),r};gt.prototype.isEmpty=function(){return this.offset===this.length};gt.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")};gt.prototype.skip=function(e,r){if(!(this.offset+e<=this.length))return this.error(r||"DecoderBuffer overrun");const n=new gt(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+e,this.offset+=e,n};gt.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)};function tn(t,e){if(Array.isArray(t))this.length=0,this.value=t.map(function(r){return tn.isEncoderBuffer(r)||(r=new tn(r,e)),this.length+=r.length,r},this);else if(typeof t=="number"){if(!(0<=t&&t<=255))return e.error("non-byte EncoderBuffer value");this.value=t,this.length=1}else if(typeof t=="string")this.value=t,this.length=en.byteLength(t);else if(en.isBuffer(t))this.value=t,this.length=t.length;else return e.error("Unsupported type: "+typeof t)}kr.EncoderBuffer=tn;tn.isEncoderBuffer=function(e){return e instanceof tn?!0:typeof e=="object"&&e.constructor.name==="EncoderBuffer"&&typeof e.length=="number"&&typeof e.join=="function"};tn.prototype.join=function(e,r){return e||(e=en.alloc(this.length)),r||(r=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(n){n.join(e,r),r+=n.length}):(typeof this.value=="number"?e[r]=this.value:typeof this.value=="string"?e.write(this.value,r):en.isBuffer(this.value)&&this.value.copy(e,r),r+=this.length)),e};var xr=Gs;function Gs(t,e){if(!t)throw new Error(e||"Assertion failed")}Gs.equal=function(e,r,n){if(e!=r)throw new Error(n||"Assertion failed: "+e+" != "+r)};const qd=ui.Reporter,Hd=kr.EncoderBuffer,Vd=kr.DecoderBuffer,nt=xr,Zs=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],Kd=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(Zs),Wd=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function ye(t,e,r){const n={};this._baseState=n,n.name=r,n.enc=t,n.parent=e||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}var Va=ye;const Jd=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];ye.prototype.clone=function(){const e=this._baseState,r={};Jd.forEach(function(i){r[i]=e[i]});const n=new this.constructor(r.parent);return n._baseState=r,n};ye.prototype._wrap=function(){const e=this._baseState;Kd.forEach(function(r){this[r]=function(){const i=new this.constructor(this);return e.children.push(i),i[r].apply(i,arguments)}},this)};ye.prototype._init=function(e){const r=this._baseState;nt(r.parent===null),e.call(this),r.children=r.children.filter(function(n){return n._baseState.parent===this},this),nt.equal(r.children.length,1,"Root node can have only one child")};ye.prototype._useArgs=function(e){const r=this._baseState,n=e.filter(function(i){return i instanceof this.constructor},this);e=e.filter(function(i){return!(i instanceof this.constructor)},this),n.length!==0&&(nt(r.children===null),r.children=n,n.forEach(function(i){i._baseState.parent=this},this)),e.length!==0&&(nt(r.args===null),r.args=e,r.reverseArgs=e.map(function(i){if(typeof i!="object"||i.constructor!==Object)return i;const a={};return Object.keys(i).forEach(function(s){s==(s|0)&&(s|=0);const o=i[s];a[o]=s}),a}))};Wd.forEach(function(t){ye.prototype[t]=function(){const r=this._baseState;throw new Error(t+" not implemented for encoding: "+r.enc)}});Zs.forEach(function(t){ye.prototype[t]=function(){const r=this._baseState,n=Array.prototype.slice.call(arguments);return nt(r.tag===null),r.tag=t,this._useArgs(n),this}});ye.prototype.use=function(e){nt(e);const r=this._baseState;return nt(r.use===null),r.use=e,this};ye.prototype.optional=function(){const e=this._baseState;return e.optional=!0,this};ye.prototype.def=function(e){const r=this._baseState;return nt(r.default===null),r.default=e,r.optional=!0,this};ye.prototype.explicit=function(e){const r=this._baseState;return nt(r.explicit===null&&r.implicit===null),r.explicit=e,this};ye.prototype.implicit=function(e){const r=this._baseState;return nt(r.explicit===null&&r.implicit===null),r.implicit=e,this};ye.prototype.obj=function(){const e=this._baseState,r=Array.prototype.slice.call(arguments);return e.obj=!0,r.length!==0&&this._useArgs(r),this};ye.prototype.key=function(e){const r=this._baseState;return nt(r.key===null),r.key=e,this};ye.prototype.any=function(){const e=this._baseState;return e.any=!0,this};ye.prototype.choice=function(e){const r=this._baseState;return nt(r.choice===null),r.choice=e,this._useArgs(Object.keys(e).map(function(n){return e[n]})),this};ye.prototype.contains=function(e){const r=this._baseState;return nt(r.use===null),r.contains=e,this};ye.prototype._decode=function(e,r){const n=this._baseState;if(n.parent===null)return e.wrapResult(n.children[0]._decode(e,r));let i=n.default,a=!0,s=null;if(n.key!==null&&(s=e.enterKey(n.key)),n.optional){let h=null;if(n.explicit!==null?h=n.explicit:n.implicit!==null?h=n.implicit:n.tag!==null&&(h=n.tag),h===null&&!n.any){const b=e.save();try{n.choice===null?this._decodeGeneric(n.tag,e,r):this._decodeChoice(e,r),a=!0}catch{a=!1}e.restore(b)}else if(a=this._peekTag(e,h,n.any),e.isError(a))return a}let o;if(n.obj&&a&&(o=e.enterObject()),a){if(n.explicit!==null){const b=this._decodeTag(e,n.explicit);if(e.isError(b))return b;e=b}const h=e.offset;if(n.use===null&&n.choice===null){let b;n.any&&(b=e.save());const p=this._decodeTag(e,n.implicit!==null?n.implicit:n.tag,n.any);if(e.isError(p))return p;n.any?i=e.raw(b):e=p}if(r&&r.track&&n.tag!==null&&r.track(e.path(),h,e.length,"tagged"),r&&r.track&&n.tag!==null&&r.track(e.path(),e.offset,e.length,"content"),n.any||(n.choice===null?i=this._decodeGeneric(n.tag,e,r):i=this._decodeChoice(e,r)),e.isError(i))return i;if(!n.any&&n.choice===null&&n.children!==null&&n.children.forEach(function(p){p._decode(e,r)}),n.contains&&(n.tag==="octstr"||n.tag==="bitstr")){const b=new Vd(i);i=this._getUse(n.contains,e._reporterState.obj)._decode(b,r)}}return n.obj&&a&&(i=e.leaveObject(o)),n.key!==null&&(i!==null||a===!0)?e.leaveKey(s,n.key,i):s!==null&&e.exitKey(s),i};ye.prototype._decodeGeneric=function(e,r,n){const i=this._baseState;return e==="seq"||e==="set"?null:e==="seqof"||e==="setof"?this._decodeList(r,e,i.args[0],n):/str$/.test(e)?this._decodeStr(r,e,n):e==="objid"&&i.args?this._decodeObjid(r,i.args[0],i.args[1],n):e==="objid"?this._decodeObjid(r,null,null,n):e==="gentime"||e==="utctime"?this._decodeTime(r,e,n):e==="null_"?this._decodeNull(r,n):e==="bool"?this._decodeBool(r,n):e==="objDesc"?this._decodeStr(r,e,n):e==="int"||e==="enum"?this._decodeInt(r,i.args&&i.args[0],n):i.use!==null?this._getUse(i.use,r._reporterState.obj)._decode(r,n):r.error("unknown tag: "+e)};ye.prototype._getUse=function(e,r){const n=this._baseState;return n.useDecoder=this._use(e,r),nt(n.useDecoder._baseState.parent===null),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder};ye.prototype._decodeChoice=function(e,r){const n=this._baseState;let i=null,a=!1;return Object.keys(n.choice).some(function(s){const o=e.save(),h=n.choice[s];try{const b=h._decode(e,r);if(e.isError(b))return!1;i={type:s,value:b},a=!0}catch{return e.restore(o),!1}return!0},this),a?i:e.error("Choice not matched")};ye.prototype._createEncoderBuffer=function(e){return new Hd(e,this.reporter)};ye.prototype._encode=function(e,r,n){const i=this._baseState;if(i.default!==null&&i.default===e)return;const a=this._encodeValue(e,r,n);if(a!==void 0&&!this._skipDefault(a,r,n))return a};ye.prototype._encodeValue=function(e,r,n){const i=this._baseState;if(i.parent===null)return i.children[0]._encode(e,r||new qd);let a=null;if(this.reporter=r,i.optional&&e===void 0)if(i.default!==null)e=i.default;else return;let s=null,o=!1;if(i.any)a=this._createEncoderBuffer(e);else if(i.choice)a=this._encodeChoice(e,r);else if(i.contains)s=this._getUse(i.contains,n)._encode(e,r),o=!0;else if(i.children)s=i.children.map(function(h){if(h._baseState.tag==="null_")return h._encode(null,r,e);if(h._baseState.key===null)return r.error("Child should have a key");const b=r.enterKey(h._baseState.key);if(typeof e!="object")return r.error("Child expected, but input is not object");const p=h._encode(e[h._baseState.key],r,e);return r.leaveKey(b),p},this).filter(function(h){return h}),s=this._createEncoderBuffer(s);else if(i.tag==="seqof"||i.tag==="setof"){if(!(i.args&&i.args.length===1))return r.error("Too many args for : "+i.tag);if(!Array.isArray(e))return r.error("seqof/setof, but data is not Array");const h=this.clone();h._baseState.implicit=null,s=this._createEncoderBuffer(e.map(function(b){const p=this._baseState;return this._getUse(p.args[0],e)._encode(b,r)},h))}else i.use!==null?a=this._getUse(i.use,n)._encode(e,r):(s=this._encodePrimitive(i.tag,e),o=!0);if(!i.any&&i.choice===null){const h=i.implicit!==null?i.implicit:i.tag,b=i.implicit===null?"universal":"context";h===null?i.use===null&&r.error("Tag could be omitted only for .use()"):i.use===null&&(a=this._encodeComposite(h,o,b,s))}return i.explicit!==null&&(a=this._encodeComposite(i.explicit,!1,"context",a)),a};ye.prototype._encodeChoice=function(e,r){const n=this._baseState,i=n.choice[e.type];return i||nt(!1,e.type+" not found in "+JSON.stringify(Object.keys(n.choice))),i._encode(e.value,r)};ye.prototype._encodePrimitive=function(e,r){const n=this._baseState;if(/str$/.test(e))return this._encodeStr(r,e);if(e==="objid"&&n.args)return this._encodeObjid(r,n.reverseArgs[0],n.args[1]);if(e==="objid")return this._encodeObjid(r,null,null);if(e==="gentime"||e==="utctime")return this._encodeTime(r,e);if(e==="null_")return this._encodeNull();if(e==="int"||e==="enum")return this._encodeInt(r,n.args&&n.reverseArgs[0]);if(e==="bool")return this._encodeBool(r);if(e==="objDesc")return this._encodeStr(r,e);throw new Error("Unsupported tag: "+e)};ye.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)};ye.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)};var di={};(function(t){function e(r){const n={};return Object.keys(r).forEach(function(i){(i|0)==i&&(i=i|0);const a=r[i];n[a]=i}),n}t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=e(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=e(t.tag)})(di);const Yd=Pt,rr=Ha.Buffer,Qs=Va,Qi=di;function ef(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new $t,this.tree._init(t.body)}var tf=ef;ef.prototype.encode=function(e,r){return this.tree._encode(e,r).join()};function $t(t){Qs.call(this,"der",t)}Yd($t,Qs);$t.prototype._encodeComposite=function(e,r,n,i){const a=Xd(e,r,n,this.reporter);if(i.length<128){const h=rr.alloc(2);return h[0]=a,h[1]=i.length,this._createEncoderBuffer([h,i])}let s=1;for(let h=i.length;h>=256;h>>=8)s++;const o=rr.alloc(2+s);o[0]=a,o[1]=128|s;for(let h=1+s,b=i.length;b>0;h--,b>>=8)o[h]=b&255;return this._createEncoderBuffer([o,i])};$t.prototype._encodeStr=function(e,r){if(r==="bitstr")return this._createEncoderBuffer([e.unused|0,e.data]);if(r==="bmpstr"){const n=rr.alloc(e.length*2);for(let i=0;i=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,e[0]*40+e[1])}let i=0;for(let o=0;o=128;h>>=7)i++}const a=rr.alloc(i);let s=a.length-1;for(let o=e.length-1;o>=0;o--){let h=e[o];for(a[s--]=h&127;(h>>=7)>0;)a[s--]=128|h&127}return this._createEncoderBuffer(a)};function ht(t){return t<10?"0"+t:t}$t.prototype._encodeTime=function(e,r){let n;const i=new Date(e);return r==="gentime"?n=[ht(i.getUTCFullYear()),ht(i.getUTCMonth()+1),ht(i.getUTCDate()),ht(i.getUTCHours()),ht(i.getUTCMinutes()),ht(i.getUTCSeconds()),"Z"].join(""):r==="utctime"?n=[ht(i.getUTCFullYear()%100),ht(i.getUTCMonth()+1),ht(i.getUTCDate()),ht(i.getUTCHours()),ht(i.getUTCMinutes()),ht(i.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+r+" time is not supported yet"),this._encodeStr(n,"octstr")};$t.prototype._encodeNull=function(){return this._createEncoderBuffer("")};$t.prototype._encodeInt=function(e,r){if(typeof e=="string"){if(!r)return this.reporter.error("String int or enum given, but no values map");if(!r.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=r[e]}if(typeof e!="number"&&!rr.isBuffer(e)){const a=e.toArray();!e.sign&&a[0]&128&&a.unshift(0),e=rr.from(a)}if(rr.isBuffer(e)){let a=e.length;e.length===0&&a++;const s=rr.alloc(a);return e.copy(s),e.length===0&&(s[0]=0),this._createEncoderBuffer(s)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let n=1;for(let a=e;a>=256;a>>=8)n++;const i=new Array(n);for(let a=i.length-1;a>=0;a--)i[a]=e&255,e>>=8;return i[0]&128&&i.unshift(0),this._createEncoderBuffer(rr.from(i))};$t.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)};$t.prototype._use=function(e,r){return typeof e=="function"&&(e=e(r)),e._getEncoder("der").tree};$t.prototype._skipDefault=function(e,r,n){const i=this._baseState;let a;if(i.default===null)return!1;const s=e.join();if(i.defaultBuffer===void 0&&(i.defaultBuffer=this._encodeValue(i.default,r,n).join()),s.length!==i.defaultBuffer.length)return!1;for(a=0;a=31?n.error("Multi-octet tag encoding unsupported"):(e||(i|=32),i|=Qi.tagClassByName[r||"universal"]<<6,i)}const Gd=Pt,Ka=tf;function Wa(t){Ka.call(this,t),this.enc="pem"}Gd(Wa,Ka);var Zd=Wa;Wa.prototype.encode=function(e,r){const i=Ka.prototype.encode.call(this,e).toString("base64"),a=["-----BEGIN "+r.label+"-----"];for(let s=0;si)throw new RangeError('The value "'+v+'" is invalid for option "size"');const l=new Uint8Array(v);return Object.setPrototypeOf(l,o.prototype),l}function o(v,l,c){if(typeof v=="number"){if(typeof l=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return y(v)}return h(v,l,c)}o.poolSize=8192;function h(v,l,c){if(typeof v=="string")return E(v,l);if(ArrayBuffer.isView(v))return B(v);if(v==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof v);if(le(v,ArrayBuffer)||v&&le(v.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(le(v,SharedArrayBuffer)||v&&le(v.buffer,SharedArrayBuffer)))return T(v,l,c);if(typeof v=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const w=v.valueOf&&v.valueOf();if(w!=null&&w!==v)return o.from(w,l,c);const I=L(v);if(I)return I;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof v[Symbol.toPrimitive]=="function")return o.from(v[Symbol.toPrimitive]("string"),l,c);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof v)}o.from=function(v,l,c){return h(v,l,c)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function b(v){if(typeof v!="number")throw new TypeError('"size" argument must be of type number');if(v<0)throw new RangeError('The value "'+v+'" is invalid for option "size"')}function p(v,l,c){return b(v),v<=0?s(v):l!==void 0?typeof c=="string"?s(v).fill(l,c):s(v).fill(l):s(v)}o.alloc=function(v,l,c){return p(v,l,c)};function y(v){return b(v),s(v<0?0:D(v)|0)}o.allocUnsafe=function(v){return y(v)},o.allocUnsafeSlow=function(v){return y(v)};function E(v,l){if((typeof l!="string"||l==="")&&(l="utf8"),!o.isEncoding(l))throw new TypeError("Unknown encoding: "+l);const c=R(v,l)|0;let w=s(c);const I=w.write(v,l);return I!==c&&(w=w.slice(0,I)),w}function O(v){const l=v.length<0?0:D(v.length)|0,c=s(l);for(let w=0;w=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return v|0}function z(v){return+v!=v&&(v=0),o.alloc(+v)}o.isBuffer=function(l){return l!=null&&l._isBuffer===!0&&l!==o.prototype},o.compare=function(l,c){if(le(l,Uint8Array)&&(l=o.from(l,l.offset,l.byteLength)),le(c,Uint8Array)&&(c=o.from(c,c.offset,c.byteLength)),!o.isBuffer(l)||!o.isBuffer(c))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(l===c)return 0;let w=l.length,I=c.length;for(let $=0,k=Math.min(w,I);$I.length?(o.isBuffer(k)||(k=o.from(k)),k.copy(I,$)):Uint8Array.prototype.set.call(I,k,$);else if(o.isBuffer(k))k.copy(I,$);else throw new TypeError('"list" argument must be an Array of Buffers');$+=k.length}return I};function R(v,l){if(o.isBuffer(v))return v.length;if(ArrayBuffer.isView(v)||le(v,ArrayBuffer))return v.byteLength;if(typeof v!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof v);const c=v.length,w=arguments.length>2&&arguments[2]===!0;if(!w&&c===0)return 0;let I=!1;for(;;)switch(l){case"ascii":case"latin1":case"binary":return c;case"utf8":case"utf-8":return Qt(v).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c*2;case"hex":return c>>>1;case"base64":return ot(v).length;default:if(I)return w?-1:Qt(v).length;l=(""+l).toLowerCase(),I=!0}}o.byteLength=R;function N(v,l,c){let w=!1;if((l===void 0||l<0)&&(l=0),l>this.length||((c===void 0||c>this.length)&&(c=this.length),c<=0)||(c>>>=0,l>>>=0,c<=l))return"";for(v||(v="utf8");;)switch(v){case"hex":return _(this,l,c);case"utf8":case"utf-8":return m(this,l,c);case"ascii":return A(this,l,c);case"latin1":case"binary":return C(this,l,c);case"base64":return d(this,l,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u(this,l,c);default:if(w)throw new TypeError("Unknown encoding: "+v);v=(v+"").toLowerCase(),w=!0}}o.prototype._isBuffer=!0;function P(v,l,c){const w=v[l];v[l]=v[c],v[c]=w}o.prototype.swap16=function(){const l=this.length;if(l%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let c=0;cc&&(l+=" ... "),""},n&&(o.prototype[n]=o.prototype.inspect),o.prototype.compare=function(l,c,w,I,$){if(le(l,Uint8Array)&&(l=o.from(l,l.offset,l.byteLength)),!o.isBuffer(l))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof l);if(c===void 0&&(c=0),w===void 0&&(w=l?l.length:0),I===void 0&&(I=0),$===void 0&&($=this.length),c<0||w>l.length||I<0||$>this.length)throw new RangeError("out of range index");if(I>=$&&c>=w)return 0;if(I>=$)return-1;if(c>=w)return 1;if(c>>>=0,w>>>=0,I>>>=0,$>>>=0,this===l)return 0;let k=$-I,Y=w-c;const Me=Math.min(k,Y),Q=this.slice(I,$),te=l.slice(c,w);for(let be=0;be2147483647?c=2147483647:c<-2147483648&&(c=-2147483648),c=+c,er(c)&&(c=I?0:v.length-1),c<0&&(c=v.length+c),c>=v.length){if(I)return-1;c=v.length-1}else if(c<0)if(I)c=0;else return-1;if(typeof l=="string"&&(l=o.from(l,w)),o.isBuffer(l))return l.length===0?-1:V(v,l,c,w,I);if(typeof l=="number")return l=l&255,typeof Uint8Array.prototype.indexOf=="function"?I?Uint8Array.prototype.indexOf.call(v,l,c):Uint8Array.prototype.lastIndexOf.call(v,l,c):V(v,[l],c,w,I);throw new TypeError("val must be string, number or Buffer")}function V(v,l,c,w,I){let $=1,k=v.length,Y=l.length;if(w!==void 0&&(w=String(w).toLowerCase(),w==="ucs2"||w==="ucs-2"||w==="utf16le"||w==="utf-16le")){if(v.length<2||l.length<2)return-1;$=2,k/=2,Y/=2,c/=2}function Me(te,be){return $===1?te[be]:te.readUInt16BE(be*$)}let Q;if(I){let te=-1;for(Q=c;Qk&&(c=k-Y),Q=c;Q>=0;Q--){let te=!0;for(let be=0;beI&&(w=I)):w=I;const $=l.length;w>$/2&&(w=$/2);let k;for(k=0;k>>0,isFinite(w)?(w=w>>>0,I===void 0&&(I="utf8")):(I=w,w=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const $=this.length-c;if((w===void 0||w>$)&&(w=$),l.length>0&&(w<0||c<0)||c>this.length)throw new RangeError("Attempt to write outside buffer bounds");I||(I="utf8");let k=!1;for(;;)switch(I){case"hex":return j(this,l,c,w);case"utf8":case"utf-8":return q(this,l,c,w);case"ascii":case"latin1":case"binary":return U(this,l,c,w);case"base64":return x(this,l,c,w);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return f(this,l,c,w);default:if(k)throw new TypeError("Unknown encoding: "+I);I=(""+I).toLowerCase(),k=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function d(v,l,c){return l===0&&c===v.length?e.fromByteArray(v):e.fromByteArray(v.slice(l,c))}function m(v,l,c){c=Math.min(v.length,c);const w=[];let I=l;for(;I239?4:$>223?3:$>191?2:1;if(I+Y<=c){let Me,Q,te,be;switch(Y){case 1:$<128&&(k=$);break;case 2:Me=v[I+1],(Me&192)===128&&(be=($&31)<<6|Me&63,be>127&&(k=be));break;case 3:Me=v[I+1],Q=v[I+2],(Me&192)===128&&(Q&192)===128&&(be=($&15)<<12|(Me&63)<<6|Q&63,be>2047&&(be<55296||be>57343)&&(k=be));break;case 4:Me=v[I+1],Q=v[I+2],te=v[I+3],(Me&192)===128&&(Q&192)===128&&(te&192)===128&&(be=($&15)<<18|(Me&63)<<12|(Q&63)<<6|te&63,be>65535&&be<1114112&&(k=be))}}k===null?(k=65533,Y=1):k>65535&&(k-=65536,w.push(k>>>10&1023|55296),k=56320|k&1023),w.push(k),I+=Y}return M(w)}const g=4096;function M(v){const l=v.length;if(l<=g)return String.fromCharCode.apply(String,v);let c="",w=0;for(;ww)&&(c=w);let I="";for(let $=l;$w&&(l=w),c<0?(c+=w,c<0&&(c=0)):c>w&&(c=w),cc)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(l,c,w){l=l>>>0,c=c>>>0,w||S(l,c,this.length);let I=this[l],$=1,k=0;for(;++k>>0,c=c>>>0,w||S(l,c,this.length);let I=this[l+--c],$=1;for(;c>0&&($*=256);)I+=this[l+--c]*$;return I},o.prototype.readUint8=o.prototype.readUInt8=function(l,c){return l=l>>>0,c||S(l,1,this.length),this[l]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(l,c){return l=l>>>0,c||S(l,2,this.length),this[l]|this[l+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(l,c){return l=l>>>0,c||S(l,2,this.length),this[l]<<8|this[l+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(l,c){return l=l>>>0,c||S(l,4,this.length),(this[l]|this[l+1]<<8|this[l+2]<<16)+this[l+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(l,c){return l=l>>>0,c||S(l,4,this.length),this[l]*16777216+(this[l+1]<<16|this[l+2]<<8|this[l+3])},o.prototype.readBigUInt64LE=ue(function(l){l=l>>>0,he(l,"offset");const c=this[l],w=this[l+7];(c===void 0||w===void 0)&&kt(l,this.length-8);const I=c+this[++l]*2**8+this[++l]*2**16+this[++l]*2**24,$=this[++l]+this[++l]*2**8+this[++l]*2**16+w*2**24;return BigInt(I)+(BigInt($)<>>0,he(l,"offset");const c=this[l],w=this[l+7];(c===void 0||w===void 0)&&kt(l,this.length-8);const I=c*2**24+this[++l]*2**16+this[++l]*2**8+this[++l],$=this[++l]*2**24+this[++l]*2**16+this[++l]*2**8+w;return(BigInt(I)<>>0,c=c>>>0,w||S(l,c,this.length);let I=this[l],$=1,k=0;for(;++k=$&&(I-=Math.pow(2,8*c)),I},o.prototype.readIntBE=function(l,c,w){l=l>>>0,c=c>>>0,w||S(l,c,this.length);let I=c,$=1,k=this[l+--I];for(;I>0&&($*=256);)k+=this[l+--I]*$;return $*=128,k>=$&&(k-=Math.pow(2,8*c)),k},o.prototype.readInt8=function(l,c){return l=l>>>0,c||S(l,1,this.length),this[l]&128?(255-this[l]+1)*-1:this[l]},o.prototype.readInt16LE=function(l,c){l=l>>>0,c||S(l,2,this.length);const w=this[l]|this[l+1]<<8;return w&32768?w|4294901760:w},o.prototype.readInt16BE=function(l,c){l=l>>>0,c||S(l,2,this.length);const w=this[l+1]|this[l]<<8;return w&32768?w|4294901760:w},o.prototype.readInt32LE=function(l,c){return l=l>>>0,c||S(l,4,this.length),this[l]|this[l+1]<<8|this[l+2]<<16|this[l+3]<<24},o.prototype.readInt32BE=function(l,c){return l=l>>>0,c||S(l,4,this.length),this[l]<<24|this[l+1]<<16|this[l+2]<<8|this[l+3]},o.prototype.readBigInt64LE=ue(function(l){l=l>>>0,he(l,"offset");const c=this[l],w=this[l+7];(c===void 0||w===void 0)&&kt(l,this.length-8);const I=this[l+4]+this[l+5]*2**8+this[l+6]*2**16+(w<<24);return(BigInt(I)<>>0,he(l,"offset");const c=this[l],w=this[l+7];(c===void 0||w===void 0)&&kt(l,this.length-8);const I=(c<<24)+this[++l]*2**16+this[++l]*2**8+this[++l];return(BigInt(I)<>>0,c||S(l,4,this.length),r.read(this,l,!0,23,4)},o.prototype.readFloatBE=function(l,c){return l=l>>>0,c||S(l,4,this.length),r.read(this,l,!1,23,4)},o.prototype.readDoubleLE=function(l,c){return l=l>>>0,c||S(l,8,this.length),r.read(this,l,!0,52,8)},o.prototype.readDoubleBE=function(l,c){return l=l>>>0,c||S(l,8,this.length),r.read(this,l,!1,52,8)};function H(v,l,c,w,I,$){if(!o.isBuffer(v))throw new TypeError('"buffer" argument must be a Buffer instance');if(l>I||l<$)throw new RangeError('"value" argument is out of bounds');if(c+w>v.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(l,c,w,I){if(l=+l,c=c>>>0,w=w>>>0,!I){const Y=Math.pow(2,8*w)-1;H(this,l,c,w,Y,0)}let $=1,k=0;for(this[c]=l&255;++k>>0,w=w>>>0,!I){const Y=Math.pow(2,8*w)-1;H(this,l,c,w,Y,0)}let $=w-1,k=1;for(this[c+$]=l&255;--$>=0&&(k*=256);)this[c+$]=l/k&255;return c+w},o.prototype.writeUint8=o.prototype.writeUInt8=function(l,c,w){return l=+l,c=c>>>0,w||H(this,l,c,1,255,0),this[c]=l&255,c+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(l,c,w){return l=+l,c=c>>>0,w||H(this,l,c,2,65535,0),this[c]=l&255,this[c+1]=l>>>8,c+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(l,c,w){return l=+l,c=c>>>0,w||H(this,l,c,2,65535,0),this[c]=l>>>8,this[c+1]=l&255,c+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(l,c,w){return l=+l,c=c>>>0,w||H(this,l,c,4,4294967295,0),this[c+3]=l>>>24,this[c+2]=l>>>16,this[c+1]=l>>>8,this[c]=l&255,c+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(l,c,w){return l=+l,c=c>>>0,w||H(this,l,c,4,4294967295,0),this[c]=l>>>24,this[c+1]=l>>>16,this[c+2]=l>>>8,this[c+3]=l&255,c+4};function W(v,l,c,w,I){we(l,w,I,v,c,7);let $=Number(l&BigInt(4294967295));v[c++]=$,$=$>>8,v[c++]=$,$=$>>8,v[c++]=$,$=$>>8,v[c++]=$;let k=Number(l>>BigInt(32)&BigInt(4294967295));return v[c++]=k,k=k>>8,v[c++]=k,k=k>>8,v[c++]=k,k=k>>8,v[c++]=k,c}function J(v,l,c,w,I){we(l,w,I,v,c,7);let $=Number(l&BigInt(4294967295));v[c+7]=$,$=$>>8,v[c+6]=$,$=$>>8,v[c+5]=$,$=$>>8,v[c+4]=$;let k=Number(l>>BigInt(32)&BigInt(4294967295));return v[c+3]=k,k=k>>8,v[c+2]=k,k=k>>8,v[c+1]=k,k=k>>8,v[c]=k,c+8}o.prototype.writeBigUInt64LE=ue(function(l,c=0){return W(this,l,c,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=ue(function(l,c=0){return J(this,l,c,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(l,c,w,I){if(l=+l,c=c>>>0,!I){const Me=Math.pow(2,8*w-1);H(this,l,c,w,Me-1,-Me)}let $=0,k=1,Y=0;for(this[c]=l&255;++$>0)-Y&255;return c+w},o.prototype.writeIntBE=function(l,c,w,I){if(l=+l,c=c>>>0,!I){const Me=Math.pow(2,8*w-1);H(this,l,c,w,Me-1,-Me)}let $=w-1,k=1,Y=0;for(this[c+$]=l&255;--$>=0&&(k*=256);)l<0&&Y===0&&this[c+$+1]!==0&&(Y=1),this[c+$]=(l/k>>0)-Y&255;return c+w},o.prototype.writeInt8=function(l,c,w){return l=+l,c=c>>>0,w||H(this,l,c,1,127,-128),l<0&&(l=255+l+1),this[c]=l&255,c+1},o.prototype.writeInt16LE=function(l,c,w){return l=+l,c=c>>>0,w||H(this,l,c,2,32767,-32768),this[c]=l&255,this[c+1]=l>>>8,c+2},o.prototype.writeInt16BE=function(l,c,w){return l=+l,c=c>>>0,w||H(this,l,c,2,32767,-32768),this[c]=l>>>8,this[c+1]=l&255,c+2},o.prototype.writeInt32LE=function(l,c,w){return l=+l,c=c>>>0,w||H(this,l,c,4,2147483647,-2147483648),this[c]=l&255,this[c+1]=l>>>8,this[c+2]=l>>>16,this[c+3]=l>>>24,c+4},o.prototype.writeInt32BE=function(l,c,w){return l=+l,c=c>>>0,w||H(this,l,c,4,2147483647,-2147483648),l<0&&(l=4294967295+l+1),this[c]=l>>>24,this[c+1]=l>>>16,this[c+2]=l>>>8,this[c+3]=l&255,c+4},o.prototype.writeBigInt64LE=ue(function(l,c=0){return W(this,l,c,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=ue(function(l,c=0){return J(this,l,c,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function X(v,l,c,w,I,$){if(c+w>v.length)throw new RangeError("Index out of range");if(c<0)throw new RangeError("Index out of range")}function ie(v,l,c,w,I){return l=+l,c=c>>>0,I||X(v,l,c,4),r.write(v,l,c,w,23,4),c+4}o.prototype.writeFloatLE=function(l,c,w){return ie(this,l,c,!0,w)},o.prototype.writeFloatBE=function(l,c,w){return ie(this,l,c,!1,w)};function se(v,l,c,w,I){return l=+l,c=c>>>0,I||X(v,l,c,8),r.write(v,l,c,w,52,8),c+8}o.prototype.writeDoubleLE=function(l,c,w){return se(this,l,c,!0,w)},o.prototype.writeDoubleBE=function(l,c,w){return se(this,l,c,!1,w)},o.prototype.copy=function(l,c,w,I){if(!o.isBuffer(l))throw new TypeError("argument should be a Buffer");if(w||(w=0),!I&&I!==0&&(I=this.length),c>=l.length&&(c=l.length),c||(c=0),I>0&&I=this.length)throw new RangeError("Index out of range");if(I<0)throw new RangeError("sourceEnd out of bounds");I>this.length&&(I=this.length),l.length-c>>0,w=w===void 0?this.length:w>>>0,l||(l=0);let $;if(typeof l=="number")for($=c;$2**32?I=me(String(c)):typeof c=="bigint"&&(I=String(c),(c>BigInt(2)**BigInt(32)||c<-(BigInt(2)**BigInt(32)))&&(I=me(I)),I+="n"),w+=` It must be ${l}. Received ${I}`,w},RangeError);function me(v){let l="",c=v.length;const w=v[0]==="-"?1:0;for(;c>=w+4;c-=3)l=`_${v.slice(c-3,c)}${l}`;return`${v.slice(0,c)}${l}`}function fr(v,l,c){he(l,"offset"),(v[l]===void 0||v[l+c]===void 0)&&kt(l,v.length-(c+1))}function we(v,l,c,w,I,$){if(v>c||v= 0${k} and < 2${k} ** ${($+1)*8}${k}`:Y=`>= -(2${k} ** ${($+1)*8-1}${k}) and < 2 ** ${($+1)*8-1}${k}`,new Oe.ERR_OUT_OF_RANGE("value",Y,v)}fr(w,I,$)}function he(v,l){if(typeof v!="number")throw new Oe.ERR_INVALID_ARG_TYPE(l,"number",v)}function kt(v,l,c){throw Math.floor(v)!==v?(he(v,c),new Oe.ERR_OUT_OF_RANGE("offset","an integer",v)):l<0?new Oe.ERR_BUFFER_OUT_OF_BOUNDS:new Oe.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${l}`,v)}const Ee=/[^+/0-9A-Za-z-_]/g;function Se(v){if(v=v.split("=")[0],v=v.trim().replace(Ee,""),v.length<2)return"";for(;v.length%4!==0;)v=v+"=";return v}function Qt(v,l){l=l||1/0;let c;const w=v.length;let I=null;const $=[];for(let k=0;k55295&&c<57344){if(!I){if(c>56319){(l-=3)>-1&&$.push(239,191,189);continue}else if(k+1===w){(l-=3)>-1&&$.push(239,191,189);continue}I=c;continue}if(c<56320){(l-=3)>-1&&$.push(239,191,189),I=c;continue}c=(I-55296<<10|c-56320)+65536}else I&&(l-=3)>-1&&$.push(239,191,189);if(I=null,c<128){if((l-=1)<0)break;$.push(c)}else if(c<2048){if((l-=2)<0)break;$.push(c>>6|192,c&63|128)}else if(c<65536){if((l-=3)<0)break;$.push(c>>12|224,c>>6&63|128,c&63|128)}else if(c<1114112){if((l-=4)<0)break;$.push(c>>18|240,c>>12&63|128,c>>6&63|128,c&63|128)}else throw new Error("Invalid code point")}return $}function Ae(v){const l=[];for(let c=0;c>8,I=c%256,$.push(I),$.push(w);return $}function ot(v){return e.toByteArray(Se(v))}function pe(v,l,c,w){let I;for(I=0;I=l.length||I>=v.length);++I)l[I+c]=v[I];return I}function le(v,l){return v instanceof l||v!=null&&v.constructor!=null&&v.constructor.name!=null&&v.constructor.name===l.name}function er(v){return v!==v}const ge=function(){const v="0123456789abcdef",l=new Array(256);for(let c=0;c<16;++c){const w=c*16;for(let I=0;I<16;++I)l[w+I]=v[c]+v[I]}return l}();function ue(v){return typeof BigInt>"u"?Sr:v}function Sr(){throw new Error("BigInt not supported")}})(oi);const fi=crypto,zs=t=>t instanceof CryptoKey,Ur=new TextEncoder,pa=new TextDecoder;function Gc(...t){const e=t.reduce((i,{length:a})=>i+a,0),r=new Uint8Array(e);let n=0;for(const i of t)r.set(i,n),n+=i.length;return r}const Zc=t=>{let e=t;typeof e=="string"&&(e=Ur.encode(e));const r=32768,n=[];for(let i=0;iZc(t).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"),Qc=t=>{const e=atob(t),r=new Uint8Array(e.length);for(let n=0;n{let e=t;e instanceof Uint8Array&&(e=pa.decode(e)),e=e.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return Qc(e)}catch{throw new TypeError("The input to be decoded is not correctly encoded.")}};class za extends Error{static get code(){return"ERR_JOSE_GENERIC"}constructor(e){var r;super(e),this.code="ERR_JOSE_GENERIC",this.name=this.constructor.name,(r=Error.captureStackTrace)==null||r.call(Error,this,this.constructor)}}class br extends za{constructor(){super(...arguments),this.code="ERR_JOSE_NOT_SUPPORTED"}static get code(){return"ERR_JOSE_NOT_SUPPORTED"}}class xn extends za{constructor(){super(...arguments),this.code="ERR_JWS_INVALID"}static get code(){return"ERR_JWS_INVALID"}}class td extends za{constructor(){super(...arguments),this.code="ERR_JWT_INVALID"}static get code(){return"ERR_JWT_INVALID"}}function tr(t,e="algorithm.name"){return new TypeError(`CryptoKey does not support this operation, its ${e} must be ${t}`)}function Ln(t,e){return t.name===e}function Ji(t){return parseInt(t.name.slice(4),10)}function rd(t){switch(t){case"ES256":return"P-256";case"ES384":return"P-384";case"ES512":return"P-521";default:throw new Error("unreachable")}}function nd(t,e){if(e.length&&!e.some(r=>t.usages.includes(r))){let r="CryptoKey does not support this operation, its usages must include ";if(e.length>2){const n=e.pop();r+=`one of ${e.join(", ")}, or ${n}.`}else e.length===2?r+=`one of ${e[0]} or ${e[1]}.`:r+=`${e[0]}.`;throw new TypeError(r)}}function id(t,e,...r){switch(e){case"HS256":case"HS384":case"HS512":{if(!Ln(t.algorithm,"HMAC"))throw tr("HMAC");const n=parseInt(e.slice(2),10);if(Ji(t.algorithm.hash)!==n)throw tr(`SHA-${n}`,"algorithm.hash");break}case"RS256":case"RS384":case"RS512":{if(!Ln(t.algorithm,"RSASSA-PKCS1-v1_5"))throw tr("RSASSA-PKCS1-v1_5");const n=parseInt(e.slice(2),10);if(Ji(t.algorithm.hash)!==n)throw tr(`SHA-${n}`,"algorithm.hash");break}case"PS256":case"PS384":case"PS512":{if(!Ln(t.algorithm,"RSA-PSS"))throw tr("RSA-PSS");const n=parseInt(e.slice(2),10);if(Ji(t.algorithm.hash)!==n)throw tr(`SHA-${n}`,"algorithm.hash");break}case"EdDSA":{if(t.algorithm.name!=="Ed25519"&&t.algorithm.name!=="Ed448")throw tr("Ed25519 or Ed448");break}case"ES256":case"ES384":case"ES512":{if(!Ln(t.algorithm,"ECDSA"))throw tr("ECDSA");const n=rd(e);if(t.algorithm.namedCurve!==n)throw tr(n,"algorithm.namedCurve");break}default:throw new TypeError("CryptoKey does not support this operation")}nd(t,r)}function Fs(t,e,...r){var n;if(r.length>2){const i=r.pop();t+=`one of type ${r.join(", ")}, or ${i}.`}else r.length===2?t+=`one of type ${r[0]} or ${r[1]}.`:t+=`of type ${r[0]}.`;return e==null?t+=` Received ${e}`:typeof e=="function"&&e.name?t+=` Received function ${e.name}`:typeof e=="object"&&e!=null&&(n=e.constructor)!=null&&n.name&&(t+=` Received an instance of ${e.constructor.name}`),t}const Co=(t,...e)=>Fs("Key must be ",t,...e);function Ls(t,e,...r){return Fs(`Key for the ${t} algorithm must be `,e,...r)}const js=t=>zs(t)?!0:(t==null?void 0:t[Symbol.toStringTag])==="KeyObject",Yn=["CryptoKey"],ad=(...t)=>{const e=t.filter(Boolean);if(e.length===0||e.length===1)return!0;let r;for(const n of e){const i=Object.keys(n);if(!r||r.size===0){r=new Set(i);continue}for(const a of i){if(r.has(a))return!1;r.add(a)}}return!0};function od(t){return typeof t=="object"&&t!==null}function sd(t){if(!od(t)||Object.prototype.toString.call(t)!=="[object Object]")return!1;if(Object.getPrototypeOf(t)===null)return!0;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}const fd=(t,e)=>{if(t.startsWith("RS")||t.startsWith("PS")){const{modulusLength:r}=e.algorithm;if(typeof r!="number"||r<2048)throw new TypeError(`${t} requires key modulusLength to be 2048 bits or larger`)}};function ld(t){let e,r;switch(t.kty){case"RSA":{switch(t.alg){case"PS256":case"PS384":case"PS512":e={name:"RSA-PSS",hash:`SHA-${t.alg.slice(-3)}`},r=t.d?["sign"]:["verify"];break;case"RS256":case"RS384":case"RS512":e={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${t.alg.slice(-3)}`},r=t.d?["sign"]:["verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":e={name:"RSA-OAEP",hash:`SHA-${parseInt(t.alg.slice(-3),10)||1}`},r=t.d?["decrypt","unwrapKey"]:["encrypt","wrapKey"];break;default:throw new br('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break}case"EC":{switch(t.alg){case"ES256":e={name:"ECDSA",namedCurve:"P-256"},r=t.d?["sign"]:["verify"];break;case"ES384":e={name:"ECDSA",namedCurve:"P-384"},r=t.d?["sign"]:["verify"];break;case"ES512":e={name:"ECDSA",namedCurve:"P-521"},r=t.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":e={name:"ECDH",namedCurve:t.crv},r=t.d?["deriveBits"]:[];break;default:throw new br('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break}case"OKP":{switch(t.alg){case"EdDSA":e={name:t.crv},r=t.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":e={name:t.crv},r=t.d?["deriveBits"]:[];break;default:throw new br('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break}default:throw new br('Invalid or unsupported JWK "kty" (Key Type) Parameter value')}return{algorithm:e,keyUsages:r}}const ud=async t=>{if(!t.alg)throw new TypeError('"alg" argument is required when "jwk.alg" is not present');const{algorithm:e,keyUsages:r}=ld(t),n=[e,t.ext??!1,t.key_ops??r],i={...t};return delete i.alg,delete i.use,fi.subtle.importKey("jwk",i,...n)},Us=t=>ed(t);let Yi,Xi;const qs=t=>(t==null?void 0:t[Symbol.toStringTag])==="KeyObject",Hs=async(t,e,r,n)=>{let i=t.get(e);if(i!=null&&i[n])return i[n];const a=await ud({...r,alg:n});return i?i[n]=a:t.set(e,{[n]:a}),a},cd=(t,e)=>{if(qs(t)){let r=t.export({format:"jwk"});return delete r.d,delete r.dp,delete r.dq,delete r.p,delete r.q,delete r.qi,r.k?Us(r.k):(Xi||(Xi=new WeakMap),Hs(Xi,t,r,e))}return t},dd=(t,e)=>{if(qs(t)){let r=t.export({format:"jwk"});return r.k?Us(r.k):(Yi||(Yi=new WeakMap),Hs(Yi,t,r,e))}return t},hd={normalizePublicKey:cd,normalizePrivateKey:dd},cr=(t,e,r=0)=>{r===0&&(e.unshift(e.length),e.unshift(6));const n=t.indexOf(e[0],r);if(n===-1)return!1;const i=t.subarray(n,n+e.length);return i.length!==e.length?!1:i.every((a,s)=>a===e[s])||cr(t,e,n+1)},Ro=t=>{switch(!0){case cr(t,[42,134,72,206,61,3,1,7]):return"P-256";case cr(t,[43,129,4,0,34]):return"P-384";case cr(t,[43,129,4,0,35]):return"P-521";case cr(t,[43,101,110]):return"X25519";case cr(t,[43,101,111]):return"X448";case cr(t,[43,101,112]):return"Ed25519";case cr(t,[43,101,113]):return"Ed448";default:throw new br("Invalid or unsupported EC Key Curve or OKP Key Sub Type")}},pd=async(t,e,r,n,i)=>{let a,s;const o=new Uint8Array(atob(r.replace(t,"")).split("").map(h=>h.charCodeAt(0)));switch(n){case"PS256":case"PS384":case"PS512":a={name:"RSA-PSS",hash:`SHA-${n.slice(-3)}`},s=["sign"];break;case"RS256":case"RS384":case"RS512":a={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${n.slice(-3)}`},s=["sign"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":a={name:"RSA-OAEP",hash:`SHA-${parseInt(n.slice(-3),10)||1}`},s=["decrypt","unwrapKey"];break;case"ES256":a={name:"ECDSA",namedCurve:"P-256"},s=["sign"];break;case"ES384":a={name:"ECDSA",namedCurve:"P-384"},s=["sign"];break;case"ES512":a={name:"ECDSA",namedCurve:"P-521"},s=["sign"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{const h=Ro(o);a=h.startsWith("P-")?{name:"ECDH",namedCurve:h}:{name:h},s=["deriveBits"];break}case"EdDSA":a={name:Ro(o)},s=["sign"];break;default:throw new br('Invalid or unsupported "alg" (Algorithm) value')}return fi.subtle.importKey(e,o,a,!1,s)},bd=(t,e,r)=>pd(/(?:-----(?:BEGIN|END) PRIVATE KEY-----|\s)/g,"pkcs8",t,e);async function vd(t,e,r){if(typeof t!="string"||t.indexOf("-----BEGIN PRIVATE KEY-----")!==0)throw new TypeError('"pkcs8" must be PKCS#8 formatted string');return bd(t,e)}const Mn=t=>t==null?void 0:t[Symbol.toStringTag],md=(t,e)=>{if(!(e instanceof Uint8Array)){if(!js(e))throw new TypeError(Ls(t,e,...Yn,"Uint8Array"));if(e.type!=="secret")throw new TypeError(`${Mn(e)} instances for symmetric algorithms must be of type "secret"`)}},yd=(t,e,r)=>{if(!js(e))throw new TypeError(Ls(t,e,...Yn));if(e.type==="secret")throw new TypeError(`${Mn(e)} instances for asymmetric algorithms must not be of type "secret"`);if(e.type==="public")throw new TypeError(`${Mn(e)} instances for asymmetric algorithm signing must be of type "private"`);if(e.algorithm&&r==="verify"&&e.type==="private")throw new TypeError(`${Mn(e)} instances for asymmetric algorithm verifying must be of type "public"`);if(e.algorithm&&r==="encrypt"&&e.type==="private")throw new TypeError(`${Mn(e)} instances for asymmetric algorithm encryption must be of type "public"`)},gd=(t,e,r)=>{t.startsWith("HS")||t==="dir"||t.startsWith("PBES2")||/^A\d{3}(?:GCM)?KW$/.test(t)?md(t,e):yd(t,e,r)};function xd(t,e,r,n,i){if(i.crit!==void 0&&(n==null?void 0:n.crit)===void 0)throw new t('"crit" (Critical) Header Parameter MUST be integrity protected');if(!n||n.crit===void 0)return new Set;if(!Array.isArray(n.crit)||n.crit.length===0||n.crit.some(s=>typeof s!="string"||s.length===0))throw new t('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present');let a;r!==void 0?a=new Map([...Object.entries(r),...e.entries()]):a=e;for(const s of n.crit){if(!a.has(s))throw new br(`Extension Header Parameter "${s}" is not recognized`);if(i[s]===void 0)throw new t(`Extension Header Parameter "${s}" is missing`);if(a.get(s)&&n[s]===void 0)throw new t(`Extension Header Parameter "${s}" MUST be integrity protected`)}return new Set(n.crit)}function wd(t,e){const r=`SHA-${t.slice(-3)}`;switch(t){case"HS256":case"HS384":case"HS512":return{hash:r,name:"HMAC"};case"PS256":case"PS384":case"PS512":return{hash:r,name:"RSA-PSS",saltLength:t.slice(-3)>>3};case"RS256":case"RS384":case"RS512":return{hash:r,name:"RSASSA-PKCS1-v1_5"};case"ES256":case"ES384":case"ES512":return{hash:r,name:"ECDSA",namedCurve:e.namedCurve};case"EdDSA":return{name:e.name};default:throw new br(`alg ${t} is not supported either by JOSE or your javascript runtime`)}}async function Sd(t,e,r){if(e=await hd.normalizePrivateKey(e,t),zs(e))return id(e,t,r),e;if(e instanceof Uint8Array){if(!t.startsWith("HS"))throw new TypeError(Co(e,...Yn));return fi.subtle.importKey("raw",e,{hash:`SHA-${t.slice(-3)}`,name:"HMAC"},!1,[r])}throw new TypeError(Co(e,...Yn,"Uint8Array"))}const _r=t=>Math.floor(t.getTime()/1e3),Vs=60,Ks=Vs*60,Fa=Ks*24,Md=Fa*7,_d=Fa*365.25,Ed=/^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i,Gi=t=>{const e=Ed.exec(t);if(!e||e[4]&&e[1])throw new TypeError("Invalid time period format");const r=parseFloat(e[2]),n=e[3].toLowerCase();let i;switch(n){case"sec":case"secs":case"second":case"seconds":case"s":i=Math.round(r);break;case"minute":case"minutes":case"min":case"mins":case"m":i=Math.round(r*Vs);break;case"hour":case"hours":case"hr":case"hrs":case"h":i=Math.round(r*Ks);break;case"day":case"days":case"d":i=Math.round(r*Fa);break;case"week":case"weeks":case"w":i=Math.round(r*Md);break;default:i=Math.round(r*_d);break}return e[1]==="-"||e[4]==="ago"?-i:i},Ad=async(t,e,r)=>{const n=await Sd(t,e,"sign");fd(t,n);const i=await fi.subtle.sign(wd(t,n.algorithm),n,r);return new Uint8Array(i)};class Id{constructor(e){if(!(e instanceof Uint8Array))throw new TypeError("payload must be an instance of Uint8Array");this._payload=e}setProtectedHeader(e){if(this._protectedHeader)throw new TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setUnprotectedHeader(e){if(this._unprotectedHeader)throw new TypeError("setUnprotectedHeader can only be called once");return this._unprotectedHeader=e,this}async sign(e,r){if(!this._protectedHeader&&!this._unprotectedHeader)throw new xn("either setProtectedHeader or setUnprotectedHeader must be called before #sign()");if(!ad(this._protectedHeader,this._unprotectedHeader))throw new xn("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");const n={...this._protectedHeader,...this._unprotectedHeader},i=xd(xn,new Map([["b64",!0]]),r==null?void 0:r.crit,this._protectedHeader,n);let a=!0;if(i.has("b64")&&(a=this._protectedHeader.b64,typeof a!="boolean"))throw new xn('The "b64" (base64url-encode payload) Header Parameter must be a boolean');const{alg:s}=n;if(typeof s!="string"||!s)throw new xn('JWS "alg" (Algorithm) Header Parameter missing or invalid');gd(s,e,"sign");let o=this._payload;a&&(o=Ur.encode(Wi(o)));let h;this._protectedHeader?h=Ur.encode(Wi(JSON.stringify(this._protectedHeader))):h=Ur.encode("");const b=Gc(h,Ur.encode("."),o),p=await Ad(s,e,b),y={signature:Wi(p),payload:""};return a&&(y.payload=pa.decode(o)),this._unprotectedHeader&&(y.header=this._unprotectedHeader),this._protectedHeader&&(y.protected=pa.decode(h)),y}}class Od{constructor(e){this._flattened=new Id(e)}setProtectedHeader(e){return this._flattened.setProtectedHeader(e),this}async sign(e,r){const n=await this._flattened.sign(e,r);if(n.payload===void 0)throw new TypeError("use the flattened module for creating JWS with b64: false");return`${n.protected}.${n.payload}.${n.signature}`}}function Er(t,e){if(!Number.isFinite(e))throw new TypeError(`Invalid ${t} input`);return e}class Bd{constructor(e={}){if(!sd(e))throw new TypeError("JWT Claims Set MUST be an object");this._payload=e}setIssuer(e){return this._payload={...this._payload,iss:e},this}setSubject(e){return this._payload={...this._payload,sub:e},this}setAudience(e){return this._payload={...this._payload,aud:e},this}setJti(e){return this._payload={...this._payload,jti:e},this}setNotBefore(e){return typeof e=="number"?this._payload={...this._payload,nbf:Er("setNotBefore",e)}:e instanceof Date?this._payload={...this._payload,nbf:Er("setNotBefore",_r(e))}:this._payload={...this._payload,nbf:_r(new Date)+Gi(e)},this}setExpirationTime(e){return typeof e=="number"?this._payload={...this._payload,exp:Er("setExpirationTime",e)}:e instanceof Date?this._payload={...this._payload,exp:Er("setExpirationTime",_r(e))}:this._payload={...this._payload,exp:_r(new Date)+Gi(e)},this}setIssuedAt(e){return typeof e>"u"?this._payload={...this._payload,iat:_r(new Date)}:e instanceof Date?this._payload={...this._payload,iat:Er("setIssuedAt",_r(e))}:typeof e=="string"?this._payload={...this._payload,iat:Er("setIssuedAt",_r(new Date)+Gi(e))}:this._payload={...this._payload,iat:Er("setIssuedAt",e)},this}}class Cd extends Bd{setProtectedHeader(e){return this._protectedHeader=e,this}async sign(e,r){var i;const n=new Od(Ur.encode(JSON.stringify(this._payload)));if(n.setProtectedHeader(this._protectedHeader),Array.isArray((i=this._protectedHeader)==null?void 0:i.crit)&&this._protectedHeader.crit.includes("b64")&&this._protectedHeader.b64===!1)throw new td("JWTs MUST NOT use unencoded payload");return n.sign(e,r)}}class Ws extends Error{}function $r(t,e=!1){try{let r=t.split(".").map(s=>oi.Buffer.from(s,"base64").toString("utf-8"));const n=JSON.parse(r[0]),i=JSON.parse(r[1]);let a=[n,i];return e&&a.push(JSON.parse(r[2])),a}catch{throw new Ws}}function Xn(t){return btoa(JSON.stringify(t)).replace(/={1,2}$/,"")}async function li(t){let e,r;return t.alg?r=t.alg:r=t.header.alg,r.startsWith("HS")?e=new TextEncoder().encode(t.secretKey):e=await vd(t.secretKey,r),await new Cd(t.payload).setProtectedHeader({alg:t.alg,typ:"JWT",...t.header}).sign(e)}function Js(t){var r,n;for(var e in t)e=t[e],(r=document.getElementById(e))==null||r.classList.remove("border-error"),(n=document.getElementById(e))==null||n.classList.add("border-secondary-300")}function La(t){var r,n;for(var e in t)e=t[e],(r=document.getElementById(e))==null||r.classList.remove("border-secondary-300"),(n=document.getElementById(e))==null||n.classList.add("border-error")}function dr(t,e){var n;for(var r in e){const i=e[r];(n=document.getElementById(t))==null||n.classList.remove(i)}}function hr(t,e){var n;for(var r in e){const i=e[r];(n=document.getElementById(t))==null||n.classList.add(i)}}async function Zi(){return await li({header:{typ:"JWT",alg:"HS256"},payload:{sub:"1",name:"admin",groups:["user","admin"]},alg:Et.HS256,secretKey:"secret-to-sign-token"})}var Gn=(t=>(t.RANDOMIZE_VA_SPACE="../../../../../../../../../../../../../proc/sys/kernel/randomize_va_space",t.TIMER_MIGRATION="../../../../../../../../../../../../../proc/sys/kernel/timer_migration",t))(Gn||{}),qr=(t=>(t.NONE="none",t.FALSE="false",t.NULL="null",t.EMPTY="empty",t))(qr||{});function Rd(t,e){const r={[qr.NONE]:"none",[qr.EMPTY]:"",[qr.FALSE]:!1,[qr.NULL]:null};let[n,i]=$r(t);return n.alg=r[e],n=Xn(n),i=Xn(i),`${n}.${i}.`}async function Td(t,e,r=Et.HS256){let[n,i]=$r(t);return n.alg=r,await li({header:n,payload:i,alg:r,secretKey:e})}async function Pd(t,e){let[r,n]=$r(t);r.kid=e;const i={[Gn.TIMER_MIGRATION]:1,[Gn.RANDOMIZE_VA_SPACE]:2};return await li({header:r,payload:n,secretKey:i[e].toString()})}const $n=Zf("token",{state:()=>({value:""})}),$d={class:"flex justify-center"},kd=_e({__name:"none-attack",setup(t){const e=$n(),r=ai().value,n=ln({algorithms:Object.values(Et),options:{algorithm:""}});return Xe(n,async()=>{Js(["jwt-token"]);try{const i=Rd(e.value,n.options.algorithm);e.value=i,r.header=JSON.stringify($r(e.value)[0],null,2)}catch{La(["jwt-token"])}}),(i,a)=>{const s=Pn;return G(),oe("div",$d,[Be(s,{modelValue:Z(n).options.algorithm,"onUpdate:modelValue":a[0]||(a[0]=o=>Z(n).options.algorithm=o),options:Object.values(Z(qr)),size:"lg",color:"gray",class:"w-1/3",placeholder:"Select algorithm payload"},null,8,["modelValue","options"])])}}}),lr=Bn(st.ui.strategy,st.ui.textarea,wl),Nd=_e({inheritAttrs:!1,props:{modelValue:{type:[String,Number],default:""},id:{type:String,default:null},name:{type:String,default:null},placeholder:{type:String,default:null},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},rows:{type:Number,default:3},maxrows:{type:Number,default:0},autoresize:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!1},autofocusDelay:{type:Number,default:100},resize:{type:Boolean,default:!1},padded:{type:Boolean,default:!0},size:{type:String,default:null,validator(t){return Object.keys(lr.size).includes(t)}},color:{type:String,default:()=>lr.default.color,validator(t){return[...st.ui.colors,...Object.keys(lr.color)].includes(t)}},variant:{type:String,default:()=>lr.default.variant,validator(t){return[...Object.keys(lr.variant),...Object.values(lr.color).flatMap(e=>Object.keys(e))].includes(t)}},textareaClass:{type:String,default:null},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})},modelModifiers:{type:Object,default:()=>({})}},emits:["update:modelValue","blur","change"],setup(t,{emit:e}){const{ui:r,attrs:n}=Kn("textarea",Vr(t,"ui"),lr,Vr(t,"class")),{emitFormBlur:i,emitFormInput:a,inputId:s,color:o,size:h,name:b}=Ns(t,lr),p=re(Yo({},t.modelModifiers,{trim:!1,lazy:!1,number:!1})),y=re(null),E=()=>{var R;t.autofocus&&((R=y.value)==null||R.focus())},O=()=>{if(t.autoresize){if(!y.value)return;y.value.rows=t.rows;const R=window.getComputedStyle(y.value),N=parseInt(R.paddingTop),P=parseInt(R.paddingBottom),F=N+P,V=parseInt(R.lineHeight),{scrollHeight:j}=y.value,q=(j-F)/V;q>t.rows&&(y.value.rows=t.maxrows?Math.min(q,t.maxrows):q)}},B=R=>{p.value.trim&&(R=R.trim()),p.value.number&&(R=Qf(R)),e("update:modelValue",R),a()},T=R=>{O(),p.value.lazy||B(R.target.value)},L=R=>{const N=R.target.value;e("change",N),p.value.lazy&&B(N),p.value.trim&&(R.target.value=N.trim())},D=R=>{e("blur",R),i()};Ot(()=>{setTimeout(()=>{E()},t.autofocusDelay)}),Xe(()=>t.modelValue,()=>{rt(O)}),Ot(()=>{setTimeout(()=>{E(),O()},100)});const z=K(()=>{var N,P;const R=((P=(N=r.value.color)==null?void 0:N[o.value])==null?void 0:P[t.variant])||r.value.variant[t.variant];return Hn(Ft(r.value.base,r.value.form,r.value.rounded,r.value.placeholder,r.value.size[h.value],t.padded?r.value.padding[h.value]:"p-0",R==null?void 0:R.replaceAll("{color}",o.value),!t.resize&&"resize-none"),t.textareaClass)});return{ui:r,attrs:n,name:b,inputId:s,textarea:y,textareaClass:z,onInput:T,onChange:L,onBlur:D}}}),Dd=["id","value","name","rows","required","disabled","placeholder"];function zd(t,e,r,n,i,a){return G(),oe("div",{class:ce(t.ui.wrapper)},[ne("textarea",_n({id:t.inputId,ref:"textarea",value:t.modelValue,name:t.name,rows:t.rows,required:t.required,disabled:t.disabled,placeholder:t.placeholder,class:t.textareaClass},t.attrs,{onInput:e[0]||(e[0]=(...s)=>t.onInput&&t.onInput(...s)),onBlur:e[1]||(e[1]=(...s)=>t.onBlur&&t.onBlur(...s)),onChange:e[2]||(e[2]=(...s)=>t.onChange&&t.onChange(...s))}),null,16,Dd),zt(t.$slots,"default")],2)}const ja=On(Nd,[["render",zd]]);var gr={},Ua={exports:{}};const Fd={},Ld=Object.freeze(Object.defineProperty({__proto__:null,default:Fd},Symbol.toStringTag,{value:"Module"})),Ys=Uc(Ld);Ua.exports;(function(t){(function(e,r){function n(x,f){if(!x)throw new Error(f||"Assertion failed")}function i(x,f){x.super_=f;var d=function(){};d.prototype=f.prototype,x.prototype=new d,x.prototype.constructor=x}function a(x,f,d){if(a.isBN(x))return x;this.negative=0,this.words=null,this.length=0,this.red=null,x!==null&&((f==="le"||f==="be")&&(d=f,f=10),this._init(x||0,f||10,d||"be"))}typeof e=="object"?e.exports=a:r.BN=a,a.BN=a,a.wordSize=26;var s;try{typeof window<"u"&&typeof window.Buffer<"u"?s=window.Buffer:s=Ys.Buffer}catch{}a.isBN=function(f){return f instanceof a?!0:f!==null&&typeof f=="object"&&f.constructor.wordSize===a.wordSize&&Array.isArray(f.words)},a.max=function(f,d){return f.cmp(d)>0?f:d},a.min=function(f,d){return f.cmp(d)<0?f:d},a.prototype._init=function(f,d,m){if(typeof f=="number")return this._initNumber(f,d,m);if(typeof f=="object")return this._initArray(f,d,m);d==="hex"&&(d=16),n(d===(d|0)&&d>=2&&d<=36),f=f.toString().replace(/\s+/g,"");var g=0;f[0]==="-"&&(g++,this.negative=1),g=0;g-=3)A=f[g]|f[g-1]<<8|f[g-2]<<16,this.words[M]|=A<>>26-C&67108863,C+=24,C>=26&&(C-=26,M++);else if(m==="le")for(g=0,M=0;g>>26-C&67108863,C+=24,C>=26&&(C-=26,M++);return this.strip()};function o(x,f){var d=x.charCodeAt(f);return d>=65&&d<=70?d-55:d>=97&&d<=102?d-87:d-48&15}function h(x,f,d){var m=o(x,d);return d-1>=f&&(m|=o(x,d-1)<<4),m}a.prototype._parseHex=function(f,d,m){this.length=Math.ceil((f.length-d)/6),this.words=new Array(this.length);for(var g=0;g=d;g-=2)C=h(f,d,g)<=18?(M-=18,A+=1,this.words[A]|=C>>>26):M+=8;else{var _=f.length-d;for(g=_%2===0?d+1:d;g=18?(M-=18,A+=1,this.words[A]|=C>>>26):M+=8}this.strip()};function b(x,f,d,m){for(var g=0,M=Math.min(x.length,d),A=f;A=49?g+=C-49+10:C>=17?g+=C-17+10:g+=C}return g}a.prototype._parseBase=function(f,d,m){this.words=[0],this.length=1;for(var g=0,M=1;M<=67108863;M*=d)g++;g--,M=M/d|0;for(var A=f.length-m,C=A%g,_=Math.min(A,A-C)+m,u=0,S=m;S<_;S+=g)u=b(f,S,S+g,d),this.imuln(M),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(C!==0){var H=1;for(u=b(f,S,f.length,d),S=0;S1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var p=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],y=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],E=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(f,d){f=f||10,d=d|0||1;var m;if(f===16||f==="hex"){m="";for(var g=0,M=0,A=0;A>>24-g&16777215,M!==0||A!==this.length-1?m=p[6-_.length]+_+m:m=_+m,g+=2,g>=26&&(g-=26,A--)}for(M!==0&&(m=M.toString(16)+m);m.length%d!==0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}if(f===(f|0)&&f>=2&&f<=36){var u=y[f],S=E[f];m="";var H=this.clone();for(H.negative=0;!H.isZero();){var W=H.modn(S).toString(f);H=H.idivn(S),H.isZero()?m=W+m:m=p[u-W.length]+W+m}for(this.isZero()&&(m="0"+m);m.length%d!==0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}n(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var f=this.words[0];return this.length===2?f+=this.words[1]*67108864:this.length===3&&this.words[2]===1?f+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-f:f},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(f,d){return n(typeof s<"u"),this.toArrayLike(s,f,d)},a.prototype.toArray=function(f,d){return this.toArrayLike(Array,f,d)},a.prototype.toArrayLike=function(f,d,m){var g=this.byteLength(),M=m||Math.max(1,g);n(g<=M,"byte array longer than desired length"),n(M>0,"Requested array length <= 0"),this.strip();var A=d==="le",C=new f(M),_,u,S=this.clone();if(A){for(u=0;!S.isZero();u++)_=S.andln(255),S.iushrn(8),C[u]=_;for(;u=4096&&(m+=13,d>>>=13),d>=64&&(m+=7,d>>>=7),d>=8&&(m+=4,d>>>=4),d>=2&&(m+=2,d>>>=2),m+d},a.prototype._zeroBits=function(f){if(f===0)return 26;var d=f,m=0;return d&8191||(m+=13,d>>>=13),d&127||(m+=7,d>>>=7),d&15||(m+=4,d>>>=4),d&3||(m+=2,d>>>=2),d&1||m++,m},a.prototype.bitLength=function(){var f=this.words[this.length-1],d=this._countBits(f);return(this.length-1)*26+d};function O(x){for(var f=new Array(x.bitLength()),d=0;d>>g}return f}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var f=0,d=0;df.length?this.clone().ior(f):f.clone().ior(this)},a.prototype.uor=function(f){return this.length>f.length?this.clone().iuor(f):f.clone().iuor(this)},a.prototype.iuand=function(f){var d;this.length>f.length?d=f:d=this;for(var m=0;mf.length?this.clone().iand(f):f.clone().iand(this)},a.prototype.uand=function(f){return this.length>f.length?this.clone().iuand(f):f.clone().iuand(this)},a.prototype.iuxor=function(f){var d,m;this.length>f.length?(d=this,m=f):(d=f,m=this);for(var g=0;gf.length?this.clone().ixor(f):f.clone().ixor(this)},a.prototype.uxor=function(f){return this.length>f.length?this.clone().iuxor(f):f.clone().iuxor(this)},a.prototype.inotn=function(f){n(typeof f=="number"&&f>=0);var d=Math.ceil(f/26)|0,m=f%26;this._expand(d),m>0&&d--;for(var g=0;g0&&(this.words[g]=~this.words[g]&67108863>>26-m),this.strip()},a.prototype.notn=function(f){return this.clone().inotn(f)},a.prototype.setn=function(f,d){n(typeof f=="number"&&f>=0);var m=f/26|0,g=f%26;return this._expand(m+1),d?this.words[m]=this.words[m]|1<f.length?(m=this,g=f):(m=f,g=this);for(var M=0,A=0;A>>26;for(;M!==0&&A>>26;if(this.length=m.length,M!==0)this.words[this.length]=M,this.length++;else if(m!==this)for(;Af.length?this.clone().iadd(f):f.clone().iadd(this)},a.prototype.isub=function(f){if(f.negative!==0){f.negative=0;var d=this.iadd(f);return f.negative=1,d._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(f),this.negative=1,this._normSign();var m=this.cmp(f);if(m===0)return this.negative=0,this.length=1,this.words[0]=0,this;var g,M;m>0?(g=this,M=f):(g=f,M=this);for(var A=0,C=0;C>26,this.words[C]=d&67108863;for(;A!==0&&C>26,this.words[C]=d&67108863;if(A===0&&C>>26,H=_&67108863,W=Math.min(u,f.length-1),J=Math.max(0,u-x.length+1);J<=W;J++){var X=u-J|0;g=x.words[X]|0,M=f.words[J]|0,A=g*M+H,S+=A/67108864|0,H=A&67108863}d.words[u]=H|0,_=S|0}return _!==0?d.words[u]=_|0:d.length--,d.strip()}var T=function(f,d,m){var g=f.words,M=d.words,A=m.words,C=0,_,u,S,H=g[0]|0,W=H&8191,J=H>>>13,X=g[1]|0,ie=X&8191,se=X>>>13,Oe=g[2]|0,fe=Oe&8191,me=Oe>>>13,fr=g[3]|0,we=fr&8191,he=fr>>>13,kt=g[4]|0,Ee=kt&8191,Se=kt>>>13,Qt=g[5]|0,Ae=Qt&8191,Ie=Qt>>>13,ot=g[6]|0,pe=ot&8191,le=ot>>>13,er=g[7]|0,ge=er&8191,ue=er>>>13,Sr=g[8]|0,v=Sr&8191,l=Sr>>>13,c=g[9]|0,w=c&8191,I=c>>>13,$=M[0]|0,k=$&8191,Y=$>>>13,Me=M[1]|0,Q=Me&8191,te=Me>>>13,be=M[2]|0,Re=be&8191,Te=be>>>13,ao=M[3]|0,Pe=ao&8191,$e=ao>>>13,oo=M[4]|0,ke=oo&8191,Ne=oo>>>13,so=M[5]|0,De=so&8191,ze=so>>>13,fo=M[6]|0,Fe=fo&8191,Le=fo>>>13,lo=M[7]|0,je=lo&8191,Ue=lo>>>13,uo=M[8]|0,qe=uo&8191,He=uo>>>13,co=M[9]|0,Ve=co&8191,Ke=co>>>13;m.negative=f.negative^d.negative,m.length=19,_=Math.imul(W,k),u=Math.imul(W,Y),u=u+Math.imul(J,k)|0,S=Math.imul(J,Y);var Mi=(C+_|0)+((u&8191)<<13)|0;C=(S+(u>>>13)|0)+(Mi>>>26)|0,Mi&=67108863,_=Math.imul(ie,k),u=Math.imul(ie,Y),u=u+Math.imul(se,k)|0,S=Math.imul(se,Y),_=_+Math.imul(W,Q)|0,u=u+Math.imul(W,te)|0,u=u+Math.imul(J,Q)|0,S=S+Math.imul(J,te)|0;var _i=(C+_|0)+((u&8191)<<13)|0;C=(S+(u>>>13)|0)+(_i>>>26)|0,_i&=67108863,_=Math.imul(fe,k),u=Math.imul(fe,Y),u=u+Math.imul(me,k)|0,S=Math.imul(me,Y),_=_+Math.imul(ie,Q)|0,u=u+Math.imul(ie,te)|0,u=u+Math.imul(se,Q)|0,S=S+Math.imul(se,te)|0,_=_+Math.imul(W,Re)|0,u=u+Math.imul(W,Te)|0,u=u+Math.imul(J,Re)|0,S=S+Math.imul(J,Te)|0;var Ei=(C+_|0)+((u&8191)<<13)|0;C=(S+(u>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,_=Math.imul(we,k),u=Math.imul(we,Y),u=u+Math.imul(he,k)|0,S=Math.imul(he,Y),_=_+Math.imul(fe,Q)|0,u=u+Math.imul(fe,te)|0,u=u+Math.imul(me,Q)|0,S=S+Math.imul(me,te)|0,_=_+Math.imul(ie,Re)|0,u=u+Math.imul(ie,Te)|0,u=u+Math.imul(se,Re)|0,S=S+Math.imul(se,Te)|0,_=_+Math.imul(W,Pe)|0,u=u+Math.imul(W,$e)|0,u=u+Math.imul(J,Pe)|0,S=S+Math.imul(J,$e)|0;var Ai=(C+_|0)+((u&8191)<<13)|0;C=(S+(u>>>13)|0)+(Ai>>>26)|0,Ai&=67108863,_=Math.imul(Ee,k),u=Math.imul(Ee,Y),u=u+Math.imul(Se,k)|0,S=Math.imul(Se,Y),_=_+Math.imul(we,Q)|0,u=u+Math.imul(we,te)|0,u=u+Math.imul(he,Q)|0,S=S+Math.imul(he,te)|0,_=_+Math.imul(fe,Re)|0,u=u+Math.imul(fe,Te)|0,u=u+Math.imul(me,Re)|0,S=S+Math.imul(me,Te)|0,_=_+Math.imul(ie,Pe)|0,u=u+Math.imul(ie,$e)|0,u=u+Math.imul(se,Pe)|0,S=S+Math.imul(se,$e)|0,_=_+Math.imul(W,ke)|0,u=u+Math.imul(W,Ne)|0,u=u+Math.imul(J,ke)|0,S=S+Math.imul(J,Ne)|0;var Ii=(C+_|0)+((u&8191)<<13)|0;C=(S+(u>>>13)|0)+(Ii>>>26)|0,Ii&=67108863,_=Math.imul(Ae,k),u=Math.imul(Ae,Y),u=u+Math.imul(Ie,k)|0,S=Math.imul(Ie,Y),_=_+Math.imul(Ee,Q)|0,u=u+Math.imul(Ee,te)|0,u=u+Math.imul(Se,Q)|0,S=S+Math.imul(Se,te)|0,_=_+Math.imul(we,Re)|0,u=u+Math.imul(we,Te)|0,u=u+Math.imul(he,Re)|0,S=S+Math.imul(he,Te)|0,_=_+Math.imul(fe,Pe)|0,u=u+Math.imul(fe,$e)|0,u=u+Math.imul(me,Pe)|0,S=S+Math.imul(me,$e)|0,_=_+Math.imul(ie,ke)|0,u=u+Math.imul(ie,Ne)|0,u=u+Math.imul(se,ke)|0,S=S+Math.imul(se,Ne)|0,_=_+Math.imul(W,De)|0,u=u+Math.imul(W,ze)|0,u=u+Math.imul(J,De)|0,S=S+Math.imul(J,ze)|0;var Oi=(C+_|0)+((u&8191)<<13)|0;C=(S+(u>>>13)|0)+(Oi>>>26)|0,Oi&=67108863,_=Math.imul(pe,k),u=Math.imul(pe,Y),u=u+Math.imul(le,k)|0,S=Math.imul(le,Y),_=_+Math.imul(Ae,Q)|0,u=u+Math.imul(Ae,te)|0,u=u+Math.imul(Ie,Q)|0,S=S+Math.imul(Ie,te)|0,_=_+Math.imul(Ee,Re)|0,u=u+Math.imul(Ee,Te)|0,u=u+Math.imul(Se,Re)|0,S=S+Math.imul(Se,Te)|0,_=_+Math.imul(we,Pe)|0,u=u+Math.imul(we,$e)|0,u=u+Math.imul(he,Pe)|0,S=S+Math.imul(he,$e)|0,_=_+Math.imul(fe,ke)|0,u=u+Math.imul(fe,Ne)|0,u=u+Math.imul(me,ke)|0,S=S+Math.imul(me,Ne)|0,_=_+Math.imul(ie,De)|0,u=u+Math.imul(ie,ze)|0,u=u+Math.imul(se,De)|0,S=S+Math.imul(se,ze)|0,_=_+Math.imul(W,Fe)|0,u=u+Math.imul(W,Le)|0,u=u+Math.imul(J,Fe)|0,S=S+Math.imul(J,Le)|0;var Bi=(C+_|0)+((u&8191)<<13)|0;C=(S+(u>>>13)|0)+(Bi>>>26)|0,Bi&=67108863,_=Math.imul(ge,k),u=Math.imul(ge,Y),u=u+Math.imul(ue,k)|0,S=Math.imul(ue,Y),_=_+Math.imul(pe,Q)|0,u=u+Math.imul(pe,te)|0,u=u+Math.imul(le,Q)|0,S=S+Math.imul(le,te)|0,_=_+Math.imul(Ae,Re)|0,u=u+Math.imul(Ae,Te)|0,u=u+Math.imul(Ie,Re)|0,S=S+Math.imul(Ie,Te)|0,_=_+Math.imul(Ee,Pe)|0,u=u+Math.imul(Ee,$e)|0,u=u+Math.imul(Se,Pe)|0,S=S+Math.imul(Se,$e)|0,_=_+Math.imul(we,ke)|0,u=u+Math.imul(we,Ne)|0,u=u+Math.imul(he,ke)|0,S=S+Math.imul(he,Ne)|0,_=_+Math.imul(fe,De)|0,u=u+Math.imul(fe,ze)|0,u=u+Math.imul(me,De)|0,S=S+Math.imul(me,ze)|0,_=_+Math.imul(ie,Fe)|0,u=u+Math.imul(ie,Le)|0,u=u+Math.imul(se,Fe)|0,S=S+Math.imul(se,Le)|0,_=_+Math.imul(W,je)|0,u=u+Math.imul(W,Ue)|0,u=u+Math.imul(J,je)|0,S=S+Math.imul(J,Ue)|0;var Ci=(C+_|0)+((u&8191)<<13)|0;C=(S+(u>>>13)|0)+(Ci>>>26)|0,Ci&=67108863,_=Math.imul(v,k),u=Math.imul(v,Y),u=u+Math.imul(l,k)|0,S=Math.imul(l,Y),_=_+Math.imul(ge,Q)|0,u=u+Math.imul(ge,te)|0,u=u+Math.imul(ue,Q)|0,S=S+Math.imul(ue,te)|0,_=_+Math.imul(pe,Re)|0,u=u+Math.imul(pe,Te)|0,u=u+Math.imul(le,Re)|0,S=S+Math.imul(le,Te)|0,_=_+Math.imul(Ae,Pe)|0,u=u+Math.imul(Ae,$e)|0,u=u+Math.imul(Ie,Pe)|0,S=S+Math.imul(Ie,$e)|0,_=_+Math.imul(Ee,ke)|0,u=u+Math.imul(Ee,Ne)|0,u=u+Math.imul(Se,ke)|0,S=S+Math.imul(Se,Ne)|0,_=_+Math.imul(we,De)|0,u=u+Math.imul(we,ze)|0,u=u+Math.imul(he,De)|0,S=S+Math.imul(he,ze)|0,_=_+Math.imul(fe,Fe)|0,u=u+Math.imul(fe,Le)|0,u=u+Math.imul(me,Fe)|0,S=S+Math.imul(me,Le)|0,_=_+Math.imul(ie,je)|0,u=u+Math.imul(ie,Ue)|0,u=u+Math.imul(se,je)|0,S=S+Math.imul(se,Ue)|0,_=_+Math.imul(W,qe)|0,u=u+Math.imul(W,He)|0,u=u+Math.imul(J,qe)|0,S=S+Math.imul(J,He)|0;var Ri=(C+_|0)+((u&8191)<<13)|0;C=(S+(u>>>13)|0)+(Ri>>>26)|0,Ri&=67108863,_=Math.imul(w,k),u=Math.imul(w,Y),u=u+Math.imul(I,k)|0,S=Math.imul(I,Y),_=_+Math.imul(v,Q)|0,u=u+Math.imul(v,te)|0,u=u+Math.imul(l,Q)|0,S=S+Math.imul(l,te)|0,_=_+Math.imul(ge,Re)|0,u=u+Math.imul(ge,Te)|0,u=u+Math.imul(ue,Re)|0,S=S+Math.imul(ue,Te)|0,_=_+Math.imul(pe,Pe)|0,u=u+Math.imul(pe,$e)|0,u=u+Math.imul(le,Pe)|0,S=S+Math.imul(le,$e)|0,_=_+Math.imul(Ae,ke)|0,u=u+Math.imul(Ae,Ne)|0,u=u+Math.imul(Ie,ke)|0,S=S+Math.imul(Ie,Ne)|0,_=_+Math.imul(Ee,De)|0,u=u+Math.imul(Ee,ze)|0,u=u+Math.imul(Se,De)|0,S=S+Math.imul(Se,ze)|0,_=_+Math.imul(we,Fe)|0,u=u+Math.imul(we,Le)|0,u=u+Math.imul(he,Fe)|0,S=S+Math.imul(he,Le)|0,_=_+Math.imul(fe,je)|0,u=u+Math.imul(fe,Ue)|0,u=u+Math.imul(me,je)|0,S=S+Math.imul(me,Ue)|0,_=_+Math.imul(ie,qe)|0,u=u+Math.imul(ie,He)|0,u=u+Math.imul(se,qe)|0,S=S+Math.imul(se,He)|0,_=_+Math.imul(W,Ve)|0,u=u+Math.imul(W,Ke)|0,u=u+Math.imul(J,Ve)|0,S=S+Math.imul(J,Ke)|0;var Ti=(C+_|0)+((u&8191)<<13)|0;C=(S+(u>>>13)|0)+(Ti>>>26)|0,Ti&=67108863,_=Math.imul(w,Q),u=Math.imul(w,te),u=u+Math.imul(I,Q)|0,S=Math.imul(I,te),_=_+Math.imul(v,Re)|0,u=u+Math.imul(v,Te)|0,u=u+Math.imul(l,Re)|0,S=S+Math.imul(l,Te)|0,_=_+Math.imul(ge,Pe)|0,u=u+Math.imul(ge,$e)|0,u=u+Math.imul(ue,Pe)|0,S=S+Math.imul(ue,$e)|0,_=_+Math.imul(pe,ke)|0,u=u+Math.imul(pe,Ne)|0,u=u+Math.imul(le,ke)|0,S=S+Math.imul(le,Ne)|0,_=_+Math.imul(Ae,De)|0,u=u+Math.imul(Ae,ze)|0,u=u+Math.imul(Ie,De)|0,S=S+Math.imul(Ie,ze)|0,_=_+Math.imul(Ee,Fe)|0,u=u+Math.imul(Ee,Le)|0,u=u+Math.imul(Se,Fe)|0,S=S+Math.imul(Se,Le)|0,_=_+Math.imul(we,je)|0,u=u+Math.imul(we,Ue)|0,u=u+Math.imul(he,je)|0,S=S+Math.imul(he,Ue)|0,_=_+Math.imul(fe,qe)|0,u=u+Math.imul(fe,He)|0,u=u+Math.imul(me,qe)|0,S=S+Math.imul(me,He)|0,_=_+Math.imul(ie,Ve)|0,u=u+Math.imul(ie,Ke)|0,u=u+Math.imul(se,Ve)|0,S=S+Math.imul(se,Ke)|0;var Pi=(C+_|0)+((u&8191)<<13)|0;C=(S+(u>>>13)|0)+(Pi>>>26)|0,Pi&=67108863,_=Math.imul(w,Re),u=Math.imul(w,Te),u=u+Math.imul(I,Re)|0,S=Math.imul(I,Te),_=_+Math.imul(v,Pe)|0,u=u+Math.imul(v,$e)|0,u=u+Math.imul(l,Pe)|0,S=S+Math.imul(l,$e)|0,_=_+Math.imul(ge,ke)|0,u=u+Math.imul(ge,Ne)|0,u=u+Math.imul(ue,ke)|0,S=S+Math.imul(ue,Ne)|0,_=_+Math.imul(pe,De)|0,u=u+Math.imul(pe,ze)|0,u=u+Math.imul(le,De)|0,S=S+Math.imul(le,ze)|0,_=_+Math.imul(Ae,Fe)|0,u=u+Math.imul(Ae,Le)|0,u=u+Math.imul(Ie,Fe)|0,S=S+Math.imul(Ie,Le)|0,_=_+Math.imul(Ee,je)|0,u=u+Math.imul(Ee,Ue)|0,u=u+Math.imul(Se,je)|0,S=S+Math.imul(Se,Ue)|0,_=_+Math.imul(we,qe)|0,u=u+Math.imul(we,He)|0,u=u+Math.imul(he,qe)|0,S=S+Math.imul(he,He)|0,_=_+Math.imul(fe,Ve)|0,u=u+Math.imul(fe,Ke)|0,u=u+Math.imul(me,Ve)|0,S=S+Math.imul(me,Ke)|0;var $i=(C+_|0)+((u&8191)<<13)|0;C=(S+(u>>>13)|0)+($i>>>26)|0,$i&=67108863,_=Math.imul(w,Pe),u=Math.imul(w,$e),u=u+Math.imul(I,Pe)|0,S=Math.imul(I,$e),_=_+Math.imul(v,ke)|0,u=u+Math.imul(v,Ne)|0,u=u+Math.imul(l,ke)|0,S=S+Math.imul(l,Ne)|0,_=_+Math.imul(ge,De)|0,u=u+Math.imul(ge,ze)|0,u=u+Math.imul(ue,De)|0,S=S+Math.imul(ue,ze)|0,_=_+Math.imul(pe,Fe)|0,u=u+Math.imul(pe,Le)|0,u=u+Math.imul(le,Fe)|0,S=S+Math.imul(le,Le)|0,_=_+Math.imul(Ae,je)|0,u=u+Math.imul(Ae,Ue)|0,u=u+Math.imul(Ie,je)|0,S=S+Math.imul(Ie,Ue)|0,_=_+Math.imul(Ee,qe)|0,u=u+Math.imul(Ee,He)|0,u=u+Math.imul(Se,qe)|0,S=S+Math.imul(Se,He)|0,_=_+Math.imul(we,Ve)|0,u=u+Math.imul(we,Ke)|0,u=u+Math.imul(he,Ve)|0,S=S+Math.imul(he,Ke)|0;var ki=(C+_|0)+((u&8191)<<13)|0;C=(S+(u>>>13)|0)+(ki>>>26)|0,ki&=67108863,_=Math.imul(w,ke),u=Math.imul(w,Ne),u=u+Math.imul(I,ke)|0,S=Math.imul(I,Ne),_=_+Math.imul(v,De)|0,u=u+Math.imul(v,ze)|0,u=u+Math.imul(l,De)|0,S=S+Math.imul(l,ze)|0,_=_+Math.imul(ge,Fe)|0,u=u+Math.imul(ge,Le)|0,u=u+Math.imul(ue,Fe)|0,S=S+Math.imul(ue,Le)|0,_=_+Math.imul(pe,je)|0,u=u+Math.imul(pe,Ue)|0,u=u+Math.imul(le,je)|0,S=S+Math.imul(le,Ue)|0,_=_+Math.imul(Ae,qe)|0,u=u+Math.imul(Ae,He)|0,u=u+Math.imul(Ie,qe)|0,S=S+Math.imul(Ie,He)|0,_=_+Math.imul(Ee,Ve)|0,u=u+Math.imul(Ee,Ke)|0,u=u+Math.imul(Se,Ve)|0,S=S+Math.imul(Se,Ke)|0;var Ni=(C+_|0)+((u&8191)<<13)|0;C=(S+(u>>>13)|0)+(Ni>>>26)|0,Ni&=67108863,_=Math.imul(w,De),u=Math.imul(w,ze),u=u+Math.imul(I,De)|0,S=Math.imul(I,ze),_=_+Math.imul(v,Fe)|0,u=u+Math.imul(v,Le)|0,u=u+Math.imul(l,Fe)|0,S=S+Math.imul(l,Le)|0,_=_+Math.imul(ge,je)|0,u=u+Math.imul(ge,Ue)|0,u=u+Math.imul(ue,je)|0,S=S+Math.imul(ue,Ue)|0,_=_+Math.imul(pe,qe)|0,u=u+Math.imul(pe,He)|0,u=u+Math.imul(le,qe)|0,S=S+Math.imul(le,He)|0,_=_+Math.imul(Ae,Ve)|0,u=u+Math.imul(Ae,Ke)|0,u=u+Math.imul(Ie,Ve)|0,S=S+Math.imul(Ie,Ke)|0;var Di=(C+_|0)+((u&8191)<<13)|0;C=(S+(u>>>13)|0)+(Di>>>26)|0,Di&=67108863,_=Math.imul(w,Fe),u=Math.imul(w,Le),u=u+Math.imul(I,Fe)|0,S=Math.imul(I,Le),_=_+Math.imul(v,je)|0,u=u+Math.imul(v,Ue)|0,u=u+Math.imul(l,je)|0,S=S+Math.imul(l,Ue)|0,_=_+Math.imul(ge,qe)|0,u=u+Math.imul(ge,He)|0,u=u+Math.imul(ue,qe)|0,S=S+Math.imul(ue,He)|0,_=_+Math.imul(pe,Ve)|0,u=u+Math.imul(pe,Ke)|0,u=u+Math.imul(le,Ve)|0,S=S+Math.imul(le,Ke)|0;var zi=(C+_|0)+((u&8191)<<13)|0;C=(S+(u>>>13)|0)+(zi>>>26)|0,zi&=67108863,_=Math.imul(w,je),u=Math.imul(w,Ue),u=u+Math.imul(I,je)|0,S=Math.imul(I,Ue),_=_+Math.imul(v,qe)|0,u=u+Math.imul(v,He)|0,u=u+Math.imul(l,qe)|0,S=S+Math.imul(l,He)|0,_=_+Math.imul(ge,Ve)|0,u=u+Math.imul(ge,Ke)|0,u=u+Math.imul(ue,Ve)|0,S=S+Math.imul(ue,Ke)|0;var Fi=(C+_|0)+((u&8191)<<13)|0;C=(S+(u>>>13)|0)+(Fi>>>26)|0,Fi&=67108863,_=Math.imul(w,qe),u=Math.imul(w,He),u=u+Math.imul(I,qe)|0,S=Math.imul(I,He),_=_+Math.imul(v,Ve)|0,u=u+Math.imul(v,Ke)|0,u=u+Math.imul(l,Ve)|0,S=S+Math.imul(l,Ke)|0;var Li=(C+_|0)+((u&8191)<<13)|0;C=(S+(u>>>13)|0)+(Li>>>26)|0,Li&=67108863,_=Math.imul(w,Ve),u=Math.imul(w,Ke),u=u+Math.imul(I,Ve)|0,S=Math.imul(I,Ke);var ji=(C+_|0)+((u&8191)<<13)|0;return C=(S+(u>>>13)|0)+(ji>>>26)|0,ji&=67108863,A[0]=Mi,A[1]=_i,A[2]=Ei,A[3]=Ai,A[4]=Ii,A[5]=Oi,A[6]=Bi,A[7]=Ci,A[8]=Ri,A[9]=Ti,A[10]=Pi,A[11]=$i,A[12]=ki,A[13]=Ni,A[14]=Di,A[15]=zi,A[16]=Fi,A[17]=Li,A[18]=ji,C!==0&&(A[19]=C,m.length++),m};Math.imul||(T=B);function L(x,f,d){d.negative=f.negative^x.negative,d.length=x.length+f.length;for(var m=0,g=0,M=0;M>>26)|0,g+=A>>>26,A&=67108863}d.words[M]=C,m=A,A=g}return m!==0?d.words[M]=m:d.length--,d.strip()}function D(x,f,d){var m=new z;return m.mulp(x,f,d)}a.prototype.mulTo=function(f,d){var m,g=this.length+f.length;return this.length===10&&f.length===10?m=T(this,f,d):g<63?m=B(this,f,d):g<1024?m=L(this,f,d):m=D(this,f,d),m};function z(x,f){this.x=x,this.y=f}z.prototype.makeRBT=function(f){for(var d=new Array(f),m=a.prototype._countBits(f)-1,g=0;g>=1;return g},z.prototype.permute=function(f,d,m,g,M,A){for(var C=0;C>>1)M++;return 1<>>13,m[2*A+1]=M&8191,M=M>>>13;for(A=2*d;A>=26,d+=g/67108864|0,d+=M>>>26,this.words[m]=M&67108863}return d!==0&&(this.words[m]=d,this.length++),this},a.prototype.muln=function(f){return this.clone().imuln(f)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(f){var d=O(f);if(d.length===0)return new a(1);for(var m=this,g=0;g=0);var d=f%26,m=(f-d)/26,g=67108863>>>26-d<<26-d,M;if(d!==0){var A=0;for(M=0;M>>26-d}A&&(this.words[M]=A,this.length++)}if(m!==0){for(M=this.length-1;M>=0;M--)this.words[M+m]=this.words[M];for(M=0;M=0);var g;d?g=(d-d%26)/26:g=0;var M=f%26,A=Math.min((f-M)/26,this.length),C=67108863^67108863>>>M<A)for(this.length-=A,u=0;u=0&&(S!==0||u>=g);u--){var H=this.words[u]|0;this.words[u]=S<<26-M|H>>>M,S=H&C}return _&&S!==0&&(_.words[_.length++]=S),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(f,d,m){return n(this.negative===0),this.iushrn(f,d,m)},a.prototype.shln=function(f){return this.clone().ishln(f)},a.prototype.ushln=function(f){return this.clone().iushln(f)},a.prototype.shrn=function(f){return this.clone().ishrn(f)},a.prototype.ushrn=function(f){return this.clone().iushrn(f)},a.prototype.testn=function(f){n(typeof f=="number"&&f>=0);var d=f%26,m=(f-d)/26,g=1<=0);var d=f%26,m=(f-d)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=m)return this;if(d!==0&&m++,this.length=Math.min(m,this.length),d!==0){var g=67108863^67108863>>>d<=67108864;d++)this.words[d]-=67108864,d===this.length-1?this.words[d+1]=1:this.words[d+1]++;return this.length=Math.max(this.length,d+1),this},a.prototype.isubn=function(f){if(n(typeof f=="number"),n(f<67108864),f<0)return this.iaddn(-f);if(this.negative!==0)return this.negative=0,this.iaddn(f),this.negative=1,this;if(this.words[0]-=f,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var d=0;d>26)-(_/67108864|0),this.words[M+m]=A&67108863}for(;M>26,this.words[M+m]=A&67108863;if(C===0)return this.strip();for(n(C===-1),C=0,M=0;M>26,this.words[M]=A&67108863;return this.negative=1,this.strip()},a.prototype._wordDiv=function(f,d){var m=this.length-f.length,g=this.clone(),M=f,A=M.words[M.length-1]|0,C=this._countBits(A);m=26-C,m!==0&&(M=M.ushln(m),g.iushln(m),A=M.words[M.length-1]|0);var _=g.length-M.length,u;if(d!=="mod"){u=new a(null),u.length=_+1,u.words=new Array(u.length);for(var S=0;S=0;W--){var J=(g.words[M.length+W]|0)*67108864+(g.words[M.length+W-1]|0);for(J=Math.min(J/A|0,67108863),g._ishlnsubmul(M,J,W);g.negative!==0;)J--,g.negative=0,g._ishlnsubmul(M,1,W),g.isZero()||(g.negative^=1);u&&(u.words[W]=J)}return u&&u.strip(),g.strip(),d!=="div"&&m!==0&&g.iushrn(m),{div:u||null,mod:g}},a.prototype.divmod=function(f,d,m){if(n(!f.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var g,M,A;return this.negative!==0&&f.negative===0?(A=this.neg().divmod(f,d),d!=="mod"&&(g=A.div.neg()),d!=="div"&&(M=A.mod.neg(),m&&M.negative!==0&&M.iadd(f)),{div:g,mod:M}):this.negative===0&&f.negative!==0?(A=this.divmod(f.neg(),d),d!=="mod"&&(g=A.div.neg()),{div:g,mod:A.mod}):this.negative&f.negative?(A=this.neg().divmod(f.neg(),d),d!=="div"&&(M=A.mod.neg(),m&&M.negative!==0&&M.isub(f)),{div:A.div,mod:M}):f.length>this.length||this.cmp(f)<0?{div:new a(0),mod:this}:f.length===1?d==="div"?{div:this.divn(f.words[0]),mod:null}:d==="mod"?{div:null,mod:new a(this.modn(f.words[0]))}:{div:this.divn(f.words[0]),mod:new a(this.modn(f.words[0]))}:this._wordDiv(f,d)},a.prototype.div=function(f){return this.divmod(f,"div",!1).div},a.prototype.mod=function(f){return this.divmod(f,"mod",!1).mod},a.prototype.umod=function(f){return this.divmod(f,"mod",!0).mod},a.prototype.divRound=function(f){var d=this.divmod(f);if(d.mod.isZero())return d.div;var m=d.div.negative!==0?d.mod.isub(f):d.mod,g=f.ushrn(1),M=f.andln(1),A=m.cmp(g);return A<0||M===1&&A===0?d.div:d.div.negative!==0?d.div.isubn(1):d.div.iaddn(1)},a.prototype.modn=function(f){n(f<=67108863);for(var d=(1<<26)%f,m=0,g=this.length-1;g>=0;g--)m=(d*m+(this.words[g]|0))%f;return m},a.prototype.idivn=function(f){n(f<=67108863);for(var d=0,m=this.length-1;m>=0;m--){var g=(this.words[m]|0)+d*67108864;this.words[m]=g/f|0,d=g%f}return this.strip()},a.prototype.divn=function(f){return this.clone().idivn(f)},a.prototype.egcd=function(f){n(f.negative===0),n(!f.isZero());var d=this,m=f.clone();d.negative!==0?d=d.umod(f):d=d.clone();for(var g=new a(1),M=new a(0),A=new a(0),C=new a(1),_=0;d.isEven()&&m.isEven();)d.iushrn(1),m.iushrn(1),++_;for(var u=m.clone(),S=d.clone();!d.isZero();){for(var H=0,W=1;!(d.words[0]&W)&&H<26;++H,W<<=1);if(H>0)for(d.iushrn(H);H-- >0;)(g.isOdd()||M.isOdd())&&(g.iadd(u),M.isub(S)),g.iushrn(1),M.iushrn(1);for(var J=0,X=1;!(m.words[0]&X)&&J<26;++J,X<<=1);if(J>0)for(m.iushrn(J);J-- >0;)(A.isOdd()||C.isOdd())&&(A.iadd(u),C.isub(S)),A.iushrn(1),C.iushrn(1);d.cmp(m)>=0?(d.isub(m),g.isub(A),M.isub(C)):(m.isub(d),A.isub(g),C.isub(M))}return{a:A,b:C,gcd:m.iushln(_)}},a.prototype._invmp=function(f){n(f.negative===0),n(!f.isZero());var d=this,m=f.clone();d.negative!==0?d=d.umod(f):d=d.clone();for(var g=new a(1),M=new a(0),A=m.clone();d.cmpn(1)>0&&m.cmpn(1)>0;){for(var C=0,_=1;!(d.words[0]&_)&&C<26;++C,_<<=1);if(C>0)for(d.iushrn(C);C-- >0;)g.isOdd()&&g.iadd(A),g.iushrn(1);for(var u=0,S=1;!(m.words[0]&S)&&u<26;++u,S<<=1);if(u>0)for(m.iushrn(u);u-- >0;)M.isOdd()&&M.iadd(A),M.iushrn(1);d.cmp(m)>=0?(d.isub(m),g.isub(M)):(m.isub(d),M.isub(g))}var H;return d.cmpn(1)===0?H=g:H=M,H.cmpn(0)<0&&H.iadd(f),H},a.prototype.gcd=function(f){if(this.isZero())return f.abs();if(f.isZero())return this.abs();var d=this.clone(),m=f.clone();d.negative=0,m.negative=0;for(var g=0;d.isEven()&&m.isEven();g++)d.iushrn(1),m.iushrn(1);do{for(;d.isEven();)d.iushrn(1);for(;m.isEven();)m.iushrn(1);var M=d.cmp(m);if(M<0){var A=d;d=m,m=A}else if(M===0||m.cmpn(1)===0)break;d.isub(m)}while(!0);return m.iushln(g)},a.prototype.invm=function(f){return this.egcd(f).a.umod(f)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(f){return this.words[0]&f},a.prototype.bincn=function(f){n(typeof f=="number");var d=f%26,m=(f-d)/26,g=1<>>26,C&=67108863,this.words[A]=C}return M!==0&&(this.words[A]=M,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(f){var d=f<0;if(this.negative!==0&&!d)return-1;if(this.negative===0&&d)return 1;this.strip();var m;if(this.length>1)m=1;else{d&&(f=-f),n(f<=67108863,"Number is too big");var g=this.words[0]|0;m=g===f?0:gf.length)return 1;if(this.length=0;m--){var g=this.words[m]|0,M=f.words[m]|0;if(g!==M){gM&&(d=1);break}}return d},a.prototype.gtn=function(f){return this.cmpn(f)===1},a.prototype.gt=function(f){return this.cmp(f)===1},a.prototype.gten=function(f){return this.cmpn(f)>=0},a.prototype.gte=function(f){return this.cmp(f)>=0},a.prototype.ltn=function(f){return this.cmpn(f)===-1},a.prototype.lt=function(f){return this.cmp(f)===-1},a.prototype.lten=function(f){return this.cmpn(f)<=0},a.prototype.lte=function(f){return this.cmp(f)<=0},a.prototype.eqn=function(f){return this.cmpn(f)===0},a.prototype.eq=function(f){return this.cmp(f)===0},a.red=function(f){return new q(f)},a.prototype.toRed=function(f){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),f.convertTo(this)._forceRed(f)},a.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(f){return this.red=f,this},a.prototype.forceRed=function(f){return n(!this.red,"Already a number in reduction context"),this._forceRed(f)},a.prototype.redAdd=function(f){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,f)},a.prototype.redIAdd=function(f){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,f)},a.prototype.redSub=function(f){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,f)},a.prototype.redISub=function(f){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,f)},a.prototype.redShl=function(f){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,f)},a.prototype.redMul=function(f){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.mul(this,f)},a.prototype.redIMul=function(f){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,f),this.red.imul(this,f)},a.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(f){return n(this.red&&!f.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,f)};var R={k256:null,p224:null,p192:null,p25519:null};function N(x,f){this.name=x,this.p=new a(f,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}N.prototype._tmp=function(){var f=new a(null);return f.words=new Array(Math.ceil(this.n/13)),f},N.prototype.ireduce=function(f){var d=f,m;do this.split(d,this.tmp),d=this.imulK(d),d=d.iadd(this.tmp),m=d.bitLength();while(m>this.n);var g=m0?d.isub(this.p):d.strip!==void 0?d.strip():d._strip(),d},N.prototype.split=function(f,d){f.iushrn(this.n,0,d)},N.prototype.imulK=function(f){return f.imul(this.k)};function P(){N.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(P,N),P.prototype.split=function(f,d){for(var m=4194303,g=Math.min(f.length,9),M=0;M>>22,A=C}A>>>=22,f.words[M-10]=A,A===0&&f.length>10?f.length-=10:f.length-=9},P.prototype.imulK=function(f){f.words[f.length]=0,f.words[f.length+1]=0,f.length+=2;for(var d=0,m=0;m>>=26,f.words[m]=M,d=g}return d!==0&&(f.words[f.length++]=d),f},a._prime=function(f){if(R[f])return R[f];var d;if(f==="k256")d=new P;else if(f==="p224")d=new F;else if(f==="p192")d=new V;else if(f==="p25519")d=new j;else throw new Error("Unknown prime "+f);return R[f]=d,d};function q(x){if(typeof x=="string"){var f=a._prime(x);this.m=f.p,this.prime=f}else n(x.gtn(1),"modulus must be greater than 1"),this.m=x,this.prime=null}q.prototype._verify1=function(f){n(f.negative===0,"red works only with positives"),n(f.red,"red works only with red numbers")},q.prototype._verify2=function(f,d){n((f.negative|d.negative)===0,"red works only with positives"),n(f.red&&f.red===d.red,"red works only with red numbers")},q.prototype.imod=function(f){return this.prime?this.prime.ireduce(f)._forceRed(this):f.umod(this.m)._forceRed(this)},q.prototype.neg=function(f){return f.isZero()?f.clone():this.m.sub(f)._forceRed(this)},q.prototype.add=function(f,d){this._verify2(f,d);var m=f.add(d);return m.cmp(this.m)>=0&&m.isub(this.m),m._forceRed(this)},q.prototype.iadd=function(f,d){this._verify2(f,d);var m=f.iadd(d);return m.cmp(this.m)>=0&&m.isub(this.m),m},q.prototype.sub=function(f,d){this._verify2(f,d);var m=f.sub(d);return m.cmpn(0)<0&&m.iadd(this.m),m._forceRed(this)},q.prototype.isub=function(f,d){this._verify2(f,d);var m=f.isub(d);return m.cmpn(0)<0&&m.iadd(this.m),m},q.prototype.shl=function(f,d){return this._verify1(f),this.imod(f.ushln(d))},q.prototype.imul=function(f,d){return this._verify2(f,d),this.imod(f.imul(d))},q.prototype.mul=function(f,d){return this._verify2(f,d),this.imod(f.mul(d))},q.prototype.isqr=function(f){return this.imul(f,f.clone())},q.prototype.sqr=function(f){return this.mul(f,f)},q.prototype.sqrt=function(f){if(f.isZero())return f.clone();var d=this.m.andln(3);if(n(d%2===1),d===3){var m=this.m.add(new a(1)).iushrn(2);return this.pow(f,m)}for(var g=this.m.subn(1),M=0;!g.isZero()&&g.andln(1)===0;)M++,g.iushrn(1);n(!g.isZero());var A=new a(1).toRed(this),C=A.redNeg(),_=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);this.pow(u,_).cmp(C)!==0;)u.redIAdd(C);for(var S=this.pow(u,g),H=this.pow(f,g.addn(1).iushrn(1)),W=this.pow(f,g),J=M;W.cmp(A)!==0;){for(var X=W,ie=0;X.cmp(A)!==0;ie++)X=X.redSqr();n(ie=0;M--){for(var S=d.words[M],H=u-1;H>=0;H--){var W=S>>H&1;if(A!==g[0]&&(A=this.sqr(A)),W===0&&C===0){_=0;continue}C<<=1,C|=W,_++,!(_!==m&&(M!==0||H!==0))&&(A=this.mul(A,g[C]),_=0,C=0)}u=26}return A},q.prototype.convertTo=function(f){var d=f.umod(this.m);return d===f?d.clone():d},q.prototype.convertFrom=function(f){var d=f.clone();return d.red=null,d},a.mont=function(f){return new U(f)};function U(x){q.call(this,x),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}i(U,q),U.prototype.convertTo=function(f){return this.imod(f.ushln(this.shift))},U.prototype.convertFrom=function(f){var d=this.imod(f.mul(this.rinv));return d.red=null,d},U.prototype.imul=function(f,d){if(f.isZero()||d.isZero())return f.words[0]=0,f.length=1,f;var m=f.imul(d),g=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=m.isub(g).iushrn(this.shift),A=M;return M.cmp(this.m)>=0?A=M.isub(this.m):M.cmpn(0)<0&&(A=M.iadd(this.m)),A._forceRed(this)},U.prototype.mul=function(f,d){if(f.isZero()||d.isZero())return new a(0)._forceRed(this);var m=f.mul(d),g=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),M=m.isub(g).iushrn(this.shift),A=M;return M.cmp(this.m)>=0?A=M.isub(this.m):M.cmpn(0)<0&&(A=M.iadd(this.m)),A._forceRed(this)},U.prototype.invm=function(f){var d=this.imod(f._invmp(this.m).mul(this.r2));return d._forceRed(this)}})(t,Lc)})(Ua);var Tt=Ua.exports,Xs={},qa={},ba={exports:{}};typeof Object.create=="function"?ba.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:ba.exports=function(e,r){if(r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e}};var Pt=ba.exports,qn=oi,Kr=qn.Buffer,vt={},mt;for(mt in qn)qn.hasOwnProperty(mt)&&(mt==="SlowBuffer"||mt==="Buffer"||(vt[mt]=qn[mt]));var Wr=vt.Buffer={};for(mt in Kr)Kr.hasOwnProperty(mt)&&(mt==="allocUnsafe"||mt==="allocUnsafeSlow"||(Wr[mt]=Kr[mt]));vt.Buffer.prototype=Kr.prototype;(!Wr.from||Wr.from===Uint8Array.from)&&(Wr.from=function(t,e,r){if(typeof t=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof t);if(t&&typeof t.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);return Kr(t,e,r)});Wr.alloc||(Wr.alloc=function(t,e,r){if(typeof t!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof t);if(t<0||t>=2*(1<<30))throw new RangeError('The value "'+t+'" is invalid for option "size"');var n=Kr(t);return!e||e.length===0?n.fill(0):typeof r=="string"?n.fill(e,r):n.fill(e),n});if(!vt.kStringMaxLength)try{vt.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch{}vt.constants||(vt.constants={MAX_LENGTH:vt.kMaxLength},vt.kStringMaxLength&&(vt.constants.MAX_STRING_LENGTH=vt.kStringMaxLength));var Ha=vt,ui={};const jd=Pt;function wt(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}ui.Reporter=wt;wt.prototype.isError=function(e){return e instanceof Qr};wt.prototype.save=function(){const e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}};wt.prototype.restore=function(e){const r=this._reporterState;r.obj=e.obj,r.path=r.path.slice(0,e.pathLen)};wt.prototype.enterKey=function(e){return this._reporterState.path.push(e)};wt.prototype.exitKey=function(e){const r=this._reporterState;r.path=r.path.slice(0,e-1)};wt.prototype.leaveKey=function(e,r,n){const i=this._reporterState;this.exitKey(e),i.obj!==null&&(i.obj[r]=n)};wt.prototype.path=function(){return this._reporterState.path.join("/")};wt.prototype.enterObject=function(){const e=this._reporterState,r=e.obj;return e.obj={},r};wt.prototype.leaveObject=function(e){const r=this._reporterState,n=r.obj;return r.obj=e,n};wt.prototype.error=function(e){let r;const n=this._reporterState,i=e instanceof Qr;if(i?r=e:r=new Qr(n.path.map(function(a){return"["+JSON.stringify(a)+"]"}).join(""),e.message||e,e.stack),!n.options.partial)throw r;return i||n.errors.push(r),r};wt.prototype.wrapResult=function(e){const r=this._reporterState;return r.options.partial?{result:this.isError(e)?null:e,errors:r.errors}:e};function Qr(t,e){this.path=t,this.rethrow(e)}jd(Qr,Error);Qr.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,Qr),!this.stack)try{throw new Error(this.message)}catch(r){this.stack=r.stack}return this};var kr={};const Ud=Pt,ci=ui.Reporter,en=Ha.Buffer;function gt(t,e){if(ci.call(this,e),!en.isBuffer(t)){this.error("Input not Buffer");return}this.base=t,this.offset=0,this.length=t.length}Ud(gt,ci);kr.DecoderBuffer=gt;gt.isDecoderBuffer=function(e){return e instanceof gt?!0:typeof e=="object"&&en.isBuffer(e.base)&&e.constructor.name==="DecoderBuffer"&&typeof e.offset=="number"&&typeof e.length=="number"&&typeof e.save=="function"&&typeof e.restore=="function"&&typeof e.isEmpty=="function"&&typeof e.readUInt8=="function"&&typeof e.skip=="function"&&typeof e.raw=="function"};gt.prototype.save=function(){return{offset:this.offset,reporter:ci.prototype.save.call(this)}};gt.prototype.restore=function(e){const r=new gt(this.base);return r.offset=e.offset,r.length=this.offset,this.offset=e.offset,ci.prototype.restore.call(this,e.reporter),r};gt.prototype.isEmpty=function(){return this.offset===this.length};gt.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")};gt.prototype.skip=function(e,r){if(!(this.offset+e<=this.length))return this.error(r||"DecoderBuffer overrun");const n=new gt(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+e,this.offset+=e,n};gt.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)};function tn(t,e){if(Array.isArray(t))this.length=0,this.value=t.map(function(r){return tn.isEncoderBuffer(r)||(r=new tn(r,e)),this.length+=r.length,r},this);else if(typeof t=="number"){if(!(0<=t&&t<=255))return e.error("non-byte EncoderBuffer value");this.value=t,this.length=1}else if(typeof t=="string")this.value=t,this.length=en.byteLength(t);else if(en.isBuffer(t))this.value=t,this.length=t.length;else return e.error("Unsupported type: "+typeof t)}kr.EncoderBuffer=tn;tn.isEncoderBuffer=function(e){return e instanceof tn?!0:typeof e=="object"&&e.constructor.name==="EncoderBuffer"&&typeof e.length=="number"&&typeof e.join=="function"};tn.prototype.join=function(e,r){return e||(e=en.alloc(this.length)),r||(r=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(n){n.join(e,r),r+=n.length}):(typeof this.value=="number"?e[r]=this.value:typeof this.value=="string"?e.write(this.value,r):en.isBuffer(this.value)&&this.value.copy(e,r),r+=this.length)),e};var xr=Gs;function Gs(t,e){if(!t)throw new Error(e||"Assertion failed")}Gs.equal=function(e,r,n){if(e!=r)throw new Error(n||"Assertion failed: "+e+" != "+r)};const qd=ui.Reporter,Hd=kr.EncoderBuffer,Vd=kr.DecoderBuffer,nt=xr,Zs=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],Kd=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(Zs),Wd=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function ye(t,e,r){const n={};this._baseState=n,n.name=r,n.enc=t,n.parent=e||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}var Va=ye;const Jd=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];ye.prototype.clone=function(){const e=this._baseState,r={};Jd.forEach(function(i){r[i]=e[i]});const n=new this.constructor(r.parent);return n._baseState=r,n};ye.prototype._wrap=function(){const e=this._baseState;Kd.forEach(function(r){this[r]=function(){const i=new this.constructor(this);return e.children.push(i),i[r].apply(i,arguments)}},this)};ye.prototype._init=function(e){const r=this._baseState;nt(r.parent===null),e.call(this),r.children=r.children.filter(function(n){return n._baseState.parent===this},this),nt.equal(r.children.length,1,"Root node can have only one child")};ye.prototype._useArgs=function(e){const r=this._baseState,n=e.filter(function(i){return i instanceof this.constructor},this);e=e.filter(function(i){return!(i instanceof this.constructor)},this),n.length!==0&&(nt(r.children===null),r.children=n,n.forEach(function(i){i._baseState.parent=this},this)),e.length!==0&&(nt(r.args===null),r.args=e,r.reverseArgs=e.map(function(i){if(typeof i!="object"||i.constructor!==Object)return i;const a={};return Object.keys(i).forEach(function(s){s==(s|0)&&(s|=0);const o=i[s];a[o]=s}),a}))};Wd.forEach(function(t){ye.prototype[t]=function(){const r=this._baseState;throw new Error(t+" not implemented for encoding: "+r.enc)}});Zs.forEach(function(t){ye.prototype[t]=function(){const r=this._baseState,n=Array.prototype.slice.call(arguments);return nt(r.tag===null),r.tag=t,this._useArgs(n),this}});ye.prototype.use=function(e){nt(e);const r=this._baseState;return nt(r.use===null),r.use=e,this};ye.prototype.optional=function(){const e=this._baseState;return e.optional=!0,this};ye.prototype.def=function(e){const r=this._baseState;return nt(r.default===null),r.default=e,r.optional=!0,this};ye.prototype.explicit=function(e){const r=this._baseState;return nt(r.explicit===null&&r.implicit===null),r.explicit=e,this};ye.prototype.implicit=function(e){const r=this._baseState;return nt(r.explicit===null&&r.implicit===null),r.implicit=e,this};ye.prototype.obj=function(){const e=this._baseState,r=Array.prototype.slice.call(arguments);return e.obj=!0,r.length!==0&&this._useArgs(r),this};ye.prototype.key=function(e){const r=this._baseState;return nt(r.key===null),r.key=e,this};ye.prototype.any=function(){const e=this._baseState;return e.any=!0,this};ye.prototype.choice=function(e){const r=this._baseState;return nt(r.choice===null),r.choice=e,this._useArgs(Object.keys(e).map(function(n){return e[n]})),this};ye.prototype.contains=function(e){const r=this._baseState;return nt(r.use===null),r.contains=e,this};ye.prototype._decode=function(e,r){const n=this._baseState;if(n.parent===null)return e.wrapResult(n.children[0]._decode(e,r));let i=n.default,a=!0,s=null;if(n.key!==null&&(s=e.enterKey(n.key)),n.optional){let h=null;if(n.explicit!==null?h=n.explicit:n.implicit!==null?h=n.implicit:n.tag!==null&&(h=n.tag),h===null&&!n.any){const b=e.save();try{n.choice===null?this._decodeGeneric(n.tag,e,r):this._decodeChoice(e,r),a=!0}catch{a=!1}e.restore(b)}else if(a=this._peekTag(e,h,n.any),e.isError(a))return a}let o;if(n.obj&&a&&(o=e.enterObject()),a){if(n.explicit!==null){const b=this._decodeTag(e,n.explicit);if(e.isError(b))return b;e=b}const h=e.offset;if(n.use===null&&n.choice===null){let b;n.any&&(b=e.save());const p=this._decodeTag(e,n.implicit!==null?n.implicit:n.tag,n.any);if(e.isError(p))return p;n.any?i=e.raw(b):e=p}if(r&&r.track&&n.tag!==null&&r.track(e.path(),h,e.length,"tagged"),r&&r.track&&n.tag!==null&&r.track(e.path(),e.offset,e.length,"content"),n.any||(n.choice===null?i=this._decodeGeneric(n.tag,e,r):i=this._decodeChoice(e,r)),e.isError(i))return i;if(!n.any&&n.choice===null&&n.children!==null&&n.children.forEach(function(p){p._decode(e,r)}),n.contains&&(n.tag==="octstr"||n.tag==="bitstr")){const b=new Vd(i);i=this._getUse(n.contains,e._reporterState.obj)._decode(b,r)}}return n.obj&&a&&(i=e.leaveObject(o)),n.key!==null&&(i!==null||a===!0)?e.leaveKey(s,n.key,i):s!==null&&e.exitKey(s),i};ye.prototype._decodeGeneric=function(e,r,n){const i=this._baseState;return e==="seq"||e==="set"?null:e==="seqof"||e==="setof"?this._decodeList(r,e,i.args[0],n):/str$/.test(e)?this._decodeStr(r,e,n):e==="objid"&&i.args?this._decodeObjid(r,i.args[0],i.args[1],n):e==="objid"?this._decodeObjid(r,null,null,n):e==="gentime"||e==="utctime"?this._decodeTime(r,e,n):e==="null_"?this._decodeNull(r,n):e==="bool"?this._decodeBool(r,n):e==="objDesc"?this._decodeStr(r,e,n):e==="int"||e==="enum"?this._decodeInt(r,i.args&&i.args[0],n):i.use!==null?this._getUse(i.use,r._reporterState.obj)._decode(r,n):r.error("unknown tag: "+e)};ye.prototype._getUse=function(e,r){const n=this._baseState;return n.useDecoder=this._use(e,r),nt(n.useDecoder._baseState.parent===null),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder};ye.prototype._decodeChoice=function(e,r){const n=this._baseState;let i=null,a=!1;return Object.keys(n.choice).some(function(s){const o=e.save(),h=n.choice[s];try{const b=h._decode(e,r);if(e.isError(b))return!1;i={type:s,value:b},a=!0}catch{return e.restore(o),!1}return!0},this),a?i:e.error("Choice not matched")};ye.prototype._createEncoderBuffer=function(e){return new Hd(e,this.reporter)};ye.prototype._encode=function(e,r,n){const i=this._baseState;if(i.default!==null&&i.default===e)return;const a=this._encodeValue(e,r,n);if(a!==void 0&&!this._skipDefault(a,r,n))return a};ye.prototype._encodeValue=function(e,r,n){const i=this._baseState;if(i.parent===null)return i.children[0]._encode(e,r||new qd);let a=null;if(this.reporter=r,i.optional&&e===void 0)if(i.default!==null)e=i.default;else return;let s=null,o=!1;if(i.any)a=this._createEncoderBuffer(e);else if(i.choice)a=this._encodeChoice(e,r);else if(i.contains)s=this._getUse(i.contains,n)._encode(e,r),o=!0;else if(i.children)s=i.children.map(function(h){if(h._baseState.tag==="null_")return h._encode(null,r,e);if(h._baseState.key===null)return r.error("Child should have a key");const b=r.enterKey(h._baseState.key);if(typeof e!="object")return r.error("Child expected, but input is not object");const p=h._encode(e[h._baseState.key],r,e);return r.leaveKey(b),p},this).filter(function(h){return h}),s=this._createEncoderBuffer(s);else if(i.tag==="seqof"||i.tag==="setof"){if(!(i.args&&i.args.length===1))return r.error("Too many args for : "+i.tag);if(!Array.isArray(e))return r.error("seqof/setof, but data is not Array");const h=this.clone();h._baseState.implicit=null,s=this._createEncoderBuffer(e.map(function(b){const p=this._baseState;return this._getUse(p.args[0],e)._encode(b,r)},h))}else i.use!==null?a=this._getUse(i.use,n)._encode(e,r):(s=this._encodePrimitive(i.tag,e),o=!0);if(!i.any&&i.choice===null){const h=i.implicit!==null?i.implicit:i.tag,b=i.implicit===null?"universal":"context";h===null?i.use===null&&r.error("Tag could be omitted only for .use()"):i.use===null&&(a=this._encodeComposite(h,o,b,s))}return i.explicit!==null&&(a=this._encodeComposite(i.explicit,!1,"context",a)),a};ye.prototype._encodeChoice=function(e,r){const n=this._baseState,i=n.choice[e.type];return i||nt(!1,e.type+" not found in "+JSON.stringify(Object.keys(n.choice))),i._encode(e.value,r)};ye.prototype._encodePrimitive=function(e,r){const n=this._baseState;if(/str$/.test(e))return this._encodeStr(r,e);if(e==="objid"&&n.args)return this._encodeObjid(r,n.reverseArgs[0],n.args[1]);if(e==="objid")return this._encodeObjid(r,null,null);if(e==="gentime"||e==="utctime")return this._encodeTime(r,e);if(e==="null_")return this._encodeNull();if(e==="int"||e==="enum")return this._encodeInt(r,n.args&&n.reverseArgs[0]);if(e==="bool")return this._encodeBool(r);if(e==="objDesc")return this._encodeStr(r,e);throw new Error("Unsupported tag: "+e)};ye.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)};ye.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)};var di={};(function(t){function e(r){const n={};return Object.keys(r).forEach(function(i){(i|0)==i&&(i=i|0);const a=r[i];n[a]=i}),n}t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=e(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=e(t.tag)})(di);const Yd=Pt,rr=Ha.Buffer,Qs=Va,Qi=di;function ef(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new $t,this.tree._init(t.body)}var tf=ef;ef.prototype.encode=function(e,r){return this.tree._encode(e,r).join()};function $t(t){Qs.call(this,"der",t)}Yd($t,Qs);$t.prototype._encodeComposite=function(e,r,n,i){const a=Xd(e,r,n,this.reporter);if(i.length<128){const h=rr.alloc(2);return h[0]=a,h[1]=i.length,this._createEncoderBuffer([h,i])}let s=1;for(let h=i.length;h>=256;h>>=8)s++;const o=rr.alloc(2+s);o[0]=a,o[1]=128|s;for(let h=1+s,b=i.length;b>0;h--,b>>=8)o[h]=b&255;return this._createEncoderBuffer([o,i])};$t.prototype._encodeStr=function(e,r){if(r==="bitstr")return this._createEncoderBuffer([e.unused|0,e.data]);if(r==="bmpstr"){const n=rr.alloc(e.length*2);for(let i=0;i=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,e[0]*40+e[1])}let i=0;for(let o=0;o=128;h>>=7)i++}const a=rr.alloc(i);let s=a.length-1;for(let o=e.length-1;o>=0;o--){let h=e[o];for(a[s--]=h&127;(h>>=7)>0;)a[s--]=128|h&127}return this._createEncoderBuffer(a)};function ht(t){return t<10?"0"+t:t}$t.prototype._encodeTime=function(e,r){let n;const i=new Date(e);return r==="gentime"?n=[ht(i.getUTCFullYear()),ht(i.getUTCMonth()+1),ht(i.getUTCDate()),ht(i.getUTCHours()),ht(i.getUTCMinutes()),ht(i.getUTCSeconds()),"Z"].join(""):r==="utctime"?n=[ht(i.getUTCFullYear()%100),ht(i.getUTCMonth()+1),ht(i.getUTCDate()),ht(i.getUTCHours()),ht(i.getUTCMinutes()),ht(i.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+r+" time is not supported yet"),this._encodeStr(n,"octstr")};$t.prototype._encodeNull=function(){return this._createEncoderBuffer("")};$t.prototype._encodeInt=function(e,r){if(typeof e=="string"){if(!r)return this.reporter.error("String int or enum given, but no values map");if(!r.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=r[e]}if(typeof e!="number"&&!rr.isBuffer(e)){const a=e.toArray();!e.sign&&a[0]&128&&a.unshift(0),e=rr.from(a)}if(rr.isBuffer(e)){let a=e.length;e.length===0&&a++;const s=rr.alloc(a);return e.copy(s),e.length===0&&(s[0]=0),this._createEncoderBuffer(s)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let n=1;for(let a=e;a>=256;a>>=8)n++;const i=new Array(n);for(let a=i.length-1;a>=0;a--)i[a]=e&255,e>>=8;return i[0]&128&&i.unshift(0),this._createEncoderBuffer(rr.from(i))};$t.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)};$t.prototype._use=function(e,r){return typeof e=="function"&&(e=e(r)),e._getEncoder("der").tree};$t.prototype._skipDefault=function(e,r,n){const i=this._baseState;let a;if(i.default===null)return!1;const s=e.join();if(i.defaultBuffer===void 0&&(i.defaultBuffer=this._encodeValue(i.default,r,n).join()),s.length!==i.defaultBuffer.length)return!1;for(a=0;a=31?n.error("Multi-octet tag encoding unsupported"):(e||(i|=32),i|=Qi.tagClassByName[r||"universal"]<<6,i)}const Gd=Pt,Ka=tf;function Wa(t){Ka.call(this,t),this.enc="pem"}Gd(Wa,Ka);var Zd=Wa;Wa.prototype.encode=function(e,r){const i=Ka.prototype.encode.call(this,e).toString("base64"),a=["-----BEGIN "+r.label+"-----"];for(let s=0;s>6],i=(r&32)===0;if((r&31)===31){let s=r;for(r=0;(s&128)===128;){if(s=t.readUInt8(e),t.isError(s))return s;r<<=7,r|=s&127}}else r&=31;const a=Po.tag[r];return{cls:n,primitive:i,tag:r,tagStr:a}}function of(t,e,r){let n=t.readUInt8(r);if(t.isError(n))return n;if(!e&&n===128)return null;if(!(n&128))return n;const i=n&127;if(i>4)return t.error("length octect is too long");n=0;for(let a=0;a */(function(t,e){var r=oi,n=r.Buffer;function i(s,o){for(var h in s)o[h]=s[h]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=r:(i(r,e),e.Buffer=a);function a(s,o,h){return n(s,o,h)}a.prototype=Object.create(n.prototype),i(n,a),a.from=function(s,o,h){if(typeof s=="number")throw new TypeError("Argument must not be a number");return n(s,o,h)},a.alloc=function(s,o,h){if(typeof s!="number")throw new TypeError("Argument must be a number");var b=n(s);return o!==void 0?typeof h=="string"?b.fill(o,h):b.fill(o):b.fill(0),b},a.allocUnsafe=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return n(s)},a.allocUnsafeSlow=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(s)}})(va,va.exports);var lf=va.exports,uf={};const i0="elliptic",a0="6.5.5",o0="EC cryptography",s0="lib/elliptic.js",f0=["lib"],l0={lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},u0={type:"git",url:"git@github.com:indutny/elliptic"},c0=["EC","Elliptic","curve","Cryptography"],d0="Fedor Indutny ",h0="MIT",p0={url:"https://github.com/indutny/elliptic/issues"},b0="https://github.com/indutny/elliptic",v0={brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},m0={"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"},y0={name:i0,version:a0,description:o0,main:s0,files:f0,scripts:l0,repository:u0,keywords:c0,author:d0,license:h0,bugs:p0,homepage:b0,devDependencies:v0,dependencies:m0};var dt={},Za={};(function(t){var e=t;function r(a,s){if(Array.isArray(a))return a.slice();if(!a)return[];var o=[];if(typeof a!="string"){for(var h=0;h>8,y=b&255;p?o.push(p,y):o.push(y)}return o}e.toArray=r;function n(a){return a.length===1?"0"+a:a}e.zero2=n;function i(a){for(var s="",o=0;o(T>>1)-1?D=(T>>1)-z:D=z,L.isubn(D)):D=0,O[B]=D,L.iushrn(1)}return O}e.getNAF=a;function s(p,y){var E=[[],[]];p=p.clone(),y=y.clone();for(var O=0,B=0,T;p.cmpn(-O)>0||y.cmpn(-B)>0;){var L=p.andln(3)+O&3,D=y.andln(3)+B&3;L===3&&(L=-1),D===3&&(D=-1);var z;L&1?(T=p.andln(7)+O&7,(T===3||T===5)&&D===2?z=-L:z=L):z=0,E[0].push(z);var R;D&1?(T=y.andln(7)+B&7,(T===3||T===5)&&L===2?R=-D:R=D):R=0,E[1].push(R),2*O===z+1&&(O=1-O),2*B===R+1&&(B=1-B),p.iushrn(1),y.iushrn(1)}return E}e.getJSF=s;function o(p,y,E){var O="_"+y;p.prototype[y]=function(){return this[O]!==void 0?this[O]:this[O]=E.call(this)}}e.cachedProperty=o;function h(p){return typeof p=="string"?e.toArray(p,"hex"):p}e.parseBytes=h;function b(p){return new r(p,"hex","le")}e.intFromLE=b})(dt);var Qa={exports:{}},ea;Qa.exports=function(e){return ea||(ea=new vr(null)),ea.generate(e)};function vr(t){this.rand=t}Qa.exports.Rand=vr;vr.prototype.generate=function(e){return this._rand(e)};vr.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var r=new Uint8Array(e),n=0;n0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var hi=wr;wr.prototype.point=function(){throw new Error("Not implemented")};wr.prototype.validate=function(){throw new Error("Not implemented")};wr.prototype._fixedNafMul=function(e,r){Qn(e.precomputed);var n=e._getDoubles(),i=Zn(r,1,this._bitLength),a=(1<=o;b--)h=(h<<1)+i[b];s.push(h)}for(var p=this.jpoint(null,null,null),y=this.jpoint(null,null,null),E=a;E>0;E--){for(o=0;o=0;h--){for(var b=0;h>=0&&s[h]===0;h--)b++;if(h>=0&&b++,o=o.dblp(b),h<0)break;var p=s[h];Qn(p!==0),e.type==="affine"?p>0?o=o.mixedAdd(a[p-1>>1]):o=o.mixedAdd(a[-p-1>>1].neg()):p>0?o=o.add(a[p-1>>1]):o=o.add(a[-p-1>>1].neg())}return e.type==="affine"?o.toP():o};wr.prototype._wnafMulAdd=function(e,r,n,i,a){var s=this._wnafT1,o=this._wnafT2,h=this._wnafT3,b=0,p,y,E;for(p=0;p=1;p-=2){var B=p-1,T=p;if(s[B]!==1||s[T]!==1){h[B]=Zn(n[B],s[B],this._bitLength),h[T]=Zn(n[T],s[T],this._bitLength),b=Math.max(h[B].length,b),b=Math.max(h[T].length,b);continue}var L=[r[B],null,null,r[T]];r[B].y.cmp(r[T].y)===0?(L[1]=r[B].add(r[T]),L[2]=r[B].toJ().mixedAdd(r[T].neg())):r[B].y.cmp(r[T].y.redNeg())===0?(L[1]=r[B].toJ().mixedAdd(r[T]),L[2]=r[B].add(r[T].neg())):(L[1]=r[B].toJ().mixedAdd(r[T]),L[2]=r[B].toJ().mixedAdd(r[T].neg()));var D=[-3,-1,-5,-7,0,7,5,1,3],z=g0(n[B],n[T]);for(b=Math.max(z[0].length,b),h[B]=new Array(b),h[T]=new Array(b),y=0;y=0;p--){for(var V=0;p>=0;){var j=!0;for(y=0;y=0&&V++,P=P.dblp(V),p<0)break;for(y=0;y0?E=o[y][q-1>>1]:q<0&&(E=o[y][-q-1>>1].neg()),E.type==="affine"?P=P.mixedAdd(E):P=P.add(E))}}for(p=0;p=Math.ceil((e.bitLength()+1)/r.step):!1};St.prototype._getDoubles=function(e,r){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],i=this,a=0;a=0&&(O=b,B=p),y.negative&&(y=y.neg(),E=E.neg()),O.negative&&(O=O.neg(),B=B.neg()),[{a:y,b:E},{a:O,b:B}]};Mt.prototype._endoSplit=function(e){var r=this.endo.basis,n=r[0],i=r[1],a=i.b.mul(e).divRound(this.n),s=n.b.neg().mul(e).divRound(this.n),o=a.mul(n.a),h=s.mul(i.a),b=a.mul(n.b),p=s.mul(i.b),y=e.sub(o).sub(h),E=b.add(p).neg();return{k1:y,k2:E}};Mt.prototype.pointFromX=function(e,r){e=new Ce(e,16),e.red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),i=n.redSqrt();if(i.redSqr().redSub(n).cmp(this.zero)!==0)throw new Error("invalid point");var a=i.fromRed().isOdd();return(r&&!a||!r&&a)&&(i=i.redNeg()),this.point(e,i)};Mt.prototype.validate=function(e){if(e.inf)return!0;var r=e.x,n=e.y,i=this.a.redMul(r),a=r.redSqr().redMul(r).redIAdd(i).redIAdd(this.b);return n.redSqr().redISub(a).cmpn(0)===0};Mt.prototype._endoWnafMulAdd=function(e,r,n){for(var i=this._endoWnafT1,a=this._endoWnafT2,s=0;s":""};Ze.prototype.isInfinity=function(){return this.inf};Ze.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(this.x.cmp(e.x)===0)return this.curve.point(null,null);var r=this.y.redSub(e.y);r.cmpn(0)!==0&&(r=r.redMul(this.x.redSub(e.x).redInvm()));var n=r.redSqr().redISub(this.x).redISub(e.x),i=r.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,i)};Ze.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(e.cmpn(0)===0)return this.curve.point(null,null);var r=this.curve.a,n=this.x.redSqr(),i=e.redInvm(),a=n.redAdd(n).redIAdd(n).redIAdd(r).redMul(i),s=a.redSqr().redISub(this.x.redAdd(this.x)),o=a.redMul(this.x.redSub(s)).redISub(this.y);return this.curve.point(s,o)};Ze.prototype.getX=function(){return this.x.fromRed()};Ze.prototype.getY=function(){return this.y.fromRed()};Ze.prototype.mul=function(e){return e=new Ce(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)};Ze.prototype.mulAdd=function(e,r,n){var i=[this,r],a=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(i,a):this.curve._wnafMulAdd(1,i,a,2)};Ze.prototype.jmulAdd=function(e,r,n){var i=[this,r],a=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(i,a,!0):this.curve._wnafMulAdd(1,i,a,2,!0)};Ze.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||this.x.cmp(e.x)===0&&this.y.cmp(e.y)===0)};Ze.prototype.neg=function(e){if(this.inf)return this;var r=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,i=function(a){return a.neg()};r.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(i)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(i)}}}return r};Ze.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var e=this.curve.jpoint(this.x,this.y,this.curve.one);return e};function et(t,e,r,n){dn.BasePoint.call(this,t,"jacobian"),e===null&&r===null&&n===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new Ce(0)):(this.x=new Ce(e,16),this.y=new Ce(r,16),this.z=new Ce(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}to(et,dn.BasePoint);Mt.prototype.jpoint=function(e,r,n){return new et(this,e,r,n)};et.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),r=e.redSqr(),n=this.x.redMul(r),i=this.y.redMul(r).redMul(e);return this.curve.point(n,i)};et.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};et.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var r=e.z.redSqr(),n=this.z.redSqr(),i=this.x.redMul(r),a=e.x.redMul(n),s=this.y.redMul(r.redMul(e.z)),o=e.y.redMul(n.redMul(this.z)),h=i.redSub(a),b=s.redSub(o);if(h.cmpn(0)===0)return b.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var p=h.redSqr(),y=p.redMul(h),E=i.redMul(p),O=b.redSqr().redIAdd(y).redISub(E).redISub(E),B=b.redMul(E.redISub(O)).redISub(s.redMul(y)),T=this.z.redMul(e.z).redMul(h);return this.curve.jpoint(O,B,T)};et.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var r=this.z.redSqr(),n=this.x,i=e.x.redMul(r),a=this.y,s=e.y.redMul(r).redMul(this.z),o=n.redSub(i),h=a.redSub(s);if(o.cmpn(0)===0)return h.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var b=o.redSqr(),p=b.redMul(o),y=n.redMul(b),E=h.redSqr().redIAdd(p).redISub(y).redISub(y),O=h.redMul(y.redISub(E)).redISub(a.redMul(p)),B=this.z.redMul(o);return this.curve.jpoint(E,O,B)};et.prototype.dblp=function(e){if(e===0)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var r;if(this.curve.zeroA||this.curve.threeA){var n=this;for(r=0;r=0)return!1;if(n.redIAdd(a),this.x.cmp(n)===0)return!0}};et.prototype.inspect=function(){return this.isInfinity()?"":""};et.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var Hr=Tt,df=Pt,pi=hi,M0=dt;function hn(t){pi.call(this,"mont",t),this.a=new Hr(t.a,16).toRed(this.red),this.b=new Hr(t.b,16).toRed(this.red),this.i4=new Hr(4).toRed(this.red).redInvm(),this.two=new Hr(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}df(hn,pi);var _0=hn;hn.prototype.validate=function(e){var r=e.normalize().x,n=r.redSqr(),i=n.redMul(r).redAdd(n.redMul(this.a)).redAdd(r),a=i.redSqrt();return a.redSqr().cmp(i)===0};function Ge(t,e,r){pi.BasePoint.call(this,t,"projective"),e===null&&r===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new Hr(e,16),this.z=new Hr(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}df(Ge,pi.BasePoint);hn.prototype.decodePoint=function(e,r){return this.point(M0.toArray(e,r),1)};hn.prototype.point=function(e,r){return new Ge(this,e,r)};hn.prototype.pointFromJSON=function(e){return Ge.fromJSON(this,e)};Ge.prototype.precompute=function(){};Ge.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())};Ge.fromJSON=function(e,r){return new Ge(e,r[0],r[1]||e.one)};Ge.prototype.inspect=function(){return this.isInfinity()?"":""};Ge.prototype.isInfinity=function(){return this.z.cmpn(0)===0};Ge.prototype.dbl=function(){var e=this.x.redAdd(this.z),r=e.redSqr(),n=this.x.redSub(this.z),i=n.redSqr(),a=r.redSub(i),s=r.redMul(i),o=a.redMul(i.redAdd(this.curve.a24.redMul(a)));return this.curve.point(s,o)};Ge.prototype.add=function(){throw new Error("Not supported on Montgomery curve")};Ge.prototype.diffAdd=function(e,r){var n=this.x.redAdd(this.z),i=this.x.redSub(this.z),a=e.x.redAdd(e.z),s=e.x.redSub(e.z),o=s.redMul(n),h=a.redMul(i),b=r.z.redMul(o.redAdd(h).redSqr()),p=r.x.redMul(o.redISub(h).redSqr());return this.curve.point(b,p)};Ge.prototype.mul=function(e){for(var r=e.clone(),n=this,i=this.curve.point(null,null),a=this,s=[];r.cmpn(0)!==0;r.iushrn(1))s.push(r.andln(1));for(var o=s.length-1;o>=0;o--)s[o]===0?(n=n.diffAdd(i,a),i=i.dbl()):(i=n.diffAdd(i,a),n=n.dbl());return i};Ge.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")};Ge.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")};Ge.prototype.eq=function(e){return this.getX().cmp(e.getX())===0};Ge.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this};Ge.prototype.getX=function(){return this.normalize(),this.x.fromRed()};var E0=dt,nr=Tt,hf=Pt,bi=hi,A0=E0.assert;function Gt(t){this.twisted=(t.a|0)!==1,this.mOneA=this.twisted&&(t.a|0)===-1,this.extended=this.mOneA,bi.call(this,"edwards",t),this.a=new nr(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new nr(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new nr(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),A0(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(t.c|0)===1}hf(Gt,bi);var I0=Gt;Gt.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)};Gt.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)};Gt.prototype.jpoint=function(e,r,n,i){return this.point(e,r,n,i)};Gt.prototype.pointFromX=function(e,r){e=new nr(e,16),e.red||(e=e.toRed(this.red));var n=e.redSqr(),i=this.c2.redSub(this.a.redMul(n)),a=this.one.redSub(this.c2.redMul(this.d).redMul(n)),s=i.redMul(a.redInvm()),o=s.redSqrt();if(o.redSqr().redSub(s).cmp(this.zero)!==0)throw new Error("invalid point");var h=o.fromRed().isOdd();return(r&&!h||!r&&h)&&(o=o.redNeg()),this.point(e,o)};Gt.prototype.pointFromY=function(e,r){e=new nr(e,16),e.red||(e=e.toRed(this.red));var n=e.redSqr(),i=n.redSub(this.c2),a=n.redMul(this.d).redMul(this.c2).redSub(this.a),s=i.redMul(a.redInvm());if(s.cmp(this.zero)===0){if(r)throw new Error("invalid point");return this.point(this.zero,e)}var o=s.redSqrt();if(o.redSqr().redSub(s).cmp(this.zero)!==0)throw new Error("invalid point");return o.fromRed().isOdd()!==r&&(o=o.redNeg()),this.point(o,e)};Gt.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var r=e.x.redSqr(),n=e.y.redSqr(),i=r.redMul(this.a).redAdd(n),a=this.c2.redMul(this.one.redAdd(this.d.redMul(r).redMul(n)));return i.cmp(a)===0};function xe(t,e,r,n,i){bi.BasePoint.call(this,t,"projective"),e===null&&r===null&&n===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new nr(e,16),this.y=new nr(r,16),this.z=n?new nr(n,16):this.curve.one,this.t=i&&new nr(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}hf(xe,bi.BasePoint);Gt.prototype.pointFromJSON=function(e){return xe.fromJSON(this,e)};Gt.prototype.point=function(e,r,n,i){return new xe(this,e,r,n,i)};xe.fromJSON=function(e,r){return new xe(e,r[0],r[1],r[2])};xe.prototype.inspect=function(){return this.isInfinity()?"":""};xe.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};xe.prototype._extDbl=function(){var e=this.x.redSqr(),r=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var i=this.curve._mulA(e),a=this.x.redAdd(this.y).redSqr().redISub(e).redISub(r),s=i.redAdd(r),o=s.redSub(n),h=i.redSub(r),b=a.redMul(o),p=s.redMul(h),y=a.redMul(h),E=o.redMul(s);return this.curve.point(b,p,E,y)};xe.prototype._projDbl=function(){var e=this.x.redAdd(this.y).redSqr(),r=this.x.redSqr(),n=this.y.redSqr(),i,a,s,o,h,b;if(this.curve.twisted){o=this.curve._mulA(r);var p=o.redAdd(n);this.zOne?(i=e.redSub(r).redSub(n).redMul(p.redSub(this.curve.two)),a=p.redMul(o.redSub(n)),s=p.redSqr().redSub(p).redSub(p)):(h=this.z.redSqr(),b=p.redSub(h).redISub(h),i=e.redSub(r).redISub(n).redMul(b),a=p.redMul(o.redSub(n)),s=p.redMul(b))}else o=r.redAdd(n),h=this.curve._mulC(this.z).redSqr(),b=o.redSub(h).redSub(h),i=this.curve._mulC(e.redISub(o)).redMul(b),a=this.curve._mulC(o).redMul(r.redISub(n)),s=o.redMul(b);return this.curve.point(i,a,s)};xe.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()};xe.prototype._extAdd=function(e){var r=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),n=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),i=this.t.redMul(this.curve.dd).redMul(e.t),a=this.z.redMul(e.z.redAdd(e.z)),s=n.redSub(r),o=a.redSub(i),h=a.redAdd(i),b=n.redAdd(r),p=s.redMul(o),y=h.redMul(b),E=s.redMul(b),O=o.redMul(h);return this.curve.point(p,y,O,E)};xe.prototype._projAdd=function(e){var r=this.z.redMul(e.z),n=r.redSqr(),i=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(i).redMul(a),o=n.redSub(s),h=n.redAdd(s),b=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(i).redISub(a),p=r.redMul(o).redMul(b),y,E;return this.curve.twisted?(y=r.redMul(h).redMul(a.redSub(this.curve._mulA(i))),E=o.redMul(h)):(y=r.redMul(h).redMul(a.redSub(i)),E=this.curve._mulC(o).redMul(h)),this.curve.point(p,y,E)};xe.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)};xe.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)};xe.prototype.mulAdd=function(e,r,n){return this.curve._wnafMulAdd(1,[this,r],[e,n],2,!1)};xe.prototype.jmulAdd=function(e,r,n){return this.curve._wnafMulAdd(1,[this,r],[e,n],2,!0)};xe.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this};xe.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};xe.prototype.getX=function(){return this.normalize(),this.x.fromRed()};xe.prototype.getY=function(){return this.normalize(),this.y.fromRed()};xe.prototype.eq=function(e){return this===e||this.getX().cmp(e.getX())===0&&this.getY().cmp(e.getY())===0};xe.prototype.eqXToP=function(e){var r=e.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(r)===0)return!0;for(var n=e.clone(),i=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),this.x.cmp(r)===0)return!0}};xe.prototype.toP=xe.prototype.normalize;xe.prototype.mixedAdd=xe.prototype.add;(function(t){var e=t;e.base=hi,e.short=S0,e.mont=_0,e.edwards=I0})(eo);var vi={},mi={},ae={},O0=xr,B0=Pt;ae.inherits=B0;function C0(t,e){return(t.charCodeAt(e)&64512)!==55296||e<0||e+1>=t.length?!1:(t.charCodeAt(e+1)&64512)===56320}function R0(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if(typeof t=="string")if(e){if(e==="hex")for(t=t.replace(/[^a-z0-9]+/ig,""),t.length%2!==0&&(t="0"+t),i=0;i>6|192,r[n++]=a&63|128):C0(t,i)?(a=65536+((a&1023)<<10)+(t.charCodeAt(++i)&1023),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=a&63|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=a&63|128)}else for(i=0;i>>24|t>>>8&65280|t<<8&16711680|(t&255)<<24;return e>>>0}ae.htonl=pf;function P0(t,e){for(var r="",n=0;n>>0}return a}ae.join32=$0;function k0(t,e){for(var r=new Array(t.length*4),n=0,i=0;n>>24,r[i+1]=a>>>16&255,r[i+2]=a>>>8&255,r[i+3]=a&255):(r[i+3]=a>>>24,r[i+2]=a>>>16&255,r[i+1]=a>>>8&255,r[i]=a&255)}return r}ae.split32=k0;function N0(t,e){return t>>>e|t<<32-e}ae.rotr32=N0;function D0(t,e){return t<>>32-e}ae.rotl32=D0;function z0(t,e){return t+e>>>0}ae.sum32=z0;function F0(t,e,r){return t+e+r>>>0}ae.sum32_3=F0;function L0(t,e,r,n){return t+e+r+n>>>0}ae.sum32_4=L0;function j0(t,e,r,n,i){return t+e+r+n+i>>>0}ae.sum32_5=j0;function U0(t,e,r,n){var i=t[e],a=t[e+1],s=n+a>>>0,o=(s>>0,t[e+1]=s}ae.sum64=U0;function q0(t,e,r,n){var i=e+n>>>0,a=(i>>0}ae.sum64_hi=q0;function H0(t,e,r,n){var i=e+n;return i>>>0}ae.sum64_lo=H0;function V0(t,e,r,n,i,a,s,o){var h=0,b=e;b=b+n>>>0,h+=b>>0,h+=b>>0,h+=b>>0}ae.sum64_4_hi=V0;function K0(t,e,r,n,i,a,s,o){var h=e+n+a+o;return h>>>0}ae.sum64_4_lo=K0;function W0(t,e,r,n,i,a,s,o,h,b){var p=0,y=e;y=y+n>>>0,p+=y>>0,p+=y>>0,p+=y>>0,p+=y>>0}ae.sum64_5_hi=W0;function J0(t,e,r,n,i,a,s,o,h,b){var p=e+n+a+o+b;return p>>>0}ae.sum64_5_lo=J0;function Y0(t,e,r){var n=e<<32-r|t>>>r;return n>>>0}ae.rotr64_hi=Y0;function X0(t,e,r){var n=t<<32-r|e>>>r;return n>>>0}ae.rotr64_lo=X0;function G0(t,e,r){return t>>>r}ae.shr64_hi=G0;function Z0(t,e,r){var n=t<<32-r|e>>>r;return n>>>0}ae.shr64_lo=Z0;var pn={},ko=ae,Q0=xr;function yi(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}pn.BlockHash=yi;yi.prototype.update=function(e,r){if(e=ko.toArray(e,r),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){e=this.pending;var n=e.length%this._delta8;this.pending=e.slice(e.length-n,e.length),this.pending.length===0&&(this.pending=null),e=ko.join32(e,0,e.length-n,this.endian);for(var i=0;i>>24&255,i[a++]=e>>>16&255,i[a++]=e>>>8&255,i[a++]=e&255}else for(i[a++]=e&255,i[a++]=e>>>8&255,i[a++]=e>>>16&255,i[a++]=e>>>24&255,i[a++]=0,i[a++]=0,i[a++]=0,i[a++]=0,s=8;s>>3}Zt.g0_256=ih;function ah(t){return qt(t,17)^qt(t,19)^t>>>10}Zt.g1_256=ah;var rn=ae,oh=pn,sh=Zt,ta=rn.rotl32,wn=rn.sum32,fh=rn.sum32_5,lh=sh.ft_1,xf=oh.BlockHash,uh=[1518500249,1859775393,2400959708,3395469782];function Wt(){if(!(this instanceof Wt))return new Wt;xf.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}rn.inherits(Wt,xf);var ch=Wt;Wt.blockSize=512;Wt.outSize=160;Wt.hmacStrength=80;Wt.padLength=64;Wt.prototype._update=function(e,r){for(var n=this.W,i=0;i<16;i++)n[i]=e[r+i];for(;ithis.blockSize&&(e=new this.Hash().update(e).digest()),Zh(e.length<=this.blockSize);for(var r=e.length;r=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,n)}var rp=mr;mr.prototype._init=function(e,r,n){var i=e.concat(r).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var a=0;a=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1};mr.prototype.generate=function(e,r,n,i){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof r!="string"&&(i=n,n=r,r=null),n&&(n=Br.toArray(n,i||"hex"),this._update(n));for(var a=[];a.length"};var ei=Tt,ro=dt,op=ro.assert;function gi(t,e){if(t instanceof gi)return t;this._importDER(t,e)||(op(t.r&&t.s,"Signature without r or s"),this.r=new ei(t.r,16),this.s=new ei(t.s,16),t.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}var sp=gi;function fp(){this.place=0}function aa(t,e){var r=t[e.place++];if(!(r&128))return r;var n=r&15;if(n===0||n>4)return!1;for(var i=0,a=0,s=e.place;a>>=0;return i<=127?!1:(e.place=s,i)}function Lo(t){for(var e=0,r=t.length-1;!t[e]&&!(t[e+1]&128)&&e>>3);for(t.push(r|128);--r;)t.push(e>>>(r<<3)&255);t.push(e)}gi.prototype.toDER=function(e){var r=this.r.toArray(),n=this.s.toArray();for(r[0]&128&&(r=[0].concat(r)),n[0]&128&&(n=[0].concat(n)),r=Lo(r),n=Lo(n);!n[0]&&!(n[1]&128);)n=n.slice(1);var i=[2];oa(i,r.length),i=i.concat(r),i.push(2),oa(i,n.length);var a=i.concat(n),s=[48];return oa(s,a.length),s=s.concat(a),ro.encode(s,e)};var Cr=Tt,Tf=rp,lp=dt,sa=vi,up=cf,Pf=lp.assert,no=ap,xi=sp;function xt(t){if(!(this instanceof xt))return new xt(t);typeof t=="string"&&(Pf(Object.prototype.hasOwnProperty.call(sa,t),"Unknown curve "+t),t=sa[t]),t instanceof sa.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}var cp=xt;xt.prototype.keyPair=function(e){return new no(this,e)};xt.prototype.keyFromPrivate=function(e,r){return no.fromPrivate(this,e,r)};xt.prototype.keyFromPublic=function(e,r){return no.fromPublic(this,e,r)};xt.prototype.genKeyPair=function(e){e||(e={});for(var r=new Tf({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||up(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),i=this.n.sub(new Cr(2));;){var a=new Cr(r.generate(n));if(!(a.cmp(i)>0))return a.iaddn(1),this.keyFromPrivate(a)}};xt.prototype._truncateToN=function(e,r){var n=e.byteLength()*8-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!r&&e.cmp(this.n)>=0?e.sub(this.n):e};xt.prototype.sign=function(e,r,n,i){typeof n=="object"&&(i=n,n=null),i||(i={}),r=this.keyFromPrivate(r,n),e=this._truncateToN(new Cr(e,16));for(var a=this.n.byteLength(),s=r.getPrivate().toArray("be",a),o=e.toArray("be",a),h=new Tf({hash:this.hash,entropy:s,nonce:o,pers:i.pers,persEnc:i.persEnc||"utf8"}),b=this.n.sub(new Cr(1)),p=0;;p++){var y=i.k?i.k(p):new Cr(h.generate(this.n.byteLength()));if(y=this._truncateToN(y,!0),!(y.cmpn(1)<=0||y.cmp(b)>=0)){var E=this.g.mul(y);if(!E.isInfinity()){var O=E.getX(),B=O.umod(this.n);if(B.cmpn(0)!==0){var T=y.invm(this.n).mul(B.mul(r.getPrivate()).iadd(e));if(T=T.umod(this.n),T.cmpn(0)!==0){var L=(E.getY().isOdd()?1:0)|(O.cmp(B)!==0?2:0);return i.canonical&&T.cmp(this.nh)>0&&(T=this.n.sub(T),L^=1),new xi({r:B,s:T,recoveryParam:L})}}}}}};xt.prototype.verify=function(e,r,n,i){e=this._truncateToN(new Cr(e,16)),n=this.keyFromPublic(n,i),r=new xi(r,"hex");var a=r.r,s=r.s;if(a.cmpn(1)<0||a.cmp(this.n)>=0||s.cmpn(1)<0||s.cmp(this.n)>=0)return!1;var o=s.invm(this.n),h=o.mul(e).umod(this.n),b=o.mul(a).umod(this.n),p;return this.curve._maxwellTrick?(p=this.g.jmulAdd(h,n.getPublic(),b),p.isInfinity()?!1:p.eqXToP(a)):(p=this.g.mulAdd(h,n.getPublic(),b),p.isInfinity()?!1:p.getX().umod(this.n).cmp(a)===0)};xt.prototype.recoverPubKey=function(t,e,r,n){Pf((3&r)===r,"The recovery param is more than two bits"),e=new xi(e,n);var i=this.n,a=new Cr(t),s=e.r,o=e.s,h=r&1,b=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&b)throw new Error("Unable to find sencond key candinate");b?s=this.curve.pointFromX(s.add(this.curve.n),h):s=this.curve.pointFromX(s,h);var p=e.r.invm(i),y=i.sub(a).mul(p).umod(i),E=o.mul(p).umod(i);return this.g.mulAdd(y,s,E)};xt.prototype.getKeyRecoveryParam=function(t,e,r,n){if(e=new xi(e,n),e.recoveryParam!==null)return e.recoveryParam;for(var i=0;i<4;i++){var a;try{a=this.recoverPubKey(t,e,i)}catch{continue}if(a.eq(r))return i}throw new Error("Unable to find valid recovery factor")};var Nn=dt,$f=Nn.assert,jo=Nn.parseBytes,mn=Nn.cachedProperty;function Ye(t,e){this.eddsa=t,this._secret=jo(e.secret),t.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=jo(e.pub)}Ye.fromPublic=function(e,r){return r instanceof Ye?r:new Ye(e,{pub:r})};Ye.fromSecret=function(e,r){return r instanceof Ye?r:new Ye(e,{secret:r})};Ye.prototype.secret=function(){return this._secret};mn(Ye,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())});mn(Ye,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())});mn(Ye,"privBytes",function(){var e=this.eddsa,r=this.hash(),n=e.encodingLength-1,i=r.slice(0,e.encodingLength);return i[0]&=248,i[n]&=127,i[n]|=64,i});mn(Ye,"priv",function(){return this.eddsa.decodeInt(this.privBytes())});mn(Ye,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()});mn(Ye,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)});Ye.prototype.sign=function(e){return $f(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)};Ye.prototype.verify=function(e,r){return this.eddsa.verify(e,r,this)};Ye.prototype.getSecret=function(e){return $f(this._secret,"KeyPair is public only"),Nn.encode(this.secret(),e)};Ye.prototype.getPublic=function(e){return Nn.encode(this.pubBytes(),e)};var dp=Ye,hp=Tt,wi=dt,pp=wi.assert,Si=wi.cachedProperty,bp=wi.parseBytes;function zr(t,e){this.eddsa=t,typeof e!="object"&&(e=bp(e)),Array.isArray(e)&&(e={R:e.slice(0,t.encodingLength),S:e.slice(t.encodingLength)}),pp(e.R&&e.S,"Signature without R or S"),t.isPoint(e.R)&&(this._R=e.R),e.S instanceof hp&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}Si(zr,"S",function(){return this.eddsa.decodeInt(this.Sencoded())});Si(zr,"R",function(){return this.eddsa.decodePoint(this.Rencoded())});Si(zr,"Rencoded",function(){return this.eddsa.encodePoint(this.R())});Si(zr,"Sencoded",function(){return this.eddsa.encodeInt(this.S())});zr.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())};zr.prototype.toHex=function(){return wi.encode(this.toBytes(),"hex").toUpperCase()};var vp=zr,mp=mi,yp=vi,on=dt,gp=on.assert,kf=on.parseBytes,Nf=dp,Uo=vp;function at(t){if(gp(t==="ed25519","only tested with ed25519 so far"),!(this instanceof at))return new at(t);t=yp[t].curve,this.curve=t,this.g=t.g,this.g.precompute(t.n.bitLength()+1),this.pointClass=t.point().constructor,this.encodingLength=Math.ceil(t.n.bitLength()/8),this.hash=mp.sha512}var xp=at;at.prototype.sign=function(e,r){e=kf(e);var n=this.keyFromSecret(r),i=this.hashInt(n.messagePrefix(),e),a=this.g.mul(i),s=this.encodePoint(a),o=this.hashInt(s,n.pubBytes(),e).mul(n.priv()),h=i.add(o).umod(this.curve.n);return this.makeSignature({R:a,S:h,Rencoded:s})};at.prototype.verify=function(e,r,n){e=kf(e),r=this.makeSignature(r);var i=this.keyFromPublic(n),a=this.hashInt(r.Rencoded(),i.pubBytes(),e),s=this.g.mul(r.S()),o=r.R().add(i.pub().mul(a));return o.eq(s)};at.prototype.hashInt=function(){for(var e=this.hash(),r=0;r{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function ct(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/o,s%1===0?r(s):0)}}return t}const lt=/(-?[0-9.]*[0-9]+[0-9.]*)/g,at=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function de(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(lt);if(r===null||!r.length)return e;const o=[];let s=r.shift(),i=at.test(s);for(;;){if(i){const c=parseFloat(s);isNaN(c)?o.push(s):o.push(Math.ceil(c*t*n)/n)}else o.push(s);if(s=r.shift(),s===void 0)return o.join("");i=!i}}function ut(e,t="defs"){let n="";const r=e.indexOf("<"+t);for(;r>=0;){const o=e.indexOf(">",r),s=e.indexOf("",s);if(i===-1)break;n+=e.slice(o+1,s).trim(),e=e.slice(0,r).trim()+e.slice(i+1)}return{defs:n,content:e}}function ft(e,t){return e?""+e+""+t:t}function dt(e,t,n){const r=ut(e);return ft(r.defs,t+r.content+n)}const pt=e=>e==="unset"||e==="undefined"||e==="none";function ht(e,t){const n={...Y,...e},r={...Fe,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(m=>{const l=[],b=m.hFlip,x=m.vFlip;let y=m.rotate;b?x?y+=2:(l.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),l.push("scale(-1 1)"),o.top=o.left=0):x&&(l.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),l.push("scale(1 -1)"),o.top=o.left=0);let v;switch(y<0&&(y-=Math.floor(y/4)*4),y=y%4,y){case 1:v=o.height/2+o.top,l.unshift("rotate(90 "+v.toString()+" "+v.toString()+")");break;case 2:l.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:v=o.width/2+o.left,l.unshift("rotate(-90 "+v.toString()+" "+v.toString()+")");break}y%2===1&&(o.left!==o.top&&(v=o.left,o.left=o.top,o.top=v),o.width!==o.height&&(v=o.width,o.width=o.height,o.height=v)),l.length&&(s=dt(s,'',""))});const i=r.width,c=r.height,a=o.width,u=o.height;let f,d;i===null?(d=c===null?"1em":c==="auto"?u:c,f=de(d,a/u)):(f=i==="auto"?a:i,d=c===null?de(f,u/a):c==="auto"?u:c);const p={},g=(m,l)=>{pt(l)||(p[m]=l.toString())};g("width",f),g("height",d);const w=[o.left,o.top,a,u];return p.viewBox=w.join(" "),{attributes:p,viewBox:w,body:s}}const gt=/\sid="(\S+)"/g,mt="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let yt=0;function bt(e,t=mt){const n=[];let r;for(;r=gt.exec(e);)n.push(r[1]);if(!n.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(s=>{const i=typeof t=="function"?t(s):t+(yt++).toString(),c=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+i+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}function vt(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'"+e+""}function wt(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function xt(e){return"data:image/svg+xml,"+wt(e)}function It(e){return'url("'+xt(e)+'")'}const pe={...Fe,inline:!1},St={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Ct={display:"inline-block"},q={backgroundColor:"currentColor"},Me={backgroundColor:"transparent"},he={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},ge={webkitMask:q,mask:q,background:Me};for(const e in ge){const t=ge[e];for(const n in he)t[e+n]=he[n]}const N={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";N[e+"-flip"]=t,N[e.slice(0,1)+"-flip"]=t,N[e+"Flip"]=t});function me(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const kt=(e,t)=>{const n=rt(pe,t),r={...St},o=t.mode||"svg",s={},i=t.style,c=typeof i=="object"&&!(i instanceof Array)?i:{};for(let m in t){const l=t[m];if(l!==void 0)switch(m){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[m]=l===!0||l==="true"||l===1;break;case"flip":typeof l=="string"&&it(n,l);break;case"color":s.color=l;break;case"rotate":typeof l=="string"?n[m]=ct(l):typeof l=="number"&&(n[m]=l);break;case"ariaHidden":case"aria-hidden":l!==!0&&l!=="true"&&delete r["aria-hidden"];break;default:{const b=N[m];b?(l===!0||l==="true"||l===1)&&(n[b]=!0):pe[m]===void 0&&(r[m]=l)}}}const a=ht(e,n),u=a.attributes;if(n.inline&&(s.verticalAlign="-0.125em"),o==="svg"){r.style={...s,...c},Object.assign(r,u);let m=0,l=t.id;return typeof l=="string"&&(l=l.replace(/-/g,"_")),r.innerHTML=bt(a.body,l?()=>l+"ID"+m++:"iconifyVue"),ce("svg",r)}const{body:f,width:d,height:p}=e,g=o==="mask"||(o==="bg"?!1:f.indexOf("currentColor")!==-1),w=vt(f,{...u,width:d+"",height:p+""});return r.style={...s,"--svg":It(w),width:me(u.width),height:me(u.height),...Ct,...g?q:Me,...c},ce("span",r)},Ot=Object.create(null),jt=Te({inheritAttrs:!1,render(){const e=this.$attrs,t=e.icon,n=typeof t=="string"?Ot[t]:typeof t=="object"?t:null;return n===null||typeof n!="object"||typeof n.body!="string"?this.$slots.default?this.$slots.default():null:kt({...Y,...n},e)}}),A=/^[a-z0-9]+(-[a-z0-9]+)*$/,R=(e,t,n,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const c=o.pop(),a=o.pop(),u={provider:o.length>0?o[0]:r,prefix:a,name:c};return t&&!_(u)?null:u}const s=o[0],i=s.split("-");if(i.length>1){const c={provider:r,prefix:i.shift(),name:i.join("-")};return t&&!_(c)?null:c}if(n&&r===""){const c={provider:r,prefix:"",name:s};return t&&!_(c,n)?null:c}return null},_=(e,t)=>e?!!((e.provider===""||e.provider.match(A))&&(t&&e.prefix===""||e.prefix.match(A))&&e.name.match(A)):!1,ze=Object.freeze({left:0,top:0,width:16,height:16}),D=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),ee=Object.freeze({...ze,...D}),Q=Object.freeze({...ee,body:"",hidden:!1});function Tt(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function ye(e,t){const n=Tt(e,t);for(const r in Q)r in D?r in e&&!(r in n)&&(n[r]=D[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function At(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function s(i){if(n[i])return o[i]=[];if(!(i in o)){o[i]=null;const c=r[i]&&r[i].parent,a=c&&s(c);a&&(o[i]=[c].concat(a))}return o[i]}return Object.keys(n).concat(Object.keys(r)).forEach(s),o}function Pt(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let s={};function i(c){s=ye(r[c]||o[c],s)}return i(t),n.forEach(i),ye(e,s)}function Le(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const r=At(e);for(const o in r){const s=r[o];s&&(t(o,Pt(e,o,s)),n.push(o))}return n}const Et={provider:"",aliases:{},not_found:{},...ze};function V(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function Ne(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!V(e,Et))return null;const n=t.icons;for(const o in n){const s=n[o];if(!o.match(A)||typeof s.body!="string"||!V(s,Q))return null}const r=t.aliases||Object.create(null);for(const o in r){const s=r[o],i=s.parent;if(!o.match(A)||typeof i!="string"||!n[i]&&!r[i]||!V(s,Q))return null}return t}const be=Object.create(null);function Ft(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function k(e,t){const n=be[e]||(be[e]=Object.create(null));return n[t]||(n[t]=Ft(e,t))}function te(e,t){return Ne(t)?Le(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function Mt(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let P=!1;function _e(e){return typeof e=="boolean"&&(P=e),P}function zt(e){const t=typeof e=="string"?R(e,!0,P):e;if(t){const n=k(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function Lt(e,t){const n=R(e,!0,P);if(!n)return!1;const r=k(n.provider,n.prefix);return Mt(r,n.name,t)}function Nt(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),P&&!t&&!e.prefix){let o=!1;return Ne(e)&&(e.prefix="",Le(e,(s,i)=>{i&&Lt(s,i)&&(o=!0)})),o}const n=e.prefix;if(!_({provider:t,prefix:n,name:"a"}))return!1;const r=k(t,n);return!!te(r,e)}const _t=Object.freeze({width:null,height:null}),$t=Object.freeze({..._t,...D});""+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);const G=Object.create(null);function Dt(e,t){G[e]=t}function K(e){return G[e]||G[""]}function ne(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const oe=Object.create(null),T=["https://api.simplesvg.com","https://api.unisvg.com"],$=[];for(;T.length>0;)T.length===1||Math.random()>.5?$.push(T.shift()):$.push(T.pop());oe[""]=ne({resources:["https://api.iconify.design"].concat($)});function J(e,t){const n=ne(t);return n===null?!1:(oe[e]=n,!0)}function re(e){return oe[e]}const Rt=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let ve=Rt();function Bt(e,t){const n=re(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(i=>{o=Math.max(o,i.length)});const s=t+".json?icons=";r=n.maxURL-o-n.path.length-s.length}return r}function Vt(e){return e===404}const Ht=(e,t,n)=>{const r=[],o=Bt(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},c=0;return n.forEach((a,u)=>{c+=a.length+1,c>=o&&u>0&&(r.push(i),i={type:s,provider:e,prefix:t,icons:[]},c=a.length),i.icons.push(a)}),r.push(i),r};function Ut(e){if(typeof e=="string"){const t=re(e);if(t)return t.path}return"/"}const qt=(e,t,n)=>{if(!ve){n("abort",424);return}let r=Ut(t.provider);switch(t.type){case"icons":{const s=t.prefix,c=t.icons.join(","),a=new URLSearchParams({icons:c});r+=s+".json?"+a.toString();break}case"custom":{const s=t.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let o=503;ve(e+r).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{n(Vt(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",o)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",o)})},Qt={prepare:Ht,send:qt};function Gt(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,s)=>o.provider!==s.provider?o.provider.localeCompare(s.provider):o.prefix!==s.prefix?o.prefix.localeCompare(s.prefix):o.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const s=o.provider,i=o.prefix,c=o.name,a=n[s]||(n[s]=Object.create(null)),u=a[i]||(a[i]=k(s,i));let f;c in u.icons?f=t.loaded:i===""||u.missing.has(c)?f=t.missing:f=t.pending;const d={provider:s,prefix:i,name:c};f.push(d)}),t}function $e(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function Kt(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach(s=>{const i=s.icons,c=i.pending.length;i.pending=i.pending.filter(a=>{if(a.prefix!==o)return!0;const u=a.name;if(e.icons[u])i.loaded.push({provider:r,prefix:o,name:u});else if(e.missing.has(u))i.missing.push({provider:r,prefix:o,name:u});else return n=!0,!0;return!1}),i.pending.length!==c&&(n||$e([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let Jt=0;function Wt(e,t,n){const r=Jt++,o=$e.bind(null,n,r);if(!t.pending.length)return o;const s={id:r,icons:t,callback:e,abort:o};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}function Xt(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const s=typeof o=="string"?R(o,t,n):o;s&&r.push(s)}),r}var Zt={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Yt(e,t,n,r){const o=e.resources.length,s=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let h=e.resources.slice(0);for(i=[];h.length>1;){const I=Math.floor(Math.random()*h.length);i.push(h[I]),h=h.slice(0,I).concat(h.slice(I+1))}i=i.concat(h)}else i=e.resources.slice(s).concat(e.resources.slice(0,s));const c=Date.now();let a="pending",u=0,f,d=null,p=[],g=[];typeof r=="function"&&g.push(r);function w(){d&&(clearTimeout(d),d=null)}function m(){a==="pending"&&(a="aborted"),w(),p.forEach(h=>{h.status==="pending"&&(h.status="aborted")}),p=[]}function l(h,I){I&&(g=[]),typeof h=="function"&&g.push(h)}function b(){return{startTime:c,payload:t,status:a,queriesSent:u,queriesPending:p.length,subscribe:l,abort:m}}function x(){a="failed",g.forEach(h=>{h(void 0,f)})}function y(){p.forEach(h=>{h.status==="pending"&&(h.status="aborted")}),p=[]}function v(h,I,j){const F=I!=="success";switch(p=p.filter(S=>S!==h),a){case"pending":break;case"failed":if(F||!e.dataAfterTimeout)return;break;default:return}if(I==="abort"){f=j,x();return}if(F){f=j,p.length||(i.length?O():x());return}if(w(),y(),!e.random){const S=e.resources.indexOf(h.resource);S!==-1&&S!==e.index&&(e.index=S)}a="completed",g.forEach(S=>{S(j)})}function O(){if(a!=="pending")return;w();const h=i.shift();if(h===void 0){if(p.length){d=setTimeout(()=>{w(),a==="pending"&&(y(),x())},e.timeout);return}x();return}const I={status:"pending",resource:h,callback:(j,F)=>{v(I,j,F)}};p.push(I),u++,d=setTimeout(O,e.rotate),n(h,t,I.callback)}return setTimeout(O),b}function De(e){const t={...Zt,...e};let n=[];function r(){n=n.filter(c=>c().status==="pending")}function o(c,a,u){const f=Yt(t,c,a,(d,p)=>{r(),u&&u(d,p)});return n.push(f),f}function s(c){return n.find(a=>c(a))||null}return{query:o,find:s,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:r}}function we(){}const H=Object.create(null);function en(e){if(!H[e]){const t=re(e);if(!t)return;const n=De(t),r={config:t,redundancy:n};H[e]=r}return H[e]}function tn(e,t,n){let r,o;if(typeof e=="string"){const s=K(e);if(!s)return n(void 0,424),we;o=s.send;const i=en(e);i&&(r=i.redundancy)}else{const s=ne(e);if(s){r=De(s);const i=e.resources?e.resources[0]:"",c=K(i);c&&(o=c.send)}}return!r||!o?(n(void 0,424),we):r.query(t,o,n)().abort}const xe="iconify2",E="iconify",Re=E+"-count",Ie=E+"-version",Be=36e5,nn=168,on=50;function W(e,t){try{return e.getItem(t)}catch{}}function se(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Se(e,t){try{e.removeItem(t)}catch{}}function X(e,t){return se(e,Re,t.toString())}function Z(e){return parseInt(W(e,Re))||0}const B={local:!0,session:!0},Ve={local:new Set,session:new Set};let ie=!1;function rn(e){ie=e}let L=typeof window>"u"?{}:window;function He(e){const t=e+"Storage";try{if(L&&L[t]&&typeof L[t].length=="number")return L[t]}catch{}B[e]=!1}function Ue(e,t){const n=He(e);if(!n)return;const r=W(n,Ie);if(r!==xe){if(r){const c=Z(n);for(let a=0;a{const a=E+c.toString(),u=W(n,a);if(typeof u=="string"){try{const f=JSON.parse(u);if(typeof f=="object"&&typeof f.cached=="number"&&f.cached>o&&typeof f.provider=="string"&&typeof f.data=="object"&&typeof f.data.prefix=="string"&&t(f,c))return!0}catch{}Se(n,a)}};let i=Z(n);for(let c=i-1;c>=0;c--)s(c)||(c===i-1?(i--,X(n,i)):Ve[e].add(c))}function qe(){if(!ie){rn(!0);for(const e in B)Ue(e,t=>{const n=t.data,r=t.provider,o=n.prefix,s=k(r,o);if(!te(s,n).length)return!1;const i=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function sn(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in B)Ue(r,o=>{const s=o.data;return o.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function cn(e,t){ie||qe();function n(r){let o;if(!B[r]||!(o=He(r)))return;const s=Ve[r];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=Z(o),i>=on||!X(o,i+1))return;const c={cached:Math.floor(Date.now()/Be),provider:e.provider,data:t};return se(o,E+i.toString(),JSON.stringify(c))}t.lastModified&&!sn(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Ce(){}function ln(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Kt(e)}))}function an(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let s;if(!o||!(s=K(n)))return;s.prepare(n,r,o).forEach(c=>{tn(n,c,a=>{if(typeof a!="object")c.icons.forEach(u=>{e.missing.add(u)});else try{const u=te(e,a);if(!u.length)return;const f=e.pendingIcons;f&&u.forEach(d=>{f.delete(d)}),cn(e,a)}catch(u){console.error(u)}ln(e)})})}))}const un=(e,t)=>{const n=Xt(e,!0,_e()),r=Gt(n);if(!r.pending.length){let a=!0;return t&&setTimeout(()=>{a&&t(r.loaded,r.missing,r.pending,Ce)}),()=>{a=!1}}const o=Object.create(null),s=[];let i,c;return r.pending.forEach(a=>{const{provider:u,prefix:f}=a;if(f===c&&u===i)return;i=u,c=f,s.push(k(u,f));const d=o[u]||(o[u]=Object.create(null));d[f]||(d[f]=[])}),r.pending.forEach(a=>{const{provider:u,prefix:f,name:d}=a,p=k(u,f),g=p.pendingIcons||(p.pendingIcons=new Set);g.has(d)||(g.add(d),o[u][f].push(d))}),s.forEach(a=>{const{provider:u,prefix:f}=a;o[u][f].length&&an(a,o[u][f])}),t?Wt(t,r,s):Ce},fn=e=>new Promise((t,n)=>{const r=typeof e=="string"?R(e,!0):e;if(!r){n(e);return}un([r||e],o=>{if(o.length&&r){const s=zt(r);if(s){t({...ee,...s});return}}n(e)})});({...$t});const ke={backgroundColor:"currentColor"},dn={backgroundColor:"transparent"},Oe={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},je={webkitMask:ke,mask:ke,background:dn};for(const e in je){const t=je[e];for(const n in Oe)t[e+n]=Oe[n]}const U={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";U[e+"-flip"]=t,U[e.slice(0,1)+"-flip"]=t,U[e+"Flip"]=t});_e(!0);Dt("",Qt);if(typeof document<"u"&&typeof window<"u"){qe();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!Nt(r))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const r="IconifyProviders["+n+"] is invalid.";try{const o=t[n];if(typeof o!="object"||!o||o.resources===void 0)continue;J(n,o)||console.error(r)}catch{console.error(r)}}}}({...ee});const pn=Te({__name:"Icon",props:{name:{type:String,required:!0},size:{type:String,default:""}},async setup(e){let t,n;const r=tt(),o=Qe(),s=e;le(()=>{var l;return(l=o.nuxtIcon)==null?void 0:l.iconifyApiOptions},()=>{var l,b,x,y,v,O;if((b=(l=o.nuxtIcon)==null?void 0:l.iconifyApiOptions)!=null&&b.url){try{new URL(o.nuxtIcon.iconifyApiOptions.url)}catch{console.warn("Nuxt Icon: Invalid custom Iconify API URL");return}if((y=(x=o.nuxtIcon)==null?void 0:x.iconifyApiOptions)!=null&&y.publicApiFallback){J("custom",{resources:[(v=o.nuxtIcon)==null?void 0:v.iconifyApiOptions.url],index:0});return}J("",{resources:[(O=o.nuxtIcon)==null?void 0:O.iconifyApiOptions.url]})}},{immediate:!0});const i=Ge("icons",()=>({})),c=Ke(!1),a=C(()=>{var l,b;return(b=(l=o.nuxtIcon)==null?void 0:l.aliases)!=null&&b[s.name]?o.nuxtIcon.aliases[s.name]:s.name}),u=C(()=>ot(a.value)),f=C(()=>[u.value.provider,u.value.prefix,u.value.name].filter(Boolean).join(":")),d=C(()=>{var l;return(l=i.value)==null?void 0:l[f.value]}),p=C(()=>{var l;return(l=r.vueApp)==null?void 0:l.component(a.value)}),g=C(()=>{var b,x,y;if(!s.size&&typeof((b=o.nuxtIcon)==null?void 0:b.size)=="boolean"&&!((x=o.nuxtIcon)!=null&&x.size))return;const l=s.size||((y=o.nuxtIcon)==null?void 0:y.size)||"1em";return String(Number(l))===l?`${l}px`:l}),w=C(()=>{var l;return((l=o==null?void 0:o.nuxtIcon)==null?void 0:l.class)??"icon"});async function m(){var l;p.value||(l=i.value)!=null&&l[f.value]||(c.value=!0,i.value[f.value]=await fn(u.value).catch(()=>{}),c.value=!1)}return le(a,m),!p.value&&([t,n]=Je(()=>m()),t=await t,n()),(l,b)=>c.value?(M(),ae("span",{key:0,class:z(w.value),style:ue({width:g.value,height:g.value})},null,6)):d.value?(M(),fe(We(jt),{key:1,icon:d.value,class:z(w.value),width:g.value,height:g.value},null,8,["icon","class","width","height"])):p.value?(M(),fe(Xe(p.value),{key:2,class:z(w.value),width:g.value,height:g.value},null,8,["class","width","height"])):(M(),ae("span",{key:3,class:z(w.value),style:ue({fontSize:g.value,lineHeight:g.value,width:g.value,height:g.value})},[Ze(l.$slots,"default",{},()=>[Ye(et(e.name),1)],!0)],6))}}),mn=nt(pn,[["__scopeId","data-v-bff11e52"]]);export{mn as default}; +import{d as Te,g as ce,N as Qe,X as le,ae as Ge,r as Ke,c as C,al as Je,v as M,x as ae,P as z,ad as ue,O as fe,H as We,Z as Xe,a0 as Ze,C as Ye,z as et,m as tt,_ as nt}from"./CdskMUEL.js";import{r as ot}from"./CAZilBRX.js";const Ae=Object.freeze({left:0,top:0,width:16,height:16}),Pe=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Y=Object.freeze({...Ae,...Pe});Object.freeze({...Y,body:"",hidden:!1});({...Ae});const Ee=Object.freeze({width:null,height:null}),Fe=Object.freeze({...Ee,...Pe});function rt(e,t){const n={...e};for(const r in t){const o=t[r],s=typeof o;r in Ee?(o===null||o&&(s==="string"||s==="number"))&&(n[r]=o):s===typeof n[r]&&(n[r]=r==="rotate"?o%4:o)}return n}const st=/[\s,]+/;function it(e,t){t.split(st).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function ct(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/o,s%1===0?r(s):0)}}return t}const lt=/(-?[0-9.]*[0-9]+[0-9.]*)/g,at=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function de(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(lt);if(r===null||!r.length)return e;const o=[];let s=r.shift(),i=at.test(s);for(;;){if(i){const c=parseFloat(s);isNaN(c)?o.push(s):o.push(Math.ceil(c*t*n)/n)}else o.push(s);if(s=r.shift(),s===void 0)return o.join("");i=!i}}function ut(e,t="defs"){let n="";const r=e.indexOf("<"+t);for(;r>=0;){const o=e.indexOf(">",r),s=e.indexOf("",s);if(i===-1)break;n+=e.slice(o+1,s).trim(),e=e.slice(0,r).trim()+e.slice(i+1)}return{defs:n,content:e}}function ft(e,t){return e?""+e+""+t:t}function dt(e,t,n){const r=ut(e);return ft(r.defs,t+r.content+n)}const pt=e=>e==="unset"||e==="undefined"||e==="none";function ht(e,t){const n={...Y,...e},r={...Fe,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(m=>{const l=[],b=m.hFlip,x=m.vFlip;let y=m.rotate;b?x?y+=2:(l.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),l.push("scale(-1 1)"),o.top=o.left=0):x&&(l.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),l.push("scale(1 -1)"),o.top=o.left=0);let v;switch(y<0&&(y-=Math.floor(y/4)*4),y=y%4,y){case 1:v=o.height/2+o.top,l.unshift("rotate(90 "+v.toString()+" "+v.toString()+")");break;case 2:l.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:v=o.width/2+o.left,l.unshift("rotate(-90 "+v.toString()+" "+v.toString()+")");break}y%2===1&&(o.left!==o.top&&(v=o.left,o.left=o.top,o.top=v),o.width!==o.height&&(v=o.width,o.width=o.height,o.height=v)),l.length&&(s=dt(s,'',""))});const i=r.width,c=r.height,a=o.width,u=o.height;let f,d;i===null?(d=c===null?"1em":c==="auto"?u:c,f=de(d,a/u)):(f=i==="auto"?a:i,d=c===null?de(f,u/a):c==="auto"?u:c);const p={},g=(m,l)=>{pt(l)||(p[m]=l.toString())};g("width",f),g("height",d);const w=[o.left,o.top,a,u];return p.viewBox=w.join(" "),{attributes:p,viewBox:w,body:s}}const gt=/\sid="(\S+)"/g,mt="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let yt=0;function bt(e,t=mt){const n=[];let r;for(;r=gt.exec(e);)n.push(r[1]);if(!n.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(s=>{const i=typeof t=="function"?t(s):t+(yt++).toString(),c=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+i+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}function vt(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'"+e+""}function wt(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function xt(e){return"data:image/svg+xml,"+wt(e)}function It(e){return'url("'+xt(e)+'")'}const pe={...Fe,inline:!1},St={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Ct={display:"inline-block"},q={backgroundColor:"currentColor"},Me={backgroundColor:"transparent"},he={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},ge={webkitMask:q,mask:q,background:Me};for(const e in ge){const t=ge[e];for(const n in he)t[e+n]=he[n]}const N={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";N[e+"-flip"]=t,N[e.slice(0,1)+"-flip"]=t,N[e+"Flip"]=t});function me(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const kt=(e,t)=>{const n=rt(pe,t),r={...St},o=t.mode||"svg",s={},i=t.style,c=typeof i=="object"&&!(i instanceof Array)?i:{};for(let m in t){const l=t[m];if(l!==void 0)switch(m){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[m]=l===!0||l==="true"||l===1;break;case"flip":typeof l=="string"&&it(n,l);break;case"color":s.color=l;break;case"rotate":typeof l=="string"?n[m]=ct(l):typeof l=="number"&&(n[m]=l);break;case"ariaHidden":case"aria-hidden":l!==!0&&l!=="true"&&delete r["aria-hidden"];break;default:{const b=N[m];b?(l===!0||l==="true"||l===1)&&(n[b]=!0):pe[m]===void 0&&(r[m]=l)}}}const a=ht(e,n),u=a.attributes;if(n.inline&&(s.verticalAlign="-0.125em"),o==="svg"){r.style={...s,...c},Object.assign(r,u);let m=0,l=t.id;return typeof l=="string"&&(l=l.replace(/-/g,"_")),r.innerHTML=bt(a.body,l?()=>l+"ID"+m++:"iconifyVue"),ce("svg",r)}const{body:f,width:d,height:p}=e,g=o==="mask"||(o==="bg"?!1:f.indexOf("currentColor")!==-1),w=vt(f,{...u,width:d+"",height:p+""});return r.style={...s,"--svg":It(w),width:me(u.width),height:me(u.height),...Ct,...g?q:Me,...c},ce("span",r)},Ot=Object.create(null),jt=Te({inheritAttrs:!1,render(){const e=this.$attrs,t=e.icon,n=typeof t=="string"?Ot[t]:typeof t=="object"?t:null;return n===null||typeof n!="object"||typeof n.body!="string"?this.$slots.default?this.$slots.default():null:kt({...Y,...n},e)}}),A=/^[a-z0-9]+(-[a-z0-9]+)*$/,R=(e,t,n,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const c=o.pop(),a=o.pop(),u={provider:o.length>0?o[0]:r,prefix:a,name:c};return t&&!_(u)?null:u}const s=o[0],i=s.split("-");if(i.length>1){const c={provider:r,prefix:i.shift(),name:i.join("-")};return t&&!_(c)?null:c}if(n&&r===""){const c={provider:r,prefix:"",name:s};return t&&!_(c,n)?null:c}return null},_=(e,t)=>e?!!((e.provider===""||e.provider.match(A))&&(t&&e.prefix===""||e.prefix.match(A))&&e.name.match(A)):!1,ze=Object.freeze({left:0,top:0,width:16,height:16}),D=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),ee=Object.freeze({...ze,...D}),Q=Object.freeze({...ee,body:"",hidden:!1});function Tt(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function ye(e,t){const n=Tt(e,t);for(const r in Q)r in D?r in e&&!(r in n)&&(n[r]=D[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function At(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function s(i){if(n[i])return o[i]=[];if(!(i in o)){o[i]=null;const c=r[i]&&r[i].parent,a=c&&s(c);a&&(o[i]=[c].concat(a))}return o[i]}return Object.keys(n).concat(Object.keys(r)).forEach(s),o}function Pt(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let s={};function i(c){s=ye(r[c]||o[c],s)}return i(t),n.forEach(i),ye(e,s)}function Le(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const r=At(e);for(const o in r){const s=r[o];s&&(t(o,Pt(e,o,s)),n.push(o))}return n}const Et={provider:"",aliases:{},not_found:{},...ze};function V(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function Ne(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!V(e,Et))return null;const n=t.icons;for(const o in n){const s=n[o];if(!o.match(A)||typeof s.body!="string"||!V(s,Q))return null}const r=t.aliases||Object.create(null);for(const o in r){const s=r[o],i=s.parent;if(!o.match(A)||typeof i!="string"||!n[i]&&!r[i]||!V(s,Q))return null}return t}const be=Object.create(null);function Ft(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function k(e,t){const n=be[e]||(be[e]=Object.create(null));return n[t]||(n[t]=Ft(e,t))}function te(e,t){return Ne(t)?Le(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function Mt(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let P=!1;function _e(e){return typeof e=="boolean"&&(P=e),P}function zt(e){const t=typeof e=="string"?R(e,!0,P):e;if(t){const n=k(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function Lt(e,t){const n=R(e,!0,P);if(!n)return!1;const r=k(n.provider,n.prefix);return Mt(r,n.name,t)}function Nt(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),P&&!t&&!e.prefix){let o=!1;return Ne(e)&&(e.prefix="",Le(e,(s,i)=>{i&&Lt(s,i)&&(o=!0)})),o}const n=e.prefix;if(!_({provider:t,prefix:n,name:"a"}))return!1;const r=k(t,n);return!!te(r,e)}const _t=Object.freeze({width:null,height:null}),$t=Object.freeze({..._t,...D});""+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);const G=Object.create(null);function Dt(e,t){G[e]=t}function K(e){return G[e]||G[""]}function ne(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const oe=Object.create(null),T=["https://api.simplesvg.com","https://api.unisvg.com"],$=[];for(;T.length>0;)T.length===1||Math.random()>.5?$.push(T.shift()):$.push(T.pop());oe[""]=ne({resources:["https://api.iconify.design"].concat($)});function J(e,t){const n=ne(t);return n===null?!1:(oe[e]=n,!0)}function re(e){return oe[e]}const Rt=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let ve=Rt();function Bt(e,t){const n=re(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(i=>{o=Math.max(o,i.length)});const s=t+".json?icons=";r=n.maxURL-o-n.path.length-s.length}return r}function Vt(e){return e===404}const Ht=(e,t,n)=>{const r=[],o=Bt(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},c=0;return n.forEach((a,u)=>{c+=a.length+1,c>=o&&u>0&&(r.push(i),i={type:s,provider:e,prefix:t,icons:[]},c=a.length),i.icons.push(a)}),r.push(i),r};function Ut(e){if(typeof e=="string"){const t=re(e);if(t)return t.path}return"/"}const qt=(e,t,n)=>{if(!ve){n("abort",424);return}let r=Ut(t.provider);switch(t.type){case"icons":{const s=t.prefix,c=t.icons.join(","),a=new URLSearchParams({icons:c});r+=s+".json?"+a.toString();break}case"custom":{const s=t.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let o=503;ve(e+r).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{n(Vt(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",o)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",o)})},Qt={prepare:Ht,send:qt};function Gt(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,s)=>o.provider!==s.provider?o.provider.localeCompare(s.provider):o.prefix!==s.prefix?o.prefix.localeCompare(s.prefix):o.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const s=o.provider,i=o.prefix,c=o.name,a=n[s]||(n[s]=Object.create(null)),u=a[i]||(a[i]=k(s,i));let f;c in u.icons?f=t.loaded:i===""||u.missing.has(c)?f=t.missing:f=t.pending;const d={provider:s,prefix:i,name:c};f.push(d)}),t}function $e(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function Kt(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach(s=>{const i=s.icons,c=i.pending.length;i.pending=i.pending.filter(a=>{if(a.prefix!==o)return!0;const u=a.name;if(e.icons[u])i.loaded.push({provider:r,prefix:o,name:u});else if(e.missing.has(u))i.missing.push({provider:r,prefix:o,name:u});else return n=!0,!0;return!1}),i.pending.length!==c&&(n||$e([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let Jt=0;function Wt(e,t,n){const r=Jt++,o=$e.bind(null,n,r);if(!t.pending.length)return o;const s={id:r,icons:t,callback:e,abort:o};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}function Xt(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const s=typeof o=="string"?R(o,t,n):o;s&&r.push(s)}),r}var Zt={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Yt(e,t,n,r){const o=e.resources.length,s=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let h=e.resources.slice(0);for(i=[];h.length>1;){const I=Math.floor(Math.random()*h.length);i.push(h[I]),h=h.slice(0,I).concat(h.slice(I+1))}i=i.concat(h)}else i=e.resources.slice(s).concat(e.resources.slice(0,s));const c=Date.now();let a="pending",u=0,f,d=null,p=[],g=[];typeof r=="function"&&g.push(r);function w(){d&&(clearTimeout(d),d=null)}function m(){a==="pending"&&(a="aborted"),w(),p.forEach(h=>{h.status==="pending"&&(h.status="aborted")}),p=[]}function l(h,I){I&&(g=[]),typeof h=="function"&&g.push(h)}function b(){return{startTime:c,payload:t,status:a,queriesSent:u,queriesPending:p.length,subscribe:l,abort:m}}function x(){a="failed",g.forEach(h=>{h(void 0,f)})}function y(){p.forEach(h=>{h.status==="pending"&&(h.status="aborted")}),p=[]}function v(h,I,j){const F=I!=="success";switch(p=p.filter(S=>S!==h),a){case"pending":break;case"failed":if(F||!e.dataAfterTimeout)return;break;default:return}if(I==="abort"){f=j,x();return}if(F){f=j,p.length||(i.length?O():x());return}if(w(),y(),!e.random){const S=e.resources.indexOf(h.resource);S!==-1&&S!==e.index&&(e.index=S)}a="completed",g.forEach(S=>{S(j)})}function O(){if(a!=="pending")return;w();const h=i.shift();if(h===void 0){if(p.length){d=setTimeout(()=>{w(),a==="pending"&&(y(),x())},e.timeout);return}x();return}const I={status:"pending",resource:h,callback:(j,F)=>{v(I,j,F)}};p.push(I),u++,d=setTimeout(O,e.rotate),n(h,t,I.callback)}return setTimeout(O),b}function De(e){const t={...Zt,...e};let n=[];function r(){n=n.filter(c=>c().status==="pending")}function o(c,a,u){const f=Yt(t,c,a,(d,p)=>{r(),u&&u(d,p)});return n.push(f),f}function s(c){return n.find(a=>c(a))||null}return{query:o,find:s,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:r}}function we(){}const H=Object.create(null);function en(e){if(!H[e]){const t=re(e);if(!t)return;const n=De(t),r={config:t,redundancy:n};H[e]=r}return H[e]}function tn(e,t,n){let r,o;if(typeof e=="string"){const s=K(e);if(!s)return n(void 0,424),we;o=s.send;const i=en(e);i&&(r=i.redundancy)}else{const s=ne(e);if(s){r=De(s);const i=e.resources?e.resources[0]:"",c=K(i);c&&(o=c.send)}}return!r||!o?(n(void 0,424),we):r.query(t,o,n)().abort}const xe="iconify2",E="iconify",Re=E+"-count",Ie=E+"-version",Be=36e5,nn=168,on=50;function W(e,t){try{return e.getItem(t)}catch{}}function se(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Se(e,t){try{e.removeItem(t)}catch{}}function X(e,t){return se(e,Re,t.toString())}function Z(e){return parseInt(W(e,Re))||0}const B={local:!0,session:!0},Ve={local:new Set,session:new Set};let ie=!1;function rn(e){ie=e}let L=typeof window>"u"?{}:window;function He(e){const t=e+"Storage";try{if(L&&L[t]&&typeof L[t].length=="number")return L[t]}catch{}B[e]=!1}function Ue(e,t){const n=He(e);if(!n)return;const r=W(n,Ie);if(r!==xe){if(r){const c=Z(n);for(let a=0;a{const a=E+c.toString(),u=W(n,a);if(typeof u=="string"){try{const f=JSON.parse(u);if(typeof f=="object"&&typeof f.cached=="number"&&f.cached>o&&typeof f.provider=="string"&&typeof f.data=="object"&&typeof f.data.prefix=="string"&&t(f,c))return!0}catch{}Se(n,a)}};let i=Z(n);for(let c=i-1;c>=0;c--)s(c)||(c===i-1?(i--,X(n,i)):Ve[e].add(c))}function qe(){if(!ie){rn(!0);for(const e in B)Ue(e,t=>{const n=t.data,r=t.provider,o=n.prefix,s=k(r,o);if(!te(s,n).length)return!1;const i=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function sn(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in B)Ue(r,o=>{const s=o.data;return o.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function cn(e,t){ie||qe();function n(r){let o;if(!B[r]||!(o=He(r)))return;const s=Ve[r];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=Z(o),i>=on||!X(o,i+1))return;const c={cached:Math.floor(Date.now()/Be),provider:e.provider,data:t};return se(o,E+i.toString(),JSON.stringify(c))}t.lastModified&&!sn(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Ce(){}function ln(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Kt(e)}))}function an(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let s;if(!o||!(s=K(n)))return;s.prepare(n,r,o).forEach(c=>{tn(n,c,a=>{if(typeof a!="object")c.icons.forEach(u=>{e.missing.add(u)});else try{const u=te(e,a);if(!u.length)return;const f=e.pendingIcons;f&&u.forEach(d=>{f.delete(d)}),cn(e,a)}catch(u){console.error(u)}ln(e)})})}))}const un=(e,t)=>{const n=Xt(e,!0,_e()),r=Gt(n);if(!r.pending.length){let a=!0;return t&&setTimeout(()=>{a&&t(r.loaded,r.missing,r.pending,Ce)}),()=>{a=!1}}const o=Object.create(null),s=[];let i,c;return r.pending.forEach(a=>{const{provider:u,prefix:f}=a;if(f===c&&u===i)return;i=u,c=f,s.push(k(u,f));const d=o[u]||(o[u]=Object.create(null));d[f]||(d[f]=[])}),r.pending.forEach(a=>{const{provider:u,prefix:f,name:d}=a,p=k(u,f),g=p.pendingIcons||(p.pendingIcons=new Set);g.has(d)||(g.add(d),o[u][f].push(d))}),s.forEach(a=>{const{provider:u,prefix:f}=a;o[u][f].length&&an(a,o[u][f])}),t?Wt(t,r,s):Ce},fn=e=>new Promise((t,n)=>{const r=typeof e=="string"?R(e,!0):e;if(!r){n(e);return}un([r||e],o=>{if(o.length&&r){const s=zt(r);if(s){t({...ee,...s});return}}n(e)})});({...$t});const ke={backgroundColor:"currentColor"},dn={backgroundColor:"transparent"},Oe={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},je={webkitMask:ke,mask:ke,background:dn};for(const e in je){const t=je[e];for(const n in Oe)t[e+n]=Oe[n]}const U={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";U[e+"-flip"]=t,U[e.slice(0,1)+"-flip"]=t,U[e+"Flip"]=t});_e(!0);Dt("",Qt);if(typeof document<"u"&&typeof window<"u"){qe();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!Nt(r))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const r="IconifyProviders["+n+"] is invalid.";try{const o=t[n];if(typeof o!="object"||!o||o.resources===void 0)continue;J(n,o)||console.error(r)}catch{console.error(r)}}}}({...ee});const pn=Te({__name:"Icon",props:{name:{type:String,required:!0},size:{type:String,default:""}},async setup(e){let t,n;const r=tt(),o=Qe(),s=e;le(()=>{var l;return(l=o.nuxtIcon)==null?void 0:l.iconifyApiOptions},()=>{var l,b,x,y,v,O;if((b=(l=o.nuxtIcon)==null?void 0:l.iconifyApiOptions)!=null&&b.url){try{new URL(o.nuxtIcon.iconifyApiOptions.url)}catch{console.warn("Nuxt Icon: Invalid custom Iconify API URL");return}if((y=(x=o.nuxtIcon)==null?void 0:x.iconifyApiOptions)!=null&&y.publicApiFallback){J("custom",{resources:[(v=o.nuxtIcon)==null?void 0:v.iconifyApiOptions.url],index:0});return}J("",{resources:[(O=o.nuxtIcon)==null?void 0:O.iconifyApiOptions.url]})}},{immediate:!0});const i=Ge("icons",()=>({})),c=Ke(!1),a=C(()=>{var l,b;return(b=(l=o.nuxtIcon)==null?void 0:l.aliases)!=null&&b[s.name]?o.nuxtIcon.aliases[s.name]:s.name}),u=C(()=>ot(a.value)),f=C(()=>[u.value.provider,u.value.prefix,u.value.name].filter(Boolean).join(":")),d=C(()=>{var l;return(l=i.value)==null?void 0:l[f.value]}),p=C(()=>{var l;return(l=r.vueApp)==null?void 0:l.component(a.value)}),g=C(()=>{var b,x,y;if(!s.size&&typeof((b=o.nuxtIcon)==null?void 0:b.size)=="boolean"&&!((x=o.nuxtIcon)!=null&&x.size))return;const l=s.size||((y=o.nuxtIcon)==null?void 0:y.size)||"1em";return String(Number(l))===l?`${l}px`:l}),w=C(()=>{var l;return((l=o==null?void 0:o.nuxtIcon)==null?void 0:l.class)??"icon"});async function m(){var l;p.value||(l=i.value)!=null&&l[f.value]||(c.value=!0,i.value[f.value]=await fn(u.value).catch(()=>{}),c.value=!1)}return le(a,m),!p.value&&([t,n]=Je(()=>m()),t=await t,n()),(l,b)=>c.value?(M(),ae("span",{key:0,class:z(w.value),style:ue({width:g.value,height:g.value})},null,6)):d.value?(M(),fe(We(jt),{key:1,icon:d.value,class:z(w.value),width:g.value,height:g.value},null,8,["icon","class","width","height"])):p.value?(M(),fe(Xe(p.value),{key:2,class:z(w.value),width:g.value,height:g.value},null,8,["class","width","height"])):(M(),ae("span",{key:3,class:z(w.value),style:ue({fontSize:g.value,lineHeight:g.value,width:g.value,height:g.value})},[Ze(l.$slots,"default",{},()=>[Ye(et(e.name),1)],!0)],6))}}),mn=nt(pn,[["__scopeId","data-v-bff11e52"]]);export{mn as default}; diff --git a/index.html b/index.html index 974f29d..272e5a4 100644 --- a/index.html +++ b/index.html @@ -22,18 +22,18 @@ --color-primary-DEFAULT: var(--color-primary-400); } - + - - - + + + - - -
+}
SECRET: KEY TO SIGN TOKEN
\ No newline at end of file