@vuebro/runtime 1.2.10 → 1.2.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"_shared-B5zXdo-c.js":{"file":"assets/shared-B5zXdo-c.js","name":"shared","imports":["_unocss-pEOBR4Nb.js"]},"_unocss-pEOBR4Nb.js":{"file":"assets/unocss-pEOBR4Nb.js","name":"unocss","isDynamicEntry":true},"index.html":{"file":"assets/index-Vv07Sy-v.js","name":"index","src":"index.html","isEntry":true,"imports":["_unocss-pEOBR4Nb.js","_shared-B5zXdo-c.js"],"dynamicImports":["_unocss-pEOBR4Nb.js"],"css":["assets/index-vGiKZPT9.css"]},"node_modules/vue/dist/vue.esm-browser.prod.js":{"file":"assets/vue.esm-browser.prod-3.5.24.js","isStaticEntry":true,"name":"vue"},"node_modules/vue-router/dist/vue-router.esm-browser.prod.js":{"file":"assets/vue-router.esm-browser.prod-4.6.3.js","isStaticEntry":true,"name":"vue-router"},"node_modules/@vuebro/loader-sfc/dist/loader-sfc.esm-browser.prod.js":{"file":"assets/loader-sfc.esm-browser.prod-2.3.26.js","isStaticEntry":true,"name":"@vuebro/loader-sfc"}}
1
+ {"_shared-8nG7PE5J.js":{"file":"assets/shared-8nG7PE5J.js","name":"shared","imports":["_unocss-GGiNT3_V.js"]},"_unocss-GGiNT3_V.js":{"file":"assets/unocss-GGiNT3_V.js","name":"unocss","isDynamicEntry":true},"index.html":{"file":"assets/index-DadYL2lW.js","name":"index","src":"index.html","isEntry":true,"imports":["_shared-8nG7PE5J.js","_unocss-GGiNT3_V.js"],"dynamicImports":["_unocss-GGiNT3_V.js"],"css":["assets/index-vGiKZPT9.css"]},"node_modules/vue/dist/vue.esm-browser.prod.js":{"file":"assets/vue.esm-browser.prod-3.5.24.js","isStaticEntry":true,"name":"vue"},"node_modules/vue-router/dist/vue-router.esm-browser.prod.js":{"file":"assets/vue-router.esm-browser.prod-4.6.3.js","isStaticEntry":true,"name":"vue-router"},"node_modules/@vuebro/loader-sfc/dist/loader-sfc.esm-browser.prod.js":{"file":"assets/loader-sfc.esm-browser.prod-2.3.28.js","isStaticEntry":true,"name":"@vuebro/loader-sfc"}}
@@ -0,0 +1 @@
1
+ import{c as Ut,g as qt,u as U,f as nt,d as Wt,a as Bt,b as Ie,e as Gt,s as ot,h as Kt,t as Qt,i as st,j as Jt}from"./shared-8nG7PE5J.js";import{toValue as Zt,isRef as Xt,hasInjectionContext as Yt,inject as en,ref as A,watchEffect as rt,getCurrentInstance as tn,onBeforeUnmount as it,onDeactivated as nn,onActivated as on,defineComponent as E,shallowRef as ct,onMounted as sn,watch as ne,onUnmounted as at,h as Fe,nextTick as rn,computed as I,resolveComponent as cn,createBlock as R,openBlock as j,withCtx as me,resolveDynamicComponent as ge,unref as F,defineAsyncComponent as an,createElementBlock as Q,Fragment as lt,createVNode as ln,createElementVNode as L,renderList as un,withDirectives as fn,normalizeClass as ut,Suspense as dn,createCommentVNode as pn,createApp as hn}from"vue";import{d as mn,w as gn,_ as yn,p as wn,a as bn,b as vn,c as Cn,e as xn,i as kn,o as Sn}from"./unocss-GGiNT3_V.js";import{useRoute as In,createRouter as Fn,createWebHistory as Tn}from"vue-router";import $n from"@vuebro/loader-sfc";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const r of o)if(r.type==="childList")for(const i of r.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const r={};return o.integrity&&(r.integrity=o.integrity),o.referrerPolicy&&(r.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?r.credentials="include":o.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(o){if(o.ep)return;o.ep=!0;const r=n(o);fetch(o.href,r)}})();const _n=new Set(["link","style","script","noscript"]),An=new Set(["title","titleTemplate","script","style","noscript"]),Te=new Set(["base","meta","link","style","script","noscript"]),jn=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),Mn=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),On=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),En=new Set(["templateParams","htmlAttrs","bodyAttrs"]),ye=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]),Pn=["name","property","http-equiv"],Ln=new Set(["viewport","description","keywords","robots"]);function ft(e){const t=e.split(":");return t.length?ye.has(t[1]):!1}function le(e){const{props:t,tag:n}=e;if(Mn.has(n))return n;if(n==="link"&&t.rel==="canonical")return"canonical";if(t.charset)return"charset";if(e.tag==="meta"){for(const s of Pn)if(t[s]!==void 0){const o=t[s],r=o.includes(":"),i=Ln.has(o),d=!(r||i)&&e.key?`:key:${e.key}`:"";return`${n}:${o}${d}`}}if(e.key)return`${n}:key:${e.key}`;if(t.id)return`${n}:id:${t.id}`;if(An.has(n)){const s=e.textContent||e.innerHTML;if(s)return`${n}:content:${s}`}}function $e(e){const t=e._h||e._d;if(t)return t;const n=e.textContent||e.innerHTML;return n||`${e.tag}:${Object.entries(e.props).map(([s,o])=>`${s}:${String(o)}`).join(",")}`}function J(e,t,n){typeof e==="function"&&(!n||n!=="titleTemplate"&&!(n[0]==="o"&&n[1]==="n"))&&(e=e());let o;if(t&&(o=t(n,e)),Array.isArray(o))return o.map(r=>J(r,t));if(o?.constructor===Object){const r={};for(const i of Object.keys(o))r[i]=J(o[i],t,i);return r}return o}function Hn(e,t){const n=e==="style"?new Map:new Set;function s(o){const r=o.trim();if(r)if(e==="style"){const[i,...c]=r.split(":").map(d=>d.trim());i&&c.length&&n.set(i,c.join(":"))}else r.split(" ").filter(Boolean).forEach(i=>n.add(i))}return typeof t=="string"?e==="style"?t.split(";").forEach(s):s(t):Array.isArray(t)?t.forEach(o=>s(o)):t&&typeof t=="object"&&Object.entries(t).forEach(([o,r])=>{r&&r!=="false"&&(e==="style"?n.set(o.trim(),r):s(o))}),n}function dt(e,t){return e.props=e.props||{},t?e.tag==="templateParams"?(e.props=t,e):(Object.entries(t).forEach(([n,s])=>{if(s===null){e.props[n]=null;return}if(n==="class"||n==="style"){e.props[n]=Hn(n,s);return}if(On.has(n)){if(["textContent","innerHTML"].includes(n)&&typeof s=="object"){let i=t.type;if(t.type||(i="application/json"),!i?.endsWith("json")&&i!=="speculationrules")return;t.type=i,e.props.type=i,e[n]=JSON.stringify(s)}else e[n]=s;return}const o=String(s),r=n.startsWith("data-");o==="true"||o===""?e.props[n]=r?o:!0:!s&&r&&o==="false"?e.props[n]="false":s!==void 0&&(e.props[n]=s)}),e):e}function Nn(e,t){const n=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},s=dt({tag:e,props:{}},n);return s.key&&_n.has(s.tag)&&(s.props["data-hid"]=s._h=s.key),s.tag==="script"&&typeof s.innerHTML=="object"&&(s.innerHTML=JSON.stringify(s.innerHTML),s.props.type=s.props.type||"application/json"),Array.isArray(s.props.content)?s.props.content.map(o=>({...s,props:{...s.props,content:o}})):s}function Dn(e,t){if(!e)return[];typeof e=="function"&&(e=e());const n=(o,r)=>{for(let i=0;i<t.length;i++)r=t[i](o,r);return r};e=n(void 0,e);const s=[];return e=J(e,n),Object.entries(e||{}).forEach(([o,r])=>{if(r!==void 0)for(const i of Array.isArray(r)?r:[r])s.push(Nn(o,i))}),s.flat()}const _e=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,Ae={base:-10,title:10},Rn={critical:-8,high:-1,low:2},je={meta:{"content-security-policy":-30,charset:-20,viewport:-15},link:{preconnect:20,stylesheet:60,preload:70,modulepreload:70,prefetch:90,"dns-prefetch":90,prerender:90},script:{async:30,defer:80,sync:50},style:{imported:40,sync:60}},zn=/@import/,H=e=>e===""||e===!0;function Vn(e,t){if(typeof t.tagPriority=="number")return t.tagPriority;let n=100;const s=Rn[t.tagPriority]||0,o=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:je;if(t.tag in Ae)n=Ae[t.tag];else if(t.tag==="meta"){const r=t.props["http-equiv"]==="content-security-policy"?"content-security-policy":t.props.charset?"charset":t.props.name==="viewport"?"viewport":null;r&&(n=je.meta[r])}else t.tag==="link"&&t.props.rel?n=o.link[t.props.rel]:t.tag==="script"?H(t.props.async)?n=o.script.async:t.props.src&&!H(t.props.defer)&&!H(t.props.async)&&t.props.type!=="module"&&!t.props.type?.endsWith("json")?n=o.script.sync:H(t.props.defer)&&t.props.src&&!H(t.props.async)&&(n=o.script.defer):t.tag==="style"&&(n=t.innerHTML&&zn.test(t.innerHTML)?o.style.imported:o.style.sync);return(n||100)+s}function Me(e,t){const n=typeof t=="function"?t(e):t,s=n.key||String(e.plugins.size+1);e.plugins.get(s)||(e.plugins.set(s,n),e.hooks.addHooks(n.hooks||{}))}function Un(e={}){const t=Ut();t.addHooks(e.hooks||{});const n=!e.document,s=new Map,o=new Map,r=new Set,i={_entryCount:1,plugins:o,dirty:!1,resolvedOptions:e,hooks:t,ssr:n,entries:s,headEntries(){return[...s.values()]},use:c=>Me(i,c),push(c,d){const a={...d||{}};delete a.head;const l=a._index??i._entryCount++,p={_i:l,input:c,options:a},f={_poll(u=!1){i.dirty=!0,!u&&r.add(l),t.callHook("entries:updated",i)},dispose(){s.delete(l)&&i.invalidate()},patch(u){(!a.mode||a.mode==="server"&&n||a.mode==="client"&&!n)&&(p.input=u,s.set(l,p),f._poll())}};return f.patch(c),f},async resolveTags(){const c={tagMap:new Map,tags:[],entries:[...i.entries.values()]};for(await t.callHook("entries:resolve",c);r.size;){const f=r.values().next().value;r.delete(f);const u=s.get(f);if(u){const m={tags:Dn(u.input,e.propResolvers||[]).map(h=>Object.assign(h,u.options)),entry:u};await t.callHook("entries:normalize",m),u._tags=m.tags.map((h,g)=>(h._w=Vn(i,h),h._p=(u._i<<10)+g,h._d=le(h),h))}}let d=!1;c.entries.flatMap(f=>(f._tags||[]).map(u=>({...u,props:{...u.props}}))).sort(_e).reduce((f,u)=>{const m=String(u._d||u._p);if(!f.has(m))return f.set(m,u);const h=f.get(m);if((u?.tagDuplicateStrategy||(En.has(u.tag)?"merge":null)||(u.key&&u.key===h.key?"merge":null))==="merge"){const y={...h.props};Object.entries(u.props).forEach(([w,v])=>y[w]=w==="style"?new Map([...h.props.style||new Map,...v]):w==="class"?new Set([...h.props.class||new Set,...v]):v),f.set(m,{...u,props:y})}else u._p>>10===h._p>>10&&u.tag==="meta"&&ft(m)?(f.set(m,Object.assign([...Array.isArray(h)?h:[h],u],u)),d=!0):(u._w===h._w?u._p>h._p:u?._w<h?._w)&&f.set(m,u);return f},c.tagMap);const a=c.tagMap.get("title"),l=c.tagMap.get("titleTemplate");if(i._title=a?.textContent,l){const f=l?.textContent;if(i._titleTemplate=f,f){let u=typeof f=="function"?f(a?.textContent):f;typeof u=="string"&&!i.plugins.has("template-params")&&(u=u.replace("%s",a?.textContent||"")),a?u===null?c.tagMap.delete("title"):c.tagMap.set("title",{...a,textContent:u}):(l.tag="title",l.textContent=u)}}c.tags=Array.from(c.tagMap.values()),d&&(c.tags=c.tags.flat().sort(_e)),await t.callHook("tags:beforeResolve",c),await t.callHook("tags:resolve",c),await t.callHook("tags:afterResolve",c);const p=[];for(const f of c.tags){const{innerHTML:u,tag:m,props:h}=f;if(jn.has(m)&&!(Object.keys(h).length===0&&!f.innerHTML&&!f.textContent)&&!(m==="meta"&&!h.content&&!h["http-equiv"]&&!h.charset)){if(m==="script"&&u){if(h.type?.endsWith("json")){const g=typeof u=="string"?u:JSON.stringify(u);f.innerHTML=g.replace(/</g,"\\u003C")}else typeof u=="string"&&(f.innerHTML=u.replace(new RegExp(`</${m}`,"g"),`<\\/${m}`));f._d=le(f)}p.push(f)}}return p},invalidate(){for(const c of s.values())r.add(c._i);i.dirty=!0,t.callHook("entries:updated",i)}};return(e?.plugins||[]).forEach(c=>Me(i,c)),i.hooks.callHook("init",i),e.init?.forEach(c=>c&&i.push(c)),i}async function pt(e,t={}){const n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;const s={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",s),!!s.shouldRender)return e._domUpdatePromise||(e._domUpdatePromise=new Promise(async o=>{const r=new Map,i=new Promise(u=>{e.resolveTags().then(m=>{u(m.map(h=>{const g=r.get(h._d)||0,y={tag:h,id:(g?`${h._d}:${g}`:h._d)||$e(h),shouldRender:!0};return h._d&&ft(h._d)&&r.set(h._d,g+1),y}))})});let c=e._dom;if(!c){c={title:n.title,elMap:new Map().set("htmlAttrs",n.documentElement).set("bodyAttrs",n.body)};for(const u of["body","head"]){const m=n[u]?.children;for(const h of m){const g=h.tagName.toLowerCase();if(!Te.has(g))continue;const y=dt({tag:g,props:{}},{innerHTML:h.innerHTML,...h.getAttributeNames().reduce((w,v)=>(w[v]=h.getAttribute(v),w),{})||{}});if(y.key=h.getAttribute("data-hid")||void 0,y._d=le(y)||$e(y),c.elMap.has(y._d)){let w=1,v=y._d;for(;c.elMap.has(v);)v=`${y._d}:${w++}`;c.elMap.set(v,h)}else c.elMap.set(y._d,h)}}}c.pendingSideEffects={...c.sideEffects},c.sideEffects={};function d(u,m,h){const g=`${u}:${m}`;c.sideEffects[g]=h,delete c.pendingSideEffects[g]}function a({id:u,$el:m,tag:h}){const g=h.tag.endsWith("Attrs");c.elMap.set(u,m),g||(h.textContent&&h.textContent!==m.textContent&&(m.textContent=h.textContent),h.innerHTML&&h.innerHTML!==m.innerHTML&&(m.innerHTML=h.innerHTML),d(u,"el",()=>{m?.remove(),c.elMap.delete(u)}));for(const y in h.props){if(!Object.prototype.hasOwnProperty.call(h.props,y))continue;const w=h.props[y];if(y.startsWith("on")&&typeof w=="function"){const b=m?.dataset;if(b&&b[`${y}fired`]){const k=y.slice(0,-5);w.call(m,new Event(k.substring(2)))}m.getAttribute(`data-${y}`)!==""&&((h.tag==="bodyAttrs"?n.defaultView:m).addEventListener(y.substring(2),w.bind(m)),m.setAttribute(`data-${y}`,""));continue}const v=`attr:${y}`;if(y==="class"){if(!w)continue;for(const b of w)g&&d(u,`${v}:${b}`,()=>m.classList.remove(b)),!m.classList.contains(b)&&m.classList.add(b)}else if(y==="style"){if(!w)continue;for(const[b,k]of w)d(u,`${v}:${b}`,()=>{m.style.removeProperty(b)}),m.style.setProperty(b,k)}else w!==!1&&w!==null&&(m.getAttribute(y)!==w&&m.setAttribute(y,w===!0?"":String(w)),g&&d(u,v,()=>m.removeAttribute(y)))}}const l=[],p={bodyClose:void 0,bodyOpen:void 0,head:void 0},f=await i;for(const u of f){const{tag:m,shouldRender:h,id:g}=u;if(h){if(m.tag==="title"){n.title=m.textContent,d("title","",()=>n.title=c.title);continue}u.$el=u.$el||c.elMap.get(g),u.$el?a(u):Te.has(m.tag)&&l.push(u)}}for(const u of l){const m=u.tag.tagPosition||"head";u.$el=n.createElement(u.tag.tag),a(u),p[m]=p[m]||n.createDocumentFragment(),p[m].appendChild(u.$el)}for(const u of f)await e.hooks.callHook("dom:renderTag",u,n,d);p.head&&n.head.appendChild(p.head),p.bodyOpen&&n.body.insertBefore(p.bodyOpen,n.body.firstChild),p.bodyClose&&n.body.appendChild(p.bodyClose);for(const u in c.pendingSideEffects)c.pendingSideEffects[u]();e._dom=c,await e.hooks.callHook("dom:rendered",{renders:f}),o()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function qn(e={}){const t=e.domOptions?.render||pt;e.document=e.document||(typeof window<"u"?document:void 0);const n=e.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return Un({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[n?JSON.parse(n):!1,...e.init||[]]})}function Wn(e,t){let n=0;return()=>{const s=++n;t(()=>{n===s&&e()})}}const z={META:new Set(["twitter"]),OG:new Set(["og","book","article","profile","fb"]),MEDIA:new Set(["ogImage","ogVideo","ogAudio","twitterImage"]),HTTP_EQUIV:new Set(["contentType","defaultStyle","xUaCompatible"])},Bn={articleExpirationTime:"article:expiration_time",articleModifiedTime:"article:modified_time",articlePublishedTime:"article:published_time",bookReleaseDate:"book:release_date",fbAppId:"fb:app_id",ogAudioSecureUrl:"og:audio:secure_url",ogAudioUrl:"og:audio",ogImageSecureUrl:"og:image:secure_url",ogImageUrl:"og:image",ogSiteName:"og:site_name",ogVideoSecureUrl:"og:video:secure_url",ogVideoUrl:"og:video",profileFirstName:"profile:first_name",profileLastName:"profile:last_name",profileUsername:"profile:username",msapplicationConfig:"msapplication-Config",msapplicationTileColor:"msapplication-TileColor",msapplicationTileImage:"msapplication-TileImage"},ht={appleItunesApp:{unpack:{entrySeparator:", ",resolve:({key:e,value:t})=>`${_(e)}=${t}`}},refresh:{metaKey:"http-equiv",unpack:{entrySeparator:";",resolve:({key:e,value:t})=>e==="seconds"?`${t}`:void 0}},robots:{unpack:{entrySeparator:", ",resolve:({key:e,value:t})=>typeof t=="boolean"?_(e):`${_(e)}:${t}`}},contentSecurityPolicy:{metaKey:"http-equiv",unpack:{entrySeparator:"; ",resolve:({key:e,value:t})=>`${_(e)} ${t}`}},charset:{}};function _(e){const t=e.replace(/([A-Z])/g,"-$1").toLowerCase(),n=t.indexOf("-");return n===-1?t:z.META.has(t.slice(0,n))||z.OG.has(t.slice(0,n))?e.replace(/([A-Z])/g,":$1").toLowerCase():t}function mt(e){return Object.fromEntries(Object.entries(e).filter(([t,n])=>String(n)!=="false"&&t))}function ue(e){return Array.isArray(e)?e.map(ue):!e||typeof e!="object"?e:Object.fromEntries(Object.entries(e).map(([t,n])=>[_(t),ue(n)]))}function gt(e,t={}){const{entrySeparator:n="",keyValueSeparator:s="",wrapValue:o,resolve:r}=t;return Object.entries(e).map(([i,c])=>{if(r){const a=r({key:i,value:c});if(a!==void 0)return a}const d=typeof c=="object"?gt(c,t):typeof c=="number"?c.toString():typeof c=="string"&&o?`${o}${c.replace(new RegExp(o,"g"),`\\${o}`)}${o}`:c;return`${i}${s}${d}`}).join(n)}function Oe(e,t){const n=mt(t),s=_(e),o=yt(s);if(!ye.has(s))return[{[o]:s,...n}];const r=Object.fromEntries(Object.entries(n).map(([i,c])=>[`${e}${i==="url"?"":`${i[0].toUpperCase()}${i.slice(1)}`}`,c]));return Z(r||{}).sort((i,c)=>(i[o]?.length||0)-(c[o]?.length||0))}function yt(e){if(ht[e]?.metaKey==="http-equiv"||z.HTTP_EQUIV.has(e))return"http-equiv";const t=_(e),n=t.indexOf(":");return n===-1?"name":z.OG.has(t.slice(0,n))?"property":"name"}function Gn(e){return Bn[e]||_(e)}function Kn(e,t){return t==="refresh"?`${e.seconds};url=${e.url}`:gt(ue(e),{keyValueSeparator:"=",entrySeparator:", ",resolve:({value:n,key:s})=>n===null?"":typeof n=="boolean"?s:void 0,...ht[t]?.unpack})}function Z(e){const t=[],n={};for(const[o,r]of Object.entries(e)){if(Array.isArray(r)){if(o==="themeColor"){r.forEach(i=>{typeof i=="object"&&i!==null&&t.push({name:"theme-color",...i})});continue}for(const i of r)if(typeof i=="object"&&i!==null){const c=[],d=[];for(const[a,l]of Object.entries(i)){const p=`${o}${a==="url"?"":`:${a}`}`,f=Z({[p]:l});(a==="url"?c:d).push(...f)}t.push(...c,...d)}else t.push(...typeof i=="string"?Z({[o]:i}):Oe(o,i));continue}if(typeof r=="object"&&r)if(z.MEDIA.has(o)){const i=o.startsWith("twitter")?"twitter":"og",c=o.replace(/^(og|twitter)/,"").toLowerCase(),d=i==="twitter"?"name":"property";r.url&&t.push({[d]:`${i}:${c}`,content:r.url}),r.secureUrl&&t.push({[d]:`${i}:${c}:secure_url`,content:r.secureUrl});for(const[a,l]of Object.entries(r))a!=="url"&&a!=="secureUrl"&&t.push({[d]:`${i}:${c}:${a}`,content:l})}else ye.has(_(o))?t.push(...Oe(o,r)):n[o]=mt(r);else n[o]=r}const s=Object.entries(n).map(([o,r])=>{if(o==="charset")return{charset:r===null?"_null":r};const i=yt(o),c=Gn(o),d=r===null?"_null":typeof r=="object"?Kn(r,o):typeof r=="number"?r.toString():r;return i==="http-equiv"?{"http-equiv":c,content:d}:{[i]:c,content:d}});return[...t,...s].map(o=>"content"in o&&o.content==="_null"?{...o,content:null}:o)}const Qn={key:"flatMeta",hooks:{"entries:normalize":e=>{const t=[];e.tags=e.tags.map(n=>n.tag!=="_flatMeta"?n:(t.push(Z(n.props).map(s=>({...n,tag:"meta",props:s}))),!1)).filter(Boolean).concat(...t)}}},Jn=(e,t)=>Xt(t)?Zt(t):t,wt="usehead";function Zn(e){return{install(n){n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(wt,e)}}.install}function bt(){if(Yt()){const e=en(wt);if(!e)throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.");return e}throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.")}function we(e,t={}){const n=t.head||bt();return n.ssr?n.push(e||{},t):Xn(n,e,t)}function Xn(e,t,n={}){const s=A(!1);let o;return rt(()=>{const i=s.value?{}:J(t,Jn);o?o.patch(i):o=e.push(i,n)}),tn()&&(it(()=>{o.dispose()}),nn(()=>{s.value=!0}),on(()=>{s.value=!1})),o}function Yn(e={},t={}){(t.head||bt()).use(Qn);const{title:s,titleTemplate:o,...r}=e;return we({title:s,titleTemplate:o,_flatMeta:r},t)}function eo(e={}){const t=qn({domOptions:{render:Wn(()=>pt(t),n=>setTimeout(n,0))},...e});return t.install=Zn(t),t}const to=Object.freeze({left:0,top:0,width:16,height:16}),X=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),vt=Object.freeze({...to,...X}),no=Object.freeze({...vt,body:"",hidden:!1}),oo=Object.freeze({width:null,height:null}),Ct=Object.freeze({...oo,...X});function so(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const s=((e.rotate||0)+(t.rotate||0))%4;return s&&(n.rotate=s),n}function Ee(e,t){const n=so(e,t);for(const s in no)s in X?s in e&&!(s in n)&&(n[s]=X[s]):s in t?n[s]=t[s]:s in e&&(n[s]=e[s]);return n}function ro(e,t){const n=e.icons,s=e.aliases||Object.create(null),o=Object.create(null);function r(i){if(n[i])return o[i]=[];if(!(i in o)){o[i]=null;const c=s[i]&&s[i].parent,d=c&&r(c);d&&(o[i]=[c].concat(d))}return o[i]}return(t||Object.keys(n).concat(Object.keys(s))).forEach(r),o}function Pe(e,t,n){const s=e.icons,o=e.aliases||Object.create(null);let r={};function i(c){r=Ee(s[c]||o[c],r)}return i(t),n.forEach(i),Ee(e,r)}function io(e,t){if(e.icons[t])return Pe(e,t,[]);const n=ro(e,[t])[t];return n?Pe(e,t,n):null}const co=/(-?[0-9.]*[0-9]+[0-9.]*)/g,ao=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Y(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 s=e.split(co);if(s===null||!s.length)return e;const o=[];let r=s.shift(),i=ao.test(r);for(;;){if(i){const c=parseFloat(r);isNaN(c)?o.push(r):o.push(Math.ceil(c*t*n)/n)}else o.push(r);if(r=s.shift(),r===void 0)return o.join("");i=!i}}function lo(e,t="defs"){let n="";const s=e.indexOf("<"+t);for(;s>=0;){const o=e.indexOf(">",s),r=e.indexOf("</"+t);if(o===-1||r===-1)break;const i=e.indexOf(">",r);if(i===-1)break;n+=e.slice(o+1,r).trim(),e=e.slice(0,s).trim()+e.slice(i+1)}return{defs:n,content:e}}function uo(e,t){return e?"<defs>"+e+"</defs>"+t:t}function fo(e,t,n){const s=lo(e);return uo(s.defs,t+s.content+n)}const be=e=>e==="unset"||e==="undefined"||e==="none";function xt(e,t){const n={...vt,...e},s={...Ct,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let r=n.body;[n,s].forEach(h=>{const g=[],y=h.hFlip,w=h.vFlip;let v=h.rotate;y?w?v+=2:(g.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),g.push("scale(-1 1)"),o.top=o.left=0):w&&(g.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),g.push("scale(1 -1)"),o.top=o.left=0);let b;switch(v<0&&(v-=Math.floor(v/4)*4),v=v%4,v){case 1:b=o.height/2+o.top,g.unshift("rotate(90 "+b.toString()+" "+b.toString()+")");break;case 2:g.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:b=o.width/2+o.left,g.unshift("rotate(-90 "+b.toString()+" "+b.toString()+")");break}v%2===1&&(o.left!==o.top&&(b=o.left,o.left=o.top,o.top=b),o.width!==o.height&&(b=o.width,o.width=o.height,o.height=b)),g.length&&(r=fo(r,'<g transform="'+g.join(" ")+'">',"</g>"))});const i=s.width,c=s.height,d=o.width,a=o.height;let l,p;i===null?(p=c===null?"1em":c==="auto"?a:c,l=Y(p,d/a)):(l=i==="auto"?d:i,p=c===null?Y(l,a/d):c==="auto"?a:c);const f={},u=(h,g)=>{be(g)||(f[h]=g.toString())};u("width",l),u("height",p);const m=[o.left,o.top,d,a];return f.viewBox=m.join(" "),{attributes:f,viewBox:m,body:r}}const po=/\sid="(\S+)"/g,ho="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let mo=0;function go(e,t=ho){const n=[];let s;for(;s=po.exec(e);)n.push(s[1]);if(!n.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(r=>{const i=typeof t=="function"?t(r):t+(mo++).toString(),c=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+i+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}function yo(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Le(e){let t=e.startsWith("<svg>")?e.replace("<svg>","<svg >"):e;return!t.includes(" xmlns:xlink=")&&t.includes(" xlink:")&&(t=t.replace("<svg ",'<svg xmlns:xlink="http://www.w3.org/1999/xlink" ')),t.includes(" xmlns=")||(t=t.replace("<svg ",'<svg xmlns="http://www.w3.org/2000/svg" ')),yo(t)}function wo(e){return e.replace(/(['"])\s*\n\s*([^>\\/\s])/g,"$1 $2").replace(/(["';{}><])\s*\n\s*/g,"$1").replace(/\s*\n\s*/g," ").replace(/\s+"/g,'"').replace(/="\s+/g,'="').replace(/(\s)+\/>/g,"/>").trim()}function bo(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const s in t)n+=" "+s+'="'+t[s]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}const vo=/\swidth\s*=\s*["']([\w.]+)["']/,Co=/\sheight\s*=\s*["']([\w.]+)["']/,se=/<svg\s+/;function xo(e,t,n){const s=e.slice(0,e.indexOf(">")),o=(r,i)=>{const c=i.exec(s),d=c!=null,a=t[r];return!a&&!be(a)&&(typeof n=="number"?n>0&&(t[r]=Y(c?.[1]??"1em",n)):c&&(t[r]=c[1])),d};return[o("width",vo),o("height",Co)]}async function kt(e,t,n,s,o,r){const{scale:i,addXmlNs:c=!1}=s??{},{additionalProps:d={},iconCustomizer:a}=s?.customizations??{},l=await o?.()??{};await a?.(t,n,l),Object.keys(d).forEach(h=>{const g=d[h];g!=null&&(l[h]=g)}),r?.(l);const[p,f]=xo(e,l,i);c&&(!e.includes("xmlns=")&&!l.xmlns&&(l.xmlns="http://www.w3.org/2000/svg"),!e.includes("xmlns:xlink=")&&e.includes("xlink:")&&!l["xmlns:xlink"]&&(l["xmlns:xlink"]="http://www.w3.org/1999/xlink"));const u=Object.keys(l).map(h=>h==="width"&&p||h==="height"&&f?null:`${h}="${l[h]}"`).filter(h=>h!=null);if(u.length&&(e=e.replace(se,`<svg ${u.join(" ")} `)),s){const{defaultStyle:h,defaultClass:g}=s;g&&!e.includes("class=")&&(e=e.replace(se,`<svg class="${g}" `)),h&&!e.includes("style=")&&(e=e.replace(se,`<svg style="${h}" `))}const m=s?.usedProps;return m&&(Object.keys(d).forEach(h=>{const g=l[h];g!=null&&(m[h]=g)}),typeof l.width<"u"&&l.width!==null&&(m.width=l.width),typeof l.height<"u"&&l.height!==null&&(m.height=l.height)),e}var W={exports:{}},re,He;function ko(){if(He)return re;He=1;var e=1e3,t=e*60,n=t*60,s=n*24,o=s*7,r=s*365.25;re=function(l,p){p=p||{};var f=typeof l;if(f==="string"&&l.length>0)return i(l);if(f==="number"&&isFinite(l))return p.long?d(l):c(l);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(l))};function i(l){if(l=String(l),!(l.length>100)){var p=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(l);if(p){var f=parseFloat(p[1]),u=(p[2]||"ms").toLowerCase();switch(u){case"years":case"year":case"yrs":case"yr":case"y":return f*r;case"weeks":case"week":case"w":return f*o;case"days":case"day":case"d":return f*s;case"hours":case"hour":case"hrs":case"hr":case"h":return f*n;case"minutes":case"minute":case"mins":case"min":case"m":return f*t;case"seconds":case"second":case"secs":case"sec":case"s":return f*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return f;default:return}}}}function c(l){var p=Math.abs(l);return p>=s?Math.round(l/s)+"d":p>=n?Math.round(l/n)+"h":p>=t?Math.round(l/t)+"m":p>=e?Math.round(l/e)+"s":l+"ms"}function d(l){var p=Math.abs(l);return p>=s?a(l,p,s,"day"):p>=n?a(l,p,n,"hour"):p>=t?a(l,p,t,"minute"):p>=e?a(l,p,e,"second"):l+" ms"}function a(l,p,f,u){var m=p>=f*1.5;return Math.round(l/f)+" "+u+(m?"s":"")}return re}var ie,Ne;function So(){if(Ne)return ie;Ne=1;function e(t){s.debug=s,s.default=s,s.coerce=a,s.disable=c,s.enable=r,s.enabled=d,s.humanize=ko(),s.destroy=l,Object.keys(t).forEach(p=>{s[p]=t[p]}),s.names=[],s.skips=[],s.formatters={};function n(p){let f=0;for(let u=0;u<p.length;u++)f=(f<<5)-f+p.charCodeAt(u),f|=0;return s.colors[Math.abs(f)%s.colors.length]}s.selectColor=n;function s(p){let f,u=null,m,h;function g(...y){if(!g.enabled)return;const w=g,v=Number(new Date),b=v-(f||v);w.diff=b,w.prev=f,w.curr=v,f=v,y[0]=s.coerce(y[0]),typeof y[0]!="string"&&y.unshift("%O");let k=0;y[0]=y[0].replace(/%([a-zA-Z%])/g,(x,S)=>{if(x==="%%")return"%";k++;const T=s.formatters[S];if(typeof T=="function"){const $=y[k];x=T.call(w,$),y.splice(k,1),k--}return x}),s.formatArgs.call(w,y),(w.log||s.log).apply(w,y)}return g.namespace=p,g.useColors=s.useColors(),g.color=s.selectColor(p),g.extend=o,g.destroy=s.destroy,Object.defineProperty(g,"enabled",{enumerable:!0,configurable:!1,get:()=>u!==null?u:(m!==s.namespaces&&(m=s.namespaces,h=s.enabled(p)),h),set:y=>{u=y}}),typeof s.init=="function"&&s.init(g),g}function o(p,f){const u=s(this.namespace+(typeof f>"u"?":":f)+p);return u.log=this.log,u}function r(p){s.save(p),s.namespaces=p,s.names=[],s.skips=[];const f=(typeof p=="string"?p:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const u of f)u[0]==="-"?s.skips.push(u.slice(1)):s.names.push(u)}function i(p,f){let u=0,m=0,h=-1,g=0;for(;u<p.length;)if(m<f.length&&(f[m]===p[u]||f[m]==="*"))f[m]==="*"?(h=m,g=u,m++):(u++,m++);else if(h!==-1)m=h+1,g++,u=g;else return!1;for(;m<f.length&&f[m]==="*";)m++;return m===f.length}function c(){const p=[...s.names,...s.skips.map(f=>"-"+f)].join(",");return s.enable(""),p}function d(p){for(const f of s.skips)if(i(p,f))return!1;for(const f of s.names)if(i(p,f))return!0;return!1}function a(p){return p instanceof Error?p.stack||p.message:p}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return s.enable(s.load()),s}return ie=e,ie}var De;function Io(){return De||(De=1,(function(e,t){var n={};t.formatArgs=o,t.save=r,t.load=i,t.useColors=s,t.storage=c(),t.destroy=(()=>{let a=!1;return()=>{a||(a=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function s(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let a;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(a=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(a[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function o(a){if(a[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+a[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const l="color: "+this.color;a.splice(1,0,l,"color: inherit");let p=0,f=0;a[0].replace(/%[a-zA-Z%]/g,u=>{u!=="%%"&&(p++,u==="%c"&&(f=p))}),a.splice(f,0,l)}t.log=console.debug||console.log||(()=>{});function r(a){try{a?t.storage.setItem("debug",a):t.storage.removeItem("debug")}catch{}}function i(){let a;try{a=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch{}return!a&&typeof process<"u"&&"env"in process&&(a=n.DEBUG),a}function c(){try{return localStorage}catch{}}e.exports=So()(t);const{formatters:d}=e.exports;d.j=function(a){try{return JSON.stringify(a)}catch(l){return"[UnexpectedJSONParseError]: "+l.message}}})(W,W.exports)),W.exports}var Fo=Io();const St=qt(Fo),To=St("@iconify-loader:custom");async function Re(e,t,n,s){let o;To(`${t}:${n}`);try{if(typeof e=="function")o=await e(n);else{const r=e[n];o=typeof r=="function"?await r():r}}catch(r){console.warn(`Failed to load custom icon "${n}" in "${t}":`,r);return}if(o){const r=o.indexOf("<svg");r>0&&(o=o.slice(r));const{transform:i}=s?.customizations??{};return o=typeof i=="function"?await i(o,t,n):o,o.startsWith("<svg")?await kt(s?.customizations?.trimCustomSvg===!0?wo(o):o,t,n,s,void 0):(console.warn(`Custom icon "${n}" in "${t}" is not a valid SVG`),o)}}const $o=St("@iconify-loader:icon");async function It(e,t,n,s){let o;const{customize:r}=s?.customizations??{};for(const i of n)if(o=io(e,i),o){$o(`${t}:${i}`);let c={...Ct};typeof r=="function"&&(o=Object.assign({},o),c=r(c,o,`${t}:${i}`)??c);const{attributes:{width:d,height:a,...l},body:p}=xt(o,c),f=s?.scale;return await kt(`<svg >${p}</svg>`,t,i,s,()=>({...l}),u=>{const m=(h,g)=>{const y=u[h];let w;if(!be(y)){if(y)return;typeof f=="number"?f&&(w=Y(g??"1em",f)):w=g}w?u[h]=w:delete u[h]};m("width",d),m("height",a)})}}const Ft=async(e,t,n)=>{const s=n?.customCollections?.[e];if(s)if(typeof s=="function"){let o;try{o=await s(t)}catch(r){console.warn(`Failed to load custom icon "${t}" in "${e}":`,r);return}if(o){if(typeof o=="string")return await Re(()=>o,e,t,n);if("icons"in o){const r=[t,t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.replace(/([a-z])(\d+)/g,"$1-$2")];return await It(o,e,r,n)}}}else return await Re(s,e,t,n)};var ze={};function _o(){const e=typeof process<"u"&&process.stdout,t=e&&!!ze.VSCODE_CWD,n=e&&!!ze.ESLINT;return{isNode:e,isVSCode:t,isESLint:n}}const Tt=["academicons","akar-icons","ant-design","arcticons","basil","bi","bitcoin-icons","bpmn","brandico","bubbles","bx","bxl","bxs","bytesize","carbon","catppuccin","cbi","charm","ci","cib","cif","cil","circle-flags","circum","clarity","codex","codicon","covid","cryptocurrency-color","cryptocurrency","cuida","dashicons","devicon-line","devicon-original","devicon-plain","devicon","dinkie-icons","duo-icons","ei","el","emblemicons","emojione-monotone","emojione-v1","emojione","entypo-social","entypo","eos-icons","ep","et","eva","f7","fa-brands","fa-regular","fa-solid","fa","fa6-brands","fa6-regular","fa6-solid","fa7-brands","fa7-regular","fa7-solid","fad","famicons","fe","feather","file-icons","flag","flagpack","flat-color-icons","flat-ui","flowbite","fluent-color","fluent-emoji-flat","fluent-emoji-high-contrast","fluent-emoji","fluent-mdl2","fluent","fontelico","fontisto","formkit","foundation","fxemoji","gala","game-icons","garden","geo","gg","gis","gravity-ui","gridicons","grommet-icons","guidance","healthicons","heroicons-outline","heroicons-solid","heroicons","hugeicons","humbleicons","ic","icomoon-free","icon-park-outline","icon-park-solid","icon-park-twotone","icon-park","iconamoon","iconoir","icons8","il","ion","iwwa","ix","jam","la","lets-icons","line-md","lineicons","logos","ls","lsicon","lucide-lab","lucide","mage","majesticons","maki","map","marketeq","material-icon-theme","material-symbols-light","material-symbols","mdi-light","mdi","medical-icon","memory","meteocons","meteor-icons","mi","mingcute","mono-icons","mynaui","nimbus","nonicons","noto-v1","noto","nrk","octicon","oi","ooui","openmoji","oui","pajamas","pepicons-pencil","pepicons-pop","pepicons-print","pepicons","ph","picon","pixel","pixelarticons","prime","proicons","ps","qlementine-icons","quill","radix-icons","raphael","ri","rivet-icons","roentgen","si-glyph","si","sidekickicons","simple-icons","simple-line-icons","skill-icons","solar","stash","streamline-block","streamline-color","streamline-cyber-color","streamline-cyber","streamline-emojis","streamline-flex-color","streamline-flex","streamline-freehand-color","streamline-freehand","streamline-guidance","streamline-kameleon-color","streamline-logos","streamline-pixel","streamline-plump-color","streamline-plump","streamline-sharp-color","streamline-sharp","streamline-stickies-color","streamline-ultimate-color","streamline-ultimate","streamline","subway","svg-spinners","system-uicons","tabler","tdesign","teenyicons","temaki","token-branded","token","topcoat","twemoji","typcn","uil","uim","uis","uit","uiw","unjs","vaadin","vs","vscode-icons","websymbol","weui","whh","wi","wpf","zmdi","zondicons"],Ao=3;function jo(e){return mn((t={})=>{const{scale:n=1,mode:s="auto",prefix:o="i-",warn:r=!1,iconifyCollectionsNames:i,collections:c,extraProperties:d={},customizations:a={},autoInstall:l=!1,collectionsNodeResolvePath:p,layer:f="icons",unit:u,processor:m}=t,h=_o(),g={addXmlNs:!0,scale:n,customCollections:c,autoInstall:l,cwd:p,warn:void 0,customizations:{...a,additionalProps:{...d},trimCustomSvg:!0,async iconCustomizer(w,v,b){await a.iconCustomizer?.(w,v,b),u&&(b.width||(b.width=`${n}${u}`),b.height||(b.height=`${n}${u}`))}}};let y;return{name:"@unocss/preset-icons",enforce:"pre",options:t,layers:{icons:-30},api:{encodeSvgForCss:Le,parseIconWithLoader:Ve},rules:[[/^([\w:-]+)(?:\?(mask|bg|auto))?$/,async w=>{let[v,b,k=s]=w;y=y||await e(t);const C={},x=await Ve(b,y,{...g,usedProps:C},i);if(!x){r&&!h.isESLint&&gn(`failed to load icon "${v}"`);return}let S;const T=`url("data:image/svg+xml;utf8,${Le(x.svg)}")`;return k==="auto"&&(k=x.svg.includes("currentColor")?"mask":"bg"),k==="mask"?S={"--un-icon":T,"-webkit-mask":"var(--un-icon) no-repeat",mask:"var(--un-icon) no-repeat","-webkit-mask-size":"100% 100%","mask-size":"100% 100%","background-color":"currentColor",color:"inherit",...C}:S={background:`${T} no-repeat`,"background-size":"100% 100%","background-color":"transparent",...C},m?.(S,{...x,icon:x.name,mode:k}),S},{layer:f,prefix:o}]]}})}function $t(e,t,n=new Map){function s(o){if(Tt.includes(o))return n.has(o)||n.set(o,e(`${t}@iconify-json/${o}/icons.json`)),n.get(o)}return async(o,r,i)=>{let c=await Ft(o,r,i);if(c)return c;const d=await s(o);if(d){const a=[r,r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),r.replace(/([a-z])(\d+)/g,"$1-$2")];c=await It(d,o,a,i)}return c}}async function Ve(e,t,n={},s=[]){let o="",r="",i;const c=new Set([...Tt,...s,...Object.keys(n.customCollections||{})]);if(e.includes(":")){if([o,r]=e.split(":"),!c.has(o))return;i=await t(o,r,n)}else{const d=e.split(/-/g);for(let a=Ao;a>=1&&(o=d.slice(0,a).join("-"),!(!!c.has(o)&&(r=d.slice(a).join("-"),i=await t(o,r,n),i)));a--);}if(i)return{collection:o,name:r,svg:i}}async function Mo(e){const{$fetch:t}=await yn(async()=>{const{$fetch:n}=await import("./unocss-GGiNT3_V.js").then(s=>s.f);return{$fetch:n}},[]);return $t(t,e)}const Oo=jo(async e=>{const t=e?.customFetch,n=e?.cdn;return t&&n?$t(t,n):n?await Mo(n):Ft}),Eo=({attributifyOptions:e,iconsOptions:t={cdn:"https://cdn.jsdelivr.net/npm/"},tagifyOptions:n,typographyOptions:s,webFontsOptions:o,wind4Options:r={preflights:{reset:!0}}}={})=>[wn(e),Oo(t),bn(n),vn(s),Cn(o),xn(r)],_t=/^[a-z0-9]+(-[a-z0-9]+)*$/,q=(e,t,n,s="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;s=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const c=o.pop(),d=o.pop(),a={provider:o.length>0?o[0]:s,prefix:d,name:c};return t&&!B(a)?null:a}const r=o[0],i=r.split("-");if(i.length>1){const c={provider:s,prefix:i.shift(),name:i.join("-")};return t&&!B(c)?null:c}if(n&&s===""){const c={provider:s,prefix:"",name:r};return t&&!B(c,n)?null:c}return null},B=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1,At=Object.freeze({left:0,top:0,width:16,height:16}),ee=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),P=Object.freeze({...At,...ee}),fe=Object.freeze({...P,body:"",hidden:!1});function Po(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const s=((e.rotate||0)+(t.rotate||0))%4;return s&&(n.rotate=s),n}function Ue(e,t){const n=Po(e,t);for(const s in fe)s in ee?s in e&&!(s in n)&&(n[s]=ee[s]):s in t?n[s]=t[s]:s in e&&(n[s]=e[s]);return n}function Lo(e,t){const n=e.icons,s=e.aliases||Object.create(null),o=Object.create(null);function r(i){if(n[i])return o[i]=[];if(!(i in o)){o[i]=null;const c=s[i]&&s[i].parent,d=c&&r(c);d&&(o[i]=[c].concat(d))}return o[i]}return Object.keys(n).concat(Object.keys(s)).forEach(r),o}function Ho(e,t,n){const s=e.icons,o=e.aliases||Object.create(null);let r={};function i(c){r=Ue(s[c]||o[c],r)}return i(t),n.forEach(i),Ue(e,r)}function jt(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 s=Lo(e);for(const o in s){const r=s[o];r&&(t(o,Ho(e,o,r)),n.push(o))}return n}const No={provider:"",aliases:{},not_found:{},...At};function ce(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function Mt(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!ce(e,No))return null;const n=t.icons;for(const o in n){const r=n[o];if(!o||typeof r.body!="string"||!ce(r,fe))return null}const s=t.aliases||Object.create(null);for(const o in s){const r=s[o],i=r.parent;if(!o||typeof i!="string"||!n[i]&&!s[i]||!ce(r,fe))return null}return t}const qe=Object.create(null);function Do(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function O(e,t){const n=qe[e]||(qe[e]=Object.create(null));return n[t]||(n[t]=Do(e,t))}function Ot(e,t){return Mt(t)?jt(t,(n,s)=>{s?e.icons[n]=s:e.missing.add(n)}):[]}function Ro(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let V=!1;function Et(e){return typeof e=="boolean"&&(V=e),V}function oe(e){const t=typeof e=="string"?q(e,!0,V):e;if(t){const n=O(t.provider,t.prefix),s=t.name;return n.icons[s]||(n.missing.has(s)?null:void 0)}}function zo(e,t){const n=q(e,!0,V);if(!n)return!1;const s=O(n.provider,n.prefix);return t?Ro(s,n.name,t):(s.missing.add(n.name),!0)}function Vo(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),V&&!t&&!e.prefix){let o=!1;return Mt(e)&&(e.prefix="",jt(e,(r,i)=>{zo(r,i)&&(o=!0)})),o}const n=e.prefix;if(!B({prefix:n,name:"a"}))return!1;const s=O(t,n);return!!Ot(s,e)}function Uo(e){return!!oe(e)}function qo(e){const t=oe(e);return t&&{...P,...t}}const Pt=Object.freeze({width:null,height:null}),Lt=Object.freeze({...Pt,...ee}),Wo=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Bo=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function We(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 s=e.split(Wo);if(s===null||!s.length)return e;const o=[];let r=s.shift(),i=Bo.test(r);for(;;){if(i){const c=parseFloat(r);isNaN(c)?o.push(r):o.push(Math.ceil(c*t*n)/n)}else o.push(r);if(r=s.shift(),r===void 0)return o.join("");i=!i}}function Go(e,t="defs"){let n="";const s=e.indexOf("<"+t);for(;s>=0;){const o=e.indexOf(">",s),r=e.indexOf("</"+t);if(o===-1||r===-1)break;const i=e.indexOf(">",r);if(i===-1)break;n+=e.slice(o+1,r).trim(),e=e.slice(0,s).trim()+e.slice(i+1)}return{defs:n,content:e}}function Ko(e,t){return e?"<defs>"+e+"</defs>"+t:t}function Qo(e,t,n){const s=Go(e);return Ko(s.defs,t+s.content+n)}const Jo=e=>e==="unset"||e==="undefined"||e==="none";function Zo(e,t){const n={...P,...e},s={...Lt,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let r=n.body;[n,s].forEach(h=>{const g=[],y=h.hFlip,w=h.vFlip;let v=h.rotate;y?w?v+=2:(g.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),g.push("scale(-1 1)"),o.top=o.left=0):w&&(g.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),g.push("scale(1 -1)"),o.top=o.left=0);let b;switch(v<0&&(v-=Math.floor(v/4)*4),v=v%4,v){case 1:b=o.height/2+o.top,g.unshift("rotate(90 "+b.toString()+" "+b.toString()+")");break;case 2:g.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:b=o.width/2+o.left,g.unshift("rotate(-90 "+b.toString()+" "+b.toString()+")");break}v%2===1&&(o.left!==o.top&&(b=o.left,o.left=o.top,o.top=b),o.width!==o.height&&(b=o.width,o.width=o.height,o.height=b)),g.length&&(r=Qo(r,'<g transform="'+g.join(" ")+'">',"</g>"))});const i=s.width,c=s.height,d=o.width,a=o.height;let l,p;i===null?(p=c===null?"1em":c==="auto"?a:c,l=We(p,d/a)):(l=i==="auto"?d:i,p=c===null?We(l,a/d):c==="auto"?a:c);const f={},u=(h,g)=>{Jo(g)||(f[h]=g.toString())};u("width",l),u("height",p);const m=[o.left,o.top,d,a];return f.viewBox=m.join(" "),{attributes:f,viewBox:m,body:r}}const Xo=/\sid="(\S+)"/g,Yo="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let es=0;function ts(e,t=Yo){const n=[];let s;for(;s=Xo.exec(e);)n.push(s[1]);if(!n.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(r=>{const i=typeof t=="function"?t(r):t+(es++).toString(),c=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+i+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}const de=Object.create(null);function ns(e,t){de[e]=t}function pe(e){return de[e]||de[""]}function ve(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 Ce=Object.create(null),N=["https://api.simplesvg.com","https://api.unisvg.com"],G=[];for(;N.length>0;)N.length===1||Math.random()>.5?G.push(N.shift()):G.push(N.pop());Ce[""]=ve({resources:["https://api.iconify.design"].concat(G)});function os(e,t){const n=ve(t);return n===null?!1:(Ce[e]=n,!0)}function xe(e){return Ce[e]}const ss=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Be=ss();function rs(e,t){const n=xe(e);if(!n)return 0;let s;if(!n.maxURL)s=0;else{let o=0;n.resources.forEach(i=>{o=Math.max(o,i.length)});const r=t+".json?icons=";s=n.maxURL-o-n.path.length-r.length}return s}function is(e){return e===404}const cs=(e,t,n)=>{const s=[],o=rs(e,t),r="icons";let i={type:r,provider:e,prefix:t,icons:[]},c=0;return n.forEach((d,a)=>{c+=d.length+1,c>=o&&a>0&&(s.push(i),i={type:r,provider:e,prefix:t,icons:[]},c=d.length),i.icons.push(d)}),s.push(i),s};function as(e){if(typeof e=="string"){const t=xe(e);if(t)return t.path}return"/"}const ls=(e,t,n)=>{if(!Be){n("abort",424);return}let s=as(t.provider);switch(t.type){case"icons":{const r=t.prefix,c=t.icons.join(","),d=new URLSearchParams({icons:c});s+=r+".json?"+d.toString();break}case"custom":{const r=t.uri;s+=r.slice(0,1)==="/"?r.slice(1):r;break}default:n("abort",400);return}let o=503;Be(e+s).then(r=>{const i=r.status;if(i!==200){setTimeout(()=>{n(is(i)?"abort":"next",i)});return}return o=501,r.json()}).then(r=>{if(typeof r!="object"||r===null){setTimeout(()=>{r===404?n("abort",r):n("next",o)});return}setTimeout(()=>{n("success",r)})}).catch(()=>{n("next",o)})},us={prepare:cs,send:ls};function fs(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,r)=>o.provider!==r.provider?o.provider.localeCompare(r.provider):o.prefix!==r.prefix?o.prefix.localeCompare(r.prefix):o.name.localeCompare(r.name));let s={provider:"",prefix:"",name:""};return e.forEach(o=>{if(s.name===o.name&&s.prefix===o.prefix&&s.provider===o.provider)return;s=o;const r=o.provider,i=o.prefix,c=o.name,d=n[r]||(n[r]=Object.create(null)),a=d[i]||(d[i]=O(r,i));let l;c in a.icons?l=t.loaded:i===""||a.missing.has(c)?l=t.missing:l=t.pending;const p={provider:r,prefix:i,name:c};l.push(p)}),t}function Ht(e,t){e.forEach(n=>{const s=n.loaderCallbacks;s&&(n.loaderCallbacks=s.filter(o=>o.id!==t))})}function ds(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 s=e.provider,o=e.prefix;t.forEach(r=>{const i=r.icons,c=i.pending.length;i.pending=i.pending.filter(d=>{if(d.prefix!==o)return!0;const a=d.name;if(e.icons[a])i.loaded.push({provider:s,prefix:o,name:a});else if(e.missing.has(a))i.missing.push({provider:s,prefix:o,name:a});else return n=!0,!0;return!1}),i.pending.length!==c&&(n||Ht([e],r.id),r.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),r.abort))})}))}let ps=0;function hs(e,t,n){const s=ps++,o=Ht.bind(null,n,s);if(!t.pending.length)return o;const r={id:s,icons:t,callback:e,abort:o};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(r)}),o}function ms(e,t=!0,n=!1){const s=[];return e.forEach(o=>{const r=typeof o=="string"?q(o,t,n):o;r&&s.push(r)}),s}var gs={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function ys(e,t,n,s){const o=e.resources.length,r=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let C=e.resources.slice(0);for(i=[];C.length>1;){const x=Math.floor(Math.random()*C.length);i.push(C[x]),C=C.slice(0,x).concat(C.slice(x+1))}i=i.concat(C)}else i=e.resources.slice(r).concat(e.resources.slice(0,r));const c=Date.now();let d="pending",a=0,l,p=null,f=[],u=[];typeof s=="function"&&u.push(s);function m(){p&&(clearTimeout(p),p=null)}function h(){d==="pending"&&(d="aborted"),m(),f.forEach(C=>{C.status==="pending"&&(C.status="aborted")}),f=[]}function g(C,x){x&&(u=[]),typeof C=="function"&&u.push(C)}function y(){return{startTime:c,payload:t,status:d,queriesSent:a,queriesPending:f.length,subscribe:g,abort:h}}function w(){d="failed",u.forEach(C=>{C(void 0,l)})}function v(){f.forEach(C=>{C.status==="pending"&&(C.status="aborted")}),f=[]}function b(C,x,S){const T=x!=="success";switch(f=f.filter($=>$!==C),d){case"pending":break;case"failed":if(T||!e.dataAfterTimeout)return;break;default:return}if(x==="abort"){l=S,w();return}if(T){l=S,f.length||(i.length?k():w());return}if(m(),v(),!e.random){const $=e.resources.indexOf(C.resource);$!==-1&&$!==e.index&&(e.index=$)}d="completed",u.forEach($=>{$(S)})}function k(){if(d!=="pending")return;m();const C=i.shift();if(C===void 0){if(f.length){p=setTimeout(()=>{m(),d==="pending"&&(v(),w())},e.timeout);return}w();return}const x={status:"pending",resource:C,callback:(S,T)=>{b(x,S,T)}};f.push(x),a++,p=setTimeout(k,e.rotate),n(C,t,x.callback)}return setTimeout(k),y}function Nt(e){const t={...gs,...e};let n=[];function s(){n=n.filter(c=>c().status==="pending")}function o(c,d,a){const l=ys(t,c,d,(p,f)=>{s(),a&&a(p,f)});return n.push(l),l}function r(c){return n.find(d=>c(d))||null}return{query:o,find:r,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:s}}function Ge(){}const ae=Object.create(null);function ws(e){if(!ae[e]){const t=xe(e);if(!t)return;const n=Nt(t),s={config:t,redundancy:n};ae[e]=s}return ae[e]}function bs(e,t,n){let s,o;if(typeof e=="string"){const r=pe(e);if(!r)return n(void 0,424),Ge;o=r.send;const i=ws(e);i&&(s=i.redundancy)}else{const r=ve(e);if(r){s=Nt(r);const i=e.resources?e.resources[0]:"",c=pe(i);c&&(o=c.send)}}return!s||!o?(n(void 0,424),Ge):s.query(t,o,n)().abort}function Ke(){}function vs(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,ds(e)}))}function Cs(e){const t=[],n=[];return e.forEach(s=>{(s.match(_t)?t:n).push(s)}),{valid:t,invalid:n}}function D(e,t,n){function s(){const o=e.pendingIcons;t.forEach(r=>{o&&o.delete(r),e.icons[r]||e.missing.add(r)})}if(n&&typeof n=="object")try{if(!Ot(e,n).length){s();return}}catch(o){console.error(o)}s(),vs(e)}function Qe(e,t){e instanceof Promise?e.then(n=>{t(n)}).catch(()=>{t(null)}):t(e)}function xs(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:s}=e,o=e.iconsToLoad;if(delete e.iconsToLoad,!o||!o.length)return;const r=e.loadIcon;if(e.loadIcons&&(o.length>1||!r)){Qe(e.loadIcons(o,s,n),l=>{D(e,o,l)});return}if(r){o.forEach(l=>{const p=r(l,s,n);Qe(p,f=>{const u=f?{prefix:s,icons:{[l]:f}}:null;D(e,[l],u)})});return}const{valid:i,invalid:c}=Cs(o);if(c.length&&D(e,c,null),!i.length)return;const d=s.match(_t)?pe(n):null;if(!d){D(e,i,null);return}d.prepare(n,s,i).forEach(l=>{bs(n,l,p=>{D(e,l.icons,p)})})}))}const Dt=(e,t)=>{const n=ms(e,!0,Et()),s=fs(n);if(!s.pending.length){let d=!0;return t&&setTimeout(()=>{d&&t(s.loaded,s.missing,s.pending,Ke)}),()=>{d=!1}}const o=Object.create(null),r=[];let i,c;return s.pending.forEach(d=>{const{provider:a,prefix:l}=d;if(l===c&&a===i)return;i=a,c=l,r.push(O(a,l));const p=o[a]||(o[a]=Object.create(null));p[l]||(p[l]=[])}),s.pending.forEach(d=>{const{provider:a,prefix:l,name:p}=d,f=O(a,l),u=f.pendingIcons||(f.pendingIcons=new Set);u.has(p)||(u.add(p),o[a][l].push(p))}),r.forEach(d=>{const a=o[d.provider][d.prefix];a.length&&xs(d,a)}),t?hs(t,s,r):Ke},ks=e=>new Promise((t,n)=>{const s=typeof e=="string"?q(e,!0):e;if(!s){n(e);return}Dt([s||e],o=>{if(o.length&&s){const r=oe(s);if(r){t({...P,...r});return}}n(e)})});function Ss(e,t){const n={...e};for(const s in t){const o=t[s],r=typeof o;s in Pt?(o===null||o&&(r==="string"||r==="number"))&&(n[s]=o):r===typeof n[s]&&(n[s]=s==="rotate"?o%4:o)}return n}const Is=/[\s,]+/;function Fs(e,t){t.split(Is).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function Ts(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function s(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:s(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let r=parseFloat(e.slice(0,e.length-n.length));return isNaN(r)?0:(r=r/o,r%1===0?s(r):0)}}return t}function $s(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const s in t)n+=" "+s+'="'+t[s]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function _s(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function As(e){return"data:image/svg+xml,"+_s(e)}function js(e){return'url("'+As(e)+'")'}const Je={...Lt,inline:!1},Ms={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Os={display:"inline-block"},he={backgroundColor:"currentColor"},Rt={backgroundColor:"transparent"},Ze={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Xe={webkitMask:he,mask:he,background:Rt};for(const e in Xe){const t=Xe[e];for(const n in Ze)t[e+n]=Ze[n]}const K={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";K[e+"-flip"]=t,K[e.slice(0,1)+"-flip"]=t,K[e+"Flip"]=t});function Ye(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const et=(e,t)=>{const n=Ss(Je,t),s={...Ms},o=t.mode||"svg",r={},i=t.style,c=typeof i=="object"&&!(i instanceof Array)?i:{};for(let h in t){const g=t[h];if(g!==void 0)switch(h){case"icon":case"style":case"onLoad":case"mode":case"ssr":break;case"inline":case"hFlip":case"vFlip":n[h]=g===!0||g==="true"||g===1;break;case"flip":typeof g=="string"&&Fs(n,g);break;case"color":r.color=g;break;case"rotate":typeof g=="string"?n[h]=Ts(g):typeof g=="number"&&(n[h]=g);break;case"ariaHidden":case"aria-hidden":g!==!0&&g!=="true"&&delete s["aria-hidden"];break;default:{const y=K[h];y?(g===!0||g==="true"||g===1)&&(n[y]=!0):Je[h]===void 0&&(s[h]=g)}}}const d=Zo(e,n),a=d.attributes;if(n.inline&&(r.verticalAlign="-0.125em"),o==="svg"){s.style={...r,...c},Object.assign(s,a);let h=0,g=t.id;return typeof g=="string"&&(g=g.replace(/-/g,"_")),s.innerHTML=ts(d.body,g?()=>g+"ID"+h++:"iconifyVue"),Fe("svg",s)}const{body:l,width:p,height:f}=e,u=o==="mask"||(o==="bg"?!1:l.indexOf("currentColor")!==-1),m=$s(l,{...a,width:p+"",height:f+""});return s.style={...r,"--svg":js(m),width:Ye(a.width),height:Ye(a.height),...Os,...u?he:Rt,...c},Fe("span",s)};Et(!0);ns("",us);if(typeof document<"u"&&typeof window<"u"){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(s=>{try{(typeof s!="object"||s===null||s instanceof Array||typeof s.icons!="object"||typeof s.prefix!="string"||!Vo(s))&&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 s="IconifyProviders["+n+"] is invalid.";try{const o=t[n];if(typeof o!="object"||!o||o.resources===void 0)continue;os(n,o)||console.error(s)}catch{console.error(s)}}}}const Es={...P,body:""};E((e,{emit:t})=>{const n=A(null);function s(){n.value&&(n.value.abort?.(),n.value=null)}const o=A(!!e.ssr),r=A(""),i=ct(null);function c(){const a=e.icon;if(typeof a=="object"&&a!==null&&typeof a.body=="string")return r.value="",{data:a};let l;if(typeof a!="string"||(l=q(a,!1,!0))===null)return null;let p=oe(l);if(!p){const m=n.value;return(!m||m.name!==a)&&(p===null?n.value={name:a}:n.value={name:a,abort:Dt([l],d)}),null}s(),r.value!==a&&(r.value=a,rn(()=>{t("load",a)}));const f=e.customise;if(f){p=Object.assign({},p);const m=f(p.body,l.name,l.prefix,l.provider);typeof m=="string"&&(p.body=m)}const u=["iconify"];return l.prefix!==""&&u.push("iconify--"+l.prefix),l.provider!==""&&u.push("iconify--"+l.provider),{data:p,classes:u}}function d(){const a=c();a?a.data!==i.value?.data&&(i.value=a):i.value=null}return o.value?d():sn(()=>{o.value=!0,d()}),ne(()=>e.icon,d),at(s),()=>{const a=i.value;if(!a)return et(Es,e);let l=e;return a.classes&&(l={...e,class:a.classes.join(" ")}),et({...P,...a.data},l)}},{props:["icon","mode","ssr","width","height","style","color","inline","rotate","hFlip","horizontalFlip","vFlip","verticalFlip","flip","id","ariaHidden","customise","title"],emits:["load"]});const Ps=E({__name:"App",setup(e){const t=In(),n=U(),s=I(()=>n.kvNodes[t.name]),o=I(()=>s.value?.description),r=A(""),i=A(""),c=I(()=>s.value?.keywords.join()),d=I(()=>s.value?.images.filter(({url:f})=>f).map(({alt:f="",url:u})=>({alt:f,url:`${window.location.origin}/${u}`}))??[]),a=I(()=>s.value?.type),l=I(()=>s.value?.to&&`${window.location.origin}${s.value.to==="/"?"":s.value.to}`),p=I(()=>s.value?.title);return ne(s,async f=>{if(f){let u="/favicon.ico";if(f.icon){const m=Uo(f.icon)?qo(f.icon):await ks(f.icon);if(m){const{attributes:h,body:g}=xt(m,{height:16,width:16});u=`data:image/svg+xml,${encodeURIComponent(bo(go(g),h))}`}}r.value=u,i.value=JSON.stringify(await nt(`./pages/${f.id}.jsonld`)??{"@context":"https://schema.org"})}}),we({link:[[r,"icon","icon"],[l,"canonical"]].map(([f,u,m])=>({href:f,key:m,rel:u})),script:[{id:"application/ld+json",innerHTML:i,type:"application/ld+json"}]}),Yn({description:o,keywords:c,ogDescription:o,ogImage:d,ogTitle:p,ogType:a,ogUrl:l,title:p}),(f,u)=>{const m=cn("router-view");return j(),R(m,null,{default:me(({Component:h})=>[(j(),R(ge(h),{id:F(n).nodes[0]?.id},null,8,["id"]))]),_:1})}}}),zt=e=>an(async()=>$n(`./pages/${e}.vue`,{scriptOptions:{inlineTemplate:!0}})),Vt=()=>{let e,t;return{promise:new Promise((s,o)=>{e=s,t=o}),reject:t,resolve:e}},ke=Wt("main",()=>{const e=A(),t=U(),n=I(()=>e.value===t.nodes[0]?.id?t.nodes[0]?.$children[0]:t.kvNodes[e.value]),s=I(()=>n.value===void 0||n.value.parent?.flat?n.value?.siblings??[]:[n.value]);return{$these:Bt(s,({enabled:o})=>o),intersecting:new Map,promises:new Map,root:Vt(),routeName:e,scrollLock:A(!1),that:n}});function tt(e,t){const n=e.type,s=n==="html"?"htmlAttrs":n==="body"?"bodyAttrs":n;if(typeof s!="string"||!(s in t))return;const o=e.props||{};if(e.children){const r="children";o.children=Array.isArray(e.children)?e.children[0][r]:e[r]}Array.isArray(t[s])?t[s].push(o):s==="title"?t.title=o.children:t[s]=o}function Ls(e){const t={title:void 0,htmlAttrs:void 0,bodyAttrs:void 0,base:void 0,meta:[],link:[],style:[],script:[],noscript:[]};for(const n of e)if(typeof n.type=="symbol"&&Array.isArray(n.children))for(const s of n.children)tt(s,t);else tt(n,t);return t}const Hs=E({name:"Head",setup(e,{slots:t}){const n=A({}),s=we(n);return it(()=>{s.dispose()}),()=>(rt(()=>{t.default&&s.patch(Ls(t.default()))}),null)}}),Ns=E({__name:"NotFoundView",setup(e){return(t,n)=>(j(),Q(lt,null,[ln(F(Hs),null,{default:me(()=>[...n[0]||(n[0]=[L("title",null,"Page Not Found",-1)])]),_:1}),n[1]||(n[1]=L("div",{class:"absolute inset-0 grid place-items-center"},[L("div",{class:"text-center"},[L("div",{class:"text-9xl"},"404"),L("p",null,"Oops. Nothing here...")])],-1))],64))}}),Ds={mounted(e,t){typeof t.value=="function"?Ie(e,t.value):Ie(e,...t.value)}};function Rs(){let e=!1;const t=ct(!1);return(n,s)=>{if(t.value=s.value,e)return;e=!0;const o=Gt(n,s.value);ne(t,r=>o.value=r)}}Rs();const zs=["id"],Vs=E({__name:"PageView",setup(e){const t=ke(),n=U(),{$these:s}=ot(t),o=()=>{[t.intersecting,t.promises].forEach(i=>{i.clear()})},r=I(()=>new Map(s.value.map(({id:i})=>[i,zt(i)])));return ne(s,i=>{o(),i.forEach(({id:c})=>{t.intersecting.set(c,!1),t.promises.set(c,Vt())})},{immediate:!0}),at(()=>{o()}),(i,c)=>(j(!0),Q(lt,null,un(r.value,([d,a])=>fn((j(),Q("div",{id:d,key:d,"un-cloak":"",class:ut(F(n).kvNodes[d]?.class)},[(j(),R(ge(a),{id:d,onVnodeMounted:l=>F(t).promises.get(d)?.resolve(void 0)},null,8,["id","onVnodeMounted"]))],10,zs)),[[F(Ds),[([{isIntersecting:l}={}])=>{F(t).intersecting.set(d,l)},{threshold:.1}]]])),128))}}),Us=["id"],qs=E({__name:"RootView",setup(e){const t=U(),[n]=t.nodes,s=I(()=>n&&zt(n.id)),o=ke();return(r,i)=>(j(),R(dn,null,{default:me(()=>[F(n)?.enabled?(j(),Q("div",{key:0,id:F(n).id,class:ut(F(n).class),"un-cloak":""},[(j(),R(ge(s.value),{id:F(n).id,onVnodeMounted:i[0]||(i[0]=c=>F(o).root.resolve(void 0))},null,8,["id"]))],10,Us)):pn("",!0)]),_:1}))}}),[[Ws={}],Bs]=(await Promise.all(["index","fonts"].map(e=>nt(`${e}.json`)))).map(e=>e??[]),Se=hn(Ps),{pathname:Gs}=new URL(document.baseURI);Se.use(Kt());const M=ke(),te=U(),{kvNodes:Ks}=ot(te);te.tree.push(Ws);await kn({defaults:{presets:Eo({webFontsOptions:{customFetch:Sn,fonts:Object.fromEntries(Bs.map(e=>[e.toLowerCase().replace(/ /g,"_"),e]))}})},ready:({extractAll:e,toggleObserver:t})=>{let n=!1;const s=Fn({history:Tn(Gs),routes:[...te.nodes.filter(({path:i})=>i!==void 0).map(i=>{const{id:c,loc:d,path:a}=i,l=d?.replace(/ /g,"_").replace(/^\/?/,"/").replace(/\/?$/,"/");return{...l&&{alias:l},children:[{component:Vs,name:c,path:""}],component:qs,path:a.replace(/^\/?/,"/").replace(/\/?$/,"/")}}),{component:Ns,name:"404",path:"/:pathMatch(.*)*"}],scrollBehavior:async({hash:i,name:c})=>{if(c)if(M.routeName=c,n)n=!1;else{const{index:d,parent:{flat:a}={}}=M.that??{};return t(!0),await M.root.promise,await Promise.all([...M.promises.values()].map(({promise:l})=>l)),await e(),t(!1),"requestIdleCallback"in window?await new Promise(l=>requestIdleCallback(l)):(await new Promise(l=>requestAnimationFrame(l)),await new Promise(l=>setTimeout(l))),{behavior:"smooth",...i||a&&d?{el:i||`#${String(c)}`}:{left:0,top:0}}}return!1}}),{x:o,y:r}=Jt(window,{onStop:()=>{const[i]=M.$these,[c]=te.nodes;if(c&&i){const{$children:[{id:d}={}]=[]}=c,a=!Math.floor(o.value)&&!Math.floor(r.value)&&i.id===d?c.id:[...M.intersecting.entries()].find(([,l])=>l)?.[0]??i.id;a!==M.routeName&&(n=!0,s.push({name:a}).catch(st.error))}}});return s.beforeEach(({path:i})=>i!==decodeURI(i)?decodeURI(i):void 0),Se.use(s),!1},rootElement:()=>document.getElementById("app")??void 0});Se.use(eo()).provide("pages",Qt(Ks)).mount("#app");st.info("👊 VueBro / https://github.com/vuebro / runtime ver.:","1.2.12");
@@ -0,0 +1,17 @@
1
+ import{isRef as Se,reactive as Ke,unref as Gn,computed as pe,toValue as re,onMounted as Wn,nextTick as Jn,getCurrentScope as Bn,onScopeDispose as Xn,watch as Ne,getCurrentInstance as Yn,toRef as Qn,readonly as ws,ref as be,customRef as bs,shallowRef as Me,effectScope as Zn,markRaw as xn,toRaw as es,isReactive as fr,hasInjectionContext as Ss,inject as Es,toRefs as Ps}from"vue";import{o as ks}from"./unocss-GGiNT3_V.js";function ir(e,t={},n){for(const r in e){const a=e[r],s=n?`${n}:${r}`:r;typeof a=="object"&&a!==null?ir(a,t,s):typeof a=="function"&&(t[s]=a)}return t}const Os={run:e=>e()},js=()=>Os,ts=typeof console.createTask<"u"?console.createTask:js;function Rs(e,t){const n=t.shift(),r=ts(n);return e.reduce((a,s)=>a.then(()=>r.run(()=>s(...t))),Promise.resolve())}function Ns(e,t){const n=t.shift(),r=ts(n);return Promise.all(e.map(a=>r.run(()=>a(...t))))}function Ut(e,t){for(const n of[...e])n(t)}class Ts{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 a=t;let s;for(;this._deprecatedHooks[t];)s=this._deprecatedHooks[t],t=s.to;if(s&&!r.allowDeprecated){let d=s.message;d||(d=`${a} hook has been deprecated`+(s.to?`, please use ${s.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(d)||(console.warn(d),this._deprecatedMessages.add(d))}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,a=(...s)=>(typeof r=="function"&&r(),r=void 0,a=void 0,n(...s));return r=this.hook(t,a),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 a of r)this.hook(t,a)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=ir(t),r=Object.keys(n).map(a=>this.hook(a,n[a]));return()=>{for(const a of r.splice(0,r.length))a()}}removeHooks(t){const n=ir(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(Rs,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(Ns,t,...n)}callHookWith(t,n,...r){const a=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&Ut(this._before,a);const s=t(n in this._hooks?[...this._hooks[n]]:[],r);return s instanceof Promise?s.finally(()=>{this._after&&a&&Ut(this._after,a)}):(this._after&&a&&Ut(this._after,a),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 Mi(){return new Ts}function hr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Is(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var a=!1;try{a=this instanceof r}catch{}return a?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})}),n}function Tt(e,t){return Bn()?(Xn(e,t),!0):!1}const rs=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ns=e=>e!=null,qs=Object.prototype.toString,Cs=e=>qs.call(e)==="[object Object]",ge=()=>{},_r=Ms();function Ms(){var e,t,n;return rs&&((e=window)===null||e===void 0||(e=e.navigator)===null||e===void 0?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window)===null||t===void 0||(t=t.navigator)===null||t===void 0?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test((n=window)===null||n===void 0?void 0:n.navigator.userAgent))}function Ds(...e){if(e.length!==1)return Qn(...e);const t=e[0];return typeof t=="function"?ws(bs(()=>({get:t,set:ge}))):be(t)}function ss(e,t){function n(...r){return new Promise((a,s)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(a).catch(s)})}return n}function As(e,t={}){let n,r,a=ge;const s=f=>{clearTimeout(f),a(),a=ge};let d;return f=>{const m=re(e),h=re(t.maxWait);return n&&s(n),m<=0||h!==void 0&&h<=0?(r&&(s(r),r=void 0),Promise.resolve(f())):new Promise((S,$)=>{a=t.rejectOnCancel?$:S,d=f,h&&!r&&(r=setTimeout(()=>{n&&s(n),r=void 0,S(d())},h)),n=setTimeout(()=>{r&&s(r),r=void 0,S(f())},m)})}}function Vs(...e){let t=0,n,r=!0,a=ge,s,d,c,f,m;!Se(e[0])&&typeof e[0]=="object"?{delay:d,trailing:c=!0,leading:f=!0,rejectOnCancel:m=!1}=e[0]:[d,c=!0,f=!0,m=!1]=e;const h=()=>{n&&(clearTimeout(n),n=void 0,a(),a=ge)};return $=>{const _=re(d),v=Date.now()-t,b=()=>s=$();return h(),_<=0?(t=Date.now(),b()):(v>_?(t=Date.now(),(f||!r)&&b()):c&&(s=new Promise((u,p)=>{a=m?p:u,n=setTimeout(()=>{t=Date.now(),r=!0,u(b()),h()},Math.max(0,_-v))})),!f&&!n&&(n=setTimeout(()=>r=!0,_)),r=!1,s)}}function Ue(e){return Array.isArray(e)?e:[e]}function Ls(e){return Yn()}function Fs(e){return Se(e)?Ke(new Proxy({},{get(t,n,r){return Gn(Reflect.get(e.value,n,r))},set(t,n,r){return Se(e.value[n])&&!Se(r)?e.value[n].value=r:e.value[n]=r,!0},deleteProperty(t,n){return Reflect.deleteProperty(e.value,n)},has(t,n){return Reflect.has(e.value,n)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}})):Ke(e)}function Us(e,t=200,n={}){return ss(As(t,n),e)}function zs(e,t=200,n=!1,r=!0,a=!1){return ss(Vs(t,n,r,a),e)}function Ks(e,t=!0,n){Ls()?Wn(e,n):t?e():Jn(e)}function Di(e,t){return pe(()=>re(e).map(n=>re(n)).filter(t))}function Hs(e,t,n){return Ne(e,t,{...n,immediate:!0})}const It=rs?window:void 0;function De(e){var t;const n=re(e);return(t=n?.$el)!==null&&t!==void 0?t:n}function ar(...e){const t=[],n=()=>{t.forEach(c=>c()),t.length=0},r=(c,f,m,h)=>(c.addEventListener(f,m,h),()=>c.removeEventListener(f,m,h)),a=pe(()=>{const c=Ue(re(e[0])).filter(f=>f!=null);return c.every(f=>typeof f!="string")?c:void 0}),s=Hs(()=>{var c,f;return[(c=(f=a.value)===null||f===void 0?void 0:f.map(m=>De(m)))!==null&&c!==void 0?c:[It].filter(m=>m!=null),Ue(re(a.value?e[1]:e[0])),Ue(Gn(a.value?e[2]:e[1])),re(a.value?e[3]:e[2])]},([c,f,m,h])=>{if(n(),!c?.length||!f?.length||!m?.length)return;const S=Cs(h)?{...h}:h;t.push(...c.flatMap($=>f.flatMap(_=>m.map(v=>r($,_,v,S)))))},{flush:"post"}),d=()=>{s(),n()};return Tt(n),d}function Gs(){const e=Me(!1),t=Yn();return t&&Wn(()=>{e.value=!0},t),e}function os(e){const t=Gs();return pe(()=>(t.value,!!e()))}function Ws(e,t,n={}){const{window:r=It,...a}=n;let s;const d=os(()=>r&&"MutationObserver"in r),c=()=>{s&&(s.disconnect(),s=void 0)},f=Ne(pe(()=>{const S=Ue(re(e)).map(De).filter(ns);return new Set(S)}),S=>{c(),d.value&&S.size&&(s=new MutationObserver(t),S.forEach($=>s.observe($,a)))},{immediate:!0,flush:"post"}),m=()=>s?.takeRecords(),h=()=>{f(),c()};return Tt(h),{isSupported:d,stop:h,takeRecords:m}}function Ai(e,t,n={}){const{root:r,rootMargin:a="0px",threshold:s=0,window:d=It,immediate:c=!0}=n,f=os(()=>d&&"IntersectionObserver"in d),m=pe(()=>Ue(re(e)).map(De).filter(ns));let h=ge;const S=Me(c),$=f.value?Ne(()=>[m.value,De(r),S.value],([v,b])=>{if(h(),!S.value||!v.length)return;const u=new IntersectionObserver(t,{root:De(b),rootMargin:a,threshold:s});v.forEach(p=>p&&u.observe(p)),h=()=>{u.disconnect(),h=ge}},{immediate:c,flush:"post"}):ge,_=()=>{h(),$(),S.value=!1};return Tt(_),{isSupported:f,isActive:S,pause(){h(),S.value=!1},resume(){S.value=!0},stop:_}}function zt(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}const $r=1;function Vi(e,t={}){const{throttle:n=0,idle:r=200,onStop:a=ge,onScroll:s=ge,offset:d={left:0,right:0,top:0,bottom:0},observe:c={mutation:!1},eventListenerOptions:f={capture:!1,passive:!0},behavior:m="auto",window:h=It,onError:S=j=>{console.error(j)}}=t,$=typeof c=="boolean"?{mutation:c}:c,_=Me(0),v=Me(0),b=pe({get(){return _.value},set(j){p(j,void 0)}}),u=pe({get(){return v.value},set(j){p(void 0,j)}});function p(j,M){var A,U,L,H;if(!h)return;const B=re(e);if(!B)return;(A=B instanceof Document?h.document.body:B)===null||A===void 0||A.scrollTo({top:(U=re(M))!==null&&U!==void 0?U:u.value,left:(L=re(j))!==null&&L!==void 0?L:b.value,behavior:re(m)});const ee=(B==null||(H=B.document)===null||H===void 0?void 0:H.documentElement)||B?.documentElement||B;b!=null&&(_.value=ee.scrollLeft),u!=null&&(v.value=ee.scrollTop)}const o=Me(!1),l=Ke({left:!0,right:!1,top:!0,bottom:!1}),w=Ke({left:!1,right:!1,top:!1,bottom:!1}),i=j=>{o.value&&(o.value=!1,w.left=!1,w.right=!1,w.top=!1,w.bottom=!1,a(j))},g=Us(i,n+r),E=j=>{var M;if(!h)return;const A=(j==null||(M=j.document)===null||M===void 0?void 0:M.documentElement)||j?.documentElement||De(j),{display:U,flexDirection:L,direction:H}=getComputedStyle(A),B=H==="rtl"?-1:1,ee=A.scrollLeft;w.left=ee<_.value,w.right=ee>_.value;const te=Math.abs(ee*B)<=(d.left||0),Z=Math.abs(ee*B)+A.clientWidth>=A.scrollWidth-(d.right||0)-$r;U==="flex"&&L==="row-reverse"?(l.left=Z,l.right=te):(l.left=te,l.right=Z),_.value=ee;let ae=A.scrollTop;j===h.document&&!ae&&(ae=h.document.body.scrollTop),w.top=ae<v.value,w.bottom=ae>v.value;const D=Math.abs(ae)<=(d.top||0),R=Math.abs(ae)+A.clientHeight>=A.scrollHeight-(d.bottom||0)-$r;U==="flex"&&L==="column-reverse"?(l.top=R,l.bottom=D):(l.top=D,l.bottom=R),v.value=ae},k=j=>{var M;h&&(E((M=j.target.documentElement)!==null&&M!==void 0?M:j.target),o.value=!0,g(j),s(j))};return ar(e,"scroll",n?zs(k,n,!0,!1):k,f),Ks(()=>{try{const j=re(e);if(!j)return;E(j)}catch(j){S(j)}}),$?.mutation&&e!=null&&e!==h&&e!==document&&Ws(e,()=>{const j=re(e);j&&E(j)},{attributes:!0,childList:!0,subtree:!0}),ar(e,"scrollend",i,f),{x:b,y:u,isScrolling:o,arrivedState:l,directions:w,measure(){const j=re(e);h&&j&&E(j)}}}function is(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const n=e.parentNode;return!n||n.tagName==="BODY"?!1:is(n)}}function Js(e){const t=e||window.event,n=t.target;return is(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const Kt=new WeakMap;function Li(e,t=!1){const n=Me(t);let r=null,a="";Ne(Ds(e),c=>{const f=zt(re(c));if(f){const m=f;if(Kt.get(m)||Kt.set(m,m.style.overflow),m.style.overflow!=="hidden"&&(a=m.style.overflow),m.style.overflow==="hidden")return n.value=!0;if(n.value)return m.style.overflow="hidden"}},{immediate:!0});const s=()=>{const c=zt(re(e));!c||n.value||(_r&&(r=ar(c,"touchmove",f=>{Js(f)},{passive:!1})),c.style.overflow="hidden",n.value=!0)},d=()=>{const c=zt(re(e));!c||!n.value||(_r&&r?.(),c.style.overflow=a,Kt.delete(c),n.value=!1)};return Tt(d),pe({get(){return n.value},set(c){c?s():d()}})}function Bs(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Ht={exports:{}};const Xs={},Ys=Object.freeze(Object.defineProperty({__proto__:null,default:Xs},Symbol.toStringTag,{value:"Module"})),Qs=Is(Ys);var wr;function Zs(){return wr||(wr=1,(function(e){(function(){var t,n=0,r=[],a;for(a=0;a<256;a++)r[a]=(a+256).toString(16).substr(1);f.BUFFER_SIZE=4096,f.bin=c,f.clearBuffer=function(){t=null,n=0},f.test=function(m){return typeof m=="string"?/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(m):!1};var s;typeof crypto<"u"?s=crypto:typeof window<"u"&&typeof window.msCrypto<"u"&&(s=window.msCrypto),typeof Bs=="function"?(s=s||Qs,e.exports=f):typeof window<"u"&&(window.uuid=f),f.randomBytes=(function(){if(s){if(s.randomBytes)return s.randomBytes;if(s.getRandomValues)return typeof Uint8Array.prototype.slice!="function"?function(m){var h=new Uint8Array(m);return s.getRandomValues(h),Array.from(h)}:function(m){var h=new Uint8Array(m);return s.getRandomValues(h),h}}return function(m){var h,S=[];for(h=0;h<m;h++)S.push(Math.floor(Math.random()*256));return S}})();function d(m){return(!t||n+m>f.BUFFER_SIZE)&&(n=0,t=f.randomBytes(f.BUFFER_SIZE)),t.slice(n,n+=m)}function c(){var m=d(16);return m[6]=m[6]&15|64,m[8]=m[8]&63|128,m}function f(){var m=c();return r[m[0]]+r[m[1]]+r[m[2]]+r[m[3]]+"-"+r[m[4]]+r[m[5]]+"-"+r[m[6]]+r[m[7]]+"-"+r[m[8]]+r[m[9]]+"-"+r[m[10]]+r[m[11]]+r[m[12]]+r[m[13]]+r[m[14]]+r[m[15]]}})()})(Ht)),Ht.exports}var xs=Zs();const ur=hr(xs),br=!0,Sr=(e,t)=>[...e].reverse().map(n=>({node:n,parent:t,siblings:e})),eo=(e,{branch:t="branch",children:n="children",id:r="id",index:a="index",next:s="next",parent:d="parent",prev:c="prev",siblings:f="siblings"}={})=>{const m={[t]:{get(){const v=[this];for(;v[0]?.[d];)v.unshift(v[0][d]);return v}},[a]:{get(){return this[f].findIndex(v=>this[r]===v[r])}},[s]:{get(){return this[f][this[a]+1]}},[c]:{get(){return this[f][this[a]-1]}}},h=function*(v){const b=Sr(v);for(;b.length;){const{node:u,parent:p,siblings:o}=b.pop()??{};u&&(u[d]!==p&&Object.defineProperty(u,d,{configurable:br,value:p}),u[f]!==o&&Object.defineProperty(u,f,{configurable:br,value:o}),Object.keys(m).some(l=>!(l in u))&&Object.defineProperties(u,m),yield u,b.push(...Sr(u[n]??[],u)))}},S=pe(()=>[...h(Fs(e))]),$=pe(()=>Object.fromEntries(S.value.map(v=>[v[r],v]))),_=(v,b)=>{const u=$.value[v];if(u){const[p]=S.value,o=u[a],l=u[s],w=o+1,i=u[d],g=u[c],E=o-1,k=u[f];switch(b){case"add":{const j=ur();return k.splice(w,0,{[r]:j}),j}case"addChild":{const j=ur();return Array.isArray(u[n])||(u[n]=[]),u[n].unshift({[r]:j}),j}case"down":o<k.length-1&&k[o]&&k[w]&&([k[o],k[w]]=[k[w],k[o]]);break;case"left":if(i?.[d])return i[f].splice(i[a]+1,0,...k.splice(o,1)),i[r];break;case"remove":{const j=l?.[r]??g?.[r]??i?.[r]??p?.[r];return k.splice(o,1),j}case"right":if(g){const j=g[n]??[],M=g[r];return g[n]=[...j,...k.splice(o,1)],M}break;case"up":o&&k[o]&&k[E]&&([k[E],k[o]]=[k[o],k[E]]);break}}};return{add:v=>_(v,"add"),addChild:v=>_(v,"addChild"),down:v=>_(v,"down"),kvNodes:$,left:v=>_(v,"left"),nodes:S,remove:v=>_(v,"remove"),right:v=>_(v,"right"),up:v=>_(v,"up")}};var He={exports:{}},Gt={},_e={},Oe={},Wt={},Jt={},Bt={},Er;function Rt(){return Er||(Er=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class n extends t{constructor(o){if(super(),!e.IDENTIFIER.test(o))throw new Error("CodeGen: name must be a valid identifier");this.str=o}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=n;class r extends t{constructor(o){super(),this._items=typeof o=="string"?[o]:o}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const o=this._items[0];return o===""||o==='""'}get str(){var o;return(o=this._str)!==null&&o!==void 0?o:this._str=this._items.reduce((l,w)=>`${l}${w}`,"")}get names(){var o;return(o=this._names)!==null&&o!==void 0?o:this._names=this._items.reduce((l,w)=>(w instanceof n&&(l[w.str]=(l[w.str]||0)+1),l),{})}}e._Code=r,e.nil=new r("");function a(p,...o){const l=[p[0]];let w=0;for(;w<o.length;)c(l,o[w]),l.push(p[++w]);return new r(l)}e._=a;const s=new r("+");function d(p,...o){const l=[_(p[0])];let w=0;for(;w<o.length;)l.push(s),c(l,o[w]),l.push(s,_(p[++w]));return f(l),new r(l)}e.str=d;function c(p,o){o instanceof r?p.push(...o._items):o instanceof n?p.push(o):p.push(S(o))}e.addCodeArg=c;function f(p){let o=1;for(;o<p.length-1;){if(p[o]===s){const l=m(p[o-1],p[o+1]);if(l!==void 0){p.splice(o-1,3,l);continue}p[o++]="+"}o++}}function m(p,o){if(o==='""')return p;if(p==='""')return o;if(typeof p=="string")return o instanceof n||p[p.length-1]!=='"'?void 0:typeof o!="string"?`${p.slice(0,-1)}${o}"`:o[0]==='"'?p.slice(0,-1)+o.slice(1):void 0;if(typeof o=="string"&&o[0]==='"'&&!(p instanceof n))return`"${p}${o.slice(1)}`}function h(p,o){return o.emptyStr()?p:p.emptyStr()?o:d`${p}${o}`}e.strConcat=h;function S(p){return typeof p=="number"||typeof p=="boolean"||p===null?p:_(Array.isArray(p)?p.join(","):p)}function $(p){return new r(_(p))}e.stringify=$;function _(p){return JSON.stringify(p).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=_;function v(p){return typeof p=="string"&&e.IDENTIFIER.test(p)?new r(`.${p}`):a`[${p}]`}e.getProperty=v;function b(p){if(typeof p=="string"&&e.IDENTIFIER.test(p))return new r(`${p}`);throw new Error(`CodeGen: invalid export name: ${p}, use explicit $id name mapping`)}e.getEsmExportName=b;function u(p){return new r(p.toString())}e.regexpCode=u})(Bt)),Bt}var Xt={},Pr;function kr(){return Pr||(Pr=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=Rt();class n extends Error{constructor(m){super(`CodeGen: "code" for ${m} not defined`),this.value=m.value}}var r;(function(f){f[f.Started=0]="Started",f[f.Completed=1]="Completed"})(r||(e.UsedValueState=r={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class a{constructor({prefixes:m,parent:h}={}){this._names={},this._prefixes=m,this._parent=h}toName(m){return m instanceof t.Name?m:this.name(m)}name(m){return new t.Name(this._newName(m))}_newName(m){const h=this._names[m]||this._nameGroup(m);return`${m}${h.index++}`}_nameGroup(m){var h,S;if(!((S=(h=this._parent)===null||h===void 0?void 0:h._prefixes)===null||S===void 0)&&S.has(m)||this._prefixes&&!this._prefixes.has(m))throw new Error(`CodeGen: prefix "${m}" is not allowed in this scope`);return this._names[m]={prefix:m,index:0}}}e.Scope=a;class s extends t.Name{constructor(m,h){super(h),this.prefix=m}setValue(m,{property:h,itemIndex:S}){this.value=m,this.scopePath=(0,t._)`.${new t.Name(h)}[${S}]`}}e.ValueScopeName=s;const d=(0,t._)`\n`;class c extends a{constructor(m){super(m),this._values={},this._scope=m.scope,this.opts={...m,_n:m.lines?d:t.nil}}get(){return this._scope}name(m){return new s(m,this._newName(m))}value(m,h){var S;if(h.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const $=this.toName(m),{prefix:_}=$,v=(S=h.key)!==null&&S!==void 0?S:h.ref;let b=this._values[_];if(b){const o=b.get(v);if(o)return o}else b=this._values[_]=new Map;b.set(v,$);const u=this._scope[_]||(this._scope[_]=[]),p=u.length;return u[p]=h.ref,$.setValue(h,{property:_,itemIndex:p}),$}getValue(m,h){const S=this._values[m];if(S)return S.get(h)}scopeRefs(m,h=this._values){return this._reduceValues(h,S=>{if(S.scopePath===void 0)throw new Error(`CodeGen: name "${S}" has no value`);return(0,t._)`${m}${S.scopePath}`})}scopeCode(m=this._values,h,S){return this._reduceValues(m,$=>{if($.value===void 0)throw new Error(`CodeGen: name "${$}" has no value`);return $.value.code},h,S)}_reduceValues(m,h,S={},$){let _=t.nil;for(const v in m){const b=m[v];if(!b)continue;const u=S[v]=S[v]||new Map;b.forEach(p=>{if(u.has(p))return;u.set(p,r.Started);let o=h(p);if(o){const l=this.opts.es5?e.varKinds.var:e.varKinds.const;_=(0,t._)`${_}${l} ${p} = ${o};${this.opts._n}`}else if(o=$?.(p))_=(0,t._)`${_}${o}${this.opts._n}`;else throw new n(p);u.set(p,r.Completed)})}return _}}e.ValueScope=c})(Xt)),Xt}var Or;function J(){return Or||(Or=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=Rt(),n=kr();var r=Rt();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return r.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return r.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return r.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}});var a=kr();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return a.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return a.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return a.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return a.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class s{optimizeNodes(){return this}optimizeNames(y,P){return this}}class d extends s{constructor(y,P,I){super(),this.varKind=y,this.name=P,this.rhs=I}render({es5:y,_n:P}){const I=y?n.varKinds.var:this.varKind,F=this.rhs===void 0?"":` = ${this.rhs}`;return`${I} ${this.name}${F};`+P}optimizeNames(y,P){if(y[this.name.str])return this.rhs&&(this.rhs=H(this.rhs,y,P)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class c extends s{constructor(y,P,I){super(),this.lhs=y,this.rhs=P,this.sideEffects=I}render({_n:y}){return`${this.lhs} = ${this.rhs};`+y}optimizeNames(y,P){if(!(this.lhs instanceof t.Name&&!y[this.lhs.str]&&!this.sideEffects))return this.rhs=H(this.rhs,y,P),this}get names(){const y=this.lhs instanceof t.Name?{}:{...this.lhs.names};return L(y,this.rhs)}}class f extends c{constructor(y,P,I,F){super(y,I,F),this.op=P}render({_n:y}){return`${this.lhs} ${this.op}= ${this.rhs};`+y}}class m extends s{constructor(y){super(),this.label=y,this.names={}}render({_n:y}){return`${this.label}:`+y}}class h extends s{constructor(y){super(),this.label=y,this.names={}}render({_n:y}){return`break${this.label?` ${this.label}`:""};`+y}}class S extends s{constructor(y){super(),this.error=y}render({_n:y}){return`throw ${this.error};`+y}get names(){return this.error.names}}class $ extends s{constructor(y){super(),this.code=y}render({_n:y}){return`${this.code};`+y}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(y,P){return this.code=H(this.code,y,P),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class _ extends s{constructor(y=[]){super(),this.nodes=y}render(y){return this.nodes.reduce((P,I)=>P+I.render(y),"")}optimizeNodes(){const{nodes:y}=this;let P=y.length;for(;P--;){const I=y[P].optimizeNodes();Array.isArray(I)?y.splice(P,1,...I):I?y[P]=I:y.splice(P,1)}return y.length>0?this:void 0}optimizeNames(y,P){const{nodes:I}=this;let F=I.length;for(;F--;){const K=I[F];K.optimizeNames(y,P)||(B(y,K.names),I.splice(F,1))}return I.length>0?this:void 0}get names(){return this.nodes.reduce((y,P)=>U(y,P.names),{})}}class v extends _{render(y){return"{"+y._n+super.render(y)+"}"+y._n}}class b extends _{}class u extends v{}u.kind="else";class p extends v{constructor(y,P){super(P),this.condition=y}render(y){let P=`if(${this.condition})`+super.render(y);return this.else&&(P+="else "+this.else.render(y)),P}optimizeNodes(){super.optimizeNodes();const y=this.condition;if(y===!0)return this.nodes;let P=this.else;if(P){const I=P.optimizeNodes();P=this.else=Array.isArray(I)?new u(I):I}if(P)return y===!1?P instanceof p?P:P.nodes:this.nodes.length?this:new p(ee(y),P instanceof p?[P]:P.nodes);if(!(y===!1||!this.nodes.length))return this}optimizeNames(y,P){var I;if(this.else=(I=this.else)===null||I===void 0?void 0:I.optimizeNames(y,P),!!(super.optimizeNames(y,P)||this.else))return this.condition=H(this.condition,y,P),this}get names(){const y=super.names;return L(y,this.condition),this.else&&U(y,this.else.names),y}}p.kind="if";class o extends v{}o.kind="for";class l extends o{constructor(y){super(),this.iteration=y}render(y){return`for(${this.iteration})`+super.render(y)}optimizeNames(y,P){if(super.optimizeNames(y,P))return this.iteration=H(this.iteration,y,P),this}get names(){return U(super.names,this.iteration.names)}}class w extends o{constructor(y,P,I,F){super(),this.varKind=y,this.name=P,this.from=I,this.to=F}render(y){const P=y.es5?n.varKinds.var:this.varKind,{name:I,from:F,to:K}=this;return`for(${P} ${I}=${F}; ${I}<${K}; ${I}++)`+super.render(y)}get names(){const y=L(super.names,this.from);return L(y,this.to)}}class i extends o{constructor(y,P,I,F){super(),this.loop=y,this.varKind=P,this.name=I,this.iterable=F}render(y){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(y)}optimizeNames(y,P){if(super.optimizeNames(y,P))return this.iterable=H(this.iterable,y,P),this}get names(){return U(super.names,this.iterable.names)}}class g extends v{constructor(y,P,I){super(),this.name=y,this.args=P,this.async=I}render(y){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(y)}}g.kind="func";class E extends _{render(y){return"return "+super.render(y)}}E.kind="return";class k extends v{render(y){let P="try"+super.render(y);return this.catch&&(P+=this.catch.render(y)),this.finally&&(P+=this.finally.render(y)),P}optimizeNodes(){var y,P;return super.optimizeNodes(),(y=this.catch)===null||y===void 0||y.optimizeNodes(),(P=this.finally)===null||P===void 0||P.optimizeNodes(),this}optimizeNames(y,P){var I,F;return super.optimizeNames(y,P),(I=this.catch)===null||I===void 0||I.optimizeNames(y,P),(F=this.finally)===null||F===void 0||F.optimizeNames(y,P),this}get names(){const y=super.names;return this.catch&&U(y,this.catch.names),this.finally&&U(y,this.finally.names),y}}class j extends v{constructor(y){super(),this.error=y}render(y){return`catch(${this.error})`+super.render(y)}}j.kind="catch";class M extends v{render(y){return"finally"+super.render(y)}}M.kind="finally";class A{constructor(y,P={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...P,_n:P.lines?`
2
+ `:""},this._extScope=y,this._scope=new n.Scope({parent:y}),this._nodes=[new b]}toString(){return this._root.render(this.opts)}name(y){return this._scope.name(y)}scopeName(y){return this._extScope.name(y)}scopeValue(y,P){const I=this._extScope.value(y,P);return(this._values[I.prefix]||(this._values[I.prefix]=new Set)).add(I),I}getScopeValue(y,P){return this._extScope.getValue(y,P)}scopeRefs(y){return this._extScope.scopeRefs(y,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(y,P,I,F){const K=this._scope.toName(P);return I!==void 0&&F&&(this._constants[K.str]=I),this._leafNode(new d(y,K,I)),K}const(y,P,I){return this._def(n.varKinds.const,y,P,I)}let(y,P,I){return this._def(n.varKinds.let,y,P,I)}var(y,P,I){return this._def(n.varKinds.var,y,P,I)}assign(y,P,I){return this._leafNode(new c(y,P,I))}add(y,P){return this._leafNode(new f(y,e.operators.ADD,P))}code(y){return typeof y=="function"?y():y!==t.nil&&this._leafNode(new $(y)),this}object(...y){const P=["{"];for(const[I,F]of y)P.length>1&&P.push(","),P.push(I),(I!==F||this.opts.es5)&&(P.push(":"),(0,t.addCodeArg)(P,F));return P.push("}"),new t._Code(P)}if(y,P,I){if(this._blockNode(new p(y)),P&&I)this.code(P).else().code(I).endIf();else if(P)this.code(P).endIf();else if(I)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(y){return this._elseNode(new p(y))}else(){return this._elseNode(new u)}endIf(){return this._endBlockNode(p,u)}_for(y,P){return this._blockNode(y),P&&this.code(P).endFor(),this}for(y,P){return this._for(new l(y),P)}forRange(y,P,I,F,K=this.opts.es5?n.varKinds.var:n.varKinds.let){const Q=this._scope.toName(y);return this._for(new w(K,Q,P,I),()=>F(Q))}forOf(y,P,I,F=n.varKinds.const){const K=this._scope.toName(y);if(this.opts.es5){const Q=P instanceof t.Name?P:this.var("_arr",P);return this.forRange("_i",0,(0,t._)`${Q}.length`,X=>{this.var(K,(0,t._)`${Q}[${X}]`),I(K)})}return this._for(new i("of",F,K,P),()=>I(K))}forIn(y,P,I,F=this.opts.es5?n.varKinds.var:n.varKinds.const){if(this.opts.ownProperties)return this.forOf(y,(0,t._)`Object.keys(${P})`,I);const K=this._scope.toName(y);return this._for(new i("in",F,K,P),()=>I(K))}endFor(){return this._endBlockNode(o)}label(y){return this._leafNode(new m(y))}break(y){return this._leafNode(new h(y))}return(y){const P=new E;if(this._blockNode(P),this.code(y),P.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(E)}try(y,P,I){if(!P&&!I)throw new Error('CodeGen: "try" without "catch" and "finally"');const F=new k;if(this._blockNode(F),this.code(y),P){const K=this.name("e");this._currNode=F.catch=new j(K),P(K)}return I&&(this._currNode=F.finally=new M,this.code(I)),this._endBlockNode(j,M)}throw(y){return this._leafNode(new S(y))}block(y,P){return this._blockStarts.push(this._nodes.length),y&&this.code(y).endBlock(P),this}endBlock(y){const P=this._blockStarts.pop();if(P===void 0)throw new Error("CodeGen: not in self-balancing block");const I=this._nodes.length-P;if(I<0||y!==void 0&&I!==y)throw new Error(`CodeGen: wrong number of nodes: ${I} vs ${y} expected`);return this._nodes.length=P,this}func(y,P=t.nil,I,F){return this._blockNode(new g(y,P,I)),F&&this.code(F).endFunc(),this}endFunc(){return this._endBlockNode(g)}optimize(y=1){for(;y-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(y){return this._currNode.nodes.push(y),this}_blockNode(y){this._currNode.nodes.push(y),this._nodes.push(y)}_endBlockNode(y,P){const I=this._currNode;if(I instanceof y||P&&I instanceof P)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${P?`${y.kind}/${P.kind}`:y.kind}"`)}_elseNode(y){const P=this._currNode;if(!(P instanceof p))throw new Error('CodeGen: "else" without "if"');return this._currNode=P.else=y,this}get _root(){return this._nodes[0]}get _currNode(){const y=this._nodes;return y[y.length-1]}set _currNode(y){const P=this._nodes;P[P.length-1]=y}}e.CodeGen=A;function U(T,y){for(const P in y)T[P]=(T[P]||0)+(y[P]||0);return T}function L(T,y){return y instanceof t._CodeOrName?U(T,y.names):T}function H(T,y,P){if(T instanceof t.Name)return I(T);if(!F(T))return T;return new t._Code(T._items.reduce((K,Q)=>(Q instanceof t.Name&&(Q=I(Q)),Q instanceof t._Code?K.push(...Q._items):K.push(Q),K),[]));function I(K){const Q=P[K.str];return Q===void 0||y[K.str]!==1?K:(delete y[K.str],Q)}function F(K){return K instanceof t._Code&&K._items.some(Q=>Q instanceof t.Name&&y[Q.str]===1&&P[Q.str]!==void 0)}}function B(T,y){for(const P in y)T[P]=(T[P]||0)-(y[P]||0)}function ee(T){return typeof T=="boolean"||typeof T=="number"||T===null?!T:(0,t._)`!${C(T)}`}e.not=ee;const te=R(e.operators.AND);function Z(...T){return T.reduce(te)}e.and=Z;const ae=R(e.operators.OR);function D(...T){return T.reduce(ae)}e.or=D;function R(T){return(y,P)=>y===t.nil?P:P===t.nil?y:(0,t._)`${C(y)} ${T} ${C(P)}`}function C(T){return T instanceof t.Name?T:(0,t._)`(${T})`}})(Jt)),Jt}var G={},jr;function Y(){if(jr)return G;jr=1,Object.defineProperty(G,"__esModule",{value:!0}),G.checkStrictMode=G.getErrorPath=G.Type=G.useFunc=G.setEvaluated=G.evaluatedPropsToName=G.mergeEvaluated=G.eachItem=G.unescapeJsonPointer=G.escapeJsonPointer=G.escapeFragment=G.unescapeFragment=G.schemaRefOrVal=G.schemaHasRulesButRef=G.schemaHasRules=G.checkUnknownRules=G.alwaysValidSchema=G.toHash=void 0;const e=J(),t=Rt();function n(i){const g={};for(const E of i)g[E]=!0;return g}G.toHash=n;function r(i,g){return typeof g=="boolean"?g:Object.keys(g).length===0?!0:(a(i,g),!s(g,i.self.RULES.all))}G.alwaysValidSchema=r;function a(i,g=i.schema){const{opts:E,self:k}=i;if(!E.strictSchema||typeof g=="boolean")return;const j=k.RULES.keywords;for(const M in g)j[M]||w(i,`unknown keyword: "${M}"`)}G.checkUnknownRules=a;function s(i,g){if(typeof i=="boolean")return!i;for(const E in i)if(g[E])return!0;return!1}G.schemaHasRules=s;function d(i,g){if(typeof i=="boolean")return!i;for(const E in i)if(E!=="$ref"&&g.all[E])return!0;return!1}G.schemaHasRulesButRef=d;function c({topSchemaRef:i,schemaPath:g},E,k,j){if(!j){if(typeof E=="number"||typeof E=="boolean")return E;if(typeof E=="string")return(0,e._)`${E}`}return(0,e._)`${i}${g}${(0,e.getProperty)(k)}`}G.schemaRefOrVal=c;function f(i){return S(decodeURIComponent(i))}G.unescapeFragment=f;function m(i){return encodeURIComponent(h(i))}G.escapeFragment=m;function h(i){return typeof i=="number"?`${i}`:i.replace(/~/g,"~0").replace(/\//g,"~1")}G.escapeJsonPointer=h;function S(i){return i.replace(/~1/g,"/").replace(/~0/g,"~")}G.unescapeJsonPointer=S;function $(i,g){if(Array.isArray(i))for(const E of i)g(E);else g(i)}G.eachItem=$;function _({mergeNames:i,mergeToName:g,mergeValues:E,resultToName:k}){return(j,M,A,U)=>{const L=A===void 0?M:A instanceof e.Name?(M instanceof e.Name?i(j,M,A):g(j,M,A),A):M instanceof e.Name?(g(j,A,M),M):E(M,A);return U===e.Name&&!(L instanceof e.Name)?k(j,L):L}}G.mergeEvaluated={props:_({mergeNames:(i,g,E)=>i.if((0,e._)`${E} !== true && ${g} !== undefined`,()=>{i.if((0,e._)`${g} === true`,()=>i.assign(E,!0),()=>i.assign(E,(0,e._)`${E} || {}`).code((0,e._)`Object.assign(${E}, ${g})`))}),mergeToName:(i,g,E)=>i.if((0,e._)`${E} !== true`,()=>{g===!0?i.assign(E,!0):(i.assign(E,(0,e._)`${E} || {}`),b(i,E,g))}),mergeValues:(i,g)=>i===!0?!0:{...i,...g},resultToName:v}),items:_({mergeNames:(i,g,E)=>i.if((0,e._)`${E} !== true && ${g} !== undefined`,()=>i.assign(E,(0,e._)`${g} === true ? true : ${E} > ${g} ? ${E} : ${g}`)),mergeToName:(i,g,E)=>i.if((0,e._)`${E} !== true`,()=>i.assign(E,g===!0?!0:(0,e._)`${E} > ${g} ? ${E} : ${g}`)),mergeValues:(i,g)=>i===!0?!0:Math.max(i,g),resultToName:(i,g)=>i.var("items",g)})};function v(i,g){if(g===!0)return i.var("props",!0);const E=i.var("props",(0,e._)`{}`);return g!==void 0&&b(i,E,g),E}G.evaluatedPropsToName=v;function b(i,g,E){Object.keys(E).forEach(k=>i.assign((0,e._)`${g}${(0,e.getProperty)(k)}`,!0))}G.setEvaluated=b;const u={};function p(i,g){return i.scopeValue("func",{ref:g,code:u[g.code]||(u[g.code]=new t._Code(g.code))})}G.useFunc=p;var o;(function(i){i[i.Num=0]="Num",i[i.Str=1]="Str"})(o||(G.Type=o={}));function l(i,g,E){if(i instanceof e.Name){const k=g===o.Num;return E?k?(0,e._)`"[" + ${i} + "]"`:(0,e._)`"['" + ${i} + "']"`:k?(0,e._)`"/" + ${i}`:(0,e._)`"/" + ${i}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return E?(0,e.getProperty)(i).toString():"/"+h(i)}G.getErrorPath=l;function w(i,g,E=i.opts.strictSchema){if(E){if(g=`strict mode: ${g}`,E===!0)throw new Error(g);i.self.logger.warn(g)}}return G.checkStrictMode=w,G}var Ge={},Rr;function ke(){if(Rr)return Ge;Rr=1,Object.defineProperty(Ge,"__esModule",{value:!0});const e=J(),t={data:new e.Name("data"),valCxt:new e.Name("valCxt"),instancePath:new e.Name("instancePath"),parentData:new e.Name("parentData"),parentDataProperty:new e.Name("parentDataProperty"),rootData:new e.Name("rootData"),dynamicAnchors:new e.Name("dynamicAnchors"),vErrors:new e.Name("vErrors"),errors:new e.Name("errors"),this:new e.Name("this"),self:new e.Name("self"),scope:new e.Name("scope"),json:new e.Name("json"),jsonPos:new e.Name("jsonPos"),jsonLen:new e.Name("jsonLen"),jsonPart:new e.Name("jsonPart")};return Ge.default=t,Ge}var Nr;function qt(){return Nr||(Nr=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=J(),n=Y(),r=ke();e.keywordError={message:({keyword:u})=>(0,t.str)`must pass "${u}" keyword validation`},e.keyword$DataError={message:({keyword:u,schemaType:p})=>p?(0,t.str)`"${u}" keyword must be ${p} ($data)`:(0,t.str)`"${u}" keyword is invalid ($data)`};function a(u,p=e.keywordError,o,l){const{it:w}=u,{gen:i,compositeRule:g,allErrors:E}=w,k=S(u,p,o);l??(g||E)?f(i,k):m(w,(0,t._)`[${k}]`)}e.reportError=a;function s(u,p=e.keywordError,o){const{it:l}=u,{gen:w,compositeRule:i,allErrors:g}=l,E=S(u,p,o);f(w,E),i||g||m(l,r.default.vErrors)}e.reportExtraError=s;function d(u,p){u.assign(r.default.errors,p),u.if((0,t._)`${r.default.vErrors} !== null`,()=>u.if(p,()=>u.assign((0,t._)`${r.default.vErrors}.length`,p),()=>u.assign(r.default.vErrors,null)))}e.resetErrorsCount=d;function c({gen:u,keyword:p,schemaValue:o,data:l,errsCount:w,it:i}){if(w===void 0)throw new Error("ajv implementation error");const g=u.name("err");u.forRange("i",w,r.default.errors,E=>{u.const(g,(0,t._)`${r.default.vErrors}[${E}]`),u.if((0,t._)`${g}.instancePath === undefined`,()=>u.assign((0,t._)`${g}.instancePath`,(0,t.strConcat)(r.default.instancePath,i.errorPath))),u.assign((0,t._)`${g}.schemaPath`,(0,t.str)`${i.errSchemaPath}/${p}`),i.opts.verbose&&(u.assign((0,t._)`${g}.schema`,o),u.assign((0,t._)`${g}.data`,l))})}e.extendErrors=c;function f(u,p){const o=u.const("err",p);u.if((0,t._)`${r.default.vErrors} === null`,()=>u.assign(r.default.vErrors,(0,t._)`[${o}]`),(0,t._)`${r.default.vErrors}.push(${o})`),u.code((0,t._)`${r.default.errors}++`)}function m(u,p){const{gen:o,validateName:l,schemaEnv:w}=u;w.$async?o.throw((0,t._)`new ${u.ValidationError}(${p})`):(o.assign((0,t._)`${l}.errors`,p),o.return(!1))}const h={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function S(u,p,o){const{createErrors:l}=u.it;return l===!1?(0,t._)`{}`:$(u,p,o)}function $(u,p,o={}){const{gen:l,it:w}=u,i=[_(w,o),v(u,o)];return b(u,p,i),l.object(...i)}function _({errorPath:u},{instancePath:p}){const o=p?(0,t.str)`${u}${(0,n.getErrorPath)(p,n.Type.Str)}`:u;return[r.default.instancePath,(0,t.strConcat)(r.default.instancePath,o)]}function v({keyword:u,it:{errSchemaPath:p}},{schemaPath:o,parentSchema:l}){let w=l?p:(0,t.str)`${p}/${u}`;return o&&(w=(0,t.str)`${w}${(0,n.getErrorPath)(o,n.Type.Str)}`),[h.schemaPath,w]}function b(u,{params:p,message:o},l){const{keyword:w,data:i,schemaValue:g,it:E}=u,{opts:k,propertyName:j,topSchemaRef:M,schemaPath:A}=E;l.push([h.keyword,w],[h.params,typeof p=="function"?p(u):p||(0,t._)`{}`]),k.messages&&l.push([h.message,typeof o=="function"?o(u):o]),k.verbose&&l.push([h.schema,g],[h.parentSchema,(0,t._)`${M}${A}`],[r.default.data,i]),j&&l.push([h.propertyName,j])}})(Wt)),Wt}var Tr;function to(){if(Tr)return Oe;Tr=1,Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.boolOrEmptySchema=Oe.topBoolOrEmptySchema=void 0;const e=qt(),t=J(),n=ke(),r={message:"boolean schema is false"};function a(c){const{gen:f,schema:m,validateName:h}=c;m===!1?d(c,!1):typeof m=="object"&&m.$async===!0?f.return(n.default.data):(f.assign((0,t._)`${h}.errors`,null),f.return(!0))}Oe.topBoolOrEmptySchema=a;function s(c,f){const{gen:m,schema:h}=c;h===!1?(m.var(f,!1),d(c)):m.var(f,!0)}Oe.boolOrEmptySchema=s;function d(c,f){const{gen:m,data:h}=c,S={gen:m,keyword:"false schema",data:h,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:c};(0,e.reportError)(S,r,void 0,f)}return Oe}var oe={},je={},Ir;function as(){if(Ir)return je;Ir=1,Object.defineProperty(je,"__esModule",{value:!0}),je.getRules=je.isJSONType=void 0;const e=["string","number","integer","boolean","null","object","array"],t=new Set(e);function n(a){return typeof a=="string"&&t.has(a)}je.isJSONType=n;function r(){const a={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...a,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},a.number,a.string,a.array,a.object],post:{rules:[]},all:{},keywords:{}}}return je.getRules=r,je}var $e={},qr;function us(){if(qr)return $e;qr=1,Object.defineProperty($e,"__esModule",{value:!0}),$e.shouldUseRule=$e.shouldUseGroup=$e.schemaHasRulesForType=void 0;function e({schema:r,self:a},s){const d=a.RULES.types[s];return d&&d!==!0&&t(r,d)}$e.schemaHasRulesForType=e;function t(r,a){return a.rules.some(s=>n(r,s))}$e.shouldUseGroup=t;function n(r,a){var s;return r[a.keyword]!==void 0||((s=a.definition.implements)===null||s===void 0?void 0:s.some(d=>r[d]!==void 0))}return $e.shouldUseRule=n,$e}var Cr;function Nt(){if(Cr)return oe;Cr=1,Object.defineProperty(oe,"__esModule",{value:!0}),oe.reportTypeError=oe.checkDataTypes=oe.checkDataType=oe.coerceAndCheckDataType=oe.getJSONTypes=oe.getSchemaTypes=oe.DataType=void 0;const e=as(),t=us(),n=qt(),r=J(),a=Y();var s;(function(o){o[o.Correct=0]="Correct",o[o.Wrong=1]="Wrong"})(s||(oe.DataType=s={}));function d(o){const l=c(o.type);if(l.includes("null")){if(o.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!l.length&&o.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');o.nullable===!0&&l.push("null")}return l}oe.getSchemaTypes=d;function c(o){const l=Array.isArray(o)?o:o?[o]:[];if(l.every(e.isJSONType))return l;throw new Error("type must be JSONType or JSONType[]: "+l.join(","))}oe.getJSONTypes=c;function f(o,l){const{gen:w,data:i,opts:g}=o,E=h(l,g.coerceTypes),k=l.length>0&&!(E.length===0&&l.length===1&&(0,t.schemaHasRulesForType)(o,l[0]));if(k){const j=v(l,i,g.strictNumbers,s.Wrong);w.if(j,()=>{E.length?S(o,l,E):u(o)})}return k}oe.coerceAndCheckDataType=f;const m=new Set(["string","number","integer","boolean","null"]);function h(o,l){return l?o.filter(w=>m.has(w)||l==="array"&&w==="array"):[]}function S(o,l,w){const{gen:i,data:g,opts:E}=o,k=i.let("dataType",(0,r._)`typeof ${g}`),j=i.let("coerced",(0,r._)`undefined`);E.coerceTypes==="array"&&i.if((0,r._)`${k} == 'object' && Array.isArray(${g}) && ${g}.length == 1`,()=>i.assign(g,(0,r._)`${g}[0]`).assign(k,(0,r._)`typeof ${g}`).if(v(l,g,E.strictNumbers),()=>i.assign(j,g))),i.if((0,r._)`${j} !== undefined`);for(const A of w)(m.has(A)||A==="array"&&E.coerceTypes==="array")&&M(A);i.else(),u(o),i.endIf(),i.if((0,r._)`${j} !== undefined`,()=>{i.assign(g,j),$(o,j)});function M(A){switch(A){case"string":i.elseIf((0,r._)`${k} == "number" || ${k} == "boolean"`).assign(j,(0,r._)`"" + ${g}`).elseIf((0,r._)`${g} === null`).assign(j,(0,r._)`""`);return;case"number":i.elseIf((0,r._)`${k} == "boolean" || ${g} === null
3
+ || (${k} == "string" && ${g} && ${g} == +${g})`).assign(j,(0,r._)`+${g}`);return;case"integer":i.elseIf((0,r._)`${k} === "boolean" || ${g} === null
4
+ || (${k} === "string" && ${g} && ${g} == +${g} && !(${g} % 1))`).assign(j,(0,r._)`+${g}`);return;case"boolean":i.elseIf((0,r._)`${g} === "false" || ${g} === 0 || ${g} === null`).assign(j,!1).elseIf((0,r._)`${g} === "true" || ${g} === 1`).assign(j,!0);return;case"null":i.elseIf((0,r._)`${g} === "" || ${g} === 0 || ${g} === false`),i.assign(j,null);return;case"array":i.elseIf((0,r._)`${k} === "string" || ${k} === "number"
5
+ || ${k} === "boolean" || ${g} === null`).assign(j,(0,r._)`[${g}]`)}}}function $({gen:o,parentData:l,parentDataProperty:w},i){o.if((0,r._)`${l} !== undefined`,()=>o.assign((0,r._)`${l}[${w}]`,i))}function _(o,l,w,i=s.Correct){const g=i===s.Correct?r.operators.EQ:r.operators.NEQ;let E;switch(o){case"null":return(0,r._)`${l} ${g} null`;case"array":E=(0,r._)`Array.isArray(${l})`;break;case"object":E=(0,r._)`${l} && typeof ${l} == "object" && !Array.isArray(${l})`;break;case"integer":E=k((0,r._)`!(${l} % 1) && !isNaN(${l})`);break;case"number":E=k();break;default:return(0,r._)`typeof ${l} ${g} ${o}`}return i===s.Correct?E:(0,r.not)(E);function k(j=r.nil){return(0,r.and)((0,r._)`typeof ${l} == "number"`,j,w?(0,r._)`isFinite(${l})`:r.nil)}}oe.checkDataType=_;function v(o,l,w,i){if(o.length===1)return _(o[0],l,w,i);let g;const E=(0,a.toHash)(o);if(E.array&&E.object){const k=(0,r._)`typeof ${l} != "object"`;g=E.null?k:(0,r._)`!${l} || ${k}`,delete E.null,delete E.array,delete E.object}else g=r.nil;E.number&&delete E.integer;for(const k in E)g=(0,r.and)(g,_(k,l,w,i));return g}oe.checkDataTypes=v;const b={message:({schema:o})=>`must be ${o}`,params:({schema:o,schemaValue:l})=>typeof o=="string"?(0,r._)`{type: ${o}}`:(0,r._)`{type: ${l}}`};function u(o){const l=p(o);(0,n.reportError)(l,b)}oe.reportTypeError=u;function p(o){const{gen:l,data:w,schema:i}=o,g=(0,a.schemaRefOrVal)(o,i,"type");return{gen:l,keyword:"type",data:w,schema:i.type,schemaCode:g,schemaValue:g,parentSchema:i,params:{},it:o}}return oe}var Ve={},Mr;function ro(){if(Mr)return Ve;Mr=1,Object.defineProperty(Ve,"__esModule",{value:!0}),Ve.assignDefaults=void 0;const e=J(),t=Y();function n(a,s){const{properties:d,items:c}=a.schema;if(s==="object"&&d)for(const f in d)r(a,f,d[f].default);else s==="array"&&Array.isArray(c)&&c.forEach((f,m)=>r(a,m,f.default))}Ve.assignDefaults=n;function r(a,s,d){const{gen:c,compositeRule:f,data:m,opts:h}=a;if(d===void 0)return;const S=(0,e._)`${m}${(0,e.getProperty)(s)}`;if(f){(0,t.checkStrictMode)(a,`default is ignored for: ${S}`);return}let $=(0,e._)`${S} === undefined`;h.useDefaults==="empty"&&($=(0,e._)`${$} || ${S} === null || ${S} === ""`),c.if($,(0,e._)`${S} = ${(0,e.stringify)(d)}`)}return Ve}var ye={},x={},Dr;function ve(){if(Dr)return x;Dr=1,Object.defineProperty(x,"__esModule",{value:!0}),x.validateUnion=x.validateArray=x.usePattern=x.callValidateCode=x.schemaProperties=x.allSchemaProperties=x.noPropertyInData=x.propertyInData=x.isOwnProperty=x.hasPropFunc=x.reportMissingProp=x.checkMissingProp=x.checkReportMissingProp=void 0;const e=J(),t=Y(),n=ke(),r=Y();function a(o,l){const{gen:w,data:i,it:g}=o;w.if(h(w,i,l,g.opts.ownProperties),()=>{o.setParams({missingProperty:(0,e._)`${l}`},!0),o.error()})}x.checkReportMissingProp=a;function s({gen:o,data:l,it:{opts:w}},i,g){return(0,e.or)(...i.map(E=>(0,e.and)(h(o,l,E,w.ownProperties),(0,e._)`${g} = ${E}`)))}x.checkMissingProp=s;function d(o,l){o.setParams({missingProperty:l},!0),o.error()}x.reportMissingProp=d;function c(o){return o.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}x.hasPropFunc=c;function f(o,l,w){return(0,e._)`${c(o)}.call(${l}, ${w})`}x.isOwnProperty=f;function m(o,l,w,i){const g=(0,e._)`${l}${(0,e.getProperty)(w)} !== undefined`;return i?(0,e._)`${g} && ${f(o,l,w)}`:g}x.propertyInData=m;function h(o,l,w,i){const g=(0,e._)`${l}${(0,e.getProperty)(w)} === undefined`;return i?(0,e.or)(g,(0,e.not)(f(o,l,w))):g}x.noPropertyInData=h;function S(o){return o?Object.keys(o).filter(l=>l!=="__proto__"):[]}x.allSchemaProperties=S;function $(o,l){return S(l).filter(w=>!(0,t.alwaysValidSchema)(o,l[w]))}x.schemaProperties=$;function _({schemaCode:o,data:l,it:{gen:w,topSchemaRef:i,schemaPath:g,errorPath:E},it:k},j,M,A){const U=A?(0,e._)`${o}, ${l}, ${i}${g}`:l,L=[[n.default.instancePath,(0,e.strConcat)(n.default.instancePath,E)],[n.default.parentData,k.parentData],[n.default.parentDataProperty,k.parentDataProperty],[n.default.rootData,n.default.rootData]];k.opts.dynamicRef&&L.push([n.default.dynamicAnchors,n.default.dynamicAnchors]);const H=(0,e._)`${U}, ${w.object(...L)}`;return M!==e.nil?(0,e._)`${j}.call(${M}, ${H})`:(0,e._)`${j}(${H})`}x.callValidateCode=_;const v=(0,e._)`new RegExp`;function b({gen:o,it:{opts:l}},w){const i=l.unicodeRegExp?"u":"",{regExp:g}=l.code,E=g(w,i);return o.scopeValue("pattern",{key:E.toString(),ref:E,code:(0,e._)`${g.code==="new RegExp"?v:(0,r.useFunc)(o,g)}(${w}, ${i})`})}x.usePattern=b;function u(o){const{gen:l,data:w,keyword:i,it:g}=o,E=l.name("valid");if(g.allErrors){const j=l.let("valid",!0);return k(()=>l.assign(j,!1)),j}return l.var(E,!0),k(()=>l.break()),E;function k(j){const M=l.const("len",(0,e._)`${w}.length`);l.forRange("i",0,M,A=>{o.subschema({keyword:i,dataProp:A,dataPropType:t.Type.Num},E),l.if((0,e.not)(E),j)})}}x.validateArray=u;function p(o){const{gen:l,schema:w,keyword:i,it:g}=o;if(!Array.isArray(w))throw new Error("ajv implementation error");if(w.some(M=>(0,t.alwaysValidSchema)(g,M))&&!g.opts.unevaluated)return;const k=l.let("valid",!1),j=l.name("_valid");l.block(()=>w.forEach((M,A)=>{const U=o.subschema({keyword:i,schemaProp:A,compositeRule:!0},j);l.assign(k,(0,e._)`${k} || ${j}`),o.mergeValidEvaluated(U,j)||l.if((0,e.not)(k))})),o.result(k,()=>o.reset(),()=>o.error(!0))}return x.validateUnion=p,x}var Ar;function no(){if(Ar)return ye;Ar=1,Object.defineProperty(ye,"__esModule",{value:!0}),ye.validateKeywordUsage=ye.validSchemaType=ye.funcKeywordCode=ye.macroKeywordCode=void 0;const e=J(),t=ke(),n=ve(),r=qt();function a($,_){const{gen:v,keyword:b,schema:u,parentSchema:p,it:o}=$,l=_.macro.call(o.self,u,p,o),w=m(v,b,l);o.opts.validateSchema!==!1&&o.self.validateSchema(l,!0);const i=v.name("valid");$.subschema({schema:l,schemaPath:e.nil,errSchemaPath:`${o.errSchemaPath}/${b}`,topSchemaRef:w,compositeRule:!0},i),$.pass(i,()=>$.error(!0))}ye.macroKeywordCode=a;function s($,_){var v;const{gen:b,keyword:u,schema:p,parentSchema:o,$data:l,it:w}=$;f(w,_);const i=!l&&_.compile?_.compile.call(w.self,p,o,w):_.validate,g=m(b,u,i),E=b.let("valid");$.block$data(E,k),$.ok((v=_.valid)!==null&&v!==void 0?v:E);function k(){if(_.errors===!1)A(),_.modifying&&d($),U(()=>$.error());else{const L=_.async?j():M();_.modifying&&d($),U(()=>c($,L))}}function j(){const L=b.let("ruleErrs",null);return b.try(()=>A((0,e._)`await `),H=>b.assign(E,!1).if((0,e._)`${H} instanceof ${w.ValidationError}`,()=>b.assign(L,(0,e._)`${H}.errors`),()=>b.throw(H))),L}function M(){const L=(0,e._)`${g}.errors`;return b.assign(L,null),A(e.nil),L}function A(L=_.async?(0,e._)`await `:e.nil){const H=w.opts.passContext?t.default.this:t.default.self,B=!("compile"in _&&!l||_.schema===!1);b.assign(E,(0,e._)`${L}${(0,n.callValidateCode)($,g,H,B)}`,_.modifying)}function U(L){var H;b.if((0,e.not)((H=_.valid)!==null&&H!==void 0?H:E),L)}}ye.funcKeywordCode=s;function d($){const{gen:_,data:v,it:b}=$;_.if(b.parentData,()=>_.assign(v,(0,e._)`${b.parentData}[${b.parentDataProperty}]`))}function c($,_){const{gen:v}=$;v.if((0,e._)`Array.isArray(${_})`,()=>{v.assign(t.default.vErrors,(0,e._)`${t.default.vErrors} === null ? ${_} : ${t.default.vErrors}.concat(${_})`).assign(t.default.errors,(0,e._)`${t.default.vErrors}.length`),(0,r.extendErrors)($)},()=>$.error())}function f({schemaEnv:$},_){if(_.async&&!$.$async)throw new Error("async keyword in sync schema")}function m($,_,v){if(v===void 0)throw new Error(`keyword "${_}" failed to compile`);return $.scopeValue("keyword",typeof v=="function"?{ref:v}:{ref:v,code:(0,e.stringify)(v)})}function h($,_,v=!1){return!_.length||_.some(b=>b==="array"?Array.isArray($):b==="object"?$&&typeof $=="object"&&!Array.isArray($):typeof $==b||v&&typeof $>"u")}ye.validSchemaType=h;function S({schema:$,opts:_,self:v,errSchemaPath:b},u,p){if(Array.isArray(u.keyword)?!u.keyword.includes(p):u.keyword!==p)throw new Error("ajv implementation error");const o=u.dependencies;if(o?.some(l=>!Object.prototype.hasOwnProperty.call($,l)))throw new Error(`parent schema must have dependencies of ${p}: ${o.join(",")}`);if(u.validateSchema&&!u.validateSchema($[p])){const w=`keyword "${p}" value is invalid at path "${b}": `+v.errorsText(u.validateSchema.errors);if(_.validateSchema==="log")v.logger.error(w);else throw new Error(w)}}return ye.validateKeywordUsage=S,ye}var we={},Vr;function so(){if(Vr)return we;Vr=1,Object.defineProperty(we,"__esModule",{value:!0}),we.extendSubschemaMode=we.extendSubschemaData=we.getSubschema=void 0;const e=J(),t=Y();function n(s,{keyword:d,schemaProp:c,schema:f,schemaPath:m,errSchemaPath:h,topSchemaRef:S}){if(d!==void 0&&f!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(d!==void 0){const $=s.schema[d];return c===void 0?{schema:$,schemaPath:(0,e._)`${s.schemaPath}${(0,e.getProperty)(d)}`,errSchemaPath:`${s.errSchemaPath}/${d}`}:{schema:$[c],schemaPath:(0,e._)`${s.schemaPath}${(0,e.getProperty)(d)}${(0,e.getProperty)(c)}`,errSchemaPath:`${s.errSchemaPath}/${d}/${(0,t.escapeFragment)(c)}`}}if(f!==void 0){if(m===void 0||h===void 0||S===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:f,schemaPath:m,topSchemaRef:S,errSchemaPath:h}}throw new Error('either "keyword" or "schema" must be passed')}we.getSubschema=n;function r(s,d,{dataProp:c,dataPropType:f,data:m,dataTypes:h,propertyName:S}){if(m!==void 0&&c!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:$}=d;if(c!==void 0){const{errorPath:v,dataPathArr:b,opts:u}=d,p=$.let("data",(0,e._)`${d.data}${(0,e.getProperty)(c)}`,!0);_(p),s.errorPath=(0,e.str)`${v}${(0,t.getErrorPath)(c,f,u.jsPropertySyntax)}`,s.parentDataProperty=(0,e._)`${c}`,s.dataPathArr=[...b,s.parentDataProperty]}if(m!==void 0){const v=m instanceof e.Name?m:$.let("data",m,!0);_(v),S!==void 0&&(s.propertyName=S)}h&&(s.dataTypes=h);function _(v){s.data=v,s.dataLevel=d.dataLevel+1,s.dataTypes=[],d.definedProperties=new Set,s.parentData=d.data,s.dataNames=[...d.dataNames,v]}}we.extendSubschemaData=r;function a(s,{jtdDiscriminator:d,jtdMetadata:c,compositeRule:f,createErrors:m,allErrors:h}){f!==void 0&&(s.compositeRule=f),m!==void 0&&(s.createErrors=m),h!==void 0&&(s.allErrors=h),s.jtdDiscriminator=d,s.jtdMetadata=c}return we.extendSubschemaMode=a,we}var ue={},Yt,Lr;function cs(){return Lr||(Lr=1,Yt=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,a,s;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(a=r;a--!==0;)if(!e(t[a],n[a]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(s=Object.keys(t),r=s.length,r!==Object.keys(n).length)return!1;for(a=r;a--!==0;)if(!Object.prototype.hasOwnProperty.call(n,s[a]))return!1;for(a=r;a--!==0;){var d=s[a];if(!e(t[d],n[d]))return!1}return!0}return t!==t&&n!==n}),Yt}var Qt={exports:{}},Fr;function oo(){if(Fr)return Qt.exports;Fr=1;var e=Qt.exports=function(r,a,s){typeof a=="function"&&(s=a,a={}),s=a.cb||s;var d=typeof s=="function"?s:s.pre||function(){},c=s.post||function(){};t(a,d,c,r,"",r)};e.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},e.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},e.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},e.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function t(r,a,s,d,c,f,m,h,S,$){if(d&&typeof d=="object"&&!Array.isArray(d)){a(d,c,f,m,h,S,$);for(var _ in d){var v=d[_];if(Array.isArray(v)){if(_ in e.arrayKeywords)for(var b=0;b<v.length;b++)t(r,a,s,v[b],c+"/"+_+"/"+b,f,c,_,d,b)}else if(_ in e.propsKeywords){if(v&&typeof v=="object")for(var u in v)t(r,a,s,v[u],c+"/"+_+"/"+n(u),f,c,_,d,u)}else(_ in e.keywords||r.allKeys&&!(_ in e.skipKeywords))&&t(r,a,s,v,c+"/"+_,f,c,_,d)}s(d,c,f,m,h,S,$)}}function n(r){return r.replace(/~/g,"~0").replace(/\//g,"~1")}return Qt.exports}var Ur;function Ct(){if(Ur)return ue;Ur=1,Object.defineProperty(ue,"__esModule",{value:!0}),ue.getSchemaRefs=ue.resolveUrl=ue.normalizeId=ue._getFullPath=ue.getFullPath=ue.inlineRef=void 0;const e=Y(),t=cs(),n=oo(),r=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function a(b,u=!0){return typeof b=="boolean"?!0:u===!0?!d(b):u?c(b)<=u:!1}ue.inlineRef=a;const s=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function d(b){for(const u in b){if(s.has(u))return!0;const p=b[u];if(Array.isArray(p)&&p.some(d)||typeof p=="object"&&d(p))return!0}return!1}function c(b){let u=0;for(const p in b){if(p==="$ref")return 1/0;if(u++,!r.has(p)&&(typeof b[p]=="object"&&(0,e.eachItem)(b[p],o=>u+=c(o)),u===1/0))return 1/0}return u}function f(b,u="",p){p!==!1&&(u=S(u));const o=b.parse(u);return m(b,o)}ue.getFullPath=f;function m(b,u){return b.serialize(u).split("#")[0]+"#"}ue._getFullPath=m;const h=/#\/?$/;function S(b){return b?b.replace(h,""):""}ue.normalizeId=S;function $(b,u,p){return p=S(p),b.resolve(u,p)}ue.resolveUrl=$;const _=/^[a-z_][-a-z0-9._]*$/i;function v(b,u){if(typeof b=="boolean")return{};const{schemaId:p,uriResolver:o}=this.opts,l=S(b[p]||u),w={"":l},i=f(o,l,!1),g={},E=new Set;return n(b,{allKeys:!0},(M,A,U,L)=>{if(L===void 0)return;const H=i+A;let B=w[L];typeof M[p]=="string"&&(B=ee.call(this,M[p])),te.call(this,M.$anchor),te.call(this,M.$dynamicAnchor),w[A]=B;function ee(Z){const ae=this.opts.uriResolver.resolve;if(Z=S(B?ae(B,Z):Z),E.has(Z))throw j(Z);E.add(Z);let D=this.refs[Z];return typeof D=="string"&&(D=this.refs[D]),typeof D=="object"?k(M,D.schema,Z):Z!==S(H)&&(Z[0]==="#"?(k(M,g[Z],Z),g[Z]=M):this.refs[Z]=H),Z}function te(Z){if(typeof Z=="string"){if(!_.test(Z))throw new Error(`invalid anchor "${Z}"`);ee.call(this,`#${Z}`)}}}),g;function k(M,A,U){if(A!==void 0&&!t(M,A))throw j(U)}function j(M){return new Error(`reference "${M}" resolves to more than one schema`)}}return ue.getSchemaRefs=v,ue}var zr;function Mt(){if(zr)return _e;zr=1,Object.defineProperty(_e,"__esModule",{value:!0}),_e.getData=_e.KeywordCxt=_e.validateFunctionCode=void 0;const e=to(),t=Nt(),n=us(),r=Nt(),a=ro(),s=no(),d=so(),c=J(),f=ke(),m=Ct(),h=Y(),S=qt();function $(O){if(i(O)&&(E(O),w(O))){u(O);return}_(O,()=>(0,e.topBoolOrEmptySchema)(O))}_e.validateFunctionCode=$;function _({gen:O,validateName:N,schema:q,schemaEnv:V,opts:z},W){z.code.es5?O.func(N,(0,c._)`${f.default.data}, ${f.default.valCxt}`,V.$async,()=>{O.code((0,c._)`"use strict"; ${o(q,z)}`),b(O,z),O.code(W)}):O.func(N,(0,c._)`${f.default.data}, ${v(z)}`,V.$async,()=>O.code(o(q,z)).code(W))}function v(O){return(0,c._)`{${f.default.instancePath}="", ${f.default.parentData}, ${f.default.parentDataProperty}, ${f.default.rootData}=${f.default.data}${O.dynamicRef?(0,c._)`, ${f.default.dynamicAnchors}={}`:c.nil}}={}`}function b(O,N){O.if(f.default.valCxt,()=>{O.var(f.default.instancePath,(0,c._)`${f.default.valCxt}.${f.default.instancePath}`),O.var(f.default.parentData,(0,c._)`${f.default.valCxt}.${f.default.parentData}`),O.var(f.default.parentDataProperty,(0,c._)`${f.default.valCxt}.${f.default.parentDataProperty}`),O.var(f.default.rootData,(0,c._)`${f.default.valCxt}.${f.default.rootData}`),N.dynamicRef&&O.var(f.default.dynamicAnchors,(0,c._)`${f.default.valCxt}.${f.default.dynamicAnchors}`)},()=>{O.var(f.default.instancePath,(0,c._)`""`),O.var(f.default.parentData,(0,c._)`undefined`),O.var(f.default.parentDataProperty,(0,c._)`undefined`),O.var(f.default.rootData,f.default.data),N.dynamicRef&&O.var(f.default.dynamicAnchors,(0,c._)`{}`)})}function u(O){const{schema:N,opts:q,gen:V}=O;_(O,()=>{q.$comment&&N.$comment&&L(O),M(O),V.let(f.default.vErrors,null),V.let(f.default.errors,0),q.unevaluated&&p(O),k(O),H(O)})}function p(O){const{gen:N,validateName:q}=O;O.evaluated=N.const("evaluated",(0,c._)`${q}.evaluated`),N.if((0,c._)`${O.evaluated}.dynamicProps`,()=>N.assign((0,c._)`${O.evaluated}.props`,(0,c._)`undefined`)),N.if((0,c._)`${O.evaluated}.dynamicItems`,()=>N.assign((0,c._)`${O.evaluated}.items`,(0,c._)`undefined`))}function o(O,N){const q=typeof O=="object"&&O[N.schemaId];return q&&(N.code.source||N.code.process)?(0,c._)`/*# sourceURL=${q} */`:c.nil}function l(O,N){if(i(O)&&(E(O),w(O))){g(O,N);return}(0,e.boolOrEmptySchema)(O,N)}function w({schema:O,self:N}){if(typeof O=="boolean")return!O;for(const q in O)if(N.RULES.all[q])return!0;return!1}function i(O){return typeof O.schema!="boolean"}function g(O,N){const{schema:q,gen:V,opts:z}=O;z.$comment&&q.$comment&&L(O),A(O),U(O);const W=V.const("_errs",f.default.errors);k(O,W),V.var(N,(0,c._)`${W} === ${f.default.errors}`)}function E(O){(0,h.checkUnknownRules)(O),j(O)}function k(O,N){if(O.opts.jtd)return ee(O,[],!1,N);const q=(0,t.getSchemaTypes)(O.schema),V=(0,t.coerceAndCheckDataType)(O,q);ee(O,q,!V,N)}function j(O){const{schema:N,errSchemaPath:q,opts:V,self:z}=O;N.$ref&&V.ignoreKeywordsWithRef&&(0,h.schemaHasRulesButRef)(N,z.RULES)&&z.logger.warn(`$ref: keywords ignored in schema at path "${q}"`)}function M(O){const{schema:N,opts:q}=O;N.default!==void 0&&q.useDefaults&&q.strictSchema&&(0,h.checkStrictMode)(O,"default is ignored in the schema root")}function A(O){const N=O.schema[O.opts.schemaId];N&&(O.baseId=(0,m.resolveUrl)(O.opts.uriResolver,O.baseId,N))}function U(O){if(O.schema.$async&&!O.schemaEnv.$async)throw new Error("async schema in sync schema")}function L({gen:O,schemaEnv:N,schema:q,errSchemaPath:V,opts:z}){const W=q.$comment;if(z.$comment===!0)O.code((0,c._)`${f.default.self}.logger.log(${W})`);else if(typeof z.$comment=="function"){const ne=(0,c.str)`${V}/$comment`,me=O.scopeValue("root",{ref:N.root});O.code((0,c._)`${f.default.self}.opts.$comment(${W}, ${ne}, ${me}.schema)`)}}function H(O){const{gen:N,schemaEnv:q,validateName:V,ValidationError:z,opts:W}=O;q.$async?N.if((0,c._)`${f.default.errors} === 0`,()=>N.return(f.default.data),()=>N.throw((0,c._)`new ${z}(${f.default.vErrors})`)):(N.assign((0,c._)`${V}.errors`,f.default.vErrors),W.unevaluated&&B(O),N.return((0,c._)`${f.default.errors} === 0`))}function B({gen:O,evaluated:N,props:q,items:V}){q instanceof c.Name&&O.assign((0,c._)`${N}.props`,q),V instanceof c.Name&&O.assign((0,c._)`${N}.items`,V)}function ee(O,N,q,V){const{gen:z,schema:W,data:ne,allErrors:me,opts:ce,self:le}=O,{RULES:se}=le;if(W.$ref&&(ce.ignoreKeywordsWithRef||!(0,h.schemaHasRulesButRef)(W,se))){z.block(()=>F(O,"$ref",se.all.$ref.definition));return}ce.jtd||Z(O,N),z.block(()=>{for(const he of se.rules)Te(he);Te(se.post)});function Te(he){(0,n.shouldUseGroup)(W,he)&&(he.type?(z.if((0,r.checkDataType)(he.type,ne,ce.strictNumbers)),te(O,he),N.length===1&&N[0]===he.type&&q&&(z.else(),(0,r.reportTypeError)(O)),z.endIf()):te(O,he),me||z.if((0,c._)`${f.default.errors} === ${V||0}`))}}function te(O,N){const{gen:q,schema:V,opts:{useDefaults:z}}=O;z&&(0,a.assignDefaults)(O,N.type),q.block(()=>{for(const W of N.rules)(0,n.shouldUseRule)(V,W)&&F(O,W.keyword,W.definition,N.type)})}function Z(O,N){O.schemaEnv.meta||!O.opts.strictTypes||(ae(O,N),O.opts.allowUnionTypes||D(O,N),R(O,O.dataTypes))}function ae(O,N){if(N.length){if(!O.dataTypes.length){O.dataTypes=N;return}N.forEach(q=>{T(O.dataTypes,q)||P(O,`type "${q}" not allowed by context "${O.dataTypes.join(",")}"`)}),y(O,N)}}function D(O,N){N.length>1&&!(N.length===2&&N.includes("null"))&&P(O,"use allowUnionTypes to allow union type keyword")}function R(O,N){const q=O.self.RULES.all;for(const V in q){const z=q[V];if(typeof z=="object"&&(0,n.shouldUseRule)(O.schema,z)){const{type:W}=z.definition;W.length&&!W.some(ne=>C(N,ne))&&P(O,`missing type "${W.join(",")}" for keyword "${V}"`)}}}function C(O,N){return O.includes(N)||N==="number"&&O.includes("integer")}function T(O,N){return O.includes(N)||N==="integer"&&O.includes("number")}function y(O,N){const q=[];for(const V of O.dataTypes)T(N,V)?q.push(V):N.includes("integer")&&V==="number"&&q.push("integer");O.dataTypes=q}function P(O,N){const q=O.schemaEnv.baseId+O.errSchemaPath;N+=` at "${q}" (strictTypes)`,(0,h.checkStrictMode)(O,N,O.opts.strictTypes)}class I{constructor(N,q,V){if((0,s.validateKeywordUsage)(N,q,V),this.gen=N.gen,this.allErrors=N.allErrors,this.keyword=V,this.data=N.data,this.schema=N.schema[V],this.$data=q.$data&&N.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,h.schemaRefOrVal)(N,this.schema,V,this.$data),this.schemaType=q.schemaType,this.parentSchema=N.schema,this.params={},this.it=N,this.def=q,this.$data)this.schemaCode=N.gen.const("vSchema",X(this.$data,N));else if(this.schemaCode=this.schemaValue,!(0,s.validSchemaType)(this.schema,q.schemaType,q.allowUndefined))throw new Error(`${V} value must be ${JSON.stringify(q.schemaType)}`);("code"in q?q.trackErrors:q.errors!==!1)&&(this.errsCount=N.gen.const("_errs",f.default.errors))}result(N,q,V){this.failResult((0,c.not)(N),q,V)}failResult(N,q,V){this.gen.if(N),V?V():this.error(),q?(this.gen.else(),q(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(N,q){this.failResult((0,c.not)(N),void 0,q)}fail(N){if(N===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(N),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(N){if(!this.$data)return this.fail(N);const{schemaCode:q}=this;this.fail((0,c._)`${q} !== undefined && (${(0,c.or)(this.invalid$data(),N)})`)}error(N,q,V){if(q){this.setParams(q),this._error(N,V),this.setParams({});return}this._error(N,V)}_error(N,q){(N?S.reportExtraError:S.reportError)(this,this.def.error,q)}$dataError(){(0,S.reportError)(this,this.def.$dataError||S.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,S.resetErrorsCount)(this.gen,this.errsCount)}ok(N){this.allErrors||this.gen.if(N)}setParams(N,q){q?Object.assign(this.params,N):this.params=N}block$data(N,q,V=c.nil){this.gen.block(()=>{this.check$data(N,V),q()})}check$data(N=c.nil,q=c.nil){if(!this.$data)return;const{gen:V,schemaCode:z,schemaType:W,def:ne}=this;V.if((0,c.or)((0,c._)`${z} === undefined`,q)),N!==c.nil&&V.assign(N,!0),(W.length||ne.validateSchema)&&(V.elseIf(this.invalid$data()),this.$dataError(),N!==c.nil&&V.assign(N,!1)),V.else()}invalid$data(){const{gen:N,schemaCode:q,schemaType:V,def:z,it:W}=this;return(0,c.or)(ne(),me());function ne(){if(V.length){if(!(q instanceof c.Name))throw new Error("ajv implementation error");const ce=Array.isArray(V)?V:[V];return(0,c._)`${(0,r.checkDataTypes)(ce,q,W.opts.strictNumbers,r.DataType.Wrong)}`}return c.nil}function me(){if(z.validateSchema){const ce=N.scopeValue("validate$data",{ref:z.validateSchema});return(0,c._)`!${ce}(${q})`}return c.nil}}subschema(N,q){const V=(0,d.getSubschema)(this.it,N);(0,d.extendSubschemaData)(V,this.it,N),(0,d.extendSubschemaMode)(V,N);const z={...this.it,...V,items:void 0,props:void 0};return l(z,q),z}mergeEvaluated(N,q){const{it:V,gen:z}=this;V.opts.unevaluated&&(V.props!==!0&&N.props!==void 0&&(V.props=h.mergeEvaluated.props(z,N.props,V.props,q)),V.items!==!0&&N.items!==void 0&&(V.items=h.mergeEvaluated.items(z,N.items,V.items,q)))}mergeValidEvaluated(N,q){const{it:V,gen:z}=this;if(V.opts.unevaluated&&(V.props!==!0||V.items!==!0))return z.if(q,()=>this.mergeEvaluated(N,c.Name)),!0}}_e.KeywordCxt=I;function F(O,N,q,V){const z=new I(O,q,N);"code"in q?q.code(z,V):z.$data&&q.validate?(0,s.funcKeywordCode)(z,q):"macro"in q?(0,s.macroKeywordCode)(z,q):(q.compile||q.validate)&&(0,s.funcKeywordCode)(z,q)}const K=/^\/(?:[^~]|~0|~1)*$/,Q=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function X(O,{dataLevel:N,dataNames:q,dataPathArr:V}){let z,W;if(O==="")return f.default.rootData;if(O[0]==="/"){if(!K.test(O))throw new Error(`Invalid JSON-pointer: ${O}`);z=O,W=f.default.rootData}else{const le=Q.exec(O);if(!le)throw new Error(`Invalid JSON-pointer: ${O}`);const se=+le[1];if(z=le[2],z==="#"){if(se>=N)throw new Error(ce("property/index",se));return V[N-se]}if(se>N)throw new Error(ce("data",se));if(W=q[N-se],!z)return W}let ne=W;const me=z.split("/");for(const le of me)le&&(W=(0,c._)`${W}${(0,c.getProperty)((0,h.unescapeJsonPointer)(le))}`,ne=(0,c._)`${ne} && ${W}`);return ne;function ce(le,se){return`Cannot access ${le} ${se} levels up, current level is ${N}`}}return _e.getData=X,_e}var We={},Kr;function pr(){if(Kr)return We;Kr=1,Object.defineProperty(We,"__esModule",{value:!0});class e extends Error{constructor(n){super("validation failed"),this.errors=n,this.ajv=this.validation=!0}}return We.default=e,We}var Je={},Hr;function Dt(){if(Hr)return Je;Hr=1,Object.defineProperty(Je,"__esModule",{value:!0});const e=Ct();class t extends Error{constructor(r,a,s,d){super(d||`can't resolve reference ${s} from id ${a}`),this.missingRef=(0,e.resolveUrl)(r,a,s),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(r,this.missingRef))}}return Je.default=t,Je}var de={},Gr;function mr(){if(Gr)return de;Gr=1,Object.defineProperty(de,"__esModule",{value:!0}),de.resolveSchema=de.getCompilingSchema=de.resolveRef=de.compileSchema=de.SchemaEnv=void 0;const e=J(),t=pr(),n=ke(),r=Ct(),a=Y(),s=Mt();class d{constructor(p){var o;this.refs={},this.dynamicAnchors={};let l;typeof p.schema=="object"&&(l=p.schema),this.schema=p.schema,this.schemaId=p.schemaId,this.root=p.root||this,this.baseId=(o=p.baseId)!==null&&o!==void 0?o:(0,r.normalizeId)(l?.[p.schemaId||"$id"]),this.schemaPath=p.schemaPath,this.localRefs=p.localRefs,this.meta=p.meta,this.$async=l?.$async,this.refs={}}}de.SchemaEnv=d;function c(u){const p=h.call(this,u);if(p)return p;const o=(0,r.getFullPath)(this.opts.uriResolver,u.root.baseId),{es5:l,lines:w}=this.opts.code,{ownProperties:i}=this.opts,g=new e.CodeGen(this.scope,{es5:l,lines:w,ownProperties:i});let E;u.$async&&(E=g.scopeValue("Error",{ref:t.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));const k=g.scopeName("validate");u.validateName=k;const j={gen:g,allErrors:this.opts.allErrors,data:n.default.data,parentData:n.default.parentData,parentDataProperty:n.default.parentDataProperty,dataNames:[n.default.data],dataPathArr:[e.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:g.scopeValue("schema",this.opts.code.source===!0?{ref:u.schema,code:(0,e.stringify)(u.schema)}:{ref:u.schema}),validateName:k,ValidationError:E,schema:u.schema,schemaEnv:u,rootId:o,baseId:u.baseId||o,schemaPath:e.nil,errSchemaPath:u.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,e._)`""`,opts:this.opts,self:this};let M;try{this._compilations.add(u),(0,s.validateFunctionCode)(j),g.optimize(this.opts.code.optimize);const A=g.toString();M=`${g.scopeRefs(n.default.scope)}return ${A}`,this.opts.code.process&&(M=this.opts.code.process(M,u));const L=new Function(`${n.default.self}`,`${n.default.scope}`,M)(this,this.scope.get());if(this.scope.value(k,{ref:L}),L.errors=null,L.schema=u.schema,L.schemaEnv=u,u.$async&&(L.$async=!0),this.opts.code.source===!0&&(L.source={validateName:k,validateCode:A,scopeValues:g._values}),this.opts.unevaluated){const{props:H,items:B}=j;L.evaluated={props:H instanceof e.Name?void 0:H,items:B instanceof e.Name?void 0:B,dynamicProps:H instanceof e.Name,dynamicItems:B instanceof e.Name},L.source&&(L.source.evaluated=(0,e.stringify)(L.evaluated))}return u.validate=L,u}catch(A){throw delete u.validate,delete u.validateName,M&&this.logger.error("Error compiling schema, function code:",M),A}finally{this._compilations.delete(u)}}de.compileSchema=c;function f(u,p,o){var l;o=(0,r.resolveUrl)(this.opts.uriResolver,p,o);const w=u.refs[o];if(w)return w;let i=$.call(this,u,o);if(i===void 0){const g=(l=u.localRefs)===null||l===void 0?void 0:l[o],{schemaId:E}=this.opts;g&&(i=new d({schema:g,schemaId:E,root:u,baseId:p}))}if(i!==void 0)return u.refs[o]=m.call(this,i)}de.resolveRef=f;function m(u){return(0,r.inlineRef)(u.schema,this.opts.inlineRefs)?u.schema:u.validate?u:c.call(this,u)}function h(u){for(const p of this._compilations)if(S(p,u))return p}de.getCompilingSchema=h;function S(u,p){return u.schema===p.schema&&u.root===p.root&&u.baseId===p.baseId}function $(u,p){let o;for(;typeof(o=this.refs[p])=="string";)p=o;return o||this.schemas[p]||_.call(this,u,p)}function _(u,p){const o=this.opts.uriResolver.parse(p),l=(0,r._getFullPath)(this.opts.uriResolver,o);let w=(0,r.getFullPath)(this.opts.uriResolver,u.baseId,void 0);if(Object.keys(u.schema).length>0&&l===w)return b.call(this,o,u);const i=(0,r.normalizeId)(l),g=this.refs[i]||this.schemas[i];if(typeof g=="string"){const E=_.call(this,u,g);return typeof E?.schema!="object"?void 0:b.call(this,o,E)}if(typeof g?.schema=="object"){if(g.validate||c.call(this,g),i===(0,r.normalizeId)(p)){const{schema:E}=g,{schemaId:k}=this.opts,j=E[k];return j&&(w=(0,r.resolveUrl)(this.opts.uriResolver,w,j)),new d({schema:E,schemaId:k,root:u,baseId:w})}return b.call(this,o,g)}}de.resolveSchema=_;const v=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function b(u,{baseId:p,schema:o,root:l}){var w;if(((w=u.fragment)===null||w===void 0?void 0:w[0])!=="/")return;for(const E of u.fragment.slice(1).split("/")){if(typeof o=="boolean")return;const k=o[(0,a.unescapeFragment)(E)];if(k===void 0)return;o=k;const j=typeof o=="object"&&o[this.opts.schemaId];!v.has(E)&&j&&(p=(0,r.resolveUrl)(this.opts.uriResolver,p,j))}let i;if(typeof o!="boolean"&&o.$ref&&!(0,a.schemaHasRulesButRef)(o,this.RULES)){const E=(0,r.resolveUrl)(this.opts.uriResolver,p,o.$ref);i=_.call(this,l,E)}const{schemaId:g}=this.opts;if(i=i||new d({schema:o,schemaId:g,root:l,baseId:p}),i.schema!==i.root.schema)return i}return de}const io="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",ao="Meta-schema for $data reference (JSON AnySchema extension proposal)",uo="object",co=["$data"],lo={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},fo=!1,ho={$id:io,description:ao,type:uo,required:co,properties:lo,additionalProperties:fo};var Be={},Le={exports:{}},Zt,Wr;function ls(){if(Wr)return Zt;Wr=1;const e=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),t=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);function n($){let _="",v=0,b=0;for(b=0;b<$.length;b++)if(v=$[b].charCodeAt(0),v!==48){if(!(v>=48&&v<=57||v>=65&&v<=70||v>=97&&v<=102))return"";_+=$[b];break}for(b+=1;b<$.length;b++){if(v=$[b].charCodeAt(0),!(v>=48&&v<=57||v>=65&&v<=70||v>=97&&v<=102))return"";_+=$[b]}return _}const r=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function a($){return $.length=0,!0}function s($,_,v){if($.length){const b=n($);if(b!=="")_.push(b);else return v.error=!0,!1;$.length=0}return!0}function d($){let _=0;const v={error:!1,address:"",zone:""},b=[],u=[];let p=!1,o=!1,l=s;for(let w=0;w<$.length;w++){const i=$[w];if(!(i==="["||i==="]"))if(i===":"){if(p===!0&&(o=!0),!l(u,b,v))break;if(++_>7){v.error=!0;break}w>0&&$[w-1]===":"&&(p=!0),b.push(":");continue}else if(i==="%"){if(!l(u,b,v))break;l=a}else{u.push(i);continue}}return u.length&&(l===a?v.zone=u.join(""):o?b.push(u.join("")):b.push(n(u))),v.address=b.join(""),v}function c($){if(f($,":")<2)return{host:$,isIPV6:!1};const _=d($);if(_.error)return{host:$,isIPV6:!1};{let v=_.address,b=_.address;return _.zone&&(v+="%"+_.zone,b+="%25"+_.zone),{host:v,isIPV6:!0,escapedHost:b}}}function f($,_){let v=0;for(let b=0;b<$.length;b++)$[b]===_&&v++;return v}function m($){let _=$;const v=[];let b=-1,u=0;for(;u=_.length;){if(u===1){if(_===".")break;if(_==="/"){v.push("/");break}else{v.push(_);break}}else if(u===2){if(_[0]==="."){if(_[1]===".")break;if(_[1]==="/"){_=_.slice(2);continue}}else if(_[0]==="/"&&(_[1]==="."||_[1]==="/")){v.push("/");break}}else if(u===3&&_==="/.."){v.length!==0&&v.pop(),v.push("/");break}if(_[0]==="."){if(_[1]==="."){if(_[2]==="/"){_=_.slice(3);continue}}else if(_[1]==="/"){_=_.slice(2);continue}}else if(_[0]==="/"&&_[1]==="."){if(_[2]==="/"){_=_.slice(2);continue}else if(_[2]==="."&&_[3]==="/"){_=_.slice(3),v.length!==0&&v.pop();continue}}if((b=_.indexOf("/",1))===-1){v.push(_);break}else v.push(_.slice(0,b)),_=_.slice(b)}return v.join("")}function h($,_){const v=_!==!0?escape:unescape;return $.scheme!==void 0&&($.scheme=v($.scheme)),$.userinfo!==void 0&&($.userinfo=v($.userinfo)),$.host!==void 0&&($.host=v($.host)),$.path!==void 0&&($.path=v($.path)),$.query!==void 0&&($.query=v($.query)),$.fragment!==void 0&&($.fragment=v($.fragment)),$}function S($){const _=[];if($.userinfo!==void 0&&(_.push($.userinfo),_.push("@")),$.host!==void 0){let v=unescape($.host);if(!t(v)){const b=c(v);b.isIPV6===!0?v=`[${b.escapedHost}]`:v=$.host}_.push(v)}return(typeof $.port=="number"||typeof $.port=="string")&&(_.push(":"),_.push(String($.port))),_.length?_.join(""):void 0}return Zt={nonSimpleDomain:r,recomposeAuthority:S,normalizeComponentEncoding:h,removeDotSegments:m,isIPv4:t,isUUID:e,normalizeIPv6:c,stringArrayToHexStripped:n},Zt}var xt,Jr;function po(){if(Jr)return xt;Jr=1;const{isUUID:e}=ls(),t=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,n=["http","https","ws","wss","urn","urn:uuid"];function r(i){return n.indexOf(i)!==-1}function a(i){return i.secure===!0?!0:i.secure===!1?!1:i.scheme?i.scheme.length===3&&(i.scheme[0]==="w"||i.scheme[0]==="W")&&(i.scheme[1]==="s"||i.scheme[1]==="S")&&(i.scheme[2]==="s"||i.scheme[2]==="S"):!1}function s(i){return i.host||(i.error=i.error||"HTTP URIs must have a host."),i}function d(i){const g=String(i.scheme).toLowerCase()==="https";return(i.port===(g?443:80)||i.port==="")&&(i.port=void 0),i.path||(i.path="/"),i}function c(i){return i.secure=a(i),i.resourceName=(i.path||"/")+(i.query?"?"+i.query:""),i.path=void 0,i.query=void 0,i}function f(i){if((i.port===(a(i)?443:80)||i.port==="")&&(i.port=void 0),typeof i.secure=="boolean"&&(i.scheme=i.secure?"wss":"ws",i.secure=void 0),i.resourceName){const[g,E]=i.resourceName.split("?");i.path=g&&g!=="/"?g:void 0,i.query=E,i.resourceName=void 0}return i.fragment=void 0,i}function m(i,g){if(!i.path)return i.error="URN can not be parsed",i;const E=i.path.match(t);if(E){const k=g.scheme||i.scheme||"urn";i.nid=E[1].toLowerCase(),i.nss=E[2];const j=`${k}:${g.nid||i.nid}`,M=w(j);i.path=void 0,M&&(i=M.parse(i,g))}else i.error=i.error||"URN can not be parsed.";return i}function h(i,g){if(i.nid===void 0)throw new Error("URN without nid cannot be serialized");const E=g.scheme||i.scheme||"urn",k=i.nid.toLowerCase(),j=`${E}:${g.nid||k}`,M=w(j);M&&(i=M.serialize(i,g));const A=i,U=i.nss;return A.path=`${k||g.nid}:${U}`,g.skipEscape=!0,A}function S(i,g){const E=i;return E.uuid=E.nss,E.nss=void 0,!g.tolerant&&(!E.uuid||!e(E.uuid))&&(E.error=E.error||"UUID is not valid."),E}function $(i){const g=i;return g.nss=(i.uuid||"").toLowerCase(),g}const _={scheme:"http",domainHost:!0,parse:s,serialize:d},v={scheme:"https",domainHost:_.domainHost,parse:s,serialize:d},b={scheme:"ws",domainHost:!0,parse:c,serialize:f},u={scheme:"wss",domainHost:b.domainHost,parse:b.parse,serialize:b.serialize},l={http:_,https:v,ws:b,wss:u,urn:{scheme:"urn",parse:m,serialize:h,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:S,serialize:$,skipNormalize:!0}};Object.setPrototypeOf(l,null);function w(i){return i&&(l[i]||l[i.toLowerCase()])||void 0}return xt={wsIsSecure:a,SCHEMES:l,isValidSchemeName:r,getSchemeHandler:w},xt}var Br;function mo(){if(Br)return Le.exports;Br=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:n,normalizeComponentEncoding:r,isIPv4:a,nonSimpleDomain:s}=ls(),{SCHEMES:d,getSchemeHandler:c}=po();function f(u,p){return typeof u=="string"?u=$(v(u,p),p):typeof u=="object"&&(u=v($(u,p),p)),u}function m(u,p,o){const l=o?Object.assign({scheme:"null"},o):{scheme:"null"},w=h(v(u,l),v(p,l),l,!0);return l.skipEscape=!0,$(w,l)}function h(u,p,o,l){const w={};return l||(u=v($(u,o),o),p=v($(p,o),o)),o=o||{},!o.tolerant&&p.scheme?(w.scheme=p.scheme,w.userinfo=p.userinfo,w.host=p.host,w.port=p.port,w.path=t(p.path||""),w.query=p.query):(p.userinfo!==void 0||p.host!==void 0||p.port!==void 0?(w.userinfo=p.userinfo,w.host=p.host,w.port=p.port,w.path=t(p.path||""),w.query=p.query):(p.path?(p.path[0]==="/"?w.path=t(p.path):((u.userinfo!==void 0||u.host!==void 0||u.port!==void 0)&&!u.path?w.path="/"+p.path:u.path?w.path=u.path.slice(0,u.path.lastIndexOf("/")+1)+p.path:w.path=p.path,w.path=t(w.path)),w.query=p.query):(w.path=u.path,p.query!==void 0?w.query=p.query:w.query=u.query),w.userinfo=u.userinfo,w.host=u.host,w.port=u.port),w.scheme=u.scheme),w.fragment=p.fragment,w}function S(u,p,o){return typeof u=="string"?(u=unescape(u),u=$(r(v(u,o),!0),{...o,skipEscape:!0})):typeof u=="object"&&(u=$(r(u,!0),{...o,skipEscape:!0})),typeof p=="string"?(p=unescape(p),p=$(r(v(p,o),!0),{...o,skipEscape:!0})):typeof p=="object"&&(p=$(r(p,!0),{...o,skipEscape:!0})),u.toLowerCase()===p.toLowerCase()}function $(u,p){const o={host:u.host,scheme:u.scheme,userinfo:u.userinfo,port:u.port,path:u.path,query:u.query,nid:u.nid,nss:u.nss,uuid:u.uuid,fragment:u.fragment,reference:u.reference,resourceName:u.resourceName,secure:u.secure,error:""},l=Object.assign({},p),w=[],i=c(l.scheme||o.scheme);i&&i.serialize&&i.serialize(o,l),o.path!==void 0&&(l.skipEscape?o.path=unescape(o.path):(o.path=escape(o.path),o.scheme!==void 0&&(o.path=o.path.split("%3A").join(":")))),l.reference!=="suffix"&&o.scheme&&w.push(o.scheme,":");const g=n(o);if(g!==void 0&&(l.reference!=="suffix"&&w.push("//"),w.push(g),o.path&&o.path[0]!=="/"&&w.push("/")),o.path!==void 0){let E=o.path;!l.absolutePath&&(!i||!i.absolutePath)&&(E=t(E)),g===void 0&&E[0]==="/"&&E[1]==="/"&&(E="/%2F"+E.slice(2)),w.push(E)}return o.query!==void 0&&w.push("?",o.query),o.fragment!==void 0&&w.push("#",o.fragment),w.join("")}const _=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function v(u,p){const o=Object.assign({},p),l={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let w=!1;o.reference==="suffix"&&(o.scheme?u=o.scheme+":"+u:u="//"+u);const i=u.match(_);if(i){if(l.scheme=i[1],l.userinfo=i[3],l.host=i[4],l.port=parseInt(i[5],10),l.path=i[6]||"",l.query=i[7],l.fragment=i[8],isNaN(l.port)&&(l.port=i[5]),l.host)if(a(l.host)===!1){const k=e(l.host);l.host=k.host.toLowerCase(),w=k.isIPV6}else w=!0;l.scheme===void 0&&l.userinfo===void 0&&l.host===void 0&&l.port===void 0&&l.query===void 0&&!l.path?l.reference="same-document":l.scheme===void 0?l.reference="relative":l.fragment===void 0?l.reference="absolute":l.reference="uri",o.reference&&o.reference!=="suffix"&&o.reference!==l.reference&&(l.error=l.error||"URI is not a "+o.reference+" reference.");const g=c(o.scheme||l.scheme);if(!o.unicodeSupport&&(!g||!g.unicodeSupport)&&l.host&&(o.domainHost||g&&g.domainHost)&&w===!1&&s(l.host))try{l.host=URL.domainToASCII(l.host.toLowerCase())}catch(E){l.error=l.error||"Host's domain name can not be converted to ASCII: "+E}(!g||g&&!g.skipNormalize)&&(u.indexOf("%")!==-1&&(l.scheme!==void 0&&(l.scheme=unescape(l.scheme)),l.host!==void 0&&(l.host=unescape(l.host))),l.path&&(l.path=escape(unescape(l.path))),l.fragment&&(l.fragment=encodeURI(decodeURIComponent(l.fragment)))),g&&g.parse&&g.parse(l,o)}else l.error=l.error||"URI can not be parsed.";return l}const b={SCHEMES:d,normalize:f,resolve:m,resolveComponent:h,equal:S,serialize:$,parse:v};return Le.exports=b,Le.exports.default=b,Le.exports.fastUri=b,Le.exports}var Xr;function yo(){if(Xr)return Be;Xr=1,Object.defineProperty(Be,"__esModule",{value:!0});const e=mo();return e.code='require("ajv/dist/runtime/uri").default',Be.default=e,Be}var Yr;function vo(){return Yr||(Yr=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=Mt();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var n=J();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return n.CodeGen}});const r=pr(),a=Dt(),s=as(),d=mr(),c=J(),f=Ct(),m=Nt(),h=Y(),S=ho,$=yo(),_=(D,R)=>new RegExp(D,R);_.code="new RegExp";const v=["removeAdditional","useDefaults","coerceTypes"],b=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),u={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},p={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},o=200;function l(D){var R,C,T,y,P,I,F,K,Q,X,O,N,q,V,z,W,ne,me,ce,le,se,Te,he,Vt,Lt;const Ae=D.strict,Ft=(R=D.code)===null||R===void 0?void 0:R.optimize,vr=Ft===!0||Ft===void 0?1:Ft||0,gr=(T=(C=D.code)===null||C===void 0?void 0:C.regExp)!==null&&T!==void 0?T:_,$s=(y=D.uriResolver)!==null&&y!==void 0?y:$.default;return{strictSchema:(I=(P=D.strictSchema)!==null&&P!==void 0?P:Ae)!==null&&I!==void 0?I:!0,strictNumbers:(K=(F=D.strictNumbers)!==null&&F!==void 0?F:Ae)!==null&&K!==void 0?K:!0,strictTypes:(X=(Q=D.strictTypes)!==null&&Q!==void 0?Q:Ae)!==null&&X!==void 0?X:"log",strictTuples:(N=(O=D.strictTuples)!==null&&O!==void 0?O:Ae)!==null&&N!==void 0?N:"log",strictRequired:(V=(q=D.strictRequired)!==null&&q!==void 0?q:Ae)!==null&&V!==void 0?V:!1,code:D.code?{...D.code,optimize:vr,regExp:gr}:{optimize:vr,regExp:gr},loopRequired:(z=D.loopRequired)!==null&&z!==void 0?z:o,loopEnum:(W=D.loopEnum)!==null&&W!==void 0?W:o,meta:(ne=D.meta)!==null&&ne!==void 0?ne:!0,messages:(me=D.messages)!==null&&me!==void 0?me:!0,inlineRefs:(ce=D.inlineRefs)!==null&&ce!==void 0?ce:!0,schemaId:(le=D.schemaId)!==null&&le!==void 0?le:"$id",addUsedSchema:(se=D.addUsedSchema)!==null&&se!==void 0?se:!0,validateSchema:(Te=D.validateSchema)!==null&&Te!==void 0?Te:!0,validateFormats:(he=D.validateFormats)!==null&&he!==void 0?he:!0,unicodeRegExp:(Vt=D.unicodeRegExp)!==null&&Vt!==void 0?Vt:!0,int32range:(Lt=D.int32range)!==null&&Lt!==void 0?Lt:!0,uriResolver:$s}}class w{constructor(R={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,R=this.opts={...R,...l(R)};const{es5:C,lines:T}=this.opts.code;this.scope=new c.ValueScope({scope:{},prefixes:b,es5:C,lines:T}),this.logger=U(R.logger);const y=R.validateFormats;R.validateFormats=!1,this.RULES=(0,s.getRules)(),i.call(this,u,R,"NOT SUPPORTED"),i.call(this,p,R,"DEPRECATED","warn"),this._metaOpts=M.call(this),R.formats&&k.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),R.keywords&&j.call(this,R.keywords),typeof R.meta=="object"&&this.addMetaSchema(R.meta),E.call(this),R.validateFormats=y}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:R,meta:C,schemaId:T}=this.opts;let y=S;T==="id"&&(y={...S},y.id=y.$id,delete y.$id),C&&R&&this.addMetaSchema(y,y[T],!1)}defaultMeta(){const{meta:R,schemaId:C}=this.opts;return this.opts.defaultMeta=typeof R=="object"?R[C]||R:void 0}validate(R,C){let T;if(typeof R=="string"){if(T=this.getSchema(R),!T)throw new Error(`no schema with key or ref "${R}"`)}else T=this.compile(R);const y=T(C);return"$async"in T||(this.errors=T.errors),y}compile(R,C){const T=this._addSchema(R,C);return T.validate||this._compileSchemaEnv(T)}compileAsync(R,C){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:T}=this.opts;return y.call(this,R,C);async function y(X,O){await P.call(this,X.$schema);const N=this._addSchema(X,O);return N.validate||I.call(this,N)}async function P(X){X&&!this.getSchema(X)&&await y.call(this,{$ref:X},!0)}async function I(X){try{return this._compileSchemaEnv(X)}catch(O){if(!(O instanceof a.default))throw O;return F.call(this,O),await K.call(this,O.missingSchema),I.call(this,X)}}function F({missingSchema:X,missingRef:O}){if(this.refs[X])throw new Error(`AnySchema ${X} is loaded but ${O} cannot be resolved`)}async function K(X){const O=await Q.call(this,X);this.refs[X]||await P.call(this,O.$schema),this.refs[X]||this.addSchema(O,X,C)}async function Q(X){const O=this._loading[X];if(O)return O;try{return await(this._loading[X]=T(X))}finally{delete this._loading[X]}}}addSchema(R,C,T,y=this.opts.validateSchema){if(Array.isArray(R)){for(const I of R)this.addSchema(I,void 0,T,y);return this}let P;if(typeof R=="object"){const{schemaId:I}=this.opts;if(P=R[I],P!==void 0&&typeof P!="string")throw new Error(`schema ${I} must be string`)}return C=(0,f.normalizeId)(C||P),this._checkUnique(C),this.schemas[C]=this._addSchema(R,T,C,y,!0),this}addMetaSchema(R,C,T=this.opts.validateSchema){return this.addSchema(R,C,!0,T),this}validateSchema(R,C){if(typeof R=="boolean")return!0;let T;if(T=R.$schema,T!==void 0&&typeof T!="string")throw new Error("$schema must be a string");if(T=T||this.opts.defaultMeta||this.defaultMeta(),!T)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const y=this.validate(T,R);if(!y&&C){const P="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(P);else throw new Error(P)}return y}getSchema(R){let C;for(;typeof(C=g.call(this,R))=="string";)R=C;if(C===void 0){const{schemaId:T}=this.opts,y=new d.SchemaEnv({schema:{},schemaId:T});if(C=d.resolveSchema.call(this,y,R),!C)return;this.refs[R]=C}return C.validate||this._compileSchemaEnv(C)}removeSchema(R){if(R instanceof RegExp)return this._removeAllSchemas(this.schemas,R),this._removeAllSchemas(this.refs,R),this;switch(typeof R){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const C=g.call(this,R);return typeof C=="object"&&this._cache.delete(C.schema),delete this.schemas[R],delete this.refs[R],this}case"object":{const C=R;this._cache.delete(C);let T=R[this.opts.schemaId];return T&&(T=(0,f.normalizeId)(T),delete this.schemas[T],delete this.refs[T]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(R){for(const C of R)this.addKeyword(C);return this}addKeyword(R,C){let T;if(typeof R=="string")T=R,typeof C=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),C.keyword=T);else if(typeof R=="object"&&C===void 0){if(C=R,T=C.keyword,Array.isArray(T)&&!T.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(H.call(this,T,C),!C)return(0,h.eachItem)(T,P=>B.call(this,P)),this;te.call(this,C);const y={...C,type:(0,m.getJSONTypes)(C.type),schemaType:(0,m.getJSONTypes)(C.schemaType)};return(0,h.eachItem)(T,y.type.length===0?P=>B.call(this,P,y):P=>y.type.forEach(I=>B.call(this,P,y,I))),this}getKeyword(R){const C=this.RULES.all[R];return typeof C=="object"?C.definition:!!C}removeKeyword(R){const{RULES:C}=this;delete C.keywords[R],delete C.all[R];for(const T of C.rules){const y=T.rules.findIndex(P=>P.keyword===R);y>=0&&T.rules.splice(y,1)}return this}addFormat(R,C){return typeof C=="string"&&(C=new RegExp(C)),this.formats[R]=C,this}errorsText(R=this.errors,{separator:C=", ",dataVar:T="data"}={}){return!R||R.length===0?"No errors":R.map(y=>`${T}${y.instancePath} ${y.message}`).reduce((y,P)=>y+C+P)}$dataMetaSchema(R,C){const T=this.RULES.all;R=JSON.parse(JSON.stringify(R));for(const y of C){const P=y.split("/").slice(1);let I=R;for(const F of P)I=I[F];for(const F in T){const K=T[F];if(typeof K!="object")continue;const{$data:Q}=K.definition,X=I[F];Q&&X&&(I[F]=ae(X))}}return R}_removeAllSchemas(R,C){for(const T in R){const y=R[T];(!C||C.test(T))&&(typeof y=="string"?delete R[T]:y&&!y.meta&&(this._cache.delete(y.schema),delete R[T]))}}_addSchema(R,C,T,y=this.opts.validateSchema,P=this.opts.addUsedSchema){let I;const{schemaId:F}=this.opts;if(typeof R=="object")I=R[F];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof R!="boolean")throw new Error("schema must be object or boolean")}let K=this._cache.get(R);if(K!==void 0)return K;T=(0,f.normalizeId)(I||T);const Q=f.getSchemaRefs.call(this,R,T);return K=new d.SchemaEnv({schema:R,schemaId:F,meta:C,baseId:T,localRefs:Q}),this._cache.set(K.schema,K),P&&!T.startsWith("#")&&(T&&this._checkUnique(T),this.refs[T]=K),y&&this.validateSchema(R,!0),K}_checkUnique(R){if(this.schemas[R]||this.refs[R])throw new Error(`schema with key or id "${R}" already exists`)}_compileSchemaEnv(R){if(R.meta?this._compileMetaSchema(R):d.compileSchema.call(this,R),!R.validate)throw new Error("ajv implementation error");return R.validate}_compileMetaSchema(R){const C=this.opts;this.opts=this._metaOpts;try{d.compileSchema.call(this,R)}finally{this.opts=C}}}w.ValidationError=r.default,w.MissingRefError=a.default,e.default=w;function i(D,R,C,T="error"){for(const y in D){const P=y;P in R&&this.logger[T](`${C}: option ${y}. ${D[P]}`)}}function g(D){return D=(0,f.normalizeId)(D),this.schemas[D]||this.refs[D]}function E(){const D=this.opts.schemas;if(D)if(Array.isArray(D))this.addSchema(D);else for(const R in D)this.addSchema(D[R],R)}function k(){for(const D in this.opts.formats){const R=this.opts.formats[D];R&&this.addFormat(D,R)}}function j(D){if(Array.isArray(D)){this.addVocabulary(D);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const R in D){const C=D[R];C.keyword||(C.keyword=R),this.addKeyword(C)}}function M(){const D={...this.opts};for(const R of v)delete D[R];return D}const A={log(){},warn(){},error(){}};function U(D){if(D===!1)return A;if(D===void 0)return console;if(D.log&&D.warn&&D.error)return D;throw new Error("logger must implement log, warn and error methods")}const L=/^[a-z_$][a-z0-9_$:-]*$/i;function H(D,R){const{RULES:C}=this;if((0,h.eachItem)(D,T=>{if(C.keywords[T])throw new Error(`Keyword ${T} is already defined`);if(!L.test(T))throw new Error(`Keyword ${T} has invalid name`)}),!!R&&R.$data&&!("code"in R||"validate"in R))throw new Error('$data keyword must have "code" or "validate" function')}function B(D,R,C){var T;const y=R?.post;if(C&&y)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:P}=this;let I=y?P.post:P.rules.find(({type:K})=>K===C);if(I||(I={type:C,rules:[]},P.rules.push(I)),P.keywords[D]=!0,!R)return;const F={keyword:D,definition:{...R,type:(0,m.getJSONTypes)(R.type),schemaType:(0,m.getJSONTypes)(R.schemaType)}};R.before?ee.call(this,I,F,R.before):I.rules.push(F),P.all[D]=F,(T=R.implements)===null||T===void 0||T.forEach(K=>this.addKeyword(K))}function ee(D,R,C){const T=D.rules.findIndex(y=>y.keyword===C);T>=0?D.rules.splice(T,0,R):(D.rules.push(R),this.logger.warn(`rule ${C} is not defined`))}function te(D){let{metaSchema:R}=D;R!==void 0&&(D.$data&&this.opts.$data&&(R=ae(R)),D.validateSchema=this.compile(R,!0))}const Z={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function ae(D){return{anyOf:[D,Z]}}})(Gt)),Gt}var Xe={},Ye={},Qe={},Qr;function go(){if(Qr)return Qe;Qr=1,Object.defineProperty(Qe,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return Qe.default=e,Qe}var Ee={},Zr;function _o(){if(Zr)return Ee;Zr=1,Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.callRef=Ee.getValidate=void 0;const e=Dt(),t=ve(),n=J(),r=ke(),a=mr(),s=Y(),d={keyword:"$ref",schemaType:"string",code(m){const{gen:h,schema:S,it:$}=m,{baseId:_,schemaEnv:v,validateName:b,opts:u,self:p}=$,{root:o}=v;if((S==="#"||S==="#/")&&_===o.baseId)return w();const l=a.resolveRef.call(p,o,_,S);if(l===void 0)throw new e.default($.opts.uriResolver,_,S);if(l instanceof a.SchemaEnv)return i(l);return g(l);function w(){if(v===o)return f(m,b,v,v.$async);const E=h.scopeValue("root",{ref:o});return f(m,(0,n._)`${E}.validate`,o,o.$async)}function i(E){const k=c(m,E);f(m,k,E,E.$async)}function g(E){const k=h.scopeValue("schema",u.code.source===!0?{ref:E,code:(0,n.stringify)(E)}:{ref:E}),j=h.name("valid"),M=m.subschema({schema:E,dataTypes:[],schemaPath:n.nil,topSchemaRef:k,errSchemaPath:S},j);m.mergeEvaluated(M),m.ok(j)}}};function c(m,h){const{gen:S}=m;return h.validate?S.scopeValue("validate",{ref:h.validate}):(0,n._)`${S.scopeValue("wrapper",{ref:h})}.validate`}Ee.getValidate=c;function f(m,h,S,$){const{gen:_,it:v}=m,{allErrors:b,schemaEnv:u,opts:p}=v,o=p.passContext?r.default.this:n.nil;$?l():w();function l(){if(!u.$async)throw new Error("async schema referenced by sync schema");const E=_.let("valid");_.try(()=>{_.code((0,n._)`await ${(0,t.callValidateCode)(m,h,o)}`),g(h),b||_.assign(E,!0)},k=>{_.if((0,n._)`!(${k} instanceof ${v.ValidationError})`,()=>_.throw(k)),i(k),b||_.assign(E,!1)}),m.ok(E)}function w(){m.result((0,t.callValidateCode)(m,h,o),()=>g(h),()=>i(h))}function i(E){const k=(0,n._)`${E}.errors`;_.assign(r.default.vErrors,(0,n._)`${r.default.vErrors} === null ? ${k} : ${r.default.vErrors}.concat(${k})`),_.assign(r.default.errors,(0,n._)`${r.default.vErrors}.length`)}function g(E){var k;if(!v.opts.unevaluated)return;const j=(k=S?.validate)===null||k===void 0?void 0:k.evaluated;if(v.props!==!0)if(j&&!j.dynamicProps)j.props!==void 0&&(v.props=s.mergeEvaluated.props(_,j.props,v.props));else{const M=_.var("props",(0,n._)`${E}.evaluated.props`);v.props=s.mergeEvaluated.props(_,M,v.props,n.Name)}if(v.items!==!0)if(j&&!j.dynamicItems)j.items!==void 0&&(v.items=s.mergeEvaluated.items(_,j.items,v.items));else{const M=_.var("items",(0,n._)`${E}.evaluated.items`);v.items=s.mergeEvaluated.items(_,M,v.items,n.Name)}}}return Ee.callRef=f,Ee.default=d,Ee}var xr;function $o(){if(xr)return Ye;xr=1,Object.defineProperty(Ye,"__esModule",{value:!0});const e=go(),t=_o(),n=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return Ye.default=n,Ye}var Ze={},xe={},en;function wo(){if(en)return xe;en=1,Object.defineProperty(xe,"__esModule",{value:!0});const e=J(),t=e.operators,n={maximum:{okStr:"<=",ok:t.LTE,fail:t.GT},minimum:{okStr:">=",ok:t.GTE,fail:t.LT},exclusiveMaximum:{okStr:"<",ok:t.LT,fail:t.GTE},exclusiveMinimum:{okStr:">",ok:t.GT,fail:t.LTE}},r={message:({keyword:s,schemaCode:d})=>(0,e.str)`must be ${n[s].okStr} ${d}`,params:({keyword:s,schemaCode:d})=>(0,e._)`{comparison: ${n[s].okStr}, limit: ${d}}`},a={keyword:Object.keys(n),type:"number",schemaType:"number",$data:!0,error:r,code(s){const{keyword:d,data:c,schemaCode:f}=s;s.fail$data((0,e._)`${c} ${n[d].fail} ${f} || isNaN(${c})`)}};return xe.default=a,xe}var et={},tn;function bo(){if(tn)return et;tn=1,Object.defineProperty(et,"__esModule",{value:!0});const e=J(),n={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:r})=>(0,e.str)`must be multiple of ${r}`,params:({schemaCode:r})=>(0,e._)`{multipleOf: ${r}}`},code(r){const{gen:a,data:s,schemaCode:d,it:c}=r,f=c.opts.multipleOfPrecision,m=a.let("res"),h=f?(0,e._)`Math.abs(Math.round(${m}) - ${m}) > 1e-${f}`:(0,e._)`${m} !== parseInt(${m})`;r.fail$data((0,e._)`(${d} === 0 || (${m} = ${s}/${d}, ${h}))`)}};return et.default=n,et}var tt={},rt={},rn;function So(){if(rn)return rt;rn=1,Object.defineProperty(rt,"__esModule",{value:!0});function e(t){const n=t.length;let r=0,a=0,s;for(;a<n;)r++,s=t.charCodeAt(a++),s>=55296&&s<=56319&&a<n&&(s=t.charCodeAt(a),(s&64512)===56320&&a++);return r}return rt.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',rt}var nn;function Eo(){if(nn)return tt;nn=1,Object.defineProperty(tt,"__esModule",{value:!0});const e=J(),t=Y(),n=So(),a={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:s,schemaCode:d}){const c=s==="maxLength"?"more":"fewer";return(0,e.str)`must NOT have ${c} than ${d} characters`},params:({schemaCode:s})=>(0,e._)`{limit: ${s}}`},code(s){const{keyword:d,data:c,schemaCode:f,it:m}=s,h=d==="maxLength"?e.operators.GT:e.operators.LT,S=m.opts.unicode===!1?(0,e._)`${c}.length`:(0,e._)`${(0,t.useFunc)(s.gen,n.default)}(${c})`;s.fail$data((0,e._)`${S} ${h} ${f}`)}};return tt.default=a,tt}var nt={},sn;function Po(){if(sn)return nt;sn=1,Object.defineProperty(nt,"__esModule",{value:!0});const e=ve(),t=J(),r={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:a})=>(0,t.str)`must match pattern "${a}"`,params:({schemaCode:a})=>(0,t._)`{pattern: ${a}}`},code(a){const{data:s,$data:d,schema:c,schemaCode:f,it:m}=a,h=m.opts.unicodeRegExp?"u":"",S=d?(0,t._)`(new RegExp(${f}, ${h}))`:(0,e.usePattern)(a,c);a.fail$data((0,t._)`!${S}.test(${s})`)}};return nt.default=r,nt}var st={},on;function ko(){if(on)return st;on=1,Object.defineProperty(st,"__esModule",{value:!0});const e=J(),n={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:r,schemaCode:a}){const s=r==="maxProperties"?"more":"fewer";return(0,e.str)`must NOT have ${s} than ${a} properties`},params:({schemaCode:r})=>(0,e._)`{limit: ${r}}`},code(r){const{keyword:a,data:s,schemaCode:d}=r,c=a==="maxProperties"?e.operators.GT:e.operators.LT;r.fail$data((0,e._)`Object.keys(${s}).length ${c} ${d}`)}};return st.default=n,st}var ot={},an;function Oo(){if(an)return ot;an=1,Object.defineProperty(ot,"__esModule",{value:!0});const e=ve(),t=J(),n=Y(),a={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:s}})=>(0,t.str)`must have required property '${s}'`,params:({params:{missingProperty:s}})=>(0,t._)`{missingProperty: ${s}}`},code(s){const{gen:d,schema:c,schemaCode:f,data:m,$data:h,it:S}=s,{opts:$}=S;if(!h&&c.length===0)return;const _=c.length>=$.loopRequired;if(S.allErrors?v():b(),$.strictRequired){const o=s.parentSchema.properties,{definedProperties:l}=s.it;for(const w of c)if(o?.[w]===void 0&&!l.has(w)){const i=S.schemaEnv.baseId+S.errSchemaPath,g=`required property "${w}" is not defined at "${i}" (strictRequired)`;(0,n.checkStrictMode)(S,g,S.opts.strictRequired)}}function v(){if(_||h)s.block$data(t.nil,u);else for(const o of c)(0,e.checkReportMissingProp)(s,o)}function b(){const o=d.let("missing");if(_||h){const l=d.let("valid",!0);s.block$data(l,()=>p(o,l)),s.ok(l)}else d.if((0,e.checkMissingProp)(s,c,o)),(0,e.reportMissingProp)(s,o),d.else()}function u(){d.forOf("prop",f,o=>{s.setParams({missingProperty:o}),d.if((0,e.noPropertyInData)(d,m,o,$.ownProperties),()=>s.error())})}function p(o,l){s.setParams({missingProperty:o}),d.forOf(o,f,()=>{d.assign(l,(0,e.propertyInData)(d,m,o,$.ownProperties)),d.if((0,t.not)(l),()=>{s.error(),d.break()})},t.nil)}}};return ot.default=a,ot}var it={},un;function jo(){if(un)return it;un=1,Object.defineProperty(it,"__esModule",{value:!0});const e=J(),n={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:r,schemaCode:a}){const s=r==="maxItems"?"more":"fewer";return(0,e.str)`must NOT have ${s} than ${a} items`},params:({schemaCode:r})=>(0,e._)`{limit: ${r}}`},code(r){const{keyword:a,data:s,schemaCode:d}=r,c=a==="maxItems"?e.operators.GT:e.operators.LT;r.fail$data((0,e._)`${s}.length ${c} ${d}`)}};return it.default=n,it}var at={},ut={},cn;function yr(){if(cn)return ut;cn=1,Object.defineProperty(ut,"__esModule",{value:!0});const e=cs();return e.code='require("ajv/dist/runtime/equal").default',ut.default=e,ut}var ln;function Ro(){if(ln)return at;ln=1,Object.defineProperty(at,"__esModule",{value:!0});const e=Nt(),t=J(),n=Y(),r=yr(),s={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:d,j:c}})=>(0,t.str)`must NOT have duplicate items (items ## ${c} and ${d} are identical)`,params:({params:{i:d,j:c}})=>(0,t._)`{i: ${d}, j: ${c}}`},code(d){const{gen:c,data:f,$data:m,schema:h,parentSchema:S,schemaCode:$,it:_}=d;if(!m&&!h)return;const v=c.let("valid"),b=S.items?(0,e.getSchemaTypes)(S.items):[];d.block$data(v,u,(0,t._)`${$} === false`),d.ok(v);function u(){const w=c.let("i",(0,t._)`${f}.length`),i=c.let("j");d.setParams({i:w,j:i}),c.assign(v,!0),c.if((0,t._)`${w} > 1`,()=>(p()?o:l)(w,i))}function p(){return b.length>0&&!b.some(w=>w==="object"||w==="array")}function o(w,i){const g=c.name("item"),E=(0,e.checkDataTypes)(b,g,_.opts.strictNumbers,e.DataType.Wrong),k=c.const("indices",(0,t._)`{}`);c.for((0,t._)`;${w}--;`,()=>{c.let(g,(0,t._)`${f}[${w}]`),c.if(E,(0,t._)`continue`),b.length>1&&c.if((0,t._)`typeof ${g} == "string"`,(0,t._)`${g} += "_"`),c.if((0,t._)`typeof ${k}[${g}] == "number"`,()=>{c.assign(i,(0,t._)`${k}[${g}]`),d.error(),c.assign(v,!1).break()}).code((0,t._)`${k}[${g}] = ${w}`)})}function l(w,i){const g=(0,n.useFunc)(c,r.default),E=c.name("outer");c.label(E).for((0,t._)`;${w}--;`,()=>c.for((0,t._)`${i} = ${w}; ${i}--;`,()=>c.if((0,t._)`${g}(${f}[${w}], ${f}[${i}])`,()=>{d.error(),c.assign(v,!1).break(E)})))}}};return at.default=s,at}var ct={},dn;function No(){if(dn)return ct;dn=1,Object.defineProperty(ct,"__esModule",{value:!0});const e=J(),t=Y(),n=yr(),a={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:s})=>(0,e._)`{allowedValue: ${s}}`},code(s){const{gen:d,data:c,$data:f,schemaCode:m,schema:h}=s;f||h&&typeof h=="object"?s.fail$data((0,e._)`!${(0,t.useFunc)(d,n.default)}(${c}, ${m})`):s.fail((0,e._)`${h} !== ${c}`)}};return ct.default=a,ct}var lt={},fn;function To(){if(fn)return lt;fn=1,Object.defineProperty(lt,"__esModule",{value:!0});const e=J(),t=Y(),n=yr(),a={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:s})=>(0,e._)`{allowedValues: ${s}}`},code(s){const{gen:d,data:c,$data:f,schema:m,schemaCode:h,it:S}=s;if(!f&&m.length===0)throw new Error("enum must have non-empty array");const $=m.length>=S.opts.loopEnum;let _;const v=()=>_??(_=(0,t.useFunc)(d,n.default));let b;if($||f)b=d.let("valid"),s.block$data(b,u);else{if(!Array.isArray(m))throw new Error("ajv implementation error");const o=d.const("vSchema",h);b=(0,e.or)(...m.map((l,w)=>p(o,w)))}s.pass(b);function u(){d.assign(b,!1),d.forOf("v",h,o=>d.if((0,e._)`${v()}(${c}, ${o})`,()=>d.assign(b,!0).break()))}function p(o,l){const w=m[l];return typeof w=="object"&&w!==null?(0,e._)`${v()}(${c}, ${o}[${l}])`:(0,e._)`${c} === ${w}`}}};return lt.default=a,lt}var hn;function Io(){if(hn)return Ze;hn=1,Object.defineProperty(Ze,"__esModule",{value:!0});const e=wo(),t=bo(),n=Eo(),r=Po(),a=ko(),s=Oo(),d=jo(),c=Ro(),f=No(),m=To(),h=[e.default,t.default,n.default,r.default,a.default,s.default,d.default,c.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},f.default,m.default];return Ze.default=h,Ze}var dt={},Ie={},pn;function ds(){if(pn)return Ie;pn=1,Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.validateAdditionalItems=void 0;const e=J(),t=Y(),r={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:s}})=>(0,e.str)`must NOT have more than ${s} items`,params:({params:{len:s}})=>(0,e._)`{limit: ${s}}`},code(s){const{parentSchema:d,it:c}=s,{items:f}=d;if(!Array.isArray(f)){(0,t.checkStrictMode)(c,'"additionalItems" is ignored when "items" is not an array of schemas');return}a(s,f)}};function a(s,d){const{gen:c,schema:f,data:m,keyword:h,it:S}=s;S.items=!0;const $=c.const("len",(0,e._)`${m}.length`);if(f===!1)s.setParams({len:d.length}),s.pass((0,e._)`${$} <= ${d.length}`);else if(typeof f=="object"&&!(0,t.alwaysValidSchema)(S,f)){const v=c.var("valid",(0,e._)`${$} <= ${d.length}`);c.if((0,e.not)(v),()=>_(v)),s.ok(v)}function _(v){c.forRange("i",d.length,$,b=>{s.subschema({keyword:h,dataProp:b,dataPropType:t.Type.Num},v),S.allErrors||c.if((0,e.not)(v),()=>c.break())})}}return Ie.validateAdditionalItems=a,Ie.default=r,Ie}var ft={},qe={},mn;function fs(){if(mn)return qe;mn=1,Object.defineProperty(qe,"__esModule",{value:!0}),qe.validateTuple=void 0;const e=J(),t=Y(),n=ve(),r={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(s){const{schema:d,it:c}=s;if(Array.isArray(d))return a(s,"additionalItems",d);c.items=!0,!(0,t.alwaysValidSchema)(c,d)&&s.ok((0,n.validateArray)(s))}};function a(s,d,c=s.schema){const{gen:f,parentSchema:m,data:h,keyword:S,it:$}=s;b(m),$.opts.unevaluated&&c.length&&$.items!==!0&&($.items=t.mergeEvaluated.items(f,c.length,$.items));const _=f.name("valid"),v=f.const("len",(0,e._)`${h}.length`);c.forEach((u,p)=>{(0,t.alwaysValidSchema)($,u)||(f.if((0,e._)`${v} > ${p}`,()=>s.subschema({keyword:S,schemaProp:p,dataProp:p},_)),s.ok(_))});function b(u){const{opts:p,errSchemaPath:o}=$,l=c.length,w=l===u.minItems&&(l===u.maxItems||u[d]===!1);if(p.strictTuples&&!w){const i=`"${S}" is ${l}-tuple, but minItems or maxItems/${d} are not specified or different at path "${o}"`;(0,t.checkStrictMode)($,i,p.strictTuples)}}}return qe.validateTuple=a,qe.default=r,qe}var yn;function qo(){if(yn)return ft;yn=1,Object.defineProperty(ft,"__esModule",{value:!0});const e=fs(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:n=>(0,e.validateTuple)(n,"items")};return ft.default=t,ft}var ht={},vn;function Co(){if(vn)return ht;vn=1,Object.defineProperty(ht,"__esModule",{value:!0});const e=J(),t=Y(),n=ve(),r=ds(),s={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:d}})=>(0,e.str)`must NOT have more than ${d} items`,params:({params:{len:d}})=>(0,e._)`{limit: ${d}}`},code(d){const{schema:c,parentSchema:f,it:m}=d,{prefixItems:h}=f;m.items=!0,!(0,t.alwaysValidSchema)(m,c)&&(h?(0,r.validateAdditionalItems)(d,h):d.ok((0,n.validateArray)(d)))}};return ht.default=s,ht}var pt={},gn;function Mo(){if(gn)return pt;gn=1,Object.defineProperty(pt,"__esModule",{value:!0});const e=J(),t=Y(),r={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:a,max:s}})=>s===void 0?(0,e.str)`must contain at least ${a} valid item(s)`:(0,e.str)`must contain at least ${a} and no more than ${s} valid item(s)`,params:({params:{min:a,max:s}})=>s===void 0?(0,e._)`{minContains: ${a}}`:(0,e._)`{minContains: ${a}, maxContains: ${s}}`},code(a){const{gen:s,schema:d,parentSchema:c,data:f,it:m}=a;let h,S;const{minContains:$,maxContains:_}=c;m.opts.next?(h=$===void 0?1:$,S=_):h=1;const v=s.const("len",(0,e._)`${f}.length`);if(a.setParams({min:h,max:S}),S===void 0&&h===0){(0,t.checkStrictMode)(m,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(S!==void 0&&h>S){(0,t.checkStrictMode)(m,'"minContains" > "maxContains" is always invalid'),a.fail();return}if((0,t.alwaysValidSchema)(m,d)){let l=(0,e._)`${v} >= ${h}`;S!==void 0&&(l=(0,e._)`${l} && ${v} <= ${S}`),a.pass(l);return}m.items=!0;const b=s.name("valid");S===void 0&&h===1?p(b,()=>s.if(b,()=>s.break())):h===0?(s.let(b,!0),S!==void 0&&s.if((0,e._)`${f}.length > 0`,u)):(s.let(b,!1),u()),a.result(b,()=>a.reset());function u(){const l=s.name("_valid"),w=s.let("count",0);p(l,()=>s.if(l,()=>o(w)))}function p(l,w){s.forRange("i",0,v,i=>{a.subschema({keyword:"contains",dataProp:i,dataPropType:t.Type.Num,compositeRule:!0},l),w()})}function o(l){s.code((0,e._)`${l}++`),S===void 0?s.if((0,e._)`${l} >= ${h}`,()=>s.assign(b,!0).break()):(s.if((0,e._)`${l} > ${S}`,()=>s.assign(b,!1).break()),h===1?s.assign(b,!0):s.if((0,e._)`${l} >= ${h}`,()=>s.assign(b,!0)))}}};return pt.default=r,pt}var er={},_n;function Do(){return _n||(_n=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=J(),n=Y(),r=ve();e.error={message:({params:{property:f,depsCount:m,deps:h}})=>{const S=m===1?"property":"properties";return(0,t.str)`must have ${S} ${h} when property ${f} is present`},params:({params:{property:f,depsCount:m,deps:h,missingProperty:S}})=>(0,t._)`{property: ${f},
6
+ missingProperty: ${S},
7
+ depsCount: ${m},
8
+ deps: ${h}}`};const a={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(f){const[m,h]=s(f);d(f,m),c(f,h)}};function s({schema:f}){const m={},h={};for(const S in f){if(S==="__proto__")continue;const $=Array.isArray(f[S])?m:h;$[S]=f[S]}return[m,h]}function d(f,m=f.schema){const{gen:h,data:S,it:$}=f;if(Object.keys(m).length===0)return;const _=h.let("missing");for(const v in m){const b=m[v];if(b.length===0)continue;const u=(0,r.propertyInData)(h,S,v,$.opts.ownProperties);f.setParams({property:v,depsCount:b.length,deps:b.join(", ")}),$.allErrors?h.if(u,()=>{for(const p of b)(0,r.checkReportMissingProp)(f,p)}):(h.if((0,t._)`${u} && (${(0,r.checkMissingProp)(f,b,_)})`),(0,r.reportMissingProp)(f,_),h.else())}}e.validatePropertyDeps=d;function c(f,m=f.schema){const{gen:h,data:S,keyword:$,it:_}=f,v=h.name("valid");for(const b in m)(0,n.alwaysValidSchema)(_,m[b])||(h.if((0,r.propertyInData)(h,S,b,_.opts.ownProperties),()=>{const u=f.subschema({keyword:$,schemaProp:b},v);f.mergeValidEvaluated(u,v)},()=>h.var(v,!0)),f.ok(v))}e.validateSchemaDeps=c,e.default=a})(er)),er}var mt={},$n;function Ao(){if($n)return mt;$n=1,Object.defineProperty(mt,"__esModule",{value:!0});const e=J(),t=Y(),r={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:a})=>(0,e._)`{propertyName: ${a.propertyName}}`},code(a){const{gen:s,schema:d,data:c,it:f}=a;if((0,t.alwaysValidSchema)(f,d))return;const m=s.name("valid");s.forIn("key",c,h=>{a.setParams({propertyName:h}),a.subschema({keyword:"propertyNames",data:h,dataTypes:["string"],propertyName:h,compositeRule:!0},m),s.if((0,e.not)(m),()=>{a.error(!0),f.allErrors||s.break()})}),a.ok(m)}};return mt.default=r,mt}var yt={},wn;function hs(){if(wn)return yt;wn=1,Object.defineProperty(yt,"__esModule",{value:!0});const e=ve(),t=J(),n=ke(),r=Y(),s={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:d})=>(0,t._)`{additionalProperty: ${d.additionalProperty}}`},code(d){const{gen:c,schema:f,parentSchema:m,data:h,errsCount:S,it:$}=d;if(!S)throw new Error("ajv implementation error");const{allErrors:_,opts:v}=$;if($.props=!0,v.removeAdditional!=="all"&&(0,r.alwaysValidSchema)($,f))return;const b=(0,e.allSchemaProperties)(m.properties),u=(0,e.allSchemaProperties)(m.patternProperties);p(),d.ok((0,t._)`${S} === ${n.default.errors}`);function p(){c.forIn("key",h,g=>{!b.length&&!u.length?w(g):c.if(o(g),()=>w(g))})}function o(g){let E;if(b.length>8){const k=(0,r.schemaRefOrVal)($,m.properties,"properties");E=(0,e.isOwnProperty)(c,k,g)}else b.length?E=(0,t.or)(...b.map(k=>(0,t._)`${g} === ${k}`)):E=t.nil;return u.length&&(E=(0,t.or)(E,...u.map(k=>(0,t._)`${(0,e.usePattern)(d,k)}.test(${g})`))),(0,t.not)(E)}function l(g){c.code((0,t._)`delete ${h}[${g}]`)}function w(g){if(v.removeAdditional==="all"||v.removeAdditional&&f===!1){l(g);return}if(f===!1){d.setParams({additionalProperty:g}),d.error(),_||c.break();return}if(typeof f=="object"&&!(0,r.alwaysValidSchema)($,f)){const E=c.name("valid");v.removeAdditional==="failing"?(i(g,E,!1),c.if((0,t.not)(E),()=>{d.reset(),l(g)})):(i(g,E),_||c.if((0,t.not)(E),()=>c.break()))}}function i(g,E,k){const j={keyword:"additionalProperties",dataProp:g,dataPropType:r.Type.Str};k===!1&&Object.assign(j,{compositeRule:!0,createErrors:!1,allErrors:!1}),d.subschema(j,E)}}};return yt.default=s,yt}var vt={},bn;function Vo(){if(bn)return vt;bn=1,Object.defineProperty(vt,"__esModule",{value:!0});const e=Mt(),t=ve(),n=Y(),r=hs(),a={keyword:"properties",type:"object",schemaType:"object",code(s){const{gen:d,schema:c,parentSchema:f,data:m,it:h}=s;h.opts.removeAdditional==="all"&&f.additionalProperties===void 0&&r.default.code(new e.KeywordCxt(h,r.default,"additionalProperties"));const S=(0,t.allSchemaProperties)(c);for(const u of S)h.definedProperties.add(u);h.opts.unevaluated&&S.length&&h.props!==!0&&(h.props=n.mergeEvaluated.props(d,(0,n.toHash)(S),h.props));const $=S.filter(u=>!(0,n.alwaysValidSchema)(h,c[u]));if($.length===0)return;const _=d.name("valid");for(const u of $)v(u)?b(u):(d.if((0,t.propertyInData)(d,m,u,h.opts.ownProperties)),b(u),h.allErrors||d.else().var(_,!0),d.endIf()),s.it.definedProperties.add(u),s.ok(_);function v(u){return h.opts.useDefaults&&!h.compositeRule&&c[u].default!==void 0}function b(u){s.subschema({keyword:"properties",schemaProp:u,dataProp:u},_)}}};return vt.default=a,vt}var gt={},Sn;function Lo(){if(Sn)return gt;Sn=1,Object.defineProperty(gt,"__esModule",{value:!0});const e=ve(),t=J(),n=Y(),r=Y(),a={keyword:"patternProperties",type:"object",schemaType:"object",code(s){const{gen:d,schema:c,data:f,parentSchema:m,it:h}=s,{opts:S}=h,$=(0,e.allSchemaProperties)(c),_=$.filter(w=>(0,n.alwaysValidSchema)(h,c[w]));if($.length===0||_.length===$.length&&(!h.opts.unevaluated||h.props===!0))return;const v=S.strictSchema&&!S.allowMatchingProperties&&m.properties,b=d.name("valid");h.props!==!0&&!(h.props instanceof t.Name)&&(h.props=(0,r.evaluatedPropsToName)(d,h.props));const{props:u}=h;p();function p(){for(const w of $)v&&o(w),h.allErrors?l(w):(d.var(b,!0),l(w),d.if(b))}function o(w){for(const i in v)new RegExp(w).test(i)&&(0,n.checkStrictMode)(h,`property ${i} matches pattern ${w} (use allowMatchingProperties)`)}function l(w){d.forIn("key",f,i=>{d.if((0,t._)`${(0,e.usePattern)(s,w)}.test(${i})`,()=>{const g=_.includes(w);g||s.subschema({keyword:"patternProperties",schemaProp:w,dataProp:i,dataPropType:r.Type.Str},b),h.opts.unevaluated&&u!==!0?d.assign((0,t._)`${u}[${i}]`,!0):!g&&!h.allErrors&&d.if((0,t.not)(b),()=>d.break())})})}}};return gt.default=a,gt}var _t={},En;function Fo(){if(En)return _t;En=1,Object.defineProperty(_t,"__esModule",{value:!0});const e=Y(),t={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(n){const{gen:r,schema:a,it:s}=n;if((0,e.alwaysValidSchema)(s,a)){n.fail();return}const d=r.name("valid");n.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},d),n.failResult(d,()=>n.reset(),()=>n.error())},error:{message:"must NOT be valid"}};return _t.default=t,_t}var $t={},Pn;function Uo(){if(Pn)return $t;Pn=1,Object.defineProperty($t,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:ve().validateUnion,error:{message:"must match a schema in anyOf"}};return $t.default=t,$t}var wt={},kn;function zo(){if(kn)return wt;kn=1,Object.defineProperty(wt,"__esModule",{value:!0});const e=J(),t=Y(),r={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:a})=>(0,e._)`{passingSchemas: ${a.passing}}`},code(a){const{gen:s,schema:d,parentSchema:c,it:f}=a;if(!Array.isArray(d))throw new Error("ajv implementation error");if(f.opts.discriminator&&c.discriminator)return;const m=d,h=s.let("valid",!1),S=s.let("passing",null),$=s.name("_valid");a.setParams({passing:S}),s.block(_),a.result(h,()=>a.reset(),()=>a.error(!0));function _(){m.forEach((v,b)=>{let u;(0,t.alwaysValidSchema)(f,v)?s.var($,!0):u=a.subschema({keyword:"oneOf",schemaProp:b,compositeRule:!0},$),b>0&&s.if((0,e._)`${$} && ${h}`).assign(h,!1).assign(S,(0,e._)`[${S}, ${b}]`).else(),s.if($,()=>{s.assign(h,!0),s.assign(S,b),u&&a.mergeEvaluated(u,e.Name)})})}}};return wt.default=r,wt}var bt={},On;function Ko(){if(On)return bt;On=1,Object.defineProperty(bt,"__esModule",{value:!0});const e=Y(),t={keyword:"allOf",schemaType:"array",code(n){const{gen:r,schema:a,it:s}=n;if(!Array.isArray(a))throw new Error("ajv implementation error");const d=r.name("valid");a.forEach((c,f)=>{if((0,e.alwaysValidSchema)(s,c))return;const m=n.subschema({keyword:"allOf",schemaProp:f},d);n.ok(d),n.mergeEvaluated(m)})}};return bt.default=t,bt}var St={},jn;function Ho(){if(jn)return St;jn=1,Object.defineProperty(St,"__esModule",{value:!0});const e=J(),t=Y(),r={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:s})=>(0,e.str)`must match "${s.ifClause}" schema`,params:({params:s})=>(0,e._)`{failingKeyword: ${s.ifClause}}`},code(s){const{gen:d,parentSchema:c,it:f}=s;c.then===void 0&&c.else===void 0&&(0,t.checkStrictMode)(f,'"if" without "then" and "else" is ignored');const m=a(f,"then"),h=a(f,"else");if(!m&&!h)return;const S=d.let("valid",!0),$=d.name("_valid");if(_(),s.reset(),m&&h){const b=d.let("ifClause");s.setParams({ifClause:b}),d.if($,v("then",b),v("else",b))}else m?d.if($,v("then")):d.if((0,e.not)($),v("else"));s.pass(S,()=>s.error(!0));function _(){const b=s.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},$);s.mergeEvaluated(b)}function v(b,u){return()=>{const p=s.subschema({keyword:b},$);d.assign(S,$),s.mergeValidEvaluated(p,S),u?d.assign(u,(0,e._)`${b}`):s.setParams({ifClause:b})}}}};function a(s,d){const c=s.schema[d];return c!==void 0&&!(0,t.alwaysValidSchema)(s,c)}return St.default=r,St}var Et={},Rn;function Go(){if(Rn)return Et;Rn=1,Object.defineProperty(Et,"__esModule",{value:!0});const e=Y(),t={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:n,parentSchema:r,it:a}){r.if===void 0&&(0,e.checkStrictMode)(a,`"${n}" without "if" is ignored`)}};return Et.default=t,Et}var Nn;function Wo(){if(Nn)return dt;Nn=1,Object.defineProperty(dt,"__esModule",{value:!0});const e=ds(),t=qo(),n=fs(),r=Co(),a=Mo(),s=Do(),d=Ao(),c=hs(),f=Vo(),m=Lo(),h=Fo(),S=Uo(),$=zo(),_=Ko(),v=Ho(),b=Go();function u(p=!1){const o=[h.default,S.default,$.default,_.default,v.default,b.default,d.default,c.default,s.default,f.default,m.default];return p?o.push(t.default,r.default):o.push(e.default,n.default),o.push(a.default),o}return dt.default=u,dt}var Pt={},kt={},Tn;function Jo(){if(Tn)return kt;Tn=1,Object.defineProperty(kt,"__esModule",{value:!0});const e=J(),n={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:r})=>(0,e.str)`must match format "${r}"`,params:({schemaCode:r})=>(0,e._)`{format: ${r}}`},code(r,a){const{gen:s,data:d,$data:c,schema:f,schemaCode:m,it:h}=r,{opts:S,errSchemaPath:$,schemaEnv:_,self:v}=h;if(!S.validateFormats)return;c?b():u();function b(){const p=s.scopeValue("formats",{ref:v.formats,code:S.code.formats}),o=s.const("fDef",(0,e._)`${p}[${m}]`),l=s.let("fType"),w=s.let("format");s.if((0,e._)`typeof ${o} == "object" && !(${o} instanceof RegExp)`,()=>s.assign(l,(0,e._)`${o}.type || "string"`).assign(w,(0,e._)`${o}.validate`),()=>s.assign(l,(0,e._)`"string"`).assign(w,o)),r.fail$data((0,e.or)(i(),g()));function i(){return S.strictSchema===!1?e.nil:(0,e._)`${m} && !${w}`}function g(){const E=_.$async?(0,e._)`(${o}.async ? await ${w}(${d}) : ${w}(${d}))`:(0,e._)`${w}(${d})`,k=(0,e._)`(typeof ${w} == "function" ? ${E} : ${w}.test(${d}))`;return(0,e._)`${w} && ${w} !== true && ${l} === ${a} && !${k}`}}function u(){const p=v.formats[f];if(!p){i();return}if(p===!0)return;const[o,l,w]=g(p);o===a&&r.pass(E());function i(){if(S.strictSchema===!1){v.logger.warn(k());return}throw new Error(k());function k(){return`unknown format "${f}" ignored in schema at path "${$}"`}}function g(k){const j=k instanceof RegExp?(0,e.regexpCode)(k):S.code.formats?(0,e._)`${S.code.formats}${(0,e.getProperty)(f)}`:void 0,M=s.scopeValue("formats",{key:f,ref:k,code:j});return typeof k=="object"&&!(k instanceof RegExp)?[k.type||"string",k.validate,(0,e._)`${M}.validate`]:["string",k,M]}function E(){if(typeof p=="object"&&!(p instanceof RegExp)&&p.async){if(!_.$async)throw new Error("async format in sync schema");return(0,e._)`await ${w}(${d})`}return typeof l=="function"?(0,e._)`${w}(${d})`:(0,e._)`${w}.test(${d})`}}}};return kt.default=n,kt}var In;function Bo(){if(In)return Pt;In=1,Object.defineProperty(Pt,"__esModule",{value:!0});const t=[Jo().default];return Pt.default=t,Pt}var Re={},qn;function Xo(){return qn||(qn=1,Object.defineProperty(Re,"__esModule",{value:!0}),Re.contentVocabulary=Re.metadataVocabulary=void 0,Re.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],Re.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),Re}var Cn;function Yo(){if(Cn)return Xe;Cn=1,Object.defineProperty(Xe,"__esModule",{value:!0});const e=$o(),t=Io(),n=Wo(),r=Bo(),a=Xo(),s=[e.default,t.default,(0,n.default)(),r.default,a.metadataVocabulary,a.contentVocabulary];return Xe.default=s,Xe}var Ot={},Fe={},Mn;function Qo(){if(Mn)return Fe;Mn=1,Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.DiscrError=void 0;var e;return(function(t){t.Tag="tag",t.Mapping="mapping"})(e||(Fe.DiscrError=e={})),Fe}var Dn;function Zo(){if(Dn)return Ot;Dn=1,Object.defineProperty(Ot,"__esModule",{value:!0});const e=J(),t=Qo(),n=mr(),r=Dt(),a=Y(),d={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:c,tagName:f}})=>c===t.DiscrError.Tag?`tag "${f}" must be string`:`value of tag "${f}" must be in oneOf`,params:({params:{discrError:c,tag:f,tagName:m}})=>(0,e._)`{error: ${c}, tag: ${m}, tagValue: ${f}}`},code(c){const{gen:f,data:m,schema:h,parentSchema:S,it:$}=c,{oneOf:_}=S;if(!$.opts.discriminator)throw new Error("discriminator: requires discriminator option");const v=h.propertyName;if(typeof v!="string")throw new Error("discriminator: requires propertyName");if(h.mapping)throw new Error("discriminator: mapping is not supported");if(!_)throw new Error("discriminator: requires oneOf keyword");const b=f.let("valid",!1),u=f.const("tag",(0,e._)`${m}${(0,e.getProperty)(v)}`);f.if((0,e._)`typeof ${u} == "string"`,()=>p(),()=>c.error(!1,{discrError:t.DiscrError.Tag,tag:u,tagName:v})),c.ok(b);function p(){const w=l();f.if(!1);for(const i in w)f.elseIf((0,e._)`${u} === ${i}`),f.assign(b,o(w[i]));f.else(),c.error(!1,{discrError:t.DiscrError.Mapping,tag:u,tagName:v}),f.endIf()}function o(w){const i=f.name("valid"),g=c.subschema({keyword:"oneOf",schemaProp:w},i);return c.mergeEvaluated(g,e.Name),i}function l(){var w;const i={},g=k(S);let E=!0;for(let A=0;A<_.length;A++){let U=_[A];if(U?.$ref&&!(0,a.schemaHasRulesButRef)(U,$.self.RULES)){const H=U.$ref;if(U=n.resolveRef.call($.self,$.schemaEnv.root,$.baseId,H),U instanceof n.SchemaEnv&&(U=U.schema),U===void 0)throw new r.default($.opts.uriResolver,$.baseId,H)}const L=(w=U?.properties)===null||w===void 0?void 0:w[v];if(typeof L!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${v}"`);E=E&&(g||k(U)),j(L,A)}if(!E)throw new Error(`discriminator: "${v}" must be required`);return i;function k({required:A}){return Array.isArray(A)&&A.includes(v)}function j(A,U){if(A.const)M(A.const,U);else if(A.enum)for(const L of A.enum)M(L,U);else throw new Error(`discriminator: "properties/${v}" must have "const" or "enum"`)}function M(A,U){if(typeof A!="string"||A in i)throw new Error(`discriminator: "${v}" values must be unique strings`);i[A]=U}}}};return Ot.default=d,Ot}const xo="http://json-schema.org/draft-07/schema#",ei="http://json-schema.org/draft-07/schema#",ti="Core schema meta-schema",ri={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},ni=["object","boolean"],si={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},oi={$schema:xo,$id:ei,title:ti,definitions:ri,type:ni,properties:si,default:!0};var An;function ii(){return An||(An=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const n=vo(),r=Yo(),a=Zo(),s=oi,d=["/properties"],c="http://json-schema.org/draft-07/schema";class f extends n.default{_addVocabularies(){super._addVocabularies(),r.default.forEach(v=>this.addVocabulary(v)),this.opts.discriminator&&this.addKeyword(a.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const v=this.opts.$data?this.$dataMetaSchema(s,d):s;this.addMetaSchema(v,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}t.Ajv=f,e.exports=t=f,e.exports.Ajv=f,Object.defineProperty(t,"__esModule",{value:!0}),t.default=f;var m=Mt();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return m.KeywordCxt}});var h=J();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return h._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return h.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return h.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return h.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return h.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return h.CodeGen}});var S=pr();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return S.default}});var $=Dt();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return $.default}})})(He,He.exports)),He.exports}var ai=ii();const ui=hr(ai);var jt={exports:{}},Vn;function ci(){return Vn||(Vn=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n={},r={timestamp:()=>()=>Date.now(),datetime:()=>()=>new Date().toISOString(),date:()=>()=>new Date().toISOString().slice(0,10),time:()=>()=>new Date().toISOString().slice(11),random:()=>()=>Math.random(),randomint:h=>{var S;const $=(S=h?.max)!==null&&S!==void 0?S:2;return()=>Math.floor(Math.random()*$)},seq:h=>{var S;const $=(S=h?.name)!==null&&S!==void 0?S:"";return n[$]||(n[$]=0),()=>n[$]++}},a=Object.assign(s,{DEFAULTS:r});function s(){return{keyword:"dynamicDefaults",type:"object",schemaType:["string","object"],modifying:!0,valid:!0,compile(h,S,$){if(!$.opts.useDefaults||$.compositeRule)return()=>!0;const _={};for(const b in h)_[b]=d(h[b]);const v=$.opts.useDefaults==="empty";return b=>{for(const u in h)(b[u]===void 0||v&&(b[u]===null||b[u]===""))&&(b[u]=_[u]());return!0}},metaSchema:{type:"object",additionalProperties:{anyOf:[{type:"string"},{type:"object",additionalProperties:!1,required:["func","args"],properties:{func:{type:"string"},args:{type:"object"}}}]}}}}function d(h){return typeof h=="object"?c(h):f(h)}function c({func:h,args:S}){const $=r[h];return m(h,$),$(S)}function f(h=""){const S=r[h];return m(h,S),S()}function m(h,S){if(!S)throw new Error(`invalid "dynamicDefaults" keyword property value: ${h}`)}t.default=a,e.exports=a})(jt,jt.exports)),jt.exports}var li=ci();const ps=hr(li),fe={fatal:0,error:0,warn:1,log:2,info:3,success:3,fail:3,debug:4,trace:5,verbose:Number.POSITIVE_INFINITY},Ln={silent:{level:-1},fatal:{level:fe.fatal},error:{level:fe.error},warn:{level:fe.warn},log:{level:fe.log},info:{level:fe.info},success:{level:fe.success},fail:{level:fe.fail},ready:{level:fe.info},start:{level:fe.info},box:{level:fe.info},debug:{level:fe.debug},trace:{level:fe.trace},verbose:{level:fe.verbose}};function tr(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 cr(e,t,n=".",r){if(!tr(t))return cr(e,{},n);const a=Object.assign({},t);for(const s in e){if(s==="__proto__"||s==="constructor")continue;const d=e[s];d!=null&&(Array.isArray(d)&&Array.isArray(a[s])?a[s]=[...d,...a[s]]:tr(d)&&tr(a[s])?a[s]=cr(d,a[s],(n?`${n}.`:"")+s.toString()):a[s]=d)}return a}function di(e){return(...t)=>t.reduce((n,r)=>cr(n,r,""),{})}const fi=di();function hi(e){return Object.prototype.toString.call(e)==="[object Object]"}function pi(e){return!(!hi(e)||!e.message&&!e.args||e.stack)}let rr=!1;const Fn=[];class ie{options;_lastLog;_mockFn;constructor(t={}){const n=t.types||Ln;this.options=fi({...t,defaults:{...t.defaults},level:nr(t.level,n),reporters:[...t.reporters||[]]},{types:Ln,throttle:1e3,throttleMin:5,formatOptions:{date:!0,colors:!1,compact:!0}});for(const r in n){const a={type:r,...this.options.defaults,...n[r]};this[r]=this._wrapLogFn(a),this[r].raw=this._wrapLogFn(a,!0)}this.options.mockFn&&this.mockTypes(),this._lastLog={}}get level(){return this.options.level}set level(t){this.options.level=nr(t,this.options.types,this.options.level)}prompt(t,n){if(!this.options.prompt)throw new Error("prompt is not supported!");return this.options.prompt(t,n)}create(t){const n=new ie({...this.options,...t});return this._mockFn&&n.mockTypes(this._mockFn),n}withDefaults(t){return this.create({...this.options,defaults:{...this.options.defaults,...t}})}withTag(t){return this.withDefaults({tag:this.options.defaults.tag?this.options.defaults.tag+":"+t:t})}addReporter(t){return this.options.reporters.push(t),this}removeReporter(t){if(t){const n=this.options.reporters.indexOf(t);if(n!==-1)return this.options.reporters.splice(n,1)}else this.options.reporters.splice(0);return this}setReporters(t){return this.options.reporters=Array.isArray(t)?t:[t],this}wrapAll(){this.wrapConsole(),this.wrapStd()}restoreAll(){this.restoreConsole(),this.restoreStd()}wrapConsole(){for(const t in this.options.types)console["__"+t]||(console["__"+t]=console[t]),console[t]=this[t].raw}restoreConsole(){for(const t in this.options.types)console["__"+t]&&(console[t]=console["__"+t],delete console["__"+t])}wrapStd(){this._wrapStream(this.options.stdout,"log"),this._wrapStream(this.options.stderr,"log")}_wrapStream(t,n){t&&(t.__write||(t.__write=t.write),t.write=r=>{this[n].raw(String(r).trim())})}restoreStd(){this._restoreStream(this.options.stdout),this._restoreStream(this.options.stderr)}_restoreStream(t){t&&t.__write&&(t.write=t.__write,delete t.__write)}pauseLogs(){rr=!0}resumeLogs(){rr=!1;const t=Fn.splice(0);for(const n of t)n[0]._logFn(n[1],n[2])}mockTypes(t){const n=t||this.options.mockFn;if(this._mockFn=n,typeof n=="function")for(const r in this.options.types)this[r]=n(r,this.options.types[r])||this[r],this[r].raw=this[r]}_wrapLogFn(t,n){return(...r)=>{if(rr){Fn.push([this,t,r,n]);return}return this._logFn(t,r,n)}}_logFn(t,n,r){if((t.level||0)>this.level)return!1;const a={date:new Date,args:[],...t,level:nr(t.level,this.options.types)};!r&&n.length===1&&pi(n[0])?Object.assign(a,n[0]):a.args=[...n],a.message&&(a.args.unshift(a.message),delete a.message),a.additional&&(Array.isArray(a.additional)||(a.additional=a.additional.split(`
9
+ `)),a.args.push(`
10
+ `+a.additional.join(`
11
+ `)),delete a.additional),a.type=typeof a.type=="string"?a.type.toLowerCase():"log",a.tag=typeof a.tag=="string"?a.tag:"";const s=(c=!1)=>{const f=(this._lastLog.count||0)-this.options.throttleMin;if(this._lastLog.object&&f>0){const m=[...this._lastLog.object.args];f>1&&m.push(`(repeated ${f} times)`),this._log({...this._lastLog.object,args:m}),this._lastLog.count=1}c&&(this._lastLog.object=a,this._log(a))};clearTimeout(this._lastLog.timeout);const d=this._lastLog.time&&a.date?a.date.getTime()-this._lastLog.time.getTime():0;if(this._lastLog.time=a.date,d<this.options.throttle)try{const c=JSON.stringify([a.type,a.tag,a.args]),f=this._lastLog.serialized===c;if(this._lastLog.serialized=c,f&&(this._lastLog.count=(this._lastLog.count||0)+1,this._lastLog.count>this.options.throttleMin)){this._lastLog.timeout=setTimeout(s,this.options.throttle);return}}catch{}s(!0)}_log(t){for(const n of this.options.reporters)n.log(t,{options:this.options})}}function nr(e,t={},n=3){return e===void 0?n:typeof e=="number"?e:t[e]&&t[e].level!==void 0?t[e].level:n}ie.prototype.add=ie.prototype.addReporter;ie.prototype.remove=ie.prototype.removeReporter;ie.prototype.clear=ie.prototype.removeReporter;ie.prototype.withScope=ie.prototype.withTag;ie.prototype.mock=ie.prototype.mockTypes;ie.prototype.pause=ie.prototype.pauseLogs;ie.prototype.resume=ie.prototype.resumeLogs;function mi(e={}){return new ie(e)}class yi{options;defaultColor;levelColorMap;typeColorMap;constructor(t){this.options={...t},this.defaultColor="#7f8c8d",this.levelColorMap={0:"#c0392b",1:"#f39c12",3:"#00BCD4"},this.typeColorMap={success:"#2ecc71"}}_getLogFn(t){return t<1?console.__error||console.error:t===1?console.__warn||console.warn:console.__log||console.log}log(t){const n=this._getLogFn(t.level),r=t.type==="log"?"":t.type,a=t.tag||"",d=`
12
+ background: ${this.typeColorMap[t.type]||this.levelColorMap[t.level]||this.defaultColor};
13
+ border-radius: 0.5em;
14
+ color: white;
15
+ font-weight: bold;
16
+ padding: 2px 0.5em;
17
+ `,c=`%c${[a,r].filter(Boolean).join(":")}`;typeof t.args[0]=="string"?n(`${c}%c ${t.args[0]}`,d,"",...t.args.slice(1)):n(c,d,...t.args)}}function vi(e={}){return mi({reporters:e.reporters||[new yi({})],prompt(n,r={}){return r.type==="confirm"?Promise.resolve(confirm(n)):Promise.resolve(prompt(n))},...e})}const gi=vi();let ms;const At=e=>ms=e,ys=Symbol();function lr(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var ze;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(ze||(ze={}));function Fi(){const e=Zn(!0),t=e.run(()=>be({}));let n=[],r=[];const a=xn({install(s){At(a),a._a=s,s.provide(ys,a),s.config.globalProperties.$pinia=a,r.forEach(d=>n.push(d)),r=[]},use(s){return this._a?n.push(s):r.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return a}const vs=()=>{};function Un(e,t,n,r=vs){e.add(t);const a=()=>{e.delete(t)&&r()};return!n&&Bn()&&Xn(a),a}function Ce(e,...t){e.forEach(n=>{n(...t)})}const _i=e=>e(),zn=Symbol(),sr=Symbol();function dr(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],a=e[n];lr(a)&&lr(r)&&e.hasOwnProperty(n)&&!Se(r)&&!fr(r)?e[n]=dr(a,r):e[n]=r}return e}const $i=Symbol();function wi(e){return!lr(e)||!Object.prototype.hasOwnProperty.call(e,$i)}const{assign:Pe}=Object;function bi(e){return!!(Se(e)&&e.effect)}function Si(e,t,n,r){const{state:a,actions:s,getters:d}=t,c=n.state.value[e];let f;function m(){c||(n.state.value[e]=a?a():{});const h=Ps(n.state.value[e]);return Pe(h,s,Object.keys(d||{}).reduce((S,$)=>(S[$]=xn(pe(()=>{At(n);const _=n._s.get(e);return d[$].call(_,_)})),S),{}))}return f=gs(e,m,t,n,r,!0),f}function gs(e,t,n={},r,a,s){let d;const c=Pe({actions:{}},n),f={deep:!0};let m,h,S=new Set,$=new Set,_;const v=r.state.value[e];!s&&!v&&(r.state.value[e]={}),be({});let b;function u(k){let j;m=h=!1,typeof k=="function"?(k(r.state.value[e]),j={type:ze.patchFunction,storeId:e,events:_}):(dr(r.state.value[e],k),j={type:ze.patchObject,payload:k,storeId:e,events:_});const M=b=Symbol();Jn().then(()=>{b===M&&(m=!0)}),h=!0,Ce(S,j,r.state.value[e])}const p=s?function(){const{state:j}=n,M=j?j():{};this.$patch(A=>{Pe(A,M)})}:vs;function o(){d.stop(),S.clear(),$.clear(),r._s.delete(e)}const l=(k,j="")=>{if(zn in k)return k[sr]=j,k;const M=function(){At(r);const A=Array.from(arguments),U=new Set,L=new Set;function H(te){U.add(te)}function B(te){L.add(te)}Ce($,{args:A,name:M[sr],store:i,after:H,onError:B});let ee;try{ee=k.apply(this&&this.$id===e?this:i,A)}catch(te){throw Ce(L,te),te}return ee instanceof Promise?ee.then(te=>(Ce(U,te),te)).catch(te=>(Ce(L,te),Promise.reject(te))):(Ce(U,ee),ee)};return M[zn]=!0,M[sr]=j,M},w={_p:r,$id:e,$onAction:Un.bind(null,$),$patch:u,$reset:p,$subscribe(k,j={}){const M=Un(S,k,j.detached,()=>A()),A=d.run(()=>Ne(()=>r.state.value[e],U=>{(j.flush==="sync"?h:m)&&k({storeId:e,type:ze.direct,events:_},U)},Pe({},f,j)));return M},$dispose:o},i=Ke(w);r._s.set(e,i);const E=(r._a&&r._a.runWithContext||_i)(()=>r._e.run(()=>(d=Zn()).run(()=>t({action:l}))));for(const k in E){const j=E[k];if(Se(j)&&!bi(j)||fr(j))s||(v&&wi(j)&&(Se(j)?j.value=v[k]:dr(j,v[k])),r.state.value[e][k]=j);else if(typeof j=="function"){const M=l(j,k);E[k]=M,c.actions[k]=j}}return Pe(i,E),Pe(es(i),E),Object.defineProperty(i,"$state",{get:()=>r.state.value[e],set:k=>{u(j=>{Pe(j,k)})}}),r._p.forEach(k=>{Pe(i,d.run(()=>k({store:i,app:r._a,pinia:r,options:c})))}),v&&s&&n.hydrate&&n.hydrate(i.$state,v),m=!0,h=!0,i}function Ei(e,t,n){let r;const a=typeof t=="function";r=a?n:t;function s(d,c){const f=Ss();return d=d||(f?Es(ys,null):null),d&&At(d),d=ms,d._s.has(e)||(a?gs(e,t,r,d):Si(e,r,d)),d._s.get(e)}return s.$id=e,s}function Ui(e){const t=es(e),n={};for(const r in t){const a=t[r];a.effect?n[r]=pe({get:()=>e[r],set(s){e[r]=s}}):(Se(a)||fr(a))&&(n[r]=Qn(e,r))}return n}const Pi={$id:"credentials",additionalProperties:{properties:{accessKeyId:{default:null,nullable:!0,type:"string"},Bucket:{default:null,nullable:!0,type:"string"},endpoint:{default:null,nullable:!0,type:"string"},region:{default:null,nullable:!0,type:"string"},secretAccessKey:{default:null,nullable:!0,type:"string"}},type:"object"},type:"object"},ki={$id:"feed",additionalProperties:!1,properties:{feed_url:{type:"string"},home_page_url:{type:"string"},items:{default:[],items:{additionalProperties:!1,dynamicDefaults:{date_published:"datetime",id:"uuid"},properties:{attachments:{default:[],items:{additionalProperties:!1,properties:{mime_type:{default:"",type:"string"},url:{default:"",type:"string"}},type:"object"},type:"array"},content_html:{default:"",type:"string"},date_published:{type:"string"},id:{type:"string"},title:{default:"",type:"string"},url:{type:"string"}},type:"object"},type:"array"},title:{default:"",type:"string"},version:{default:"https://jsonfeed.org/version/1",enum:["https://jsonfeed.org/version/1","https://jsonfeed.org/version/1.1"],type:"string"}},type:"object"},Oi={$id:"fonts",items:{type:"string"},type:"array"},ji={$id:"importmap",additionalProperties:!1,properties:{imports:{additionalProperties:{type:"string"},default:{},type:"object"},scopes:{additionalProperties:{additionalProperties:{type:"string"},type:"object"},type:"object"}},type:"object"},Ri={$id:"log",additionalProperties:!1,properties:{messages:{default:[],items:{additionalProperties:!1,properties:{content:{default:[],items:{additionalProperties:!1,properties:{text:{default:"",type:"string"},type:{default:"text",type:"string"}},type:"object"},type:"array"},role:{default:"user",enum:["user","assistant","system"],type:"string"}},type:"object"},type:"array"},system:{default:"",type:"string"}},type:"object"},Ni={$id:"nodes",items:{$ref:"page"},type:"array"},Ti={$id:"page",additionalProperties:!1,dynamicDefaults:{id:"uuid"},properties:{changefreq:{default:null,enum:["always","hourly","daily","weekly","monthly","yearly","never",null],nullable:!0,type:"string"},children:{default:[],items:{type:"object"},type:"array"},class:{default:["prose","max-w-none"],description:"Классы",items:{type:"string"},type:"array"},description:{default:null,nullable:!0,type:"string"},enabled:{default:!0,type:"boolean"},flat:{default:!0,type:"boolean"},header:{type:"string"},icon:{type:"string"},id:{type:"string"},images:{default:[],items:{additionalProperties:!1,properties:{alt:{type:"string"},url:{default:"",type:"string"}},type:"object"},type:"array"},keywords:{default:[],items:{type:"string"},type:"array"},lastmod:{default:null,nullable:!0,type:"string"},loc:{default:null,nullable:!0,type:"string"},name:{default:null,nullable:!0,type:"string"},priority:{default:null,maximum:1,minimum:0,nullable:!0,type:"number"},type:{default:null,enum:["article","book","profile","website","music.song","music.album","music.playlist","music.radio_station","video.movie","video.episode","video.tv_show","video.other",null],nullable:!0,type:"string"}},type:"object"};ps.DEFAULTS.uuid=()=>ur;const _s=[Pi,Ni,Ti,ji,ki,Oi,Ri],Ii=new ui({code:{esm:!0},coerceTypes:!0,keywords:[ps()],removeAdditional:!0,schemas:_s,useDefaults:!0}),Kn=!0,Hn={$children:{get(){return this.children.filter(({enabled:e})=>e)}},$index:{get(){return this.$siblings.findIndex(({id:e})=>this.id===e)}},$next:{get(){return this.$siblings[this.$index+1]}},$prev:{get(){return this.$siblings[this.$index-1]}},$siblings:{get(){return this.siblings.filter(({enabled:e})=>e)}},i:{get(){return this.icon&&`i-${this.icon}`}},path:{get(){const e=this.branch.slice(1);return e.some(({name:t})=>!t)?void 0:e.map(({name:t})=>t).join("/").replace(/ /g,"_")}},title:{get(){return["",void 0].includes(this.header)?this.name??"":this.header}},to:{get(){return this.path?.replace(/^\/?/,"/").replace(/\/?$/,"/")}}},or=Object.fromEntries(_s.map(({$id:e})=>[e,Ii.getSchema(e)])),zi=async e=>{try{return await ks(e)}catch(t){gi.error(t)}},Ki=Ei("shared",()=>{const e={credentials:be({}),feed:be({}),fonts:be([]),importmap:be({}),log:be({})},t=be([]),n=eo(t);return Object.keys(e).forEach(r=>{or[r]&&Ne(e[r],or[r],{immediate:Kn})}),Ne(n.nodes,async r=>{await or.nodes?.(r)?r.forEach(a=>{Object.keys(Hn).some(s=>!(s in a))&&Object.defineProperties(a,Hn)}):t.value=[{}]},{immediate:Kn}),{...e,tree:t,...n}});export{Di as a,Ai as b,Mi as c,Ei as d,Li as e,zi as f,hr as g,Fi as h,gi as i,Vi as j,Ui as s,Fs as t,Ki as u};