nuxt-link-checker 4.2.0 → 4.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/200.html +12 -12
- package/dist/client/404.html +12 -12
- package/dist/client/_nuxt/3w_68AFy.js +1 -0
- package/dist/client/_nuxt/BMMyXqK5.js +1 -0
- package/dist/client/_nuxt/Cp-IABpG.js +1 -0
- package/dist/client/_nuxt/DhVqxY3H.js +1 -0
- package/dist/client/_nuxt/Dt-P3YVb.js +181 -0
- package/dist/client/_nuxt/{BFWaZzNn.js → Qizr_0i3.js} +1 -1
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/f6a7da00-2cca-4db0-b8d5-690f99691ca5.json +1 -0
- package/dist/client/_nuxt/{entry.xKNhWsNM.css → entry.ycyXFUel.css} +1 -1
- package/dist/client/_nuxt/error-404.uLshya7R.css +1 -0
- package/dist/client/_nuxt/error-500.Dm5awy8c.css +1 -0
- package/dist/client/_nuxt/wWkaIY0j.js +1 -0
- package/dist/client/index.html +12 -12
- package/dist/module.d.mts +2 -1
- package/dist/module.json +3 -3
- package/dist/module.mjs +222 -46
- package/dist/runtime/app/plugins/view/Main.vue +20 -28
- package/dist/runtime/app/plugins/view/Main.vue.d.ts +9 -0
- package/dist/runtime/app/plugins/view/Squiggle.vue +16 -20
- package/dist/runtime/app/plugins/view/Squiggle.vue.d.ts +7 -0
- package/dist/runtime/server/content-compat.d.ts +1 -0
- package/dist/runtime/server/content-compat.js +2 -0
- package/dist/runtime/server/providers/content-v3.d.ts +5 -1
- package/dist/runtime/server/providers/content-v3.js +2 -2
- package/dist/runtime/server/routes/__link-checker__/inspect.d.ts +1 -1
- package/dist/runtime/shared/crawl.d.ts +10 -6
- package/dist/runtime/shared/crawl.js +37 -10
- package/dist/runtime/shared/inspections/absolute-site-urls.d.ts +1 -1
- package/dist/runtime/shared/inspections/link-text.d.ts +1 -1
- package/dist/runtime/shared/inspections/missing-hash.d.ts +1 -1
- package/dist/runtime/shared/inspections/no-baseless.d.ts +1 -1
- package/dist/runtime/shared/inspections/no-double-slashes.d.ts +1 -1
- package/dist/runtime/shared/inspections/no-duplicate-query-params.d.ts +1 -1
- package/dist/runtime/shared/inspections/no-error-response.d.ts +1 -1
- package/dist/runtime/shared/inspections/no-error-response.js +1 -1
- package/dist/runtime/shared/inspections/no-javascript.d.ts +1 -1
- package/dist/runtime/shared/inspections/no-missing-href.d.ts +1 -1
- package/dist/runtime/shared/inspections/no-non-ascii-chars.d.ts +1 -1
- package/dist/runtime/shared/inspections/no-underscores.d.ts +1 -1
- package/dist/runtime/shared/inspections/no-uppercase-chars.d.ts +1 -1
- package/dist/runtime/shared/inspections/no-whitespace.d.ts +1 -1
- package/dist/runtime/shared/inspections/trailing-slash.d.ts +1 -1
- package/dist/runtime/shared/inspections/util.js +2 -1
- package/dist/runtime/shared/redirects.d.ts +1 -1
- package/dist/runtime/shared/redirects.js +1 -1
- package/dist/types.d.mts +4 -2
- package/package.json +39 -32
- package/dist/client/_nuxt/5p_Oaa9g.js +0 -181
- package/dist/client/_nuxt/B9GrqE__.js +0 -1
- package/dist/client/_nuxt/BGB1r09n.js +0 -1
- package/dist/client/_nuxt/BLmTiKMJ.js +0 -1
- package/dist/client/_nuxt/Cj6XDDRd.js +0 -1
- package/dist/client/_nuxt/DFxyEsuO.js +0 -1
- package/dist/client/_nuxt/builds/meta/cdbc357b-6180-4103-97aa-19c53e0b9c3c.json +0 -1
- package/dist/client/_nuxt/error-404.C6U-TOR-.css +0 -1
- package/dist/client/_nuxt/error-500.BAgFwF30.css +0 -1
- package/dist/module.cjs +0 -5
- package/dist/module.d.ts +0 -92
- package/dist/types.d.ts +0 -7
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./3w_68AFy.js","./BMMyXqK5.js","./Cp-IABpG.js","./wWkaIY0j.js","./Qizr_0i3.js","./error-404.uLshya7R.css","./DhVqxY3H.js","./error-500.Dm5awy8c.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
var Hg=Object.defineProperty;var jg=Object.getPrototypeOf;var Ug=Reflect.get;var Sc=e=>{throw TypeError(e)};var Gg=(e,t,n)=>t in e?Hg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var $=(e,t,n)=>Gg(e,typeof t!="symbol"?t+"":t,n),Ui=(e,t,n)=>t.has(e)||Sc("Cannot "+n);var Xe=(e,t,n)=>(Ui(e,t,"read from private field"),n?n.call(e):t.get(e)),Pn=(e,t,n)=>t.has(e)?Sc("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),bt=(e,t,n,r)=>(Ui(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Gi=(e,t,n)=>(Ui(e,t,"access private method"),n);var kc=(e,t,n)=>Ug(jg(e),n,t);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();/**
|
|
3
|
+
* @vue/shared v3.5.16
|
|
4
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
5
|
+
* @license MIT
|
|
6
|
+
**//*! #__NO_SIDE_EFFECTS__ */function kl(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const be={},wr=[],Nt=()=>{},Wg=()=>!1,Ms=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),El=e=>e.startsWith("onUpdate:"),Me=Object.assign,Tl=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Vg=Object.prototype.hasOwnProperty,he=(e,t)=>Vg.call(e,t),te=Array.isArray,Cr=e=>Ds(e)==="[object Map]",zf=e=>Ds(e)==="[object Set]",Ec=e=>Ds(e)==="[object Date]",ne=e=>typeof e=="function",Se=e=>typeof e=="string",St=e=>typeof e=="symbol",ye=e=>e!==null&&typeof e=="object",Al=e=>(ye(e)||ne(e))&&ne(e.then)&&ne(e.catch),qf=Object.prototype.toString,Ds=e=>qf.call(e),zg=e=>Ds(e).slice(8,-1),Kf=e=>Ds(e)==="[object Object]",$l=e=>Se(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,xr=kl(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),pi=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},qg=/-(\w)/g,mt=pi(e=>e.replace(qg,(t,n)=>n?n.toUpperCase():"")),Kg=/\B([A-Z])/g,Tn=pi(e=>e.replace(Kg,"-$1").toLowerCase()),gi=pi(e=>e.charAt(0).toUpperCase()+e.slice(1)),Wi=pi(e=>e?`on${gi(e)}`:""),vn=(e,t)=>!Object.is(e,t),mo=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Xf=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Xg=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Jf=e=>{const t=Se(e)?Number(e):NaN;return isNaN(t)?e:t};let Tc;const mi=()=>Tc||(Tc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Jt(e){if(te(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=Se(r)?Zg(r):Jt(r);if(s)for(const o in s)t[o]=s[o]}return t}else if(Se(e)||ye(e))return e}const Jg=/;(?![^(]*\))/g,Yg=/:([^]+)/,Qg=/\/\*[^]*?\*\//g;function Zg(e){const t={};return e.replace(Qg,"").split(Jg).forEach(n=>{if(n){const r=n.split(Yg);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function $e(e){let t="";if(Se(e))t=e;else if(te(e))for(let n=0;n<e.length;n++){const r=$e(e[n]);r&&(t+=r+" ")}else if(ye(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Yf(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Se(t)&&(e.class=$e(t)),n&&(e.style=Jt(n)),e}const em="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",tm=kl(em);function Qf(e){return!!e||e===""}function nm(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Ao(e[r],t[r]);return n}function Ao(e,t){if(e===t)return!0;let n=Ec(e),r=Ec(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=St(e),r=St(t),n||r)return e===t;if(n=te(e),r=te(t),n||r)return n&&r?nm(e,t):!1;if(n=ye(e),r=ye(t),n||r){if(!n||!r)return!1;const s=Object.keys(e).length,o=Object.keys(t).length;if(s!==o)return!1;for(const i in e){const a=e.hasOwnProperty(i),l=t.hasOwnProperty(i);if(a&&!l||!a&&l||!Ao(e[i],t[i]))return!1}}return String(e)===String(t)}const Zf=e=>!!(e&&e.__v_isRef===!0),ke=e=>Se(e)?e:e==null?"":te(e)||ye(e)&&(e.toString===qf||!ne(e.toString))?Zf(e)?ke(e.value):JSON.stringify(e,ed,2):String(e),ed=(e,t)=>Zf(t)?ed(e,t.value):Cr(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],o)=>(n[Vi(r,o)+" =>"]=s,n),{})}:zf(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Vi(n))}:St(t)?Vi(t):ye(t)&&!te(t)&&!Kf(t)?String(t):t,Vi=(e,t="")=>{var n;return St(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
7
|
+
* @vue/reactivity v3.5.16
|
|
8
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
9
|
+
* @license MIT
|
|
10
|
+
**/let ze;class td{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=ze,!t&&ze&&(this.index=(ze.scopes||(ze.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=ze;try{return ze=this,t()}finally{ze=n}}}on(){++this._on===1&&(this.prevScope=ze,ze=this)}off(){this._on>0&&--this._on===0&&(ze=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function rm(e){return new td(e)}function Rl(){return ze}function sm(e,t=!1){ze&&ze.cleanups.push(e)}let xe;const zi=new WeakSet;class nd{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,ze&&ze.active&&ze.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,zi.has(this)&&(zi.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||sd(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Ac(this),od(this);const t=xe,n=wt;xe=this,wt=!0;try{return this.fn()}finally{id(this),xe=t,wt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Il(t);this.deps=this.depsTail=void 0,Ac(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?zi.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ka(this)&&this.run()}get dirty(){return ka(this)}}let rd=0,ns,rs;function sd(e,t=!1){if(e.flags|=8,t){e.next=rs,rs=e;return}e.next=ns,ns=e}function Pl(){rd++}function Nl(){if(--rd>0)return;if(rs){let t=rs;for(rs=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;ns;){let t=ns;for(ns=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function od(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function id(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),Il(r),om(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function ka(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ad(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ad(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===vs)||(e.globalVersion=vs,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!ka(e))))return;e.flags|=2;const t=e.dep,n=xe,r=wt;xe=e,wt=!0;try{od(e);const s=e.fn(e._value);(t.version===0||vn(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{xe=n,wt=r,id(e),e.flags&=-3}}function Il(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)Il(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function om(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let wt=!0;const ld=[];function Zt(){ld.push(wt),wt=!1}function en(){const e=ld.pop();wt=e===void 0?!0:e}function Ac(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=xe;xe=void 0;try{t()}finally{xe=n}}}let vs=0;class im{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class yi{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!xe||!wt||xe===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==xe)n=this.activeLink=new im(xe,this),xe.deps?(n.prevDep=xe.depsTail,xe.depsTail.nextDep=n,xe.depsTail=n):xe.deps=xe.depsTail=n,cd(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=xe.depsTail,n.nextDep=void 0,xe.depsTail.nextDep=n,xe.depsTail=n,xe.deps===n&&(xe.deps=r)}return n}trigger(t){this.version++,vs++,this.notify(t)}notify(t){Pl();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Nl()}}}function cd(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)cd(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const $o=new WeakMap,Xn=Symbol(""),Ea=Symbol(""),_s=Symbol("");function qe(e,t,n){if(wt&&xe){let r=$o.get(e);r||$o.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new yi),s.map=r,s.key=n),s.track()}}function Gt(e,t,n,r,s,o){const i=$o.get(e);if(!i){vs++;return}const a=l=>{l&&l.trigger()};if(Pl(),t==="clear")i.forEach(a);else{const l=te(e),c=l&&$l(n);if(l&&n==="length"){const u=Number(r);i.forEach((f,d)=>{(d==="length"||d===_s||!St(d)&&d>=u)&&a(f)})}else switch((n!==void 0||i.has(void 0))&&a(i.get(n)),c&&a(i.get(_s)),t){case"add":l?c&&a(i.get("length")):(a(i.get(Xn)),Cr(e)&&a(i.get(Ea)));break;case"delete":l||(a(i.get(Xn)),Cr(e)&&a(i.get(Ea)));break;case"set":Cr(e)&&a(i.get(Xn));break}}Nl()}function am(e,t){const n=$o.get(e);return n&&n.get(t)}function cr(e){const t=de(e);return t===e?t:(qe(t,"iterate",_s),gt(e)?t:t.map(Ue))}function bi(e){return qe(e=de(e),"iterate",_s),e}const lm={__proto__:null,[Symbol.iterator](){return qi(this,Symbol.iterator,Ue)},concat(...e){return cr(this).concat(...e.map(t=>te(t)?cr(t):t))},entries(){return qi(this,"entries",e=>(e[1]=Ue(e[1]),e))},every(e,t){return Ft(this,"every",e,t,void 0,arguments)},filter(e,t){return Ft(this,"filter",e,t,n=>n.map(Ue),arguments)},find(e,t){return Ft(this,"find",e,t,Ue,arguments)},findIndex(e,t){return Ft(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ft(this,"findLast",e,t,Ue,arguments)},findLastIndex(e,t){return Ft(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ft(this,"forEach",e,t,void 0,arguments)},includes(...e){return Ki(this,"includes",e)},indexOf(...e){return Ki(this,"indexOf",e)},join(e){return cr(this).join(e)},lastIndexOf(...e){return Ki(this,"lastIndexOf",e)},map(e,t){return Ft(this,"map",e,t,void 0,arguments)},pop(){return zr(this,"pop")},push(...e){return zr(this,"push",e)},reduce(e,...t){return $c(this,"reduce",e,t)},reduceRight(e,...t){return $c(this,"reduceRight",e,t)},shift(){return zr(this,"shift")},some(e,t){return Ft(this,"some",e,t,void 0,arguments)},splice(...e){return zr(this,"splice",e)},toReversed(){return cr(this).toReversed()},toSorted(e){return cr(this).toSorted(e)},toSpliced(...e){return cr(this).toSpliced(...e)},unshift(...e){return zr(this,"unshift",e)},values(){return qi(this,"values",Ue)}};function qi(e,t,n){const r=bi(e),s=r[t]();return r!==e&&!gt(e)&&(s._next=s.next,s.next=()=>{const o=s._next();return o.value&&(o.value=n(o.value)),o}),s}const cm=Array.prototype;function Ft(e,t,n,r,s,o){const i=bi(e),a=i!==e&&!gt(e),l=i[t];if(l!==cm[t]){const f=l.apply(e,o);return a?Ue(f):f}let c=n;i!==e&&(a?c=function(f,d){return n.call(this,Ue(f),d,e)}:n.length>2&&(c=function(f,d){return n.call(this,f,d,e)}));const u=l.call(i,c,r);return a&&s?s(u):u}function $c(e,t,n,r){const s=bi(e);let o=n;return s!==e&&(gt(e)?n.length>3&&(o=function(i,a,l){return n.call(this,i,a,l,e)}):o=function(i,a,l){return n.call(this,i,Ue(a),l,e)}),s[t](o,...r)}function Ki(e,t,n){const r=de(e);qe(r,"iterate",_s);const s=r[t](...n);return(s===-1||s===!1)&&Ml(n[0])?(n[0]=de(n[0]),r[t](...n)):s}function zr(e,t,n=[]){Zt(),Pl();const r=de(e)[t].apply(e,n);return Nl(),en(),r}const um=kl("__proto__,__v_isRef,__isVue"),ud=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(St));function fm(e){St(e)||(e=String(e));const t=de(this);return qe(t,"has",e),t.hasOwnProperty(e)}class fd{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return o;if(n==="__v_raw")return r===(s?o?wm:gd:o?pd:hd).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=te(t);if(!s){let l;if(i&&(l=lm[n]))return l;if(n==="hasOwnProperty")return fm}const a=Reflect.get(t,n,Oe(t)?t:r);return(St(n)?ud.has(n):um(n))||(s||qe(t,"get",n),o)?a:Oe(a)?i&&$l(n)?a:a.value:ye(a)?s?vi(a):Sn(a):a}}class dd extends fd{constructor(t=!1){super(!1,t)}set(t,n,r,s){let o=t[n];if(!this._isShallow){const l=tn(o);if(!gt(r)&&!tn(r)&&(o=de(o),r=de(r)),!te(t)&&Oe(o)&&!Oe(r))return l?!1:(o.value=r,!0)}const i=te(t)&&$l(n)?Number(n)<t.length:he(t,n),a=Reflect.set(t,n,r,Oe(t)?t:s);return t===de(s)&&(i?vn(r,o)&&Gt(t,"set",n,r):Gt(t,"add",n,r)),a}deleteProperty(t,n){const r=he(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&r&&Gt(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!St(n)||!ud.has(n))&&qe(t,"has",n),r}ownKeys(t){return qe(t,"iterate",te(t)?"length":Xn),Reflect.ownKeys(t)}}class dm extends fd{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const hm=new dd,pm=new dm,gm=new dd(!0);const Ta=e=>e,zs=e=>Reflect.getPrototypeOf(e);function mm(e,t,n){return function(...r){const s=this.__v_raw,o=de(s),i=Cr(o),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,c=s[e](...r),u=n?Ta:t?Ro:Ue;return!t&&qe(o,"iterate",l?Ea:Xn),{next(){const{value:f,done:d}=c.next();return d?{value:f,done:d}:{value:a?[u(f[0]),u(f[1])]:u(f),done:d}},[Symbol.iterator](){return this}}}}function qs(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ym(e,t){const n={get(s){const o=this.__v_raw,i=de(o),a=de(s);e||(vn(s,a)&&qe(i,"get",s),qe(i,"get",a));const{has:l}=zs(i),c=t?Ta:e?Ro:Ue;if(l.call(i,s))return c(o.get(s));if(l.call(i,a))return c(o.get(a));o!==i&&o.get(s)},get size(){const s=this.__v_raw;return!e&&qe(de(s),"iterate",Xn),Reflect.get(s,"size",s)},has(s){const o=this.__v_raw,i=de(o),a=de(s);return e||(vn(s,a)&&qe(i,"has",s),qe(i,"has",a)),s===a?o.has(s):o.has(s)||o.has(a)},forEach(s,o){const i=this,a=i.__v_raw,l=de(a),c=t?Ta:e?Ro:Ue;return!e&&qe(l,"iterate",Xn),a.forEach((u,f)=>s.call(o,c(u),c(f),i))}};return Me(n,e?{add:qs("add"),set:qs("set"),delete:qs("delete"),clear:qs("clear")}:{add(s){!t&&!gt(s)&&!tn(s)&&(s=de(s));const o=de(this);return zs(o).has.call(o,s)||(o.add(s),Gt(o,"add",s,s)),this},set(s,o){!t&&!gt(o)&&!tn(o)&&(o=de(o));const i=de(this),{has:a,get:l}=zs(i);let c=a.call(i,s);c||(s=de(s),c=a.call(i,s));const u=l.call(i,s);return i.set(s,o),c?vn(o,u)&&Gt(i,"set",s,o):Gt(i,"add",s,o),this},delete(s){const o=de(this),{has:i,get:a}=zs(o);let l=i.call(o,s);l||(s=de(s),l=i.call(o,s)),a&&a.call(o,s);const c=o.delete(s);return l&&Gt(o,"delete",s,void 0),c},clear(){const s=de(this),o=s.size!==0,i=s.clear();return o&&Gt(s,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=mm(s,e,t)}),n}function Ll(e,t){const n=ym(e,t);return(r,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(he(n,s)&&s in r?n:r,s,o)}const bm={get:Ll(!1,!1)},vm={get:Ll(!1,!0)},_m={get:Ll(!0,!1)};const hd=new WeakMap,pd=new WeakMap,gd=new WeakMap,wm=new WeakMap;function Cm(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function xm(e){return e.__v_skip||!Object.isExtensible(e)?0:Cm(zg(e))}function Sn(e){return tn(e)?e:Ol(e,!1,hm,bm,hd)}function Wn(e){return Ol(e,!1,gm,vm,pd)}function vi(e){return Ol(e,!0,pm,_m,gd)}function Ol(e,t,n,r,s){if(!ye(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=xm(e);if(o===0)return e;const i=s.get(e);if(i)return i;const a=new Proxy(e,o===2?r:n);return s.set(e,a),a}function Jn(e){return tn(e)?Jn(e.__v_raw):!!(e&&e.__v_isReactive)}function tn(e){return!!(e&&e.__v_isReadonly)}function gt(e){return!!(e&&e.__v_isShallow)}function Ml(e){return e?!!e.__v_raw:!1}function de(e){const t=e&&e.__v_raw;return t?de(t):e}function Sm(e){return!he(e,"__v_skip")&&Object.isExtensible(e)&&Xf(e,"__v_skip",!0),e}const Ue=e=>ye(e)?Sn(e):e,Ro=e=>ye(e)?vi(e):e;function Oe(e){return e?e.__v_isRef===!0:!1}function ue(e){return md(e,!1)}function Rr(e){return md(e,!0)}function md(e,t){return Oe(e)?e:new km(e,t)}class km{constructor(t,n){this.dep=new yi,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:de(t),this._value=n?t:Ue(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||gt(t)||tn(t);t=r?t:de(t),vn(t,n)&&(this._rawValue=t,this._value=r?t:Ue(t),this.dep.trigger())}}function ae(e){return Oe(e)?e.value:e}function it(e){return ne(e)?e():ae(e)}const Em={get:(e,t,n)=>t==="__v_raw"?e:ae(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return Oe(s)&&!Oe(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function yd(e){return Jn(e)?e:new Proxy(e,Em)}class Tm{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new yi,{get:r,set:s}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=s}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Am(e){return new Tm(e)}class $m{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return am(de(this._object),this._key)}}class Rm{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function bd(e,t,n){return Oe(e)?e:ne(e)?new Rm(e):ye(e)&&arguments.length>1?Pm(e,t,n):ue(e)}function Pm(e,t,n){const r=e[t];return Oe(r)?r:new $m(e,t,n)}class Nm{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new yi(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=vs-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&xe!==this)return sd(this,!0),!0}get value(){const t=this.dep.track();return ad(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Im(e,t,n=!1){let r,s;return ne(e)?r=e:(r=e.get,s=e.set),new Nm(r,s,n)}const Ks={},Po=new WeakMap;let Dn;function Lm(e,t=!1,n=Dn){if(n){let r=Po.get(n);r||Po.set(n,r=[]),r.push(e)}}function Om(e,t,n=be){const{immediate:r,deep:s,once:o,scheduler:i,augmentJob:a,call:l}=n,c=_=>s?_:gt(_)||s===!1||s===0?Wt(_,1):Wt(_);let u,f,d,p,h=!1,g=!1;if(Oe(e)?(f=()=>e.value,h=gt(e)):Jn(e)?(f=()=>c(e),h=!0):te(e)?(g=!0,h=e.some(_=>Jn(_)||gt(_)),f=()=>e.map(_=>{if(Oe(_))return _.value;if(Jn(_))return c(_);if(ne(_))return l?l(_,2):_()})):ne(e)?t?f=l?()=>l(e,2):e:f=()=>{if(d){Zt();try{d()}finally{en()}}const _=Dn;Dn=u;try{return l?l(e,3,[p]):e(p)}finally{Dn=_}}:f=Nt,t&&s){const _=f,C=s===!0?1/0:s;f=()=>Wt(_(),C)}const m=Rl(),b=()=>{u.stop(),m&&m.active&&Tl(m.effects,u)};if(o&&t){const _=t;t=(...C)=>{_(...C),b()}}let v=g?new Array(e.length).fill(Ks):Ks;const y=_=>{if(!(!(u.flags&1)||!u.dirty&&!_))if(t){const C=u.run();if(s||h||(g?C.some((A,N)=>vn(A,v[N])):vn(C,v))){d&&d();const A=Dn;Dn=u;try{const N=[C,v===Ks?void 0:g&&v[0]===Ks?[]:v,p];v=C,l?l(t,3,N):t(...N)}finally{Dn=A}}}else u.run()};return a&&a(y),u=new nd(f),u.scheduler=i?()=>i(y,!1):y,p=_=>Lm(_,!1,u),d=u.onStop=()=>{const _=Po.get(u);if(_){if(l)l(_,4);else for(const C of _)C();Po.delete(u)}},t?r?y(!0):v=u.run():i?i(y.bind(null,!0),!0):u.run(),b.pause=u.pause.bind(u),b.resume=u.resume.bind(u),b.stop=b,b}function Wt(e,t=1/0,n){if(t<=0||!ye(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,Oe(e))Wt(e.value,t,n);else if(te(e))for(let r=0;r<e.length;r++)Wt(e[r],t,n);else if(zf(e)||Cr(e))e.forEach(r=>{Wt(r,t,n)});else if(Kf(e)){for(const r in e)Wt(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Wt(e[r],t,n)}return e}/**
|
|
11
|
+
* @vue/runtime-core v3.5.16
|
|
12
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
13
|
+
* @license MIT
|
|
14
|
+
**/function Fs(e,t,n,r){try{return r?e(...r):e()}catch(s){Br(s,t,n)}}function kt(e,t,n,r){if(ne(e)){const s=Fs(e,t,n,r);return s&&Al(s)&&s.catch(o=>{Br(o,t,n)}),s}if(te(e)){const s=[];for(let o=0;o<e.length;o++)s.push(kt(e[o],t,n,r));return s}}function Br(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||be;if(t){let a=t.parent;const l=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const u=a.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](e,l,c)===!1)return}a=a.parent}if(o){Zt(),Fs(o,null,10,[e,l,c]),en();return}}Mm(e,n,s,r,i)}function Mm(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const Qe=[];let Rt=-1;const Sr=[];let pn=null,gr=0;const vd=Promise.resolve();let No=null;function sr(e){const t=No||vd;return e?t.then(this?e.bind(this):e):t}function Dm(e){let t=Rt+1,n=Qe.length;for(;t<n;){const r=t+n>>>1,s=Qe[r],o=ws(s);o<e||o===e&&s.flags&2?t=r+1:n=r}return t}function Dl(e){if(!(e.flags&1)){const t=ws(e),n=Qe[Qe.length-1];!n||!(e.flags&2)&&t>=ws(n)?Qe.push(e):Qe.splice(Dm(t),0,e),e.flags|=1,_d()}}function _d(){No||(No=vd.then(wd))}function Aa(e){te(e)?Sr.push(...e):pn&&e.id===-1?pn.splice(gr+1,0,e):e.flags&1||(Sr.push(e),e.flags|=1),_d()}function Rc(e,t,n=Rt+1){for(;n<Qe.length;n++){const r=Qe[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Qe.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Io(e){if(Sr.length){const t=[...new Set(Sr)].sort((n,r)=>ws(n)-ws(r));if(Sr.length=0,pn){pn.push(...t);return}for(pn=t,gr=0;gr<pn.length;gr++){const n=pn[gr];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}pn=null,gr=0}}const ws=e=>e.id==null?e.flags&2?-1:1/0:e.id;function wd(e){try{for(Rt=0;Rt<Qe.length;Rt++){const t=Qe[Rt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Fs(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Rt<Qe.length;Rt++){const t=Qe[Rt];t&&(t.flags&=-2)}Rt=-1,Qe.length=0,Io(),No=null,(Qe.length||Sr.length)&&wd()}}let Le=null,_i=null;function Lo(e){const t=Le;return Le=e,_i=e&&e.type.__scopeId||null,t}function Fm(e){_i=e}function Bm(){_i=null}const Hm=e=>se;function se(e,t=Le,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&zc(-1);const o=Lo(t);let i;try{i=e(...s)}finally{Lo(o),r._d&&zc(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function Cd(e,t){if(Le===null)return e;const n=Ei(Le),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[o,i,a,l=be]=t[s];o&&(ne(o)&&(o={mounted:o,updated:o}),o.deep&&Wt(i),r.push({dir:o,instance:n,value:i,oldValue:void 0,arg:a,modifiers:l}))}return e}function Pt(e,t,n,r){const s=e.dirs,o=t&&t.dirs;for(let i=0;i<s.length;i++){const a=s[i];o&&(a.oldValue=o[i].value);let l=a.dir[r];l&&(Zt(),kt(l,n,8,[e.el,a,e,t]),en())}}const xd=Symbol("_vte"),jm=e=>e.__isTeleport,ss=e=>e&&(e.disabled||e.disabled===""),Pc=e=>e&&(e.defer||e.defer===""),Nc=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Ic=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,$a=(e,t)=>{const n=e&&e.to;return Se(n)?t?t(n):null:n},Sd={name:"Teleport",__isTeleport:!0,process(e,t,n,r,s,o,i,a,l,c){const{mc:u,pc:f,pbc:d,o:{insert:p,querySelector:h,createText:g,createComment:m}}=c,b=ss(t.props);let{shapeFlag:v,children:y,dynamicChildren:_}=t;if(e==null){const C=t.el=g(""),A=t.anchor=g("");p(C,n,r),p(A,n,r);const N=(P,E)=>{v&16&&(s&&s.isCE&&(s.ce._teleportTarget=P),u(y,P,E,s,o,i,a,l))},G=()=>{const P=t.target=$a(t.props,h),E=kd(P,t,g,p);P&&(i!=="svg"&&Nc(P)?i="svg":i!=="mathml"&&Ic(P)&&(i="mathml"),b||(N(P,E),yo(t,!1)))};b&&(N(n,A),yo(t,!0)),Pc(t.props)?(t.el.__isMounted=!1,Ye(()=>{G(),delete t.el.__isMounted},o)):G()}else{if(Pc(t.props)&&e.el.__isMounted===!1){Ye(()=>{Sd.process(e,t,n,r,s,o,i,a,l,c)},o);return}t.el=e.el,t.targetStart=e.targetStart;const C=t.anchor=e.anchor,A=t.target=e.target,N=t.targetAnchor=e.targetAnchor,G=ss(e.props),P=G?n:A,E=G?C:N;if(i==="svg"||Nc(A)?i="svg":(i==="mathml"||Ic(A))&&(i="mathml"),_?(d(e.dynamicChildren,_,P,s,o,i,a),Gl(e,t,!0)):l||f(e,t,P,E,s,o,i,a,!1),b)G?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Xs(t,n,C,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const M=t.target=$a(t.props,h);M&&Xs(t,M,null,c,0)}else G&&Xs(t,A,N,c,1);yo(t,b)}},remove(e,t,n,{um:r,o:{remove:s}},o){const{shapeFlag:i,children:a,anchor:l,targetStart:c,targetAnchor:u,target:f,props:d}=e;if(f&&(s(c),s(u)),o&&s(l),i&16){const p=o||!ss(d);for(let h=0;h<a.length;h++){const g=a[h];r(g,t,n,p,!!g.dynamicChildren)}}},move:Xs,hydrate:Um};function Xs(e,t,n,{o:{insert:r},m:s},o=2){o===0&&r(e.targetAnchor,t,n);const{el:i,anchor:a,shapeFlag:l,children:c,props:u}=e,f=o===2;if(f&&r(i,t,n),(!f||ss(u))&&l&16)for(let d=0;d<c.length;d++)s(c[d],t,n,2);f&&r(a,t,n)}function Um(e,t,n,r,s,o,{o:{nextSibling:i,parentNode:a,querySelector:l,insert:c,createText:u}},f){const d=t.target=$a(t.props,l);if(d){const p=ss(t.props),h=d._lpa||d.firstChild;if(t.shapeFlag&16)if(p)t.anchor=f(i(e),t,a(e),n,r,s,o),t.targetStart=h,t.targetAnchor=h&&i(h);else{t.anchor=i(e);let g=h;for(;g;){if(g&&g.nodeType===8){if(g.data==="teleport start anchor")t.targetStart=g;else if(g.data==="teleport anchor"){t.targetAnchor=g,d._lpa=t.targetAnchor&&i(t.targetAnchor);break}}g=i(g)}t.targetAnchor||kd(d,t,u,c),f(h&&i(h),t,d,n,r,s,o)}yo(t,p)}return t.anchor&&i(t.anchor)}const Gm=Sd;function yo(e,t){const n=e.ctx;if(n&&n.ut){let r,s;for(t?(r=e.el,s=e.anchor):(r=e.targetStart,s=e.targetAnchor);r&&r!==s;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function kd(e,t,n,r){const s=t.targetStart=n(""),o=t.targetAnchor=n("");return s[xd]=o,e&&(r(s,e),r(o,e)),o}const ur=Symbol("_leaveCb"),Js=Symbol("_enterCb");function Wm(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ci(()=>{e.isMounted=!0}),xi(()=>{e.isUnmounting=!0}),e}const lt=[Function,Array],Vm={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:lt,onEnter:lt,onAfterEnter:lt,onEnterCancelled:lt,onBeforeLeave:lt,onLeave:lt,onAfterLeave:lt,onLeaveCancelled:lt,onBeforeAppear:lt,onAppear:lt,onAfterAppear:lt,onAppearCancelled:lt};function zm(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Ra(e,t,n,r,s){const{appear:o,mode:i,persisted:a=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:d,onLeave:p,onAfterLeave:h,onLeaveCancelled:g,onBeforeAppear:m,onAppear:b,onAfterAppear:v,onAppearCancelled:y}=t,_=String(e.key),C=zm(n,e),A=(P,E)=>{P&&kt(P,r,9,E)},N=(P,E)=>{const M=E[1];A(P,E),te(P)?P.every(T=>T.length<=1)&&M():P.length<=1&&M()},G={mode:i,persisted:a,beforeEnter(P){let E=l;if(!n.isMounted)if(o)E=m||l;else return;P[ur]&&P[ur](!0);const M=C[_];M&&zt(e,M)&&M.el[ur]&&M.el[ur](),A(E,[P])},enter(P){let E=c,M=u,T=f;if(!n.isMounted)if(o)E=b||c,M=v||u,T=y||f;else return;let k=!1;const S=P[Js]=L=>{k||(k=!0,L?A(T,[P]):A(M,[P]),G.delayedLeave&&G.delayedLeave(),P[Js]=void 0)};E?N(E,[P,S]):S()},leave(P,E){const M=String(e.key);if(P[Js]&&P[Js](!0),n.isUnmounting)return E();A(d,[P]);let T=!1;const k=P[ur]=S=>{T||(T=!0,E(),S?A(g,[P]):A(h,[P]),P[ur]=void 0,C[M]===e&&delete C[M])};C[M]=e,p?N(p,[P,k]):k()},clone(P){return Ra(P,t,n,r)}};return G}function Cs(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Cs(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ed(e,t=!1,n){let r=[],s=0;for(let o=0;o<e.length;o++){let i=e[o];const a=n==null?i.key:String(n)+String(i.key!=null?i.key:o);i.type===ge?(i.patchFlag&128&&s++,r=r.concat(Ed(i.children,t,a))):(t||i.type!==at)&&r.push(a!=null?er(i,{key:a}):i)}if(s>1)for(let o=0;o<r.length;o++)r[o].patchFlag=-2;return r}/*! #__NO_SIDE_EFFECTS__ */function Ge(e,t){return ne(e)?Me({name:e.name},t,{setup:e}):e}function Fl(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function xs(e,t,n,r,s=!1){if(te(e)){e.forEach((h,g)=>xs(h,t&&(te(t)?t[g]:t),n,r,s));return}if(Yn(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&xs(e,t,n,r.component.subTree);return}const o=r.shapeFlag&4?Ei(r.component):r.el,i=s?null:o,{i:a,r:l}=e,c=t&&t.r,u=a.refs===be?a.refs={}:a.refs,f=a.setupState,d=de(f),p=f===be?()=>!1:h=>he(d,h);if(c!=null&&c!==l&&(Se(c)?(u[c]=null,p(c)&&(f[c]=null)):Oe(c)&&(c.value=null)),ne(l))Fs(l,a,12,[i,u]);else{const h=Se(l),g=Oe(l);if(h||g){const m=()=>{if(e.f){const b=h?p(l)?f[l]:u[l]:l.value;s?te(b)&&Tl(b,o):te(b)?b.includes(o)||b.push(o):h?(u[l]=[o],p(l)&&(f[l]=u[l])):(l.value=[o],e.k&&(u[e.k]=l.value))}else h?(u[l]=i,p(l)&&(f[l]=i)):g&&(l.value=i,e.k&&(u[e.k]=i))};i?(m.id=-1,Ye(m,n)):m()}}}let Lc=!1;const fr=()=>{Lc||(console.error("Hydration completed but contains mismatches."),Lc=!0)},qm=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",Km=e=>e.namespaceURI.includes("MathML"),Ys=e=>{if(e.nodeType===1){if(qm(e))return"svg";if(Km(e))return"mathml"}},br=e=>e.nodeType===8;function Xm(e){const{mt:t,p:n,o:{patchProp:r,createText:s,nextSibling:o,parentNode:i,remove:a,insert:l,createComment:c}}=e,u=(y,_)=>{if(!_.hasChildNodes()){n(null,y,_),Io(),_._vnode=y;return}f(_.firstChild,y,null,null,null),Io(),_._vnode=y},f=(y,_,C,A,N,G=!1)=>{G=G||!!_.dynamicChildren;const P=br(y)&&y.data==="[",E=()=>g(y,_,C,A,N,P),{type:M,ref:T,shapeFlag:k,patchFlag:S}=_;let L=y.nodeType;_.el=y,S===-2&&(G=!1,_.dynamicChildren=null);let I=null;switch(M){case Zn:L!==3?_.children===""?(l(_.el=s(""),i(y),y),I=y):I=E():(y.data!==_.children&&(fr(),y.data=_.children),I=o(y));break;case at:v(y)?(I=o(y),b(_.el=y.content.firstChild,y,C)):L!==8||P?I=E():I=o(y);break;case is:if(P&&(y=o(y),L=y.nodeType),L===1||L===3){I=y;const V=!_.children.length;for(let B=0;B<_.staticCount;B++)V&&(_.children+=I.nodeType===1?I.outerHTML:I.data),B===_.staticCount-1&&(_.anchor=I),I=o(I);return P?o(I):I}else E();break;case ge:P?I=h(y,_,C,A,N,G):I=E();break;default:if(k&1)(L!==1||_.type.toLowerCase()!==y.tagName.toLowerCase())&&!v(y)?I=E():I=d(y,_,C,A,N,G);else if(k&6){_.slotScopeIds=N;const V=i(y);if(P?I=m(y):br(y)&&y.data==="teleport start"?I=m(y,y.data,"teleport end"):I=o(y),t(_,V,null,C,A,Ys(V),G),Yn(_)&&!_.type.__asyncResolved){let B;P?(B=J(ge),B.anchor=I?I.previousSibling:V.lastChild):B=y.nodeType===3?fe(""):J("div"),B.el=y,_.component.subTree=B}}else k&64?L!==8?I=E():I=_.type.hydrate(y,_,C,A,N,G,e,p):k&128&&(I=_.type.hydrate(y,_,C,A,Ys(i(y)),N,G,e,f))}return T!=null&&xs(T,null,A,_),I},d=(y,_,C,A,N,G)=>{G=G||!!_.dynamicChildren;const{type:P,props:E,patchFlag:M,shapeFlag:T,dirs:k,transition:S}=_,L=P==="input"||P==="option";if(L||M!==-1){k&&Pt(_,null,C,"created");let I=!1;if(v(y)){I=Jd(null,S)&&C&&C.vnode.props&&C.vnode.props.appear;const B=y.content.firstChild;if(I){const Y=B.getAttribute("class");Y&&(B.$cls=Y),S.beforeEnter(B)}b(B,y,C),_.el=y=B}if(T&16&&!(E&&(E.innerHTML||E.textContent))){let B=p(y.firstChild,_,y,C,A,N,G);for(;B;){Qs(y,1)||fr();const Y=B;B=B.nextSibling,a(Y)}}else if(T&8){let B=_.children;B[0]===`
|
|
15
|
+
`&&(y.tagName==="PRE"||y.tagName==="TEXTAREA")&&(B=B.slice(1)),y.textContent!==B&&(Qs(y,0)||fr(),y.textContent=_.children)}if(E){if(L||!G||M&48){const B=y.tagName.includes("-");for(const Y in E)(L&&(Y.endsWith("value")||Y==="indeterminate")||Ms(Y)&&!xr(Y)||Y[0]==="."||B)&&r(y,Y,null,E[Y],void 0,C)}else if(E.onClick)r(y,"onClick",null,E.onClick,void 0,C);else if(M&4&&Jn(E.style))for(const B in E.style)E.style[B]}let V;(V=E&&E.onVnodeBeforeMount)&&ut(V,C,_),k&&Pt(_,null,C,"beforeMount"),((V=E&&E.onVnodeMounted)||k||I)&&rh(()=>{V&&ut(V,C,_),I&&S.enter(y),k&&Pt(_,null,C,"mounted")},A)}return y.nextSibling},p=(y,_,C,A,N,G,P)=>{P=P||!!_.dynamicChildren;const E=_.children,M=E.length;for(let T=0;T<M;T++){const k=P?E[T]:E[T]=ot(E[T]),S=k.type===Zn;y?(S&&!P&&T+1<M&&ot(E[T+1]).type===Zn&&(l(s(y.data.slice(k.children.length)),C,o(y)),y.data=k.children),y=f(y,k,A,N,G,P)):S&&!k.children?l(k.el=s(""),C):(Qs(C,1)||fr(),n(null,k,C,null,A,N,Ys(C),G))}return y},h=(y,_,C,A,N,G)=>{const{slotScopeIds:P}=_;P&&(N=N?N.concat(P):P);const E=i(y),M=p(o(y),_,E,C,A,N,G);return M&&br(M)&&M.data==="]"?o(_.anchor=M):(fr(),l(_.anchor=c("]"),E,M),M)},g=(y,_,C,A,N,G)=>{if(Qs(y.parentElement,1)||fr(),_.el=null,G){const M=m(y);for(;;){const T=o(y);if(T&&T!==M)a(T);else break}}const P=o(y),E=i(y);return a(y),n(null,_,E,P,C,A,Ys(E),N),C&&(C.vnode.el=_.el,ki(C,_.el)),P},m=(y,_="[",C="]")=>{let A=0;for(;y;)if(y=o(y),y&&br(y)&&(y.data===_&&A++,y.data===C)){if(A===0)return o(y);A--}return y},b=(y,_,C)=>{const A=_.parentNode;A&&A.replaceChild(y,_);let N=C;for(;N;)N.vnode.el===_&&(N.vnode.el=N.subTree.el=y),N=N.parent},v=y=>y.nodeType===1&&y.tagName==="TEMPLATE";return[u,f]}const Oc="data-allow-mismatch",Jm={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Qs(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(Oc);)e=e.parentElement;const n=e&&e.getAttribute(Oc);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:n.split(",").includes(Jm[t])}}mi().requestIdleCallback;mi().cancelIdleCallback;function Ym(e,t){if(br(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(br(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const Yn=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function Mc(e){ne(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:s=200,hydrate:o,timeout:i,suspensible:a=!0,onError:l}=e;let c=null,u,f=0;const d=()=>(f++,c=null,p()),p=()=>{let h;return c||(h=c=t().catch(g=>{if(g=g instanceof Error?g:new Error(String(g)),l)return new Promise((m,b)=>{l(g,()=>m(d()),()=>b(g),f+1)});throw g}).then(g=>h!==c&&c?c:(g&&(g.__esModule||g[Symbol.toStringTag]==="Module")&&(g=g.default),u=g,g)))};return Ge({name:"AsyncComponentWrapper",__asyncLoader:p,__asyncHydrate(h,g,m){const b=o?()=>{const y=o(()=>{m()},_=>Ym(h,_));y&&(g.bum||(g.bum=[])).push(y),(g.u||(g.u=[])).push(()=>!0)}:m;u?b():p().then(()=>!g.isUnmounted&&b())},get __asyncResolved(){return u},setup(){const h=Ie;if(Fl(h),u)return()=>Xi(u,h);const g=y=>{c=null,Br(y,h,13,!r)};if(a&&h.suspense||Ir)return p().then(y=>()=>Xi(y,h)).catch(y=>(g(y),()=>r?J(r,{error:y}):null));const m=ue(!1),b=ue(),v=ue(!!s);return s&&setTimeout(()=>{v.value=!1},s),i!=null&&setTimeout(()=>{if(!m.value&&!b.value){const y=new Error(`Async component timed out after ${i}ms.`);g(y),b.value=y}},i),p().then(()=>{m.value=!0,h.parent&&Bl(h.parent.vnode)&&h.parent.update()}).catch(y=>{g(y),b.value=y}),()=>{if(m.value&&u)return Xi(u,h);if(b.value&&r)return J(r,{error:b.value});if(n&&!v.value)return J(n)}}})}function Xi(e,t){const{ref:n,props:r,children:s,ce:o}=t.vnode,i=J(e,r,s);return i.ref=n,i.ce=o,delete t.vnode.ce,i}const Bl=e=>e.type.__isKeepAlive;function Td(e,t){$d(e,"a",t)}function Ad(e,t){$d(e,"da",t)}function $d(e,t,n=Ie){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(wi(t,r,n),n){let s=n.parent;for(;s&&s.parent;)Bl(s.parent.vnode)&&Qm(r,t,n,s),s=s.parent}}function Qm(e,t,n,r){const s=wi(t,e,r,!0);Pd(()=>{Tl(r[t],s)},n)}function wi(e,t,n=Ie,r=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{Zt();const a=tr(n),l=kt(t,n,e,i);return a(),en(),l});return r?s.unshift(o):s.push(o),o}}const rn=e=>(t,n=Ie)=>{(!Ir||e==="sp")&&wi(e,(...r)=>t(...r),n)},Zm=rn("bm"),Ci=rn("m"),ey=rn("bu"),Rd=rn("u"),xi=rn("bum"),Pd=rn("um"),ty=rn("sp"),ny=rn("rtg"),ry=rn("rtc");function Nd(e,t=Ie){wi("ec",e,t)}const Id="components";function nn(e,t){return Od(Id,e,!0,t)||e}const Ld=Symbol.for("v-ndc");function sy(e){return Se(e)?Od(Id,e,!1)||e:e||Ld}function Od(e,t,n=!0,r=!1){const s=Le||Ie;if(s){const o=s.type;{const a=Ky(o,!1);if(a&&(a===t||a===mt(t)||a===gi(mt(t))))return o}const i=Dc(s[e]||o[e],t)||Dc(s.appContext[e],t);return!i&&r?o:i}}function Dc(e,t){return e&&(e[t]||e[mt(t)]||e[gi(mt(t))])}function Vt(e,t,n,r){let s;const o=n,i=te(e);if(i||Se(e)){const a=i&&Jn(e);let l=!1,c=!1;a&&(l=!gt(e),c=tn(e),e=bi(e)),s=new Array(e.length);for(let u=0,f=e.length;u<f;u++)s[u]=t(l?c?Ro(Ue(e[u])):Ue(e[u]):e[u],u,void 0,o)}else if(typeof e=="number"){s=new Array(e);for(let a=0;a<e;a++)s[a]=t(a+1,a,void 0,o)}else if(ye(e))if(e[Symbol.iterator])s=Array.from(e,(a,l)=>t(a,l,void 0,o));else{const a=Object.keys(e);s=new Array(a.length);for(let l=0,c=a.length;l<c;l++){const u=a[l];s[l]=t(e[u],u,l,o)}}else s=[];return s}function Pe(e,t,n={},r,s){if(Le.ce||Le.parent&&Yn(Le.parent)&&Le.parent.ce)return t!=="default"&&(n.name=t),W(),me(ge,null,[J("slot",n,r&&r())],64);let o=e[t];o&&o._c&&(o._d=!1),W();const i=o&&Md(o(n)),a=n.key||i&&i.key,l=me(ge,{key:(a&&!St(a)?a:`_${t}`)+(!i&&r?"_fb":"")},i||(r?r():[]),i&&e._===1?64:-2);return!s&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function Md(e){return e.some(t=>Nr(t)?!(t.type===at||t.type===ge&&!Md(t.children)):!0)?e:null}const Pa=e=>e?ah(e)?Ei(e):Pa(e.parent):null,os=Me(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Pa(e.parent),$root:e=>Pa(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Fd(e),$forceUpdate:e=>e.f||(e.f=()=>{Dl(e.update)}),$nextTick:e=>e.n||(e.n=sr.bind(e.proxy)),$watch:e=>ky.bind(e)}),Ji=(e,t)=>e!==be&&!e.__isScriptSetup&&he(e,t),oy={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:o,accessCache:i,type:a,appContext:l}=e;let c;if(t[0]!=="$"){const p=i[t];if(p!==void 0)switch(p){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return o[t]}else{if(Ji(r,t))return i[t]=1,r[t];if(s!==be&&he(s,t))return i[t]=2,s[t];if((c=e.propsOptions[0])&&he(c,t))return i[t]=3,o[t];if(n!==be&&he(n,t))return i[t]=4,n[t];Na&&(i[t]=0)}}const u=os[t];let f,d;if(u)return t==="$attrs"&&qe(e.attrs,"get",""),u(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(n!==be&&he(n,t))return i[t]=4,n[t];if(d=l.config.globalProperties,he(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:o}=e;return Ji(s,t)?(s[t]=n,!0):r!==be&&he(r,t)?(r[t]=n,!0):he(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:o}},i){let a;return!!n[i]||e!==be&&he(e,i)||Ji(t,i)||(a=o[0])&&he(a,i)||he(r,i)||he(os,i)||he(s.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:he(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Fc(e){return te(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function iy(e){const t=Hr();let n=e();return Da(),Al(n)&&(n=n.catch(r=>{throw tr(t),r})),[n,()=>tr(t)]}let Na=!0;function ay(e){const t=Fd(e),n=e.proxy,r=e.ctx;Na=!1,t.beforeCreate&&Bc(t.beforeCreate,e,"bc");const{data:s,computed:o,methods:i,watch:a,provide:l,inject:c,created:u,beforeMount:f,mounted:d,beforeUpdate:p,updated:h,activated:g,deactivated:m,beforeDestroy:b,beforeUnmount:v,destroyed:y,unmounted:_,render:C,renderTracked:A,renderTriggered:N,errorCaptured:G,serverPrefetch:P,expose:E,inheritAttrs:M,components:T,directives:k,filters:S}=t;if(c&&ly(c,r,null),i)for(const V in i){const B=i[V];ne(B)&&(r[V]=B.bind(n))}if(s){const V=s.call(n,n);ye(V)&&(e.data=Sn(V))}if(Na=!0,o)for(const V in o){const B=o[V],Y=ne(B)?B.bind(n,n):ne(B.get)?B.get.bind(n,n):Nt,ve=!ne(B)&&ne(B.set)?B.set.bind(n):Nt,_e=Ee({get:Y,set:ve});Object.defineProperty(r,V,{enumerable:!0,configurable:!0,get:()=>_e.value,set:Be=>_e.value=Be})}if(a)for(const V in a)Dd(a[V],r,n,V);if(l){const V=ne(l)?l.call(n):l;Reflect.ownKeys(V).forEach(B=>{Hd(B,V[B])})}u&&Bc(u,e,"c");function I(V,B){te(B)?B.forEach(Y=>V(Y.bind(n))):B&&V(B.bind(n))}if(I(Zm,f),I(Ci,d),I(ey,p),I(Rd,h),I(Td,g),I(Ad,m),I(Nd,G),I(ry,A),I(ny,N),I(xi,v),I(Pd,_),I(ty,P),te(E))if(E.length){const V=e.exposed||(e.exposed={});E.forEach(B=>{Object.defineProperty(V,B,{get:()=>n[B],set:Y=>n[B]=Y})})}else e.exposed||(e.exposed={});C&&e.render===Nt&&(e.render=C),M!=null&&(e.inheritAttrs=M),T&&(e.components=T),k&&(e.directives=k),P&&Fl(e)}function ly(e,t,n=Nt){te(e)&&(e=Ia(e));for(const r in e){const s=e[r];let o;ye(s)?"default"in s?o=kr(s.from||r,s.default,!0):o=kr(s.from||r):o=kr(s),Oe(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[r]=o}}function Bc(e,t,n){kt(te(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Dd(e,t,n,r){let s=r.includes(".")?Zd(n,r):()=>n[r];if(Se(e)){const o=t[e];ne(o)&&Yt(s,o)}else if(ne(e))Yt(s,e.bind(n));else if(ye(e))if(te(e))e.forEach(o=>Dd(o,t,n,r));else{const o=ne(e.handler)?e.handler.bind(n):t[e.handler];ne(o)&&Yt(s,o,e)}}function Fd(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,a=o.get(t);let l;return a?l=a:!s.length&&!n&&!r?l=t:(l={},s.length&&s.forEach(c=>Oo(l,c,i,!0)),Oo(l,t,i)),ye(t)&&o.set(t,l),l}function Oo(e,t,n,r=!1){const{mixins:s,extends:o}=t;o&&Oo(e,o,n,!0),s&&s.forEach(i=>Oo(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const a=cy[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const cy={data:Hc,props:jc,emits:jc,methods:Zr,computed:Zr,beforeCreate:Je,created:Je,beforeMount:Je,mounted:Je,beforeUpdate:Je,updated:Je,beforeDestroy:Je,beforeUnmount:Je,destroyed:Je,unmounted:Je,activated:Je,deactivated:Je,errorCaptured:Je,serverPrefetch:Je,components:Zr,directives:Zr,watch:fy,provide:Hc,inject:uy};function Hc(e,t){return t?e?function(){return Me(ne(e)?e.call(this,this):e,ne(t)?t.call(this,this):t)}:t:e}function uy(e,t){return Zr(Ia(e),Ia(t))}function Ia(e){if(te(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Je(e,t){return e?[...new Set([].concat(e,t))]:t}function Zr(e,t){return e?Me(Object.create(null),e,t):t}function jc(e,t){return e?te(e)&&te(t)?[...new Set([...e,...t])]:Me(Object.create(null),Fc(e),Fc(t??{})):t}function fy(e,t){if(!e)return t;if(!t)return e;const n=Me(Object.create(null),e);for(const r in t)n[r]=Je(e[r],t[r]);return n}function Bd(){return{app:null,config:{isNativeTag:Wg,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let dy=0;function hy(e,t){return function(r,s=null){ne(r)||(r=Me({},r)),s!=null&&!ye(s)&&(s=null);const o=Bd(),i=new WeakSet,a=[];let l=!1;const c=o.app={_uid:dy++,_component:r,_props:s,_container:null,_context:o,_instance:null,version:Jy,get config(){return o.config},set config(u){},use(u,...f){return i.has(u)||(u&&ne(u.install)?(i.add(u),u.install(c,...f)):ne(u)&&(i.add(u),u(c,...f))),c},mixin(u){return o.mixins.includes(u)||o.mixins.push(u),c},component(u,f){return f?(o.components[u]=f,c):o.components[u]},directive(u,f){return f?(o.directives[u]=f,c):o.directives[u]},mount(u,f,d){if(!l){const p=c._ceVNode||J(r,s);return p.appContext=o,d===!0?d="svg":d===!1&&(d=void 0),f&&t?t(p,u):e(p,u,d),l=!0,c._container=u,u.__vue_app__=c,Ei(p.component)}},onUnmount(u){a.push(u)},unmount(){l&&(kt(a,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,f){return o.provides[u]=f,c},runWithContext(u){const f=Qn;Qn=c;try{return u()}finally{Qn=f}}};return c}}let Qn=null;function Hd(e,t){if(Ie){let n=Ie.provides;const r=Ie.parent&&Ie.parent.provides;r===n&&(n=Ie.provides=Object.create(r)),n[e]=t}}function kr(e,t,n=!1){const r=Ie||Le;if(r||Qn){let s=Qn?Qn._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&ne(t)?t.call(r&&r.proxy):t}}function Hl(){return!!(Ie||Le||Qn)}const jd={},Ud=()=>Object.create(jd),Gd=e=>Object.getPrototypeOf(e)===jd;function py(e,t,n,r=!1){const s={},o=Ud();e.propsDefaults=Object.create(null),Wd(e,t,s,o);for(const i in e.propsOptions[0])i in s||(s[i]=void 0);n?e.props=r?s:Wn(s):e.type.props?e.props=s:e.props=o,e.attrs=o}function gy(e,t,n,r){const{props:s,attrs:o,vnode:{patchFlag:i}}=e,a=de(s),[l]=e.propsOptions;let c=!1;if((r||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let f=0;f<u.length;f++){let d=u[f];if(Si(e.emitsOptions,d))continue;const p=t[d];if(l)if(he(o,d))p!==o[d]&&(o[d]=p,c=!0);else{const h=mt(d);s[h]=La(l,a,h,p,e,!1)}else p!==o[d]&&(o[d]=p,c=!0)}}}else{Wd(e,t,s,o)&&(c=!0);let u;for(const f in a)(!t||!he(t,f)&&((u=Tn(f))===f||!he(t,u)))&&(l?n&&(n[f]!==void 0||n[u]!==void 0)&&(s[f]=La(l,a,f,void 0,e,!0)):delete s[f]);if(o!==a)for(const f in o)(!t||!he(t,f))&&(delete o[f],c=!0)}c&&Gt(e.attrs,"set","")}function Wd(e,t,n,r){const[s,o]=e.propsOptions;let i=!1,a;if(t)for(let l in t){if(xr(l))continue;const c=t[l];let u;s&&he(s,u=mt(l))?!o||!o.includes(u)?n[u]=c:(a||(a={}))[u]=c:Si(e.emitsOptions,l)||(!(l in r)||c!==r[l])&&(r[l]=c,i=!0)}if(o){const l=de(n),c=a||be;for(let u=0;u<o.length;u++){const f=o[u];n[f]=La(s,l,f,c[f],e,!he(c,f))}}return i}function La(e,t,n,r,s,o){const i=e[n];if(i!=null){const a=he(i,"default");if(a&&r===void 0){const l=i.default;if(i.type!==Function&&!i.skipFactory&&ne(l)){const{propsDefaults:c}=s;if(n in c)r=c[n];else{const u=tr(s);r=c[n]=l.call(null,t),u()}}else r=l;s.ce&&s.ce._setProp(n,r)}i[0]&&(o&&!a?r=!1:i[1]&&(r===""||r===Tn(n))&&(r=!0))}return r}const my=new WeakMap;function Vd(e,t,n=!1){const r=n?my:t.propsCache,s=r.get(e);if(s)return s;const o=e.props,i={},a=[];let l=!1;if(!ne(e)){const u=f=>{l=!0;const[d,p]=Vd(f,t,!0);Me(i,d),p&&a.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!l)return ye(e)&&r.set(e,wr),wr;if(te(o))for(let u=0;u<o.length;u++){const f=mt(o[u]);Uc(f)&&(i[f]=be)}else if(o)for(const u in o){const f=mt(u);if(Uc(f)){const d=o[u],p=i[f]=te(d)||ne(d)?{type:d}:Me({},d),h=p.type;let g=!1,m=!0;if(te(h))for(let b=0;b<h.length;++b){const v=h[b],y=ne(v)&&v.name;if(y==="Boolean"){g=!0;break}else y==="String"&&(m=!1)}else g=ne(h)&&h.name==="Boolean";p[0]=g,p[1]=m,(g||he(p,"default"))&&a.push(f)}}const c=[i,a];return ye(e)&&r.set(e,c),c}function Uc(e){return e[0]!=="$"&&!xr(e)}const jl=e=>e[0]==="_"||e==="$stable",Ul=e=>te(e)?e.map(ot):[ot(e)],yy=(e,t,n)=>{if(t._n)return t;const r=se((...s)=>Ul(t(...s)),n);return r._c=!1,r},zd=(e,t,n)=>{const r=e._ctx;for(const s in e){if(jl(s))continue;const o=e[s];if(ne(o))t[s]=yy(s,o,r);else if(o!=null){const i=Ul(o);t[s]=()=>i}}},qd=(e,t)=>{const n=Ul(t);e.slots.default=()=>n},Kd=(e,t,n)=>{for(const r in t)(n||!jl(r))&&(e[r]=t[r])},by=(e,t,n)=>{const r=e.slots=Ud();if(e.vnode.shapeFlag&32){const s=t._;s?(Kd(r,t,n),n&&Xf(r,"_",s,!0)):zd(t,r)}else t&&qd(e,t)},vy=(e,t,n)=>{const{vnode:r,slots:s}=e;let o=!0,i=be;if(r.shapeFlag&32){const a=t._;a?n&&a===1?o=!1:Kd(s,t,n):(o=!t.$stable,zd(t,s)),i=t}else t&&(qd(e,t),i={default:1});if(o)for(const a in s)!jl(a)&&i[a]==null&&delete s[a]},Ye=rh;function _y(e){return Xd(e)}function wy(e){return Xd(e,Xm)}function Xd(e,t){const n=mi();n.__VUE__=!0;const{insert:r,remove:s,patchProp:o,createElement:i,createText:a,createComment:l,setText:c,setElementText:u,parentNode:f,nextSibling:d,setScopeId:p=Nt,insertStaticContent:h}=e,g=(w,x,R,H=null,O=null,D=null,K=void 0,q=null,z=!!x.dynamicChildren)=>{if(w===x)return;w&&!zt(w,x)&&(H=an(w),Be(w,O,D,!0),w=null),x.patchFlag===-2&&(z=!1,x.dynamicChildren=null);const{type:j,ref:ee,shapeFlag:X}=x;switch(j){case Zn:m(w,x,R,H);break;case at:b(w,x,R,H);break;case is:w==null&&v(x,R,H,K);break;case ge:T(w,x,R,H,O,D,K,q,z);break;default:X&1?C(w,x,R,H,O,D,K,q,z):X&6?k(w,x,R,H,O,D,K,q,z):(X&64||X&128)&&j.process(w,x,R,H,O,D,K,q,z,lr)}ee!=null&&O&&xs(ee,w&&w.ref,D,x||w,!x)},m=(w,x,R,H)=>{if(w==null)r(x.el=a(x.children),R,H);else{const O=x.el=w.el;x.children!==w.children&&c(O,x.children)}},b=(w,x,R,H)=>{w==null?r(x.el=l(x.children||""),R,H):x.el=w.el},v=(w,x,R,H)=>{[w.el,w.anchor]=h(w.children,x,R,H,w.el,w.anchor)},y=({el:w,anchor:x},R,H)=>{let O;for(;w&&w!==x;)O=d(w),r(w,R,H),w=O;r(x,R,H)},_=({el:w,anchor:x})=>{let R;for(;w&&w!==x;)R=d(w),s(w),w=R;s(x)},C=(w,x,R,H,O,D,K,q,z)=>{x.type==="svg"?K="svg":x.type==="math"&&(K="mathml"),w==null?A(x,R,H,O,D,K,q,z):P(w,x,O,D,K,q,z)},A=(w,x,R,H,O,D,K,q)=>{let z,j;const{props:ee,shapeFlag:X,transition:Q,dirs:re}=w;if(z=w.el=i(w.type,D,ee&&ee.is,ee),X&8?u(z,w.children):X&16&&G(w.children,z,null,H,O,Yi(w,D),K,q),re&&Pt(w,null,H,"created"),N(z,w,w.scopeId,K,H),ee){for(const we in ee)we!=="value"&&!xr(we)&&o(z,we,null,ee[we],D,H);"value"in ee&&o(z,"value",null,ee.value,D),(j=ee.onVnodeBeforeMount)&&ut(j,H,w)}re&&Pt(w,null,H,"beforeMount");const le=Jd(O,Q);le&&Q.beforeEnter(z),r(z,x,R),((j=ee&&ee.onVnodeMounted)||le||re)&&Ye(()=>{j&&ut(j,H,w),le&&Q.enter(z),re&&Pt(w,null,H,"mounted")},O)},N=(w,x,R,H,O)=>{if(R&&p(w,R),H)for(let D=0;D<H.length;D++)p(w,H[D]);if(O){let D=O.subTree;if(x===D||th(D.type)&&(D.ssContent===x||D.ssFallback===x)){const K=O.vnode;N(w,K,K.scopeId,K.slotScopeIds,O.parent)}}},G=(w,x,R,H,O,D,K,q,z=0)=>{for(let j=z;j<w.length;j++){const ee=w[j]=q?gn(w[j]):ot(w[j]);g(null,ee,x,R,H,O,D,K,q)}},P=(w,x,R,H,O,D,K)=>{const q=x.el=w.el;let{patchFlag:z,dynamicChildren:j,dirs:ee}=x;z|=w.patchFlag&16;const X=w.props||be,Q=x.props||be;let re;if(R&&Nn(R,!1),(re=Q.onVnodeBeforeUpdate)&&ut(re,R,x,w),ee&&Pt(x,w,R,"beforeUpdate"),R&&Nn(R,!0),(X.innerHTML&&Q.innerHTML==null||X.textContent&&Q.textContent==null)&&u(q,""),j?E(w.dynamicChildren,j,q,R,H,Yi(x,O),D):K||B(w,x,q,null,R,H,Yi(x,O),D,!1),z>0){if(z&16)M(q,X,Q,R,O);else if(z&2&&X.class!==Q.class&&o(q,"class",null,Q.class,O),z&4&&o(q,"style",X.style,Q.style,O),z&8){const le=x.dynamicProps;for(let we=0;we<le.length;we++){const pe=le[we],tt=X[pe],We=Q[pe];(We!==tt||pe==="value")&&o(q,pe,tt,We,O,R)}}z&1&&w.children!==x.children&&u(q,x.children)}else!K&&j==null&&M(q,X,Q,R,O);((re=Q.onVnodeUpdated)||ee)&&Ye(()=>{re&&ut(re,R,x,w),ee&&Pt(x,w,R,"updated")},H)},E=(w,x,R,H,O,D,K)=>{for(let q=0;q<x.length;q++){const z=w[q],j=x[q],ee=z.el&&(z.type===ge||!zt(z,j)||z.shapeFlag&198)?f(z.el):R;g(z,j,ee,null,H,O,D,K,!0)}},M=(w,x,R,H,O)=>{if(x!==R){if(x!==be)for(const D in x)!xr(D)&&!(D in R)&&o(w,D,x[D],null,O,H);for(const D in R){if(xr(D))continue;const K=R[D],q=x[D];K!==q&&D!=="value"&&o(w,D,q,K,O,H)}"value"in R&&o(w,"value",x.value,R.value,O)}},T=(w,x,R,H,O,D,K,q,z)=>{const j=x.el=w?w.el:a(""),ee=x.anchor=w?w.anchor:a("");let{patchFlag:X,dynamicChildren:Q,slotScopeIds:re}=x;re&&(q=q?q.concat(re):re),w==null?(r(j,R,H),r(ee,R,H),G(x.children||[],R,ee,O,D,K,q,z)):X>0&&X&64&&Q&&w.dynamicChildren?(E(w.dynamicChildren,Q,R,O,D,K,q),(x.key!=null||O&&x===O.subTree)&&Gl(w,x,!0)):B(w,x,R,ee,O,D,K,q,z)},k=(w,x,R,H,O,D,K,q,z)=>{x.slotScopeIds=q,w==null?x.shapeFlag&512?O.ctx.activate(x,R,H,K,z):S(x,R,H,O,D,K,z):L(w,x,z)},S=(w,x,R,H,O,D,K)=>{const q=w.component=Gy(w,H,O);if(Bl(w)&&(q.ctx.renderer=lr),Wy(q,!1,K),q.asyncDep){if(O&&O.registerDep(q,I,K),!w.el){const z=q.subTree=J(at);b(null,z,x,R)}}else I(q,w,x,R,O,D,K)},L=(w,x,R)=>{const H=x.component=w.component;if(Py(w,x,R))if(H.asyncDep&&!H.asyncResolved){V(H,x,R);return}else H.next=x,H.update();else x.el=w.el,H.vnode=x},I=(w,x,R,H,O,D,K)=>{const q=()=>{if(w.isMounted){let{next:X,bu:Q,u:re,parent:le,vnode:we}=w;{const nt=Yd(w);if(nt){X&&(X.el=we.el,V(w,X,K)),nt.asyncDep.then(()=>{w.isUnmounted||q()});return}}let pe=X,tt;Nn(w,!1),X?(X.el=we.el,V(w,X,K)):X=we,Q&&mo(Q),(tt=X.props&&X.props.onVnodeBeforeUpdate)&&ut(tt,le,X,we),Nn(w,!0);const We=Qi(w),yt=w.subTree;w.subTree=We,g(yt,We,f(yt.el),an(yt),w,O,D),X.el=We.el,pe===null&&ki(w,We.el),re&&Ye(re,O),(tt=X.props&&X.props.onVnodeUpdated)&&Ye(()=>ut(tt,le,X,we),O)}else{let X;const{el:Q,props:re}=x,{bm:le,m:we,parent:pe,root:tt,type:We}=w,yt=Yn(x);if(Nn(w,!1),le&&mo(le),!yt&&(X=re&&re.onVnodeBeforeMount)&&ut(X,pe,x),Nn(w,!0),Q&&ji){const nt=()=>{w.subTree=Qi(w),ji(Q,w.subTree,w,O,null)};yt&&We.__asyncHydrate?We.__asyncHydrate(Q,w,nt):nt()}else{tt.ce&&tt.ce._injectChildStyle(We);const nt=w.subTree=Qi(w);g(null,nt,R,H,w,O,D),x.el=nt.el}if(we&&Ye(we,O),!yt&&(X=re&&re.onVnodeMounted)){const nt=x;Ye(()=>ut(X,pe,nt),O)}(x.shapeFlag&256||pe&&Yn(pe.vnode)&&pe.vnode.shapeFlag&256)&&w.a&&Ye(w.a,O),w.isMounted=!0,x=R=H=null}};w.scope.on();const z=w.effect=new nd(q);w.scope.off();const j=w.update=z.run.bind(z),ee=w.job=z.runIfDirty.bind(z);ee.i=w,ee.id=w.uid,z.scheduler=()=>Dl(ee),Nn(w,!0),j()},V=(w,x,R)=>{x.component=w;const H=w.vnode.props;w.vnode=x,w.next=null,gy(w,x.props,H,R),vy(w,x.children,R),Zt(),Rc(w),en()},B=(w,x,R,H,O,D,K,q,z=!1)=>{const j=w&&w.children,ee=w?w.shapeFlag:0,X=x.children,{patchFlag:Q,shapeFlag:re}=x;if(Q>0){if(Q&128){ve(j,X,R,H,O,D,K,q,z);return}else if(Q&256){Y(j,X,R,H,O,D,K,q,z);return}}re&8?(ee&16&&on(j,O,D),X!==j&&u(R,X)):ee&16?re&16?ve(j,X,R,H,O,D,K,q,z):on(j,O,D,!0):(ee&8&&u(R,""),re&16&&G(X,R,H,O,D,K,q,z))},Y=(w,x,R,H,O,D,K,q,z)=>{w=w||wr,x=x||wr;const j=w.length,ee=x.length,X=Math.min(j,ee);let Q;for(Q=0;Q<X;Q++){const re=x[Q]=z?gn(x[Q]):ot(x[Q]);g(w[Q],re,R,null,O,D,K,q,z)}j>ee?on(w,O,D,!0,!1,X):G(x,R,H,O,D,K,q,z,X)},ve=(w,x,R,H,O,D,K,q,z)=>{let j=0;const ee=x.length;let X=w.length-1,Q=ee-1;for(;j<=X&&j<=Q;){const re=w[j],le=x[j]=z?gn(x[j]):ot(x[j]);if(zt(re,le))g(re,le,R,null,O,D,K,q,z);else break;j++}for(;j<=X&&j<=Q;){const re=w[X],le=x[Q]=z?gn(x[Q]):ot(x[Q]);if(zt(re,le))g(re,le,R,null,O,D,K,q,z);else break;X--,Q--}if(j>X){if(j<=Q){const re=Q+1,le=re<ee?x[re].el:H;for(;j<=Q;)g(null,x[j]=z?gn(x[j]):ot(x[j]),R,le,O,D,K,q,z),j++}}else if(j>Q)for(;j<=X;)Be(w[j],O,D,!0),j++;else{const re=j,le=j,we=new Map;for(j=le;j<=Q;j++){const rt=x[j]=z?gn(x[j]):ot(x[j]);rt.key!=null&&we.set(rt.key,j)}let pe,tt=0;const We=Q-le+1;let yt=!1,nt=0;const Vr=new Array(We);for(j=0;j<We;j++)Vr[j]=0;for(j=re;j<=X;j++){const rt=w[j];if(tt>=We){Be(rt,O,D,!0);continue}let Tt;if(rt.key!=null)Tt=we.get(rt.key);else for(pe=le;pe<=Q;pe++)if(Vr[pe-le]===0&&zt(rt,x[pe])){Tt=pe;break}Tt===void 0?Be(rt,O,D,!0):(Vr[Tt-le]=j+1,Tt>=nt?nt=Tt:yt=!0,g(rt,x[Tt],R,null,O,D,K,q,z),tt++)}const Cc=yt?Cy(Vr):wr;for(pe=Cc.length-1,j=We-1;j>=0;j--){const rt=le+j,Tt=x[rt],xc=rt+1<ee?x[rt+1].el:H;Vr[j]===0?g(null,Tt,R,xc,O,D,K,q,z):yt&&(pe<0||j!==Cc[pe]?_e(Tt,R,xc,2):pe--)}}},_e=(w,x,R,H,O=null)=>{const{el:D,type:K,transition:q,children:z,shapeFlag:j}=w;if(j&6){_e(w.component.subTree,x,R,H);return}if(j&128){w.suspense.move(x,R,H);return}if(j&64){K.move(w,x,R,lr);return}if(K===ge){r(D,x,R);for(let X=0;X<z.length;X++)_e(z[X],x,R,H);r(w.anchor,x,R);return}if(K===is){y(w,x,R);return}if(H!==2&&j&1&&q)if(H===0)q.beforeEnter(D),r(D,x,R),Ye(()=>q.enter(D),O);else{const{leave:X,delayLeave:Q,afterLeave:re}=q,le=()=>{w.ctx.isUnmounted?s(D):r(D,x,R)},we=()=>{X(D,()=>{le(),re&&re()})};Q?Q(D,le,we):we()}else r(D,x,R)},Be=(w,x,R,H=!1,O=!1)=>{const{type:D,props:K,ref:q,children:z,dynamicChildren:j,shapeFlag:ee,patchFlag:X,dirs:Q,cacheIndex:re}=w;if(X===-2&&(O=!1),q!=null&&(Zt(),xs(q,null,R,w,!0),en()),re!=null&&(x.renderCache[re]=void 0),ee&256){x.ctx.deactivate(w);return}const le=ee&1&&Q,we=!Yn(w);let pe;if(we&&(pe=K&&K.onVnodeBeforeUnmount)&&ut(pe,x,w),ee&6)$n(w.component,R,H);else{if(ee&128){w.suspense.unmount(R,H);return}le&&Pt(w,null,x,"beforeUnmount"),ee&64?w.type.remove(w,x,R,lr,H):j&&!j.hasOnce&&(D!==ge||X>0&&X&64)?on(j,x,R,!1,!0):(D===ge&&X&384||!O&&ee&16)&&on(z,x,R),H&&sn(w)}(we&&(pe=K&&K.onVnodeUnmounted)||le)&&Ye(()=>{pe&&ut(pe,x,w),le&&Pt(w,null,x,"unmounted")},R)},sn=w=>{const{type:x,el:R,anchor:H,transition:O}=w;if(x===ge){Et(R,H);return}if(x===is){_(w);return}const D=()=>{s(R),O&&!O.persisted&&O.afterLeave&&O.afterLeave()};if(w.shapeFlag&1&&O&&!O.persisted){const{leave:K,delayLeave:q}=O,z=()=>K(R,D);q?q(w.el,D,z):z()}else D()},Et=(w,x)=>{let R;for(;w!==x;)R=d(w),s(w),w=R;s(x)},$n=(w,x,R)=>{const{bum:H,scope:O,job:D,subTree:K,um:q,m:z,a:j,parent:ee,slots:{__:X}}=w;Gc(z),Gc(j),H&&mo(H),ee&&te(X)&&X.forEach(Q=>{ee.renderCache[Q]=void 0}),O.stop(),D&&(D.flags|=8,Be(K,w,x,R)),q&&Ye(q,x),Ye(()=>{w.isUnmounted=!0},x),x&&x.pendingBranch&&!x.isUnmounted&&w.asyncDep&&!w.asyncResolved&&w.suspenseId===x.pendingId&&(x.deps--,x.deps===0&&x.resolve())},on=(w,x,R,H=!1,O=!1,D=0)=>{for(let K=D;K<w.length;K++)Be(w[K],x,R,H,O)},an=w=>{if(w.shapeFlag&6)return an(w.component.subTree);if(w.shapeFlag&128)return w.suspense.next();const x=d(w.anchor||w.el),R=x&&x[xd];return R?d(R):x};let Rn=!1;const wc=(w,x,R)=>{w==null?x._vnode&&Be(x._vnode,null,null,!0):g(x._vnode||null,w,x,null,null,null,R),x._vnode=w,Rn||(Rn=!0,Rc(),Io(),Rn=!1)},lr={p:g,um:Be,m:_e,r:sn,mt:S,mc:G,pc:B,pbc:E,n:an,o:e};let Hi,ji;return t&&([Hi,ji]=t(lr)),{render:wc,hydrate:Hi,createApp:hy(wc,Hi)}}function Yi({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Nn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Jd(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Gl(e,t,n=!1){const r=e.children,s=t.children;if(te(r)&&te(s))for(let o=0;o<r.length;o++){const i=r[o];let a=s[o];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=s[o]=gn(s[o]),a.el=i.el),!n&&a.patchFlag!==-2&&Gl(i,a)),a.type===Zn&&(a.el=i.el),a.type===at&&!a.el&&(a.el=i.el)}}function Cy(e){const t=e.slice(),n=[0];let r,s,o,i,a;const l=e.length;for(r=0;r<l;r++){const c=e[r];if(c!==0){if(s=n[n.length-1],e[s]<c){t[r]=s,n.push(r);continue}for(o=0,i=n.length-1;o<i;)a=o+i>>1,e[n[a]]<c?o=a+1:i=a;c<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function Yd(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Yd(t)}function Gc(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const xy=Symbol.for("v-scx"),Sy=()=>kr(xy);function Qd(e,t){return Wl(e,null,t)}function Yt(e,t,n){return Wl(e,t,n)}function Wl(e,t,n=be){const{immediate:r,deep:s,flush:o,once:i}=n,a=Me({},n),l=t&&r||!t&&o!=="post";let c;if(Ir){if(o==="sync"){const p=Sy();c=p.__watcherHandles||(p.__watcherHandles=[])}else if(!l){const p=()=>{};return p.stop=Nt,p.resume=Nt,p.pause=Nt,p}}const u=Ie;a.call=(p,h,g)=>kt(p,u,h,g);let f=!1;o==="post"?a.scheduler=p=>{Ye(p,u&&u.suspense)}:o!=="sync"&&(f=!0,a.scheduler=(p,h)=>{h?p():Dl(p)}),a.augmentJob=p=>{t&&(p.flags|=4),f&&(p.flags|=2,u&&(p.id=u.uid,p.i=u))};const d=Om(e,t,a);return Ir&&(c?c.push(d):l&&d()),d}function ky(e,t,n){const r=this.proxy,s=Se(e)?e.includes(".")?Zd(r,e):()=>r[e]:e.bind(r,r);let o;ne(t)?o=t:(o=t.handler,n=t);const i=tr(this),a=Wl(s,o.bind(r),n);return i(),a}function Zd(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}const Ey=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${mt(t)}Modifiers`]||e[`${Tn(t)}Modifiers`];function Ty(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||be;let s=n;const o=t.startsWith("update:"),i=o&&Ey(r,t.slice(7));i&&(i.trim&&(s=n.map(u=>Se(u)?u.trim():u)),i.number&&(s=n.map(Xg)));let a,l=r[a=Wi(t)]||r[a=Wi(mt(t))];!l&&o&&(l=r[a=Wi(Tn(t))]),l&&kt(l,e,6,s);const c=r[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,kt(c,e,6,s)}}function eh(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const o=e.emits;let i={},a=!1;if(!ne(e)){const l=c=>{const u=eh(c,t,!0);u&&(a=!0,Me(i,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!a?(ye(e)&&r.set(e,null),null):(te(o)?o.forEach(l=>i[l]=null):Me(i,o),ye(e)&&r.set(e,i),i)}function Si(e,t){return!e||!Ms(t)?!1:(t=t.slice(2).replace(/Once$/,""),he(e,t[0].toLowerCase()+t.slice(1))||he(e,Tn(t))||he(e,t))}function Qi(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[o],slots:i,attrs:a,emit:l,render:c,renderCache:u,props:f,data:d,setupState:p,ctx:h,inheritAttrs:g}=e,m=Lo(e);let b,v;try{if(n.shapeFlag&4){const _=s||r,C=_;b=ot(c.call(C,_,u,f,p,d,h)),v=a}else{const _=t;b=ot(_.length>1?_(f,{attrs:a,slots:i,emit:l}):_(f,null)),v=t.props?a:$y(a)}}catch(_){as.length=0,Br(_,e,1),b=J(at)}let y=b;if(v&&g!==!1){const _=Object.keys(v),{shapeFlag:C}=y;_.length&&C&7&&(o&&_.some(El)&&(v=Ry(v,o)),y=er(y,v,!1,!0))}return n.dirs&&(y=er(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&Cs(y,n.transition),b=y,Lo(m),b}function Ay(e,t=!0){let n;for(let r=0;r<e.length;r++){const s=e[r];if(Nr(s)){if(s.type!==at||s.children==="v-if"){if(n)return;n=s}}else return}return n}const $y=e=>{let t;for(const n in e)(n==="class"||n==="style"||Ms(n))&&((t||(t={}))[n]=e[n]);return t},Ry=(e,t)=>{const n={};for(const r in e)(!El(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Py(e,t,n){const{props:r,children:s,component:o}=e,{props:i,children:a,patchFlag:l}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Wc(r,i,c):!!i;if(l&8){const u=t.dynamicProps;for(let f=0;f<u.length;f++){const d=u[f];if(i[d]!==r[d]&&!Si(c,d))return!0}}}else return(s||a)&&(!a||!a.$stable)?!0:r===i?!1:r?i?Wc(r,i,c):!0:!!i;return!1}function Wc(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const o=r[s];if(t[o]!==e[o]&&!Si(n,o))return!0}return!1}function ki({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const th=e=>e.__isSuspense;let Oa=0;const Ny={name:"Suspense",__isSuspense:!0,process(e,t,n,r,s,o,i,a,l,c){if(e==null)Ly(t,n,r,s,o,i,a,l,c);else{if(o&&o.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}Oy(e,t,n,r,s,i,a,l,c)}},hydrate:My,normalize:Dy},Iy=Ny;function Ss(e,t){const n=e.props&&e.props[t];ne(n)&&n()}function Ly(e,t,n,r,s,o,i,a,l){const{p:c,o:{createElement:u}}=l,f=u("div"),d=e.suspense=nh(e,s,r,t,f,n,o,i,a,l);c(null,d.pendingBranch=e.ssContent,f,null,r,d,o,i),d.deps>0?(Ss(e,"onPending"),Ss(e,"onFallback"),c(null,e.ssFallback,t,n,r,null,o,i),Er(d,e.ssFallback)):d.resolve(!1,!0)}function Oy(e,t,n,r,s,o,i,a,{p:l,um:c,o:{createElement:u}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const d=t.ssContent,p=t.ssFallback,{activeBranch:h,pendingBranch:g,isInFallback:m,isHydrating:b}=f;if(g)f.pendingBranch=d,zt(d,g)?(l(g,d,f.hiddenContainer,null,s,f,o,i,a),f.deps<=0?f.resolve():m&&(b||(l(h,p,n,r,s,null,o,i,a),Er(f,p)))):(f.pendingId=Oa++,b?(f.isHydrating=!1,f.activeBranch=g):c(g,s,f),f.deps=0,f.effects.length=0,f.hiddenContainer=u("div"),m?(l(null,d,f.hiddenContainer,null,s,f,o,i,a),f.deps<=0?f.resolve():(l(h,p,n,r,s,null,o,i,a),Er(f,p))):h&&zt(d,h)?(l(h,d,n,r,s,f,o,i,a),f.resolve(!0)):(l(null,d,f.hiddenContainer,null,s,f,o,i,a),f.deps<=0&&f.resolve()));else if(h&&zt(d,h))l(h,d,n,r,s,f,o,i,a),Er(f,d);else if(Ss(t,"onPending"),f.pendingBranch=d,d.shapeFlag&512?f.pendingId=d.component.suspenseId:f.pendingId=Oa++,l(null,d,f.hiddenContainer,null,s,f,o,i,a),f.deps<=0)f.resolve();else{const{timeout:v,pendingId:y}=f;v>0?setTimeout(()=>{f.pendingId===y&&f.fallback(p)},v):v===0&&f.fallback(p)}}function nh(e,t,n,r,s,o,i,a,l,c,u=!1){const{p:f,m:d,um:p,n:h,o:{parentNode:g,remove:m}}=c;let b;const v=Fy(e);v&&t&&t.pendingBranch&&(b=t.pendingId,t.deps++);const y=e.props?Jf(e.props.timeout):void 0,_=o,C={vnode:e,parent:t,parentComponent:n,namespace:i,container:r,hiddenContainer:s,deps:0,pendingId:Oa++,timeout:typeof y=="number"?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(A=!1,N=!1){const{vnode:G,activeBranch:P,pendingBranch:E,pendingId:M,effects:T,parentComponent:k,container:S}=C;let L=!1;C.isHydrating?C.isHydrating=!1:A||(L=P&&E.transition&&E.transition.mode==="out-in",L&&(P.transition.afterLeave=()=>{M===C.pendingId&&(d(E,S,o===_?h(P):o,0),Aa(T))}),P&&(g(P.el)===S&&(o=h(P)),p(P,k,C,!0)),L||d(E,S,o,0)),Er(C,E),C.pendingBranch=null,C.isInFallback=!1;let I=C.parent,V=!1;for(;I;){if(I.pendingBranch){I.effects.push(...T),V=!0;break}I=I.parent}!V&&!L&&Aa(T),C.effects=[],v&&t&&t.pendingBranch&&b===t.pendingId&&(t.deps--,t.deps===0&&!N&&t.resolve()),Ss(G,"onResolve")},fallback(A){if(!C.pendingBranch)return;const{vnode:N,activeBranch:G,parentComponent:P,container:E,namespace:M}=C;Ss(N,"onFallback");const T=h(G),k=()=>{C.isInFallback&&(f(null,A,E,T,P,null,M,a,l),Er(C,A))},S=A.transition&&A.transition.mode==="out-in";S&&(G.transition.afterLeave=k),C.isInFallback=!0,p(G,P,null,!0),S||k()},move(A,N,G){C.activeBranch&&d(C.activeBranch,A,N,G),C.container=A},next(){return C.activeBranch&&h(C.activeBranch)},registerDep(A,N,G){const P=!!C.pendingBranch;P&&C.deps++;const E=A.vnode.el;A.asyncDep.catch(M=>{Br(M,A,0)}).then(M=>{if(A.isUnmounted||C.isUnmounted||C.pendingId!==A.suspenseId)return;A.asyncResolved=!0;const{vnode:T}=A;Fa(A,M),E&&(T.el=E);const k=!E&&A.subTree.el;N(A,T,g(E||A.subTree.el),E?null:h(A.subTree),C,i,G),k&&m(k),ki(A,T.el),P&&--C.deps===0&&C.resolve()})},unmount(A,N){C.isUnmounted=!0,C.activeBranch&&p(C.activeBranch,n,A,N),C.pendingBranch&&p(C.pendingBranch,n,A,N)}};return C}function My(e,t,n,r,s,o,i,a,l){const c=t.suspense=nh(t,r,n,e.parentNode,document.createElement("div"),null,s,o,i,a,!0),u=l(e,c.pendingBranch=t.ssContent,n,c,o,i);return c.deps===0&&c.resolve(!1,!0),u}function Dy(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Vc(r?n.default:n),e.ssFallback=r?Vc(n.fallback):J(at)}function Vc(e){let t;if(ne(e)){const n=Pr&&e._c;n&&(e._d=!1,W()),e=e(),n&&(e._d=!0,t=Ze,sh())}return te(e)&&(e=Ay(e)),e=ot(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function rh(e,t){t&&t.pendingBranch?te(e)?t.effects.push(...e):t.effects.push(e):Aa(e)}function Er(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let s=t.el;for(;!s&&t.component;)t=t.component.subTree,s=t.el;n.el=s,r&&r.subTree===n&&(r.vnode.el=s,ki(r,s))}function Fy(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const ge=Symbol.for("v-fgt"),Zn=Symbol.for("v-txt"),at=Symbol.for("v-cmt"),is=Symbol.for("v-stc"),as=[];let Ze=null;function W(e=!1){as.push(Ze=e?null:[])}function sh(){as.pop(),Ze=as[as.length-1]||null}let Pr=1;function zc(e,t=!1){Pr+=e,e<0&&Ze&&t&&(Ze.hasOnce=!0)}function oh(e){return e.dynamicChildren=Pr>0?Ze||wr:null,sh(),Pr>0&&Ze&&Ze.push(e),e}function Z(e,t,n,r,s,o){return oh(F(e,t,n,r,s,o,!0))}function me(e,t,n,r,s){return oh(J(e,t,n,r,s,!0))}function Nr(e){return e?e.__v_isVNode===!0:!1}function zt(e,t){return e.type===t.type&&e.key===t.key}const ih=({key:e})=>e??null,bo=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Se(e)||Oe(e)||ne(e)?{i:Le,r:e,k:t,f:!!n}:e:null);function F(e,t=null,n=null,r=0,s=null,o=e===ge?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ih(t),ref:t&&bo(t),scopeId:_i,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Le};return a?(zl(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=Se(n)?8:16),Pr>0&&!i&&Ze&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Ze.push(l),l}const J=By;function By(e,t=null,n=null,r=0,s=null,o=!1){if((!e||e===Ld)&&(e=at),Nr(e)){const a=er(e,t,!0);return n&&zl(a,n),Pr>0&&!o&&Ze&&(a.shapeFlag&6?Ze[Ze.indexOf(e)]=a:Ze.push(a)),a.patchFlag=-2,a}if(Xy(e)&&(e=e.__vccOpts),t){t=Vl(t);let{class:a,style:l}=t;a&&!Se(a)&&(t.class=$e(a)),ye(l)&&(Ml(l)&&!te(l)&&(l=Me({},l)),t.style=Jt(l))}const i=Se(e)?1:th(e)?128:jm(e)?64:ye(e)?4:ne(e)?2:0;return F(e,t,n,r,s,i,o,!0)}function Vl(e){return e?Ml(e)||Gd(e)?Me({},e):e:null}function er(e,t,n=!1,r=!1){const{props:s,ref:o,patchFlag:i,children:a,transition:l}=e,c=t?or(s||{},t):s,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&ih(c),ref:t&&t.ref?n&&o?te(o)?o.concat(bo(t)):[o,bo(t)]:bo(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ge?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&er(e.ssContent),ssFallback:e.ssFallback&&er(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&Cs(u,l.clone(u)),u}function fe(e=" ",t=0){return J(Zn,null,e,t)}function Hy(e,t){const n=J(is,null,e);return n.staticCount=t,n}function Te(e="",t=!1){return t?(W(),me(at,null,e)):J(at,null,e)}function ot(e){return e==null||typeof e=="boolean"?J(at):te(e)?J(ge,null,e.slice()):Nr(e)?gn(e):J(Zn,null,String(e))}function gn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:er(e)}function zl(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(te(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),zl(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Gd(t)?t._ctx=Le:s===3&&Le&&(Le.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ne(t)?(t={default:t,_ctx:Le},n=32):(t=String(t),r&64?(n=16,t=[fe(t)]):n=8);e.children=t,e.shapeFlag|=n}function or(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=$e([t.class,r.class]));else if(s==="style")t.style=Jt([t.style,r.style]);else if(Ms(s)){const o=t[s],i=r[s];i&&o!==i&&!(te(o)&&o.includes(i))&&(t[s]=o?[].concat(o,i):i)}else s!==""&&(t[s]=r[s])}return t}function ut(e,t,n,r=null){kt(e,t,7,[n,r])}const jy=Bd();let Uy=0;function Gy(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||jy,o={uid:Uy++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new td(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Vd(r,s),emitsOptions:eh(r,s),emit:null,emitted:null,propsDefaults:be,inheritAttrs:r.inheritAttrs,ctx:be,data:be,props:be,attrs:be,slots:be,refs:be,setupState:be,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=Ty.bind(null,o),e.ce&&e.ce(o),o}let Ie=null;const Hr=()=>Ie||Le;let Mo,Ma;{const e=mi(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),o=>{s.length>1?s.forEach(i=>i(o)):s[0](o)}};Mo=t("__VUE_INSTANCE_SETTERS__",n=>Ie=n),Ma=t("__VUE_SSR_SETTERS__",n=>Ir=n)}const tr=e=>{const t=Ie;return Mo(e),e.scope.on(),()=>{e.scope.off(),Mo(t)}},Da=()=>{Ie&&Ie.scope.off(),Mo(null)};function ah(e){return e.vnode.shapeFlag&4}let Ir=!1;function Wy(e,t=!1,n=!1){t&&Ma(t);const{props:r,children:s}=e.vnode,o=ah(e);py(e,r,o,t),by(e,s,n||t);const i=o?Vy(e,t):void 0;return t&&Ma(!1),i}function Vy(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,oy);const{setup:r}=n;if(r){Zt();const s=e.setupContext=r.length>1?qy(e):null,o=tr(e),i=Fs(r,e,0,[e.props,s]),a=Al(i);if(en(),o(),(a||e.sp)&&!Yn(e)&&Fl(e),a){if(i.then(Da,Da),t)return i.then(l=>{Fa(e,l)}).catch(l=>{Br(l,e,0)});e.asyncDep=i}else Fa(e,i)}else lh(e)}function Fa(e,t,n){ne(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ye(t)&&(e.setupState=yd(t)),lh(e)}function lh(e,t,n){const r=e.type;e.render||(e.render=r.render||Nt);{const s=tr(e);Zt();try{ay(e)}finally{en(),s()}}}const zy={get(e,t){return qe(e,"get",""),e[t]}};function qy(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,zy),slots:e.slots,emit:e.emit,expose:t}}function Ei(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(yd(Sm(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in os)return os[n](e)},has(t,n){return n in t||n in os}})):e.proxy}function Ky(e,t=!0){return ne(e)?e.displayName||e.name:e.name||t&&e.__name}function Xy(e){return ne(e)&&"__vccOpts"in e}const Ee=(e,t)=>Im(e,t,Ir);function kn(e,t,n){const r=arguments.length;return r===2?ye(t)&&!te(t)?Nr(t)?J(e,null,[t]):J(e,t):J(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Nr(n)&&(n=[n]),J(e,t,n))}const Jy="3.5.16";/**
|
|
16
|
+
* @vue/runtime-dom v3.5.16
|
|
17
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
18
|
+
* @license MIT
|
|
19
|
+
**/let Ba;const qc=typeof window<"u"&&window.trustedTypes;if(qc)try{Ba=qc.createPolicy("vue",{createHTML:e=>e})}catch{}const ch=Ba?e=>Ba.createHTML(e):e=>e,Yy="http://www.w3.org/2000/svg",Qy="http://www.w3.org/1998/Math/MathML",jt=typeof document<"u"?document:null,Kc=jt&&jt.createElement("template"),Zy={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?jt.createElementNS(Yy,e):t==="mathml"?jt.createElementNS(Qy,e):n?jt.createElement(e,{is:n}):jt.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>jt.createTextNode(e),createComment:e=>jt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>jt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,o){const i=n?n.previousSibling:t.lastChild;if(s&&(s===o||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{Kc.innerHTML=ch(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const a=Kc.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},ln="transition",qr="animation",Lr=Symbol("_vtc"),uh={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},eb=Me({},Vm,uh),In=(e,t=[])=>{te(e)?e.forEach(n=>n(...t)):e&&e(...t)},Xc=e=>e?te(e)?e.some(t=>t.length>1):e.length>1:!1;function tb(e){const t={};for(const T in e)T in uh||(t[T]=e[T]);if(e.css===!1)return t;const{name:n="v",type:r,duration:s,enterFromClass:o=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:c=i,appearToClass:u=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,h=nb(s),g=h&&h[0],m=h&&h[1],{onBeforeEnter:b,onEnter:v,onEnterCancelled:y,onLeave:_,onLeaveCancelled:C,onBeforeAppear:A=b,onAppear:N=v,onAppearCancelled:G=y}=t,P=(T,k,S,L)=>{T._enterCancelled=L,cn(T,k?u:a),cn(T,k?c:i),S&&S()},E=(T,k)=>{T._isLeaving=!1,cn(T,f),cn(T,p),cn(T,d),k&&k()},M=T=>(k,S)=>{const L=T?N:v,I=()=>P(k,T,S);In(L,[k,I]),Jc(()=>{cn(k,T?l:o),At(k,T?u:a),Xc(L)||Yc(k,r,g,I)})};return Me(t,{onBeforeEnter(T){In(b,[T]),At(T,o),At(T,i)},onBeforeAppear(T){In(A,[T]),At(T,l),At(T,c)},onEnter:M(!1),onAppear:M(!0),onLeave(T,k){T._isLeaving=!0;const S=()=>E(T,k);At(T,f),T._enterCancelled?(At(T,d),Ha()):(Ha(),At(T,d)),Jc(()=>{T._isLeaving&&(cn(T,f),At(T,p),Xc(_)||Yc(T,r,m,S))}),In(_,[T,S])},onEnterCancelled(T){P(T,!1,void 0,!0),In(y,[T])},onAppearCancelled(T){P(T,!0,void 0,!0),In(G,[T])},onLeaveCancelled(T){E(T),In(C,[T])}})}function nb(e){if(e==null)return null;if(ye(e))return[Zi(e.enter),Zi(e.leave)];{const t=Zi(e);return[t,t]}}function Zi(e){return Jf(e)}function At(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Lr]||(e[Lr]=new Set)).add(t)}function cn(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Lr];n&&(n.delete(t),n.size||(e[Lr]=void 0))}function Jc(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let rb=0;function Yc(e,t,n,r){const s=e._endId=++rb,o=()=>{s===e._endId&&r()};if(n!=null)return setTimeout(o,n);const{type:i,timeout:a,propCount:l}=fh(e,t);if(!i)return r();const c=i+"end";let u=0;const f=()=>{e.removeEventListener(c,d),o()},d=p=>{p.target===e&&++u>=l&&f()};setTimeout(()=>{u<l&&f()},a+1),e.addEventListener(c,d)}function fh(e,t){const n=window.getComputedStyle(e),r=h=>(n[h]||"").split(", "),s=r(`${ln}Delay`),o=r(`${ln}Duration`),i=Qc(s,o),a=r(`${qr}Delay`),l=r(`${qr}Duration`),c=Qc(a,l);let u=null,f=0,d=0;t===ln?i>0&&(u=ln,f=i,d=o.length):t===qr?c>0&&(u=qr,f=c,d=l.length):(f=Math.max(i,c),u=f>0?i>c?ln:qr:null,d=u?u===ln?o.length:l.length:0);const p=u===ln&&/\b(transform|all)(,|$)/.test(r(`${ln}Property`).toString());return{type:u,timeout:f,propCount:d,hasTransform:p}}function Qc(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>Zc(n)+Zc(e[r])))}function Zc(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Ha(){return document.body.offsetHeight}function sb(e,t,n){const r=e[Lr];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Do=Symbol("_vod"),dh=Symbol("_vsh"),ob={beforeMount(e,{value:t},{transition:n}){e[Do]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Kr(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Kr(e,!0),r.enter(e)):r.leave(e,()=>{Kr(e,!1)}):Kr(e,t))},beforeUnmount(e,{value:t}){Kr(e,t)}};function Kr(e,t){e.style.display=t?e[Do]:"none",e[dh]=!t}const ib=Symbol(""),ab=/(^|;)\s*display\s*:/;function lb(e,t,n){const r=e.style,s=Se(n);let o=!1;if(n&&!s){if(t)if(Se(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();n[a]==null&&vo(r,a,"")}else for(const i in t)n[i]==null&&vo(r,i,"");for(const i in n)i==="display"&&(o=!0),vo(r,i,n[i])}else if(s){if(t!==n){const i=r[ib];i&&(n+=";"+i),r.cssText=n,o=ab.test(n)}}else t&&e.removeAttribute("style");Do in e&&(e[Do]=o?r.display:"",e[dh]&&(r.display="none"))}const eu=/\s*!important$/;function vo(e,t,n){if(te(n))n.forEach(r=>vo(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=cb(e,t);eu.test(n)?e.setProperty(Tn(r),n.replace(eu,""),"important"):e[r]=n}}const tu=["Webkit","Moz","ms"],ea={};function cb(e,t){const n=ea[t];if(n)return n;let r=mt(t);if(r!=="filter"&&r in e)return ea[t]=r;r=gi(r);for(let s=0;s<tu.length;s++){const o=tu[s]+r;if(o in e)return ea[t]=o}return t}const nu="http://www.w3.org/1999/xlink";function ru(e,t,n,r,s,o=tm(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(nu,t.slice(6,t.length)):e.setAttributeNS(nu,t,n):n==null||o&&!Qf(n)?e.removeAttribute(t):e.setAttribute(t,o?"":St(n)?String(n):n)}function su(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?ch(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const a=o==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(a!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=Qf(n):n==null&&a==="string"?(n="",i=!0):a==="number"&&(n=0,i=!0)}try{e[t]=n}catch{}i&&e.removeAttribute(s||t)}function hh(e,t,n,r){e.addEventListener(t,n,r)}function ub(e,t,n,r){e.removeEventListener(t,n,r)}const ou=Symbol("_vei");function fb(e,t,n,r,s=null){const o=e[ou]||(e[ou]={}),i=o[t];if(r&&i)i.value=r;else{const[a,l]=db(t);if(r){const c=o[t]=gb(r,s);hh(e,a,c,l)}else i&&(ub(e,a,i,l),o[t]=void 0)}}const iu=/(?:Once|Passive|Capture)$/;function db(e){let t;if(iu.test(e)){t={};let r;for(;r=e.match(iu);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Tn(e.slice(2)),t]}let ta=0;const hb=Promise.resolve(),pb=()=>ta||(hb.then(()=>ta=0),ta=Date.now());function gb(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;kt(mb(r,n.value),t,5,[r])};return n.value=e,n.attached=pb(),n}function mb(e,t){if(te(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const au=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,yb=(e,t,n,r,s,o)=>{const i=s==="svg";t==="class"?sb(e,r,i):t==="style"?lb(e,n,r):Ms(t)?El(t)||fb(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):bb(e,t,r,i))?(su(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&ru(e,t,r,i,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Se(r))?su(e,mt(t),r,o,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),ru(e,t,r,i))};function bb(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&au(t)&&ne(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return au(t)&&Se(n)?!1:t in e}const ph=new WeakMap,gh=new WeakMap,Fo=Symbol("_moveCb"),lu=Symbol("_enterCb"),vb=e=>(delete e.props.mode,e),_b=vb({name:"TransitionGroup",props:Me({},eb,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Hr(),r=Wm();let s,o;return Rd(()=>{if(!s.length)return;const i=e.moveClass||`${e.name||"v"}-move`;if(!kb(s[0].el,n.vnode.el,i)){s=[];return}s.forEach(Cb),s.forEach(xb);const a=s.filter(Sb);Ha(),a.forEach(l=>{const c=l.el,u=c.style;At(c,i),u.transform=u.webkitTransform=u.transitionDuration="";const f=c[Fo]=d=>{d&&d.target!==c||(!d||/transform$/.test(d.propertyName))&&(c.removeEventListener("transitionend",f),c[Fo]=null,cn(c,i))};c.addEventListener("transitionend",f)}),s=[]}),()=>{const i=de(e),a=tb(i);let l=i.tag||ge;if(s=[],o)for(let c=0;c<o.length;c++){const u=o[c];u.el&&u.el instanceof Element&&(s.push(u),Cs(u,Ra(u,a,r,n)),ph.set(u,u.el.getBoundingClientRect()))}o=t.default?Ed(t.default()):[];for(let c=0;c<o.length;c++){const u=o[c];u.key!=null&&Cs(u,Ra(u,a,r,n))}return J(l,null,o)}}}),wb=_b;function Cb(e){const t=e.el;t[Fo]&&t[Fo](),t[lu]&&t[lu]()}function xb(e){gh.set(e,e.el.getBoundingClientRect())}function Sb(e){const t=ph.get(e),n=gh.get(e),r=t.left-n.left,s=t.top-n.top;if(r||s){const o=e.el.style;return o.transform=o.webkitTransform=`translate(${r}px,${s}px)`,o.transitionDuration="0s",e}}function kb(e,t,n){const r=e.cloneNode(),s=e[Lr];s&&s.forEach(a=>{a.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),n.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(r);const{hasTransform:i}=fh(r);return o.removeChild(r),i}const cu=e=>{const t=e.props["onUpdate:modelValue"]||!1;return te(t)?n=>mo(t,n):t},na=Symbol("_assign"),Eb={created(e,{value:t},n){e.checked=Ao(t,n.props.value),e[na]=cu(n),hh(e,"change",()=>{e[na](Tb(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[na]=cu(r),t!==n&&(e.checked=Ao(t,r.props.value))}};function Tb(e){return"_value"in e?e._value:e.value}const Ab=["ctrl","shift","alt","meta"],$b={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Ab.some(n=>e[`${n}Key`]&&!t.includes(n))},Rb=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(s,...o)=>{for(let i=0;i<t.length;i++){const a=$b[t[i]];if(a&&a(s,t))return}return e(s,...o)})},Pb={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Nb=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=s=>{if(!("key"in s))return;const o=Tn(s.key);if(t.some(i=>i===o||Pb[i]===o))return e(s)})},mh=Me({patchProp:yb},Zy);let ls,uu=!1;function Ib(){return ls||(ls=_y(mh))}function Lb(){return ls=uu?ls:wy(mh),uu=!0,ls}const yh=(...e)=>{const t=Ib().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=vh(r);if(!s)return;const o=t._component;!ne(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const i=n(s,!1,bh(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),i},t},Ob=(...e)=>{const t=Lb().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=vh(r);if(s)return n(s,!0,bh(s))},t};function bh(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function vh(e){return Se(e)?document.querySelector(e):e}const Mb=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,Db=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,Fb=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Bb(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){Hb(e);return}return t}function Hb(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Bo(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!Fb.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(Mb.test(e)||Db.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,Bb)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}const jb=/#/g,Ub=/&/g,Gb=/\//g,Wb=/=/g,ql=/\+/g,Vb=/%5e/gi,zb=/%60/gi,qb=/%7c/gi,Kb=/%20/gi;function Xb(e){return encodeURI(""+e).replace(qb,"|")}function ja(e){return Xb(typeof e=="string"?e:JSON.stringify(e)).replace(ql,"%2B").replace(Kb,"+").replace(jb,"%23").replace(Ub,"%26").replace(zb,"`").replace(Vb,"^").replace(Gb,"%2F")}function ra(e){return ja(e).replace(Wb,"%3D")}function Ho(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function Jb(e){return Ho(e.replace(ql," "))}function Yb(e){return Ho(e.replace(ql," "))}function Bs(e=""){const t=Object.create(null);e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const s=Jb(r[1]);if(s==="__proto__"||s==="constructor")continue;const o=Yb(r[2]||"");t[s]===void 0?t[s]=o:Array.isArray(t[s])?t[s].push(o):t[s]=[t[s],o]}return t}function Qb(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${ra(e)}=${ja(n)}`).join("&"):`${ra(e)}=${ja(t)}`:ra(e)}function _h(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>Qb(t,e[t])).filter(Boolean).join("&")}const Zb=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,ev=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,tv=/^([/\\]\s*){2,}[^/\\]/,nv=/^[\s\0]*(blob|data|javascript|vbscript):$/i,rv=/\/$|\/\?|\/#/,sv=/^\.?\//;function An(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?Zb.test(e):ev.test(e)||(t.acceptRelative?tv.test(e):!1)}function ov(e){return!!e&&nv.test(e)}function Ua(e="",t){return t?rv.test(e):e.endsWith("/")}function Ti(e="",t){if(!t)return(Ua(e)?e.slice(0,-1):e)||"/";if(!Ua(e,!0))return e||"/";let n=e,r="";const s=e.indexOf("#");s!==-1&&(n=e.slice(0,s),r=e.slice(s));const[o,...i]=n.split("?");return((o.endsWith("/")?o.slice(0,-1):o)||"/")+(i.length>0?`?${i.join("?")}`:"")+r}function jo(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(Ua(e,!0))return e||"/";let n=e,r="";const s=e.indexOf("#");if(s!==-1&&(n=e.slice(0,s),r=e.slice(s),!n))return r;const[o,...i]=n.split("?");return o+"/"+(i.length>0?`?${i.join("?")}`:"")+r}function iv(e=""){return e.startsWith("/")}function fu(e=""){return iv(e)?e:"/"+e}function av(e,t){if(Ch(t)||An(e))return e;const n=Ti(t);return e.startsWith(n)?e:Hs(n,e)}function lv(e,t){if(Ch(t))return e;const n=Ti(t);if(!e.startsWith(n))return e;const r=e.slice(n.length);return r[0]==="/"?r:"/"+r}function wh(e,t){const n=Kl(e),r={...Bs(n.search),...t};return n.search=_h(r),kh(n)}function cv(e){return Bs(Kl(e).search)}function Ch(e){return!e||e==="/"}function uv(e){return e&&e!=="/"}function Hs(e,...t){let n=e||"";for(const r of t.filter(s=>uv(s)))if(n){const s=r.replace(sv,"");n=jo(n)+s}else n=r;return n}function xh(...e){var i,a,l,c;const t=/\/(?!\/)/,n=e.filter(Boolean),r=[];let s=0;for(const u of n)if(!(!u||u==="/")){for(const[f,d]of u.split(t).entries())if(!(!d||d===".")){if(d===".."){if(r.length===1&&An(r[0]))continue;r.pop(),s--;continue}if(f===1&&((i=r[r.length-1])!=null&&i.endsWith(":/"))){r[r.length-1]+="/"+d;continue}r.push(d),s++}}let o=r.join("/");return s>=0?(a=n[0])!=null&&a.startsWith("/")&&!o.startsWith("/")?o="/"+o:(l=n[0])!=null&&l.startsWith("./")&&!o.startsWith("./")&&(o="./"+o):o="../".repeat(-1*s)+o,(c=n[n.length-1])!=null&&c.endsWith("/")&&!o.endsWith("/")&&(o+="/"),o}function fv(e,t,n={}){return n.trailingSlash||(e=jo(e),t=jo(t)),n.leadingSlash||(e=fu(e),t=fu(t)),n.encoding||(e=Ho(e),t=Ho(t)),e===t}const Sh=Symbol.for("ufo:protocolRelative");function Kl(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,f,d=""]=n;return{protocol:f.toLowerCase(),pathname:d,href:f+d,auth:"",host:"",search:"",hash:""}}if(!An(e,{acceptRelative:!0}))return du(e);const[,r="",s,o=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,i="",a=""]=o.match(/([^#/?]*)(.*)?/)||[];r==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:l,search:c,hash:u}=du(a);return{protocol:r.toLowerCase(),auth:s?s.slice(0,Math.max(0,s.length-1)):"",host:i,pathname:l,search:c,hash:u,[Sh]:!r}}function du(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function kh(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",r=e.hash||"",s=e.auth?e.auth+"@":"",o=e.host||"";return(e.protocol||e[Sh]?(e.protocol||"")+"//":"")+s+o+t+n+r}class dv extends Error{constructor(t,n){super(t,n),this.name="FetchError",n!=null&&n.cause&&!this.cause&&(this.cause=n.cause)}}function hv(e){var l,c,u,f,d;const t=((l=e.error)==null?void 0:l.message)||((c=e.error)==null?void 0:c.toString())||"",n=((u=e.request)==null?void 0:u.method)||((f=e.options)==null?void 0:f.method)||"GET",r=((d=e.request)==null?void 0:d.url)||String(e.request)||"/",s=`[${n}] ${JSON.stringify(r)}`,o=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",i=`${s}: ${o}${t?` ${t}`:""}`,a=new dv(i,e.error?{cause:e.error}:void 0);for(const p of["request","options","response"])Object.defineProperty(a,p,{get(){return e[p]}});for(const[p,h]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,p,{get(){return e.response&&e.response[h]}});return a}const pv=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function hu(e="GET"){return pv.has(e.toUpperCase())}function gv(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const mv=new Set(["image/svg","application/xml","application/xhtml","application/html"]),yv=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function bv(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return yv.test(t)?"json":mv.has(t)||t.startsWith("text/")?"text":"blob"}function vv(e,t,n,r){const s=_v((t==null?void 0:t.headers)??(e==null?void 0:e.headers),n==null?void 0:n.headers,r);let o;return(n!=null&&n.query||n!=null&&n.params||t!=null&&t.params||t!=null&&t.query)&&(o={...n==null?void 0:n.params,...n==null?void 0:n.query,...t==null?void 0:t.params,...t==null?void 0:t.query}),{...n,...t,query:o,params:o,headers:s}}function _v(e,t,n){if(!t)return new n(e);const r=new n(t);if(e)for(const[s,o]of Symbol.iterator in e||Array.isArray(e)?e:new n(e))r.set(s,o);return r}async function Zs(e,t){if(t)if(Array.isArray(t))for(const n of t)await n(e);else await t(e)}const wv=new Set([408,409,425,429,500,502,503,504]),Cv=new Set([101,204,205,304]);function Eh(e={}){const{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;async function s(a){const l=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!l){let u;typeof a.options.retry=="number"?u=a.options.retry:u=hu(a.options.method)?0:1;const f=a.response&&a.response.status||500;if(u>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(f):wv.has(f))){const d=typeof a.options.retryDelay=="function"?a.options.retryDelay(a):a.options.retryDelay||0;return d>0&&await new Promise(p=>setTimeout(p,d)),o(a.request,{...a.options,retry:u-1})}}const c=hv(a);throw Error.captureStackTrace&&Error.captureStackTrace(c,o),c}const o=async function(l,c={}){const u={request:l,options:vv(l,c,e.defaults,n),response:void 0,error:void 0};u.options.method&&(u.options.method=u.options.method.toUpperCase()),u.options.onRequest&&await Zs(u,u.options.onRequest),typeof u.request=="string"&&(u.options.baseURL&&(u.request=av(u.request,u.options.baseURL)),u.options.query&&(u.request=wh(u.request,u.options.query),delete u.options.query),"query"in u.options&&delete u.options.query,"params"in u.options&&delete u.options.params),u.options.body&&hu(u.options.method)&&(gv(u.options.body)?(u.options.body=typeof u.options.body=="string"?u.options.body:JSON.stringify(u.options.body),u.options.headers=new n(u.options.headers||{}),u.options.headers.has("content-type")||u.options.headers.set("content-type","application/json"),u.options.headers.has("accept")||u.options.headers.set("accept","application/json")):("pipeTo"in u.options.body&&typeof u.options.body.pipeTo=="function"||typeof u.options.body.pipe=="function")&&("duplex"in u.options||(u.options.duplex="half")));let f;if(!u.options.signal&&u.options.timeout){const p=new r;f=setTimeout(()=>{const h=new Error("[TimeoutError]: The operation was aborted due to timeout");h.name="TimeoutError",h.code=23,p.abort(h)},u.options.timeout),u.options.signal=p.signal}try{u.response=await t(u.request,u.options)}catch(p){return u.error=p,u.options.onRequestError&&await Zs(u,u.options.onRequestError),await s(u)}finally{f&&clearTimeout(f)}if((u.response.body||u.response._bodyInit)&&!Cv.has(u.response.status)&&u.options.method!=="HEAD"){const p=(u.options.parseResponse?"json":u.options.responseType)||bv(u.response.headers.get("content-type")||"");switch(p){case"json":{const h=await u.response.text(),g=u.options.parseResponse||Bo;u.response._data=g(h);break}case"stream":{u.response._data=u.response.body||u.response._bodyInit;break}default:u.response._data=await u.response[p]()}}return u.options.onResponse&&await Zs(u,u.options.onResponse),!u.options.ignoreResponseError&&u.response.status>=400&&u.response.status<600?(u.options.onResponseError&&await Zs(u,u.options.onResponseError),await s(u)):u.response},i=async function(l,c){return(await o(l,c))._data};return i.raw=o,i.native=(...a)=>t(...a),i.create=(a={},l={})=>Eh({...e,...l,defaults:{...e.defaults,...l.defaults,...a}}),i}const Uo=function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}(),xv=Uo.fetch?(...e)=>Uo.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),Sv=Uo.Headers,kv=Uo.AbortController,Ev=Eh({fetch:xv,Headers:Sv,AbortController:kv}),Tv=Ev,Av=()=>{var e;return((e=window==null?void 0:window.__NUXT__)==null?void 0:e.config)||{}},Go=Av().app,$v=()=>Go.baseURL,Rv=()=>Go.buildAssetsDir,Xl=(...e)=>xh(Th(),Rv(),...e),Th=(...e)=>{const t=Go.cdnURL||Go.baseURL;return e.length?xh(t,...e):t};globalThis.__buildAssetsURL=Xl,globalThis.__publicAssetsURL=Th;globalThis.$fetch||(globalThis.$fetch=Tv.create({baseURL:$v()}));"global"in globalThis||(globalThis.global=globalThis);function Ga(e,t={},n){for(const r in e){const s=e[r],o=n?`${n}:${r}`:r;typeof s=="object"&&s!==null?Ga(s,t,o):typeof s=="function"&&(t[o]=s)}return t}const Pv={run:e=>e()},Nv=()=>Pv,Ah=typeof console.createTask<"u"?console.createTask:Nv;function Iv(e,t){const n=t.shift(),r=Ah(n);return e.reduce((s,o)=>s.then(()=>r.run(()=>o(...t))),Promise.resolve())}function Lv(e,t){const n=t.shift(),r=Ah(n);return Promise.all(e.map(s=>r.run(()=>s(...t))))}function sa(e,t){for(const n of[...e])n(t)}class Ov{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 s=t;let o;for(;this._deprecatedHooks[t];)o=this._deprecatedHooks[t],t=o.to;if(o&&!r.allowDeprecated){let i=o.message;i||(i=`${s} hook has been deprecated`+(o.to?`, please use ${o.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(i)||(console.warn(i),this._deprecatedMessages.add(i))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let r,s=(...o)=>(typeof r=="function"&&r(),r=void 0,s=void 0,n(...o));return r=this.hook(t,s),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 s of r)this.hook(t,s)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=Ga(t),r=Object.keys(n).map(s=>this.hook(s,n[s]));return()=>{for(const s of r.splice(0,r.length))s()}}removeHooks(t){const n=Ga(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(Iv,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(Lv,t,...n)}callHookWith(t,n,...r){const s=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&sa(this._before,s);const o=t(n in this._hooks?[...this._hooks[n]]:[],r);return o instanceof Promise?o.finally(()=>{this._after&&s&&sa(this._after,s)}):(this._after&&s&&sa(this._after,s),o)}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 $h(){return new Ov}function Mv(e={}){let t,n=!1;const r=i=>{if(t&&t!==i)throw new Error("Context conflict")};let s;if(e.asyncContext){const i=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;i?s=new i:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const o=()=>{if(s){const i=s.getStore();if(i!==void 0)return i}return t};return{use:()=>{const i=o();if(i===void 0)throw new Error("Context is not available");return i},tryUse:()=>o(),set:(i,a)=>{a||r(i),t=i,n=!0},unset:()=>{t=void 0,n=!1},call:(i,a)=>{r(i),t=i;try{return s?s.run(i,a):a()}finally{n||(t=void 0)}},async callAsync(i,a){t=i;const l=()=>{t=i},c=()=>t===i?l:void 0;Wa.add(c);try{const u=s?s.run(i,a):a();return n||(t=void 0),await u}finally{Wa.delete(c)}}}}function Dv(e={}){const t={};return{get(n,r={}){return t[n]||(t[n]=Mv({...e,...r})),t[n]}}}const Wo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},pu="__unctx__",Fv=Wo[pu]||(Wo[pu]=Dv()),Bv=(e,t={})=>Fv.get(e,t),gu="__unctx_async_handlers__",Wa=Wo[gu]||(Wo[gu]=new Set);function Rh(e){const t=[];for(const s of Wa){const o=s();o&&t.push(o)}const n=()=>{for(const s of t)s()};let r=e();return r&&typeof r=="object"&&"catch"in r&&(r=r.catch(s=>{throw n(),s})),[r,n]}const Hv={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},jv=null,Uv="#__nuxt",Ph="nuxt-app",mu=36e5,Gv="vite:preloadError";function Nh(e=Ph){return Bv(e,{asyncContext:!1})}const Wv="__nuxt_plugin";function Vv(e){var s;let t=0;const n={_id:e.id||Ph||"nuxt-app",_scope:rm(),provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.17.5"},get vue(){return n.vueApp.version}},payload:Wn({...((s=e.ssrContext)==null?void 0:s.payload)||{},data:Wn({}),state:Sn({}),once:new Set,_errors:Wn({})}),static:{data:{}},runWithContext(o){return n._scope.active&&!Rl()?n._scope.run(()=>yu(n,o)):yu(n,o)},isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let o=!1;return()=>{if(!o&&(o=!0,t--,t===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:Wn({}),_payloadRevivers:{},...e};{const o=window.__NUXT__;if(o)for(const i in o)switch(i){case"data":case"state":case"_errors":Object.assign(n.payload[i],o[i]);break;default:n.payload[i]=o[i]}}n.hooks=$h(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(o,i)=>{const a="$"+o;eo(n,a,i),eo(n.vueApp.config.globalProperties,a,i)},eo(n.vueApp,"$nuxt",n),eo(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener(Gv,i=>{n.callHook("app:chunkError",{error:i.payload}),i.payload.message.includes("Unable to preload CSS")&&i.preventDefault()}),window.useNuxtApp||(window.useNuxtApp=De);const o=n.hook("app:error",(...i)=>{console.error("[nuxt] error caught during app initialization",...i)});n.hook("app:mounted",o)}const r=n.payload.config;return n.provide("config",r),n}function zv(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function qv(e,t){if(typeof t=="function"){const{provide:n}=await e.runWithContext(()=>t(e))||{};if(n&&typeof n=="object")for(const r in n)e.provide(r,n[r])}}async function Kv(e,t){const n=new Set,r=[],s=[],o=[];let i=0;async function a(l){var u;const c=((u=l.dependsOn)==null?void 0:u.filter(f=>t.some(d=>d._name===f)&&!n.has(f)))??[];if(c.length>0)r.push([new Set(c),l]);else{const f=qv(e,l).then(async()=>{l._name&&(n.add(l._name),await Promise.all(r.map(async([d,p])=>{d.has(l._name)&&(d.delete(l._name),d.size===0&&(i++,await a(p)))})))});l.parallel?s.push(f.catch(d=>o.push(d))):await f}}for(const l of t)zv(e,l);for(const l of t)await a(l);if(await Promise.all(s),i)for(let l=0;l<i;l++)await Promise.all(s);if(o.length)throw o[0]}function Dt(e){if(typeof e=="function")return e;const t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[Wv]:!0,_name:t})}function yu(e,t,n){const r=()=>t();return Nh(e._id).set(e),e.vueApp.runWithContext(r)}function Xv(e){var n;let t;return Hl()&&(t=(n=Hr())==null?void 0:n.appContext.app.$nuxt),t||(t=Nh(e).tryUse()),t||null}function De(e){const t=Xv(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function Or(e){return De().$config}function eo(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function Jv(e,t){return{ctx:{table:e},matchAll:n=>Lh(n,e)}}function Ih(e){const t={};for(const n in e)t[n]=n==="dynamic"?new Map(Object.entries(e[n]).map(([r,s])=>[r,Ih(s)])):new Map(Object.entries(e[n]));return t}function Yv(e){return Jv(Ih(e))}function Lh(e,t,n){e.endsWith("/")&&(e=e.slice(0,-1)||"/");const r=[];for(const[o,i]of bu(t.wildcard))(e===o||e.startsWith(o+"/"))&&r.push(i);for(const[o,i]of bu(t.dynamic))if(e.startsWith(o+"/")){const a="/"+e.slice(o.length).split("/").splice(2).join("/");r.push(...Lh(a,i))}const s=t.static.get(e);return s&&r.push(s),r.filter(Boolean)}function bu(e){return[...e.entries()].sort((t,n)=>t[0].length-n[0].length)}function oa(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 Va(e,t,n=".",r){if(!oa(t))return Va(e,{},n,r);const s=Object.assign({},t);for(const o in e){if(o==="__proto__"||o==="constructor")continue;const i=e[o];i!=null&&(r&&r(s,o,i,n)||(Array.isArray(i)&&Array.isArray(s[o])?s[o]=[...i,...s[o]]:oa(i)&&oa(s[o])?s[o]=Va(i,s[o],(n?`${n}.`:"")+o.toString(),r):s[o]=i))}return s}function Qv(e){return(...t)=>t.reduce((n,r)=>Va(n,r,"",e),{})}const Zv=Qv();function e_(e,t){try{return t in e}catch{return!1}}class za extends Error{constructor(n,r={}){super(n,r);$(this,"statusCode",500);$(this,"fatal",!1);$(this,"unhandled",!1);$(this,"statusMessage");$(this,"data");$(this,"cause");r.cause&&!this.cause&&(this.cause=r.cause)}toJSON(){const n={message:this.message,statusCode:qa(this.statusCode,500)};return this.statusMessage&&(n.statusMessage=Oh(this.statusMessage)),this.data!==void 0&&(n.data=this.data),n}}$(za,"__h3_error__",!0);function t_(e){if(typeof e=="string")return new za(e);if(n_(e))return e;const t=new za(e.message??e.statusMessage??"",{cause:e.cause||e});if(e_(e,"stack"))try{Object.defineProperty(t,"stack",{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=qa(e.statusCode,t.statusCode):e.status&&(t.statusCode=qa(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;Oh(t.statusMessage)!==n&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function n_(e){var t;return((t=e==null?void 0:e.constructor)==null?void 0:t.__h3_error__)===!0}const r_=/[^\u0009\u0020-\u007E]/g;function Oh(e=""){return e.replace(r_,"")}function qa(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const Mh=Symbol("route"),Ot=()=>{var e;return(e=De())==null?void 0:e.$router},Dh=()=>Hl()?kr(Mh,De()._route):De()._route;const s_=()=>{try{if(De()._processingMiddleware)return!0}catch{return!1}return!1},Fh=(e,t)=>{e||(e="/");const n=typeof e=="string"?e:"path"in e?Ka(e):Ot().resolve(e).href;if(t!=null&&t.open){const{target:l="_blank",windowFeatures:c={}}=t.open,u=Object.entries(c).filter(([f,d])=>d!==void 0).map(([f,d])=>`${f.toLowerCase()}=${d}`).join(", ");return open(n,l,u),Promise.resolve()}const r=An(n,{acceptRelative:!0}),s=(t==null?void 0:t.external)||r;if(s){if(!(t!=null&&t.external))throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const{protocol:l}=new URL(n,window.location.href);if(l&&ov(l))throw new Error(`Cannot navigate to a URL with '${l}' protocol.`)}const o=s_();if(!s&&o){if(t!=null&&t.replace){if(typeof e=="string"){const{pathname:l,search:c,hash:u}=Kl(e);return{path:l,...c&&{query:Bs(c)},...u&&{hash:u},replace:!0}}return{...e,replace:!0}}return e}const i=Ot(),a=De();return s?(a._scope.stop(),t!=null&&t.replace?location.replace(n):location.href=n,o?a.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):t!=null&&t.replace?i.replace(e):i.push(e)};function Ka(e){return wh(e.path||"",e.query||{})+(e.hash||"")}const Bh="__nuxt_error",Jl=()=>bd(De().payload,"error"),o_=e=>{const t=Yl(e);try{const n=De(),r=Jl();n.hooks.callHook("app:error",t),r.value||(r.value=t)}catch{throw t}return t},i_=async(e={})=>{const t=De(),n=Jl();t.callHook("app:error:cleared",e),e.redirect&&await Ot().replace(e.redirect),n.value=jv},a_=e=>!!e&&typeof e=="object"&&Bh in e,Yl=e=>{const t=t_(e);return Object.defineProperty(t,Bh,{value:!0,configurable:!1,writable:!1}),t};function vu(e){const t=c_(e),n=new ArrayBuffer(t.length),r=new DataView(n);for(let s=0;s<n.byteLength;s++)r.setUint8(s,t.charCodeAt(s));return n}const l_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function c_(e){e.length%4===0&&(e=e.replace(/==?$/,""));let t="",n=0,r=0;for(let s=0;s<e.length;s++)n<<=6,n|=l_.indexOf(e[s]),r+=6,r===24&&(t+=String.fromCharCode((n&16711680)>>16),t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255),n=r=0);return r===12?(n>>=4,t+=String.fromCharCode(n)):r===18&&(n>>=2,t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255)),t}const u_=-1,f_=-2,d_=-3,h_=-4,p_=-5,g_=-6;function m_(e,t){return y_(JSON.parse(e),t)}function y_(e,t){if(typeof e=="number")return s(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function s(o,i=!1){if(o===u_)return;if(o===d_)return NaN;if(o===h_)return 1/0;if(o===p_)return-1/0;if(o===g_)return-0;if(i)throw new Error("Invalid input");if(o in r)return r[o];const a=n[o];if(!a||typeof a!="object")r[o]=a;else if(Array.isArray(a))if(typeof a[0]=="string"){const l=a[0],c=t==null?void 0:t[l];if(c)return r[o]=c(s(a[1]));switch(l){case"Date":r[o]=new Date(a[1]);break;case"Set":const u=new Set;r[o]=u;for(let p=1;p<a.length;p+=1)u.add(s(a[p]));break;case"Map":const f=new Map;r[o]=f;for(let p=1;p<a.length;p+=2)f.set(s(a[p]),s(a[p+1]));break;case"RegExp":r[o]=new RegExp(a[1],a[2]);break;case"Object":r[o]=Object(a[1]);break;case"BigInt":r[o]=BigInt(a[1]);break;case"null":const d=Object.create(null);r[o]=d;for(let p=1;p<a.length;p+=2)d[a[p]]=s(a[p+1]);break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{const p=globalThis[l],h=a[1],g=vu(h),m=new p(g);r[o]=m;break}case"ArrayBuffer":{const p=a[1],h=vu(p);r[o]=h;break}default:throw new Error(`Unknown type ${l}`)}}else{const l=new Array(a.length);r[o]=l;for(let c=0;c<a.length;c+=1){const u=a[c];u!==f_&&(l[c]=s(u))}}else{const l={};r[o]=l;for(const c in a){const u=a[c];l[c]=s(u)}}return r[o]}return s(0)}const b_=new Set(["link","style","script","noscript"]),v_=new Set(["title","titleTemplate","script","style","noscript"]),_u=new Set(["base","meta","link","style","script","noscript"]),__=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),w_=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),C_=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),x_=new Set(["templateParams","htmlAttrs","bodyAttrs"]),S_=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]);const k_=["name","property","http-equiv"];function Hh(e){const t=e.split(":");return t.length?S_.has(t[1]):!1}function Xa(e){const{props:t,tag:n}=e;if(w_.has(n))return n;if(n==="link"&&t.rel==="canonical")return"canonical";if(t.charset)return"charset";if(e.tag==="meta"){for(const r of k_)if(t[r]!==void 0)return`${n}:${t[r]}`}if(e.key)return`${n}:key:${e.key}`;if(t.id)return`${n}:id:${t.id}`;if(v_.has(n)){const r=e.textContent||e.innerHTML;if(r)return`${n}:content:${r}`}}function wu(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(([r,s])=>`${r}:${String(s)}`).join(",")}`}function Vo(e,t,n){typeof e==="function"&&(!n||n!=="titleTemplate"&&!(n[0]==="o"&&n[1]==="n"))&&(e=e());let s;if(t&&(s=t(n,e)),Array.isArray(s))return s.map(o=>Vo(o,t));if((s==null?void 0:s.constructor)===Object){const o={};for(const i of Object.keys(s))o[i]=Vo(s[i],t,i);return o}return s}function E_(e,t){const n=e==="style"?new Map:new Set;function r(s){const o=s.trim();if(o)if(e==="style"){const[i,...a]=o.split(":").map(l=>l.trim());i&&a.length&&n.set(i,a.join(":"))}else o.split(" ").filter(Boolean).forEach(i=>n.add(i))}return typeof t=="string"?e==="style"?t.split(";").forEach(r):r(t):Array.isArray(t)?t.forEach(s=>r(s)):t&&typeof t=="object"&&Object.entries(t).forEach(([s,o])=>{o&&o!=="false"&&(e==="style"?n.set(s.trim(),o):r(s))}),n}function jh(e,t){return e.props=e.props||{},t&&Object.entries(t).forEach(([n,r])=>{if(r===null){e.props[n]=null;return}if(n==="class"||n==="style"){e.props[n]=E_(n,r);return}if(C_.has(n)){if(["textContent","innerHTML"].includes(n)&&typeof r=="object"){let i=t.type;if(t.type||(i="application/json"),!(i!=null&&i.endsWith("json"))&&i!=="speculationrules")return;t.type=i,e.props.type=i,e[n]=JSON.stringify(r)}else e[n]=r;return}const s=String(r),o=n.startsWith("data-");s==="true"||s===""?e.props[n]=o?s:!0:!r&&o&&s==="false"?e.props[n]="false":r!==void 0&&(e.props[n]=r)}),e}function T_(e,t){const n=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},r=jh({tag:e,props:{}},n);return r.key&&b_.has(r.tag)&&(r.props["data-hid"]=r._h=r.key),r.tag==="script"&&typeof r.innerHTML=="object"&&(r.innerHTML=JSON.stringify(r.innerHTML),r.props.type=r.props.type||"application/json"),Array.isArray(r.props.content)?r.props.content.map(s=>({...r,props:{...r.props,content:s}})):r}function A_(e,t){if(!e)return[];typeof e=="function"&&(e=e());const n=(s,o)=>{for(let i=0;i<t.length;i++)o=t[i](s,o);return o};e=n(void 0,e);const r=[];return e=Vo(e,n),Object.entries(e||{}).forEach(([s,o])=>{if(o!==void 0)for(const i of Array.isArray(o)?o:[o])r.push(T_(s,i))}),r.flat()}const Ja=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,Cu={base:-10,title:10},$_={critical:-8,high:-1,low:2},xu={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}},R_=/@import/,Xr=e=>e===""||e===!0;function P_(e,t){var o;if(typeof t.tagPriority=="number")return t.tagPriority;let n=100;const r=$_[t.tagPriority]||0,s=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:xu;if(t.tag in Cu)n=Cu[t.tag];else if(t.tag==="meta"){const i=t.props["http-equiv"]==="content-security-policy"?"content-security-policy":t.props.charset?"charset":t.props.name==="viewport"?"viewport":null;i&&(n=xu.meta[i])}else t.tag==="link"&&t.props.rel?n=s.link[t.props.rel]:t.tag==="script"?Xr(t.props.async)?n=s.script.async:t.props.src&&!Xr(t.props.defer)&&!Xr(t.props.async)&&t.props.type!=="module"&&!((o=t.props.type)!=null&&o.endsWith("json"))?n=s.script.sync:Xr(t.props.defer)&&t.props.src&&!Xr(t.props.async)&&(n=s.script.defer):t.tag==="style"&&(n=t.innerHTML&&R_.test(t.innerHTML)?s.style.imported:s.style.sync);return(n||100)+r}function Su(e,t){const n=typeof t=="function"?t(e):t,r=n.key||String(e.plugins.size+1);e.plugins.get(r)||(e.plugins.set(r,n),e.hooks.addHooks(n.hooks||{}))}function N_(e={}){var a;const t=$h();t.addHooks(e.hooks||{});const n=!e.document,r=new Map,s=new Map,o=[],i={_entryCount:1,plugins:s,dirty:!1,resolvedOptions:e,hooks:t,ssr:n,entries:r,headEntries(){return[...r.values()]},use:l=>Su(i,l),push(l,c){const u={...c||{}};delete u.head;const f=u._index??i._entryCount++,d={_i:f,input:l,options:u},p={_poll(h=!1){i.dirty=!0,!h&&o.push(f),t.callHook("entries:updated",i)},dispose(){r.delete(f)&&p._poll(!0)},patch(h){(!u.mode||u.mode==="server"&&n||u.mode==="client"&&!n)&&(d.input=h,r.set(f,d),p._poll())}};return p.patch(l),p},async resolveTags(){var p;const l={tagMap:new Map,tags:[],entries:[...i.entries.values()]};for(await t.callHook("entries:resolve",l);o.length;){const h=o.shift(),g=r.get(h);if(g){const m={tags:A_(g.input,e.propResolvers||[]).map(b=>Object.assign(b,g.options)),entry:g};await t.callHook("entries:normalize",m),g._tags=m.tags.map((b,v)=>(b._w=P_(i,b),b._p=(g._i<<10)+v,b._d=Xa(b),b))}}let c=!1;l.entries.flatMap(h=>(h._tags||[]).map(g=>({...g,props:{...g.props}}))).sort(Ja).reduce((h,g)=>{const m=String(g._d||g._p);if(!h.has(m))return h.set(m,g);const b=h.get(m);if(((g==null?void 0:g.tagDuplicateStrategy)||(x_.has(g.tag)?"merge":null)||(g.key&&g.key===b.key?"merge":null))==="merge"){const y={...b.props};Object.entries(g.props).forEach(([_,C])=>y[_]=_==="style"?new Map([...b.props.style||new Map,...C]):_==="class"?new Set([...b.props.class||new Set,...C]):C),h.set(m,{...g,props:y})}else g._p>>10===b._p>>10&&g.tag==="meta"&&Hh(m)?(h.set(m,Object.assign([...Array.isArray(b)?b:[b],g],g)),c=!0):(g._w===b._w?g._p>b._p:(g==null?void 0:g._w)<(b==null?void 0:b._w))&&h.set(m,g);return h},l.tagMap);const u=l.tagMap.get("title"),f=l.tagMap.get("titleTemplate");if(i._title=u==null?void 0:u.textContent,f){const h=f==null?void 0:f.textContent;if(i._titleTemplate=h,h){let g=typeof h=="function"?h(u==null?void 0:u.textContent):h;typeof g=="string"&&!i.plugins.has("template-params")&&(g=g.replace("%s",(u==null?void 0:u.textContent)||"")),u?g===null?l.tagMap.delete("title"):l.tagMap.set("title",{...u,textContent:g}):(f.tag="title",f.textContent=g)}}l.tags=Array.from(l.tagMap.values()),c&&(l.tags=l.tags.flat().sort(Ja)),await t.callHook("tags:beforeResolve",l),await t.callHook("tags:resolve",l),await t.callHook("tags:afterResolve",l);const d=[];for(const h of l.tags){const{innerHTML:g,tag:m,props:b}=h;if(__.has(m)&&!(Object.keys(b).length===0&&!h.innerHTML&&!h.textContent)&&!(m==="meta"&&!b.content&&!b["http-equiv"]&&!b.charset)){if(m==="script"&&g){if((p=b.type)!=null&&p.endsWith("json")){const v=typeof g=="string"?g:JSON.stringify(g);h.innerHTML=v.replace(/</g,"\\u003C")}else typeof g=="string"&&(h.innerHTML=g.replace(new RegExp(`</${m}`,"g"),`<\\/${m}`));h._d=Xa(h)}d.push(h)}}return d}};return((e==null?void 0:e.plugins)||[]).forEach(l=>Su(i,l)),i.hooks.callHook("init",i),(a=e.init)==null||a.forEach(l=>l&&i.push(l)),i}const mn="%separator",I_=new RegExp(`${mn}(?:\\s*${mn})*`,"g");function L_(e,t,n=!1){var s;let r;if(t==="s"||t==="pageTitle")r=e.pageTitle;else if(t.includes(".")){const o=t.indexOf(".");r=(s=e[t.substring(0,o)])==null?void 0:s[t.substring(o+1)]}else r=e[t];if(r!==void 0)return n?(r||"").replace(/\\/g,"\\\\").replace(/</g,"\\u003C").replace(/"/g,'\\"'):r||""}function to(e,t,n,r=!1){if(typeof e!="string"||!e.includes("%"))return e;let s=e;try{s=decodeURI(e)}catch{}const o=s.match(/%\w+(?:\.\w+)?/g);if(!o)return e;const i=e.includes(mn);return e=e.replace(/%\w+(?:\.\w+)?/g,a=>{if(a===mn||!o.includes(a))return a;const l=L_(t,a.slice(1),r);return l!==void 0?l:a}).trim(),i&&(e.endsWith(mn)&&(e=e.slice(0,-mn.length)),e.startsWith(mn)&&(e=e.slice(mn.length)),e=e.replace(I_,n||"").trim()),e}const ku=e=>e.includes(":key")?e:e.split(":").join(":key:"),O_={key:"aliasSorting",hooks:{"tags:resolve":e=>{let t=!1;for(const n of e.tags){const r=n.tagPriority;if(!r)continue;const s=String(r);if(s.startsWith("before:")){const o=ku(s.slice(7)),i=e.tagMap.get(o);i&&(typeof i.tagPriority=="number"&&(n.tagPriority=i.tagPriority),n._p=i._p-1,t=!0)}else if(s.startsWith("after:")){const o=ku(s.slice(6)),i=e.tagMap.get(o);i&&(typeof i.tagPriority=="number"&&(n.tagPriority=i.tagPriority),n._p=i._p+1,t=!0)}}t&&(e.tags=e.tags.sort(Ja))}}},M_={key:"deprecations",hooks:{"entries:normalize":({tags:e})=>{for(const t of e)t.props.children&&(t.innerHTML=t.props.children,delete t.props.children),t.props.hid&&(t.key=t.props.hid,delete t.props.hid),t.props.vmid&&(t.key=t.props.vmid,delete t.props.vmid),t.props.body&&(t.tagPosition="bodyClose",delete t.props.body)}}};async function Ya(e){if(typeof e==="function")return e;if(e instanceof Promise)return await e;if(Array.isArray(e))return await Promise.all(e.map(n=>Ya(n)));if((e==null?void 0:e.constructor)===Object){const n={};for(const r of Object.keys(e))n[r]=await Ya(e[r]);return n}return e}const D_={key:"promises",hooks:{"entries:resolve":async e=>{const t=[];for(const n in e.entries)e.entries[n]._promisesProcessed||t.push(Ya(e.entries[n].input).then(r=>{e.entries[n].input=r,e.entries[n]._promisesProcessed=!0}));await Promise.all(t)}}},F_={meta:"content",link:"href",htmlAttrs:"lang"},B_=["innerHTML","textContent"],H_=e=>({key:"template-params",hooks:{"entries:normalize":t=>{var r,s,o;const n=((s=(r=t.tags.filter(i=>i.tag==="templateParams"&&i.mode==="server"))==null?void 0:r[0])==null?void 0:s.props)||{};Object.keys(n).length&&(e._ssrPayload={templateParams:{...((o=e._ssrPayload)==null?void 0:o.templateParams)||{},...n}})},"tags:resolve":({tagMap:t,tags:n})=>{var o;const r=((o=t.get("templateParams"))==null?void 0:o.props)||{},s=r.separator||"|";delete r.separator,r.pageTitle=to(r.pageTitle||e._title||"",r,s);for(const i of n){if(i.processTemplateParams===!1)continue;const a=F_[i.tag];if(a&&typeof i.props[a]=="string")i.props[a]=to(i.props[a],r,s);else if(i.processTemplateParams||i.tag==="titleTemplate"||i.tag==="title")for(const l of B_)typeof i[l]=="string"&&(i[l]=to(i[l],r,s,i.tag==="script"&&i.props.type.endsWith("json")))}e._templateParams=r,e._separator=s},"tags:afterResolve":({tagMap:t})=>{const n=t.get("title");n!=null&&n.textContent&&n.processTemplateParams!==!1&&(n.textContent=to(n.textContent,e._templateParams,e._separator))}}}),j_=(e,t)=>Oe(t)?it(t):t,Uh="usehead";function U_(e){return{install(n){n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(Uh,e)}}.install}function G_(){if(Hl()){const e=kr(Uh);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 nA(e,t={}){const n=t.head||G_();return n.ssr?n.push(e||{},t):W_(n,e,t)}function W_(e,t,n={}){const r=ue(!1);let s;return Qd(()=>{const i=r.value?{}:Vo(t,j_);s?s.patch(i):s=e.push(i,n)}),Hr()&&(xi(()=>{s.dispose()}),Ad(()=>{r.value=!0}),Td(()=>{r.value=!1})),s}const V_="modulepreload",z_=function(e,t){return new URL(e,t).href},Eu={},Hn=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){let i=function(u){return Promise.all(u.map(f=>Promise.resolve(f).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};const a=document.getElementsByTagName("link"),l=document.querySelector("meta[property=csp-nonce]"),c=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));s=i(n.map(u=>{if(u=z_(u,r),u in Eu)return;Eu[u]=!0;const f=u.endsWith(".css"),d=f?'[rel="stylesheet"]':"";if(!!r)for(let g=a.length-1;g>=0;g--){const m=a[g];if(m.href===u&&(!f||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${d}`))return;const h=document.createElement("link");if(h.rel=f?"stylesheet":V_,f||(h.as="script"),h.crossOrigin="",h.href=u,c&&h.setAttribute("nonce",c),document.head.appendChild(h),f)return new Promise((g,m)=>{h.addEventListener("load",g),h.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${u}`)))})}))}function o(i){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i}return s.then(i=>{for(const a of i||[])a.status==="rejected"&&o(a.reason);return t().catch(o)})};let _o,wo;function q_(){return _o=$fetch(Xl(`builds/meta/${Or().app.buildId}.json`),{responseType:"json"}),_o.then(e=>{wo=Yv(e.matcher)}).catch(e=>{console.error("[nuxt] Error fetching app manifest.",e)}),_o}function Ai(){return _o||q_()}async function Ql(e){const t=typeof e=="string"?e:e.path;if(await Ai(),!wo)return console.error("[nuxt] Error creating app manifest matcher.",wo),{};try{return Zv({},...wo.matchAll(t).reverse())}catch(n){return console.error("[nuxt] Error matching route rules.",n),{}}}async function Tu(e,t={}){if(!await Wh(e))return null;const r=await X_(e,t);return await Gh(r)||null}const K_="_payload.json";async function X_(e,t={}){const n=new URL(e,"http://localhost");if(n.host!=="localhost"||An(n.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);const r=Or(),s=t.hash||(t.fresh?Date.now():r.app.buildId),o=r.app.cdnURL,i=o&&await Wh(e)?o:r.app.baseURL;return Hs(i,n.pathname,K_+(s?`?${s}`:""))}async function Gh(e){const t=fetch(e,{cache:"force-cache"}).then(n=>n.text().then(Vh));try{return await t}catch(n){console.warn("[nuxt] Cannot load payload ",e,n)}return null}async function Wh(e=Dh().path){const t=De();return e=Ti(e),(await Ai()).prerendered.includes(e)?!0:t.runWithContext(async()=>{const r=await Ql({path:e});return!!r.prerender&&!r.redirect})}let Ln=null;async function J_(){var r;if(Ln)return Ln;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await Vh(e.textContent||""),n=e.dataset.src?await Gh(e.dataset.src):void 0;return Ln={...t,...n,...window.__NUXT__},(r=Ln.config)!=null&&r.public&&(Ln.config.public=Sn(Ln.config.public)),Ln}async function Vh(e){return await m_(e,De()._payloadRevivers)}function Y_(e,t){De()._payloadRevivers[e]=t}const Q_=[["NuxtError",e=>Yl(e)],["EmptyShallowRef",e=>Rr(e==="_"?void 0:e==="0n"?BigInt(0):Bo(e))],["EmptyRef",e=>ue(e==="_"?void 0:e==="0n"?BigInt(0):Bo(e))],["ShallowRef",e=>Rr(e)],["ShallowReactive",e=>Wn(e)],["Ref",e=>ue(e)],["Reactive",e=>Sn(e)]],Z_=Dt({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const[r,s]of Q_)Y_(r,s);Object.assign(e.payload,([t,n]=Rh(()=>e.runWithContext(J_)),t=await t,n(),t)),window.__NUXT__=e.payload}});async function Zl(e,t={}){const n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;const r={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",r),!!r.shouldRender)return e._domUpdatePromise||(e._domUpdatePromise=new Promise(async s=>{var p;const o=new Map,i=new Promise(h=>{e.resolveTags().then(g=>{h(g.map(m=>{const b=o.get(m._d)||0,v={tag:m,id:(b?`${m._d}:${b}`:m._d)||wu(m),shouldRender:!0};return m._d&&Hh(m._d)&&o.set(m._d,b+1),v}))})});let a=e._dom;if(!a){a={title:n.title,elMap:new Map().set("htmlAttrs",n.documentElement).set("bodyAttrs",n.body)};for(const h of["body","head"]){const g=(p=n[h])==null?void 0:p.children;for(const m of g){const b=m.tagName.toLowerCase();if(!_u.has(b))continue;const v=jh({tag:b,props:{}},{innerHTML:m.innerHTML,...m.getAttributeNames().reduce((y,_)=>(y[_]=m.getAttribute(_),y),{})||{}});if(v.key=m.getAttribute("data-hid")||void 0,v._d=Xa(v)||wu(v),a.elMap.has(v._d)){let y=1,_=v._d;for(;a.elMap.has(_);)_=`${v._d}:${y++}`;a.elMap.set(_,m)}else a.elMap.set(v._d,m)}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function l(h,g,m){const b=`${h}:${g}`;a.sideEffects[b]=m,delete a.pendingSideEffects[b]}function c({id:h,$el:g,tag:m}){const b=m.tag.endsWith("Attrs");a.elMap.set(h,g),b||(m.textContent&&m.textContent!==g.textContent&&(g.textContent=m.textContent),m.innerHTML&&m.innerHTML!==g.innerHTML&&(g.innerHTML=m.innerHTML),l(h,"el",()=>{g==null||g.remove(),a.elMap.delete(h)}));for(const v in m.props){if(!Object.prototype.hasOwnProperty.call(m.props,v))continue;const y=m.props[v];if(v.startsWith("on")&&typeof y=="function"){const C=g==null?void 0:g.dataset;if(C&&C[`${v}fired`]){const A=v.slice(0,-5);y.call(g,new Event(A.substring(2)))}g.getAttribute(`data-${v}`)!==""&&((m.tag==="bodyAttrs"?n.defaultView:g).addEventListener(v.substring(2),y.bind(g)),g.setAttribute(`data-${v}`,""));continue}const _=`attr:${v}`;if(v==="class"){if(!y)continue;for(const C of y)b&&l(h,`${_}:${C}`,()=>g.classList.remove(C)),!g.classList.contains(C)&&g.classList.add(C)}else if(v==="style"){if(!y)continue;for(const[C,A]of y)l(h,`${_}:${C}`,()=>{g.style.removeProperty(C)}),g.style.setProperty(C,A)}else y!==!1&&y!==null&&(g.getAttribute(v)!==y&&g.setAttribute(v,y===!0?"":String(y)),b&&l(h,_,()=>g.removeAttribute(v)))}}const u=[],f={bodyClose:void 0,bodyOpen:void 0,head:void 0},d=await i;for(const h of d){const{tag:g,shouldRender:m,id:b}=h;if(m){if(g.tag==="title"){n.title=g.textContent,l("title","",()=>n.title=a.title);continue}h.$el=h.$el||a.elMap.get(b),h.$el?c(h):_u.has(g.tag)&&u.push(h)}}for(const h of u){const g=h.tag.tagPosition||"head";h.$el=n.createElement(h.tag.tag),c(h),f[g]=f[g]||n.createDocumentFragment(),f[g].appendChild(h.$el)}for(const h of d)await e.hooks.callHook("dom:renderTag",h,n,l);f.head&&n.head.appendChild(f.head),f.bodyOpen&&n.body.insertBefore(f.bodyOpen,n.body.firstChild),f.bodyClose&&n.body.appendChild(f.bodyClose);for(const h in a.pendingSideEffects)a.pendingSideEffects[h]();e._dom=a,await e.hooks.callHook("dom:rendered",{renders:d}),s()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function ew(e={}){var r,s,o;const t=((r=e.domOptions)==null?void 0:r.render)||Zl;e.document=e.document||(typeof window<"u"?document:void 0);const n=((o=(s=e.document)==null?void 0:s.head.querySelector('script[id="unhead:payload"]'))==null?void 0:o.innerHTML)||!1;return N_({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[n?JSON.parse(n):!1,...e.init||[]]})}function tw(e,t){let n=0;return()=>{const r=++n;t(()=>{n===r&&e()})}}function nw(e={}){const t=ew({domOptions:{render:tw(()=>Zl(t),n=>setTimeout(n,0))},...e});return t.install=U_(t),t}const rw={disableDefaults:!0,disableCapoSorting:!1,plugins:[M_,D_,H_,O_]},sw=Dt({name:"nuxt:head",enforce:"pre",setup(e){const t=nw(rw);e.vueApp.use(t);{let n=!0;const r=async()=>{n=!1,await Zl(t)};t.hooks.hook("dom:beforeRender",s=>{s.shouldRender=!n}),e.hooks.hook("page:start",()=>{n=!0}),e.hooks.hook("page:finish",()=>{e.isHydrating||r()}),e.hooks.hook("app:error",r),e.hooks.hook("app:suspense:resolve",r)}}}),ow=async e=>{let t,n;const r=([t,n]=Rh(()=>Ql({path:e.path})),t=await t,n(),t);if(r.redirect)return An(r.redirect,{acceptRelative:!0})?(window.location.href=r.redirect,!1):r.redirect},iw=[ow];function ia(e){const t=e&&typeof e=="object"?e:{};typeof e=="object"&&(e=kh({pathname:e.path||"",search:_h(e.query||{}),hash:e.hash||""}));const n=new URL(e.toString(),window.location.href);return{path:n.pathname,fullPath:e,query:Bs(n.search),hash:n.hash,params:t.params||{},name:void 0,matched:t.matched||[],redirectedFrom:void 0,meta:t.meta||{},href:e}}const aw=Dt({name:"nuxt:router",enforce:"pre",setup(e){const t=lv(window.location.pathname,Or().app.baseURL)+window.location.search+window.location.hash,n=[],r={"navigate:before":[],"resolve:before":[],"navigate:after":[],error:[]},s=(f,d)=>(r[f].push(d),()=>r[f].splice(r[f].indexOf(d),1)),o=Or().app.baseURL,i=Sn(ia(t));async function a(f,d){try{const p=ia(f);for(const h of r["navigate:before"]){const g=await h(p,i);if(g===!1||g instanceof Error)return;if(typeof g=="string"&&g.length)return a(g,!0)}for(const h of r["resolve:before"])await h(p,i);Object.assign(i,p),window.history[d?"replaceState":"pushState"]({},"",Hs(o,p.fullPath)),e.isHydrating||await e.runWithContext(i_);for(const h of r["navigate:after"])await h(p,i)}catch(p){for(const h of r.error)await h(p)}}const c={currentRoute:Ee(()=>i),isReady:()=>Promise.resolve(),options:{},install:()=>Promise.resolve(),push:f=>a(f,!1),replace:f=>a(f,!0),back:()=>window.history.go(-1),go:f=>window.history.go(f),forward:()=>window.history.go(1),beforeResolve:f=>s("resolve:before",f),beforeEach:f=>s("navigate:before",f),afterEach:f=>s("navigate:after",f),onError:f=>s("error",f),resolve:ia,addRoute:(f,d)=>{n.push(d)},getRoutes:()=>n,hasRoute:f=>n.some(d=>d.name===f),removeRoute:f=>{const d=n.findIndex(p=>p.name===f);d!==-1&&n.splice(d,1)}};e.vueApp.component("RouterLink",Ge({functional:!0,props:{to:{type:String,required:!0},custom:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:String},setup:(f,{slots:d})=>{const p=()=>a(f.to,f.replace);return()=>{var g;const h=c.resolve(f.to);return f.custom?(g=d.default)==null?void 0:g.call(d,{href:f.to,navigate:p,route:h}):kn("a",{href:f.to,onClick:m=>(m.preventDefault(),p())},d)}}})),window.addEventListener("popstate",f=>{const d=f.target.location;c.replace(d.href.replace(d.origin,""))}),e._route=i,e._middleware||(e._middleware={global:[],named:{}});const u=e.payload.state._layout;return e.hooks.hookOnce("app:created",async()=>{c.beforeEach(async(f,d)=>{f.meta=Sn(f.meta||{}),e.isHydrating&&u&&!tn(f.meta.layout)&&(f.meta.layout=u),e._processingMiddleware=!0;{const p=new Set([...iw,...e._middleware.global]);{const h=await e.runWithContext(()=>Ql({path:f.path}));if(h.appMiddleware)for(const g in h.appMiddleware){const m=e._middleware.named[g];if(!m)return;h.appMiddleware[g]?p.add(m):p.delete(m)}}for(const h of p){const g=await e.runWithContext(()=>h(f,d));if(g!==!0&&(g||g===!1))return g}}}),c.afterEach(()=>{delete e._processingMiddleware}),await c.replace(t),fv(i.fullPath,t)||await e.runWithContext(()=>Fh(i.fullPath))}),{provide:{route:i,router:c}}}}),Qa=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),lw=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),$i=e=>{const t=De();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{Qa(()=>e())}):Qa(()=>e())},cw=Dt({name:"nuxt:payload",setup(e){const t=new Set;Ot().beforeResolve(async(n,r)=>{if(n.path===r.path)return;const s=await Tu(n.path);if(s){for(const o of t)delete e.static.data[o];for(const o in s.data)o in e.static.data||t.add(o),e.static.data[o]=s.data[o]}}),$i(()=>{var n;e.hooks.hook("link:prefetch",async r=>{const{hostname:s}=new URL(r,window.location.href);s===window.location.hostname&&await Tu(r).catch(()=>{console.warn("[nuxt] Error preloading payload for",r)})}),((n=navigator.connection)==null?void 0:n.effectiveType)!=="slow-2g"&&setTimeout(Ai,1e3)})}}),uw=Dt(()=>{const e=Ot();$i(()=>{e.beforeResolve(async()=>{await new Promise(t=>{setTimeout(t,100),requestAnimationFrame(()=>{setTimeout(t,0)})})})})}),fw=Dt(e=>{let t;async function n(){const r=await Ai();t&&clearTimeout(t),t=setTimeout(n,mu);try{const s=await $fetch(Xl("builds/latest.json")+`?${Date.now()}`);s.id!==r.id&&e.hooks.callHook("app:manifest:update",s)}catch{}}$i(()=>{t=setTimeout(n,mu)})});function dw(e={}){const t=e.path||window.location.pathname;let n={};try{n=Bo(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||(n==null?void 0:n.path)!==t||(n==null?void 0:n.expires)<Date.now()){try{sessionStorage.setItem("nuxt:reload",JSON.stringify({path:t,expires:Date.now()+(e.ttl??1e4)}))}catch{}if(e.persistState)try{sessionStorage.setItem("nuxt:reload:state",JSON.stringify({state:De().payload.state}))}catch{}window.location.pathname!==t?window.location.href=t:window.location.reload()}}const hw=Dt({name:"nuxt:chunk-reload",setup(e){const t=Ot(),n=Or(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook("app:chunkError",({error:o})=>{r.add(o)});function s(o){const a="href"in o&&o.href[0]==="#"?n.app.baseURL+o.href:Hs(n.app.baseURL,o.fullPath);dw({path:a,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(s)}),t.onError((o,i)=>{r.has(o)&&s(i)})}}),pw=Dt({name:"nuxt:global-components"}),gw=Dt(()=>{}),mw=["top","right","bottom","left"],Au=["start","end"],$u=mw.reduce((e,t)=>e.concat(t,t+"-"+Au[0],t+"-"+Au[1]),[]),ks=Math.min,Fn=Math.max,yw={left:"right",right:"left",bottom:"top",top:"bottom"},bw={start:"end",end:"start"};function Za(e,t,n){return Fn(e,ks(t,n))}function ir(e,t){return typeof e=="function"?e(t):e}function Mt(e){return e.split("-")[0]}function Ct(e){return e.split("-")[1]}function zh(e){return e==="x"?"y":"x"}function ec(e){return e==="y"?"height":"width"}function Kt(e){return["top","bottom"].includes(Mt(e))?"y":"x"}function tc(e){return zh(Kt(e))}function qh(e,t,n){n===void 0&&(n=!1);const r=Ct(e),s=tc(e),o=ec(s);let i=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=qo(i)),[i,qo(i)]}function vw(e){const t=qo(e);return[zo(e),t,zo(t)]}function zo(e){return e.replace(/start|end/g,t=>bw[t])}function _w(e,t,n){const r=["left","right"],s=["right","left"],o=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?s:r:t?r:s;case"left":case"right":return t?o:i;default:return[]}}function ww(e,t,n,r){const s=Ct(e);let o=_w(Mt(e),n==="start",r);return s&&(o=o.map(i=>i+"-"+s),t&&(o=o.concat(o.map(zo)))),o}function qo(e){return e.replace(/left|right|bottom|top/g,t=>yw[t])}function Cw(e){return{top:0,right:0,bottom:0,left:0,...e}}function Kh(e){return typeof e!="number"?Cw(e):{top:e,right:e,bottom:e,left:e}}function cs(e){const{x:t,y:n,width:r,height:s}=e;return{width:r,height:s,top:n,left:t,right:t+r,bottom:n+s,x:t,y:n}}function Ru(e,t,n){let{reference:r,floating:s}=e;const o=Kt(t),i=tc(t),a=ec(i),l=Mt(t),c=o==="y",u=r.x+r.width/2-s.width/2,f=r.y+r.height/2-s.height/2,d=r[a]/2-s[a]/2;let p;switch(l){case"top":p={x:u,y:r.y-s.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-s.width,y:f};break;default:p={x:r.x,y:r.y}}switch(Ct(t)){case"start":p[i]-=d*(n&&c?-1:1);break;case"end":p[i]+=d*(n&&c?-1:1);break}return p}const xw=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:o=[],platform:i}=n,a=o.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:s}),{x:u,y:f}=Ru(c,r,l),d=r,p={},h=0;for(let g=0;g<a.length;g++){const{name:m,fn:b}=a[g],{x:v,y,data:_,reset:C}=await b({x:u,y:f,initialPlacement:r,placement:d,strategy:s,middlewareData:p,rects:c,platform:i,elements:{reference:e,floating:t}});u=v??u,f=y??f,p={...p,[m]:{...p[m],..._}},C&&h<=50&&(h++,typeof C=="object"&&(C.placement&&(d=C.placement),C.rects&&(c=C.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:s}):C.rects),{x:u,y:f}=Ru(c,d,l)),g=-1)}return{x:u,y:f,placement:d,strategy:s,middlewareData:p}};async function Ri(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:o,rects:i,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=ir(t,e),h=Kh(p),m=a[d?f==="floating"?"reference":"floating":f],b=cs(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(m)))==null||n?m:m.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),v=f==="floating"?{x:r,y:s,width:i.floating.width,height:i.floating.height}:i.reference,y=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),_=await(o.isElement==null?void 0:o.isElement(y))?await(o.getScale==null?void 0:o.getScale(y))||{x:1,y:1}:{x:1,y:1},C=cs(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:y,strategy:l}):v);return{top:(b.top-C.top+h.top)/_.y,bottom:(C.bottom-b.bottom+h.bottom)/_.y,left:(b.left-C.left+h.left)/_.x,right:(C.right-b.right+h.right)/_.x}}const Sw=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:s,rects:o,platform:i,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=ir(e,t)||{};if(c==null)return{};const f=Kh(u),d={x:n,y:r},p=tc(s),h=ec(p),g=await i.getDimensions(c),m=p==="y",b=m?"top":"left",v=m?"bottom":"right",y=m?"clientHeight":"clientWidth",_=o.reference[h]+o.reference[p]-d[p]-o.floating[h],C=d[p]-o.reference[p],A=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let N=A?A[y]:0;(!N||!await(i.isElement==null?void 0:i.isElement(A)))&&(N=a.floating[y]||o.floating[h]);const G=_/2-C/2,P=N/2-g[h]/2-1,E=ks(f[b],P),M=ks(f[v],P),T=E,k=N-g[h]-M,S=N/2-g[h]/2+G,L=Za(T,S,k),I=!l.arrow&&Ct(s)!=null&&S!==L&&o.reference[h]/2-(S<T?E:M)-g[h]/2<0,V=I?S<T?S-T:S-k:0;return{[p]:d[p]+V,data:{[p]:L,centerOffset:S-L-V,...I&&{alignmentOffset:V}},reset:I}}});function kw(e,t,n){return(e?[...n.filter(s=>Ct(s)===e),...n.filter(s=>Ct(s)!==e)]:n.filter(s=>Mt(s)===s)).filter(s=>e?Ct(s)===e||(t?zo(s)!==s:!1):!0)}const Ew=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,s;const{rects:o,middlewareData:i,placement:a,platform:l,elements:c}=t,{crossAxis:u=!1,alignment:f,allowedPlacements:d=$u,autoAlignment:p=!0,...h}=ir(e,t),g=f!==void 0||d===$u?kw(f||null,p,d):d,m=await Ri(t,h),b=((n=i.autoPlacement)==null?void 0:n.index)||0,v=g[b];if(v==null)return{};const y=qh(v,o,await(l.isRTL==null?void 0:l.isRTL(c.floating)));if(a!==v)return{reset:{placement:g[0]}};const _=[m[Mt(v)],m[y[0]],m[y[1]]],C=[...((r=i.autoPlacement)==null?void 0:r.overflows)||[],{placement:v,overflows:_}],A=g[b+1];if(A)return{data:{index:b+1,overflows:C},reset:{placement:A}};const N=C.map(E=>{const M=Ct(E.placement);return[E.placement,M&&u?E.overflows.slice(0,2).reduce((T,k)=>T+k,0):E.overflows[0],E.overflows]}).sort((E,M)=>E[1]-M[1]),P=((s=N.filter(E=>E[2].slice(0,Ct(E[0])?2:3).every(M=>M<=0))[0])==null?void 0:s[0])||N[0][0];return P!==a?{data:{index:b+1,overflows:C},reset:{placement:P}}:{}}}},Tw=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:o,rects:i,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:g=!0,...m}=ir(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const b=Mt(s),v=Kt(a),y=Mt(a)===a,_=await(l.isRTL==null?void 0:l.isRTL(c.floating)),C=d||(y||!g?[qo(a)]:vw(a)),A=h!=="none";!d&&A&&C.push(...ww(a,g,h,_));const N=[a,...C],G=await Ri(t,m),P=[];let E=((r=o.flip)==null?void 0:r.overflows)||[];if(u&&P.push(G[b]),f){const S=qh(s,i,_);P.push(G[S[0]],G[S[1]])}if(E=[...E,{placement:s,overflows:P}],!P.every(S=>S<=0)){var M,T;const S=(((M=o.flip)==null?void 0:M.index)||0)+1,L=N[S];if(L&&(!(f==="alignment"?v!==Kt(L):!1)||E.every(B=>B.overflows[0]>0&&Kt(B.placement)===v)))return{data:{index:S,overflows:E},reset:{placement:L}};let I=(T=E.filter(V=>V.overflows[0]<=0).sort((V,B)=>V.overflows[1]-B.overflows[1])[0])==null?void 0:T.placement;if(!I)switch(p){case"bestFit":{var k;const V=(k=E.filter(B=>{if(A){const Y=Kt(B.placement);return Y===v||Y==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(Y=>Y>0).reduce((Y,ve)=>Y+ve,0)]).sort((B,Y)=>B[1]-Y[1])[0])==null?void 0:k[0];V&&(I=V);break}case"initialPlacement":I=a;break}if(s!==I)return{reset:{placement:I}}}return{}}}};async function Aw(e,t){const{placement:n,platform:r,elements:s}=e,o=await(r.isRTL==null?void 0:r.isRTL(s.floating)),i=Mt(n),a=Ct(n),l=Kt(n)==="y",c=["left","top"].includes(i)?-1:1,u=o&&l?-1:1,f=ir(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:h}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof h=="number"&&(p=a==="end"?h*-1:h),l?{x:p*u,y:d*c}:{x:d*c,y:p*u}}const $w=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:o,placement:i,middlewareData:a}=t,l=await Aw(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:s+l.x,y:o+l.y,data:{...l,placement:i}}}}},Rw=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:s}=t,{mainAxis:o=!0,crossAxis:i=!1,limiter:a={fn:m=>{let{x:b,y:v}=m;return{x:b,y:v}}},...l}=ir(e,t),c={x:n,y:r},u=await Ri(t,l),f=Kt(Mt(s)),d=zh(f);let p=c[d],h=c[f];if(o){const m=d==="y"?"top":"left",b=d==="y"?"bottom":"right",v=p+u[m],y=p-u[b];p=Za(v,p,y)}if(i){const m=f==="y"?"top":"left",b=f==="y"?"bottom":"right",v=h+u[m],y=h-u[b];h=Za(v,h,y)}const g=a.fn({...t,[d]:p,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[d]:o,[f]:i}}}}}},Pw=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:s,rects:o,platform:i,elements:a}=t,{apply:l=()=>{},...c}=ir(e,t),u=await Ri(t,c),f=Mt(s),d=Ct(s),p=Kt(s)==="y",{width:h,height:g}=o.floating;let m,b;f==="top"||f==="bottom"?(m=f,b=d===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(b=f,m=d==="end"?"top":"bottom");const v=g-u.top-u.bottom,y=h-u.left-u.right,_=ks(g-u[m],v),C=ks(h-u[b],y),A=!t.middlewareData.shift;let N=_,G=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(G=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(N=v),A&&!d){const E=Fn(u.left,0),M=Fn(u.right,0),T=Fn(u.top,0),k=Fn(u.bottom,0);p?G=h-2*(E!==0||M!==0?E+M:Fn(u.left,u.right)):N=g-2*(T!==0||k!==0?T+k:Fn(u.top,u.bottom))}await l({...t,availableWidth:G,availableHeight:N});const P=await i.getDimensions(a.floating);return h!==P.width||g!==P.height?{reset:{rects:!0}}:{}}}};function ht(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function It(e){return ht(e).getComputedStyle(e)}const Pu=Math.min,us=Math.max,Ko=Math.round;function Xh(e){const t=It(e);let n=parseFloat(t.width),r=parseFloat(t.height);const s=e.offsetWidth,o=e.offsetHeight,i=Ko(n)!==s||Ko(r)!==o;return i&&(n=s,r=o),{width:n,height:r,fallback:i}}function En(e){return Yh(e)?(e.nodeName||"").toLowerCase():""}let no;function Jh(){if(no)return no;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(no=e.brands.map(t=>t.brand+"/"+t.version).join(" "),no):navigator.userAgent}function Lt(e){return e instanceof ht(e).HTMLElement}function _n(e){return e instanceof ht(e).Element}function Yh(e){return e instanceof ht(e).Node}function Nu(e){return typeof ShadowRoot>"u"?!1:e instanceof ht(e).ShadowRoot||e instanceof ShadowRoot}function Pi(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=It(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(s)}function Nw(e){return["table","td","th"].includes(En(e))}function el(e){const t=/firefox/i.test(Jh()),n=It(e),r=n.backdropFilter||n.WebkitBackdropFilter;return n.transform!=="none"||n.perspective!=="none"||!!r&&r!=="none"||t&&n.willChange==="filter"||t&&!!n.filter&&n.filter!=="none"||["transform","perspective"].some(s=>n.willChange.includes(s))||["paint","layout","strict","content"].some(s=>{const o=n.contain;return o!=null&&o.includes(s)})}function Qh(){return!/^((?!chrome|android).)*safari/i.test(Jh())}function nc(e){return["html","body","#document"].includes(En(e))}function Zh(e){return _n(e)?e:e.contextElement}const ep={x:1,y:1};function Tr(e){const t=Zh(e);if(!Lt(t))return ep;const n=t.getBoundingClientRect(),{width:r,height:s,fallback:o}=Xh(t);let i=(o?Ko(n.width):n.width)/r,a=(o?Ko(n.height):n.height)/s;return i&&Number.isFinite(i)||(i=1),a&&Number.isFinite(a)||(a=1),{x:i,y:a}}function Es(e,t,n,r){var s,o;t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=Zh(e);let l=ep;t&&(r?_n(r)&&(l=Tr(r)):l=Tr(e));const c=a?ht(a):window,u=!Qh()&&n;let f=(i.left+(u&&((s=c.visualViewport)==null?void 0:s.offsetLeft)||0))/l.x,d=(i.top+(u&&((o=c.visualViewport)==null?void 0:o.offsetTop)||0))/l.y,p=i.width/l.x,h=i.height/l.y;if(a){const g=ht(a),m=r&&_n(r)?ht(r):r;let b=g.frameElement;for(;b&&r&&m!==g;){const v=Tr(b),y=b.getBoundingClientRect(),_=getComputedStyle(b);y.x+=(b.clientLeft+parseFloat(_.paddingLeft))*v.x,y.y+=(b.clientTop+parseFloat(_.paddingTop))*v.y,f*=v.x,d*=v.y,p*=v.x,h*=v.y,f+=y.x,d+=y.y,b=ht(b).frameElement}}return{width:p,height:h,top:d,right:f+p,bottom:d+h,left:f,x:f,y:d}}function wn(e){return((Yh(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ni(e){return _n(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function tp(e){return Es(wn(e)).left+Ni(e).scrollLeft}function Ts(e){if(En(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Nu(e)&&e.host||wn(e);return Nu(t)?t.host:t}function np(e){const t=Ts(e);return nc(t)?t.ownerDocument.body:Lt(t)&&Pi(t)?t:np(t)}function Xo(e,t){var n;t===void 0&&(t=[]);const r=np(e),s=r===((n=e.ownerDocument)==null?void 0:n.body),o=ht(r);return s?t.concat(o,o.visualViewport||[],Pi(r)?r:[]):t.concat(r,Xo(r))}function Iu(e,t,n){return t==="viewport"?cs(function(r,s){const o=ht(r),i=wn(r),a=o.visualViewport;let l=i.clientWidth,c=i.clientHeight,u=0,f=0;if(a){l=a.width,c=a.height;const d=Qh();(d||!d&&s==="fixed")&&(u=a.offsetLeft,f=a.offsetTop)}return{width:l,height:c,x:u,y:f}}(e,n)):_n(t)?cs(function(r,s){const o=Es(r,!0,s==="fixed"),i=o.top+r.clientTop,a=o.left+r.clientLeft,l=Lt(r)?Tr(r):{x:1,y:1};return{width:r.clientWidth*l.x,height:r.clientHeight*l.y,x:a*l.x,y:i*l.y}}(t,n)):cs(function(r){const s=wn(r),o=Ni(r),i=r.ownerDocument.body,a=us(s.scrollWidth,s.clientWidth,i.scrollWidth,i.clientWidth),l=us(s.scrollHeight,s.clientHeight,i.scrollHeight,i.clientHeight);let c=-o.scrollLeft+tp(r);const u=-o.scrollTop;return It(i).direction==="rtl"&&(c+=us(s.clientWidth,i.clientWidth)-a),{width:a,height:l,x:c,y:u}}(wn(e)))}function Lu(e){return Lt(e)&&It(e).position!=="fixed"?e.offsetParent:null}function Ou(e){const t=ht(e);let n=Lu(e);for(;n&&Nw(n)&&It(n).position==="static";)n=Lu(n);return n&&(En(n)==="html"||En(n)==="body"&&It(n).position==="static"&&!el(n))?t:n||function(r){let s=Ts(r);for(;Lt(s)&&!nc(s);){if(el(s))return s;s=Ts(s)}return null}(e)||t}function Iw(e,t,n){const r=Lt(t),s=wn(t),o=Es(e,!0,n==="fixed",t);let i={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(r||!r&&n!=="fixed")if((En(t)!=="body"||Pi(s))&&(i=Ni(t)),Lt(t)){const l=Es(t,!0);a.x=l.x+t.clientLeft,a.y=l.y+t.clientTop}else s&&(a.x=tp(s));return{x:o.left+i.scrollLeft-a.x,y:o.top+i.scrollTop-a.y,width:o.width,height:o.height}}const Lw={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const o=n==="clippingAncestors"?function(c,u){const f=u.get(c);if(f)return f;let d=Xo(c).filter(m=>_n(m)&&En(m)!=="body"),p=null;const h=It(c).position==="fixed";let g=h?Ts(c):c;for(;_n(g)&&!nc(g);){const m=It(g),b=el(g);(h?b||p:b||m.position!=="static"||!p||!["absolute","fixed"].includes(p.position))?p=m:d=d.filter(v=>v!==g),g=Ts(g)}return u.set(c,d),d}(t,this._c):[].concat(n),i=[...o,r],a=i[0],l=i.reduce((c,u)=>{const f=Iu(t,u,s);return c.top=us(f.top,c.top),c.right=Pu(f.right,c.right),c.bottom=Pu(f.bottom,c.bottom),c.left=us(f.left,c.left),c},Iu(t,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const s=Lt(n),o=wn(n);if(n===o)return t;let i={scrollLeft:0,scrollTop:0},a={x:1,y:1};const l={x:0,y:0};if((s||!s&&r!=="fixed")&&((En(n)!=="body"||Pi(o))&&(i=Ni(n)),Lt(n))){const c=Es(n);a=Tr(n),l.x=c.x+n.clientLeft,l.y=c.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-i.scrollLeft*a.x+l.x,y:t.y*a.y-i.scrollTop*a.y+l.y}},isElement:_n,getDimensions:function(e){return Lt(e)?Xh(e):e.getBoundingClientRect()},getOffsetParent:Ou,getDocumentElement:wn,getScale:Tr,async getElementRects(e){let{reference:t,floating:n,strategy:r}=e;const s=this.getOffsetParent||Ou,o=this.getDimensions;return{reference:Iw(t,await s(n),r),floating:{x:0,y:0,...await o(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>It(e).direction==="rtl"},Ow=(e,t,n)=>{const r=new Map,s={platform:Lw,...n},o={...s.platform,_c:r};return xw(e,t,{...s,platform:o})};function rp(e,t){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(typeof t[n]=="object"&&e[n]?rp(e[n],t[n]):e[n]=t[n])}const xt={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover"],delay:{show:0,hide:400}}}};function As(e,t){let n=xt.themes[e]||{},r;do r=n[t],typeof r>"u"?n.$extend?n=xt.themes[n.$extend]||{}:(n=null,r=xt[t]):n=null;while(n);return r}function Mw(e){const t=[e];let n=xt.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=xt.themes[n.$extend]||{}):n=null;while(n);return t.map(r=>`v-popper--theme-${r}`)}function Mu(e){const t=[e];let n=xt.themes[e]||{};do n.$extend?(t.push(n.$extend),n=xt.themes[n.$extend]||{}):n=null;while(n);return t}let Mr=!1;if(typeof window<"u"){Mr=!1;try{const e=Object.defineProperty({},"passive",{get(){Mr=!0}});window.addEventListener("test",null,e)}catch{}}let sp=!1;typeof window<"u"&&typeof navigator<"u"&&(sp=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const op=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),Du={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},Fu={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function Bu(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1)}function aa(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const vt=[];let On=null;const Hu={};function ju(e){let t=Hu[e];return t||(t=Hu[e]=[]),t}let tl=function(){};typeof window<"u"&&(tl=window.Element);function ce(e){return function(t){return As(t.theme,e)}}const la="__floating-vue__popper",ip=()=>Ge({name:"VPopper",provide(){return{[la]:{parentPopper:this}}},inject:{[la]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:ce("disabled")},positioningDisabled:{type:Boolean,default:ce("positioningDisabled")},placement:{type:String,default:ce("placement"),validator:e=>op.includes(e)},delay:{type:[String,Number,Object],default:ce("delay")},distance:{type:[Number,String],default:ce("distance")},skidding:{type:[Number,String],default:ce("skidding")},triggers:{type:Array,default:ce("triggers")},showTriggers:{type:[Array,Function],default:ce("showTriggers")},hideTriggers:{type:[Array,Function],default:ce("hideTriggers")},popperTriggers:{type:Array,default:ce("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:ce("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:ce("popperHideTriggers")},container:{type:[String,Object,tl,Boolean],default:ce("container")},boundary:{type:[String,tl],default:ce("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:ce("strategy")},autoHide:{type:[Boolean,Function],default:ce("autoHide")},handleResize:{type:Boolean,default:ce("handleResize")},instantMove:{type:Boolean,default:ce("instantMove")},eagerMount:{type:Boolean,default:ce("eagerMount")},popperClass:{type:[String,Array,Object],default:ce("popperClass")},computeTransformOrigin:{type:Boolean,default:ce("computeTransformOrigin")},autoMinSize:{type:Boolean,default:ce("autoMinSize")},autoSize:{type:[Boolean,String],default:ce("autoSize")},autoMaxSize:{type:Boolean,default:ce("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:ce("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:ce("preventOverflow")},overflowPadding:{type:[Number,String],default:ce("overflowPadding")},arrowPadding:{type:[Number,String],default:ce("arrowPadding")},arrowOverflow:{type:Boolean,default:ce("arrowOverflow")},flip:{type:Boolean,default:ce("flip")},shift:{type:Boolean,default:ce("shift")},shiftCrossAxis:{type:Boolean,default:ce("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:ce("noAutoFocus")},disposeTimeout:{type:Number,default:ce("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[la])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:n=!1}={}){var r,s;(r=this.parentPopper)!=null&&r.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(n||!this.disabled)&&(((s=this.parentPopper)==null?void 0:s.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var n;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((n=this.parentPopper)==null?void 0:n.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push($w({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(Ew({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(Rw({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(Tw({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(Sw({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:r,rects:s,middlewareData:o})=>{let i;const{centerOffset:a}=o.arrow;return r.startsWith("top")||r.startsWith("bottom")?i=Math.abs(a)>s.reference.width/2:i=Math.abs(a)>s.reference.height/2,{data:{overflow:i}}}}),this.autoMinSize||this.autoSize){const r=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:s,placement:o,middlewareData:i})=>{var a;if((a=i.autoSize)!=null&&a.skip)return{};let l,c;return o.startsWith("top")||o.startsWith("bottom")?l=s.reference.width:c=s.reference.height,this.$_innerNode.style[r==="min"?"minWidth":r==="max"?"maxWidth":"width"]=l!=null?`${l}px`:null,this.$_innerNode.style[r==="min"?"minHeight":r==="max"?"maxHeight":"height"]=c!=null?`${c}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(Pw({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:r,availableHeight:s})=>{this.$_innerNode.style.maxWidth=r!=null?`${r}px`:null,this.$_innerNode.style.maxHeight=s!=null?`${s}px`:null}})));const n=await Ow(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:n.x,y:n.y,placement:n.placement,strategy:n.strategy,arrow:{...n.middlewareData.arrow,...n.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),On&&this.instantMove&&On.instantMove&&On!==this.parentPopper){On.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(On=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await aa(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Xo(this.$_referenceNode),...Xo(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),n=this.$_popperNode.querySelector(".v-popper__wrapper"),r=n.parentNode.getBoundingClientRect(),s=t.x+t.width/2-(r.left+n.offsetLeft),o=t.y+t.height/2-(r.top+n.offsetTop);this.result.transformOrigin=`${s}px ${o}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let n=0;n<vt.length;n++)t=vt[n],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}vt.push(this),document.body.classList.add("v-popper--some-open");for(const t of Mu(this.theme))ju(t).push(this),document.body.classList.add(`v-popper--some-open--${t}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await aa(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,Bu(vt,this),vt.length===0&&document.body.classList.remove("v-popper--some-open");for(const n of Mu(this.theme)){const r=ju(n);Bu(r,this),r.length===0&&document.body.classList.remove(`v-popper--some-open--${n}`)}On===this&&(On=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await aa(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=n=>{this.isShown&&!this.$_hideInProgress||(n.usedByTooltip=!0,!this.$_preventShow&&this.show({event:n}))};this.$_registerTriggerListeners(this.$_targetNodes,Du,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Du,this.popperTriggers,this.popperShowTriggers,e);const t=n=>{n.usedByTooltip||this.hide({event:n})};this.$_registerTriggerListeners(this.$_targetNodes,Fu,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],Fu,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,n){this.$_events.push({targetNodes:e,eventType:t,handler:n}),e.forEach(r=>r.addEventListener(t,n,Mr?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,n,r,s){let o=n;r!=null&&(o=typeof r=="function"?r(o):r),o.forEach(i=>{const a=t[i];a&&this.$_registerEventListeners(e,a,s)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(n=>{const{targetNodes:r,eventType:s,handler:o}=n;!e||e===s?r.forEach(i=>i.removeEventListener(s,o)):t.push(n)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const n of this.$_targetNodes){const r=n.getAttribute(e);r&&(n.removeAttribute(e),n.setAttribute(t,r))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const n in e){const r=e[n];r==null?t.removeAttribute(n):t.setAttribute(n,r)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(fs>=e.left&&fs<=e.right&&ds>=e.top&&ds<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),n=fs-un,r=ds-fn,s=t.left+t.width/2-un+(t.top+t.height/2)-fn+t.width+t.height,o=un+n*s,i=fn+r*s;return ro(un,fn,o,i,t.left,t.top,t.left,t.bottom)||ro(un,fn,o,i,t.left,t.top,t.right,t.top)||ro(un,fn,o,i,t.right,t.top,t.right,t.bottom)||ro(un,fn,o,i,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(sp){const e=Mr?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>Uu(t,!0),e),document.addEventListener("touchend",t=>Gu(t,!0),e)}else window.addEventListener("mousedown",e=>Uu(e,!1),!0),window.addEventListener("click",e=>Gu(e,!1),!0);window.addEventListener("resize",Fw)}function Uu(e,t){if(xt.autoHideOnMousedown)ap(e,t);else for(let n=0;n<vt.length;n++){const r=vt[n];try{r.mouseDownContains=r.popperNode().contains(e.target)}catch{}}}function Gu(e,t){xt.autoHideOnMousedown||ap(e,t)}function ap(e,t){const n={};for(let r=vt.length-1;r>=0;r--){const s=vt[r];try{const o=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(e.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!n[s.randomId]&&Wu(s,o,e)){if(s.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&o){let a=s.parentPopper;for(;a;)n[a.randomId]=!0,a=a.parentPopper;return}let i=s.parentPopper;for(;i&&Wu(i,i.containsGlobalTarget,e);)i.$_handleGlobalClose(e,t),i=i.parentPopper}})}catch{}}}function Wu(e,t,n){return n.closeAllPopover||n.closePopover&&t||Dw(e,n)&&!t}function Dw(e,t){if(typeof e.autoHide=="function"){const n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function Fw(){for(let e=0;e<vt.length;e++)vt[e].$_computePosition()}let un=0,fn=0,fs=0,ds=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{un=fs,fn=ds,fs=e.clientX,ds=e.clientY},Mr?{passive:!0}:void 0);function ro(e,t,n,r,s,o,i,a){const l=((i-s)*(t-o)-(a-o)*(e-s))/((a-o)*(n-e)-(i-s)*(r-t)),c=((n-e)*(t-o)-(r-t)*(e-s))/((a-o)*(n-e)-(i-s)*(r-t));return l>=0&&l<=1&&c>=0&&c<=1}const Bw={extends:ip()},Ii=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n};function Hw(e,t,n,r,s,o){return W(),Z("div",{ref:"reference",class:$e(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[Pe(e.$slots,"default",Yf(Vl(e.slotData)))],2)}const jw=Ii(Bw,[["render",Hw]]);function Uw(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var r=e.indexOf("rv:");return parseInt(e.substring(r+3,e.indexOf(".",r)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let Co;function nl(){nl.init||(nl.init=!0,Co=Uw()!==-1)}var Li={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){nl(),sr(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Co&&this.$el.appendChild(e),e.data="about:blank",Co||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Co&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Gw=Hm();Fm("data-v-b329ee4c");const Ww={class:"resize-observer",tabindex:"-1"};Bm();const Vw=Gw((e,t,n,r,s,o)=>(W(),me("div",Ww)));Li.render=Vw;Li.__scopeId="data-v-b329ee4c";Li.__file="src/components/ResizeObserver.vue";const lp=(e="theme")=>({computed:{themeClass(){return Mw(this[e])}}}),zw=Ge({name:"VPopperContent",components:{ResizeObserver:Li},mixins:[lp()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),qw=["id","aria-hidden","tabindex","data-popper-placement"],Kw={ref:"inner",class:"v-popper__inner"},Xw=F("div",{class:"v-popper__arrow-outer"},null,-1),Jw=F("div",{class:"v-popper__arrow-inner"},null,-1),Yw=[Xw,Jw];function Qw(e,t,n,r,s,o){const i=nn("ResizeObserver");return W(),Z("div",{id:e.popperId,ref:"popover",class:$e(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:Jt(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=Nb(a=>e.autoHide&&e.$emit("hide"),["esc"]))},[F("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=a=>e.autoHide&&e.$emit("hide"))}),F("div",{class:"v-popper__wrapper",style:Jt(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[F("div",Kw,[e.mounted?(W(),Z(ge,{key:0},[F("div",null,[Pe(e.$slots,"default")]),e.handleResize?(W(),me(i,{key:0,onNotify:t[1]||(t[1]=a=>e.$emit("resize",a))})):Te("",!0)],64)):Te("",!0)],512),F("div",{ref:"arrow",class:"v-popper__arrow-container",style:Jt(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},Yw,4)],4)],46,qw)}const cp=Ii(zw,[["render",Qw]]),up={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}};let rl=function(){};typeof window<"u"&&(rl=window.Element);const Zw=Ge({name:"VPopperWrapper",components:{Popper:jw,PopperContent:cp},mixins:[up,lp("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,rl,Boolean],default:void 0},boundary:{type:[String,rl],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function e0(e,t,n,r,s,o){const i=nn("PopperContent"),a=nn("Popper");return W(),me(a,or({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=l=>e.$emit("update:shown",l)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:se(({popperId:l,isShown:c,shouldMountContent:u,skipTransition:f,autoHide:d,show:p,hide:h,handleResize:g,onResize:m,classes:b,result:v})=>[Pe(e.$slots,"default",{shown:c,show:p,hide:h}),J(i,{ref:"popperContent","popper-id":l,theme:e.finalTheme,shown:c,mounted:u,"skip-transition":f,"auto-hide":d,"handle-resize":g,classes:b,result:v,onHide:h,onResize:m},{default:se(()=>[Pe(e.$slots,"popper",{shown:c,hide:h})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const rc=Ii(Zw,[["render",e0]]),t0={...rc,name:"VDropdown",vPopperTheme:"dropdown"},n0={...rc,name:"VMenu",vPopperTheme:"menu"},r0={...rc,name:"VTooltip",vPopperTheme:"tooltip"},s0=Ge({name:"VTooltipDirective",components:{Popper:ip(),PopperContent:cp},mixins:[up],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>As(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>As(e.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,n=this.content(this);n.then?n.then(r=>this.onResult(t,r)):this.onResult(t,n)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),o0=["innerHTML"],i0=["textContent"];function a0(e,t,n,r,s,o){const i=nn("PopperContent"),a=nn("Popper");return W(),me(a,or({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:se(({popperId:l,isShown:c,shouldMountContent:u,skipTransition:f,autoHide:d,hide:p,handleResize:h,onResize:g,classes:m,result:b})=>[J(i,{ref:"popperContent",class:$e({"v-popper--tooltip-loading":e.loading}),"popper-id":l,theme:e.theme,shown:c,mounted:u,"skip-transition":f,"auto-hide":d,"handle-resize":h,classes:m,result:b,onHide:p,onResize:g},{default:se(()=>[e.html?(W(),Z("div",{key:0,innerHTML:e.finalContent},null,8,o0)):(W(),Z("div",{key:1,textContent:ke(e.finalContent)},null,8,i0))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}const l0=Ii(s0,[["render",a0]]),fp="v-popper--has-tooltip";function c0(e,t){let n=e.placement;if(!n&&t)for(const r of op)t[r]&&(n=r);return n||(n=As(e.theme||"tooltip","placement")),n}function dp(e,t,n){let r;const s=typeof t;return s==="string"?r={content:t}:t&&s==="object"?r=t:r={content:!1},r.placement=c0(r,n),r.targetNodes=()=>[e],r.referenceNode=()=>e,r}let ca,$s,u0=0;function f0(){if(ca)return;$s=ue([]),ca=yh({name:"VTooltipDirectiveApp",setup(){return{directives:$s}},render(){return this.directives.map(t=>kn(l0,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),ca.mount(e)}function d0(e,t,n){f0();const r=ue(dp(e,t,n)),s=ue(!1),o={id:u0++,options:r,shown:s};return $s.value.push(o),e.classList&&e.classList.add(fp),e.$_popper={options:r,item:o,show(){s.value=!0},hide(){s.value=!1}}}function hp(e){if(e.$_popper){const t=$s.value.indexOf(e.$_popper.item);t!==-1&&$s.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(fp)}function Vu(e,{value:t,modifiers:n}){const r=dp(e,t,n);if(!r.content||As(r.theme||"tooltip","disabled"))hp(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=r):s=d0(e,t,n),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const h0={beforeMount:Vu,updated:Vu,beforeUnmount(e){hp(e)}};function zu(e){e.addEventListener("mousedown",Jo),e.addEventListener("click",Jo),e.addEventListener("touchstart",pp,Mr?{passive:!0}:!1)}function qu(e){e.removeEventListener("mousedown",Jo),e.removeEventListener("click",Jo),e.removeEventListener("touchstart",pp),e.removeEventListener("touchend",gp),e.removeEventListener("touchcancel",mp)}function Jo(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function pp(e){if(e.changedTouches.length===1){const t=e.currentTarget;t.$_vclosepopover_touch=!0;const n=e.changedTouches[0];t.$_vclosepopover_touchPoint=n,t.addEventListener("touchend",gp),t.addEventListener("touchcancel",mp)}}function gp(e){const t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){const n=e.changedTouches[0],r=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(n.screenY-r.screenY)<20&&Math.abs(n.screenX-r.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function mp(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}const p0={beforeMount(e,{value:t,modifiers:n}){e.$_closePopoverModifiers=n,(typeof t>"u"||t)&&zu(e)},updated(e,{value:t,oldValue:n,modifiers:r}){e.$_closePopoverModifiers=r,t!==n&&(typeof t>"u"||t?zu(e):qu(e))},beforeUnmount(e){qu(e)}};function g0(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,rp(xt,t),e.directive("tooltip",h0),e.directive("close-popper",p0),e.component("VTooltip",r0),e.component("VDropdown",t0),e.component("VMenu",n0))}const m0={version:"5.2.2",install:g0,options:xt},y0=Dt(e=>{e.vueApp.use(m0)}),b0=[Z_,sw,aw,cw,uw,fw,hw,pw,gw,y0],js={__name:"NIcon",props:{icon:{type:String,required:!1}},setup(e){return(t,n)=>(W(),Z("div",{class:$e(["n-icon",e.icon])},null,2))}},Us=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},v0={},_0={class:"n-badge"};function w0(e,t){return W(),Z("span",_0,[Pe(e.$slots,"default")])}const C0=Us(v0,[["render",w0]]);async function yp(e,t=Ot()){const{path:n,matched:r}=t.resolve(e);if(!r.length||(t._routePreloaded||(t._routePreloaded=new Set),t._routePreloaded.has(n)))return;const s=t._preloadPromises||(t._preloadPromises=[]);if(s.length>4)return Promise.all(s).then(()=>yp(e,t));t._routePreloaded.add(n);const o=r.map(i=>{var a;return(a=i.components)==null?void 0:a.default}).filter(i=>typeof i=="function");for(const i of o){const a=Promise.resolve(i()).catch(()=>{}).finally(()=>s.splice(s.indexOf(a)));s.push(a)}await Promise.all(s)}const x0=(...e)=>e.find(t=>t!==void 0);function S0(e){const t=e.componentName||"NuxtLink";function n(o){return typeof o=="string"&&o.startsWith("#")}function r(o,i,a){const l=a??e.trailingSlash;if(!o||l!=="append"&&l!=="remove")return o;if(typeof o=="string")return so(o,l);const c="path"in o&&o.path!==void 0?o.path:i(o).path;return{...o,name:void 0,path:so(c,l)}}function s(o){const i=Ot(),a=Or(),l=Ee(()=>!!o.target&&o.target!=="_self"),c=Ee(()=>{const m=o.to||o.href||"";return typeof m=="string"&&An(m,{acceptRelative:!0})}),u=nn("RouterLink"),f=u&&typeof u!="string"?u.useLink:void 0,d=Ee(()=>{if(o.external)return!0;const m=o.to||o.href||"";return typeof m=="object"?!1:m===""||c.value}),p=Ee(()=>{const m=o.to||o.href||"";return d.value?m:r(m,i.resolve,o.trailingSlash)}),h=d.value||f==null?void 0:f({...o,to:p}),g=Ee(()=>{var b;const m=o.trailingSlash??e.trailingSlash;if(!p.value||c.value||n(p.value))return p.value;if(d.value){const v=typeof p.value=="object"&&"path"in p.value?Ka(p.value):p.value,y=typeof v=="object"?i.resolve(v).href:v;return so(y,m)}return typeof p.value=="object"?((b=i.resolve(p.value))==null?void 0:b.href)??null:so(Hs(a.app.baseURL,p.value),m)});return{to:p,hasTarget:l,isAbsoluteUrl:c,isExternal:d,href:g,isActive:(h==null?void 0:h.isActive)??Ee(()=>p.value===i.currentRoute.value.path),isExactActive:(h==null?void 0:h.isExactActive)??Ee(()=>p.value===i.currentRoute.value.path),route:(h==null?void 0:h.route)??Ee(()=>i.resolve(p.value)),async navigate(m){await Fh(g.value,{replace:o.replace,external:d.value||l.value})}}}return Ge({name:t,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1},trailingSlash:{type:String,default:void 0,required:!1}},useLink:s,setup(o,{slots:i}){const a=Ot(),{to:l,href:c,navigate:u,isExternal:f,hasTarget:d,isAbsoluteUrl:p}=s(o),h=Rr(!1),g=ue(null),m=y=>{var _;g.value=o.custom?(_=y==null?void 0:y.$el)==null?void 0:_.nextElementSibling:y==null?void 0:y.$el};function b(y){var _,C;return!h.value&&(typeof o.prefetchOn=="string"?o.prefetchOn===y:((_=o.prefetchOn)==null?void 0:_[y])??((C=e.prefetchOn)==null?void 0:C[y]))&&(o.prefetch??e.prefetch)!==!1&&o.noPrefetch!==!0&&o.target!=="_blank"&&!T0()}async function v(y=De()){if(h.value)return;h.value=!0;const _=typeof l.value=="string"?l.value:f.value?Ka(l.value):a.resolve(l.value).fullPath,C=f.value?new URL(_,window.location.href).href:_;await Promise.all([y.hooks.callHook("link:prefetch",C).catch(()=>{}),!f.value&&!d.value&&yp(l.value,a).catch(()=>{})])}if(b("visibility")){const y=De();let _,C=null;Ci(()=>{const A=k0();$i(()=>{_=Qa(()=>{var N;(N=g==null?void 0:g.value)!=null&&N.tagName&&(C=A.observe(g.value,async()=>{C==null||C(),C=null,await v(y)}))})})}),xi(()=>{_&&lw(_),C==null||C(),C=null})}return()=>{var C;if(!f.value&&!d.value&&!n(l.value)){const A={ref:m,to:l.value,activeClass:o.activeClass||e.activeClass,exactActiveClass:o.exactActiveClass||e.exactActiveClass,replace:o.replace,ariaCurrentValue:o.ariaCurrentValue,custom:o.custom};return o.custom||(b("interaction")&&(A.onPointerenter=v.bind(null,void 0),A.onFocus=v.bind(null,void 0)),h.value&&(A.class=o.prefetchedClass||e.prefetchedClass),A.rel=o.rel||void 0),kn(nn("RouterLink"),A,i.default)}const y=o.target||null,_=x0(o.noRel?"":o.rel,e.externalRelAttribute,p.value||d.value?"noopener noreferrer":"")||null;return o.custom?i.default?i.default({href:c.value,navigate:u,prefetch:v,get route(){if(!c.value)return;const A=new URL(c.value,window.location.href);return{path:A.pathname,fullPath:A.pathname,get query(){return Bs(A.search)},hash:A.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:c.value}},rel:_,target:y,isExternal:f.value||d.value,isActive:!1,isExactActive:!1}):null:kn("a",{ref:g,href:c.value||null,rel:_,target:y},(C=i.default)==null?void 0:C.call(i))}}})}const bp=S0(Hv);function so(e,t){const n=t==="append"?jo:Ti;return An(e)&&!e.startsWith("http")?e:n(e,!0)}function k0(){const e=De();if(e._observer)return e._observer;let t=null;const n=new Map,r=(o,i)=>(t||(t=new IntersectionObserver(a=>{for(const l of a){const c=n.get(l.target);(l.isIntersecting||l.intersectionRatio>0)&&c&&c()}})),n.set(o,i),t.observe(o),()=>{n.delete(o),t==null||t.unobserve(o),n.size===0&&(t==null||t.disconnect(),t=null)});return e._observer={observe:r}}const E0=/2g/;function T0(){const e=navigator.connection;return!!(e&&(e.saveData||E0.test(e.effectiveType)))}const A0={key:0,"i-carbon:arrow-up-right":"","translate-y--1":"","text-xs":"",op50:""},sc={__name:"NLink",props:{to:{type:String,required:!1},href:{type:String,required:!1},target:{type:String,required:!1},underline:{type:Boolean,required:!1}},setup(e){const t=e,n=Ee(()=>t.href||t.to);return(r,s)=>{const o=bp;return W(),me(o,or(n.value?{href:n.value,target:e.target,rel:e.target==="_blank"?"noopener noreferrer":null}:{},{class:{"n-link n-transition hover:n-link-hover n-link-base":n.value||e.underline}}),{default:se(()=>[Pe(r.$slots,"default"),n.value&&e.target==="_blank"?(W(),Z("div",A0)):Te("",!0)]),_:3},16,["class"])}}},$0={},R0={height:"22",viewBox:"0 0 1204 200",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function P0(e,t){return W(),Z("svg",R0,t[0]||(t[0]=[Hy('<path d="M377 200C379.16 200 381 198.209 381 196V103C381 103 386 112 395 127L434 194C435.785 197.74 439.744 200 443 200H470V50H443C441.202 50 439 51.4941 439 54V148L421 116L385 55C383.248 51.8912 379.479 50 376 50H350V200H377Z" fill="currentColor"></path><path d="M726 92H739C742.314 92 745 89.3137 745 86V60H773V92H800V116H773V159C773 169.5 778.057 174 787 174H800V200H783C759.948 200 745 185.071 745 160V116H726V92Z" fill="currentColor"></path><path d="M591 92V154C591 168.004 585.742 179.809 578 188C570.258 196.191 559.566 200 545 200C530.434 200 518.742 196.191 511 188C503.389 179.809 498 168.004 498 154V92H514C517.412 92 520.769 92.622 523 95C525.231 97.2459 526 98.5652 526 102V154C526 162.059 526.457 167.037 530 171C533.543 174.831 537.914 176 545 176C552.217 176 555.457 174.831 559 171C562.543 167.037 563 162.059 563 154V102C563 98.5652 563.769 96.378 566 94C567.96 91.9107 570.028 91.9599 573 92C573.411 92.0055 574.586 92 575 92H591Z" fill="currentColor"></path><path d="M676 144L710 92H684C680.723 92 677.812 93.1758 676 96L660 120L645 97C643.188 94.1758 639.277 92 636 92H611L645 143L608 200H634C637.25 200 640.182 196.787 642 194L660 167L679 195C680.818 197.787 683.75 200 687 200H713L676 144Z" fill="currentColor"></path><path d="M168 200H279C282.542 200 285.932 198.756 289 197C292.068 195.244 295.23 193.041 297 190C298.77 186.959 300.002 183.51 300 179.999C299.998 176.488 298.773 173.04 297 170.001L222 41C220.23 37.96 218.067 35.7552 215 34C211.933 32.2448 207.542 31 204 31C200.458 31 197.067 32.2448 194 34C190.933 35.7552 188.77 37.96 187 41L168 74L130 9.99764C128.228 6.95784 126.068 3.75491 123 2C119.932 0.245087 116.542 0 113 0C109.458 0 106.068 0.245087 103 2C99.9323 3.75491 96.7717 6.95784 95 9.99764L2 170.001C0.226979 173.04 0.00154312 176.488 1.90993e-06 179.999C-0.0015393 183.51 0.229648 186.959 2 190C3.77035 193.04 6.93245 195.244 10 197C13.0675 198.756 16.4578 200 20 200H90C117.737 200 137.925 187.558 152 164L186 105L204 74L259 168H186L168 200ZM89 168H40L113 42L150 105L125.491 147.725C116.144 163.01 105.488 168 89 168Z" fill="#00DC82"></path><path d="M892 200C881.746 200 873.788 197.911 866 194C858.212 189.959 851.543 184.169 847 177C842.587 169.7 840.389 161.646 840 152H868C868.649 159.039 870.717 163.959 875 168C879.413 172.041 885.861 174 893 174C899.62 174 904.106 172.737 908 170C912.024 167.263 914 164.084 914 159C914 155.48 913.336 152.086 911 150C908.793 147.784 906.375 146.173 903 145C899.625 143.827 894.23 142.564 888 141C878.784 138.784 870.971 136.477 865 134C859.159 131.393 854.283 127.605 850 122C845.717 116.395 844 108.777 844 99C844 91.5698 845.976 84.8659 850 79C854.024 73.1341 859.861 68.2589 867 65C874.139 61.6108 881.914 60 891 60C900.735 60 909.601 61.4805 917 65C924.528 68.5196 929.846 73.4823 934 80C938.283 86.5177 940.74 94.3967 941 103H913C912.481 97.5251 910.894 93.1285 907 90C903.106 86.7411 897.49 85 891 85C885.289 85 880.375 86.5233 877 89C873.625 91.4767 872 94.959 872 99C872 102.78 873.664 105.784 876 108C878.336 110.216 881.366 111.696 885 113C888.634 114.173 893.64 115.566 900 117C909.346 119.216 916.159 121.654 922 124C927.841 126.346 932.846 130.395 937 136C941.283 141.475 944 148.354 944 158C944 166.473 941.283 173.743 937 180C932.717 186.257 926.788 191.611 919 195C911.342 198.389 902.124 200 892 200Z" fill="#00DC82"></path><path d="M1056 200H961V60H1054V87H990V116H1041V141H990V173H1056V200Z" fill="#00DC82"></path><path d="M1134 200C1120.76 200 1108.64 196.996 1098 191C1087.49 184.873 1080.1 176.559 1074 166C1068.03 155.311 1065 143.296 1065 130C1065 116.704 1068.03 104.559 1074 94C1080.1 83.311 1088.49 74.9963 1099 69C1109.64 62.8734 1120.76 60 1134 60C1147.11 60 1159.49 62.8734 1170 69C1180.64 74.9963 1189.03 83.311 1195 94C1201.1 104.559 1204 116.704 1204 130C1204 143.296 1201.1 155.311 1195 166C1189.03 176.559 1180.64 184.873 1170 191C1159.49 196.996 1147.11 200 1134 200ZM1134 174C1141.66 174 1148.9 172.78 1155 169C1161.23 165.089 1165.63 159.778 1169 153C1172.5 146.222 1174 138.473 1174 130C1174 121.527 1172.5 113.778 1169 107C1165.63 100.222 1161.23 94.9106 1155 91C1148.9 87.0894 1141.66 85 1134 85C1126.34 85 1120.1 87.0894 1114 91C1107.9 94.9106 1102.5 100.222 1099 107C1095.63 113.778 1094 121.527 1094 130C1094 138.473 1095.63 146.222 1099 153C1102.5 159.778 1107.9 165.089 1114 169C1120.1 172.78 1126.34 174 1134 174Z" fill="#00DC82"></path>',8)]))}const N0=Us($0,[["render",P0]]),I0={},L0={class:"n-loading n-panel-grids-center"},O0={class:"flex flex-col animate-pulse items-center text-lg"};function M0(e,t){return W(),Z("div",L0,[F("div",O0,[t[1]||(t[1]=F("div",{class:"i-carbon-circle-dash animate-spin text-4xl op50"},null,-1)),Pe(e.$slots,"default",{},()=>[t[0]||(t[0]=fe(" Loading... "))])])])}const D0=Us(I0,[["render",M0]]),vp=Ge({name:"NButton",props:{to:String,icon:String,border:{type:Boolean,default:!0},disabled:Boolean,type:{type:String,default:"button"}},setup(e,{attrs:t,slots:n}){return()=>kn(e.to?bp:"button",{to:e.to,...t,...!e.to&&{type:e.type},...e.disabled?{disabled:!0}:{tabindex:0},class:[e.border?"n-button-base active:n-button-active focus-visible:n-focus-base hover:n-button-hover":"",n.default?"":"n-icon-button","n-button n-transition n-disabled:n-disabled"].join(" ")},{default:()=>[Pe(n,"icon",{},()=>e.icon?[kn(js,{icon:e.icon,class:n.default?"n-button-icon":""})]:[]),Pe(n,"default")]})}});let He=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function F0(e){return oc(e)}function oc(e){return Array.isArray(e)?B0(e):e instanceof RegExp?e:typeof e=="object"?H0(e):e}function B0(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=oc(e[n]);return t}function H0(e){let t={};for(let n in e)t[n]=oc(e[n]);return t}function _p(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function wp(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?wp(e.substring(0,e.length-1)):e.substr(~t+1)}var ua=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,oo=class{static hasCaptures(e){return e===null?!1:(ua.lastIndex=0,ua.test(e))}static replaceCaptures(e,t,n){return e.replace(ua,(r,s,o,i)=>{let a=n[parseInt(s||o,10)];if(a){let l=t.substring(a.start,a.end);for(;l[0]===".";)l=l.substring(1);switch(i){case"downcase":return l.toLowerCase();case"upcase":return l.toUpperCase();default:return l}}else return r})}};function Cp(e,t){return e<t?-1:e>t?1:0}function xp(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let s=0;s<n;s++){let o=Cp(e[s],t[s]);if(o!==0)return o}return 0}return n-r}function Ku(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function Sp(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var kp=class{constructor(e){$(this,"cache",new Map);this.fn=e}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},Yo=class{constructor(e,t,n){$(this,"_cachedMatchRoot",new kp(e=>this._root.match(e)));this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(G0(e),t)}static createFromParsedTheme(e,t){return V0(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const t=e.scopeName,r=this._cachedMatchRoot.get(t).find(s=>j0(e.parent,s.parentScopes));return r?new Ep(r.fontStyle,r.foreground,r.background):null}},fa=class xo{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new xo(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new xo(n,t[r]);return n}push(t){return new xo(this,t)}getSegments(){let t=this;const n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push(r.scopeName),r=r.parent;return r===t?n.reverse():void 0}};function j0(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],s=!1;if(r===">"){if(n===t.length-1)return!1;r=t[++n],s=!0}for(;e&&!U0(e.scopeName,r);){if(s)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function U0(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var Ep=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function G0(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let s=0,o=t.length;s<o;s++){let i=t[s];if(!i.settings)continue;let a;if(typeof i.scope=="string"){let f=i.scope;f=f.replace(/^[,]+/,""),f=f.replace(/[,]+$/,""),a=f.split(",")}else Array.isArray(i.scope)?a=i.scope:a=[""];let l=-1;if(typeof i.settings.fontStyle=="string"){l=0;let f=i.settings.fontStyle.split(" ");for(let d=0,p=f.length;d<p;d++)switch(f[d]){case"italic":l=l|1;break;case"bold":l=l|2;break;case"underline":l=l|4;break;case"strikethrough":l=l|8;break}}let c=null;typeof i.settings.foreground=="string"&&Ku(i.settings.foreground)&&(c=i.settings.foreground);let u=null;typeof i.settings.background=="string"&&Ku(i.settings.background)&&(u=i.settings.background);for(let f=0,d=a.length;f<d;f++){let h=a[f].trim().split(" "),g=h[h.length-1],m=null;h.length>1&&(m=h.slice(0,h.length-1),m.reverse()),n[r++]=new W0(g,m,s,l,c,u)}}return n}var W0=class{constructor(e,t,n,r,s,o){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=s,this.background=o}},Ke=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(Ke||{});function V0(e,t){e.sort((l,c)=>{let u=Cp(l.scope,c.scope);return u!==0||(u=xp(l.parentScopes,c.parentScopes),u!==0)?u:l.index-c.index});let n=0,r="#000000",s="#ffffff";for(;e.length>=1&&e[0].scope==="";){let l=e.shift();l.fontStyle!==-1&&(n=l.fontStyle),l.foreground!==null&&(r=l.foreground),l.background!==null&&(s=l.background)}let o=new z0(t),i=new Ep(n,o.getId(r),o.getId(s)),a=new K0(new sl(0,null,-1,0,0),[]);for(let l=0,c=e.length;l<c;l++){let u=e[l];a.insert(0,u.scope,u.parentScopes,u.fontStyle,o.getId(u.foreground),o.getId(u.background))}return new Yo(o,i,a)}var z0=class{constructor(e){$(this,"_isFrozen");$(this,"_lastColorId");$(this,"_id2color");$(this,"_color2id");if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},q0=Object.freeze([]),sl=class Tp{constructor(t,n,r,s,o){$(this,"scopeDepth");$(this,"parentScopes");$(this,"fontStyle");$(this,"foreground");$(this,"background");this.scopeDepth=t,this.parentScopes=n||q0,this.fontStyle=r,this.foreground=s,this.background=o}clone(){return new Tp(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let r=0,s=t.length;r<s;r++)n[r]=t[r].clone();return n}acceptOverwrite(t,n,r,s){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),s!==0&&(this.background=s)}},K0=class ol{constructor(t,n=[],r={}){$(this,"_rulesWithParentScopes");this._mainRule=t,this._children=r,this._rulesWithParentScopes=n}static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let r=0,s=0;for(;t.parentScopes[r]===">"&&r++,n.parentScopes[s]===">"&&s++,!(r>=t.parentScopes.length||s>=n.parentScopes.length);){const o=n.parentScopes[s].length-t.parentScopes[r].length;if(o!==0)return o;r++,s++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let r=t.indexOf("."),s,o;if(r===-1?(s=t,o=""):(s=t.substring(0,r),o=t.substring(r+1)),this._children.hasOwnProperty(s))return this._children[s].match(o)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(ol._cmpBySpecificity),n}insert(t,n,r,s,o,i){if(n===""){this._doInsertHere(t,r,s,o,i);return}let a=n.indexOf("."),l,c;a===-1?(l=n,c=""):(l=n.substring(0,a),c=n.substring(a+1));let u;this._children.hasOwnProperty(l)?u=this._children[l]:(u=new ol(this._mainRule.clone(),sl.cloneArr(this._rulesWithParentScopes)),this._children[l]=u),u.insert(t+1,c,r,s,o,i)}_doInsertHere(t,n,r,s,o){if(n===null){this._mainRule.acceptOverwrite(t,r,s,o);return}for(let i=0,a=this._rulesWithParentScopes.length;i<a;i++){let l=this._rulesWithParentScopes[i];if(xp(l.parentScopes,n)===0){l.acceptOverwrite(t,r,s,o);return}}r===-1&&(r=this._mainRule.fontStyle),s===0&&(s=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new sl(t,n,r,s,o))}},Dr=class ct{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=ct.getLanguageId(t),r=ct.getTokenType(t),s=ct.getFontStyle(t),o=ct.getForeground(t),i=ct.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:s,foreground:o,background:i})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,n,r,s,o,i,a){let l=ct.getLanguageId(t),c=ct.getTokenType(t),u=ct.containsBalancedBrackets(t)?1:0,f=ct.getFontStyle(t),d=ct.getForeground(t),p=ct.getBackground(t);return n!==0&&(l=n),r!==8&&(c=r),s!==null&&(u=s?1:0),o!==-1&&(f=o),i!==0&&(d=i),a!==0&&(p=a),(l<<0|c<<8|u<<10|f<<11|d<<15|p<<24)>>>0}};function Qo(e,t){const n=[],r=X0(e);let s=r.next();for(;s!==null;){let l=0;if(s.length===2&&s.charAt(1)===":"){switch(s.charAt(0)){case"R":l=1;break;case"L":l=-1;break;default:console.log(`Unknown priority ${s} in scope selector`)}s=r.next()}let c=i();if(n.push({matcher:c,priority:l}),s!==",")break;s=r.next()}return n;function o(){if(s==="-"){s=r.next();const l=o();return c=>!!l&&!l(c)}if(s==="("){s=r.next();const l=a();return s===")"&&(s=r.next()),l}if(Xu(s)){const l=[];do l.push(s),s=r.next();while(Xu(s));return c=>t(l,c)}return null}function i(){const l=[];let c=o();for(;c;)l.push(c),c=o();return u=>l.every(f=>f(u))}function a(){const l=[];let c=i();for(;c&&(l.push(c),s==="|"||s===",");){do s=r.next();while(s==="|"||s===",");c=i()}return u=>l.some(f=>f(u))}}function Xu(e){return!!e&&!!e.match(/[\w\.:]+/)}function X0(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const r=n[0];return n=t.exec(e),r}}}function Ap(e){typeof e.dispose=="function"&&e.dispose()}var Rs=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},J0=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},Y0=class{constructor(){$(this,"_references",[]);$(this,"_seenReferenceKeys",new Set);$(this,"visitedRule",new Set)}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},Q0=class{constructor(e,t){$(this,"seenFullScopeRequests",new Set);$(this,"seenPartialScopeRequests",new Set);$(this,"Q");this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Rs(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new Y0;for(const n of e)Z0(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof Rs){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function Z0(e,t,n,r){const s=n.lookup(e.scopeName);if(!s){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=n.lookup(t);e instanceof Rs?So({baseGrammar:o,selfGrammar:s},r):il(e.ruleName,{baseGrammar:o,selfGrammar:s,repository:s.repository},r);const i=n.injections(e.scopeName);if(i)for(const a of i)r.add(new Rs(a))}function il(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];Zo([r],t,n)}}function So(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Zo(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Zo(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Zo(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const s=r.repository?_p({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&Zo(r.patterns,{...t,repository:s},n);const o=r.include;if(!o)continue;const i=$p(o);switch(i.kind){case 0:So({...t,selfGrammar:t.baseGrammar},n);break;case 1:So(t,n);break;case 2:il(i.ruleName,{...t,repository:s},n);break;case 3:case 4:const a=i.scopeName===t.selfGrammar.scopeName?t.selfGrammar:i.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(a){const l={baseGrammar:t.baseGrammar,selfGrammar:a,repository:s};i.kind===4?il(i.ruleName,l,n):So(l,n)}else i.kind===4?n.add(new J0(i.scopeName,i.ruleName)):n.add(new Rs(i.scopeName));break}}}var e1=class{constructor(){$(this,"kind",0)}},t1=class{constructor(){$(this,"kind",1)}},n1=class{constructor(e){$(this,"kind",2);this.ruleName=e}},r1=class{constructor(e){$(this,"kind",3);this.scopeName=e}},s1=class{constructor(e,t){$(this,"kind",4);this.scopeName=e,this.ruleName=t}};function $p(e){if(e==="$base")return new e1;if(e==="$self")return new t1;const t=e.indexOf("#");if(t===-1)return new r1(e);if(t===0)return new n1(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new s1(n,r)}}var o1=/\\(\d+)/,Ju=/\\(\d+)/g,i1=-1,Rp=-2;var Gs=class{constructor(e,t,n,r){$(this,"$location");$(this,"id");$(this,"_nameIsCapturing");$(this,"_name");$(this,"_contentNameIsCapturing");$(this,"_contentName");this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=oo.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=oo.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${wp(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:oo.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:oo.replaceCaptures(this._contentName,e,t)}},a1=class extends Gs{constructor(t,n,r,s,o){super(t,n,r,s);$(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=o}dispose(){}collectPatterns(t,n){throw new Error("Not supported!")}compile(t,n){throw new Error("Not supported!")}compileAG(t,n,r,s){throw new Error("Not supported!")}},l1=class extends Gs{constructor(t,n,r,s,o){super(t,n,r,null);$(this,"_match");$(this,"captures");$(this,"_cachedCompiledPatterns");this._match=new Ps(s,this.id),this.captures=o,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,n){n.push(this._match)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,s){return this._getCachedCompiledPatterns(t).compileAG(t,r,s)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Ns,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Yu=class extends Gs{constructor(t,n,r,s,o){super(t,n,r,s);$(this,"hasMissingPatterns");$(this,"patterns");$(this,"_cachedCompiledPatterns");this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,n){for(const r of this.patterns)t.getRule(r).collectPatterns(t,n)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,s){return this._getCachedCompiledPatterns(t).compileAG(t,r,s)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Ns,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},al=class extends Gs{constructor(t,n,r,s,o,i,a,l,c,u){super(t,n,r,s);$(this,"_begin");$(this,"beginCaptures");$(this,"_end");$(this,"endHasBackReferences");$(this,"endCaptures");$(this,"applyEndPatternLast");$(this,"hasMissingPatterns");$(this,"patterns");$(this,"_cachedCompiledPatterns");this._begin=new Ps(o,this.id),this.beginCaptures=i,this._end=new Ps(a||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=l,this.applyEndPatternLast=c||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(t,n){return this._end.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t,n).compile(t)}compileAG(t,n,r,s){return this._getCachedCompiledPatterns(t,n).compileAG(t,r,s)}_getCachedCompiledPatterns(t,n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Ns;for(const r of this.patterns)t.getRule(r).collectPatterns(t,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,n):this._cachedCompiledPatterns.setSource(0,n)),this._cachedCompiledPatterns}},ei=class extends Gs{constructor(t,n,r,s,o,i,a,l,c){super(t,n,r,s);$(this,"_begin");$(this,"beginCaptures");$(this,"whileCaptures");$(this,"_while");$(this,"whileHasBackReferences");$(this,"hasMissingPatterns");$(this,"patterns");$(this,"_cachedCompiledPatterns");$(this,"_cachedCompiledWhilePatterns");this._begin=new Ps(o,this.id),this.beginCaptures=i,this.whileCaptures=l,this._while=new Ps(a,Rp),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(t,n){return this._while.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,s){return this._getCachedCompiledPatterns(t).compileAG(t,r,s)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Ns;for(const n of this.patterns)t.getRule(n).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,n){return this._getCachedCompiledWhilePatterns(t,n).compile(t)}compileWhileAG(t,n,r,s){return this._getCachedCompiledWhilePatterns(t,n).compileAG(t,r,s)}_getCachedCompiledWhilePatterns(t,n){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Ns,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,n||""),this._cachedCompiledWhilePatterns}},Pp=class Ve{static createCaptureRule(t,n,r,s,o){return t.registerRule(i=>new a1(n,i,r,s,o))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(s=>{if(t.id=s,t.match)return new l1(t.$vscodeTextmateLocation,t.id,t.name,t.match,Ve._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=_p({},r,t.repository));let o=t.patterns;return typeof o>"u"&&t.include&&(o=[{include:t.include}]),new Yu(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,Ve._compilePatterns(o,n,r))}return t.while?new ei(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Ve._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,Ve._compileCaptures(t.whileCaptures||t.captures,n,r),Ve._compilePatterns(t.patterns,n,r)):new al(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Ve._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,Ve._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,Ve._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let s=[];if(t){let o=0;for(const i in t){if(i==="$vscodeTextmateLocation")continue;const a=parseInt(i,10);a>o&&(o=a)}for(let i=0;i<=o;i++)s[i]=null;for(const i in t){if(i==="$vscodeTextmateLocation")continue;const a=parseInt(i,10);let l=0;t[i].patterns&&(l=Ve.getCompiledRuleId(t[i],n,r)),s[a]=Ve.createCaptureRule(n,t[i].$vscodeTextmateLocation,t[i].name,t[i].contentName,l)}}return s}static _compilePatterns(t,n,r){let s=[];if(t)for(let o=0,i=t.length;o<i;o++){const a=t[o];let l=-1;if(a.include){const c=$p(a.include);switch(c.kind){case 0:case 1:l=Ve.getCompiledRuleId(r[a.include],n,r);break;case 2:let u=r[c.ruleName];u&&(l=Ve.getCompiledRuleId(u,n,r));break;case 3:case 4:const f=c.scopeName,d=c.kind===4?c.ruleName:null,p=n.getExternalGrammar(f,r);if(p)if(d){let h=p.repository[d];h&&(l=Ve.getCompiledRuleId(h,n,p.repository))}else l=Ve.getCompiledRuleId(p.repository.$self,n,p.repository);break}}else l=Ve.getCompiledRuleId(a,n,r);if(l!==-1){const c=n.getRule(l);let u=!1;if((c instanceof Yu||c instanceof al||c instanceof ei)&&c.hasMissingPatterns&&c.patterns.length===0&&(u=!0),u)continue;s.push(l)}}return{patterns:s,hasMissingPatterns:(t?t.length:0)!==s.length}}},Ps=class Np{constructor(t,n){$(this,"source");$(this,"ruleId");$(this,"hasAnchor");$(this,"hasBackReferences");$(this,"_anchorCache");if(t&&typeof t=="string"){const r=t.length;let s=0,o=[],i=!1;for(let a=0;a<r;a++)if(t.charAt(a)==="\\"&&a+1<r){const c=t.charAt(a+1);c==="z"?(o.push(t.substring(s,a)),o.push("$(?!\\n)(?<!\\n)"),s=a+2):(c==="A"||c==="G")&&(i=!0),a++}this.hasAnchor=i,s===0?this.source=t:(o.push(t.substring(s,r)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=o1.test(this.source):this.hasBackReferences=!1}clone(){return new Np(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=n.map(s=>t.substring(s.start,s.end));return Ju.lastIndex=0,this.source.replace(Ju,(s,o)=>Sp(r[parseInt(o,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],n=[],r=[],s=[],o,i,a,l;for(o=0,i=this.source.length;o<i;o++)a=this.source.charAt(o),t[o]=a,n[o]=a,r[o]=a,s[o]=a,a==="\\"&&o+1<i&&(l=this.source.charAt(o+1),l==="A"?(t[o+1]="",n[o+1]="",r[o+1]="A",s[o+1]="A"):l==="G"?(t[o+1]="",n[o+1]="G",r[o+1]="",s[o+1]="G"):(t[o+1]=l,n[o+1]=l,r[o+1]=l,s[o+1]=l),o++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:s.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Ns=class{constructor(){$(this,"_items");$(this,"_hasAnchors");$(this,"_cached");$(this,"_anchorCache");this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(n=>n.source);this._cached=new Qu(e,t,this._items.map(n=>n.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let r=this._items.map(s=>s.resolveAnchors(t,n));return new Qu(e,r,this._items.map(s=>s.ruleId))}},Qu=class{constructor(e,t,n){$(this,"scanner");this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
|
|
20
|
+
`)}findNextMatchSync(e,t,n){const r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},da=class{constructor(e,t){this.languageId=e,this.tokenType=t}},qt,c1=(qt=class{constructor(t,n){$(this,"_defaultAttributes");$(this,"_embeddedLanguagesMatcher");$(this,"_getBasicScopeAttributes",new kp(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new da(n,r)}));this._defaultAttributes=new da(t,8),this._embeddedLanguagesMatcher=new u1(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?qt._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(qt.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}},$(qt,"_NULL_SCOPE_METADATA",new da(0,0)),$(qt,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),qt),u1=class{constructor(e){$(this,"values");$(this,"scopesRegExp");if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([n,r])=>Sp(n));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}},Zu=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function Ip(e,t,n,r,s,o,i,a){const l=t.content.length;let c=!1,u=-1;if(i){const p=f1(e,t,n,r,s,o);s=p.stack,r=p.linePos,n=p.isFirstLine,u=p.anchorPosition}const f=Date.now();for(;!c;){if(a!==0&&Date.now()-f>a)return new Zu(s,!0);d()}return new Zu(s,!1);function d(){const p=d1(e,t,n,r,s,u);if(!p){o.produce(s,l),c=!0;return}const h=p.captureIndices,g=p.matchedRuleId,m=h&&h.length>0?h[0].end>r:!1;if(g===i1){const b=s.getRule(e);o.produce(s,h[0].start),s=s.withContentNameScopesList(s.nameScopesList),es(e,t,n,s,o,b.endCaptures,h),o.produce(s,h[0].end);const v=s;if(s=s.parent,u=v.getAnchorPos(),!m&&v.getEnterPos()===r){s=v,o.produce(s,l),c=!0;return}}else{const b=e.getRule(g);o.produce(s,h[0].start);const v=s,y=b.getName(t.content,h),_=s.contentNameScopesList.pushAttributed(y,e);if(s=s.push(g,r,u,h[0].end===l,null,_,_),b instanceof al){const C=b;es(e,t,n,s,o,C.beginCaptures,h),o.produce(s,h[0].end),u=h[0].end;const A=C.getContentName(t.content,h),N=_.pushAttributed(A,e);if(s=s.withContentNameScopesList(N),C.endHasBackReferences&&(s=s.withEndRule(C.getEndWithResolvedBackReferences(t.content,h))),!m&&v.hasSameRuleAs(s)){s=s.pop(),o.produce(s,l),c=!0;return}}else if(b instanceof ei){const C=b;es(e,t,n,s,o,C.beginCaptures,h),o.produce(s,h[0].end),u=h[0].end;const A=C.getContentName(t.content,h),N=_.pushAttributed(A,e);if(s=s.withContentNameScopesList(N),C.whileHasBackReferences&&(s=s.withEndRule(C.getWhileWithResolvedBackReferences(t.content,h))),!m&&v.hasSameRuleAs(s)){s=s.pop(),o.produce(s,l),c=!0;return}}else if(es(e,t,n,s,o,b.captures,h),o.produce(s,h[0].end),s=s.pop(),!m){s=s.safePop(),o.produce(s,l),c=!0;return}}h[0].end>r&&(r=h[0].end,n=!1)}}function f1(e,t,n,r,s,o){let i=s.beginRuleCapturedEOL?0:-1;const a=[];for(let l=s;l;l=l.pop()){const c=l.getRule(e);c instanceof ei&&a.push({rule:c,stack:l})}for(let l=a.pop();l;l=a.pop()){const{ruleScanner:c,findOptions:u}=g1(l.rule,e,l.stack.endRule,n,r===i),f=c.findNextMatchSync(t,r,u);if(f){if(f.ruleId!==Rp){s=l.stack.pop();break}f.captureIndices&&f.captureIndices.length&&(o.produce(l.stack,f.captureIndices[0].start),es(e,t,n,l.stack,o,l.rule.whileCaptures,f.captureIndices),o.produce(l.stack,f.captureIndices[0].end),i=f.captureIndices[0].end,f.captureIndices[0].end>r&&(r=f.captureIndices[0].end,n=!1))}else{s=l.stack.pop();break}}return{stack:s,linePos:r,anchorPosition:i,isFirstLine:n}}function d1(e,t,n,r,s,o){const i=h1(e,t,n,r,s,o),a=e.getInjections();if(a.length===0)return i;const l=p1(a,e,t,n,r,s,o);if(!l)return i;if(!i)return l;const c=i.captureIndices[0].start,u=l.captureIndices[0].start;return u<c||l.priorityMatch&&u===c?l:i}function h1(e,t,n,r,s,o){const i=s.getRule(e),{ruleScanner:a,findOptions:l}=Lp(i,e,s.endRule,n,r===o),c=a.findNextMatchSync(t,r,l);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}function p1(e,t,n,r,s,o,i){let a=Number.MAX_VALUE,l=null,c,u=0;const f=o.contentNameScopesList.getScopeNames();for(let d=0,p=e.length;d<p;d++){const h=e[d];if(!h.matcher(f))continue;const g=t.getRule(h.ruleId),{ruleScanner:m,findOptions:b}=Lp(g,t,null,r,s===i),v=m.findNextMatchSync(n,s,b);if(!v)continue;const y=v.captureIndices[0].start;if(!(y>=a)&&(a=y,l=v.captureIndices,c=v.ruleId,u=h.priority,a===s))break}return l?{priorityMatch:u===-1,captureIndices:l,matchedRuleId:c}:null}function Lp(e,t,n,r,s){return{ruleScanner:e.compileAG(t,n,r,s),findOptions:0}}function g1(e,t,n,r,s){return{ruleScanner:e.compileWhileAG(t,n,r,s),findOptions:0}}function es(e,t,n,r,s,o,i){if(o.length===0)return;const a=t.content,l=Math.min(o.length,i.length),c=[],u=i[0].end;for(let f=0;f<l;f++){const d=o[f];if(d===null)continue;const p=i[f];if(p.length===0)continue;if(p.start>u)break;for(;c.length>0&&c[c.length-1].endPos<=p.start;)s.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?s.produceFromScopes(c[c.length-1].scopes,p.start):s.produce(r,p.start),d.retokenizeCapturedWithRuleId){const g=d.getName(a,i),m=r.contentNameScopesList.pushAttributed(g,e),b=d.getContentName(a,i),v=m.pushAttributed(b,e),y=r.push(d.retokenizeCapturedWithRuleId,p.start,-1,!1,null,m,v),_=e.createOnigString(a.substring(0,p.end));Ip(e,_,n&&p.start===0,p.start,y,s,!1,0),Ap(_);continue}const h=d.getName(a,i);if(h!==null){const m=(c.length>0?c[c.length-1].scopes:r.contentNameScopesList).pushAttributed(h,e);c.push(new m1(m,p.end))}}for(;c.length>0;)s.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var m1=class{constructor(e,t){$(this,"scopes");$(this,"endPos");this.scopes=e,this.endPos=t}};function y1(e,t,n,r,s,o,i,a){return new v1(e,t,n,r,s,o,i,a)}function ef(e,t,n,r,s){const o=Qo(t,ti),i=Pp.getCompiledRuleId(n,r,s.repository);for(const a of o)e.push({debugSelector:t,matcher:a.matcher,ruleId:i,grammar:s,priority:a.priority})}function ti(e,t){if(t.length<e.length)return!1;let n=0;return e.every(r=>{for(let s=n;s<t.length;s++)if(b1(t[s],r))return n=s+1,!0;return!1})}function b1(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]==="."}var v1=class{constructor(e,t,n,r,s,o,i,a){$(this,"_rootId");$(this,"_lastRuleId");$(this,"_ruleId2desc");$(this,"_includedGrammars");$(this,"_grammarRepository");$(this,"_grammar");$(this,"_injections");$(this,"_basicScopeAttributesProvider");$(this,"_tokenTypeMatchers");if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=a,this._basicScopeAttributesProvider=new c1(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=tf(t,null),this._injections=null,this._tokenTypeMatchers=[],s)for(const l of Object.keys(s)){const c=Qo(l,ti);for(const u of c)this._tokenTypeMatchers.push({matcher:u.matcher,type:s[l]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e={lookup:s=>s===this._rootScopeName?this._grammar:this.getExternalGrammar(s),injections:s=>this._grammarRepository.injections(s)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){const s=r.injections;if(s)for(let i in s)ef(t,i,s[i],this,r);const o=this._grammarRepository.injections(n);o&&o.forEach(i=>{const a=this.getExternalGrammar(i);if(a){const l=a.injectionSelector;l&&ef(t,l,a,this,a)}})}return t.sort((s,o)=>s.priority-o.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=tf(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){const r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){this._rootId===-1&&(this._rootId=Pp.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let s;if(!t||t===ll.NULL){s=!0;const c=this._basicScopeAttributesProvider.getDefaultAttributes(),u=this.themeProvider.getDefaults(),f=Dr.set(0,c.languageId,c.tokenType,null,u.fontStyle,u.foregroundId,u.backgroundId),d=this.getRule(this._rootId).getName(null,null);let p;d?p=hs.createRootAndLookUpScopeName(d,f,this):p=hs.createRoot("unknown",f),t=new ll(null,this._rootId,-1,-1,!1,null,p,p)}else s=!1,t.reset();e=e+`
|
|
21
|
+
`;const o=this.createOnigString(e),i=o.content.length,a=new w1(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=Ip(this,o,s,0,t,a,!0,r);return Ap(o),{lineLength:i,lineTokens:a,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function tf(e,t){return e=F0(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var hs=class $t{constructor(t,n,r){this.parent=t,this.scopePath=n,this.tokenAttributes=r}static fromExtension(t,n){let r=t,s=(t==null?void 0:t.scopePath)??null;for(const o of n)s=fa.push(s,o.scopeNames),r=new $t(r,s,o.encodedTokenAttributes);return r}static createRoot(t,n){return new $t(null,new fa(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const s=r.getMetadataForScope(t),o=new fa(null,t),i=r.themeProvider.themeMatch(o),a=$t.mergeAttributes(n,s,i);return new $t(null,o,a)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return $t.equals(this,t)}static equals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.scopeName!==n.scopeName||t.tokenAttributes!==n.tokenAttributes)return!1;t=t.parent,n=n.parent}while(!0)}static mergeAttributes(t,n,r){let s=-1,o=0,i=0;return r!==null&&(s=r.fontStyle,o=r.foregroundId,i=r.backgroundId),Dr.set(t,n.languageId,n.tokenType,null,s,o,i)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return $t._pushAttributed(this,t,n);const r=t.split(/ /g);let s=this;for(const o of r)s=$t._pushAttributed(s,o,n);return s}static _pushAttributed(t,n,r){const s=r.getMetadataForScope(n),o=t.scopePath.push(n),i=r.themeProvider.themeMatch(o),a=$t.mergeAttributes(t.tokenAttributes,s,i);return new $t(t,o,a)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){var s;const n=[];let r=this;for(;r&&r!==t;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(((s=r.parent)==null?void 0:s.scopePath)??null)}),r=r.parent;return r===t?n.reverse():void 0}},ft,ll=(ft=class{constructor(t,n,r,s,o,i,a,l){$(this,"_stackElementBrand");$(this,"_enterPos");$(this,"_anchorPos");$(this,"depth");this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=o,this.endRule=i,this.nameScopesList=a,this.contentNameScopesList=l,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=s}equals(t){return t===null?!1:ft._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?hs.equals(t.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.depth!==n.depth||t.ruleId!==n.ruleId||t.endRule!==n.endRule)return!1;t=t.parent,n=n.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){ft._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,s,o,i,a){return new ft(this,t,n,r,s,o,i,a)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,n){var r,s;return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${(r=this.nameScopesList)==null?void 0:r.toString()}, ${(s=this.contentNameScopesList)==null?void 0:s.toString()})`,n}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new ft(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let n=this;for(;n&&n._enterPos===t._enterPos;){if(n.ruleId===t.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){var t,n,r;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((n=this.nameScopesList)==null?void 0:n.getExtensionIfDefined(((t=this.parent)==null?void 0:t.nameScopesList)??null))??[],contentNameScopesList:((r=this.contentNameScopesList)==null?void 0:r.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(t,n){const r=hs.fromExtension((t==null?void 0:t.nameScopesList)??null,n.nameScopesList);return new ft(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,hs.fromExtension(r,n.contentNameScopesList))}},$(ft,"NULL",new ft(null,0,0,0,!1,null,null,null)),ft),_1=class{constructor(e,t){$(this,"balancedBracketScopes");$(this,"unbalancedBracketScopes");$(this,"allowAny",!1);this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):Qo(n,ti).map(r=>r.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>Qo(n,ti).map(r=>r.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},w1=class{constructor(e,t,n,r){$(this,"_emitBinaryTokens");$(this,"_lineText");$(this,"_tokens");$(this,"_binaryTokens");$(this,"_lastTokenEndIndex");$(this,"_tokenTypeOverrides");this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){var r;if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let s=(e==null?void 0:e.tokenAttributes)??0,o=!1;if((r=this.balancedBracketSelectors)!=null&&r.matchesAlways&&(o=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const i=(e==null?void 0:e.getScopeNames())??[];for(const a of this._tokenTypeOverrides)a.matcher(i)&&(s=Dr.set(s,0,a.type,null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(i))}if(o&&(s=Dr.set(s,0,8,o,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===s){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(s),this._lastTokenEndIndex=t;return}const n=(e==null?void 0:e.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let r=0,s=this._binaryTokens.length;r<s;r++)n[r]=this._binaryTokens[r];return n}},C1=class{constructor(e,t){$(this,"_grammars",new Map);$(this,"_rawGrammars",new Map);$(this,"_injectionGrammars",new Map);$(this,"_theme");this._onigLib=t,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,s){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,y1(e,o,t,n,r,s,this,this._onigLib))}return this._grammars.get(e)}},x1=class{constructor(t){$(this,"_options");$(this,"_syncRegistry");$(this,"_ensureGrammarCache");this._options=t,this._syncRegistry=new C1(Yo.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(Yo.createFromRawTheme(t,n))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,n,r){return this.loadGrammarWithConfiguration(t,n,{embeddedLanguages:r})}loadGrammarWithConfiguration(t,n,r){return this._loadGrammar(t,n,r.embeddedLanguages,r.tokenTypes,new _1(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,s,o){const i=new Q0(this._syncRegistry,t);for(;i.Q.length>0;)i.Q.map(a=>this._loadSingleGrammar(a.scopeName)),i.processQueue();return this._grammarForScopeName(t,n,r,s,o)}_loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0))}_doLoadSingleGrammar(t){const n=this._options.loadGrammar(t);if(n){const r=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(n,r)}}addGrammar(t,n=[],r=0,s=null){return this._syncRegistry.addGrammar(t,n),this._grammarForScopeName(t.scopeName,r,s)}_grammarForScopeName(t,n=0,r=null,s=null,o=null){return this._syncRegistry.grammarForScopeName(t,n,r,s,o)}},cl=ll.NULL;const S1=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class Ws{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Ws.prototype.normal={};Ws.prototype.property={};Ws.prototype.space=void 0;function Op(e,t){const n={},r={};for(const s of e)Object.assign(n,s.property),Object.assign(r,s.normal);return new Ws(n,r,t)}function ul(e){return e.toLowerCase()}class et{constructor(t,n){this.attribute=n,this.property=t}}et.prototype.attribute="";et.prototype.booleanish=!1;et.prototype.boolean=!1;et.prototype.commaOrSpaceSeparated=!1;et.prototype.commaSeparated=!1;et.prototype.defined=!1;et.prototype.mustUseProperty=!1;et.prototype.number=!1;et.prototype.overloadedBoolean=!1;et.prototype.property="";et.prototype.spaceSeparated=!1;et.prototype.space=void 0;let k1=0;const ie=ar(),Re=ar(),fl=ar(),U=ar(),Ce=ar(),Ar=ar(),st=ar();function ar(){return 2**++k1}const dl=Object.freeze(Object.defineProperty({__proto__:null,boolean:ie,booleanish:Re,commaOrSpaceSeparated:st,commaSeparated:Ar,number:U,overloadedBoolean:fl,spaceSeparated:Ce},Symbol.toStringTag,{value:"Module"})),ha=Object.keys(dl);class ic extends et{constructor(t,n,r,s){let o=-1;if(super(t,n),nf(this,"space",s),typeof r=="number")for(;++o<ha.length;){const i=ha[o];nf(this,ha[o],(r&dl[i])===dl[i])}}}ic.prototype.defined=!0;function nf(e,t,n){n&&(e[t]=n)}function jr(e){const t={},n={};for(const[r,s]of Object.entries(e.properties)){const o=new ic(r,e.transform(e.attributes||{},r),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[ul(r)]=r,n[ul(o.attribute)]=r}return new Ws(t,n,e.space)}const Mp=jr({properties:{ariaActiveDescendant:null,ariaAtomic:Re,ariaAutoComplete:null,ariaBusy:Re,ariaChecked:Re,ariaColCount:U,ariaColIndex:U,ariaColSpan:U,ariaControls:Ce,ariaCurrent:null,ariaDescribedBy:Ce,ariaDetails:null,ariaDisabled:Re,ariaDropEffect:Ce,ariaErrorMessage:null,ariaExpanded:Re,ariaFlowTo:Ce,ariaGrabbed:Re,ariaHasPopup:null,ariaHidden:Re,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ce,ariaLevel:U,ariaLive:null,ariaModal:Re,ariaMultiLine:Re,ariaMultiSelectable:Re,ariaOrientation:null,ariaOwns:Ce,ariaPlaceholder:null,ariaPosInSet:U,ariaPressed:Re,ariaReadOnly:Re,ariaRelevant:null,ariaRequired:Re,ariaRoleDescription:Ce,ariaRowCount:U,ariaRowIndex:U,ariaRowSpan:U,ariaSelected:Re,ariaSetSize:U,ariaSort:null,ariaValueMax:U,ariaValueMin:U,ariaValueNow:U,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Dp(e,t){return t in e?e[t]:t}function Fp(e,t){return Dp(e,t.toLowerCase())}const E1=jr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ar,acceptCharset:Ce,accessKey:Ce,action:null,allow:null,allowFullScreen:ie,allowPaymentRequest:ie,allowUserMedia:ie,alt:null,as:null,async:ie,autoCapitalize:null,autoComplete:Ce,autoFocus:ie,autoPlay:ie,blocking:Ce,capture:null,charSet:null,checked:ie,cite:null,className:Ce,cols:U,colSpan:null,content:null,contentEditable:Re,controls:ie,controlsList:Ce,coords:U|Ar,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ie,defer:ie,dir:null,dirName:null,disabled:ie,download:fl,draggable:Re,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ie,formTarget:null,headers:Ce,height:U,hidden:fl,high:U,href:null,hrefLang:null,htmlFor:Ce,httpEquiv:Ce,id:null,imageSizes:null,imageSrcSet:null,inert:ie,inputMode:null,integrity:null,is:null,isMap:ie,itemId:null,itemProp:Ce,itemRef:Ce,itemScope:ie,itemType:Ce,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ie,low:U,manifest:null,max:null,maxLength:U,media:null,method:null,min:null,minLength:U,multiple:ie,muted:ie,name:null,nonce:null,noModule:ie,noValidate:ie,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ie,optimum:U,pattern:null,ping:Ce,placeholder:null,playsInline:ie,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ie,referrerPolicy:null,rel:Ce,required:ie,reversed:ie,rows:U,rowSpan:U,sandbox:Ce,scope:null,scoped:ie,seamless:ie,selected:ie,shadowRootClonable:ie,shadowRootDelegatesFocus:ie,shadowRootMode:null,shape:null,size:U,sizes:null,slot:null,span:U,spellCheck:Re,src:null,srcDoc:null,srcLang:null,srcSet:null,start:U,step:null,style:null,tabIndex:U,target:null,title:null,translate:null,type:null,typeMustMatch:ie,useMap:null,value:Re,width:U,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ce,axis:null,background:null,bgColor:null,border:U,borderColor:null,bottomMargin:U,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ie,declare:ie,event:null,face:null,frame:null,frameBorder:null,hSpace:U,leftMargin:U,link:null,longDesc:null,lowSrc:null,marginHeight:U,marginWidth:U,noResize:ie,noHref:ie,noShade:ie,noWrap:ie,object:null,profile:null,prompt:null,rev:null,rightMargin:U,rules:null,scheme:null,scrolling:Re,standby:null,summary:null,text:null,topMargin:U,valueType:null,version:null,vAlign:null,vLink:null,vSpace:U,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ie,disableRemotePlayback:ie,prefix:null,property:null,results:U,security:null,unselectable:null},space:"html",transform:Fp}),T1=jr({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:st,accentHeight:U,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:U,amplitude:U,arabicForm:null,ascent:U,attributeName:null,attributeType:null,azimuth:U,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:U,by:null,calcMode:null,capHeight:U,className:Ce,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:U,diffuseConstant:U,direction:null,display:null,dur:null,divisor:U,dominantBaseline:null,download:ie,dx:null,dy:null,edgeMode:null,editable:null,elevation:U,enableBackground:null,end:null,event:null,exponent:U,externalResourcesRequired:null,fill:null,fillOpacity:U,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ar,g2:Ar,glyphName:Ar,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:U,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:U,horizOriginX:U,horizOriginY:U,id:null,ideographic:U,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:U,k:U,k1:U,k2:U,k3:U,k4:U,kernelMatrix:st,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:U,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:U,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:U,overlineThickness:U,paintOrder:null,panose1:null,path:null,pathLength:U,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ce,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:U,pointsAtY:U,pointsAtZ:U,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:st,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:st,rev:st,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:st,requiredFeatures:st,requiredFonts:st,requiredFormats:st,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:U,specularExponent:U,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:U,strikethroughThickness:U,string:null,stroke:null,strokeDashArray:st,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:U,strokeOpacity:U,strokeWidth:null,style:null,surfaceScale:U,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:st,tabIndex:U,tableValues:null,target:null,targetX:U,targetY:U,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:st,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:U,underlineThickness:U,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:U,values:null,vAlphabetic:U,vMathematical:U,vectorEffect:null,vHanging:U,vIdeographic:U,version:null,vertAdvY:U,vertOriginX:U,vertOriginY:U,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:U,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Dp}),Bp=jr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Hp=jr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Fp}),jp=jr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),A1=/[A-Z]/g,rf=/-[a-z]/g,$1=/^data[-\w.:]+$/i;function R1(e,t){const n=ul(t);let r=t,s=et;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&$1.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(rf,N1);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!rf.test(o)){let i=o.replace(A1,P1);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}s=ic}return new s(r,t)}function P1(e){return"-"+e.toLowerCase()}function N1(e){return e.charAt(1).toUpperCase()}const I1=Op([Mp,E1,Bp,Hp,jp],"html"),Up=Op([Mp,T1,Bp,Hp,jp],"svg"),sf={}.hasOwnProperty;function L1(e,t){const n=t||{};function r(s,...o){let i=r.invalid;const a=r.handlers;if(s&&sf.call(s,e)){const l=String(s[e]);i=sf.call(a,l)?a[l]:r.unknown}if(i)return i.call(this,s,...o)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const O1=/["&'<>`]/g,M1=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,D1=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,F1=/[|\\{}()[\]^$+*?.]/g,of=new WeakMap;function B1(e,t){if(e=e.replace(t.subset?H1(t.subset):O1,r),t.subset||t.escapeOnly)return e;return e.replace(M1,n).replace(D1,r);function n(s,o,i){return t.format((s.charCodeAt(0)-55296)*1024+s.charCodeAt(1)-56320+65536,i.charCodeAt(o+2),t)}function r(s,o,i){return t.format(s.charCodeAt(0),i.charCodeAt(o+1),t)}}function H1(e){let t=of.get(e);return t||(t=j1(e),of.set(e,t)),t}function j1(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(F1,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const U1=/[\dA-Fa-f]/;function G1(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!U1.test(String.fromCharCode(t))?r:r+";"}const W1=/\d/;function V1(e,t,n){const r="&#"+String(e);return n&&t&&!W1.test(String.fromCharCode(t))?r:r+";"}const z1=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],pa={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},q1=["cent","copy","divide","gt","lt","not","para","times"],Gp={}.hasOwnProperty,hl={};let io;for(io in pa)Gp.call(pa,io)&&(hl[pa[io]]=io);const K1=/[^\dA-Za-z]/;function X1(e,t,n,r){const s=String.fromCharCode(e);if(Gp.call(hl,s)){const o=hl[s],i="&"+o;return n&&z1.includes(o)&&!q1.includes(o)&&(!r||t&&t!==61&&K1.test(String.fromCharCode(t)))?i:i+";"}return""}function J1(e,t,n){let r=G1(e,t,n.omitOptionalSemicolons),s;if((n.useNamedReferences||n.useShortestReferences)&&(s=X1(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!s)&&n.useShortestReferences){const o=V1(e,t,n.omitOptionalSemicolons);o.length<r.length&&(r=o)}return s&&(!n.useShortestReferences||s.length<r.length)?s:r}function $r(e,t){return B1(e,Object.assign({format:J1},t))}const Y1=/^>|^->|<!--|-->|--!>|<!-$/g,Q1=[">"],Z1=["<",">"];function eC(e,t,n,r){return r.settings.bogusComments?"<?"+$r(e.value,Object.assign({},r.settings.characterReferences,{subset:Q1}))+">":"<!--"+e.value.replace(Y1,s)+"-->";function s(o){return $r(o,Object.assign({},r.settings.characterReferences,{subset:Z1}))}}function tC(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function af(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,s=n.indexOf(t);for(;s!==-1;)r++,s=n.indexOf(t,s+t.length);return r}function nC(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function rC(e){return e.join(" ").trim()}const sC=/[ \t\n\f\r]/g;function ac(e){return typeof e=="object"?e.type==="text"?lf(e.value):!1:lf(e)}function lf(e){return e.replace(sC,"")===""}const Fe=Vp(1),Wp=Vp(-1),oC=[];function Vp(e){return t;function t(n,r,s){const o=n?n.children:oC;let i=(r||0)+e,a=o[i];if(!s)for(;a&&ac(a);)i+=e,a=o[i];return a}}const iC={}.hasOwnProperty;function zp(e){return t;function t(n,r,s){return iC.call(e,n.tagName)&&e[n.tagName](n,r,s)}}const lc=zp({body:lC,caption:ga,colgroup:ga,dd:dC,dt:fC,head:ga,html:aC,li:uC,optgroup:hC,option:pC,p:cC,rp:cf,rt:cf,tbody:mC,td:uf,tfoot:yC,th:uf,thead:gC,tr:bC});function ga(e,t,n){const r=Fe(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&ac(r.value.charAt(0)))}function aC(e,t,n){const r=Fe(n,t);return!r||r.type!=="comment"}function lC(e,t,n){const r=Fe(n,t);return!r||r.type!=="comment"}function cC(e,t,n){const r=Fe(n,t);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function uC(e,t,n){const r=Fe(n,t);return!r||r.type==="element"&&r.tagName==="li"}function fC(e,t,n){const r=Fe(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function dC(e,t,n){const r=Fe(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function cf(e,t,n){const r=Fe(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function hC(e,t,n){const r=Fe(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function pC(e,t,n){const r=Fe(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function gC(e,t,n){const r=Fe(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function mC(e,t,n){const r=Fe(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function yC(e,t,n){return!Fe(n,t)}function bC(e,t,n){const r=Fe(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function uf(e,t,n){const r=Fe(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const vC=zp({body:CC,colgroup:xC,head:wC,html:_C,tbody:SC});function _C(e){const t=Fe(e,-1);return!t||t.type!=="comment"}function wC(e){const t=new Set;for(const r of e.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(t.has(r.tagName))return!1;t.add(r.tagName)}const n=e.children[0];return!n||n.type==="element"}function CC(e){const t=Fe(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&ac(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function xC(e,t,n){const r=Wp(n,t),s=Fe(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&lc(r,n.children.indexOf(r),n)?!1:!!(s&&s.type==="element"&&s.tagName==="col")}function SC(e,t,n){const r=Wp(n,t),s=Fe(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&lc(r,n.children.indexOf(r),n)?!1:!!(s&&s.type==="element"&&s.tagName==="tr")}const ao={name:[[`
|
|
22
|
+
\f\r &/=>`.split(""),`
|
|
23
|
+
\f\r "&'/=>\``.split("")],[`\0
|
|
24
|
+
\f\r "&'/<=>`.split(""),`\0
|
|
25
|
+
\f\r "&'/<=>\``.split("")]],unquoted:[[`
|
|
26
|
+
\f\r &>`.split(""),`\0
|
|
27
|
+
\f\r "&'<=>\``.split("")],[`\0
|
|
28
|
+
\f\r "&'<=>\``.split(""),`\0
|
|
29
|
+
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function kC(e,t,n,r){const s=r.schema,o=s.space==="svg"?!1:r.settings.omitOptionalTags;let i=s.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const a=[];let l;s.space==="html"&&e.tagName==="svg"&&(r.schema=Up);const c=EC(r,e.properties),u=r.all(s.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=s,u&&(i=!1),(c||!o||!vC(e,t,n))&&(a.push("<",e.tagName,c?" "+c:""),i&&(s.space==="svg"||r.settings.closeSelfClosing)&&(l=c.charAt(c.length-1),(!r.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&a.push(" "),a.push("/")),a.push(">")),a.push(u),!i&&(!o||!lc(e,t,n))&&a.push("</"+e.tagName+">"),a.join("")}function EC(e,t){const n=[];let r=-1,s;if(t){for(s in t)if(t[s]!==null&&t[s]!==void 0){const o=TC(e,s,t[s]);o&&n.push(o)}}for(;++r<n.length;){const o=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&o!=='"'&&o!=="'"&&(n[r]+=" ")}return n.join("")}function TC(e,t,n){const r=R1(e.schema,t),s=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,o=e.settings.allowDangerousCharacters?0:1;let i=e.quote,a;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!="string"||n===r.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const l=$r(r.attribute,Object.assign({},e.settings.characterReferences,{subset:ao.name[s][o]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?nC:rC)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?l:(e.settings.preferUnquoted&&(a=$r(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:ao.unquoted[s][o]}))),a!==n&&(e.settings.quoteSmart&&af(n,i)>af(n,e.alternative)&&(i=e.alternative),a=i+$r(n,Object.assign({},e.settings.characterReferences,{subset:(i==="'"?ao.single:ao.double)[s][o],attribute:!0}))+i),l+(a&&"="+a))}const AC=["<","&"];function qp(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:$r(e.value,Object.assign({},r.settings.characterReferences,{subset:AC}))}function $C(e,t,n,r){return r.settings.allowDangerousHtml?e.value:qp(e,t,n,r)}function RC(e,t,n,r){return r.all(e)}const PC=L1("type",{invalid:NC,unknown:IC,handlers:{comment:eC,doctype:tC,element:kC,raw:$C,root:RC,text:qp}});function NC(e){throw new Error("Expected node, not `"+e+"`")}function IC(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const LC={},OC={},MC=[];function DC(e,t){const n=t||LC,r=n.quote||'"',s=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:FC,all:BC,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||S1,characterReferences:n.characterReferences||OC,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?Up:I1,quote:r,alternative:s}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function FC(e,t,n){return PC(e,t,n,this)}function BC(e){const t=[],n=e&&e.children||MC;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function ni(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},r=typeof e=="string"?e:e.name;for(const[s,o]of Object.entries((t==null?void 0:t.colorReplacements)||{}))typeof o=="string"?n[s]=o:s===r&&Object.assign(n,o);return n}function Cn(e,t){return e&&((t==null?void 0:t[e==null?void 0:e.toLowerCase()])||e)}function HC(e){return Array.isArray(e)?e:[e]}async function Kp(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function cc(e){return!e||["plaintext","txt","text","plain"].includes(e)}function jC(e){return e==="ansi"||cc(e)}function uc(e){return e==="none"}function UC(e){return uc(e)}function Xp(e,t){var r;if(!t)return e;e.properties||(e.properties={}),(r=e.properties).class||(r.class=[]),typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const n=Array.isArray(t)?t:t.split(/\s+/g);for(const s of n)s&&!e.properties.class.includes(s)&&e.properties.class.push(s);return e}function Oi(e,t=!1){var o;const n=e.split(/(\r?\n)/g);let r=0;const s=[];for(let i=0;i<n.length;i+=2){const a=t?n[i]+(n[i+1]||""):n[i];s.push([a,r]),r+=n[i].length,r+=((o=n[i+1])==null?void 0:o.length)||0}return s}function GC(e){const t=Oi(e,!0).map(([s])=>s);function n(s){if(s===e.length)return{line:t.length-1,character:t[t.length-1].length};let o=s,i=0;for(const a of t){if(o<a.length)break;o-=a.length,i++}return{line:i,character:o}}function r(s,o){let i=0;for(let a=0;a<s;a++)i+=t[a].length;return i+=o,i}return{lines:t,indexToPos:n,posToIndex:r}}const fc="light-dark()";function WC(e,t){let n=0;const r=[];for(const s of t)s>n&&r.push({...e,content:e.content.slice(n,s),offset:e.offset+n}),n=s;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function VC(e,t){const n=Array.from(t instanceof Set?t:new Set(t)).sort((r,s)=>r-s);return n.length?e.map(r=>r.flatMap(s=>{const o=n.filter(i=>s.offset<i&&i<s.offset+s.content.length).map(i=>i-s.offset).sort((i,a)=>i-a);return o.length?WC(s,o):s})):e}function zC(e,t,n,r,s="css-vars"){const o={content:e.content,explanation:e.explanation,offset:e.offset},i=t.map(u=>ri(e.variants[u])),a=new Set(i.flatMap(u=>Object.keys(u))),l={},c=(u,f)=>{const d=f==="color"?"":f==="background-color"?"-bg":`-${f}`;return n+t[u]+(f==="color"?"":d)};return i.forEach((u,f)=>{for(const d of a){const p=u[d]||"inherit";if(f===0&&r)if(r===fc&&i.length>1){const h=t.findIndex(v=>v==="light"),g=t.findIndex(v=>v==="dark");if(h===-1||g===-1)throw new He('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const m=i[h][d]||"inherit",b=i[g][d]||"inherit";l[d]=`light-dark(${m}, ${b})`,s==="css-vars"&&(l[c(f,d)]=p)}else l[d]=p;else s==="css-vars"&&(l[c(f,d)]=p)}}),o.htmlStyle=l,o}function ri(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&Ke.Italic&&(t["font-style"]="italic"),e.fontStyle&Ke.Bold&&(t["font-weight"]="bold");const n=[];e.fontStyle&Ke.Underline&&n.push("underline"),e.fontStyle&Ke.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function pl(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}const Jp=new WeakMap;function Mi(e,t){Jp.set(e,t)}function Is(e){return Jp.get(e)}class Ur{constructor(...t){$(this,"_stacks",{});$(this,"lang");if(t.length===2){const[n,r]=t;this.lang=r,this._stacks=n}else{const[n,r,s]=t;this.lang=r,this._stacks={[s]:n}}}get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new Ur(Object.fromEntries(HC(n).map(r=>[r,cl])),t)}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return qC(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function qC(e){const t=[],n=new Set;function r(s){var i;if(n.has(s))return;n.add(s);const o=(i=s==null?void 0:s.nameScopesList)==null?void 0:i.scopeName;o&&t.push(o),s.parent&&r(s.parent)}return r(e),t}function KC(e,t){if(!(e instanceof Ur))throw new He("Invalid grammar state");return e.getInternalStack(t)}function XC(){const e=new WeakMap;function t(n){if(!e.has(n.meta)){let r=function(i){if(typeof i=="number"){if(i<0||i>n.source.length)throw new He(`Invalid decoration offset: ${i}. Code length: ${n.source.length}`);return{...s.indexToPos(i),offset:i}}else{const a=s.lines[i.line];if(a===void 0)throw new He(`Invalid decoration position ${JSON.stringify(i)}. Lines length: ${s.lines.length}`);if(i.character<0||i.character>a.length)throw new He(`Invalid decoration position ${JSON.stringify(i)}. Line ${i.line} length: ${a.length}`);return{...i,offset:s.posToIndex(i.line,i.character)}}};const s=GC(n.source),o=(n.options.decorations||[]).map(i=>({...i,start:r(i.start),end:r(i.end)}));JC(o),e.set(n.meta,{decorations:o,converter:s,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){var i;if(!((i=this.options.decorations)!=null&&i.length))return;const s=t(this).decorations.flatMap(a=>[a.start.offset,a.end.offset]);return VC(n,s)},code(n){var u;if(!((u=this.options.decorations)!=null&&u.length))return;const r=t(this),s=Array.from(n.children).filter(f=>f.type==="element"&&f.tagName==="span");if(s.length!==r.converter.lines.length)throw new He(`Number of lines in code element (${s.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function o(f,d,p,h){const g=s[f];let m="",b=-1,v=-1;if(d===0&&(b=0),p===0&&(v=0),p===Number.POSITIVE_INFINITY&&(v=g.children.length),b===-1||v===-1)for(let _=0;_<g.children.length;_++)m+=Yp(g.children[_]),b===-1&&m.length===d&&(b=_+1),v===-1&&m.length===p&&(v=_+1);if(b===-1)throw new He(`Failed to find start index for decoration ${JSON.stringify(h.start)}`);if(v===-1)throw new He(`Failed to find end index for decoration ${JSON.stringify(h.end)}`);const y=g.children.slice(b,v);if(!h.alwaysWrap&&y.length===g.children.length)a(g,h,"line");else if(!h.alwaysWrap&&y.length===1&&y[0].type==="element")a(y[0],h,"token");else{const _={type:"element",tagName:"span",properties:{},children:y};a(_,h,"wrapper"),g.children.splice(b,y.length,_)}}function i(f,d){s[f]=a(s[f],d,"line")}function a(f,d,p){var m;const h=d.properties||{},g=d.transform||(b=>b);return f.tagName=d.tagName||"span",f.properties={...f.properties,...h,class:f.properties.class},(m=d.properties)!=null&&m.class&&Xp(f,d.properties.class),f=g(f,p)||f,f}const l=[],c=r.decorations.sort((f,d)=>d.start.offset-f.start.offset||f.end.offset-d.end.offset);for(const f of c){const{start:d,end:p}=f;if(d.line===p.line)o(d.line,d.character,p.character,f);else if(d.line<p.line){o(d.line,d.character,Number.POSITIVE_INFINITY,f);for(let h=d.line+1;h<p.line;h++)l.unshift(()=>i(h,f));o(p.line,0,p.character,f)}}l.forEach(f=>f())}}}function JC(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new He(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){const s=e[r],o=n.start.offset<=s.start.offset&&s.start.offset<n.end.offset,i=n.start.offset<s.end.offset&&s.end.offset<=n.end.offset,a=s.start.offset<=n.start.offset&&n.start.offset<s.end.offset,l=s.start.offset<n.end.offset&&n.end.offset<=s.end.offset;if(o||i||a||l){if(o&&i||a&&l)continue;throw new He(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(s.start)} intersect.`)}}}}function Yp(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(Yp).join(""):""}const YC=[XC()];function si(e){return[...e.transformers||[],...YC]}var Vn=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],ma={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function QC(e,t){const n=e.indexOf("\x1B",t);if(n!==-1&&e[n+1]==="["){const r=e.indexOf("m",n);if(r!==-1)return{sequence:e.substring(n+2,r).split(";"),startPosition:n,position:r+1}}return{position:e.length}}function ff(e){const t=e.shift();if(t==="2"){const n=e.splice(0,3).map(r=>Number.parseInt(r));return n.length!==3||n.some(r=>Number.isNaN(r))?void 0:{type:"rgb",rgb:n}}else if(t==="5"){const n=e.shift();if(n)return{type:"table",index:Number(n)}}}function ZC(e){const t=[];for(;e.length>0;){const n=e.shift();if(!n)continue;const r=Number.parseInt(n);if(!Number.isNaN(r))if(r===0)t.push({type:"resetAll"});else if(r<=9)ma[r]&&t.push({type:"setDecoration",value:ma[r]});else if(r<=29){const s=ma[r-20];s&&(t.push({type:"resetDecoration",value:s}),s==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:Vn[r-30]}});else if(r===38){const s=ff(e);s&&t.push({type:"setForegroundColor",value:s})}else if(r===39)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:Vn[r-40]}});else if(r===48){const s=ff(e);s&&t.push({type:"setBackgroundColor",value:s})}else r===49?t.push({type:"resetBackgroundColor"}):r===53?t.push({type:"setDecoration",value:"overline"}):r===55?t.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:Vn[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:Vn[r-100+8]}})}return t}function ex(){let e=null,t=null,n=new Set;return{parse(r){const s=[];let o=0;do{const i=QC(r,o),a=i.sequence?r.substring(o,i.startPosition):r.substring(o);if(a.length>0&&s.push({value:a,foreground:e,background:t,decorations:new Set(n)}),i.sequence){const l=ZC(i.sequence);for(const c of l)c.type==="resetAll"?(e=null,t=null,n.clear()):c.type==="resetForegroundColor"?e=null:c.type==="resetBackgroundColor"?t=null:c.type==="resetDecoration"&&n.delete(c.value);for(const c of l)c.type==="setForegroundColor"?e=c.value:c.type==="setBackgroundColor"?t=c.value:c.type==="setDecoration"&&n.add(c.value)}o=i.position}while(o<r.length);return s}}}var tx={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function nx(e=tx){function t(a){return e[a]}function n(a){return`#${a.map(l=>Math.max(0,Math.min(l,255)).toString(16).padStart(2,"0")).join("")}`}let r;function s(){if(r)return r;r=[];for(let c=0;c<Vn.length;c++)r.push(t(Vn[c]));let a=[0,95,135,175,215,255];for(let c=0;c<6;c++)for(let u=0;u<6;u++)for(let f=0;f<6;f++)r.push(n([a[c],a[u],a[f]]));let l=8;for(let c=0;c<24;c++,l+=10)r.push(n([l,l,l]));return r}function o(a){return s()[a]}function i(a){switch(a.type){case"named":return t(a.name);case"rgb":return n(a.rgb);case"table":return o(a.index)}}return{value:i}}function rx(e,t,n){const r=ni(e,n),s=Oi(t),o=nx(Object.fromEntries(Vn.map(a=>{var l;return[a,(l=e.colors)==null?void 0:l[`terminal.ansi${a[0].toUpperCase()}${a.substring(1)}`]]}))),i=ex();return s.map(a=>i.parse(a[0]).map(l=>{let c,u;l.decorations.has("reverse")?(c=l.background?o.value(l.background):e.bg,u=l.foreground?o.value(l.foreground):e.fg):(c=l.foreground?o.value(l.foreground):e.fg,u=l.background?o.value(l.background):void 0),c=Cn(c,r),u=Cn(u,r),l.decorations.has("dim")&&(c=sx(c));let f=Ke.None;return l.decorations.has("bold")&&(f|=Ke.Bold),l.decorations.has("italic")&&(f|=Ke.Italic),l.decorations.has("underline")&&(f|=Ke.Underline),l.decorations.has("strikethrough")&&(f|=Ke.Strikethrough),{content:l.value,offset:a[1],color:c,bgColor:u,fontStyle:f}}))}function sx(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t)if(t[3]){const r=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${r}`}else return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map(r=>`${r}${r}`).join("")}80`;const n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}function dc(e,t,n={}){const{lang:r="text",theme:s=e.getLoadedThemes()[0]}=n;if(cc(r)||uc(s))return Oi(t).map(l=>[{content:l[0],offset:l[1]}]);const{theme:o,colorMap:i}=e.setTheme(s);if(r==="ansi")return rx(o,t,n);const a=e.getLanguage(r);if(n.grammarState){if(n.grammarState.lang!==a.name)throw new He(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${a.name}"`);if(!n.grammarState.themes.includes(o.name))throw new He(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return ix(t,a,o,i,n)}function ox(...e){if(e.length===2)return Is(e[1]);const[t,n,r={}]=e,{lang:s="text",theme:o=t.getLoadedThemes()[0]}=r;if(cc(s)||uc(o))throw new He("Plain language does not have grammar state");if(s==="ansi")throw new He("ANSI language does not have grammar state");const{theme:i,colorMap:a}=t.setTheme(o),l=t.getLanguage(s);return new Ur(oi(n,l,i,a,r).stateStack,l.name,i.name)}function ix(e,t,n,r,s){const o=oi(e,t,n,r,s),i=new Ur(oi(e,t,n,r,s).stateStack,t.name,n.name);return Mi(o.tokens,i),o.tokens}function oi(e,t,n,r,s){const o=ni(n,s),{tokenizeMaxLineLength:i=0,tokenizeTimeLimit:a=500}=s,l=Oi(e);let c=s.grammarState?KC(s.grammarState,n.name)??cl:s.grammarContextCode!=null?oi(s.grammarContextCode,t,n,r,{...s,grammarState:void 0,grammarContextCode:void 0}).stateStack:cl,u=[];const f=[];for(let d=0,p=l.length;d<p;d++){const[h,g]=l[d];if(h===""){u=[],f.push([]);continue}if(i>0&&h.length>=i){u=[],f.push([{content:h,offset:g,color:"",fontStyle:0}]);continue}let m,b,v;s.includeExplanation&&(m=t.tokenizeLine(h,c,a),b=m.tokens,v=0);const y=t.tokenizeLine2(h,c,a),_=y.tokens.length/2;for(let C=0;C<_;C++){const A=y.tokens[2*C],N=C+1<_?y.tokens[2*C+2]:h.length;if(A===N)continue;const G=y.tokens[2*C+1],P=Cn(r[Dr.getForeground(G)],o),E=Dr.getFontStyle(G),M={content:h.substring(A,N),offset:g+A,color:P,fontStyle:E};if(s.includeExplanation){const T=[];if(s.includeExplanation!=="scopeName")for(const S of n.settings){let L;switch(typeof S.scope){case"string":L=S.scope.split(/,/).map(I=>I.trim());break;case"object":L=S.scope;break;default:continue}T.push({settings:S,selectors:L.map(I=>I.split(/ /))})}M.explanation=[];let k=0;for(;A+k<N;){const S=b[v],L=h.substring(S.startIndex,S.endIndex);k+=L.length,M.explanation.push({content:L,scopes:s.includeExplanation==="scopeName"?ax(S.scopes):lx(T,S.scopes)}),v+=1}}u.push(M)}f.push(u),u=[],c=y.ruleStack}return{tokens:f,stateStack:c}}function ax(e){return e.map(t=>({scopeName:t}))}function lx(e,t){const n=[];for(let r=0,s=t.length;r<s;r++){const o=t[r];n[r]={scopeName:o,themeMatches:ux(e,o,t.slice(0,r))}}return n}function df(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function cx(e,t,n){if(!df(e[e.length-1],t))return!1;let r=e.length-2,s=n.length-1;for(;r>=0&&s>=0;)df(e[r],n[s])&&(r-=1),s-=1;return r===-1}function ux(e,t,n){const r=[];for(const{selectors:s,settings:o}of e)for(const i of s)if(cx(i,t,n)){r.push(o);break}return r}function Qp(e,t,n){const r=Object.entries(n.themes).filter(l=>l[1]).map(l=>({color:l[0],theme:l[1]})),s=r.map(l=>{const c=dc(e,t,{...n,theme:l.theme}),u=Is(c),f=typeof l.theme=="string"?l.theme:l.theme.name;return{tokens:c,state:u,theme:f}}),o=fx(...s.map(l=>l.tokens)),i=o[0].map((l,c)=>l.map((u,f)=>{const d={content:u.content,variants:{},offset:u.offset};return"includeExplanation"in n&&n.includeExplanation&&(d.explanation=u.explanation),o.forEach((p,h)=>{const{content:g,explanation:m,offset:b,...v}=p[c][f];d.variants[r[h].color]=v}),d})),a=s[0].state?new Ur(Object.fromEntries(s.map(l=>{var c;return[l.theme,(c=l.state)==null?void 0:c.getInternalStack(l.theme)]})),s[0].state.lang):void 0;return a&&Mi(i,a),i}function fx(...e){const t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){const s=e.map(l=>l[r]),o=t.map(()=>[]);t.forEach((l,c)=>l.push(o[c]));const i=s.map(()=>0),a=s.map(l=>l[0]);for(;a.every(l=>l);){const l=Math.min(...a.map(c=>c.content.length));for(let c=0;c<n;c++){const u=a[c];u.content.length===l?(o[c].push(u),i[c]+=1,a[c]=s[c][i[c]]):(o[c].push({...u,content:u.content.slice(0,l)}),a[c]={...u,content:u.content.slice(l),offset:u.offset+l})}}}return t}function ii(e,t,n){let r,s,o,i,a,l;if("themes"in n){const{defaultColor:c="light",cssVariablePrefix:u="--shiki-",colorsRendering:f="css-vars"}=n,d=Object.entries(n.themes).filter(b=>b[1]).map(b=>({color:b[0],theme:b[1]})).sort((b,v)=>b.color===c?-1:v.color===c?1:0);if(d.length===0)throw new He("`themes` option must not be empty");const p=Qp(e,t,n);if(l=Is(p),c&&fc!==c&&!d.find(b=>b.color===c))throw new He(`\`themes\` option must contain the defaultColor key \`${c}\``);const h=d.map(b=>e.getTheme(b.theme)),g=d.map(b=>b.color);o=p.map(b=>b.map(v=>zC(v,g,u,c,f))),l&&Mi(o,l);const m=d.map(b=>ni(b.theme,n));s=hf(d,h,m,u,c,"fg",f),r=hf(d,h,m,u,c,"bg",f),i=`shiki-themes ${h.map(b=>b.name).join(" ")}`,a=c?void 0:[s,r].join(";")}else if("theme"in n){const c=ni(n.theme,n);o=dc(e,t,n);const u=e.getTheme(n.theme);r=Cn(u.bg,c),s=Cn(u.fg,c),i=u.name,l=Is(o)}else throw new He("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:s,bg:r,themeName:i,rootStyle:a,grammarState:l}}function hf(e,t,n,r,s,o,i){return e.map((a,l)=>{const c=Cn(t[l][o],n[l])||"inherit",u=`${r+a.color}${o==="bg"?"-bg":""}:${c}`;if(l===0&&s){if(s===fc&&e.length>1){const f=e.findIndex(g=>g.color==="light"),d=e.findIndex(g=>g.color==="dark");if(f===-1||d===-1)throw new He('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const p=Cn(t[f][o],n[f])||"inherit",h=Cn(t[d][o],n[d])||"inherit";return`light-dark(${p}, ${h});${u}`}return c}return i==="css-vars"?u:null}).filter(a=>!!a).join(";")}function ai(e,t,n,r={meta:{},options:n,codeToHast:(s,o)=>ai(e,s,o),codeToTokens:(s,o)=>ii(e,s,o)}){var h,g;let s=t;for(const m of si(n))s=((h=m.preprocess)==null?void 0:h.call(r,s,n))||s;let{tokens:o,fg:i,bg:a,themeName:l,rootStyle:c,grammarState:u}=ii(e,s,n);const{mergeWhitespaces:f=!0,mergeSameStyleTokens:d=!1}=n;f===!0?o=hx(o):f==="never"&&(o=px(o)),d&&(o=gx(o));const p={...r,get source(){return s}};for(const m of si(n))o=((g=m.tokens)==null?void 0:g.call(p,o))||o;return dx(o,{...n,fg:i,bg:a,themeName:l,rootStyle:c},p,u)}function dx(e,t,n,r=Is(e)){var h,g,m;const s=si(t),o=[],i={type:"root",children:[]},{structure:a="classic",tabindex:l="0"}=t;let c={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,...l!==!1&&l!=null?{tabindex:l.toString()}:{},...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([b])=>!b.startsWith("_")))},children:[]},u={type:"element",tagName:"code",properties:{},children:o};const f=[],d={...n,structure:a,addClassToHast:Xp,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return i},get pre(){return c},get code(){return u},get lines(){return f}};if(e.forEach((b,v)=>{var C,A;v&&(a==="inline"?i.children.push({type:"element",tagName:"br",properties:{},children:[]}):a==="classic"&&o.push({type:"text",value:`
|
|
30
|
+
`}));let y={type:"element",tagName:"span",properties:{class:"line"},children:[]},_=0;for(const N of b){let G={type:"element",tagName:"span",properties:{...N.htmlAttrs},children:[{type:"text",value:N.content}]};const P=pl(N.htmlStyle||ri(N));P&&(G.properties.style=P);for(const E of s)G=((C=E==null?void 0:E.span)==null?void 0:C.call(d,G,v+1,_,y,N))||G;a==="inline"?i.children.push(G):a==="classic"&&y.children.push(G),_+=N.content.length}if(a==="classic"){for(const N of s)y=((A=N==null?void 0:N.line)==null?void 0:A.call(d,y,v+1))||y;f.push(y),o.push(y)}}),a==="classic"){for(const b of s)u=((h=b==null?void 0:b.code)==null?void 0:h.call(d,u))||u;c.children.push(u);for(const b of s)c=((g=b==null?void 0:b.pre)==null?void 0:g.call(d,c))||c;i.children.push(c)}let p=i;for(const b of s)p=((m=b==null?void 0:b.root)==null?void 0:m.call(d,p))||p;return r&&Mi(p,r),p}function hx(e){return e.map(t=>{const n=[];let r="",s=0;return t.forEach((o,i)=>{const l=!(o.fontStyle&&(o.fontStyle&Ke.Underline||o.fontStyle&Ke.Strikethrough));l&&o.content.match(/^\s+$/)&&t[i+1]?(s||(s=o.offset),r+=o.content):r?(l?n.push({...o,offset:s,content:r+o.content}):n.push({content:r,offset:s},o),s=0,r=""):n.push(o)}),n})}function px(e){return e.map(t=>t.flatMap(n=>{if(n.content.match(/^\s+$/))return n;const r=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return n;const[,s,o,i]=r;if(!s&&!i)return n;const a=[{...n,offset:n.offset+s.length,content:o}];return s&&a.unshift({content:s,offset:n.offset}),i&&a.push({content:i,offset:n.offset+s.length+o.length}),a}))}function gx(e){return e.map(t=>{const n=[];for(const r of t){if(n.length===0){n.push({...r});continue}const s=n[n.length-1],o=pl(s.htmlStyle||ri(s)),i=pl(r.htmlStyle||ri(r)),a=s.fontStyle&&(s.fontStyle&Ke.Underline||s.fontStyle&Ke.Strikethrough),l=r.fontStyle&&(r.fontStyle&Ke.Underline||r.fontStyle&Ke.Strikethrough);!a&&!l&&o===i?s.content+=r.content:n.push({...r})}return n})}const mx=DC;function yx(e,t,n){var o;const r={meta:{},options:n,codeToHast:(i,a)=>ai(e,i,a),codeToTokens:(i,a)=>ii(e,i,a)};let s=mx(ai(e,t,n,r));for(const i of si(n))s=((o=i.postprocess)==null?void 0:o.call(r,s,n))||s;return s}const pf={light:"#333333",dark:"#bbbbbb"},gf={light:"#fffffe",dark:"#1e1e1e"},mf="__shiki_resolved";function hc(e){var a,l,c,u,f;if(e!=null&&e[mf])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||(t.type="dark"),t.colorReplacements={...t.colorReplacements},t.settings||(t.settings=[]);let{bg:n,fg:r}=t;if(!n||!r){const d=t.settings?t.settings.find(p=>!p.name&&!p.scope):void 0;(a=d==null?void 0:d.settings)!=null&&a.foreground&&(r=d.settings.foreground),(l=d==null?void 0:d.settings)!=null&&l.background&&(n=d.settings.background),!r&&((c=t==null?void 0:t.colors)!=null&&c["editor.foreground"])&&(r=t.colors["editor.foreground"]),!n&&((u=t==null?void 0:t.colors)!=null&&u["editor.background"])&&(n=t.colors["editor.background"]),r||(r=t.type==="light"?pf.light:pf.dark),n||(n=t.type==="light"?gf.light:gf.dark),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let s=0;const o=new Map;function i(d){var h;if(o.has(d))return o.get(d);s+=1;const p=`#${s.toString(16).padStart(8,"0").toLowerCase()}`;return(h=t.colorReplacements)!=null&&h[`#${p}`]?i(d):(o.set(d,p),p)}t.settings=t.settings.map(d=>{var m,b;const p=((m=d.settings)==null?void 0:m.foreground)&&!d.settings.foreground.startsWith("#"),h=((b=d.settings)==null?void 0:b.background)&&!d.settings.background.startsWith("#");if(!p&&!h)return d;const g={...d,settings:{...d.settings}};if(p){const v=i(d.settings.foreground);t.colorReplacements[v]=d.settings.foreground,g.settings.foreground=v}if(h){const v=i(d.settings.background);t.colorReplacements[v]=d.settings.background,g.settings.background=v}return g});for(const d of Object.keys(t.colors||{}))if((d==="editor.foreground"||d==="editor.background"||d.startsWith("terminal.ansi"))&&!((f=t.colors[d])!=null&&f.startsWith("#"))){const p=i(t.colors[d]);t.colorReplacements[p]=t.colors[d],t.colors[d]=p}return Object.defineProperty(t,mf,{enumerable:!1,writable:!1,value:!0}),t}async function Zp(e){return Array.from(new Set((await Promise.all(e.filter(t=>!jC(t)).map(async t=>await Kp(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function eg(e){return(await Promise.all(e.map(async n=>UC(n)?null:hc(await Kp(n))))).filter(n=>!!n)}let bx=3;function vx(e,t=3){t>bx||console.trace(`[SHIKI DEPRECATE]: ${e}`)}class vr extends Error{constructor(t){super(t),this.name="ShikiError"}}class _x extends x1{constructor(n,r,s,o={}){super(n);$(this,"_resolvedThemes",new Map);$(this,"_resolvedGrammars",new Map);$(this,"_langMap",new Map);$(this,"_langGraph",new Map);$(this,"_textmateThemeCache",new WeakMap);$(this,"_loadedThemesCache",null);$(this,"_loadedLanguagesCache",null);this._resolver=n,this._themes=r,this._langs=s,this._alias=o,this._themes.map(i=>this.loadTheme(i)),this.loadLanguages(this._langs)}getTheme(n){return typeof n=="string"?this._resolvedThemes.get(n):this.loadTheme(n)}loadTheme(n){const r=hc(n);return r.name&&(this._resolvedThemes.set(r.name,r),this._loadedThemesCache=null),r}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(n){let r=this._textmateThemeCache.get(n);r||(r=Yo.createFromRawTheme(n),this._textmateThemeCache.set(n,r)),this._syncRegistry.setTheme(r)}getGrammar(n){if(this._alias[n]){const r=new Set([n]);for(;this._alias[n];){if(n=this._alias[n],r.has(n))throw new vr(`Circular alias \`${Array.from(r).join(" -> ")} -> ${n}\``);r.add(n)}}return this._resolvedGrammars.get(n)}loadLanguage(n){var i,a,l,c;if(this.getGrammar(n.name))return;const r=new Set([...this._langMap.values()].filter(u=>{var f;return(f=u.embeddedLangsLazy)==null?void 0:f.includes(n.name)}));this._resolver.addLanguage(n);const s={balancedBracketSelectors:n.balancedBracketSelectors||["*"],unbalancedBracketSelectors:n.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(n.scopeName,n);const o=this.loadGrammarWithConfiguration(n.scopeName,1,s);if(o.name=n.name,this._resolvedGrammars.set(n.name,o),n.aliases&&n.aliases.forEach(u=>{this._alias[u]=n.name}),this._loadedLanguagesCache=null,r.size)for(const u of r)this._resolvedGrammars.delete(u.name),this._loadedLanguagesCache=null,(a=(i=this._syncRegistry)==null?void 0:i._injectionGrammars)==null||a.delete(u.scopeName),(c=(l=this._syncRegistry)==null?void 0:l._grammars)==null||c.delete(u.scopeName),this.loadLanguage(this._langMap.get(u.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(n){for(const o of n)this.resolveEmbeddedLanguages(o);const r=Array.from(this._langGraph.entries()),s=r.filter(([o,i])=>!i);if(s.length){const o=r.filter(([i,a])=>{var l;return a&&((l=a.embeddedLangs)==null?void 0:l.some(c=>s.map(([u])=>u).includes(c)))}).filter(i=>!s.includes(i));throw new vr(`Missing languages ${s.map(([i])=>`\`${i}\``).join(", ")}, required by ${o.map(([i])=>`\`${i}\``).join(", ")}`)}for(const[o,i]of r)this._resolver.addLanguage(i);for(const[o,i]of r)this.loadLanguage(i)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(n){if(this._langMap.set(n.name,n),this._langGraph.set(n.name,n),n.embeddedLangs)for(const r of n.embeddedLangs)this._langGraph.set(r,this._langMap.get(r))}}class wx{constructor(t,n){$(this,"_langs",new Map);$(this,"_scopeToLang",new Map);$(this,"_injections",new Map);$(this,"_onigLib");this._onigLib={createOnigScanner:r=>t.createScanner(r),createOnigString:r=>t.createString(r)},n.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(t){return this._langs.get(t)}loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(n=>{this._langs.set(n,t)}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(t.scopeName)})}getInjections(t){const n=t.split(".");let r=[];for(let s=1;s<=n.length;s++){const o=n.slice(0,s).join(".");r=[...r,...this._injections.get(o)||[]]}return r}}let Jr=0;function Cx(e){Jr+=1,e.warnings!==!1&&Jr>=10&&Jr%10===0&&console.warn(`[Shiki] ${Jr} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new vr("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(hc),s=new wx(e.engine,n),o=new _x(s,r,n,e.langAlias);let i;function a(v){m();const y=o.getGrammar(typeof v=="string"?v:v.name);if(!y)throw new vr(`Language \`${v}\` not found, you may need to load it first`);return y}function l(v){if(v==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};m();const y=o.getTheme(v);if(!y)throw new vr(`Theme \`${v}\` not found, you may need to load it first`);return y}function c(v){m();const y=l(v);i!==v&&(o.setTheme(y),i=v);const _=o.getColorMap();return{theme:y,colorMap:_}}function u(){return m(),o.getLoadedThemes()}function f(){return m(),o.getLoadedLanguages()}function d(...v){m(),o.loadLanguages(v.flat(1))}async function p(...v){return d(await Zp(v))}function h(...v){m();for(const y of v.flat(1))o.loadTheme(y)}async function g(...v){return m(),h(await eg(v))}function m(){if(t)throw new vr("Shiki instance has been disposed")}function b(){t||(t=!0,o.dispose(),Jr-=1)}return{setTheme:c,getTheme:l,getLanguage:a,getLoadedThemes:u,getLoadedLanguages:f,loadLanguage:p,loadLanguageSync:d,loadTheme:g,loadThemeSync:h,dispose:b,[Symbol.dispose]:b}}async function xx(e){e.engine||vx("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,r]=await Promise.all([eg(e.themes||[]),Zp(e.langs||[]),e.engine]);return Cx({...e,themes:t,langs:n,engine:r})}async function Sx(e){const t=await xx(e);return{getLastGrammarState:(...n)=>ox(t,...n),codeToTokensBase:(n,r)=>dc(t,n,r),codeToTokensWithThemes:(n,r)=>Qp(t,n,r),codeToTokens:(n,r)=>ii(t,n,r),codeToHast:(n,r)=>ai(t,n,r),codeToHtml:(n,r)=>yx(t,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function Gr(e){if([...e].length!==1)throw new Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function kx(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}const pc=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),je=String.raw;function Wr(e,t){if(e==null)throw new Error(t??"Value expected");return e}const tg=je`\[\^?`,ng=`c.? | C(?:-.?)?|${je`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${je`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${je`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${je`o\{[^\}]*\}?`}|${je`\d{1,3}`}`,gc=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,lo=new RegExp(je`
|
|
31
|
+
\\ (?:
|
|
32
|
+
${ng}
|
|
33
|
+
| [gk]<[^>]*>?
|
|
34
|
+
| [gk]'[^']*'?
|
|
35
|
+
| .
|
|
36
|
+
)
|
|
37
|
+
| \( (?:
|
|
38
|
+
\? (?:
|
|
39
|
+
[:=!>({]
|
|
40
|
+
| <[=!]
|
|
41
|
+
| <[^>]*>
|
|
42
|
+
| '[^']*'
|
|
43
|
+
| ~\|?
|
|
44
|
+
| #(?:[^)\\]|\\.?)*
|
|
45
|
+
| [^:)]*[:)]
|
|
46
|
+
)?
|
|
47
|
+
| \*[^\)]*\)?
|
|
48
|
+
)?
|
|
49
|
+
| (?:${gc.source})+
|
|
50
|
+
| ${tg}
|
|
51
|
+
| .
|
|
52
|
+
`.replace(/\s+/g,""),"gsu"),ya=new RegExp(je`
|
|
53
|
+
\\ (?:
|
|
54
|
+
${ng}
|
|
55
|
+
| .
|
|
56
|
+
)
|
|
57
|
+
| \[:(?:\^?\p{Alpha}+|\^):\]
|
|
58
|
+
| ${tg}
|
|
59
|
+
| &&
|
|
60
|
+
| .
|
|
61
|
+
`.replace(/\s+/g,""),"gsu");function Ex(e,t={}){const n={flags:"",...t,rules:{captureGroup:!1,singleline:!1,...t.rules}};if(typeof e!="string")throw new Error("String expected as pattern");const r=Vx(n.flags),s=[r.extended],o={captureGroup:n.rules.captureGroup,getCurrentModX(){return s.at(-1)},numOpenGroups:0,popModX(){s.pop()},pushModX(f){s.push(f)},replaceCurrentModX(f){s[s.length-1]=f},singleline:n.rules.singleline};let i=[],a;for(lo.lastIndex=0;a=lo.exec(e);){const f=Tx(o,e,a[0],lo.lastIndex);f.tokens?i.push(...f.tokens):f.token&&i.push(f.token),f.lastIndex!==void 0&&(lo.lastIndex=f.lastIndex)}const l=[];let c=0;i.filter(f=>f.type==="GroupOpen").forEach(f=>{f.kind==="capturing"?f.number=++c:f.raw==="("&&l.push(f)}),c||l.forEach((f,d)=>{f.kind="capturing",f.number=d+1});const u=c||l.length;return{tokens:i.map(f=>f.type==="EscapedNumber"?qx(f,u):f).flat(),flags:r}}function Tx(e,t,n,r){const[s,o]=n;if(n==="["||n==="[^"){const i=Ax(t,n,r);return{tokens:i.tokens,lastIndex:i.lastIndex}}if(s==="\\"){if("AbBGyYzZ".includes(o))return{token:yf(n,n)};if(/^\\g[<']/.test(n)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:Fx(n)}}if(/^\\k[<']/.test(n)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:sg(n)}}if(o==="K")return{token:og("keep",n)};if(o==="N"||o==="R")return{token:zn("newline",n,{negate:o==="N"})};if(o==="O")return{token:zn("any",n)};if(o==="X")return{token:zn("text_segment",n)};const i=rg(n,{inCharClass:!1});return Array.isArray(i)?{tokens:i}:{token:i}}if(s==="("){if(o==="*")return{token:Ux(n)};if(n==="(?{")throw new Error(`Unsupported callout "${n}"`);if(n.startsWith("(?#")){if(t[r]!==")")throw new Error('Unclosed comment group "(?#"');return{lastIndex:r+1}}if(/^\(\?[-imx]+[:)]$/.test(n))return{token:jx(n,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,n==="("&&!e.captureGroup||n==="(?:")return{token:mr("group",n)};if(n==="(?>")return{token:mr("atomic",n)};if(n==="(?="||n==="(?!"||n==="(?<="||n==="(?<!")return{token:mr(n[2]==="<"?"lookbehind":"lookahead",n,{negate:n.endsWith("!")})};if(n==="("&&e.captureGroup||n.startsWith("(?<")&&n.endsWith(">")||n.startsWith("(?'")&&n.endsWith("'"))return{token:mr("capturing",n,{...n!=="("&&{name:n.slice(3,-1)}})};if(n.startsWith("(?~")){if(n==="(?~|")throw new Error(`Unsupported absence function kind "${n}"`);return{token:mr("absence_repeater",n)}}throw n==="(?("?new Error(`Unsupported conditional "${n}"`):new Error(`Invalid or unsupported group option "${n}"`)}if(n===")"){if(e.popModX(),e.numOpenGroups--,e.numOpenGroups<0)throw new Error('Unmatched ")"');return{token:Ox(n)}}if(e.getCurrentModX()){if(n==="#"){const i=t.indexOf(`
|
|
62
|
+
`,r);return{lastIndex:i===-1?t.length:i}}if(/^\s$/.test(n)){const i=/\s+/y;return i.lastIndex=r,{lastIndex:i.exec(t)?i.lastIndex:r}}}if(n===".")return{token:zn("dot",n)};if(n==="^"||n==="$"){const i=e.singleline?{"^":je`\A`,$:je`\Z`}[n]:n;return{token:yf(i,n)}}return n==="|"?{token:Rx(n)}:gc.test(n)?{tokens:Kx(n)}:{token:Xt(Gr(n),n)}}function Ax(e,t,n){const r=[bf(t[1]==="^",t)];let s=1,o;for(ya.lastIndex=n;o=ya.exec(e);){const i=o[0];if(i[0]==="["&&i[1]!==":")s++,r.push(bf(i[1]==="^",i));else if(i==="]"){if(r.at(-1).type==="CharacterClassOpen")r.push(Xt(93,i));else if(s--,r.push(Px(i)),!s)break}else{const a=$x(i);Array.isArray(a)?r.push(...a):r.push(a)}}return{tokens:r,lastIndex:ya.lastIndex||e.length}}function $x(e){if(e[0]==="\\")return rg(e,{inCharClass:!0});if(e[0]==="["){const t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!pc.has(t.groups.name))throw new Error(`Invalid POSIX class "${e}"`);return zn("posix",e,{value:t.groups.name,negate:!!t.groups.negate})}return e==="-"?Nx(e):e==="&&"?Ix(e):Xt(Gr(e),e)}function rg(e,{inCharClass:t}){const n=e[1];if(n==="c"||n==="C")return Hx(e);if("dDhHsSwW".includes(n))return Gx(e);if(e.startsWith(je`\o{`))throw new Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);if(/^\\[pP]\{/.test(e)){if(e.length===3)throw new Error(`Incomplete or invalid Unicode property "${e}"`);return Wx(e)}if(new RegExp("^\\\\x[89A-Fa-f]\\p{AHex}","u").test(e))try{const r=e.split(/\\x/).slice(1).map(i=>parseInt(i,16)),s=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(r)),o=new TextEncoder;return[...s].map(i=>{const a=[...o.encode(i)].map(l=>`\\x${l.toString(16)}`).join("");return Xt(Gr(i),a)})}catch{throw new Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(n==="u"||n==="x")return Xt(zx(e),e);if(vf.has(n))return Xt(vf.get(n),e);if(/\d/.test(n))return Lx(t,e);if(e==="\\")throw new Error(je`Incomplete escape "\"`);if(n==="M")throw new Error(`Unsupported meta "${e}"`);if([...e].length===2)return Xt(e.codePointAt(1),e);throw new Error(`Unexpected escape "${e}"`)}function Rx(e){return{type:"Alternator",raw:e}}function yf(e,t){return{type:"Assertion",kind:e,raw:t}}function sg(e){return{type:"Backreference",raw:e}}function Xt(e,t){return{type:"Character",value:e,raw:t}}function Px(e){return{type:"CharacterClassClose",raw:e}}function Nx(e){return{type:"CharacterClassHyphen",raw:e}}function Ix(e){return{type:"CharacterClassIntersector",raw:e}}function bf(e,t){return{type:"CharacterClassOpen",negate:e,raw:t}}function zn(e,t,n={}){return{type:"CharacterSet",kind:e,...n,raw:t}}function og(e,t,n={}){return e==="keep"?{type:"Directive",kind:e,raw:t}:{type:"Directive",kind:e,flags:Wr(n.flags),raw:t}}function Lx(e,t){return{type:"EscapedNumber",inCharClass:e,raw:t}}function Ox(e){return{type:"GroupClose",raw:e}}function mr(e,t,n={}){return{type:"GroupOpen",kind:e,...n,raw:t}}function Mx(e,t,n,r){return{type:"NamedCallout",kind:e,tag:t,arguments:n,raw:r}}function Dx(e,t,n,r){return{type:"Quantifier",kind:e,min:t,max:n,raw:r}}function Fx(e){return{type:"Subroutine",raw:e}}const Bx=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),vf=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function Hx(e){const t=e[1]==="c"?e[2]:e[3];if(!t||!/[A-Za-z]/.test(t))throw new Error(`Unsupported control character "${e}"`);return Xt(Gr(t.toUpperCase())-64,e)}function jx(e,t){let{on:n,off:r}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;r??(r="");const s=(t.getCurrentModX()||n.includes("x"))&&!r.includes("x"),o=wf(n),i=wf(r),a={};if(o&&(a.enable=o),i&&(a.disable=i),e.endsWith(")"))return t.replaceCurrentModX(s),og("flags",e,{flags:a});if(e.endsWith(":"))return t.pushModX(s),t.numOpenGroups++,mr("group",e,{...(o||i)&&{flags:a}});throw new Error(`Unexpected flag modifier "${e}"`)}function Ux(e){const t=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(e);if(!t)throw new Error(`Incomplete or invalid named callout "${e}"`);const{name:n,tag:r,args:s}=t.groups;if(!n)throw new Error(`Invalid named callout "${e}"`);if(r==="")throw new Error(`Named callout tag with empty value not allowed "${e}"`);const o=s?s.split(",").filter(u=>u!=="").map(u=>/^[+-]?\d+$/.test(u)?+u:u):[],[i,a,l]=o,c=Bx.has(n)?n.toLowerCase():"custom";switch(c){case"fail":case"mismatch":case"skip":if(o.length>0)throw new Error(`Named callout arguments not allowed "${o}"`);break;case"error":if(o.length>1)throw new Error(`Named callout allows only one argument "${o}"`);if(typeof i=="string")throw new Error(`Named callout argument must be a number "${i}"`);break;case"max":if(!o.length||o.length>2)throw new Error(`Named callout must have one or two arguments "${o}"`);if(typeof i=="string"&&!/^[A-Za-z_]\w*$/.test(i))throw new Error(`Named callout argument one must be a tag or number "${i}"`);if(o.length===2&&(typeof a=="number"||!/^[<>X]$/.test(a)))throw new Error(`Named callout optional argument two must be '<', '>', or 'X' "${a}"`);break;case"count":case"total_count":if(o.length>1)throw new Error(`Named callout allows only one argument "${o}"`);if(o.length===1&&(typeof i=="number"||!/^[<>X]$/.test(i)))throw new Error(`Named callout optional argument must be '<', '>', or 'X' "${i}"`);break;case"cmp":if(o.length!==3)throw new Error(`Named callout must have three arguments "${o}"`);if(typeof i=="string"&&!/^[A-Za-z_]\w*$/.test(i))throw new Error(`Named callout argument one must be a tag or number "${i}"`);if(typeof a=="number"||!/^(?:[<>!=]=|[<>])$/.test(a))throw new Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${a}"`);if(typeof l=="string"&&!/^[A-Za-z_]\w*$/.test(l))throw new Error(`Named callout argument three must be a tag or number "${l}"`);break;case"custom":throw new Error(`Undefined callout name "${n}"`);default:throw new Error(`Unexpected named callout kind "${c}"`)}return Mx(c,r??null,(s==null?void 0:s.split(","))??null,e)}function _f(e){let t=null,n,r;if(e[0]==="{"){const{minStr:s,maxStr:o}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups,i=1e5;if(+s>i||o&&+o>i)throw new Error("Quantifier value unsupported in Oniguruma");if(n=+s,r=o===void 0?+s:o===""?1/0:+o,n>r&&(t="possessive",[n,r]=[r,n]),e.endsWith("?")){if(t==="possessive")throw new Error('Unsupported possessive interval quantifier chain with "?"');t="lazy"}else t||(t="greedy")}else n=e[0]==="+"?1:0,r=e[0]==="?"?1:1/0,t=e[1]==="+"?"possessive":e[1]==="?"?"lazy":"greedy";return Dx(t,n,r,e)}function Gx(e){const t=e[1].toLowerCase();return zn({d:"digit",h:"hex",s:"space",w:"word"}[t],e,{negate:e[1]!==t})}function Wx(e){const{p:t,neg:n,value:r}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return zn("property",e,{value:r,negate:t==="P"&&!n||t==="p"&&!!n})}function wf(e){const t={};return e.includes("i")&&(t.ignoreCase=!0),e.includes("m")&&(t.dotAll=!0),e.includes("x")&&(t.extended=!0),Object.keys(t).length?t:null}function Vx(e){const t={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let n=0;n<e.length;n++){const r=e[n];if(!"imxDPSWy".includes(r))throw new Error(`Invalid flag "${r}"`);if(r==="y"){if(!/^y{[gw]}/.test(e.slice(n)))throw new Error('Invalid or unspecified flag "y" mode');t.textSegmentMode=e[n+2]==="g"?"grapheme":"word",n+=3;continue}t[{i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"}[r]]=!0}return t}function zx(e){if(new RegExp("^(?:\\\\u(?!\\p{AHex}{4})|\\\\x(?!\\p{AHex}{1,2}|\\{\\p{AHex}{1,8}\\}))","u").test(e))throw new Error(`Incomplete or invalid escape "${e}"`);const t=e[2]==="{"?new RegExp("^\\\\x\\{\\s*(?<hex>\\p{AHex}+)","u").exec(e).groups.hex:e.slice(2);return parseInt(t,16)}function qx(e,t){const{raw:n,inCharClass:r}=e,s=n.slice(1);if(!r&&(s!=="0"&&s.length===1||s[0]!=="0"&&+s<=t))return[sg(n)];const o=[],i=s.match(/^[0-7]+|\d/g);for(let a=0;a<i.length;a++){const l=i[a];let c;if(a===0&&l!=="8"&&l!=="9"){if(c=parseInt(l,8),c>127)throw new Error(je`Octal encoded byte above 177 unsupported "${n}"`)}else c=Gr(l);o.push(Xt(c,(a===0?"\\":"")+l))}return o}function Kx(e){const t=[],n=new RegExp(gc,"gy");let r;for(;r=n.exec(e);){const s=r[0];if(s[0]==="{"){const o=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(s);if(o){const{min:i,max:a}=o.groups;if(+i>+a&&s.endsWith("?")){n.lastIndex--,t.push(_f(s.slice(0,-1)));continue}}}t.push(_f(s))}return t}function ig(e,t){if(!Array.isArray(e.body))throw new Error("Expected node with body array");if(e.body.length!==1)return!1;const n=e.body[0];return!t||Object.keys(t).every(r=>t[r]===n[r])}function Xx(e){return Jx.has(e.type)}const Jx=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function ag(e,t={}){const n={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},r=Ex(e,{flags:n.flags,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline}}),s=(d,p)=>{const h=r.tokens[o.nextIndex];switch(o.parent=d,o.nextIndex++,h.type){case"Alternator":return nr();case"Assertion":return Yx(h);case"Backreference":return Qx(h,o);case"Character":return Di(h.value,{useLastValid:!!p.isCheckingRangeEnd});case"CharacterClassHyphen":return Zx(h,o,p);case"CharacterClassOpen":return eS(h,o,p);case"CharacterSet":return tS(h,o);case"Directive":return aS(h.kind,{flags:h.flags});case"GroupOpen":return nS(h,o,p);case"NamedCallout":return cS(h.kind,h.tag,h.arguments);case"Quantifier":return rS(h,o);case"Subroutine":return sS(h,o);default:throw new Error(`Unexpected token type "${h.type}"`)}},o={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:n.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:n.skipBackrefValidation,skipLookbehindValidation:n.skipLookbehindValidation,skipPropertyNameValidation:n.skipPropertyNameValidation,subroutines:[],tokens:r.tokens,unicodePropertyMap:n.unicodePropertyMap,walk:s},i=fS(lS(r.flags));let a=i.body[0];for(;o.nextIndex<r.tokens.length;){const d=s(a,{});d.type==="Alternative"?(i.body.push(d),a=d):a.body.push(d)}const{capturingGroups:l,hasNumberedRef:c,namedGroupsByName:u,subroutines:f}=o;if(c&&u.size&&!n.rules.captureGroup)throw new Error("Numbered backref/subroutine not allowed when using named capture");for(const{ref:d}of f)if(typeof d=="number"){if(d>l.length)throw new Error("Subroutine uses a group number that's not defined");d&&(l[d-1].isSubroutined=!0)}else if(u.has(d)){if(u.get(d).length>1)throw new Error(je`Subroutine uses a duplicate group name "\g<${d}>"`);u.get(d)[0].isSubroutined=!0}else throw new Error(je`Subroutine uses a group name that's not defined "\g<${d}>"`);return i}function Yx({kind:e}){return gl(Wr({"^":"line_start",$:"line_end","\\A":"string_start","\\b":"word_boundary","\\B":"word_boundary","\\G":"search_start","\\y":"text_segment_boundary","\\Y":"text_segment_boundary","\\z":"string_end","\\Z":"string_end_newline"}[e],`Unexpected assertion kind "${e}"`),{negate:e===je`\B`||e===je`\Y`})}function Qx({raw:e},t){const n=/^\\k[<']/.test(e),r=n?e.slice(3,-1):e.slice(1),s=(o,i=!1)=>{const a=t.capturingGroups.length;let l=!1;if(o>a)if(t.skipBackrefValidation)l=!0;else throw new Error(`Not enough capturing groups defined to the left "${e}"`);return t.hasNumberedRef=!0,ml(i?a+1-o:o,{orphan:l})};if(n){const o=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(r);if(o)return s(+o.groups.num,!!o.groups.sign);if(/[-+]/.test(r))throw new Error(`Invalid backref name "${e}"`);if(!t.namedGroupsByName.has(r))throw new Error(`Group name not defined to the left "${e}"`);return ml(r)}return s(+r)}function Zx(e,t,n){const{tokens:r,walk:s}=t,o=t.parent,i=o.body.at(-1),a=r[t.nextIndex];if(!n.isCheckingRangeEnd&&i&&i.type!=="CharacterClass"&&i.type!=="CharacterClassRange"&&a&&a.type!=="CharacterClassOpen"&&a.type!=="CharacterClassClose"&&a.type!=="CharacterClassIntersector"){const l=s(o,{...n,isCheckingRangeEnd:!0});if(i.type==="Character"&&l.type==="Character")return o.body.pop(),iS(i,l);throw new Error("Invalid character class range")}return Di(Gr("-"))}function eS({negate:e},t,n){const{tokens:r,walk:s}=t,o=r[t.nextIndex],i=[ko()];let a=Sf(o);for(;a.type!=="CharacterClassClose";){if(a.type==="CharacterClassIntersector")i.push(ko()),t.nextIndex++;else{const c=i.at(-1);c.body.push(s(c,n))}a=Sf(r[t.nextIndex],o)}const l=ko({negate:e});return i.length===1?l.body=i[0].body:(l.kind="intersection",l.body=i.map(c=>c.body.length===1?c.body[0]:c)),t.nextIndex++,l}function tS({kind:e,negate:t,value:n},r){const{normalizeUnknownPropertyNames:s,skipPropertyNameValidation:o,unicodePropertyMap:i}=r;if(e==="property"){const a=Fi(n);if(pc.has(a)&&!(i!=null&&i.has(a)))e="posix",n=a;else return yr(n,{negate:t,normalizeUnknownPropertyNames:s,skipPropertyNameValidation:o,unicodePropertyMap:i})}return e==="posix"?uS(n,{negate:t}):yl(e,{negate:t})}function nS(e,t,n){const{tokens:r,capturingGroups:s,namedGroupsByName:o,skipLookbehindValidation:i,walk:a}=t,l=dS(e),c=l.type==="AbsenceFunction",u=xf(l),f=u&&l.negate;if(l.type==="CapturingGroup"&&(s.push(l),l.name&&kx(o,l.name,[]).push(l)),c&&n.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let d=kf(r[t.nextIndex]);for(;d.type!=="GroupClose";){if(d.type==="Alternator")l.body.push(nr()),t.nextIndex++;else{const p=l.body.at(-1),h=a(p,{...n,isInAbsenceFunction:n.isInAbsenceFunction||c,isInLookbehind:n.isInLookbehind||u,isInNegLookbehind:n.isInNegLookbehind||f});if(p.body.push(h),(u||n.isInLookbehind)&&!i){const g="Lookbehind includes a pattern not allowed by Oniguruma";if(f||n.isInNegLookbehind){if(Cf(h)||h.type==="CapturingGroup")throw new Error(g)}else if(Cf(h)||xf(h)&&h.negate)throw new Error(g)}}d=kf(r[t.nextIndex])}return t.nextIndex++,l}function rS({kind:e,min:t,max:n},r){const s=r.parent,o=s.body.at(-1);if(!o||!Xx(o))throw new Error("Quantifier requires a repeatable token");const i=cg(e,t,n,o);return s.body.pop(),i}function sS({raw:e},t){const{capturingGroups:n,subroutines:r}=t;let s=e.slice(3,-1);const o=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(s);if(o){const a=+o.groups.num,l=n.length;if(t.hasNumberedRef=!0,s={"":a,"+":l+a,"-":l+1-a}[o.groups.sign],s<1)throw new Error("Invalid subroutine number")}else s==="0"&&(s=0);const i=ug(s);return r.push(i),i}function oS(e,t){return{type:"AbsenceFunction",kind:e,body:Vs(t==null?void 0:t.body)}}function nr(e){return{type:"Alternative",body:fg(e==null?void 0:e.body)}}function gl(e,t){const n={type:"Assertion",kind:e};return(e==="word_boundary"||e==="text_segment_boundary")&&(n.negate=!!(t!=null&&t.negate)),n}function ml(e,t){const n=!!(t!=null&&t.orphan);return{type:"Backreference",ref:e,...n&&{orphan:n}}}function lg(e,t){const n={name:void 0,isSubroutined:!1,...t};if(n.name!==void 0&&!hS(n.name))throw new Error(`Group name "${n.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:e,...n.name&&{name:n.name},...n.isSubroutined&&{isSubroutined:n.isSubroutined},body:Vs(t==null?void 0:t.body)}}function Di(e,t){const n={useLastValid:!1,...t};if(e>1114111){const r=e.toString(16);if(n.useLastValid)e=1114111;else throw e>1310719?new Error(`Invalid code point out of range "\\x{${r}}"`):new Error(`Invalid code point out of range in JS "\\x{${r}}"`)}return{type:"Character",value:e}}function ko(e){const t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:fg(e==null?void 0:e.body)}}function iS(e,t){if(t.value<e.value)throw new Error("Character class range out of order");return{type:"CharacterClassRange",min:e,max:t}}function yl(e,t){const n=!!(t!=null&&t.negate),r={type:"CharacterSet",kind:e};return(e==="digit"||e==="hex"||e==="newline"||e==="space"||e==="word")&&(r.negate=n),(e==="text_segment"||e==="newline"&&!n)&&(r.variableLength=!0),r}function aS(e,t={}){if(e==="keep")return{type:"Directive",kind:e};if(e==="flags")return{type:"Directive",kind:e,flags:Wr(t.flags)};throw new Error(`Unexpected directive kind "${e}"`)}function lS(e){return{type:"Flags",...e}}function _t(e){const t=e==null?void 0:e.atomic,n=e==null?void 0:e.flags;if(t&&n)throw new Error("Atomic group cannot have flags");return{type:"Group",...t&&{atomic:t},...n&&{flags:n},body:Vs(e==null?void 0:e.body)}}function jn(e){const t={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:t.behind?"lookbehind":"lookahead",negate:t.negate,body:Vs(e==null?void 0:e.body)}}function cS(e,t,n){return{type:"NamedCallout",kind:e,tag:t,arguments:n}}function uS(e,t){const n=!!(t!=null&&t.negate);if(!pc.has(e))throw new Error(`Invalid POSIX class "${e}"`);return{type:"CharacterSet",kind:"posix",value:e,negate:n}}function cg(e,t,n,r){if(t>n)throw new Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:e,min:t,max:n,body:r}}function fS(e,t){return{type:"Regex",body:Vs(t==null?void 0:t.body),flags:e}}function ug(e){return{type:"Subroutine",ref:e}}function yr(e,t){var s;const n={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t};let r=(s=n.unicodePropertyMap)==null?void 0:s.get(Fi(e));if(!r){if(n.normalizeUnknownPropertyNames)r=pS(e);else if(n.unicodePropertyMap&&!n.skipPropertyNameValidation)throw new Error(je`Invalid Unicode property "\p{${e}}"`)}return{type:"CharacterSet",kind:"property",value:r??e,negate:n.negate}}function dS({flags:e,kind:t,name:n,negate:r,number:s}){switch(t){case"absence_repeater":return oS("repeater");case"atomic":return _t({atomic:!0});case"capturing":return lg(s,{name:n});case"group":return _t({flags:e});case"lookahead":case"lookbehind":return jn({behind:t==="lookbehind",negate:r});default:throw new Error(`Unexpected group kind "${t}"`)}}function Vs(e){if(e===void 0)e=[nr()];else if(!Array.isArray(e)||!e.length||!e.every(t=>t.type==="Alternative"))throw new Error("Invalid body; expected array of one or more Alternative nodes");return e}function fg(e){if(e===void 0)e=[];else if(!Array.isArray(e)||!e.every(t=>!!t.type))throw new Error("Invalid body; expected array of nodes");return e}function Cf(e){return e.type==="LookaroundAssertion"&&e.kind==="lookahead"}function xf(e){return e.type==="LookaroundAssertion"&&e.kind==="lookbehind"}function hS(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function pS(e){return e.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,t=>t[0].toUpperCase()+t.slice(1).toLowerCase())}function Fi(e){return e.replace(/[- _]+/g,"").toLowerCase()}function Sf(e,t){return Wr(e,`${(t==null?void 0:t.type)==="Character"&&t.value===93?"Empty":"Unclosed"} character class`)}function kf(e){return Wr(e,"Unclosed group")}function ps(e,t,n=null){function r(o,i){for(let a=0;a<o.length;a++){const l=s(o[a],i,a,o);a=Math.max(-1,a+l)}}function s(o,i=null,a=null,l=null){var b,v;let c=0,u=!1;const f={node:o,parent:i,key:a,container:l,root:e,remove(){co(l).splice(Math.max(0,dr(a)+c),1),c--,u=!0},removeAllNextSiblings(){return co(l).splice(dr(a)+1)},removeAllPrevSiblings(){const y=dr(a)+c;return c-=y,co(l).splice(0,Math.max(0,y))},replaceWith(y,_={}){const C=!!_.traverse;l?l[Math.max(0,dr(a)+c)]=y:Wr(i,"Can't replace root node")[a]=y,C&&s(y,i,a,l),u=!0},replaceWithMultiple(y,_={}){const C=!!_.traverse;if(co(l).splice(Math.max(0,dr(a)+c),1,...y),c+=y.length-1,C){let A=0;for(let N=0;N<y.length;N++)A+=s(y[N],i,dr(a)+N+A,l)}u=!0},skip(){u=!0}},{type:d}=o,p=t["*"],h=t[d],g=typeof p=="function"?p:p==null?void 0:p.enter,m=typeof h=="function"?h:h==null?void 0:h.enter;if(g==null||g(f,n),m==null||m(f,n),!u)switch(d){case"AbsenceFunction":case"CapturingGroup":case"Group":r(o.body,o);break;case"Alternative":case"CharacterClass":r(o.body,o);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subroutine":break;case"CharacterClassRange":s(o.min,o,"min"),s(o.max,o,"max");break;case"LookaroundAssertion":r(o.body,o);break;case"Quantifier":s(o.body,o,"body");break;case"Regex":r(o.body,o),s(o.flags,o,"flags");break;default:throw new Error(`Unexpected node type "${d}"`)}return(b=h==null?void 0:h.exit)==null||b.call(h,f,n),(v=p==null?void 0:p.exit)==null||v.call(p,f,n),c}return s(e),e}function co(e){if(!Array.isArray(e))throw new Error("Container expected");return e}function dr(e){if(typeof e!="number")throw new Error("Numeric key expected");return e}const gS=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function mS(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function yS(e,t,n,r){return e.slice(0,t)+r+e.slice(t+n.length)}const pt=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function mc(e,t,n,r){const s=new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,"gsu"),o=[!1];let i=0,a="";for(const l of e.matchAll(s)){const{0:c,groups:{$skip:u}}=l;if(!u&&(!r||r===pt.DEFAULT==!i)){n instanceof Function?a+=n(l,{context:i?pt.CHAR_CLASS:pt.DEFAULT,negated:o[o.length-1]}):a+=n;continue}c[0]==="["?(i++,o.push(c[1]==="^")):c==="]"&&i&&(i--,o.pop()),a+=c}return a}function dg(e,t,n,r){mc(e,t,n,r)}function bS(e,t,n=0,r){if(!new RegExp(t,"su").test(e))return null;const s=new RegExp(`${t}|(?<$skip>\\\\?.)`,"gsu");s.lastIndex=n;let o=0,i;for(;i=s.exec(e);){const{0:a,groups:{$skip:l}}=i;if(!l&&(!r||r===pt.DEFAULT==!o))return i;a==="["?o++:a==="]"&&o&&o--,s.lastIndex==i.index&&s.lastIndex++}return null}function uo(e,t,n){return!!bS(e,t,0,n)}function vS(e,t){const n=/\\?./gsu;n.lastIndex=t;let r=e.length,s=0,o=1,i;for(;i=n.exec(e);){const[a]=i;if(a==="[")s++;else if(s)a==="]"&&s--;else if(a==="(")o++;else if(a===")"&&(o--,!o)){r=i.index;break}}return e.slice(t,r)}const Ef=new RegExp(String.raw`(?<noncapturingStart>${gS})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function _S(e,t){const n=(t==null?void 0:t.hiddenCaptures)??[];let r=(t==null?void 0:t.captureTransfers)??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:r,hiddenCaptures:n};const s="(?>",o="(?:(?=(",i=[0],a=[];let l=0,c=0,u=NaN,f;do{f=!1;let d=0,p=0,h=!1,g;for(Ef.lastIndex=Number.isNaN(u)?0:u+o.length;g=Ef.exec(e);){const{0:m,index:b,groups:{capturingStart:v,noncapturingStart:y}}=g;if(m==="[")d++;else if(d)m==="]"&&d--;else if(m===s&&!h)u=b,h=!0;else if(h&&y)p++;else if(v)h?p++:(l++,i.push(l+c));else if(m===")"&&h){if(!p){c++;const _=l+c;if(e=`${e.slice(0,u)}${o}${e.slice(u+s.length,b)}))<$$${_}>)${e.slice(b+1)}`,f=!0,a.push(_),mS(n,_),r.size){const C=new Map;r.forEach((A,N)=>{C.set(N>=_?N+1:N,A.map(G=>G>=_?G+1:G))}),r=C}break}p--}}}while(f);return n.push(...a),e=mc(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:d,groups:{backrefNum:p,wrappedBackrefNum:h}})=>{if(p){const g=+p;if(g>i.length-1)throw new Error(`Backref "${d}" greater than number of captures`);return`\\${i[g]}`}return`\\${h}`},pt.DEFAULT),{pattern:e,captureTransfers:r,hiddenCaptures:n}}const hg=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,ba=new RegExp(String.raw`
|
|
63
|
+
\\(?: \d+
|
|
64
|
+
| c[A-Za-z]
|
|
65
|
+
| [gk]<[^>]+>
|
|
66
|
+
| [pPu]\{[^\}]+\}
|
|
67
|
+
| u[A-Fa-f\d]{4}
|
|
68
|
+
| x[A-Fa-f\d]{2}
|
|
69
|
+
)
|
|
70
|
+
| \((?: \? (?: [:=!>]
|
|
71
|
+
| <(?:[=!]|[^>]+>)
|
|
72
|
+
| [A-Za-z\-]+:
|
|
73
|
+
| \(DEFINE\)
|
|
74
|
+
))?
|
|
75
|
+
| (?<qBase>${hg})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
|
|
76
|
+
| \\?.
|
|
77
|
+
`.replace(/\s+/g,""),"gsu");function wS(e){if(!new RegExp(`${hg}\\+`).test(e))return{pattern:e};const t=[];let n=null,r=null,s="",o=0,i;for(ba.lastIndex=0;i=ba.exec(e);){const{0:a,index:l,groups:{qBase:c,qMod:u,invalidQ:f}}=i;if(a==="[")o||(r=l),o++;else if(a==="]")o?o--:r=null;else if(!o)if(u==="+"&&s&&!s.startsWith("(")){if(f)throw new Error(`Invalid quantifier "${a}"`);let d=-1;if(/^\{\d+\}$/.test(c))e=yS(e,l+c.length,u,"");else{if(s===")"||s==="]"){const p=s===")"?n:r;if(p===null)throw new Error(`Invalid unmatched "${s}"`);e=`${e.slice(0,p)}(?>${e.slice(p,l)}${c})${e.slice(l+a.length)}`}else e=`${e.slice(0,l-s.length)}(?>${s}${c})${e.slice(l+a.length)}`;d+=4}ba.lastIndex+=d}else a[0]==="("?t.push(l):a===")"&&(n=t.length?t.pop():null);s=a}return{pattern:e}}const dt=String.raw,CS=dt`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,bl=dt`\(\?R=(?<rDepth>[^\)]+)\)|${CS}`,Bi=dt`\(\?<(?![=!])(?<captureName>[^>]+)>`,pg=dt`${Bi}|(?<unnamed>\()(?!\?)`,Mn=new RegExp(dt`${Bi}|${bl}|\(\?|\\?.`,"gsu"),va="Cannot use multiple overlapping recursions";function xS(e,t){const{hiddenCaptures:n,mode:r}={hiddenCaptures:[],mode:"plugin",...t};let s=(t==null?void 0:t.captureTransfers)??new Map;if(!new RegExp(bl,"su").test(e))return{pattern:e,captureTransfers:s,hiddenCaptures:n};if(r==="plugin"&&uo(e,dt`\(\?\(DEFINE\)`,pt.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");const o=[],i=uo(e,dt`\\[1-9]`,pt.DEFAULT),a=new Map,l=[];let c=!1,u=0,f=0,d;for(Mn.lastIndex=0;d=Mn.exec(e);){const{0:p,groups:{captureName:h,rDepth:g,gRNameOrNum:m,gRDepth:b}}=d;if(p==="[")u++;else if(u)p==="]"&&u--;else if(g){if(Tf(g),c)throw new Error(va);if(i)throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);const v=e.slice(0,d.index),y=e.slice(Mn.lastIndex);if(uo(y,bl,pt.DEFAULT))throw new Error(va);const _=+g-1;e=Af(v,y,_,!1,n,o,f),s=Rf(s,v,_,o.length,0,f);break}else if(m){Tf(b);let v=!1;for(const T of l)if(T.name===m||T.num===+m){if(v=!0,T.hasRecursedWithin)throw new Error(va);break}if(!v)throw new Error(dt`Recursive \g cannot be used outside the referenced group "${r==="external"?m:dt`\g<${m}&R=${b}>`}"`);const y=a.get(m),_=vS(e,y);if(i&&uo(_,dt`${Bi}|\((?!\?)`,pt.DEFAULT))throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);const C=e.slice(y,d.index),A=_.slice(C.length+p.length),N=o.length,G=+b-1,P=Af(C,A,G,!0,n,o,f);s=Rf(s,C,G,o.length-N,N,f);const E=e.slice(0,y),M=e.slice(y+_.length);e=`${E}${P}${M}`,Mn.lastIndex+=P.length-p.length-C.length-A.length,l.forEach(T=>T.hasRecursedWithin=!0),c=!0}else if(h)f++,a.set(String(f),Mn.lastIndex),a.set(h,Mn.lastIndex),l.push({num:f,name:h});else if(p[0]==="("){const v=p==="(";v&&(f++,a.set(String(f),Mn.lastIndex)),l.push(v?{num:f}:{})}else p===")"&&l.pop()}return n.push(...o),{pattern:e,captureTransfers:s,hiddenCaptures:n}}function Tf(e){const t=`Max depth must be integer between 2 and 100; used ${e}`;if(!/^[1-9]\d*$/.test(e))throw new Error(t);if(e=+e,e<2||e>100)throw new Error(t)}function Af(e,t,n,r,s,o,i){const a=new Set;r&&dg(e+t,Bi,({groups:{captureName:c}})=>{a.add(c)},pt.DEFAULT);const l=[n,r?a:null,s,o,i];return`${e}${$f(`(?:${e}`,"forward",...l)}(?:)${$f(`${t})`,"backward",...l)}${t}`}function $f(e,t,n,r,s,o,i){const l=u=>t==="forward"?u+2:n-u+2-1;let c="";for(let u=0;u<n;u++){const f=l(u);c+=mc(e,dt`${pg}|\\k<(?<backref>[^>]+)>`,({0:d,groups:{captureName:p,unnamed:h,backref:g}})=>{if(g&&r&&!r.has(g))return d;const m=`_$${f}`;if(h||p){const b=i+o.length+1;return o.push(b),SS(s,b),h?d:`(?<${p}${m}>`}return dt`\k<${g}${m}>`},pt.DEFAULT)}return c}function SS(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function Rf(e,t,n,r,s,o){if(e.size&&r){let i=0;dg(t,pg,()=>i++,pt.DEFAULT);const a=o-i+s,l=new Map;return e.forEach((c,u)=>{const f=(r-i*n)/n,d=i*n,p=u>a+i?u+r:u,h=[];for(const g of c)if(g<=a)h.push(g);else if(g>a+i+f)h.push(g+r);else if(g<=a+i)for(let m=0;m<=n;m++)h.push(g+i*m);else for(let m=0;m<=n;m++)h.push(g+d+f*m);l.set(p,h)}),l}return e}var Ne=String.fromCodePoint,oe=String.raw,Qt={flagGroups:(()=>{try{new RegExp("(?i:)")}catch{return!1}return!0})(),unicodeSets:(()=>{try{new RegExp("","v")}catch{return!1}return!0})()};Qt.bugFlagVLiteralHyphenIsRange=Qt.unicodeSets?(()=>{try{new RegExp(oe`[\d\-a]`,"v")}catch{return!0}return!1})():!1;Qt.bugNestedClassIgnoresNegation=Qt.unicodeSets&&new RegExp("[[^a]]","v").test("a");function li(e,{enable:t,disable:n}){return{dotAll:!(n!=null&&n.dotAll)&&!!(t!=null&&t.dotAll||e.dotAll),ignoreCase:!(n!=null&&n.ignoreCase)&&!!(t!=null&&t.ignoreCase||e.ignoreCase)}}function Ls(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}function vl(e,t){return Pf[e]>=Pf[t]}function kS(e,t){if(e==null)throw new Error(t??"Value expected");return e}var Pf={ES2025:2025,ES2024:2024,ES2018:2018},ES={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function gg(e={}){if({}.toString.call(e)!=="[object Object]")throw new Error("Unexpected options");if(e.target!==void 0&&!ES[e.target])throw new Error(`Unexpected target "${e.target}"`);const t={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,lazyCompileLength:1/0,target:"auto",verbose:!1,...e,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...e.rules}};return t.target==="auto"&&(t.target=Qt.flagGroups?"ES2025":Qt.unicodeSets?"ES2024":"ES2018"),t}var TS="[ -\r ]",AS=new Set([Ne(304),Ne(305)]),Bt=oe`[\p{L}\p{M}\p{N}\p{Pc}]`;function mg(e){if(AS.has(e))return[e];const t=new Set,n=e.toLowerCase(),r=n.toUpperCase(),s=PS.get(n),o=$S.get(n),i=RS.get(n);return[...r].length===1&&t.add(r),i&&t.add(i),s&&t.add(s),t.add(n),o&&t.add(o),[...t]}var yc=new Map(`C Other
|
|
78
|
+
Cc Control cntrl
|
|
79
|
+
Cf Format
|
|
80
|
+
Cn Unassigned
|
|
81
|
+
Co Private_Use
|
|
82
|
+
Cs Surrogate
|
|
83
|
+
L Letter
|
|
84
|
+
LC Cased_Letter
|
|
85
|
+
Ll Lowercase_Letter
|
|
86
|
+
Lm Modifier_Letter
|
|
87
|
+
Lo Other_Letter
|
|
88
|
+
Lt Titlecase_Letter
|
|
89
|
+
Lu Uppercase_Letter
|
|
90
|
+
M Mark Combining_Mark
|
|
91
|
+
Mc Spacing_Mark
|
|
92
|
+
Me Enclosing_Mark
|
|
93
|
+
Mn Nonspacing_Mark
|
|
94
|
+
N Number
|
|
95
|
+
Nd Decimal_Number digit
|
|
96
|
+
Nl Letter_Number
|
|
97
|
+
No Other_Number
|
|
98
|
+
P Punctuation punct
|
|
99
|
+
Pc Connector_Punctuation
|
|
100
|
+
Pd Dash_Punctuation
|
|
101
|
+
Pe Close_Punctuation
|
|
102
|
+
Pf Final_Punctuation
|
|
103
|
+
Pi Initial_Punctuation
|
|
104
|
+
Po Other_Punctuation
|
|
105
|
+
Ps Open_Punctuation
|
|
106
|
+
S Symbol
|
|
107
|
+
Sc Currency_Symbol
|
|
108
|
+
Sk Modifier_Symbol
|
|
109
|
+
Sm Math_Symbol
|
|
110
|
+
So Other_Symbol
|
|
111
|
+
Z Separator
|
|
112
|
+
Zl Line_Separator
|
|
113
|
+
Zp Paragraph_Separator
|
|
114
|
+
Zs Space_Separator
|
|
115
|
+
ASCII
|
|
116
|
+
ASCII_Hex_Digit AHex
|
|
117
|
+
Alphabetic Alpha
|
|
118
|
+
Any
|
|
119
|
+
Assigned
|
|
120
|
+
Bidi_Control Bidi_C
|
|
121
|
+
Bidi_Mirrored Bidi_M
|
|
122
|
+
Case_Ignorable CI
|
|
123
|
+
Cased
|
|
124
|
+
Changes_When_Casefolded CWCF
|
|
125
|
+
Changes_When_Casemapped CWCM
|
|
126
|
+
Changes_When_Lowercased CWL
|
|
127
|
+
Changes_When_NFKC_Casefolded CWKCF
|
|
128
|
+
Changes_When_Titlecased CWT
|
|
129
|
+
Changes_When_Uppercased CWU
|
|
130
|
+
Dash
|
|
131
|
+
Default_Ignorable_Code_Point DI
|
|
132
|
+
Deprecated Dep
|
|
133
|
+
Diacritic Dia
|
|
134
|
+
Emoji
|
|
135
|
+
Emoji_Component EComp
|
|
136
|
+
Emoji_Modifier EMod
|
|
137
|
+
Emoji_Modifier_Base EBase
|
|
138
|
+
Emoji_Presentation EPres
|
|
139
|
+
Extended_Pictographic ExtPict
|
|
140
|
+
Extender Ext
|
|
141
|
+
Grapheme_Base Gr_Base
|
|
142
|
+
Grapheme_Extend Gr_Ext
|
|
143
|
+
Hex_Digit Hex
|
|
144
|
+
IDS_Binary_Operator IDSB
|
|
145
|
+
IDS_Trinary_Operator IDST
|
|
146
|
+
ID_Continue IDC
|
|
147
|
+
ID_Start IDS
|
|
148
|
+
Ideographic Ideo
|
|
149
|
+
Join_Control Join_C
|
|
150
|
+
Logical_Order_Exception LOE
|
|
151
|
+
Lowercase Lower
|
|
152
|
+
Math
|
|
153
|
+
Noncharacter_Code_Point NChar
|
|
154
|
+
Pattern_Syntax Pat_Syn
|
|
155
|
+
Pattern_White_Space Pat_WS
|
|
156
|
+
Quotation_Mark QMark
|
|
157
|
+
Radical
|
|
158
|
+
Regional_Indicator RI
|
|
159
|
+
Sentence_Terminal STerm
|
|
160
|
+
Soft_Dotted SD
|
|
161
|
+
Terminal_Punctuation Term
|
|
162
|
+
Unified_Ideograph UIdeo
|
|
163
|
+
Uppercase Upper
|
|
164
|
+
Variation_Selector VS
|
|
165
|
+
White_Space space
|
|
166
|
+
XID_Continue XIDC
|
|
167
|
+
XID_Start XIDS`.split(/\s/).map(e=>[Fi(e),e])),$S=new Map([["s",Ne(383)],[Ne(383),"s"]]),RS=new Map([[Ne(223),Ne(7838)],[Ne(107),Ne(8490)],[Ne(229),Ne(8491)],[Ne(969),Ne(8486)]]),PS=new Map([dn(453),dn(456),dn(459),dn(498),..._a(8072,8079),..._a(8088,8095),..._a(8104,8111),dn(8124),dn(8140),dn(8188)]),NS=new Map([["alnum",oe`[\p{Alpha}\p{Nd}]`],["alpha",oe`\p{Alpha}`],["ascii",oe`\p{ASCII}`],["blank",oe`[\p{Zs}\t]`],["cntrl",oe`\p{Cc}`],["digit",oe`\p{Nd}`],["graph",oe`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",oe`\p{Lower}`],["print",oe`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",oe`[\p{P}\p{S}]`],["space",oe`\p{space}`],["upper",oe`\p{Upper}`],["word",oe`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",oe`\p{AHex}`]]);function IS(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}function dn(e){const t=Ne(e);return[t.toLowerCase(),t]}function _a(e,t){return IS(e,t).map(n=>dn(n))}var yg=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function LS(e,t){const n={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...t};bg(e);const r={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:vl(n.bestEffortTarget,"ES2024"),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:e.flags.digitIsAscii,spaceIsAscii:e.flags.spaceIsAscii,wordIsAscii:e.flags.wordIsAscii};ps(e,OS,r);const s={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},o={currentFlags:s,prevFlags:null,globalFlags:s,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:r.subroutineRefMap};ps(e,MS,o);const i={groupsByName:o.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:o.reffedNodesByReferencer};return ps(e,DS,i),e._originMap=o.groupOriginByCopy,e._strategy=r.strategy,e}var OS={AbsenceFunction({node:e,parent:t,replaceWith:n}){const{body:r,kind:s}=e;if(s==="repeater"){const o=_t();o.body[0].body.push(jn({negate:!0,body:r}),yr("Any"));const i=_t();i.body[0].body.push(cg("greedy",0,1/0,o)),n(Ae(i,t),{traverse:!0})}else throw new Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:e,parent:t,key:n},{flagDirectivesByAlt:r}){const s=e.body.filter(o=>o.kind==="flags");for(let o=n+1;o<t.body.length;o++){const i=t.body[o];Ls(r,i,[]).push(...s)}},exit({node:e},{flagDirectivesByAlt:t}){var n;if((n=t.get(e))!=null&&n.length){const r=_g(t.get(e));if(r){const s=_t({flags:r});s.body[0].body=e.body,e.body=[Ae(s,e)]}}}},Assertion({node:e,parent:t,key:n,container:r,root:s,remove:o,replaceWith:i},a){const{kind:l,negate:c}=e,{asciiWordBoundaries:u,avoidSubclass:f,supportedGNodes:d,wordIsAscii:p}=a;if(l==="text_segment_boundary")throw new Error(`Unsupported text segment boundary "\\${c?"Y":"y"}"`);if(l==="line_end")i(Ae(jn({body:[nr({body:[gl("string_end")]}),nr({body:[Di(10)]})]}),t));else if(l==="line_start")i(Ae(Ht(oe`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if(l==="search_start")if(d.has(e))s.flags.sticky=!0,o();else{const h=r[n-1];if(h&&GS(h))i(Ae(jn({negate:!0}),t));else{if(f)throw new Error(oe`Uses "\G" in a way that requires a subclass`);i(hn(gl("string_start"),t)),a.strategy="clip_search"}}else if(!(l==="string_end"||l==="string_start"))if(l==="string_end_newline")i(Ae(Ht(oe`(?=\n?\z)`),t));else if(l==="word_boundary"){if(!p&&!u){const h=`(?:(?<=${Bt})(?!${Bt})|(?<!${Bt})(?=${Bt}))`,g=`(?:(?<=${Bt})(?=${Bt})|(?<!${Bt})(?!${Bt}))`;i(Ae(Ht(c?g:h),t))}}else throw new Error(`Unexpected assertion kind "${l}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n=="string"&&!Ca(n)&&(n=wa(n,t),e.ref=n)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:n}){let{name:r}=e;r&&!Ca(r)&&(r=wa(r,t),e.name=r),n.set(e.number,e),r&&n.set(r,e)},CharacterClassRange({node:e,parent:t,replaceWith:n}){if(t.kind==="intersection"){const r=ko({body:[e]});n(Ae(r,t),{traverse:!0})}},CharacterSet({node:e,parent:t,replaceWith:n},{accuracy:r,minTargetEs2024:s,digitIsAscii:o,spaceIsAscii:i,wordIsAscii:a}){const{kind:l,negate:c,value:u}=e;if(o&&(l==="digit"||u==="digit")){n(hn(yl("digit",{negate:c}),t));return}if(i&&(l==="space"||u==="space")){n(Ae(xa(Ht(TS),c),t));return}if(a&&(l==="word"||u==="word")){n(hn(yl("word",{negate:c}),t));return}if(l==="any")n(hn(yr("Any"),t));else if(l==="digit")n(hn(yr("Nd",{negate:c}),t));else if(l!=="dot")if(l==="text_segment"){if(r==="strict")throw new Error(oe`Use of "\X" requires non-strict accuracy`);const f="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",d=oe`\p{RI}{2}|${f}(?:\u200D${f})*`;n(Ae(Ht(oe`(?>\r\n|${s?oe`\p{RGI_Emoji}`:d}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(l==="hex")n(hn(yr("AHex",{negate:c}),t));else if(l==="newline")n(Ae(Ht(c?`[^
|
|
168
|
+
]`:`(?>\r
|
|
169
|
+
?|[
|
|
170
|
+
\v\f
\u2028\u2029])`),t));else if(l==="posix")if(!s&&(u==="graph"||u==="print")){if(r==="strict")throw new Error(`POSIX class "${u}" requires min target ES2024 or non-strict accuracy`);let f={graph:"!-~",print:" -~"}[u];c&&(f=`\0-${Ne(f.codePointAt(0)-1)}${Ne(f.codePointAt(2)+1)}-`),n(Ae(Ht(`[${f}]`),t))}else n(Ae(xa(Ht(NS.get(u)),c),t));else if(l==="property")yc.has(Fi(u))||(e.key="sc");else if(l==="space")n(hn(yr("space",{negate:c}),t));else if(l==="word")n(Ae(xa(Ht(Bt),c),t));else throw new Error(`Unexpected character set kind "${l}"`)},Directive({node:e,parent:t,root:n,remove:r,replaceWith:s,removeAllPrevSiblings:o,removeAllNextSiblings:i}){const{kind:a,flags:l}=e;if(a==="flags")if(!l.enable&&!l.disable)r();else{const c=_t({flags:l});c.body[0].body=i(),s(Ae(c,t),{traverse:!0})}else if(a==="keep"){const c=n.body[0],f=n.body.length===1&&ig(c,{type:"Group"})&&c.body[0].body.length===1?c.body[0]:n;if(t.parent!==f||f.body.length>1)throw new Error(oe`Uses "\K" in a way that's unsupported`);const d=jn({behind:!0});d.body[0].body=o(),s(Ae(d,t))}else throw new Error(`Unexpected directive kind "${a}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw new Error('Unsupported flag "P"');if(e.textSegmentMode==="word")throw new Error('Unsupported flag "y{w}"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(n=>delete e[n]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:e.sticky??!1}),t.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;const{enable:t,disable:n}=e.flags;t!=null&&t.extended&&delete t.extended,n!=null&&n.extended&&delete n.extended,t!=null&&t.dotAll&&(n!=null&&n.dotAll)&&delete t.dotAll,t!=null&&t.ignoreCase&&(n!=null&&n.ignoreCase)&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,n&&!Object.keys(n).length&&delete e.flags.disable,!e.flags.enable&&!e.flags.disable&&delete e.flags},LookaroundAssertion({node:e},t){const{kind:n}=e;n==="lookbehind"&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:n}){const{kind:r}=e;if(r==="fail")n(Ae(jn({negate:!0}),t));else throw new Error(`Unsupported named callout "(*${r.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type==="Quantifier"){const t=_t();t.body[0].body.push(e.body),e.body=Ae(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){const n=[];let r=!1,s=!1;for(const o of e.body)if(o.body.length===1&&o.body[0].kind==="search_start")o.body.pop();else{const i=Cg(o.body);i?(r=!0,Array.isArray(i)?n.push(...i):n.push(i)):s=!0}r&&!s&&n.forEach(o=>t.add(o))},exit(e,{accuracy:t,passedLookbehind:n,strategy:r}){if(t==="strict"&&n&&r)throw new Error(oe`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n=="string"&&!Ca(n)&&(n=wa(n,t),e.ref=n)}},MS={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:n}){const{orphan:r,ref:s}=e;r||n.set(e,[...t.get(s).map(({node:o})=>o)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:n,skip:r},{groupOriginByCopy:s,groupsByName:o,multiplexCapturesToLeftByRef:i,openRefs:a,reffedNodesByReferencer:l}){const c=s.get(e);if(c&&a.has(e.number)){const f=hn(Nf(e.number),t);l.set(f,a.get(e.number)),n(f);return}a.set(e.number,e),i.set(e.number,[]),e.name&&Ls(i,e.name,[]);const u=i.get(e.name??e.number);for(let f=0;f<u.length;f++){const d=u[f];if(c===d.node||c&&c===d.origin||e===d.origin){u.splice(f,1);break}}if(i.get(e.number).push({node:e,origin:c}),e.name&&i.get(e.name).push({node:e,origin:c}),e.name){const f=Ls(o,e.name,new Map);let d=!1;if(c)d=!0;else for(const p of f.values())if(!p.hasDuplicateNameToRemove){d=!0;break}o.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:d})}},exit({node:e},{openRefs:t}){t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=li(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:n},r){const{isRecursive:s,ref:o}=e;if(s){let u=t;for(;(u=u.parent)&&!(u.type==="CapturingGroup"&&(u.name===o||u.number===o)););r.reffedNodesByReferencer.set(e,u);return}const i=r.subroutineRefMap.get(o),a=o===0,l=a?Nf(0):vg(i,r.groupOriginByCopy,null);let c=l;if(!a){const u=_g(HS(i,d=>d.type==="Group"&&!!d.flags)),f=u?li(r.globalFlags,u):r.globalFlags;FS(f,r.currentFlags)||(c=_t({flags:jS(f)}),c.body[0].body.push(l))}n(Ae(c,t),{traverse:!a})}},DS={Backreference({node:e,parent:t,replaceWith:n},r){if(e.orphan){r.highestOrphanBackref=Math.max(r.highestOrphanBackref,e.ref);return}const o=r.reffedNodesByReferencer.get(e).filter(i=>BS(i,e));if(!o.length)n(Ae(jn({negate:!0}),t));else if(o.length>1){const i=_t({atomic:!0,body:o.reverse().map(a=>nr({body:[ml(a.number)]}))});n(Ae(i,t))}else e.ref=o[0].number},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Regex:{exit({node:e},t){const n=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let r=0;r<n;r++){const s=lg();e.body.at(-1).body.push(s)}}},Subroutine({node:e},t){!e.isRecursive||e.ref===0||(e.ref=t.reffedNodesByReferencer.get(e).number)}};function bg(e){ps(e,{"*"({node:t,parent:n}){t.parent=n}})}function FS(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function BS(e,t){let n=t;do{if(n.type==="Regex")return!1;if(n.type==="Alternative")continue;if(n===e)return!1;const r=wg(n.parent);for(const s of r){if(s===n)break;if(s===e||xg(s,e))return!0}}while(n=n.parent);throw new Error("Unexpected path")}function vg(e,t,n,r){const s=Array.isArray(e)?[]:{};for(const[o,i]of Object.entries(e))o==="parent"?s.parent=Array.isArray(n)?r:n:i&&typeof i=="object"?s[o]=vg(i,t,s,n):(o==="type"&&i==="CapturingGroup"&&t.set(s,t.get(e)??e),s[o]=i);return s}function Nf(e){const t=ug(e);return t.isRecursive=!0,t}function HS(e,t){const n=[];for(;e=e.parent;)(!t||t(e))&&n.push(e);return n}function wa(e,t){if(t.has(e))return t.get(e);const n=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return t.set(e,n),n}function _g(e){const t=["dotAll","ignoreCase"],n={enable:{},disable:{}};return e.forEach(({flags:r})=>{t.forEach(s=>{var o,i;(o=r.enable)!=null&&o[s]&&(delete n.disable[s],n.enable[s]=!0),(i=r.disable)!=null&&i[s]&&(n.disable[s]=!0)})}),Object.keys(n.enable).length||delete n.enable,Object.keys(n.disable).length||delete n.disable,n.enable||n.disable?n:null}function jS({dotAll:e,ignoreCase:t}){const n={};return(e||t)&&(n.enable={},e&&(n.enable.dotAll=!0),t&&(n.enable.ignoreCase=!0)),(!e||!t)&&(n.disable={},!e&&(n.disable.dotAll=!0),!t&&(n.disable.ignoreCase=!0)),n}function wg(e){if(!e)throw new Error("Node expected");const{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function Cg(e){const t=e.find(n=>n.kind==="search_start"||WS(n,{negate:!1})||!US(n));if(!t)return null;if(t.kind==="search_start")return t;if(t.type==="LookaroundAssertion")return t.body[0].body[0];if(t.type==="CapturingGroup"||t.type==="Group"){const n=[];for(const r of t.body){const s=Cg(r.body);if(!s)return null;Array.isArray(s)?n.push(...s):n.push(s)}return n}return null}function xg(e,t){const n=wg(e)??[];for(const r of n)if(r===t||xg(r,t))return!0;return!1}function US({type:e}){return e==="Assertion"||e==="Directive"||e==="LookaroundAssertion"}function GS(e){const t=["Character","CharacterClass","CharacterSet"];return t.includes(e.type)||e.type==="Quantifier"&&e.min&&t.includes(e.body.type)}function WS(e,t){const n={negate:null,...t};return e.type==="LookaroundAssertion"&&(n.negate===null||e.negate===n.negate)&&e.body.length===1&&ig(e.body[0],{type:"Assertion",kind:"search_start"})}function Ca(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function Ht(e,t){const r=ag(e,{...t,unicodePropertyMap:yc}).body;return r.length>1||r[0].body.length>1?_t({body:r}):r[0].body[0]}function xa(e,t){return e.negate=t,e}function hn(e,t){return e.parent=t,e}function Ae(e,t){return bg(e),e.parent=t,e}function VS(e,t){const n=gg(t),r=vl(n.target,"ES2024"),s=vl(n.target,"ES2025"),o=n.rules.recursionLimit;if(!Number.isInteger(o)||o<2||o>20)throw new Error("Invalid recursionLimit; use 2-20");let i=null,a=null;if(!s){const p=[e.flags.ignoreCase];ps(e,zS,{getCurrentModI:()=>p.at(-1),popModI(){p.pop()},pushModI(h){p.push(h)},setHasCasedChar(){p.at(-1)?i=!0:a=!0}})}const l={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||i)&&!a)};let c=e;const u={accuracy:n.accuracy,appliedGlobalFlags:l,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:c,originMap:e._originMap,recursionLimit:o,useAppliedIgnoreCase:!!(!s&&i&&a),useFlagMods:s,useFlagV:r,verbose:n.verbose};function f(p){return u.lastNode=c,c=p,kS(qS[p.type],`Unexpected node type "${p.type}"`)(p,u,f)}const d={pattern:e.body.map(f).join("|"),flags:f(e.flags),options:{...e.options}};return r||(delete d.options.force.v,d.options.disable.v=!0,d.options.unicodeSetsPlugin=null),d._captureTransfers=new Map,d._hiddenCaptures=[],u.captureMap.forEach((p,h)=>{p.hidden&&d._hiddenCaptures.push(h),p.transferTo&&Ls(d._captureTransfers,p.transferTo,[]).push(h)}),d}var zS={"*":{enter({node:e},t){if(Lf(e)){const n=t.getCurrentModI();t.pushModI(e.flags?li({ignoreCase:n},e.flags).ignoreCase:n)}},exit({node:e},t){Lf(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){bc(Ne(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},n){t(),Sg(e,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:e},t){e.kind==="property"&&yg.has(e.value)&&t.setHasCasedChar()}},qS={Alternative({body:e},t,n){return e.map(n).join("")},Assertion({kind:e,negate:t}){if(e==="string_end")return"$";if(e==="string_start")return"^";if(e==="word_boundary")return t?oe`\B`:oe`\b`;throw new Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if(typeof e!="number")throw new Error("Unexpected named backref in transformed AST");if(!t.useFlagMods&&t.accuracy==="strict"&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw new Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+e},CapturingGroup(e,t,n){const{body:r,name:s,number:o}=e,i={ignoreCase:t.currentFlags.ignoreCase},a=t.originMap.get(e);return a&&(i.hidden=!0,o>a.number&&(i.transferTo=a.number)),t.captureMap.set(o,i),`(${s?`?<${s}>`:""}${r.map(n).join("|")})`},Character({value:e},t){const n=Ne(e),r=hr(e,{escDigit:t.lastNode.type==="Backreference",inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(r!==n)return r;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&bc(n)){const s=mg(n);return t.inCharClass?s.join(""):s.length>1?`[${s.join("")}]`:s[0]}return n},CharacterClass(e,t,n){const{kind:r,negate:s,parent:o}=e;let{body:i}=e;if(r==="intersection"&&!t.useFlagV)throw new Error("Use of class intersection requires min target ES2024");Qt.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&i.some(Of)&&(i=[Di(45),...i.filter(c=>!Of(c))]);const a=()=>`[${s?"^":""}${i.map(n).join(r==="intersection"?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||Qt.bugNestedClassIgnoresNegation)&&!s){const u=i.filter(f=>f.type==="CharacterClass"&&f.kind==="union"&&f.negate);if(u.length){const f=_t(),d=f.body[0];return f.parent=o,d.parent=f,i=i.filter(p=>!u.includes(p)),e.body=i,i.length?(e.parent=d,d.body.push(e)):f.body.pop(),u.forEach(p=>{const h=nr({body:[p]});p.parent=h,h.parent=f,f.body.push(h)}),n(f)}}t.inCharClass=!0;const c=a();return t.inCharClass=!1,c}const l=i[0];if(r==="union"&&!s&&l&&((!t.useFlagV||!t.verbose)&&o.kind==="union"&&!(Qt.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&o.kind==="intersection"&&i.length===1&&l.type!=="CharacterClassRange"))return i.map(n).join("");if(!t.useFlagV&&o.type==="CharacterClass")throw new Error("Use of nested character class requires min target ES2024");return a()},CharacterClassRange(e,t){const n=e.min.value,r=e.max.value,s={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},o=hr(n,s),i=hr(r,s),a=new Set;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase){const l=Sg(e);QS(l).forEach(u=>{a.add(Array.isArray(u)?`${hr(u[0],s)}-${hr(u[1],s)}`:hr(u,s))})}return`${o}-${i}${[...a].join("")}`},CharacterSet({kind:e,negate:t,value:n,key:r},s){if(e==="dot")return s.currentFlags.dotAll?s.appliedGlobalFlags.dotAll||s.useFlagMods?".":"[^]":oe`[^\n]`;if(e==="digit")return t?oe`\D`:oe`\d`;if(e==="property"){if(s.useAppliedIgnoreCase&&s.currentFlags.ignoreCase&&yg.has(n))throw new Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${t?oe`\P`:oe`\p`}{${r?`${r}=`:""}${n}}`}if(e==="word")return t?oe`\W`:oe`\w`;throw new Error(`Unexpected character set kind "${e}"`)},Flags(e,t){return(t.appliedGlobalFlags.ignoreCase?"i":"")+(e.dotAll?"s":"")+(e.sticky?"y":"")},Group({atomic:e,body:t,flags:n,parent:r},s,o){const i=s.currentFlags;n&&(s.currentFlags=li(i,n));const a=t.map(o).join("|"),l=!s.verbose&&t.length===1&&r.type!=="Quantifier"&&!e&&(!s.useFlagMods||!n)?a:`(?${ZS(e,n,s.useFlagMods)}${a})`;return s.currentFlags=i,l},LookaroundAssertion({body:e,kind:t,negate:n},r,s){return`(?${`${t==="lookahead"?"":"<"}${n?"!":"="}`}${e.map(s).join("|")})`},Quantifier(e,t,n){return n(e.body)+ek(e)},Subroutine({isRecursive:e,ref:t},n){if(!e)throw new Error("Unexpected non-recursive subroutine in transformed AST");const r=n.recursionLimit;return t===0?`(?R=${r})`:oe`\g<${t}&R=${r}>`}},KS=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),XS=new Set(["-","\\","]","^","["]),JS=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),If=new Map([[9,oe`\t`],[10,oe`\n`],[11,oe`\v`],[12,oe`\f`],[13,oe`\r`],[8232,oe`\u2028`],[8233,oe`\u2029`],[65279,oe`\uFEFF`]]),YS=new RegExp("^\\p{Cased}$","u");function bc(e){return YS.test(e)}function Sg(e,t){const n=!!(t!=null&&t.firstOnly),r=e.min.value,s=e.max.value,o=[];if(r<65&&(s===65535||s>=131071)||r===65536&&s>=131071)return o;for(let i=r;i<=s;i++){const a=Ne(i);if(!bc(a))continue;const l=mg(a).filter(c=>{const u=c.codePointAt(0);return u<r||u>s});if(l.length&&(o.push(...l),n))break}return o}function hr(e,{escDigit:t,inCharClass:n,useFlagV:r}){if(If.has(e))return If.get(e);if(e<32||e>126&&e<160||e>262143||t&&tk(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;const s=n?r?JS:XS:KS,o=Ne(e);return(s.has(o)?"\\":"")+o}function QS(e){const t=e.map(s=>s.codePointAt(0)).sort((s,o)=>s-o),n=[];let r=null;for(let s=0;s<t.length;s++)t[s+1]===t[s]+1?r??(r=t[s]):r===null?n.push(t[s]):(n.push([r,t[s]]),r=null);return n}function ZS(e,t,n){if(e)return">";let r="";if(t&&n){const{enable:s,disable:o}=t;r=(s!=null&&s.ignoreCase?"i":"")+(s!=null&&s.dotAll?"s":"")+(o?"-":"")+(o!=null&&o.ignoreCase?"i":"")+(o!=null&&o.dotAll?"s":"")}return`${r}:`}function ek({kind:e,max:t,min:n}){let r;return!n&&t===1?r="?":!n&&t===1/0?r="*":n===1&&t===1/0?r="+":n===t?r=`{${n}}`:r=`{${n},${t===1/0?"":t}}`,r+{greedy:"",lazy:"?",possessive:"+"}[e]}function Lf({type:e}){return e==="CapturingGroup"||e==="Group"||e==="LookaroundAssertion"}function tk(e){return e>47&&e<58}function Of({type:e,value:t}){return e==="Character"&&t===45}var yn,Ut,qn,bn,Kn,Os,_l,xn,nk=(xn=class extends RegExp{constructor(n,r,s){var t=(...DA)=>(super(...DA),Pn(this,Os),Pn(this,yn,new Map),Pn(this,Ut,null),Pn(this,qn),Pn(this,bn,null),Pn(this,Kn,null),$(this,"rawOptions",{}),this);const o=!!(s!=null&&s.lazyCompile);if(n instanceof RegExp){if(s)throw new Error("Cannot provide options when copying a regexp");const i=n;t(i,r),bt(this,qn,i.source),i instanceof xn&&(bt(this,yn,Xe(i,yn)),bt(this,bn,Xe(i,bn)),bt(this,Kn,Xe(i,Kn)),this.rawOptions=i.rawOptions)}else{const i={hiddenCaptures:[],strategy:null,transfers:[],...s};t(o?"":n,r),bt(this,qn,n),bt(this,yn,sk(i.hiddenCaptures,i.transfers)),bt(this,Kn,i.strategy),this.rawOptions=s??{}}o||bt(this,Ut,this)}get source(){return Xe(this,qn)||"(?:)"}exec(n){if(!Xe(this,Ut)){const{lazyCompile:o,...i}=this.rawOptions;bt(this,Ut,new xn(Xe(this,qn),this.flags,i))}const r=this.global||this.sticky,s=this.lastIndex;if(Xe(this,Kn)==="clip_search"&&r&&s){this.lastIndex=0;const o=Gi(this,Os,_l).call(this,n.slice(s));return o&&(rk(o,s,n,this.hasIndices),this.lastIndex+=s),o}return Gi(this,Os,_l).call(this,n)}},yn=new WeakMap,Ut=new WeakMap,qn=new WeakMap,bn=new WeakMap,Kn=new WeakMap,Os=new WeakSet,_l=function(n){Xe(this,Ut).lastIndex=this.lastIndex;const r=kc(xn.prototype,this,"exec").call(Xe(this,Ut),n);if(this.lastIndex=Xe(this,Ut).lastIndex,!r||!Xe(this,yn).size)return r;const s=[...r];r.length=1;let o;this.hasIndices&&(o=[...r.indices],r.indices.length=1);const i=[0];for(let a=1;a<s.length;a++){const{hidden:l,transferTo:c}=Xe(this,yn).get(a)??{};if(l?i.push(null):(i.push(r.length),r.push(s[a]),this.hasIndices&&r.indices.push(o[a])),c&&s[a]!==void 0){const u=i[c];if(!u)throw new Error(`Invalid capture transfer to "${u}"`);if(r[u]=s[a],this.hasIndices&&(r.indices[u]=o[a]),r.groups){Xe(this,bn)||bt(this,bn,ok(this.source));const f=Xe(this,bn).get(c);f&&(r.groups[f]=s[a],this.hasIndices&&(r.indices.groups[f]=o[a]))}}}return r},xn);function rk(e,t,n,r){if(e.index+=t,e.input=n,r){const s=e.indices;for(let i=0;i<s.length;i++){const a=s[i];a&&(s[i]=[a[0]+t,a[1]+t])}const o=s.groups;o&&Object.keys(o).forEach(i=>{const a=o[i];a&&(o[i]=[a[0]+t,a[1]+t])})}}function sk(e,t){const n=new Map;for(const r of e)n.set(r,{hidden:!0});for(const[r,s]of t)for(const o of s)Ls(n,o,{}).transferTo=r;return n}function ok(e){const t=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,n=new Map;let r=0,s=0,o;for(;o=t.exec(e);){const{0:i,groups:{capture:a,name:l}}=o;i==="["?r++:r?i==="]"&&r--:a&&(s++,l&&n.set(s,l))}return n}function ik(e,t){const n=ak(e,t);return n.options?new nk(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function ak(e,t){const n=gg(t),r=ag(e,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:yc}),s=LS(r,{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),o=VS(s,n),i=xS(o.pattern,{captureTransfers:o._captureTransfers,hiddenCaptures:o._hiddenCaptures,mode:"external"}),a=wS(i.pattern),l=_S(a.pattern,{captureTransfers:i.captureTransfers,hiddenCaptures:i.hiddenCaptures}),c={pattern:l.pattern,flags:`${n.hasIndices?"d":""}${n.global?"g":""}${o.flags}${o.options.disable.v?"u":"v"}`};if(n.avoidSubclass){if(n.lazyCompileLength!==1/0)throw new Error("Lazy compilation requires subclass")}else{const u=l.hiddenCaptures.sort((h,g)=>h-g),f=Array.from(l.captureTransfers),d=s._strategy,p=c.pattern.length>=n.lazyCompileLength;(u.length||f.length||d||p)&&(c.options={...u.length&&{hiddenCaptures:u},...f.length&&{transfers:f},...d&&{strategy:d},...p&&{lazyCompile:p}})}return c}const Mf=4294967295;class lk{constructor(t,n={}){$(this,"regexps");this.patterns=t,this.options=n;const{forgiving:r=!1,cache:s,regexConstructor:o}=n;if(!o)throw new Error("Option `regexConstructor` is not provided");this.regexps=t.map(i=>{if(typeof i!="string")return i;const a=s==null?void 0:s.get(i);if(a){if(a instanceof RegExp)return a;if(r)return null;throw a}try{const l=o(i);return s==null||s.set(i,l),l}catch(l){if(s==null||s.set(i,l),r)return null;throw l}})}findNextMatchSync(t,n,r){const s=typeof t=="string"?t:t.content,o=[];function i(a,l,c=0){return{index:a,captureIndices:l.indices.map(u=>u==null?{start:Mf,end:Mf,length:0}:{start:u[0]+c,end:u[1]+c,length:u[1]-u[0]})}}for(let a=0;a<this.regexps.length;a++){const l=this.regexps[a];if(l)try{l.lastIndex=n;const c=l.exec(s);if(!c)continue;if(c.index===n)return i(a,c,0);o.push([a,c,0])}catch(c){if(this.options.forgiving)continue;throw c}}if(o.length){const a=Math.min(...o.map(l=>l[1].index));for(const[l,c,u]of o)if(c.index===a)return i(l,c,u)}return null}}function ck(e,t){return ik(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function uk(e={}){const t=Object.assign({target:"auto",cache:new Map},e);return t.regexConstructor||(t.regexConstructor=n=>ck(n,{target:t.target})),{createScanner(n){return new lk(n,t)},createString(n){return{content:n}}}}let fk;const Yr=[];function dk(e){if(Yr.push(e),!(typeof window>"u"))return window.__NUXT_DEVTOOLS__&&Yr.forEach(t=>t(window.__NUXT_DEVTOOLS__)),Object.defineProperty(window,"__NUXT_DEVTOOLS__",{set(t){t&&Yr.forEach(n=>n(t))},get(){return fk.value},configurable:!0}),()=>{Yr.splice(Yr.indexOf(e),1)}}function kg(e){return Rl()?(sm(e),!0):!1}const Eg=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const hk=e=>typeof e<"u",pk=e=>e!=null,gk=Object.prototype.toString,mk=e=>gk.call(e)==="[object Object]",Bn=()=>{},yk=bk();function bk(){var e,t;return Eg&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function vk(...e){if(e.length!==1)return bd(...e);const t=e[0];return typeof t=="function"?vi(Am(()=>({get:t,set:Bn}))):ue(t)}function _k(e,t){function n(...r){return new Promise((s,o)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(s).catch(o)})}return n}const Tg=e=>e();function wk(e=Tg,t={}){const{initialState:n="active"}=t,r=vk(n==="active");function s(){r.value=!1}function o(){r.value=!0}const i=(...a)=>{r.value&&e(...a)};return{isActive:vi(r),pause:s,resume:o,eventFilter:i}}function Eo(e){return Array.isArray(e)?e:[e]}function Ck(e){return Hr()}function xk(e,t,n={}){const{eventFilter:r=Tg,...s}=n;return Yt(e,_k(r,t),s)}function Sk(e,t,n={}){const{eventFilter:r,initialState:s="active",...o}=n,{eventFilter:i,pause:a,resume:l,isActive:c}=wk(r,{initialState:s});return{stop:xk(e,t,{...o,eventFilter:i}),pause:a,resume:l,isActive:c}}function kk(e,t=!0,n){Ck()?Ci(e,n):t?e():sr(e)}function Ek(e,t,n){return Yt(e,t,{...n,immediate:!0})}function Tk(e={}){let t=0;const n=ue([]);function r(...i){const a=Wn({key:t++,args:i,promise:void 0,resolve:()=>{},reject:()=>{},isResolving:!1,options:e});return n.value.push(a),a.promise=new Promise((l,c)=>{a.resolve=u=>(a.isResolving=!0,l(u)),a.reject=c}).finally(()=>{a.promise=void 0;const l=n.value.indexOf(a);l!==-1&&n.value.splice(l,1)}),a.promise}function s(...i){return e.singleton&&n.value.length>0?n.value[0].promise:r(...i)}const o=Ge((i,{slots:a})=>{const l=()=>n.value.map(c=>{var u;return kn(ge,{key:c.key},(u=a.default)==null?void 0:u.call(a,c))});return e.transition?()=>kn(wb,e.transition,l):l});return o.start=s,o}const ci=Eg?window:void 0;function _r(e){var t;const n=it(e);return(t=n==null?void 0:n.$el)!=null?t:n}function gs(...e){const t=[],n=()=>{t.forEach(a=>a()),t.length=0},r=(a,l,c,u)=>(a.addEventListener(l,c,u),()=>a.removeEventListener(l,c,u)),s=Ee(()=>{const a=Eo(it(e[0])).filter(l=>l!=null);return a.every(l=>typeof l!="string")?a:void 0}),o=Ek(()=>{var a,l;return[(l=(a=s.value)==null?void 0:a.map(c=>_r(c)))!=null?l:[ci].filter(c=>c!=null),Eo(it(s.value?e[1]:e[0])),Eo(ae(s.value?e[2]:e[1])),it(s.value?e[3]:e[2])]},([a,l,c,u])=>{if(n(),!(a!=null&&a.length)||!(l!=null&&l.length)||!(c!=null&&c.length))return;const f=mk(u)?{...u}:u;t.push(...a.flatMap(d=>l.flatMap(p=>c.map(h=>r(d,p,h,f)))))},{flush:"post"}),i=()=>{o(),n()};return kg(n),i}let Df=!1;function Ak(e,t,n={}){const{window:r=ci,ignore:s=[],capture:o=!0,detectIframe:i=!1,controls:a=!1}=n;if(!r)return a?{stop:Bn,cancel:Bn,trigger:Bn}:Bn;if(yk&&!Df){Df=!0;const m={passive:!0};Array.from(r.document.body.children).forEach(b=>b.addEventListener("click",Bn,m)),r.document.documentElement.addEventListener("click",Bn,m)}let l=!0;const c=m=>it(s).some(b=>{if(typeof b=="string")return Array.from(r.document.querySelectorAll(b)).some(v=>v===m.target||m.composedPath().includes(v));{const v=_r(b);return v&&(m.target===v||m.composedPath().includes(v))}});function u(m){const b=it(m);return b&&b.$.subTree.shapeFlag===16}function f(m,b){const v=it(m),y=v.$.subTree&&v.$.subTree.children;return y==null||!Array.isArray(y)?!1:y.some(_=>_.el===b.target||b.composedPath().includes(_.el))}const d=m=>{const b=_r(e);if(m.target!=null&&!(!(b instanceof Element)&&u(e)&&f(e,m))&&!(!b||b===m.target||m.composedPath().includes(b))){if("detail"in m&&m.detail===0&&(l=!c(m)),!l){l=!0;return}t(m)}};let p=!1;const h=[gs(r,"click",m=>{p||(p=!0,setTimeout(()=>{p=!1},0),d(m))},{passive:!0,capture:o}),gs(r,"pointerdown",m=>{const b=_r(e);l=!c(m)&&!!(b&&!m.composedPath().includes(b))},{passive:!0}),i&&gs(r,"blur",m=>{setTimeout(()=>{var b;const v=_r(e);((b=r.document.activeElement)==null?void 0:b.tagName)==="IFRAME"&&!(v!=null&&v.contains(r.document.activeElement))&&t(m)},0)},{passive:!0})].filter(Boolean),g=()=>h.forEach(m=>m());return a?{stop:g,cancel:()=>{l=!1},trigger:m=>{l=!0,d(m),l=!1}}:g}function $k(e){return JSON.parse(JSON.stringify(e))}const fo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ho="__vueuse_ssr_handlers__",Rk=Pk();function Pk(){return ho in fo||(fo[ho]=fo[ho]||{}),fo[ho]}function Nk(e,t){return Rk[e]||t}function Ik(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const Lk={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Ff="vueuse-storage";function Ok(e,t,n,r={}){var s;const{flush:o="pre",deep:i=!0,listenToStorageChanges:a=!0,writeDefaults:l=!0,mergeDefaults:c=!1,shallow:u,window:f=ci,eventFilter:d,onError:p=S=>{console.error(S)},initOnMounted:h}=r,g=(u?Rr:ue)(t),m=Ee(()=>it(e));if(!n)try{n=Nk("getDefaultStorage",()=>{var S;return(S=ci)==null?void 0:S.localStorage})()}catch(S){p(S)}if(!n)return g;const b=it(t),v=Ik(b),y=(s=r.serializer)!=null?s:Lk[v],{pause:_,resume:C}=Sk(g,()=>E(g.value),{flush:o,deep:i,eventFilter:d});Yt(m,()=>T(),{flush:o});let A=!1;const N=S=>{h&&!A||T(S)},G=S=>{h&&!A||k(S)};f&&a&&(n instanceof Storage?gs(f,"storage",N,{passive:!0}):gs(f,Ff,G)),h?kk(()=>{A=!0,T()}):T();function P(S,L){if(f){const I={key:m.value,oldValue:S,newValue:L,storageArea:n};f.dispatchEvent(n instanceof Storage?new StorageEvent("storage",I):new CustomEvent(Ff,{detail:I}))}}function E(S){try{const L=n.getItem(m.value);if(S==null)P(L,null),n.removeItem(m.value);else{const I=y.write(S);L!==I&&(n.setItem(m.value,I),P(L,I))}}catch(L){p(L)}}function M(S){const L=S?S.newValue:n.getItem(m.value);if(L==null)return l&&b!=null&&n.setItem(m.value,y.write(b)),b;if(!S&&c){const I=y.read(L);return typeof c=="function"?c(I,b):v==="object"&&!Array.isArray(I)?{...b,...I}:I}else return typeof L!="string"?L:y.read(L)}function T(S){if(!(S&&S.storageArea!==n)){if(S&&S.key==null){g.value=b;return}if(!(S&&S.key!==m.value)){_();try{(S==null?void 0:S.newValue)!==y.write(g.value)&&(g.value=M(S))}catch(L){p(L)}finally{S?sr(C):C()}}}}function k(S){T(S.detail)}return g}function Ag(e,t,n,r={}){var s,o,i;const{clone:a=!1,passive:l=!1,eventName:c,deep:u=!1,defaultValue:f,shouldEmit:d}=r,p=Hr(),h=n||(p==null?void 0:p.emit)||((s=p==null?void 0:p.$emit)==null?void 0:s.bind(p))||((i=(o=p==null?void 0:p.proxy)==null?void 0:o.$emit)==null?void 0:i.bind(p==null?void 0:p.proxy));let g=c;t||(t="modelValue"),g=g||`update:${t.toString()}`;const m=y=>a?typeof a=="function"?a(y):$k(y):y,b=()=>hk(e[t])?m(e[t]):f,v=y=>{d?d(y)&&h(g,y):h(g,y)};if(l){const y=b(),_=ue(y);let C=!1;return Yt(()=>e[t],A=>{C||(C=!0,_.value=m(A),sr(()=>C=!1))}),Yt(_,A=>{!C&&(A!==e[t]||u)&&v(A)},{deep:u}),_}else return Ee({get(){return b()},set(y){v(y)}})}const ms=ue([]),po=Ok("nuxt-link-checker:show-live-inspections",!0),ys=ue([]),ts=ue(0),Un=ue(""),To=ue(null);async function $g(){wl.value&&(To.value=await wl.value("/__link-checker__/debug.json"))}const Mk="nuxt-link-checker-rpc",wl=ue(),Rg=ue(),Fr=ue(),vc=ue();dk(async e=>{var r,s;wl.value=e.host.app.$fetch;const n=(r=e.host.nuxt.vueApp._instance)==null?void 0:r.appContext.provides.linkChecker;ms.value=n.linkDb.value,ys.value=[...n.visibleLinks],vc.value=e.devtools.rpc,Rg.value=e.devtools,Un.value=cv(((s=e.host.getIframe())==null?void 0:s.src)||"").link,Fr.value=e.devtools.extendClientRpc(Mk,{queueWorking(o){ts.value=o.queueLength,ms.value=ae(n.linkDb),ys.value=[...n.visibleLinks]},updated(){ms.value=ae(n.linkDb),ys.value=[...n.visibleLinks]},filter(o){Un.value=o.link}}),Fr.value.connected(),$g()});const Cl=ue();async function Dk(){return Cl.value=await Sx({themes:[Hn(()=>import("./CVO1_9PV.js"),[],import.meta.url),Hn(()=>import("./D0r3Knsf.js"),[],import.meta.url)],langs:[Hn(()=>import("./3w_68AFy.js"),__vite__mapDeps([0,1,2]),import.meta.url),Hn(()=>import("./BMMyXqK5.js"),[],import.meta.url),Hn(()=>import("./Cp-IABpG.js"),[],import.meta.url)],engine:uk()}),Cl.value}function Pg(e,t){return Ee(()=>{var r;const n=((r=Rg.value)==null?void 0:r.colorMode)||"light";return Cl.value.codeToHtml(it(e)||"",{lang:t,theme:n==="dark"?"vitesse-dark":"vitesse-light"})||""})}const Fk=["innerHTML"],Ng=Ge({__name:"OCodeBlock",props:{code:{},lang:{},lines:{type:Boolean,default:!0},transformRendered:{}},setup(e){const t=e,n=Ee(()=>{const r=Pg(t.code,t.lang);return t.transformRendered?t.transformRendered(r.value||""):r.value});return(r,s)=>(W(),Z("pre",{class:$e(["n-code-block w-full",r.lines?"n-code-block-lines":""]),innerHTML:n.value},null,10,Fk))}}),Bk=Ge({__name:"CodeHighlight",props:{code:{},lang:{},link:{}},setup(e){const t=e;function n(s){return s.replace(t.link,`<span class="highlight">${t.link}</span>`)}const r=ue();return(s,o)=>{const i=Ng;return W(),me(i,or({ref_key:"elRef",ref:r,code:s.code,lang:s.lang,"transform-rendered":n},s.$attrs),null,16,["code","lang"])}}}),Hk={},jk={class:"n-card n-card-base"};function Uk(e,t){return W(),Z("div",jk,[Pe(e.$slots,"default")])}const _c=Us(Hk,[["render",Uk]]),Ig=Tk(),Gk={key:0,"text-sm":"",class:"lg:flex w-full gap-5"},Wk={class:"flex-shrink"},Vk={style:{"min-width":"600px"}},zk={class:"flex space-x-2"},qk={class:"opacity-90 truncate",style:{"max-width":"150px"}},Kk={class:""},Xk={class:"flex gap-2 w-full"},Jk={style:{"min-width":"150px","margin-top":"1px"}},Yk={key:0,class:"text-red-800 text-xs flex items-center font-medium dark:text-red-300"},Qk={key:1,class:"text-yellow-800 flex items-center text-xs font-medium dark:text-yellow-300"},Zk={class:"text-gray-500"},eE={class:"flex-grow"},tE={key:0},nE={op60:""},rE={key:0},sE={key:0,class:"flex gap-2 items-center w-full"},oE={key:1,class:"flex flex-col w-full"},iE={key:0},aE={flex:"",mb1:"","items-center":""},lE=Ge({__name:"LinkInspection",props:{item:{}},setup(e){const t=e;function n(o){var i;(i=vc.value)==null||i.openInEditor(o)}async function r(){await Ig.start(t.item)&&await Fr.value.applyLinkFixes(t.item.diff,t.item.link,t.item.fix)}async function s(){await Fr.value.scrollToLink(t.item.link)}return(o,i)=>{var p;const a=js,l=vp,c=nn("VTooltip"),u=sc,f=Bk,d=_c;return o.item?(W(),Z("div",Gk,[F("div",Wk,[J(l,{class:"px-2 py-1",onClick:s},{default:se(()=>[J(a,{icon:"carbon:cursor-2",class:"text-gray-500"})]),_:1})]),F("div",Vk,[F("div",zk,[J(c,null,{popper:se(()=>[fe(ke(o.item.textContent),1)]),default:se(()=>[F("div",qk,ke(o.item.textContent),1)]),_:1}),J(u,{external:"",target:"_blank",to:o.item.link,"font-mono":"",mb3:"",class:"truncate"},{default:se(()=>[fe(ke(o.item.link),1)]),_:1},8,["to"])]),F("div",Kk,[(W(!0),Z(ge,null,Vt([...o.item.error,...o.item.warning],(h,g)=>(W(),Z("div",{key:g,flex:"~ row gap-2 items-center",mb2:""},[F("div",Xk,[F("div",Jk,[h.scope==="error"?(W(),Z("div",Yk,i[0]||(i[0]=[F("span",{"i-carbon-error":"","mr-1":"","text-xs":""},null,-1),fe(" Error ")]))):(W(),Z("div",Qk,i[1]||(i[1]=[F("span",{"i-carbon-warning":"","mr-1":"","text-xs":""},null,-1),fe(" Warning ")]))),F("span",Zk,ke(h.name),1)]),F("div",eE,[F("div",null,ke(h.message),1),h.tip?(W(),Z("div",tE,[F("span",nE,ke(h.tip),1)])):Te("",!0),h.fix?(W(),Z("button",{key:1,class:"hover:shadow-lg transition mt-2 items-center gap-2 inline-flex border-green-500/50 border-1 rounded-lg shadow-sm px-3 py-1",onClick:r},[J(a,{icon:"carbon:magic-wand"}),h.fixDescription?(W(),Z("div",rE,ke(h.fixDescription),1)):Te("",!0)])):Te("",!0)])])]))),128))])]),o.item.passes?(W(),Z("div",sE,i[2]||(i[2]=[F("div",{style:{"flex-basis":"4rem"}},[F("span",{class:"text-green-800 text-xs flex items-center font-medium dark:text-green-300"},[F("span",{"i-carbon-checkmark-outline":"","mr-1":"","text-xs":""}),fe(" Pass ")])],-1)]))):(W(),Z("div",oE,[(p=o.item.sources)!=null&&p.length?Te("",!0):(W(),Z("div",iE,i[3]||(i[3]=[F("div",{class:"text-gray-500"}," No source code found. ",-1)]))),(W(!0),Z(ge,null,Vt(o.item.sources,(h,g)=>(W(),Z("div",{key:g,mb4:""},[F("div",aE,[J(u,{external:"",type:"button",op50:"","text-xs":"","font-mono":"",link:h.filepath,class:"cursor-pointer",onClick:Rb(m=>n(h.filepath),["prevent"])},{default:se(()=>[fe(ke(h.filepath),1)]),_:2},1032,["link","onClick"])]),(W(!0),Z(ge,null,Vt(h.previews,(m,b)=>(W(),me(d,{key:b,"items-center":"","justify-between":"","of-hidden":""},{default:se(()=>[J(f,{link:o.item.link,code:m.code,lang:"vue-html",class:"overflow-auto",style:Jt({"--start":Math.max(m.lineNumber-2,1)})},null,8,["link","code","style"])]),_:2},1024))),128))]))),128))]))])):Te("",!0)}}}),cE={"text-sm":"",class:"flex w-full gap-5"},uE={style:{"min-width":"600px"}},fE=Ge({__name:"LinkPassing",props:{item:{}},setup(e){return(t,n)=>{const r=sc;return W(),Z("div",cE,[F("div",uE,[J(r,{external:"",target:"_blank",to:t.item.link,"font-mono":"",mb3:""},{default:se(()=>[fe(ke(t.item.link),1)]),_:1},8,["to"])]),n[0]||(n[0]=F("div",{class:"flex gap-2 items-center w-full"},[F("div",{style:{"flex-basis":"4rem"}},[F("span",{class:"text-green-800 text-xs flex items-center font-medium dark:text-green-300"},[F("span",{"i-carbon-checkmark-outline":"","mr-1":"","text-xs":""}),fe(" Pass ")])])],-1))])}}}),dE={flex:"~ gap-3","items-center":""},hE={__name:"NIconTitle",props:{icon:{type:String,required:!1},text:{type:String,required:!1}},setup(e){return(t,n)=>(W(),Z("div",dE,[e.icon?(W(),Z("div",{key:0,class:$e(e.icon)},null,2)):Te("",!0),Pe(t.$slots,"default",{},()=>[F("div",null,ke(e.text),1)])]))}},pE=["open"],gE={"text-base":""},mE={key:0,"text-sm":"",op50:""},yE=Ge({__name:"OSectionBlock",props:{icon:{},text:{},description:{},containerClass:{default:""},headerClass:{},collapse:{type:Boolean,default:!0},open:{type:Boolean,default:!0},padding:{type:[Boolean,String],default:!0}},setup(e){const n=Ag(e,"open");function r(s){n.value=s.target.open}return(s,o)=>{const i=js,a=hE;return W(),Z(ge,null,[F("details",{open:ae(n),onToggle:r},[F("summary",{class:$e(["cursor-pointer select-none n-bg-active hover:bg-active p4 rounded transition-all",s.collapse?"":"pointer-events-none"])},[J(a,{icon:s.icon,text:s.text,"text-xl":"",transition:"",class:$e([ae(n)?"op100":"op60",s.headerClass])},{default:se(()=>[F("div",null,[F("div",gE,[Pe(s.$slots,"text",{},()=>[fe(ke(s.text),1)],!0)]),s.description||s.$slots.description?(W(),Z("div",mE,[Pe(s.$slots,"description",{},()=>[fe(ke(s.description),1)],!0)])):Te("",!0)]),o[0]||(o[0]=F("div",{class:"flex-auto"},null,-1)),Pe(s.$slots,"actions",{},void 0,!0),s.collapse?(W(),me(i,{key:0,icon:"carbon-chevron-down",class:"chevron","cursor-pointer":"","place-self-start":"","text-base":"",op75:"",transition:"","duration-500":""})):Te("",!0)]),_:3,__:[0]},8,["icon","text","class"])],2),F("div",{class:$e(["flex flex-col flex-gap2 pb6 pt2",typeof s.padding=="string"?s.padding:s.padding?"px4":""])},[Pe(s.$slots,"details",{},void 0,!0),F("div",{class:$e([s.containerClass,"mt1"])},[Pe(s.$slots,"default",{},void 0,!0)],2),Pe(s.$slots,"footer",{},void 0,!0)],2)],40,pE),o[1]||(o[1]=F("div",{class:"x-divider"},null,-1))],64)}}}),bE=Us(yE,[["__scopeId","data-v-348c1d92"]]),vE=Ge({__name:"CodeDiff",props:{code:{},lang:{},diff:{}},setup(e){const t=e,n=ue(t.diff.added[0]-2);function r(o){let i=0;const a=new Set;return o.replace(/class="shiki/,'class="shiki diff').replace(/class="line"/g,c=>{i++;const u=t.diff.added.includes(i-1),f=t.diff.removed.includes(i-1);if(u||f)for(let d=i-3;d<i+3;d++)d>=0&&a.add(d);return u?'class="line line-added"':f?'class="line line-removed"':c}).replace(/<code>([\s\S]*)<\/code>/,(c,u)=>`<code>${u.split(`
|
|
171
|
+
`).filter((p,h)=>a.has(h+1)).join(`
|
|
172
|
+
`)}</code>`)}const s=ue();return(o,i)=>{const a=Ng;return W(),me(a,{ref_key:"elRef",ref:s,code:o.diff.result,lang:o.lang,"transform-rendered":r,style:Jt(`--start: ${n.value};`)},null,8,["code","lang","style"])}}}),_E={class:"n-tip n-tip-base"},wE={__name:"NTip",props:{icon:{type:String,required:!1}},setup(e){return(t,n)=>{const r=js;return W(),Z("div",_E,[Pe(t.$slots,"icon",{},()=>[e.icon?(W(),me(r,{key:0,icon:e.icon,class:"n-tip-icon"},null,8,["icon"])):Te("",!0)]),F("div",null,[Pe(t.$slots,"default")])])}}};/*!
|
|
173
|
+
* tabbable 6.2.0
|
|
174
|
+
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
175
|
+
*/var Lg=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],ui=Lg.join(","),Og=typeof Element>"u",rr=Og?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,fi=!Og&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},di=function e(t,n){var r;n===void 0&&(n=!0);var s=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),o=s===""||s==="true",i=o||n&&t&&e(t.parentNode);return i},CE=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},Mg=function(t,n,r){if(di(t))return[];var s=Array.prototype.slice.apply(t.querySelectorAll(ui));return n&&rr.call(t,ui)&&s.unshift(t),s=s.filter(r),s},Dg=function e(t,n,r){for(var s=[],o=Array.from(t);o.length;){var i=o.shift();if(!di(i,!1))if(i.tagName==="SLOT"){var a=i.assignedElements(),l=a.length?a:i.children,c=e(l,!0,r);r.flatten?s.push.apply(s,c):s.push({scopeParent:i,candidates:c})}else{var u=rr.call(i,ui);u&&r.filter(i)&&(n||!t.includes(i))&&s.push(i);var f=i.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(i),d=!di(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(i));if(f&&d){var p=e(f===!0?i.children:f.children,!0,r);r.flatten?s.push.apply(s,p):s.push({scopeParent:i,candidates:p})}else o.unshift.apply(o,i.children)}}return s},Fg=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Gn=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||CE(t))&&!Fg(t)?0:t.tabIndex},xE=function(t,n){var r=Gn(t);return r<0&&n&&!Fg(t)?0:r},SE=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},Bg=function(t){return t.tagName==="INPUT"},kE=function(t){return Bg(t)&&t.type==="hidden"},EE=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},TE=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},AE=function(t){if(!t.name)return!0;var n=t.form||fi(t),r=function(a){return n.querySelectorAll('input[type="radio"][name="'+a+'"]')},s;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")s=r(window.CSS.escape(t.name));else try{s=r(t.name)}catch(i){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",i.message),!1}var o=TE(s,t.form);return!o||o===t},$E=function(t){return Bg(t)&&t.type==="radio"},RE=function(t){return $E(t)&&!AE(t)},PE=function(t){var n,r=t&&fi(t),s=(n=r)===null||n===void 0?void 0:n.host,o=!1;if(r&&r!==t){var i,a,l;for(o=!!((i=s)!==null&&i!==void 0&&(a=i.ownerDocument)!==null&&a!==void 0&&a.contains(s)||t!=null&&(l=t.ownerDocument)!==null&&l!==void 0&&l.contains(t));!o&&s;){var c,u,f;r=fi(s),s=(c=r)===null||c===void 0?void 0:c.host,o=!!((u=s)!==null&&u!==void 0&&(f=u.ownerDocument)!==null&&f!==void 0&&f.contains(s))}}return o},Bf=function(t){var n=t.getBoundingClientRect(),r=n.width,s=n.height;return r===0&&s===0},NE=function(t,n){var r=n.displayCheck,s=n.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var o=rr.call(t,"details>summary:first-of-type"),i=o?t.parentElement:t;if(rr.call(i,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof s=="function"){for(var a=t;t;){var l=t.parentElement,c=fi(t);if(l&&!l.shadowRoot&&s(l)===!0)return Bf(t);t.assignedSlot?t=t.assignedSlot:!l&&c!==t.ownerDocument?t=c.host:t=l}t=a}if(PE(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return Bf(t);return!1},IE=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var s=n.children.item(r);if(s.tagName==="LEGEND")return rr.call(n,"fieldset[disabled] *")?!0:!s.contains(t)}return!0}n=n.parentElement}return!1},hi=function(t,n){return!(n.disabled||di(n)||kE(n)||NE(n,t)||EE(n)||IE(n))},xl=function(t,n){return!(RE(n)||Gn(n)<0||!hi(t,n))},LE=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},OE=function e(t){var n=[],r=[];return t.forEach(function(s,o){var i=!!s.scopeParent,a=i?s.scopeParent:s,l=xE(a,i),c=i?e(s.candidates):a;l===0?i?n.push.apply(n,c):n.push(a):r.push({documentOrder:o,tabIndex:l,item:s,isScope:i,content:c})}),r.sort(SE).reduce(function(s,o){return o.isScope?s.push.apply(s,o.content):s.push(o.content),s},[]).concat(n)},ME=function(t,n){n=n||{};var r;return n.getShadowRoot?r=Dg([t],n.includeContainer,{filter:xl.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:LE}):r=Mg(t,n.includeContainer,xl.bind(null,n)),OE(r)},DE=function(t,n){n=n||{};var r;return n.getShadowRoot?r=Dg([t],n.includeContainer,{filter:hi.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=Mg(t,n.includeContainer,hi.bind(null,n)),r},pr=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return rr.call(t,ui)===!1?!1:xl(n,t)},FE=Lg.concat("iframe").join(","),Sa=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return rr.call(t,FE)===!1?!1:hi(n,t)};/*!
|
|
176
|
+
* focus-trap 7.6.5
|
|
177
|
+
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
178
|
+
*/function Sl(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function BE(e){if(Array.isArray(e))return Sl(e)}function HE(e,t,n){return(t=VE(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jE(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function UE(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
179
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function jf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Hf(Object(n),!0).forEach(function(r){HE(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hf(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function GE(e){return BE(e)||jE(e)||zE(e)||UE()}function WE(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function VE(e){var t=WE(e,"string");return typeof t=="symbol"?t:t+""}function zE(e,t){if(e){if(typeof e=="string")return Sl(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sl(e,t):void 0}}var Uf={activateTrap:function(t,n){if(t.length>0){var r=t[t.length-1];r!==n&&r._setPausedState(!0)}var s=t.indexOf(n);s===-1||t.splice(s,1),t.push(n)},deactivateTrap:function(t,n){var r=t.indexOf(n);r!==-1&&t.splice(r,1),t.length>0&&!t[t.length-1]._isManuallyPaused()&&t[t.length-1]._setPausedState(!1)}},qE=function(t){return t.tagName&&t.tagName.toLowerCase()==="input"&&typeof t.select=="function"},KE=function(t){return(t==null?void 0:t.key)==="Escape"||(t==null?void 0:t.key)==="Esc"||(t==null?void 0:t.keyCode)===27},bs=function(t){return(t==null?void 0:t.key)==="Tab"||(t==null?void 0:t.keyCode)===9},XE=function(t){return bs(t)&&!t.shiftKey},JE=function(t){return bs(t)&&t.shiftKey},Gf=function(t){return setTimeout(t,0)},Qr=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];return typeof t=="function"?t.apply(void 0,r):t},go=function(t){return t.target.shadowRoot&&typeof t.composedPath=="function"?t.composedPath()[0]:t.target},YE=[],QE=function(t,n){var r=(n==null?void 0:n.document)||document,s=(n==null?void 0:n.trapStack)||YE,o=jf({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:XE,isKeyBackward:JE},n),i={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},a,l=function(k,S,L){return k&&k[S]!==void 0?k[S]:o[L||S]},c=function(k,S){var L=typeof(S==null?void 0:S.composedPath)=="function"?S.composedPath():void 0;return i.containerGroups.findIndex(function(I){var V=I.container,B=I.tabbableNodes;return V.contains(k)||(L==null?void 0:L.includes(V))||B.find(function(Y){return Y===k})})},u=function(k){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},L=S.hasFallback,I=L===void 0?!1:L,V=S.params,B=V===void 0?[]:V,Y=o[k];if(typeof Y=="function"&&(Y=Y.apply(void 0,GE(B))),Y===!0&&(Y=void 0),!Y){if(Y===void 0||Y===!1)return Y;throw new Error("`".concat(k,"` was specified but was not a node, or did not return a node"))}var ve=Y;if(typeof Y=="string"){try{ve=r.querySelector(Y)}catch(_e){throw new Error("`".concat(k,'` appears to be an invalid selector; error="').concat(_e.message,'"'))}if(!ve&&!I)throw new Error("`".concat(k,"` as selector refers to no known node"))}return ve},f=function(){var k=u("initialFocus",{hasFallback:!0});if(k===!1)return!1;if(k===void 0||k&&!Sa(k,o.tabbableOptions))if(c(r.activeElement)>=0)k=r.activeElement;else{var S=i.tabbableGroups[0],L=S&&S.firstTabbableNode;k=L||u("fallbackFocus")}else k===null&&(k=u("fallbackFocus"));if(!k)throw new Error("Your focus-trap needs to have at least one focusable element");return k},d=function(){if(i.containerGroups=i.containers.map(function(k){var S=ME(k,o.tabbableOptions),L=DE(k,o.tabbableOptions),I=S.length>0?S[0]:void 0,V=S.length>0?S[S.length-1]:void 0,B=L.find(function(_e){return pr(_e)}),Y=L.slice().reverse().find(function(_e){return pr(_e)}),ve=!!S.find(function(_e){return Gn(_e)>0});return{container:k,tabbableNodes:S,focusableNodes:L,posTabIndexesFound:ve,firstTabbableNode:I,lastTabbableNode:V,firstDomTabbableNode:B,lastDomTabbableNode:Y,nextTabbableNode:function(Be){var sn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Et=S.indexOf(Be);return Et<0?sn?L.slice(L.indexOf(Be)+1).find(function($n){return pr($n)}):L.slice(0,L.indexOf(Be)).reverse().find(function($n){return pr($n)}):S[Et+(sn?1:-1)]}}}),i.tabbableGroups=i.containerGroups.filter(function(k){return k.tabbableNodes.length>0}),i.tabbableGroups.length<=0&&!u("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(i.containerGroups.find(function(k){return k.posTabIndexesFound})&&i.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},p=function(k){var S=k.activeElement;if(S)return S.shadowRoot&&S.shadowRoot.activeElement!==null?p(S.shadowRoot):S},h=function(k){if(k!==!1&&k!==p(document)){if(!k||!k.focus){h(f());return}k.focus({preventScroll:!!o.preventScroll}),i.mostRecentlyFocusedNode=k,qE(k)&&k.select()}},g=function(k){var S=u("setReturnFocus",{params:[k]});return S||(S===!1?!1:k)},m=function(k){var S=k.target,L=k.event,I=k.isBackward,V=I===void 0?!1:I;S=S||go(L),d();var B=null;if(i.tabbableGroups.length>0){var Y=c(S,L),ve=Y>=0?i.containerGroups[Y]:void 0;if(Y<0)V?B=i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:B=i.tabbableGroups[0].firstTabbableNode;else if(V){var _e=i.tabbableGroups.findIndex(function(an){var Rn=an.firstTabbableNode;return S===Rn});if(_e<0&&(ve.container===S||Sa(S,o.tabbableOptions)&&!pr(S,o.tabbableOptions)&&!ve.nextTabbableNode(S,!1))&&(_e=Y),_e>=0){var Be=_e===0?i.tabbableGroups.length-1:_e-1,sn=i.tabbableGroups[Be];B=Gn(S)>=0?sn.lastTabbableNode:sn.lastDomTabbableNode}else bs(L)||(B=ve.nextTabbableNode(S,!1))}else{var Et=i.tabbableGroups.findIndex(function(an){var Rn=an.lastTabbableNode;return S===Rn});if(Et<0&&(ve.container===S||Sa(S,o.tabbableOptions)&&!pr(S,o.tabbableOptions)&&!ve.nextTabbableNode(S))&&(Et=Y),Et>=0){var $n=Et===i.tabbableGroups.length-1?0:Et+1,on=i.tabbableGroups[$n];B=Gn(S)>=0?on.firstTabbableNode:on.firstDomTabbableNode}else bs(L)||(B=ve.nextTabbableNode(S))}}else B=u("fallbackFocus");return B},b=function(k){var S=go(k);if(!(c(S,k)>=0)){if(Qr(o.clickOutsideDeactivates,k)){a.deactivate({returnFocus:o.returnFocusOnDeactivate});return}Qr(o.allowOutsideClick,k)||k.preventDefault()}},v=function(k){var S=go(k),L=c(S,k)>=0;if(L||S instanceof Document)L&&(i.mostRecentlyFocusedNode=S);else{k.stopImmediatePropagation();var I,V=!0;if(i.mostRecentlyFocusedNode)if(Gn(i.mostRecentlyFocusedNode)>0){var B=c(i.mostRecentlyFocusedNode),Y=i.containerGroups[B].tabbableNodes;if(Y.length>0){var ve=Y.findIndex(function(_e){return _e===i.mostRecentlyFocusedNode});ve>=0&&(o.isKeyForward(i.recentNavEvent)?ve+1<Y.length&&(I=Y[ve+1],V=!1):ve-1>=0&&(I=Y[ve-1],V=!1))}}else i.containerGroups.some(function(_e){return _e.tabbableNodes.some(function(Be){return Gn(Be)>0})})||(V=!1);else V=!1;V&&(I=m({target:i.mostRecentlyFocusedNode,isBackward:o.isKeyBackward(i.recentNavEvent)})),h(I||i.mostRecentlyFocusedNode||f())}i.recentNavEvent=void 0},y=function(k){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;i.recentNavEvent=k;var L=m({event:k,isBackward:S});L&&(bs(k)&&k.preventDefault(),h(L))},_=function(k){(o.isKeyForward(k)||o.isKeyBackward(k))&&y(k,o.isKeyBackward(k))},C=function(k){KE(k)&&Qr(o.escapeDeactivates,k)!==!1&&(k.preventDefault(),a.deactivate())},A=function(k){var S=go(k);c(S,k)>=0||Qr(o.clickOutsideDeactivates,k)||Qr(o.allowOutsideClick,k)||(k.preventDefault(),k.stopImmediatePropagation())},N=function(){if(i.active)return Uf.activateTrap(s,a),i.delayInitialFocusTimer=o.delayInitialFocus?Gf(function(){h(f())}):h(f()),r.addEventListener("focusin",v,!0),r.addEventListener("mousedown",b,{capture:!0,passive:!1}),r.addEventListener("touchstart",b,{capture:!0,passive:!1}),r.addEventListener("click",A,{capture:!0,passive:!1}),r.addEventListener("keydown",_,{capture:!0,passive:!1}),r.addEventListener("keydown",C),a},G=function(){if(i.active)return r.removeEventListener("focusin",v,!0),r.removeEventListener("mousedown",b,!0),r.removeEventListener("touchstart",b,!0),r.removeEventListener("click",A,!0),r.removeEventListener("keydown",_,!0),r.removeEventListener("keydown",C),a},P=function(k){var S=k.some(function(L){var I=Array.from(L.removedNodes);return I.some(function(V){return V===i.mostRecentlyFocusedNode})});S&&h(f())},E=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(P):void 0,M=function(){E&&(E.disconnect(),i.active&&!i.paused&&i.containers.map(function(k){E.observe(k,{subtree:!0,childList:!0})}))};return a={get active(){return i.active},get paused(){return i.paused},activate:function(k){if(i.active)return this;var S=l(k,"onActivate"),L=l(k,"onPostActivate"),I=l(k,"checkCanFocusTrap");I||d(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=p(r),S==null||S();var V=function(){I&&d(),N(),M(),L==null||L()};return I?(I(i.containers.concat()).then(V,V),this):(V(),this)},deactivate:function(k){if(!i.active)return this;var S=jf({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},k);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,G(),i.active=!1,i.paused=!1,M(),Uf.deactivateTrap(s,a);var L=l(S,"onDeactivate"),I=l(S,"onPostDeactivate"),V=l(S,"checkCanReturnFocus"),B=l(S,"returnFocus","returnFocusOnDeactivate");L==null||L();var Y=function(){Gf(function(){B&&h(g(i.nodeFocusedBeforeActivation)),I==null||I()})};return B&&V?(V(g(i.nodeFocusedBeforeActivation)).then(Y,Y),this):(Y(),this)},pause:function(k){return i.active?(i.manuallyPaused=!0,this._setPausedState(!0,k)):this},unpause:function(k){return i.active?(i.manuallyPaused=!1,s[s.length-1]!==this?this:this._setPausedState(!1,k)):this},updateContainerElements:function(k){var S=[].concat(k).filter(Boolean);return i.containers=S.map(function(L){return typeof L=="string"?r.querySelector(L):L}),i.active&&d(),M(),this}},Object.defineProperties(a,{_isManuallyPaused:{value:function(){return i.manuallyPaused}},_setPausedState:{value:function(k,S){if(i.paused===k)return this;if(i.paused=k,k){var L=l(S,"onPause"),I=l(S,"onPostPause");L==null||L(),G(),M(),I==null||I()}else{var V=l(S,"onUnpause"),B=l(S,"onPostUnpause");V==null||V(),d(),N(),M(),B==null||B()}return this}}}),a.updateContainerElements(t),a};function ZE(e,t={}){let n;const{immediate:r,...s}=t,o=Rr(!1),i=Rr(!1),a=d=>n&&n.activate(d),l=d=>n&&n.deactivate(d),c=()=>{n&&(n.pause(),i.value=!0)},u=()=>{n&&(n.unpause(),i.value=!1)},f=Ee(()=>{const d=it(e);return Eo(d).map(p=>{const h=it(p);return typeof h=="string"?h:_r(h)}).filter(pk)});return Yt(f,d=>{d.length&&(n=QE(d,{...s,onActivate(){o.value=!0,t.onActivate&&t.onActivate()},onDeactivate(){o.value=!1,t.onDeactivate&&t.onDeactivate()}}),r&&a())},{flush:"post"}),kg(()=>l()),{hasFocus:o,isPaused:i,activate:a,deactivate:l,pause:c,unpause:u}}const eT={inheritAttrs:!1},tT=Object.assign(eT,{__name:"NDialog",props:{modelValue:{type:Boolean,required:!1,default:!1},dim:{type:Boolean,required:!1,default:!0},autoClose:{type:Boolean,required:!1,default:!0}},emits:["close","update:modelValue"],setup(e,{emit:t}){const n=e,r=t,s=Ag(n,"modelValue",r,{passive:!0}),o=ue(null),i=ue(!1),{activate:a,deactivate:l}=ZE(Ee(()=>o.value||document.body),{immediate:!1});return Qd(()=>{!i.value&&s.value&&(i.value=!0),s.value&&o.value?sr(a):l()}),Ak(o,()=>{n.modelValue&&n.autoClose&&(s.value=!1,r("close"))},{ignore:["a","button","summary"]}),(c,u)=>{const f=_c;return i.value?(W(),me(Gm,{key:0,to:"body"},[Cd(F("div",{class:$e(["fixed inset-0 z-100 flex items-center justify-center n-transition n-glass-effect",[ae(s)?"":"op0 pointer-events-none visibility-none"]]),role:"dialog","aria-modal":"true"},[F("div",{class:$e(["absolute inset-0 -z-1",[e.dim?"glass-effect":""]])},null,2),J(f,or(c.$attrs,{ref_key:"card",ref:o,class:"max-h-screen of-auto"}),{default:se(()=>[Pe(c.$slots,"default")]),_:3},16)],2),[[ob,ae(s)]])])):Te("",!0)}}}),nT={"my-10":""},rT={flex:"~ col gap-2","w-200":"",p4:"",border:"t base"},sT={flex:"","items-center":"","gap-2":"",mb1:""},oT={"text-sm":"","gap-2":"",flex:"","flex-row":"",mb1:"","justify-end":""},iT={class:"text-green-500"},aT={class:"text-red-500"},lT=["onClick"],cT={flex:"~ col gap-1 items-start",px4:"",py2:""},uT={flex:"~ gap-3",mt2:"","justify-end":""},fT=Ge({__name:"FixActionDialog",setup(e){function t(r){var s;(s=vc.value)==null||s.openInEditor(r)}function n(r,s){s(!1)}return(r,s)=>{const o=vE,i=_c,a=wE,l=vp,c=tT;return W(),me(ae(Ig),null,{default:se(({resolve:u,args:f})=>[F("div",nT,[J(c,{"model-value":!0,style:{"max-height":"80vh"},"onUpdate:modelValue":d=>n("a",u),onClose:d=>n("b",u)},{default:se(()=>[F("div",rT,[s[3]||(s[3]=F("h2",{"text-xl":"",class:"text-primary"}," Confirm Code Diff ",-1)),(W(!0),Z(ge,null,Vt(f[0].diff,(d,p)=>(W(),Z("div",{key:p},[F("div",sT,[F("div",oT,[F("span",iT,"+"+ke(d.diff.added.length),1),F("span",aT,"-"+ke(d.diff.removed.length),1)]),F("button",{type:"button",op50:"","text-xs":"","font-mono":"",onClick:h=>t(d.filepath)},ke(d.filepath),9,lT)]),(W(),me(i,{key:p,"items-center":"","justify-between":"","of-hidden":"","max-h-50":"",style:{overflow:"auto"}},{default:se(()=>[F("div",cT,[J(o,or({ref_for:!0},d,{lang:"vue-html",class:"overflow-auto"}),null,16)])]),_:2},1024))]))),128)),F("div",uT,[J(a,{n:"sm purple","flex-auto":"",icon:"carbon-chemistry"},{default:se(()=>s[0]||(s[0]=[fe(" Experimental. ")])),_:1,__:[0]}),J(l,{onClick:d=>u(!1)},{default:se(()=>s[1]||(s[1]=[fe(" Cancel ")])),_:2,__:[1]},1032,["onClick"]),J(l,{n:"solid",capitalize:"",class:"n-blue",onClick:d=>u(!0)},{default:se(()=>s[2]||(s[2]=[fe(" Apply Fix ")])),_:2,__:[2]},1032,["onClick"])])])]),_:2},1032,["onUpdate:modelValue","onClose"])])]),_:1})}}}),dT=window.setInterval,hT={class:"relative n-bg-base flex flex-col"},pT={class:"sticky top-0 z-2 px-4 pt-4"},gT={class:"flex justify-between items-start",mb2:""},mT={class:"flex space-x-5"},yT={"text-xl":"",flex:"","items-center":"","gap-2":""},bT={class:"flex items-center space-x-3 text-xl"},vT={class:"n-select-tabs flex flex-inline flex-wrap items-center border n-border-base rounded-lg n-bg-base"},_T={class:"px-5 py-2"},wT={"text-lg":"",flex:"","items-center":""},CT={class:"px-5 py-2"},xT={"text-lg":"",flex:"","items-center":""},ST={class:"px-5 py-2"},kT={"text-lg":"",flex:"","items-center":""},ET={class:"px-5 py-2"},TT={"text-lg":"",flex:"","items-center":""},AT=["value","title"],$T={class:"items-center space-x-3 hidden lg:flex"},RT={class:"opacity-80 text-sm"},PT={class:"opacity-80 text-sm"},NT={href:"https://nuxtseo.com",target:"_blank",class:"flex items-end gap-1.5 font-semibold text-xl dark:text-white font-title"},IT={class:"flex-row flex p4 h-full",style:{"min-height":"calc(100vh - 64px)"}},LT={class:"mx-auto flex flex-col w-full bg-white dark:bg-black dark:bg-dark-700 bg-light-200"},OT={key:1},MT={key:0,"text-sm":"",flex:"","items-center":"","gap-1":"",mb6:""},DT={key:1,class:""},FT={flex:"","items-center":"",p3:"","gap-3":"","text-sm":""},BT={key:0,mr5:""},HT={key:1,"text-xs":"",flex:"","items-center":"","gap-1":""},jT={key:2,"text-xs":"",flex:"","items-center":"","gap-1":""},UT={key:3,class:"flex items-center gap-1"},GT={key:2},WT={key:2},VT={class:"opacity-80 text-base mb-1"},zT={class:"opacity-80 text-base mb-1"},qT={key:3},KT={class:"opacity-80 text-base mb-1"},XT={class:"px-3 py-2 space-y-5"},JT=["innerHTML"],YT={key:4,class:"h-full max-h-full overflow-hidden"},QT=Ge({__name:"app",async setup(e){let t,n;[t,n]=iy(()=>Dk()),await t,n();const r=ue(0),s=dT(()=>{r.value++,r.value>=3&&clearInterval(s)},2e3),o=Ee(()=>{const g=ys.value;let m=[...ms.value];return Un.value?m=m.filter(b=>b.link===Un.value):m=m.filter(b=>g.includes(b.link)),m.sort((b,v)=>b.fix&&!v.fix?1:-1)}),i=Ee(()=>{let g=0;return o.value.map(m=>m.error.length).forEach(m=>{g+=m}),g}),a=Ee(()=>{let g=0;return o.value.map(m=>m.warning.length).forEach(m=>{g+=m}),g}),l=Ee(()=>ys.value.length),c=Ee(()=>o.value.filter(g=>g.passes).length);async function u(){ms.value=[],ts.value=0,await Fr.value.reset()}async function f(){po.value=!po.value,await Fr.value.toggleLiveInspections(po.value)}const d=ue("inspections"),p=ue(!1);async function h(){p.value=!0,To.value=null,await u(),await $g(),setTimeout(()=>{p.value=!1},300)}return(g,m)=>{const b=js,v=C0,y=nn("VTooltip"),_=sc,C=N0,A=D0,N=lE,G=fE,P=bE;return W(),Z("div",hT,[F("header",pT,[F("div",gT,[F("div",mT,[F("h1",yT,[J(b,{icon:"carbon:cloud-satellite-link",class:"text-blue-300 hidden md:block"}),m[2]||(m[2]=fe(" Link Checker ")),J(v,{class:"hidden md:block text-sm"},{default:se(()=>{var E,M;return[fe(ke((M=(E=ae(To))==null?void 0:E.runtimeConfig)==null?void 0:M.version),1)]}),_:1})])]),F("div",bT,[F("fieldset",vT,[(W(),Z(ge,null,Vt(["inspections","links","debug","docs"],(E,M)=>F("label",{key:M,class:$e(["relative n-border-base hover:n-bg-active cursor-pointer",[M?"border-l n-border-base ml--1px":"",E===d.value?"n-bg-active":""]])},[E==="inspections"?(W(),Z("div",{key:0,class:$e([E===d.value?"":"op35"])},[J(y,null,{popper:se(()=>m[3]||(m[3]=[fe(" Inspections ")])),default:se(()=>[F("div",_T,[F("h2",wT,[J(b,{icon:"carbon:warning-diamond opacity-50"}),J(v,{class:"text-sm"},{default:se(()=>[fe(ke(i.value+a.value),1)]),_:1})])])]),_:1})],2)):Te("",!0),E==="links"?(W(),Z("div",{key:1,class:$e([E===d.value?"":"op35"])},[J(y,null,{popper:se(()=>m[4]||(m[4]=[fe(" Valid Links ")])),default:se(()=>[F("div",CT,[F("h2",xT,[J(b,{icon:"carbon:checkmark-outline opacity-50"}),J(v,{class:"text-sm"},{default:se(()=>[fe(ke(c.value),1)]),_:1})])])]),_:1})],2)):E==="debug"?(W(),Z("div",{key:2,class:$e([E===d.value?"":"op35"])},[J(y,null,{popper:se(()=>m[5]||(m[5]=[fe(" Debug ")])),default:se(()=>[F("div",ST,[F("h2",kT,[J(b,{icon:"carbon:debug opacity-50"})])])]),_:1})],2)):E==="docs"?(W(),Z("div",{key:3,class:$e([E===d.value?"":"op35"])},[J(y,null,{popper:se(()=>m[6]||(m[6]=[fe(" Documentation ")])),default:se(()=>[F("div",ET,[F("h2",TT,[J(b,{icon:"carbon:book opacity-50"})])])]),_:1})],2)):Te("",!0),Cd(F("input",{"onUpdate:modelValue":m[0]||(m[0]=T=>d.value=T),type:"radio",value:E,title:E,class:"absolute cursor-pointer pointer-events-none inset-0 op-0.1"},null,8,AT),[[Eb,d.value]])],2)),64))]),J(y,null,{popper:se(()=>m[7]||(m[7]=[fe(" Refresh ")])),default:se(()=>[F("button",{"text-lg":"",type:"button",class:"n-icon-button n-button n-transition n-disabled:n-disabled",onClick:h},[J(b,{icon:"carbon:reset",class:"group-hover:text-green-500"})])]),_:1}),F("button",{class:"mr-5 hover:shadow-lg text-sm transition items-center gap-2 inline-flex border-green-500/50 border-1 rounded-lg shadow-sm px-3 py-1",onClick:f},[J(b,{icon:`${ae(po)?"carbon:view-off":"carbon:view"}`},null,8,["icon"]),m[8]||(m[8]=F("div",{class:"hidden md:block"}," Inspections ",-1))])]),F("div",$T,[F("div",RT,[J(_,{href:"https://github.com/sponsors/harlan-zw",target:"_blank"},{default:se(()=>[J(b,{icon:"carbon:favorite",class:"mr-[2px]"}),m[9]||(m[9]=fe(" Sponsor "))]),_:1,__:[9]})]),F("div",PT,[J(_,{href:"https://github.com/harlan-zw/nuxt-link-checker",target:"_blank"},{default:se(()=>[J(b,{icon:"logos:github-icon",class:"mr-[2px]"}),m[10]||(m[10]=fe(" Submit an issue "))]),_:1,__:[10]})]),F("a",NT,[J(C)])])])]),F("div",IT,[F("main",LT,[p.value?(W(),me(A,{key:0})):d.value==="inspections"?(W(),Z("div",OT,[ae(Un)?(W(),Z("p",MT,[ae(ts)?(W(),me(b,{key:0,icon:"carbon:progress-bar-round",class:"animated animate-spin op50 text-xs"})):Te("",!0),J(b,{icon:"carbon:filter"}),m[11]||(m[11]=fe(" Filtering Results. ")),F("button",{type:"button",underline:"",onClick:m[1]||(m[1]=E=>Un.value=!1)}," Show All ")])):Te("",!0),ae(Un)?(W(),Z("div",GT,[(W(!0),Z(ge,null,Vt(o.value,(E,M)=>(W(),me(N,{key:M,item:E},null,8,["item"]))),128))])):(W(),Z("div",DT,[F("div",FT,[ae(ts)?(W(),Z("div",BT,[J(b,{icon:"carbon:progress-bar-round",class:"animated animate-spin op50 text-xs"}),fe(" "+ke(Math.round(Math.abs(ae(ts)-l.value)/l.value*100))+"% ",1)])):Te("",!0),i.value?(W(),Z("div",HT,[J(b,{icon:"carbon:error","h-4":"","w-4":"","text-red-500":""}),F("div",null,ke(i.value)+" Errors ",1)])):Te("",!0),a.value?(W(),Z("div",jT,[J(b,{icon:"carbon:warning","h-4":"","w-4":"","text-yellow-500":""}),F("div",null,ke(a.value)+" Warnings ",1)])):Te("",!0),!a.value&&!i.value?(W(),Z("div",UT,[J(b,{icon:"carbon:checkmark-outline","h-4":"","w-4":"","text-green-500":""}),m[12]||(m[12]=F("div",null,"All links passing",-1))])):Te("",!0)]),F("div",null,[(W(!0),Z(ge,null,Vt([...o.value.filter(E=>E.error.length),...o.value.filter(E=>E.warning.length)],(E,M)=>(W(),me(N,{key:M,item:E,class:"odd:bg-white dark:odd:bg-[#151515] even:bg-slate-50 dark:even:bg-[#222223] p-2"},null,8,["item"]))),128))])])),J(fT)])):d.value==="links"?(W(),Z("div",WT,[J(P,null,{text:se(()=>[F("h3",VT,[J(b,{icon:"carbon:chart-network",class:"mr-1"}),m[13]||(m[13]=fe(" Internal Links "))])]),default:se(()=>[(W(!0),Z(ge,null,Vt(o.value.filter(E=>E.passes&&E.link.startsWith("/")),(E,M)=>(W(),me(G,{key:M,item:E},null,8,["item"]))),128))]),_:1}),J(P,null,{text:se(()=>[F("h3",zT,[J(b,{icon:"carbon:launch",class:"mr-1"}),m[14]||(m[14]=fe(" External Links "))])]),default:se(()=>[(W(!0),Z(ge,null,Vt(o.value.filter(E=>E.passes&&!E.link.startsWith("/")),(E,M)=>(W(),me(G,{key:M,item:E},null,8,["item"]))),128))]),_:1})])):d.value==="debug"?(W(),Z("div",qT,[J(P,null,{text:se(()=>[F("h3",KT,[J(b,{icon:"carbon:settings",class:"mr-1"}),m[15]||(m[15]=fe(" Runtime Config "))])]),default:se(()=>{var E;return[F("div",XT,[F("pre",{"of-auto":"","h-full":"","text-sm":"",style:{"white-space":"break-spaces"},innerHTML:ae(Pg)(JSON.stringify(((E=ae(To))==null?void 0:E.runtimeConfig)||{},null,2),"json").value},null,8,JT)])]}),_:1})])):d.value==="docs"?(W(),Z("div",YT,m[16]||(m[16]=[F("iframe",{src:"https://nuxtseo.com/link-checker",class:"w-full h-full border-none",style:{"min-height":"calc(100vh - 100px)"}},null,-1)]))):Te("",!0),m[17]||(m[17]=F("div",{class:"flex-auto"},null,-1))])])])}}}),ZT={__name:"nuxt-error-page",props:{error:Object},setup(e){const n=e.error;n.stack&&n.stack.split(`
|
|
180
|
+
`).splice(1).map(f=>({text:f.replace("webpack:/","").replace(".vue",".js").trim(),internal:f.includes("node_modules")&&!f.includes(".cache")||f.includes("internal")||f.includes("new Promise")})).map(f=>`<span class="stack${f.internal?" internal":""}">${f.text}</span>`).join(`
|
|
181
|
+
`);const r=Number(n.statusCode||500),s=r===404,o=n.statusMessage??(s?"Page Not Found":"Internal Server Error"),i=n.message||n.toString(),a=void 0,u=s?Mc(()=>Hn(()=>import("./wWkaIY0j.js"),__vite__mapDeps([3,4,5]),import.meta.url)):Mc(()=>Hn(()=>import("./DhVqxY3H.js"),__vite__mapDeps([6,4,7]),import.meta.url));return(f,d)=>(W(),me(ae(u),Yf(Vl({statusCode:ae(r),statusMessage:ae(o),description:ae(i),stack:ae(a)})),null,16))}},eA={key:0},Wf={__name:"nuxt-root",setup(e){const t=()=>null,n=De(),r=n.deferHydration();if(n.isHydrating){const c=n.hooks.hookOnce("app:error",r);Ot().beforeEach(c)}const s=!1;Hd(Mh,Dh()),n.hooks.callHookWith(c=>c.map(u=>u()),"vue:setup");const o=Jl(),i=!1,a=/bot\b|chrome-lighthouse|facebookexternalhit|google\b/i;Nd((c,u,f)=>{if(n.hooks.callHook("vue:error",c,u,f).catch(d=>console.error("[nuxt] Error in `vue:error` hook",d)),a.test(navigator.userAgent))return n.hooks.callHook("app:error",c),console.error(`[nuxt] Not rendering error page for bot with user agent \`${navigator.userAgent}\`:`,c),!1;if(a_(c)&&(c.fatal||c.unhandled))return n.runWithContext(()=>o_(c)),!1});const l=!1;return(c,u)=>(W(),me(Iy,{onResolve:ae(r)},{default:se(()=>[ae(i)?(W(),Z("div",eA)):ae(o)?(W(),me(ae(ZT),{key:1,error:ae(o)},null,8,["error"])):ae(l)?(W(),me(ae(t),{key:2,context:ae(l)},null,8,["context"])):ae(s)?(W(),me(sy(ae(s)),{key:3})):(W(),me(ae(QT),{key:4}))]),_:1},8,["onResolve"]))}};let Vf;{let e;Vf=async function(){var i,a;if(e)return e;const r=!!(((i=window.__NUXT__)==null?void 0:i.serverRendered)??((a=document.getElementById("__NUXT_DATA__"))==null?void 0:a.dataset.ssr)==="true")?Ob(Wf):yh(Wf),s=Vv({vueApp:r});async function o(l){var c;await s.callHook("app:error",l),(c=s.payload).error||(c.error=Yl(l))}r.config.errorHandler=o,s.hook("app:suspense:resolve",()=>{r.config.errorHandler===o&&(r.config.errorHandler=void 0)});try{await Kv(s,b0)}catch(l){o(l)}try{await s.hooks.callHook("app:created",r),await s.hooks.callHook("app:beforeMount",r),r.mount(Uv),await s.hooks.callHook("app:mounted",r),await sr()}catch(l){o(l)}return r},e=Vf().catch(t=>{throw console.error("Error while mounting app:",t),t})}export{Us as _,F as a,J as b,Z as c,fe as d,bp as e,Xv as f,Uh as g,Hl as h,kr as i,W as o,ke as t,nA as u,se as w};
|