@nuxtjs/sitemap 7.5.0 → 7.5.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 +1 -1
- package/dist/client/404.html +1 -1
- package/dist/client/_nuxt/BZzBMR0a.js +155 -0
- package/dist/client/_nuxt/{CjT5ejtq.js → BcLzIRTJ.js} +1 -1
- package/dist/client/_nuxt/{DBmpb9dG.js → CQIolwG-.js} +1 -1
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/c9c08595-dc8d-4073-931c-6ba959692bc1.json +1 -0
- package/dist/client/_nuxt/error-404.DKXSOdpM.css +1 -0
- package/dist/client/_nuxt/error-500.rUXo3Kq4.css +1 -0
- package/dist/client/index.html +1 -1
- package/dist/client/sitemap.xml +1 -1
- package/dist/module.json +1 -1
- package/dist/runtime/server/sitemap/builder/sitemap.js +16 -13
- package/dist/runtime/server/sitemap/urlset/sources.d.ts +3 -2
- package/dist/runtime/server/sitemap/urlset/sources.js +16 -6
- package/dist/runtime/types.d.ts +1 -1
- package/dist/runtime/utils-pure.d.ts +6 -0
- package/dist/runtime/utils-pure.js +20 -0
- package/package.json +8 -7
- package/dist/client/_nuxt/FE81ed4p.js +0 -155
- package/dist/client/_nuxt/builds/meta/cbb70b0f-de73-410d-92b2-7798fa3dd9b4.json +0 -1
- package/dist/client/_nuxt/error-404.DC9fsYfS.css +0 -1
- package/dist/client/_nuxt/error-500.DPVweS-0.css +0 -1
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./BcLzIRTJ.js","./error-404.DKXSOdpM.css","./CQIolwG-.js","./error-500.rUXo3Kq4.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
(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)}})();function ga(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const pe={},Vn=[],xt=()=>{},ku=()=>!1,Yr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ma=e=>e.startsWith("onUpdate:"),je=Object.assign,ya=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ap=Object.prototype.hasOwnProperty,fe=(e,t)=>ap.call(e,t),Z=Array.isArray,qn=e=>Zr(e)==="[object Map]",Au=e=>Zr(e)==="[object Set]",ml=e=>Zr(e)==="[object Date]",Y=e=>typeof e=="function",we=e=>typeof e=="string",pt=e=>typeof e=="symbol",he=e=>e!==null&&typeof e=="object",_a=e=>(he(e)||Y(e))&&Y(e.then)&&Y(e.catch),Eu=Object.prototype.toString,Zr=e=>Eu.call(e),lp=e=>Zr(e).slice(8,-1),Tu=e=>Zr(e)==="[object Object]",ho=e=>we(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Kn=ga(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),po=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},cp=/-\w/g,it=po(e=>e.replace(cp,t=>t.slice(1).toUpperCase())),up=/\B([A-Z])/g,ln=po(e=>e.replace(up,"-$1").toLowerCase()),go=po(e=>e.charAt(0).toUpperCase()+e.slice(1)),Wo=po(e=>e?`on${go(e)}`:""),Zt=(e,t)=>!Object.is(e,t),xs=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},$u=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},fp=e=>{const t=parseFloat(e);return isNaN(t)?e:t},dp=e=>{const t=we(e)?Number(e):NaN;return isNaN(t)?e:t};let yl;const mo=()=>yl||(yl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function wn(e){if(Z(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=we(r)?mp(r):wn(r);if(s)for(const o in s)t[o]=s[o]}return t}else if(we(e)||he(e))return e}const hp=/;(?![^(]*\))/g,pp=/:([^]+)/,gp=/\/\*[^]*?\*\//g;function mp(e){const t={};return e.replace(gp,"").split(hp).forEach(n=>{if(n){const r=n.split(pp);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Ae(e){let t="";if(we(e))t=e;else if(Z(e))for(let n=0;n<e.length;n++){const r=Ae(e[n]);r&&(t+=r+" ")}else if(he(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Ru(e){if(!e)return null;let{class:t,style:n}=e;return t&&!we(t)&&(e.class=Ae(t)),n&&(e.style=wn(n)),e}const yp="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",_p=ga(yp);function Pu(e){return!!e||e===""}function bp(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Ns(e[r],t[r]);return n}function Ns(e,t){if(e===t)return!0;let n=ml(e),r=ml(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=pt(e),r=pt(t),n||r)return e===t;if(n=Z(e),r=Z(t),n||r)return n&&r?bp(e,t):!1;if(n=he(e),r=he(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||!Ns(e[i],t[i]))return!1}}return String(e)===String(t)}const Nu=e=>!!(e&&e.__v_isRef===!0),Ne=e=>we(e)?e:e==null?"":Z(e)||he(e)&&(e.toString===Eu||!Y(e.toString))?Nu(e)?Ne(e.value):JSON.stringify(e,Iu,2):String(e),Iu=(e,t)=>Nu(t)?Iu(e,t.value):qn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],o)=>(n[zo(r,o)+" =>"]=s,n),{})}:Au(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>zo(n))}:pt(t)?zo(t):he(t)&&!Z(t)&&!Tu(t)?String(t):t,zo=(e,t="")=>{var n;return pt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let Ve;class Lu{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ve,!t&&Ve&&(this.index=(Ve.scopes||(Ve.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=Ve;try{return Ve=this,t()}finally{Ve=n}}}on(){++this._on===1&&(this.prevScope=Ve,Ve=this)}off(){this._on>0&&--this._on===0&&(Ve=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 wp(e){return new Lu(e)}function Ou(){return Ve}let ye;const Vo=new WeakSet;class Mu{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,Ve&&Ve.active&&Ve.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Vo.has(this)&&(Vo.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Fu(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,_l(this),Bu(this);const t=ye,n=ft;ye=this,ft=!0;try{return this.fn()}finally{Hu(this),ye=t,ft=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)va(t);this.deps=this.depsTail=void 0,_l(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Vo.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){xi(this)&&this.run()}get dirty(){return xi(this)}}let Du=0,xr,Sr;function Fu(e,t=!1){if(e.flags|=8,t){e.next=Sr,Sr=e;return}e.next=xr,xr=e}function ba(){Du++}function wa(){if(--Du>0)return;if(Sr){let t=Sr;for(Sr=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;xr;){let t=xr;for(xr=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 Bu(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Hu(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),va(r),vp(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function xi(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ju(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ju(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Mr)||(e.globalVersion=Mr,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!xi(e))))return;e.flags|=2;const t=e.dep,n=ye,r=ft;ye=e,ft=!0;try{Bu(e);const s=e.fn(e._value);(t.version===0||Zt(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{ye=n,ft=r,Hu(e),e.flags&=-3}}function va(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)va(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function vp(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let ft=!0;const Uu=[];function Ht(){Uu.push(ft),ft=!1}function jt(){const e=Uu.pop();ft=e===void 0?!0:e}function _l(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ye;ye=void 0;try{t()}finally{ye=n}}}let Mr=0;class Cp{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 yo{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,this.__v_skip=!0}track(t){if(!ye||!ft||ye===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ye)n=this.activeLink=new Cp(ye,this),ye.deps?(n.prevDep=ye.depsTail,ye.depsTail.nextDep=n,ye.depsTail=n):ye.deps=ye.depsTail=n,Gu(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=ye.depsTail,n.nextDep=void 0,ye.depsTail.nextDep=n,ye.depsTail=n,ye.deps===n&&(ye.deps=r)}return n}trigger(t){this.version++,Mr++,this.notify(t)}notify(t){ba();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{wa()}}}function Gu(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)Gu(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Is=new WeakMap,vn=Symbol(""),Si=Symbol(""),Dr=Symbol("");function Be(e,t,n){if(ft&&ye){let r=Is.get(e);r||Is.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new yo),s.map=r,s.key=n),s.track()}}function Lt(e,t,n,r,s,o){const i=Is.get(e);if(!i){Mr++;return}const a=l=>{l&&l.trigger()};if(ba(),t==="clear")i.forEach(a);else{const l=Z(e),u=l&&ho(n);if(l&&n==="length"){const c=Number(r);i.forEach((f,d)=>{(d==="length"||d===Dr||!pt(d)&&d>=c)&&a(f)})}else switch((n!==void 0||i.has(void 0))&&a(i.get(n)),u&&a(i.get(Dr)),t){case"add":l?u&&a(i.get("length")):(a(i.get(vn)),qn(e)&&a(i.get(Si)));break;case"delete":l||(a(i.get(vn)),qn(e)&&a(i.get(Si)));break;case"set":qn(e)&&a(i.get(vn));break}}wa()}function xp(e,t){const n=Is.get(e);return n&&n.get(t)}function Ln(e){const t=ue(e);return t===e?t:(Be(t,"iterate",Dr),et(e)?t:t.map(gt))}function _o(e){return Be(e=ue(e),"iterate",Dr),e}function Kt(e,t){return At(e)?Qt(e)?tr(gt(t)):tr(t):gt(t)}const Sp={__proto__:null,[Symbol.iterator](){return qo(this,Symbol.iterator,e=>Kt(this,e))},concat(...e){return Ln(this).concat(...e.map(t=>Z(t)?Ln(t):t))},entries(){return qo(this,"entries",e=>(e[1]=Kt(this,e[1]),e))},every(e,t){return Rt(this,"every",e,t,void 0,arguments)},filter(e,t){return Rt(this,"filter",e,t,n=>n.map(r=>Kt(this,r)),arguments)},find(e,t){return Rt(this,"find",e,t,n=>Kt(this,n),arguments)},findIndex(e,t){return Rt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Rt(this,"findLast",e,t,n=>Kt(this,n),arguments)},findLastIndex(e,t){return Rt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Rt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Ko(this,"includes",e)},indexOf(...e){return Ko(this,"indexOf",e)},join(e){return Ln(this).join(e)},lastIndexOf(...e){return Ko(this,"lastIndexOf",e)},map(e,t){return Rt(this,"map",e,t,void 0,arguments)},pop(){return yr(this,"pop")},push(...e){return yr(this,"push",e)},reduce(e,...t){return bl(this,"reduce",e,t)},reduceRight(e,...t){return bl(this,"reduceRight",e,t)},shift(){return yr(this,"shift")},some(e,t){return Rt(this,"some",e,t,void 0,arguments)},splice(...e){return yr(this,"splice",e)},toReversed(){return Ln(this).toReversed()},toSorted(e){return Ln(this).toSorted(e)},toSpliced(...e){return Ln(this).toSpliced(...e)},unshift(...e){return yr(this,"unshift",e)},values(){return qo(this,"values",e=>Kt(this,e))}};function qo(e,t,n){const r=_o(e),s=r[t]();return r!==e&&!et(e)&&(s._next=s.next,s.next=()=>{const o=s._next();return o.done||(o.value=n(o.value)),o}),s}const kp=Array.prototype;function Rt(e,t,n,r,s,o){const i=_o(e),a=i!==e&&!et(e),l=i[t];if(l!==kp[t]){const f=l.apply(e,o);return a?gt(f):f}let u=n;i!==e&&(a?u=function(f,d){return n.call(this,Kt(e,f),d,e)}:n.length>2&&(u=function(f,d){return n.call(this,f,d,e)}));const c=l.call(i,u,r);return a&&s?s(c):c}function bl(e,t,n,r){const s=_o(e);let o=n;return s!==e&&(et(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,Kt(e,a),l,e)}),s[t](o,...r)}function Ko(e,t,n){const r=ue(e);Be(r,"iterate",Dr);const s=r[t](...n);return(s===-1||s===!1)&&bo(n[0])?(n[0]=ue(n[0]),r[t](...n)):s}function yr(e,t,n=[]){Ht(),ba();const r=ue(e)[t].apply(e,n);return wa(),jt(),r}const Ap=ga("__proto__,__v_isRef,__isVue"),Wu=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(pt));function Ep(e){pt(e)||(e=String(e));const t=ue(this);return Be(t,"has",e),t.hasOwnProperty(e)}class zu{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?Dp:Xu:o?Ku:qu).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=Z(t);if(!s){let l;if(i&&(l=Sp[n]))return l;if(n==="hasOwnProperty")return Ep}const a=Reflect.get(t,n,ve(t)?t:r);if((pt(n)?Wu.has(n):Ap(n))||(s||Be(t,"get",n),o))return a;if(ve(a)){const l=i&&ho(n)?a:a.value;return s&&he(l)?Fr(l):l}return he(a)?s?Fr(a):sn(a):a}}class Vu extends zu{constructor(t=!1){super(!1,t)}set(t,n,r,s){let o=t[n];const i=Z(t)&&ho(n);if(!this._isShallow){const u=At(o);if(!et(r)&&!At(r)&&(o=ue(o),r=ue(r)),!i&&ve(o)&&!ve(r))return u||(o.value=r),!0}const a=i?Number(n)<t.length:fe(t,n),l=Reflect.set(t,n,r,ve(t)?t:s);return t===ue(s)&&(a?Zt(r,o)&&Lt(t,"set",n,r):Lt(t,"add",n,r)),l}deleteProperty(t,n){const r=fe(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&r&&Lt(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!pt(n)||!Wu.has(n))&&Be(t,"has",n),r}ownKeys(t){return Be(t,"iterate",Z(t)?"length":vn),Reflect.ownKeys(t)}}class Tp extends zu{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const $p=new Vu,Rp=new Tp,Pp=new Vu(!0);const ki=e=>e,ss=e=>Reflect.getPrototypeOf(e);function Np(e,t,n){return function(...r){const s=this.__v_raw,o=ue(s),i=qn(o),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,u=s[e](...r),c=n?ki:t?tr:gt;return!t&&Be(o,"iterate",l?Si:vn),{next(){const{value:f,done:d}=u.next();return d?{value:f,done:d}:{value:a?[c(f[0]),c(f[1])]:c(f),done:d}},[Symbol.iterator](){return this}}}}function os(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Ip(e,t){const n={get(s){const o=this.__v_raw,i=ue(o),a=ue(s);e||(Zt(s,a)&&Be(i,"get",s),Be(i,"get",a));const{has:l}=ss(i),u=t?ki:e?tr:gt;if(l.call(i,s))return u(o.get(s));if(l.call(i,a))return u(o.get(a));o!==i&&o.get(s)},get size(){const s=this.__v_raw;return!e&&Be(ue(s),"iterate",vn),s.size},has(s){const o=this.__v_raw,i=ue(o),a=ue(s);return e||(Zt(s,a)&&Be(i,"has",s),Be(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=ue(a),u=t?ki:e?tr:gt;return!e&&Be(l,"iterate",vn),a.forEach((c,f)=>s.call(o,u(c),u(f),i))}};return je(n,e?{add:os("add"),set:os("set"),delete:os("delete"),clear:os("clear")}:{add(s){!t&&!et(s)&&!At(s)&&(s=ue(s));const o=ue(this);return ss(o).has.call(o,s)||(o.add(s),Lt(o,"add",s,s)),this},set(s,o){!t&&!et(o)&&!At(o)&&(o=ue(o));const i=ue(this),{has:a,get:l}=ss(i);let u=a.call(i,s);u||(s=ue(s),u=a.call(i,s));const c=l.call(i,s);return i.set(s,o),u?Zt(o,c)&&Lt(i,"set",s,o):Lt(i,"add",s,o),this},delete(s){const o=ue(this),{has:i,get:a}=ss(o);let l=i.call(o,s);l||(s=ue(s),l=i.call(o,s)),a&&a.call(o,s);const u=o.delete(s);return l&&Lt(o,"delete",s,void 0),u},clear(){const s=ue(this),o=s.size!==0,i=s.clear();return o&&Lt(s,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=Np(s,e,t)}),n}function Ca(e,t){const n=Ip(e,t);return(r,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(fe(n,s)&&s in r?n:r,s,o)}const Lp={get:Ca(!1,!1)},Op={get:Ca(!1,!0)},Mp={get:Ca(!0,!1)};const qu=new WeakMap,Ku=new WeakMap,Xu=new WeakMap,Dp=new WeakMap;function Fp(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Bp(e){return e.__v_skip||!Object.isExtensible(e)?0:Fp(lp(e))}function sn(e){return At(e)?e:xa(e,!1,$p,Lp,qu)}function Un(e){return xa(e,!1,Pp,Op,Ku)}function Fr(e){return xa(e,!0,Rp,Mp,Xu)}function xa(e,t,n,r,s){if(!he(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=Bp(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 Qt(e){return At(e)?Qt(e.__v_raw):!!(e&&e.__v_isReactive)}function At(e){return!!(e&&e.__v_isReadonly)}function et(e){return!!(e&&e.__v_isShallow)}function bo(e){return e?!!e.__v_raw:!1}function ue(e){const t=e&&e.__v_raw;return t?ue(t):e}function Hp(e){return!fe(e,"__v_skip")&&Object.isExtensible(e)&&$u(e,"__v_skip",!0),e}const gt=e=>he(e)?sn(e):e,tr=e=>he(e)?Fr(e):e;function ve(e){return e?e.__v_isRef===!0:!1}function Ee(e){return Ju(e,!1)}function Ls(e){return Ju(e,!0)}function Ju(e,t){return ve(e)?e:new jp(e,t)}class jp{constructor(t,n){this.dep=new yo,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ue(t),this._value=n?t:gt(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||et(t)||At(t);t=r?t:ue(t),Zt(t,n)&&(this._rawValue=t,this._value=r?t:gt(t),this.dep.trigger())}}function oe(e){return ve(e)?e.value:e}function Ft(e){return Y(e)?e():oe(e)}const Up={get:(e,t,n)=>t==="__v_raw"?e:oe(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return ve(s)&&!ve(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function Yu(e){return Qt(e)?e:new Proxy(e,Up)}class Gp{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new yo,{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 Wp(e){return new Gp(e)}class zp{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._raw=ue(t);let s=!0,o=t;if(!Z(t)||!ho(String(n)))do s=!bo(o)||et(o);while(s&&(o=o.__v_raw));this._shallow=s}get value(){let t=this._object[this._key];return this._shallow&&(t=oe(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&ve(this._raw[this._key])){const n=this._object[this._key];if(ve(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return xp(this._raw,this._key)}}class Vp{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 Sa(e,t,n){return ve(e)?e:Y(e)?new Vp(e):he(e)&&arguments.length>1?qp(e,t,n):Ee(e)}function qp(e,t,n){return new zp(e,t,n)}class Kp{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new yo(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Mr-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&ye!==this)return Fu(this,!0),!0}get value(){const t=this.dep.track();return ju(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Xp(e,t,n=!1){let r,s;return Y(e)?r=e:(r=e.get,s=e.set),new Kp(r,s,n)}const is={},Os=new WeakMap;let pn;function Jp(e,t=!1,n=pn){if(n){let r=Os.get(n);r||Os.set(n,r=[]),r.push(e)}}function Yp(e,t,n=pe){const{immediate:r,deep:s,once:o,scheduler:i,augmentJob:a,call:l}=n,u=b=>s?b:et(b)||s===!1||s===0?Ot(b,1):Ot(b);let c,f,d,h,p=!1,g=!1;if(ve(e)?(f=()=>e.value,p=et(e)):Qt(e)?(f=()=>u(e),p=!0):Z(e)?(g=!0,p=e.some(b=>Qt(b)||et(b)),f=()=>e.map(b=>{if(ve(b))return b.value;if(Qt(b))return u(b);if(Y(b))return l?l(b,2):b()})):Y(e)?t?f=l?()=>l(e,2):e:f=()=>{if(d){Ht();try{d()}finally{jt()}}const b=pn;pn=c;try{return l?l(e,3,[h]):e(h)}finally{pn=b}}:f=xt,t&&s){const b=f,C=s===!0?1/0:s;f=()=>Ot(b(),C)}const w=Ou(),y=()=>{c.stop(),w&&w.active&&ya(w.effects,c)};if(o&&t){const b=t;t=(...C)=>{b(...C),y()}}let v=g?new Array(e.length).fill(is):is;const m=b=>{if(!(!(c.flags&1)||!c.dirty&&!b))if(t){const C=c.run();if(s||p||(g?C.some((k,P)=>Zt(k,v[P])):Zt(C,v))){d&&d();const k=pn;pn=c;try{const P=[C,v===is?void 0:g&&v[0]===is?[]:v,h];v=C,l?l(t,3,P):t(...P)}finally{pn=k}}}else c.run()};return a&&a(m),c=new Mu(f),c.scheduler=i?()=>i(m,!1):m,h=b=>Jp(b,!1,c),d=c.onStop=()=>{const b=Os.get(c);if(b){if(l)l(b,4);else for(const C of b)C();Os.delete(c)}},t?r?m(!0):v=c.run():i?i(m.bind(null,!0),!0):c.run(),y.pause=c.pause.bind(c),y.resume=c.resume.bind(c),y.stop=y,y}function Ot(e,t=1/0,n){if(t<=0||!he(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,ve(e))Ot(e.value,t,n);else if(Z(e))for(let r=0;r<e.length;r++)Ot(e[r],t,n);else if(Au(e)||qn(e))e.forEach(r=>{Ot(r,t,n)});else if(Tu(e)){for(const r in e)Ot(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Ot(e[r],t,n)}return e}function Qr(e,t,n,r){try{return r?e(...r):e()}catch(s){cr(s,t,n)}}function Et(e,t,n,r){if(Y(e)){const s=Qr(e,t,n,r);return s&&_a(s)&&s.catch(o=>{cr(o,t,n)}),s}if(Z(e)){const s=[];for(let o=0;o<e.length;o++)s.push(Et(e[o],t,n,r));return s}}function cr(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||pe;if(t){let a=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const c=a.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,l,u)===!1)return}a=a.parent}if(o){Ht(),Qr(o,null,10,[e,l,u]),jt();return}}Zp(e,n,s,r,i)}function Zp(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const Ge=[];let vt=-1;const Xn=[];let Xt=null,Fn=0;const Zu=Promise.resolve();let Ms=null;function ur(e){const t=Ms||Zu;return e?t.then(this?e.bind(this):e):t}function Qp(e){let t=vt+1,n=Ge.length;for(;t<n;){const r=t+n>>>1,s=Ge[r],o=Br(s);o<e||o===e&&s.flags&2?t=r+1:n=r}return t}function ka(e){if(!(e.flags&1)){const t=Br(e),n=Ge[Ge.length-1];!n||!(e.flags&2)&&t>=Br(n)?Ge.push(e):Ge.splice(Qp(t),0,e),e.flags|=1,Qu()}}function Qu(){Ms||(Ms=Zu.then(ef))}function Ai(e){Z(e)?Xn.push(...e):Xt&&e.id===-1?Xt.splice(Fn+1,0,e):e.flags&1||(Xn.push(e),e.flags|=1),Qu()}function wl(e,t,n=vt+1){for(;n<Ge.length;n++){const r=Ge[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Ge.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Ds(e){if(Xn.length){const t=[...new Set(Xn)].sort((n,r)=>Br(n)-Br(r));if(Xn.length=0,Xt){Xt.push(...t);return}for(Xt=t,Fn=0;Fn<Xt.length;Fn++){const n=Xt[Fn];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Xt=null,Fn=0}}const Br=e=>e.id==null?e.flags&2?-1:1/0:e.id;function ef(e){try{for(vt=0;vt<Ge.length;vt++){const t=Ge[vt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Qr(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;vt<Ge.length;vt++){const t=Ge[vt];t&&(t.flags&=-2)}vt=-1,Ge.length=0,Ds(),Ms=null,(Ge.length||Xn.length)&&ef()}}let Oe=null,wo=null;function Fs(e){const t=Oe;return Oe=e,wo=e&&e.type.__scopeId||null,t}function eg(e){wo=e}function tg(){wo=null}const ng=e=>se;function se(e,t=Oe,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&js(-1);const o=Fs(t);let i;try{i=e(...s)}finally{Fs(o),r._d&&js(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function rg(e,t){if(Oe===null)return e;const n=Ao(Oe),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[o,i,a,l=pe]=t[s];o&&(Y(o)&&(o={mounted:o,updated:o}),o.deep&&Ot(i),r.push({dir:o,instance:n,value:i,oldValue:void 0,arg:a,modifiers:l}))}return e}function Ct(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&&(Ht(),Et(l,n,8,[e.el,a,e,t]),jt())}}function tf(e,t){if(Le){let n=Le.provides;const r=Le.parent&&Le.parent.provides;r===n&&(n=Le.provides=Object.create(r)),n[e]=t}}function Cn(e,t,n=!1){const r=Tn();if(r||Sn){let s=Sn?Sn._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&&Y(t)?t.call(r&&r.proxy):t}}function vo(){return!!(Tn()||Sn)}const sg=Symbol.for("v-scx"),og=()=>Cn(sg);function nf(e,t){return Aa(e,null,t)}function en(e,t,n){return Aa(e,t,n)}function Aa(e,t,n=pe){const{immediate:r,deep:s,flush:o,once:i}=n,a=je({},n),l=t&&r||!t&&o!=="post";let u;if(or){if(o==="sync"){const h=og();u=h.__watcherHandles||(h.__watcherHandles=[])}else if(!l){const h=()=>{};return h.stop=xt,h.resume=xt,h.pause=xt,h}}const c=Le;a.call=(h,p,g)=>Et(h,c,p,g);let f=!1;o==="post"?a.scheduler=h=>{ze(h,c&&c.suspense)}:o!=="sync"&&(f=!0,a.scheduler=(h,p)=>{p?h():ka(h)}),a.augmentJob=h=>{t&&(h.flags|=4),f&&(h.flags|=2,c&&(h.id=c.uid,h.i=c))};const d=Yp(e,t,a);return or&&(u?u.push(d):l&&d()),d}function ig(e,t,n){const r=this.proxy,s=we(e)?e.includes(".")?rf(r,e):()=>r[e]:e.bind(r,r);let o;Y(t)?o=t:(o=t.handler,n=t);const i=An(this),a=Aa(s,o.bind(r),n);return i(),a}function rf(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 ag=Symbol("_vte"),lg=e=>e.__isTeleport,cg=Symbol("_leaveCb");function Ea(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Ea(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 mt(e,t){return Y(e)?je({name:e.name},t,{setup:e}):e}function Ta(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const Bs=new WeakMap;function Jn(e,t,n,r,s=!1){if(Z(e)){e.forEach((p,g)=>Jn(p,t&&(Z(t)?t[g]:t),n,r,s));return}if(xn(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Jn(e,t,n,r.component.subTree);return}const o=r.shapeFlag&4?Ao(r.component):r.el,i=s?null:o,{i:a,r:l}=e,u=t&&t.r,c=a.refs===pe?a.refs={}:a.refs,f=a.setupState,d=ue(f),h=f===pe?ku:p=>fe(d,p);if(u!=null&&u!==l){if(vl(t),we(u))c[u]=null,h(u)&&(f[u]=null);else if(ve(u)){u.value=null;const p=t;p.k&&(c[p.k]=null)}}if(Y(l))Qr(l,a,12,[i,c]);else{const p=we(l),g=ve(l);if(p||g){const w=()=>{if(e.f){const y=p?h(l)?f[l]:c[l]:l.value;if(s)Z(y)&&ya(y,o);else if(Z(y))y.includes(o)||y.push(o);else if(p)c[l]=[o],h(l)&&(f[l]=c[l]);else{const v=[o];l.value=v,e.k&&(c[e.k]=v)}}else p?(c[l]=i,h(l)&&(f[l]=i)):g&&(l.value=i,e.k&&(c[e.k]=i))};if(i){const y=()=>{w(),Bs.delete(e)};y.id=-1,Bs.set(e,y),ze(y,n)}else vl(e),w()}}}function vl(e){const t=Bs.get(e);t&&(t.flags|=8,Bs.delete(e))}let Cl=!1;const On=()=>{Cl||(console.error("Hydration completed but contains mismatches."),Cl=!0)},ug=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",fg=e=>e.namespaceURI.includes("MathML"),as=e=>{if(e.nodeType===1){if(ug(e))return"svg";if(fg(e))return"mathml"}},Gn=e=>e.nodeType===8;function dg(e){const{mt:t,p:n,o:{patchProp:r,createText:s,nextSibling:o,parentNode:i,remove:a,insert:l,createComment:u}}=e,c=(m,b)=>{if(!b.hasChildNodes()){n(null,m,b),Ds(),b._vnode=m;return}f(b.firstChild,m,null,null,null),Ds(),b._vnode=m},f=(m,b,C,k,P,F=!1)=>{F=F||!!b.dynamicChildren;const G=Gn(m)&&m.data==="[",N=()=>g(m,b,C,k,P,G),{type:q,ref:W,shapeFlag:Q,patchFlag:M}=b;let X=m.nodeType;b.el=m,M===-2&&(F=!1,b.dynamicChildren=null);let L=null;switch(q){case kn:X!==3?b.children===""?(l(b.el=s(""),i(m),m),L=m):L=N():(m.data!==b.children&&(On(),m.data=b.children),L=o(m));break;case at:v(m)?(L=o(m),y(b.el=m.content.firstChild,m,C)):X!==8||G?L=N():L=o(m);break;case Ar:if(G&&(m=o(m),X=m.nodeType),X===1||X===3){L=m;const K=!b.children.length;for(let H=0;H<b.staticCount;H++)K&&(b.children+=L.nodeType===1?L.outerHTML:L.data),H===b.staticCount-1&&(b.anchor=L),L=o(L);return G?o(L):L}else N();break;case _e:G?L=p(m,b,C,k,P,F):L=N();break;default:if(Q&1)(X!==1||b.type.toLowerCase()!==m.tagName.toLowerCase())&&!v(m)?L=N():L=d(m,b,C,k,P,F);else if(Q&6){b.slotScopeIds=P;const K=i(m);if(G?L=w(m):Gn(m)&&m.data==="teleport start"?L=w(m,m.data,"teleport end"):L=o(m),t(b,K,null,C,k,as(K),F),xn(b)&&!b.type.__asyncResolved){let H;G?(H=z(_e),H.anchor=L?L.previousSibling:K.lastChild):H=m.nodeType===3?ie(""):z("div"),H.el=m,b.component.subTree=H}}else Q&64?X!==8?L=N():L=b.type.hydrate(m,b,C,k,P,F,e,h):Q&128&&(L=b.type.hydrate(m,b,C,k,as(i(m)),P,F,e,f))}return W!=null&&Jn(W,null,k,b),L},d=(m,b,C,k,P,F)=>{F=F||!!b.dynamicChildren;const{type:G,props:N,patchFlag:q,shapeFlag:W,dirs:Q,transition:M}=b,X=G==="input"||G==="option";if(X||q!==-1){Q&&Ct(b,null,C,"created");let L=!1;if(v(m)){L=Ef(null,M)&&C&&C.vnode.props&&C.vnode.props.appear;const H=m.content.firstChild;if(L){const ce=H.getAttribute("class");ce&&(H.$cls=ce),M.beforeEnter(H)}y(H,m,C),b.el=m=H}if(W&16&&!(N&&(N.innerHTML||N.textContent))){let H=h(m.firstChild,b,m,C,k,P,F);for(;H;){ls(m,1)||On();const ce=H;H=H.nextSibling,a(ce)}}else if(W&8){let H=b.children;H[0]===`
|
|
3
|
+
`&&(m.tagName==="PRE"||m.tagName==="TEXTAREA")&&(H=H.slice(1));const{textContent:ce}=m;ce!==H&&ce!==H.replace(/\r\n|\r/g,`
|
|
4
|
+
`)&&(ls(m,0)||On(),m.textContent=b.children)}if(N){if(X||!F||q&48){const H=m.tagName.includes("-");for(const ce in N)(X&&(ce.endsWith("value")||ce==="indeterminate")||Yr(ce)&&!Kn(ce)||ce[0]==="."||H)&&r(m,ce,null,N[ce],void 0,C)}else if(N.onClick)r(m,"onClick",null,N.onClick,void 0,C);else if(q&4&&Qt(N.style))for(const H in N.style)N.style[H]}let K;(K=N&&N.onVnodeBeforeMount)&&nt(K,C,b),Q&&Ct(b,null,C,"beforeMount"),((K=N&&N.onVnodeMounted)||Q||L)&&If(()=>{K&&nt(K,C,b),L&&M.enter(m),Q&&Ct(b,null,C,"mounted")},k)}return m.nextSibling},h=(m,b,C,k,P,F,G)=>{G=G||!!b.dynamicChildren;const N=b.children,q=N.length;for(let W=0;W<q;W++){const Q=G?N[W]:N[W]=Qe(N[W]),M=Q.type===kn;m?(M&&!G&&W+1<q&&Qe(N[W+1]).type===kn&&(l(s(m.data.slice(Q.children.length)),C,o(m)),m.data=Q.children),m=f(m,Q,k,P,F,G)):M&&!Q.children?l(Q.el=s(""),C):(ls(C,1)||On(),n(null,Q,C,null,k,P,as(C),F))}return m},p=(m,b,C,k,P,F)=>{const{slotScopeIds:G}=b;G&&(P=P?P.concat(G):G);const N=i(m),q=h(o(m),b,N,C,k,P,F);return q&&Gn(q)&&q.data==="]"?o(b.anchor=q):(On(),l(b.anchor=u("]"),N,q),q)},g=(m,b,C,k,P,F)=>{if(ls(m.parentElement,1)||On(),b.el=null,F){const q=w(m);for(;;){const W=o(m);if(W&&W!==q)a(W);else break}}const G=o(m),N=i(m);return a(m),n(null,b,N,G,C,k,as(N),P),C&&(C.vnode.el=b.el,So(C,b.el)),G},w=(m,b="[",C="]")=>{let k=0;for(;m;)if(m=o(m),m&&Gn(m)&&(m.data===b&&k++,m.data===C)){if(k===0)return o(m);k--}return m},y=(m,b,C)=>{const k=b.parentNode;k&&k.replaceChild(m,b);let P=C;for(;P;)P.vnode.el===b&&(P.vnode.el=P.subTree.el=m),P=P.parent},v=m=>m.nodeType===1&&m.tagName==="TEMPLATE";return[c,f]}const xl="data-allow-mismatch",hg={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function ls(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(xl);)e=e.parentElement;const n=e&&e.getAttribute(xl);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:r.includes(hg[t])}}mo().requestIdleCallback;mo().cancelIdleCallback;function pg(e,t){if(Gn(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(Gn(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const xn=e=>!!e.type.__asyncLoader;function Sl(e){Y(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 u=null,c,f=0;const d=()=>(f++,u=null,h()),h=()=>{let p;return u||(p=u=t().catch(g=>{if(g=g instanceof Error?g:new Error(String(g)),l)return new Promise((w,y)=>{l(g,()=>w(d()),()=>y(g),f+1)});throw g}).then(g=>p!==u&&u?u:(g&&(g.__esModule||g[Symbol.toStringTag]==="Module")&&(g=g.default),c=g,g)))};return mt({name:"AsyncComponentWrapper",__asyncLoader:h,__asyncHydrate(p,g,w){let y=!1;(g.bu||(g.bu=[])).push(()=>y=!0);const v=()=>{y||w()},m=o?()=>{const b=o(v,C=>pg(p,C));b&&(g.bum||(g.bum=[])).push(b)}:v;c?m():h().then(()=>!g.isUnmounted&&m())},get __asyncResolved(){return c},setup(){const p=Le;if(Ta(p),c)return()=>cs(c,p);const g=m=>{u=null,cr(m,p,13,!r)};if(a&&p.suspense||or)return h().then(m=>()=>cs(m,p)).catch(m=>(g(m),()=>r?z(r,{error:m}):null));const w=Ee(!1),y=Ee(),v=Ee(!!s);return s&&setTimeout(()=>{v.value=!1},s),i!=null&&setTimeout(()=>{if(!w.value&&!y.value){const m=new Error(`Async component timed out after ${i}ms.`);g(m),y.value=m}},i),h().then(()=>{w.value=!0,p.parent&&$a(p.parent.vnode)&&p.parent.update()}).catch(m=>{g(m),y.value=m}),()=>{if(w.value&&c)return cs(c,p);if(y.value&&r)return z(r,{error:y.value});if(n&&!v.value)return cs(n,p)}}})}function cs(e,t){const{ref:n,props:r,children:s,ce:o}=t.vnode,i=z(e,r,s);return i.ref=n,i.ce=o,delete t.vnode.ce,i}const $a=e=>e.type.__isKeepAlive;function sf(e,t){af(e,"a",t)}function of(e,t){af(e,"da",t)}function af(e,t,n=Le){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Co(t,r,n),n){let s=n.parent;for(;s&&s.parent;)$a(s.parent.vnode)&&gg(r,t,n,s),s=s.parent}}function gg(e,t,n,r){const s=Co(t,e,r,!0);lf(()=>{ya(r[t],s)},n)}function Co(e,t,n=Le,r=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{Ht();const a=An(n),l=Et(t,n,e,i);return a(),jt(),l});return r?s.unshift(o):s.push(o),o}}const Ut=e=>(t,n=Le)=>{(!or||e==="sp")&&Co(e,(...r)=>t(...r),n)},mg=Ut("bm"),Ra=Ut("m"),yg=Ut("bu"),_g=Ut("u"),Pa=Ut("bum"),lf=Ut("um"),bg=Ut("sp"),wg=Ut("rtg"),vg=Ut("rtc");function cf(e,t=Le){Co("ec",e,t)}const uf="components";function on(e,t){return df(uf,e,!0,t)||e}const ff=Symbol.for("v-ndc");function Cg(e){return we(e)?df(uf,e,!1)||e:e||ff}function df(e,t,n=!0,r=!1){const s=Oe||Le;if(s){const o=s.type;{const a=um(o,!1);if(a&&(a===t||a===it(t)||a===go(it(t))))return o}const i=kl(s[e]||o[e],t)||kl(s.appContext[e],t);return!i&&r?o:i}}function kl(e,t){return e&&(e[t]||e[it(t)]||e[go(it(t))])}function Bn(e,t,n,r){let s;const o=n,i=Z(e);if(i||we(e)){const a=i&&Qt(e);let l=!1,u=!1;a&&(l=!et(e),u=At(e),e=_o(e)),s=new Array(e.length);for(let c=0,f=e.length;c<f;c++)s[c]=t(l?u?tr(gt(e[c])):gt(e[c]):e[c],c,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(he(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,u=a.length;l<u;l++){const c=a[l];s[l]=t(e[c],c,l,o)}}else s=[];return s}function qe(e,t,n={},r,s){if(Oe.ce||Oe.parent&&xn(Oe.parent)&&Oe.parent.ce){const u=Object.keys(n).length>0;return t!=="default"&&(n.name=t),j(),be(_e,null,[z("slot",n,r&&r())],u?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),j();const i=o&&hf(o(n)),a=n.key||i&&i.key,l=be(_e,{key:(a&&!pt(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 hf(e){return e.some(t=>rr(t)?!(t.type===at||t.type===_e&&!hf(t.children)):!0)?e:null}const Ei=e=>e?Df(e)?Ao(e):Ei(e.parent):null,kr=je(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=>Ei(e.parent),$root:e=>Ei(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>gf(e),$forceUpdate:e=>e.f||(e.f=()=>{ka(e.update)}),$nextTick:e=>e.n||(e.n=ur.bind(e.proxy)),$watch:e=>ig.bind(e)}),Xo=(e,t)=>e!==pe&&!e.__isScriptSetup&&fe(e,t),xg={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;if(t[0]!=="$"){const d=i[t];if(d!==void 0)switch(d){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return o[t]}else{if(Xo(r,t))return i[t]=1,r[t];if(s!==pe&&fe(s,t))return i[t]=2,s[t];if(fe(o,t))return i[t]=3,o[t];if(n!==pe&&fe(n,t))return i[t]=4,n[t];Ti&&(i[t]=0)}}const u=kr[t];let c,f;if(u)return t==="$attrs"&&Be(e.attrs,"get",""),u(e);if((c=a.__cssModules)&&(c=c[t]))return c;if(n!==pe&&fe(n,t))return i[t]=4,n[t];if(f=l.config.globalProperties,fe(f,t))return f[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:o}=e;return Xo(s,t)?(s[t]=n,!0):r!==pe&&fe(r,t)?(r[t]=n,!0):fe(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,props:o,type:i}},a){let l;return!!(n[a]||e!==pe&&a[0]!=="$"&&fe(e,a)||Xo(t,a)||fe(o,a)||fe(r,a)||fe(kr,a)||fe(s.config.globalProperties,a)||(l=i.__cssModules)&&l[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:fe(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Al(e){return Z(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Sg(e){const t=Tn();let n=e();return Ii(),_a(n)&&(n=n.catch(r=>{throw An(t),r})),[n,()=>An(t)]}let Ti=!0;function kg(e){const t=gf(e),n=e.proxy,r=e.ctx;Ti=!1,t.beforeCreate&&El(t.beforeCreate,e,"bc");const{data:s,computed:o,methods:i,watch:a,provide:l,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:h,updated:p,activated:g,deactivated:w,beforeDestroy:y,beforeUnmount:v,destroyed:m,unmounted:b,render:C,renderTracked:k,renderTriggered:P,errorCaptured:F,serverPrefetch:G,expose:N,inheritAttrs:q,components:W,directives:Q,filters:M}=t;if(u&&Ag(u,r,null),i)for(const K in i){const H=i[K];Y(H)&&(r[K]=H.bind(n))}if(s){const K=s.call(n,n);he(K)&&(e.data=sn(K))}if(Ti=!0,o)for(const K in o){const H=o[K],ce=Y(H)?H.bind(n,n):Y(H.get)?H.get.bind(n,n):xt,Nn=!Y(H)&&Y(H.set)?H.set.bind(n):xt,cn=ke({get:ce,set:Nn});Object.defineProperty(r,K,{enumerable:!0,configurable:!0,get:()=>cn.value,set:_t=>cn.value=_t})}if(a)for(const K in a)pf(a[K],r,n,K);if(l){const K=Y(l)?l.call(n):l;Reflect.ownKeys(K).forEach(H=>{tf(H,K[H])})}c&&El(c,e,"c");function L(K,H){Z(H)?H.forEach(ce=>K(ce.bind(n))):H&&K(H.bind(n))}if(L(mg,f),L(Ra,d),L(yg,h),L(_g,p),L(sf,g),L(of,w),L(cf,F),L(vg,k),L(wg,P),L(Pa,v),L(lf,b),L(bg,G),Z(N))if(N.length){const K=e.exposed||(e.exposed={});N.forEach(H=>{Object.defineProperty(K,H,{get:()=>n[H],set:ce=>n[H]=ce,enumerable:!0})})}else e.exposed||(e.exposed={});C&&e.render===xt&&(e.render=C),q!=null&&(e.inheritAttrs=q),W&&(e.components=W),Q&&(e.directives=Q),G&&Ta(e)}function Ag(e,t,n=xt){Z(e)&&(e=$i(e));for(const r in e){const s=e[r];let o;he(s)?"default"in s?o=Cn(s.from||r,s.default,!0):o=Cn(s.from||r):o=Cn(s),ve(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[r]=o}}function El(e,t,n){Et(Z(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function pf(e,t,n,r){let s=r.includes(".")?rf(n,r):()=>n[r];if(we(e)){const o=t[e];Y(o)&&en(s,o)}else if(Y(e))en(s,e.bind(n));else if(he(e))if(Z(e))e.forEach(o=>pf(o,t,n,r));else{const o=Y(e.handler)?e.handler.bind(n):t[e.handler];Y(o)&&en(s,o,e)}}function gf(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(u=>Hs(l,u,i,!0)),Hs(l,t,i)),he(t)&&o.set(t,l),l}function Hs(e,t,n,r=!1){const{mixins:s,extends:o}=t;o&&Hs(e,o,n,!0),s&&s.forEach(i=>Hs(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const a=Eg[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const Eg={data:Tl,props:$l,emits:$l,methods:vr,computed:vr,beforeCreate:Ue,created:Ue,beforeMount:Ue,mounted:Ue,beforeUpdate:Ue,updated:Ue,beforeDestroy:Ue,beforeUnmount:Ue,destroyed:Ue,unmounted:Ue,activated:Ue,deactivated:Ue,errorCaptured:Ue,serverPrefetch:Ue,components:vr,directives:vr,watch:$g,provide:Tl,inject:Tg};function Tl(e,t){return t?e?function(){return je(Y(e)?e.call(this,this):e,Y(t)?t.call(this,this):t)}:t:e}function Tg(e,t){return vr($i(e),$i(t))}function $i(e){if(Z(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ue(e,t){return e?[...new Set([].concat(e,t))]:t}function vr(e,t){return e?je(Object.create(null),e,t):t}function $l(e,t){return e?Z(e)&&Z(t)?[...new Set([...e,...t])]:je(Object.create(null),Al(e),Al(t??{})):t}function $g(e,t){if(!e)return t;if(!t)return e;const n=je(Object.create(null),e);for(const r in t)n[r]=Ue(e[r],t[r]);return n}function mf(){return{app:null,config:{isNativeTag:ku,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 Rg=0;function Pg(e,t){return function(r,s=null){Y(r)||(r=je({},r)),s!=null&&!he(s)&&(s=null);const o=mf(),i=new WeakSet,a=[];let l=!1;const u=o.app={_uid:Rg++,_component:r,_props:s,_container:null,_context:o,_instance:null,version:dm,get config(){return o.config},set config(c){},use(c,...f){return i.has(c)||(c&&Y(c.install)?(i.add(c),c.install(u,...f)):Y(c)&&(i.add(c),c(u,...f))),u},mixin(c){return o.mixins.includes(c)||o.mixins.push(c),u},component(c,f){return f?(o.components[c]=f,u):o.components[c]},directive(c,f){return f?(o.directives[c]=f,u):o.directives[c]},mount(c,f,d){if(!l){const h=u._ceVNode||z(r,s);return h.appContext=o,d===!0?d="svg":d===!1&&(d=void 0),f&&t?t(h,c):e(h,c,d),l=!0,u._container=c,c.__vue_app__=u,Ao(h.component)}},onUnmount(c){a.push(c)},unmount(){l&&(Et(a,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,f){return o.provides[c]=f,u},runWithContext(c){const f=Sn;Sn=u;try{return c()}finally{Sn=f}}};return u}}let Sn=null;const Ng=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${it(t)}Modifiers`]||e[`${ln(t)}Modifiers`];function Ig(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||pe;let s=n;const o=t.startsWith("update:"),i=o&&Ng(r,t.slice(7));i&&(i.trim&&(s=n.map(c=>we(c)?c.trim():c)),i.number&&(s=n.map(fp)));let a,l=r[a=Wo(t)]||r[a=Wo(it(t))];!l&&o&&(l=r[a=Wo(ln(t))]),l&&Et(l,e,6,s);const u=r[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Et(u,e,6,s)}}const Lg=new WeakMap;function yf(e,t,n=!1){const r=n?Lg:t.emitsCache,s=r.get(e);if(s!==void 0)return s;const o=e.emits;let i={},a=!1;if(!Y(e)){const l=u=>{const c=yf(u,t,!0);c&&(a=!0,je(i,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!a?(he(e)&&r.set(e,null),null):(Z(o)?o.forEach(l=>i[l]=null):je(i,o),he(e)&&r.set(e,i),i)}function xo(e,t){return!e||!Yr(t)?!1:(t=t.slice(2).replace(/Once$/,""),fe(e,t[0].toLowerCase()+t.slice(1))||fe(e,ln(t))||fe(e,t))}function Jo(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[o],slots:i,attrs:a,emit:l,render:u,renderCache:c,props:f,data:d,setupState:h,ctx:p,inheritAttrs:g}=e,w=Fs(e);let y,v;try{if(n.shapeFlag&4){const b=s||r,C=b;y=Qe(u.call(C,b,c,f,h,d,p)),v=a}else{const b=t;y=Qe(b.length>1?b(f,{attrs:a,slots:i,emit:l}):b(f,null)),v=t.props?a:Mg(a)}}catch(b){Er.length=0,cr(b,e,1),y=z(at)}let m=y;if(v&&g!==!1){const b=Object.keys(v),{shapeFlag:C}=m;b.length&&C&7&&(o&&b.some(ma)&&(v=Dg(v,o)),m=sr(m,v,!1,!0))}return n.dirs&&(m=sr(m,null,!1,!0),m.dirs=m.dirs?m.dirs.concat(n.dirs):n.dirs),n.transition&&Ea(m,n.transition),y=m,Fs(w),y}function Og(e,t=!0){let n;for(let r=0;r<e.length;r++){const s=e[r];if(rr(s)){if(s.type!==at||s.children==="v-if"){if(n)return;n=s}}else return}return n}const Mg=e=>{let t;for(const n in e)(n==="class"||n==="style"||Yr(n))&&((t||(t={}))[n]=e[n]);return t},Dg=(e,t)=>{const n={};for(const r in e)(!ma(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Fg(e,t,n){const{props:r,children:s,component:o}=e,{props:i,children:a,patchFlag:l}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Rl(r,i,u):!!i;if(l&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const d=c[f];if(i[d]!==r[d]&&!xo(u,d))return!0}}}else return(s||a)&&(!a||!a.$stable)?!0:r===i?!1:r?i?Rl(r,i,u):!0:!!i;return!1}function Rl(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]&&!xo(n,o))return!0}return!1}function So({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 _f={},bf=()=>Object.create(_f),wf=e=>Object.getPrototypeOf(e)===_f;function Bg(e,t,n,r=!1){const s={},o=bf();e.propsDefaults=Object.create(null),vf(e,t,s,o);for(const i in e.propsOptions[0])i in s||(s[i]=void 0);n?e.props=r?s:Un(s):e.type.props?e.props=s:e.props=o,e.attrs=o}function Hg(e,t,n,r){const{props:s,attrs:o,vnode:{patchFlag:i}}=e,a=ue(s),[l]=e.propsOptions;let u=!1;if((r||i>0)&&!(i&16)){if(i&8){const c=e.vnode.dynamicProps;for(let f=0;f<c.length;f++){let d=c[f];if(xo(e.emitsOptions,d))continue;const h=t[d];if(l)if(fe(o,d))h!==o[d]&&(o[d]=h,u=!0);else{const p=it(d);s[p]=Ri(l,a,p,h,e,!1)}else h!==o[d]&&(o[d]=h,u=!0)}}}else{vf(e,t,s,o)&&(u=!0);let c;for(const f in a)(!t||!fe(t,f)&&((c=ln(f))===f||!fe(t,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(s[f]=Ri(l,a,f,void 0,e,!0)):delete s[f]);if(o!==a)for(const f in o)(!t||!fe(t,f))&&(delete o[f],u=!0)}u&&Lt(e.attrs,"set","")}function vf(e,t,n,r){const[s,o]=e.propsOptions;let i=!1,a;if(t)for(let l in t){if(Kn(l))continue;const u=t[l];let c;s&&fe(s,c=it(l))?!o||!o.includes(c)?n[c]=u:(a||(a={}))[c]=u:xo(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,i=!0)}if(o){const l=ue(n),u=a||pe;for(let c=0;c<o.length;c++){const f=o[c];n[f]=Ri(s,l,f,u[f],e,!fe(u,f))}}return i}function Ri(e,t,n,r,s,o){const i=e[n];if(i!=null){const a=fe(i,"default");if(a&&r===void 0){const l=i.default;if(i.type!==Function&&!i.skipFactory&&Y(l)){const{propsDefaults:u}=s;if(n in u)r=u[n];else{const c=An(s);r=u[n]=l.call(null,t),c()}}else r=l;s.ce&&s.ce._setProp(n,r)}i[0]&&(o&&!a?r=!1:i[1]&&(r===""||r===ln(n))&&(r=!0))}return r}const jg=new WeakMap;function Cf(e,t,n=!1){const r=n?jg:t.propsCache,s=r.get(e);if(s)return s;const o=e.props,i={},a=[];let l=!1;if(!Y(e)){const c=f=>{l=!0;const[d,h]=Cf(f,t,!0);je(i,d),h&&a.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!o&&!l)return he(e)&&r.set(e,Vn),Vn;if(Z(o))for(let c=0;c<o.length;c++){const f=it(o[c]);Pl(f)&&(i[f]=pe)}else if(o)for(const c in o){const f=it(c);if(Pl(f)){const d=o[c],h=i[f]=Z(d)||Y(d)?{type:d}:je({},d),p=h.type;let g=!1,w=!0;if(Z(p))for(let y=0;y<p.length;++y){const v=p[y],m=Y(v)&&v.name;if(m==="Boolean"){g=!0;break}else m==="String"&&(w=!1)}else g=Y(p)&&p.name==="Boolean";h[0]=g,h[1]=w,(g||fe(h,"default"))&&a.push(f)}}const u=[i,a];return he(e)&&r.set(e,u),u}function Pl(e){return e[0]!=="$"&&!Kn(e)}const Na=e=>e==="_"||e==="_ctx"||e==="$stable",Ia=e=>Z(e)?e.map(Qe):[Qe(e)],Ug=(e,t,n)=>{if(t._n)return t;const r=se((...s)=>Ia(t(...s)),n);return r._c=!1,r},xf=(e,t,n)=>{const r=e._ctx;for(const s in e){if(Na(s))continue;const o=e[s];if(Y(o))t[s]=Ug(s,o,r);else if(o!=null){const i=Ia(o);t[s]=()=>i}}},Sf=(e,t)=>{const n=Ia(t);e.slots.default=()=>n},kf=(e,t,n)=>{for(const r in t)(n||!Na(r))&&(e[r]=t[r])},Gg=(e,t,n)=>{const r=e.slots=bf();if(e.vnode.shapeFlag&32){const s=t._;s?(kf(r,t,n),n&&$u(r,"_",s,!0)):xf(t,r)}else t&&Sf(e,t)},Wg=(e,t,n)=>{const{vnode:r,slots:s}=e;let o=!0,i=pe;if(r.shapeFlag&32){const a=t._;a?n&&a===1?o=!1:kf(s,t,n):(o=!t.$stable,xf(t,s)),i=t}else t&&(Sf(e,t),i={default:1});if(o)for(const a in s)!Na(a)&&i[a]==null&&delete s[a]},ze=If;function zg(e){return Af(e)}function Vg(e){return Af(e,dg)}function Af(e,t){const n=mo();n.__VUE__=!0;const{insert:r,remove:s,patchProp:o,createElement:i,createText:a,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:h=xt,insertStaticContent:p}=e,g=(_,x,S,$=null,A=null,E=null,B=void 0,D=null,O=!!x.dynamicChildren)=>{if(_===x)return;_&&!Yt(_,x)&&($=rs(_),_t(_,A,E,!0),_=null),x.patchFlag===-2&&(O=!1,x.dynamicChildren=null);const{type:T,ref:J,shapeFlag:U}=x;switch(T){case kn:w(_,x,S,$);break;case at:y(_,x,S,$);break;case Ar:_==null&&v(x,S,$,B);break;case _e:W(_,x,S,$,A,E,B,D,O);break;default:U&1?C(_,x,S,$,A,E,B,D,O):U&6?Q(_,x,S,$,A,E,B,D,O):(U&64||U&128)&&T.process(_,x,S,$,A,E,B,D,O,In)}J!=null&&A?Jn(J,_&&_.ref,E,x||_,!x):J==null&&_&&_.ref!=null&&Jn(_.ref,null,E,_,!0)},w=(_,x,S,$)=>{if(_==null)r(x.el=a(x.children),S,$);else{const A=x.el=_.el;x.children!==_.children&&u(A,x.children)}},y=(_,x,S,$)=>{_==null?r(x.el=l(x.children||""),S,$):x.el=_.el},v=(_,x,S,$)=>{[_.el,_.anchor]=p(_.children,x,S,$,_.el,_.anchor)},m=({el:_,anchor:x},S,$)=>{let A;for(;_&&_!==x;)A=d(_),r(_,S,$),_=A;r(x,S,$)},b=({el:_,anchor:x})=>{let S;for(;_&&_!==x;)S=d(_),s(_),_=S;s(x)},C=(_,x,S,$,A,E,B,D,O)=>{if(x.type==="svg"?B="svg":x.type==="math"&&(B="mathml"),_==null)k(x,S,$,A,E,B,D,O);else{const T=_.el&&_.el._isVueCE?_.el:null;try{T&&T._beginPatch(),G(_,x,A,E,B,D,O)}finally{T&&T._endPatch()}}},k=(_,x,S,$,A,E,B,D)=>{let O,T;const{props:J,shapeFlag:U,transition:V,dirs:te}=_;if(O=_.el=i(_.type,E,J&&J.is,J),U&8?c(O,_.children):U&16&&F(_.children,O,null,$,A,Yo(_,E),B,D),te&&Ct(_,null,$,"created"),P(O,_,_.scopeId,B,$),J){for(const ge in J)ge!=="value"&&!Kn(ge)&&o(O,ge,null,J[ge],E,$);"value"in J&&o(O,"value",null,J.value,E),(T=J.onVnodeBeforeMount)&&nt(T,$,_)}te&&Ct(_,null,$,"beforeMount");const ae=Ef(A,V);ae&&V.beforeEnter(O),r(O,x,S),((T=J&&J.onVnodeMounted)||ae||te)&&ze(()=>{T&&nt(T,$,_),ae&&V.enter(O),te&&Ct(_,null,$,"mounted")},A)},P=(_,x,S,$,A)=>{if(S&&h(_,S),$)for(let E=0;E<$.length;E++)h(_,$[E]);if(A){let E=A.subTree;if(x===E||Pf(E.type)&&(E.ssContent===x||E.ssFallback===x)){const B=A.vnode;P(_,B,B.scopeId,B.slotScopeIds,A.parent)}}},F=(_,x,S,$,A,E,B,D,O=0)=>{for(let T=O;T<_.length;T++){const J=_[T]=D?Jt(_[T]):Qe(_[T]);g(null,J,x,S,$,A,E,B,D)}},G=(_,x,S,$,A,E,B)=>{const D=x.el=_.el;let{patchFlag:O,dynamicChildren:T,dirs:J}=x;O|=_.patchFlag&16;const U=_.props||pe,V=x.props||pe;let te;if(S&&un(S,!1),(te=V.onVnodeBeforeUpdate)&&nt(te,S,x,_),J&&Ct(x,_,S,"beforeUpdate"),S&&un(S,!0),(U.innerHTML&&V.innerHTML==null||U.textContent&&V.textContent==null)&&c(D,""),T?N(_.dynamicChildren,T,D,S,$,Yo(x,A),E):B||H(_,x,D,null,S,$,Yo(x,A),E,!1),O>0){if(O&16)q(D,U,V,S,A);else if(O&2&&U.class!==V.class&&o(D,"class",null,V.class,A),O&4&&o(D,"style",U.style,V.style,A),O&8){const ae=x.dynamicProps;for(let ge=0;ge<ae.length;ge++){const de=ae[ge],We=U[de],Me=V[de];(Me!==We||de==="value")&&o(D,de,We,Me,A,S)}}O&1&&_.children!==x.children&&c(D,x.children)}else!B&&T==null&&q(D,U,V,S,A);((te=V.onVnodeUpdated)||J)&&ze(()=>{te&&nt(te,S,x,_),J&&Ct(x,_,S,"updated")},$)},N=(_,x,S,$,A,E,B)=>{for(let D=0;D<x.length;D++){const O=_[D],T=x[D],J=O.el&&(O.type===_e||!Yt(O,T)||O.shapeFlag&198)?f(O.el):S;g(O,T,J,null,$,A,E,B,!0)}},q=(_,x,S,$,A)=>{if(x!==S){if(x!==pe)for(const E in x)!Kn(E)&&!(E in S)&&o(_,E,x[E],null,A,$);for(const E in S){if(Kn(E))continue;const B=S[E],D=x[E];B!==D&&E!=="value"&&o(_,E,D,B,A,$)}"value"in S&&o(_,"value",x.value,S.value,A)}},W=(_,x,S,$,A,E,B,D,O)=>{const T=x.el=_?_.el:a(""),J=x.anchor=_?_.anchor:a("");let{patchFlag:U,dynamicChildren:V,slotScopeIds:te}=x;te&&(D=D?D.concat(te):te),_==null?(r(T,S,$),r(J,S,$),F(x.children||[],S,J,A,E,B,D,O)):U>0&&U&64&&V&&_.dynamicChildren&&_.dynamicChildren.length===V.length?(N(_.dynamicChildren,V,S,A,E,B,D),(x.key!=null||A&&x===A.subTree)&&Tf(_,x,!0)):H(_,x,S,J,A,E,B,D,O)},Q=(_,x,S,$,A,E,B,D,O)=>{x.slotScopeIds=D,_==null?x.shapeFlag&512?A.ctx.activate(x,S,$,B,O):M(x,S,$,A,E,B,O):X(_,x,O)},M=(_,x,S,$,A,E,B)=>{const D=_.component=om(_,$,A);if($a(_)&&(D.ctx.renderer=In),im(D,!1,B),D.asyncDep){if(A&&A.registerDep(D,L,B),!_.el){const O=D.subTree=z(at);y(null,O,x,S),_.placeholder=O.el}}else L(D,_,x,S,A,E,B)},X=(_,x,S)=>{const $=x.component=_.component;if(Fg(_,x,S))if($.asyncDep&&!$.asyncResolved){K($,x,S);return}else $.next=x,$.update();else x.el=_.el,$.vnode=x},L=(_,x,S,$,A,E,B)=>{const D=()=>{if(_.isMounted){let{next:U,bu:V,u:te,parent:ae,vnode:ge}=_;{const Je=$f(_);if(Je){U&&(U.el=ge.el,K(_,U,B)),Je.asyncDep.then(()=>{_.isUnmounted||D()});return}}let de=U,We;un(_,!1),U?(U.el=ge.el,K(_,U,B)):U=ge,V&&xs(V),(We=U.props&&U.props.onVnodeBeforeUpdate)&&nt(We,ae,U,ge),un(_,!0);const Me=Jo(_),lt=_.subTree;_.subTree=Me,g(lt,Me,f(lt.el),rs(lt),_,A,E),U.el=Me.el,de===null&&So(_,Me.el),te&&ze(te,A),(We=U.props&&U.props.onVnodeUpdated)&&ze(()=>nt(We,ae,U,ge),A)}else{let U;const{el:V,props:te}=x,{bm:ae,m:ge,parent:de,root:We,type:Me}=_,lt=xn(x);if(un(_,!1),ae&&xs(ae),!lt&&(U=te&&te.onVnodeBeforeMount)&&nt(U,de,x),un(_,!0),V&&Go){const Je=()=>{_.subTree=Jo(_),Go(V,_.subTree,_,A,null)};lt&&Me.__asyncHydrate?Me.__asyncHydrate(V,_,Je):Je()}else{We.ce&&We.ce._def.shadowRoot!==!1&&We.ce._injectChildStyle(Me);const Je=_.subTree=Jo(_);g(null,Je,S,$,_,A,E),x.el=Je.el}if(ge&&ze(ge,A),!lt&&(U=te&&te.onVnodeMounted)){const Je=x;ze(()=>nt(U,de,Je),A)}(x.shapeFlag&256||de&&xn(de.vnode)&&de.vnode.shapeFlag&256)&&_.a&&ze(_.a,A),_.isMounted=!0,x=S=$=null}};_.scope.on();const O=_.effect=new Mu(D);_.scope.off();const T=_.update=O.run.bind(O),J=_.job=O.runIfDirty.bind(O);J.i=_,J.id=_.uid,O.scheduler=()=>ka(J),un(_,!0),T()},K=(_,x,S)=>{x.component=_;const $=_.vnode.props;_.vnode=x,_.next=null,Hg(_,x.props,$,S),Wg(_,x.children,S),Ht(),wl(_),jt()},H=(_,x,S,$,A,E,B,D,O=!1)=>{const T=_&&_.children,J=_?_.shapeFlag:0,U=x.children,{patchFlag:V,shapeFlag:te}=x;if(V>0){if(V&128){Nn(T,U,S,$,A,E,B,D,O);return}else if(V&256){ce(T,U,S,$,A,E,B,D,O);return}}te&8?(J&16&&gr(T,A,E),U!==T&&c(S,U)):J&16?te&16?Nn(T,U,S,$,A,E,B,D,O):gr(T,A,E,!0):(J&8&&c(S,""),te&16&&F(U,S,$,A,E,B,D,O))},ce=(_,x,S,$,A,E,B,D,O)=>{_=_||Vn,x=x||Vn;const T=_.length,J=x.length,U=Math.min(T,J);let V;for(V=0;V<U;V++){const te=x[V]=O?Jt(x[V]):Qe(x[V]);g(_[V],te,S,null,A,E,B,D,O)}T>J?gr(_,A,E,!0,!1,U):F(x,S,$,A,E,B,D,O,U)},Nn=(_,x,S,$,A,E,B,D,O)=>{let T=0;const J=x.length;let U=_.length-1,V=J-1;for(;T<=U&&T<=V;){const te=_[T],ae=x[T]=O?Jt(x[T]):Qe(x[T]);if(Yt(te,ae))g(te,ae,S,null,A,E,B,D,O);else break;T++}for(;T<=U&&T<=V;){const te=_[U],ae=x[V]=O?Jt(x[V]):Qe(x[V]);if(Yt(te,ae))g(te,ae,S,null,A,E,B,D,O);else break;U--,V--}if(T>U){if(T<=V){const te=V+1,ae=te<J?x[te].el:$;for(;T<=V;)g(null,x[T]=O?Jt(x[T]):Qe(x[T]),S,ae,A,E,B,D,O),T++}}else if(T>V)for(;T<=U;)_t(_[T],A,E,!0),T++;else{const te=T,ae=T,ge=new Map;for(T=ae;T<=V;T++){const Ye=x[T]=O?Jt(x[T]):Qe(x[T]);Ye.key!=null&&ge.set(Ye.key,T)}let de,We=0;const Me=V-ae+1;let lt=!1,Je=0;const mr=new Array(Me);for(T=0;T<Me;T++)mr[T]=0;for(T=te;T<=U;T++){const Ye=_[T];if(We>=Me){_t(Ye,A,E,!0);continue}let bt;if(Ye.key!=null)bt=ge.get(Ye.key);else for(de=ae;de<=V;de++)if(mr[de-ae]===0&&Yt(Ye,x[de])){bt=de;break}bt===void 0?_t(Ye,A,E,!0):(mr[bt-ae]=T+1,bt>=Je?Je=bt:lt=!0,g(Ye,x[bt],S,null,A,E,B,D,O),We++)}const hl=lt?qg(mr):Vn;for(de=hl.length-1,T=Me-1;T>=0;T--){const Ye=ae+T,bt=x[Ye],pl=x[Ye+1],gl=Ye+1<J?pl.el||Rf(pl):$;mr[T]===0?g(null,bt,S,gl,A,E,B,D,O):lt&&(de<0||T!==hl[de]?cn(bt,S,gl,2):de--)}}},cn=(_,x,S,$,A=null)=>{const{el:E,type:B,transition:D,children:O,shapeFlag:T}=_;if(T&6){cn(_.component.subTree,x,S,$);return}if(T&128){_.suspense.move(x,S,$);return}if(T&64){B.move(_,x,S,In);return}if(B===_e){r(E,x,S);for(let U=0;U<O.length;U++)cn(O[U],x,S,$);r(_.anchor,x,S);return}if(B===Ar){m(_,x,S);return}if($!==2&&T&1&&D)if($===0)D.beforeEnter(E),r(E,x,S),ze(()=>D.enter(E),A);else{const{leave:U,delayLeave:V,afterLeave:te}=D,ae=()=>{_.ctx.isUnmounted?s(E):r(E,x,S)},ge=()=>{E._isLeaving&&E[cg](!0),U(E,()=>{ae(),te&&te()})};V?V(E,ae,ge):ge()}else r(E,x,S)},_t=(_,x,S,$=!1,A=!1)=>{const{type:E,props:B,ref:D,children:O,dynamicChildren:T,shapeFlag:J,patchFlag:U,dirs:V,cacheIndex:te}=_;if(U===-2&&(A=!1),D!=null&&(Ht(),Jn(D,null,S,_,!0),jt()),te!=null&&(x.renderCache[te]=void 0),J&256){x.ctx.deactivate(_);return}const ae=J&1&&V,ge=!xn(_);let de;if(ge&&(de=B&&B.onVnodeBeforeUnmount)&&nt(de,x,_),J&6)ip(_.component,S,$);else{if(J&128){_.suspense.unmount(S,$);return}ae&&Ct(_,null,x,"beforeUnmount"),J&64?_.type.remove(_,x,S,In,$):T&&!T.hasOnce&&(E!==_e||U>0&&U&64)?gr(T,x,S,!1,!0):(E===_e&&U&384||!A&&J&16)&&gr(O,x,S),$&&fl(_)}(ge&&(de=B&&B.onVnodeUnmounted)||ae)&&ze(()=>{de&&nt(de,x,_),ae&&Ct(_,null,x,"unmounted")},S)},fl=_=>{const{type:x,el:S,anchor:$,transition:A}=_;if(x===_e){op(S,$);return}if(x===Ar){b(_);return}const E=()=>{s(S),A&&!A.persisted&&A.afterLeave&&A.afterLeave()};if(_.shapeFlag&1&&A&&!A.persisted){const{leave:B,delayLeave:D}=A,O=()=>B(S,E);D?D(_.el,E,O):O()}else E()},op=(_,x)=>{let S;for(;_!==x;)S=d(_),s(_),_=S;s(x)},ip=(_,x,S)=>{const{bum:$,scope:A,job:E,subTree:B,um:D,m:O,a:T}=_;Nl(O),Nl(T),$&&xs($),A.stop(),E&&(E.flags|=8,_t(B,_,x,S)),D&&ze(D,x),ze(()=>{_.isUnmounted=!0},x)},gr=(_,x,S,$=!1,A=!1,E=0)=>{for(let B=E;B<_.length;B++)_t(_[B],x,S,$,A)},rs=_=>{if(_.shapeFlag&6)return rs(_.component.subTree);if(_.shapeFlag&128)return _.suspense.next();const x=d(_.anchor||_.el),S=x&&x[ag];return S?d(S):x};let jo=!1;const dl=(_,x,S)=>{let $;_==null?x._vnode&&(_t(x._vnode,null,null,!0),$=x._vnode.component):g(x._vnode||null,_,x,null,null,null,S),x._vnode=_,jo||(jo=!0,wl($),Ds(),jo=!1)},In={p:g,um:_t,m:cn,r:fl,mt:M,mc:F,pc:H,pbc:N,n:rs,o:e};let Uo,Go;return t&&([Uo,Go]=t(In)),{render:dl,hydrate:Uo,createApp:Pg(dl,Uo)}}function Yo({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 un({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Ef(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Tf(e,t,n=!1){const r=e.children,s=t.children;if(Z(r)&&Z(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]=Jt(s[o]),a.el=i.el),!n&&a.patchFlag!==-2&&Tf(i,a)),a.type===kn&&(a.patchFlag!==-1?a.el=i.el:a.__elIndex=o+(e.type===_e?1:0)),a.type===at&&!a.el&&(a.el=i.el)}}function qg(e){const t=e.slice(),n=[0];let r,s,o,i,a;const l=e.length;for(r=0;r<l;r++){const u=e[r];if(u!==0){if(s=n[n.length-1],e[s]<u){t[r]=s,n.push(r);continue}for(o=0,i=n.length-1;o<i;)a=o+i>>1,e[n[a]]<u?o=a+1:i=a;u<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 $f(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:$f(t)}function Nl(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Rf(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Rf(t.subTree):null}const Pf=e=>e.__isSuspense;let Pi=0;const Kg={name:"Suspense",__isSuspense:!0,process(e,t,n,r,s,o,i,a,l,u){if(e==null)Jg(t,n,r,s,o,i,a,l,u);else{if(o&&o.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}Yg(e,t,n,r,s,i,a,l,u)}},hydrate:Zg,normalize:Qg},Xg=Kg;function Hr(e,t){const n=e.props&&e.props[t];Y(n)&&n()}function Jg(e,t,n,r,s,o,i,a,l){const{p:u,o:{createElement:c}}=l,f=c("div"),d=e.suspense=Nf(e,s,r,t,f,n,o,i,a,l);u(null,d.pendingBranch=e.ssContent,f,null,r,d,o,i),d.deps>0?(Hr(e,"onPending"),Hr(e,"onFallback"),u(null,e.ssFallback,t,n,r,null,o,i),Yn(d,e.ssFallback)):d.resolve(!1,!0)}function Yg(e,t,n,r,s,o,i,a,{p:l,um:u,o:{createElement:c}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const d=t.ssContent,h=t.ssFallback,{activeBranch:p,pendingBranch:g,isInFallback:w,isHydrating:y}=f;if(g)f.pendingBranch=d,Yt(g,d)?(l(g,d,f.hiddenContainer,null,s,f,o,i,a),f.deps<=0?f.resolve():w&&(y||(l(p,h,n,r,s,null,o,i,a),Yn(f,h)))):(f.pendingId=Pi++,y?(f.isHydrating=!1,f.activeBranch=g):u(g,s,f),f.deps=0,f.effects.length=0,f.hiddenContainer=c("div"),w?(l(null,d,f.hiddenContainer,null,s,f,o,i,a),f.deps<=0?f.resolve():(l(p,h,n,r,s,null,o,i,a),Yn(f,h))):p&&Yt(p,d)?(l(p,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(p&&Yt(p,d))l(p,d,n,r,s,f,o,i,a),Yn(f,d);else if(Hr(t,"onPending"),f.pendingBranch=d,d.shapeFlag&512?f.pendingId=d.component.suspenseId:f.pendingId=Pi++,l(null,d,f.hiddenContainer,null,s,f,o,i,a),f.deps<=0)f.resolve();else{const{timeout:v,pendingId:m}=f;v>0?setTimeout(()=>{f.pendingId===m&&f.fallback(h)},v):v===0&&f.fallback(h)}}function Nf(e,t,n,r,s,o,i,a,l,u,c=!1){const{p:f,m:d,um:h,n:p,o:{parentNode:g,remove:w}}=u;let y;const v=em(e);v&&t&&t.pendingBranch&&(y=t.pendingId,t.deps++);const m=e.props?dp(e.props.timeout):void 0,b=o,C={vnode:e,parent:t,parentComponent:n,namespace:i,container:r,hiddenContainer:s,deps:0,pendingId:Pi++,timeout:typeof m=="number"?m:-1,activeBranch:null,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve(k=!1,P=!1){const{vnode:F,activeBranch:G,pendingBranch:N,pendingId:q,effects:W,parentComponent:Q,container:M,isInFallback:X}=C;let L=!1;C.isHydrating?C.isHydrating=!1:k||(L=G&&N.transition&&N.transition.mode==="out-in",L&&(G.transition.afterLeave=()=>{q===C.pendingId&&(d(N,M,o===b?p(G):o,0),Ai(W),X&&F.ssFallback&&(F.ssFallback.el=null))}),G&&(g(G.el)===M&&(o=p(G)),h(G,Q,C,!0),!L&&X&&F.ssFallback&&ze(()=>F.ssFallback.el=null,C)),L||d(N,M,o,0)),Yn(C,N),C.pendingBranch=null,C.isInFallback=!1;let K=C.parent,H=!1;for(;K;){if(K.pendingBranch){K.effects.push(...W),H=!0;break}K=K.parent}!H&&!L&&Ai(W),C.effects=[],v&&t&&t.pendingBranch&&y===t.pendingId&&(t.deps--,t.deps===0&&!P&&t.resolve()),Hr(F,"onResolve")},fallback(k){if(!C.pendingBranch)return;const{vnode:P,activeBranch:F,parentComponent:G,container:N,namespace:q}=C;Hr(P,"onFallback");const W=p(F),Q=()=>{C.isInFallback&&(f(null,k,N,W,G,null,q,a,l),Yn(C,k))},M=k.transition&&k.transition.mode==="out-in";M&&(F.transition.afterLeave=Q),C.isInFallback=!0,h(F,G,null,!0),M||Q()},move(k,P,F){C.activeBranch&&d(C.activeBranch,k,P,F),C.container=k},next(){return C.activeBranch&&p(C.activeBranch)},registerDep(k,P,F){const G=!!C.pendingBranch;G&&C.deps++;const N=k.vnode.el;k.asyncDep.catch(q=>{cr(q,k,0)}).then(q=>{if(k.isUnmounted||C.isUnmounted||C.pendingId!==k.suspenseId)return;k.asyncResolved=!0;const{vnode:W}=k;Li(k,q),N&&(W.el=N);const Q=!N&&k.subTree.el;P(k,W,g(N||k.subTree.el),N?null:p(k.subTree),C,i,F),Q&&(W.placeholder=null,w(Q)),So(k,W.el),G&&--C.deps===0&&C.resolve()})},unmount(k,P){C.isUnmounted=!0,C.activeBranch&&h(C.activeBranch,n,k,P),C.pendingBranch&&h(C.pendingBranch,n,k,P)}};return C}function Zg(e,t,n,r,s,o,i,a,l){const u=t.suspense=Nf(t,r,n,e.parentNode,document.createElement("div"),null,s,o,i,a,!0),c=l(e,u.pendingBranch=t.ssContent,n,u,o,i);return u.deps===0&&u.resolve(!1,!0),c}function Qg(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Il(r?n.default:n),e.ssFallback=r?Il(n.fallback):z(at)}function Il(e){let t;if(Y(e)){const n=nr&&e._c;n&&(e._d=!1,j()),e=e(),n&&(e._d=!0,t=Ke,Lf())}return Z(e)&&(e=Og(e)),e=Qe(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function If(e,t){t&&t.pendingBranch?Z(e)?t.effects.push(...e):t.effects.push(e):Ai(e)}function Yn(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,So(r,s))}function em(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const _e=Symbol.for("v-fgt"),kn=Symbol.for("v-txt"),at=Symbol.for("v-cmt"),Ar=Symbol.for("v-stc"),Er=[];let Ke=null;function j(e=!1){Er.push(Ke=e?null:[])}function Lf(){Er.pop(),Ke=Er[Er.length-1]||null}let nr=1;function js(e,t=!1){nr+=e,e<0&&Ke&&t&&(Ke.hasOnce=!0)}function Of(e){return e.dynamicChildren=nr>0?Ke||Vn:null,Lf(),nr>0&&Ke&&Ke.push(e),e}function ee(e,t,n,r,s,o){return Of(I(e,t,n,r,s,o,!0))}function be(e,t,n,r,s){return Of(z(e,t,n,r,s,!0))}function rr(e){return e?e.__v_isVNode===!0:!1}function Yt(e,t){return e.type===t.type&&e.key===t.key}const Mf=({key:e})=>e??null,Ss=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?we(e)||ve(e)||Y(e)?{i:Oe,r:e,k:t,f:!!n}:e:null);function I(e,t=null,n=null,r=0,s=null,o=e===_e?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Mf(t),ref:t&&Ss(t),scopeId:wo,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:Oe};return a?(Oa(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=we(n)?8:16),nr>0&&!i&&Ke&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Ke.push(l),l}const z=tm;function tm(e,t=null,n=null,r=0,s=null,o=!1){if((!e||e===ff)&&(e=at),rr(e)){const a=sr(e,t,!0);return n&&Oa(a,n),nr>0&&!o&&Ke&&(a.shapeFlag&6?Ke[Ke.indexOf(e)]=a:Ke.push(a)),a.patchFlag=-2,a}if(fm(e)&&(e=e.__vccOpts),t){t=La(t);let{class:a,style:l}=t;a&&!we(a)&&(t.class=Ae(a)),he(l)&&(bo(l)&&!Z(l)&&(l=je({},l)),t.style=wn(l))}const i=we(e)?1:Pf(e)?128:lg(e)?64:he(e)?4:Y(e)?2:0;return I(e,t,n,r,s,i,o,!0)}function La(e){return e?bo(e)||wf(e)?je({},e):e:null}function sr(e,t,n=!1,r=!1){const{props:s,ref:o,patchFlag:i,children:a,transition:l}=e,u=t?ko(s||{},t):s,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Mf(u),ref:t&&t.ref?n&&o?Z(o)?o.concat(Ss(t)):[o,Ss(t)]:Ss(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!==_e?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&&sr(e.ssContent),ssFallback:e.ssFallback&&sr(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&Ea(c,l.clone(c)),c}function ie(e=" ",t=0){return z(kn,null,e,t)}function nm(e,t){const n=z(Ar,null,e);return n.staticCount=t,n}function Ie(e="",t=!1){return t?(j(),be(at,null,e)):z(at,null,e)}function Qe(e){return e==null||typeof e=="boolean"?z(at):Z(e)?z(_e,null,e.slice()):rr(e)?Jt(e):z(kn,null,String(e))}function Jt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:sr(e)}function Oa(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Z(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),Oa(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!wf(t)?t._ctx=Oe:s===3&&Oe&&(Oe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Y(t)?(t={default:t,_ctx:Oe},n=32):(t=String(t),r&64?(n=16,t=[ie(t)]):n=8);e.children=t,e.shapeFlag|=n}function ko(...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=Ae([t.class,r.class]));else if(s==="style")t.style=wn([t.style,r.style]);else if(Yr(s)){const o=t[s],i=r[s];i&&o!==i&&!(Z(o)&&o.includes(i))&&(t[s]=o?[].concat(o,i):i)}else s!==""&&(t[s]=r[s])}return t}function nt(e,t,n,r=null){Et(e,t,7,[n,r])}const rm=mf();let sm=0;function om(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||rm,o={uid:sm++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Lu(!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:Cf(r,s),emitsOptions:yf(r,s),emit:null,emitted:null,propsDefaults:pe,inheritAttrs:r.inheritAttrs,ctx:pe,data:pe,props:pe,attrs:pe,slots:pe,refs:pe,setupState:pe,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=Ig.bind(null,o),e.ce&&e.ce(o),o}let Le=null;const Tn=()=>Le||Oe;let Us,Ni;{const e=mo(),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)}};Us=t("__VUE_INSTANCE_SETTERS__",n=>Le=n),Ni=t("__VUE_SSR_SETTERS__",n=>or=n)}const An=e=>{const t=Le;return Us(e),e.scope.on(),()=>{e.scope.off(),Us(t)}},Ii=()=>{Le&&Le.scope.off(),Us(null)};function Df(e){return e.vnode.shapeFlag&4}let or=!1;function im(e,t=!1,n=!1){t&&Ni(t);const{props:r,children:s}=e.vnode,o=Df(e);Bg(e,r,o,t),Gg(e,s,n||t);const i=o?am(e,t):void 0;return t&&Ni(!1),i}function am(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,xg);const{setup:r}=n;if(r){Ht();const s=e.setupContext=r.length>1?cm(e):null,o=An(e),i=Qr(r,e,0,[e.props,s]),a=_a(i);if(jt(),o(),(a||e.sp)&&!xn(e)&&Ta(e),a){if(i.then(Ii,Ii),t)return i.then(l=>{Li(e,l)}).catch(l=>{cr(l,e,0)});e.asyncDep=i}else Li(e,i)}else Ff(e)}function Li(e,t,n){Y(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:he(t)&&(e.setupState=Yu(t)),Ff(e)}function Ff(e,t,n){const r=e.type;e.render||(e.render=r.render||xt);{const s=An(e);Ht();try{kg(e)}finally{jt(),s()}}}const lm={get(e,t){return Be(e,"get",""),e[t]}};function cm(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,lm),slots:e.slots,emit:e.emit,expose:t}}function Ao(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Yu(Hp(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in kr)return kr[n](e)},has(t,n){return n in t||n in kr}})):e.proxy}function um(e,t=!0){return Y(e)?e.displayName||e.name:e.name||t&&e.__name}function fm(e){return Y(e)&&"__vccOpts"in e}const ke=(e,t)=>Xp(e,t,or);function Gs(e,t,n){try{js(-1);const r=arguments.length;return r===2?he(t)&&!Z(t)?rr(t)?z(e,null,[t]):z(e,t):z(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&rr(n)&&(n=[n]),z(e,t,n))}finally{js(1)}}const dm="3.5.26";let Oi;const Ll=typeof window<"u"&&window.trustedTypes;if(Ll)try{Oi=Ll.createPolicy("vue",{createHTML:e=>e})}catch{}const Bf=Oi?e=>Oi.createHTML(e):e=>e,hm="http://www.w3.org/2000/svg",pm="http://www.w3.org/1998/Math/MathML",It=typeof document<"u"?document:null,Ol=It&&It.createElement("template"),gm={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"?It.createElementNS(hm,e):t==="mathml"?It.createElementNS(pm,e):n?It.createElement(e,{is:n}):It.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>It.createTextNode(e),createComment:e=>It.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>It.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{Ol.innerHTML=Bf(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const a=Ol.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]}},mm=Symbol("_vtc");function ym(e,t,n){const r=e[mm];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Ml=Symbol("_vod"),_m=Symbol("_vsh"),bm=Symbol(""),wm=/(?:^|;)\s*display\s*:/;function vm(e,t,n){const r=e.style,s=we(n);let o=!1;if(n&&!s){if(t)if(we(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();n[a]==null&&ks(r,a,"")}else for(const i in t)n[i]==null&&ks(r,i,"");for(const i in n)i==="display"&&(o=!0),ks(r,i,n[i])}else if(s){if(t!==n){const i=r[bm];i&&(n+=";"+i),r.cssText=n,o=wm.test(n)}}else t&&e.removeAttribute("style");Ml in e&&(e[Ml]=o?r.display:"",e[_m]&&(r.display="none"))}const Dl=/\s*!important$/;function ks(e,t,n){if(Z(n))n.forEach(r=>ks(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Cm(e,t);Dl.test(n)?e.setProperty(ln(r),n.replace(Dl,""),"important"):e[r]=n}}const Fl=["Webkit","Moz","ms"],Zo={};function Cm(e,t){const n=Zo[t];if(n)return n;let r=it(t);if(r!=="filter"&&r in e)return Zo[t]=r;r=go(r);for(let s=0;s<Fl.length;s++){const o=Fl[s]+r;if(o in e)return Zo[t]=o}return t}const Bl="http://www.w3.org/1999/xlink";function Hl(e,t,n,r,s,o=_p(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Bl,t.slice(6,t.length)):e.setAttributeNS(Bl,t,n):n==null||o&&!Pu(n)?e.removeAttribute(t):e.setAttribute(t,o?"":pt(n)?String(n):n)}function jl(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Bf(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=Pu(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 Hf(e,t,n,r){e.addEventListener(t,n,r)}function xm(e,t,n,r){e.removeEventListener(t,n,r)}const Ul=Symbol("_vei");function Sm(e,t,n,r,s=null){const o=e[Ul]||(e[Ul]={}),i=o[t];if(r&&i)i.value=r;else{const[a,l]=km(t);if(r){const u=o[t]=Tm(r,s);Hf(e,a,u,l)}else i&&(xm(e,a,i,l),o[t]=void 0)}}const Gl=/(?:Once|Passive|Capture)$/;function km(e){let t;if(Gl.test(e)){t={};let r;for(;r=e.match(Gl);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):ln(e.slice(2)),t]}let Qo=0;const Am=Promise.resolve(),Em=()=>Qo||(Am.then(()=>Qo=0),Qo=Date.now());function Tm(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Et($m(r,n.value),t,5,[r])};return n.value=e,n.attached=Em(),n}function $m(e,t){if(Z(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 Wl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Rm=(e,t,n,r,s,o)=>{const i=s==="svg";t==="class"?ym(e,r,i):t==="style"?vm(e,n,r):Yr(t)?ma(t)||Sm(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Pm(e,t,r,i))?(jl(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Hl(e,t,r,i,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!we(r))?jl(e,it(t),r,o,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Hl(e,t,r,i))};function Pm(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Wl(t)&&Y(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||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 Wl(t)&&we(n)?!1:t in e}const zl=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Z(t)?n=>xs(t,n):t},ei=Symbol("_assign"),Nm={created(e,{value:t},n){e.checked=Ns(t,n.props.value),e[ei]=zl(n),Hf(e,"change",()=>{e[ei](Im(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[ei]=zl(r),t!==n&&(e.checked=Ns(t,r.props.value))}};function Im(e){return"_value"in e?e._value:e.value}const Lm={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Om=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=(s=>{if(!("key"in s))return;const o=ln(s.key);if(t.some(i=>i===o||Lm[i]===o))return e(s)}))},jf=je({patchProp:Rm},gm);let Tr,Vl=!1;function Mm(){return Tr||(Tr=zg(jf))}function Dm(){return Tr=Vl?Tr:Vg(jf),Vl=!0,Tr}const Uf=((...e)=>{const t=Mm().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Wf(r);if(!s)return;const o=t._component;!Y(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const i=n(s,!1,Gf(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),i},t}),Fm=((...e)=>{const t=Dm().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Wf(r);if(s)return n(s,!0,Gf(s))},t});function Gf(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Wf(e){return we(e)?document.querySelector(e):e}const Bm=/"(?:_|\\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*:/,Hm=/"(?: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*:/,jm=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Um(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){Gm(e);return}return t}function Gm(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Ws(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(!jm.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(Bm.test(e)||Hm.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,Um)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}const Wm=/#/g,zm=/&/g,Vm=/\//g,qm=/=/g,Ma=/\+/g,Km=/%5e/gi,Xm=/%60/gi,Jm=/%7c/gi,Ym=/%20/gi;function Zm(e){return encodeURI(""+e).replace(Jm,"|")}function Mi(e){return Zm(typeof e=="string"?e:JSON.stringify(e)).replace(Ma,"%2B").replace(Ym,"+").replace(Wm,"%23").replace(zm,"%26").replace(Xm,"`").replace(Km,"^").replace(Vm,"%2F")}function ti(e){return Mi(e).replace(qm,"%3D")}function zs(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function Qm(e){return zs(e.replace(Ma," "))}function ey(e){return zs(e.replace(Ma," "))}function Eo(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=Qm(r[1]);if(s==="__proto__"||s==="constructor")continue;const o=ey(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 ty(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${ti(e)}=${Mi(n)}`).join("&"):`${ti(e)}=${Mi(t)}`:ti(e)}function zf(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>ty(t,e[t])).filter(Boolean).join("&")}const ny=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,Vf=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,ry=/^([/\\]\s*){2,}[^/\\]/,sy=/^[\s\0]*(blob|data|javascript|vbscript):$/i,oy=/\/$|\/\?|\/#/,iy=/^\.?\//;function Gt(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?ny.test(e):Vf.test(e)||(t.acceptRelative?ry.test(e):!1)}function ay(e){return!!e&&sy.test(e)}function Di(e="",t){return t?oy.test(e):e.endsWith("/")}function Da(e="",t){if(!t)return(Di(e)?e.slice(0,-1):e)||"/";if(!Di(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 Vs(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(Di(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 ly(e=""){return e.startsWith("/")}function ql(e=""){return ly(e)?e:"/"+e}function cy(e,t){if(Kf(t)||Gt(e))return e;const n=Da(t);return e.startsWith(n)?e:$n(n,e)}function uy(e,t){if(Kf(t))return e;const n=Da(t);if(!e.startsWith(n))return e;const r=e.slice(n.length);return r[0]==="/"?r:"/"+r}function qf(e,t){const n=Yf(e),r={...Eo(n.search),...t};return n.search=zf(r),Zf(n)}function Kf(e){return!e||e==="/"}function fy(e){return e&&e!=="/"}function $n(e,...t){let n=e||"";for(const r of t.filter(s=>fy(s)))if(n){const s=r.replace(iy,"");n=Vs(n)+s}else n=r;return n}function Xf(...e){const t=/\/(?!\/)/,n=e.filter(Boolean),r=[];let s=0;for(const i of n)if(!(!i||i==="/")){for(const[a,l]of i.split(t).entries())if(!(!l||l===".")){if(l===".."){if(r.length===1&&Gt(r[0]))continue;r.pop(),s--;continue}if(a===1&&r[r.length-1]?.endsWith(":/")){r[r.length-1]+="/"+l;continue}r.push(l),s++}}let o=r.join("/");return s>=0?n[0]?.startsWith("/")&&!o.startsWith("/")?o="/"+o:n[0]?.startsWith("./")&&!o.startsWith("./")&&(o="./"+o):o="../".repeat(-1*s)+o,n[n.length-1]?.endsWith("/")&&!o.endsWith("/")&&(o+="/"),o}function dy(e){return hy(e,"https://")}function hy(e,t){let n=e.match(Vf);return n||(n=e.match(/^\/{2,}/)),n?t+e.slice(n[0].length):t+e}function py(e,t,n={}){return n.trailingSlash||(e=Vs(e),t=Vs(t)),n.leadingSlash||(e=ql(e),t=ql(t)),n.encoding||(e=zs(e),t=zs(t)),e===t}const Jf=Symbol.for("ufo:protocolRelative");function Yf(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(!Gt(e,{acceptRelative:!0}))return Kl(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:u,hash:c}=Kl(a);return{protocol:r.toLowerCase(),auth:s?s.slice(0,Math.max(0,s.length-1)):"",host:i,pathname:l,search:u,hash:c,[Jf]:!r}}function Kl(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function Zf(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[Jf]?(e.protocol||"")+"//":"")+s+o+t+n+r}class gy extends Error{constructor(t,n){super(t,n),this.name="FetchError",n?.cause&&!this.cause&&(this.cause=n.cause)}}function my(e){const t=e.error?.message||e.error?.toString()||"",n=e.request?.method||e.options?.method||"GET",r=e.request?.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 gy(i,e.error?{cause:e.error}:void 0);for(const l of["request","options","response"])Object.defineProperty(a,l,{get(){return e[l]}});for(const[l,u]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,l,{get(){return e.response&&e.response[u]}});return a}const yy=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function Xl(e="GET"){return yy.has(e.toUpperCase())}function _y(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||e instanceof FormData||e instanceof URLSearchParams?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const by=new Set(["image/svg","application/xml","application/xhtml","application/html"]),wy=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function vy(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return wy.test(t)?"json":t==="text/event-stream"?"stream":by.has(t)||t.startsWith("text/")?"text":"blob"}function Cy(e,t,n,r){const s=xy(t?.headers??e?.headers,n?.headers,r);let o;return(n?.query||n?.params||t?.params||t?.query)&&(o={...n?.params,...n?.query,...t?.params,...t?.query}),{...n,...t,query:o,params:o,headers:s}}function xy(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 us(e,t){if(t)if(Array.isArray(t))for(const n of t)await n(e);else await t(e)}const Sy=new Set([408,409,425,429,500,502,503,504]),ky=new Set([101,204,205,304]);function Qf(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 c;typeof a.options.retry=="number"?c=a.options.retry:c=Xl(a.options.method)?0:1;const f=a.response&&a.response.status||500;if(c>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(f):Sy.has(f))){const d=typeof a.options.retryDelay=="function"?a.options.retryDelay(a):a.options.retryDelay||0;return d>0&&await new Promise(h=>setTimeout(h,d)),o(a.request,{...a.options,retry:c-1})}}const u=my(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,o),u}const o=async function(l,u={}){const c={request:l,options:Cy(l,u,e.defaults,n),response:void 0,error:void 0};if(c.options.method&&(c.options.method=c.options.method.toUpperCase()),c.options.onRequest&&(await us(c,c.options.onRequest),c.options.headers instanceof n||(c.options.headers=new n(c.options.headers||{}))),typeof c.request=="string"&&(c.options.baseURL&&(c.request=cy(c.request,c.options.baseURL)),c.options.query&&(c.request=qf(c.request,c.options.query),delete c.options.query),"query"in c.options&&delete c.options.query,"params"in c.options&&delete c.options.params),c.options.body&&Xl(c.options.method))if(_y(c.options.body)){const h=c.options.headers.get("content-type");typeof c.options.body!="string"&&(c.options.body=h==="application/x-www-form-urlencoded"?new URLSearchParams(c.options.body).toString():JSON.stringify(c.options.body)),h||c.options.headers.set("content-type","application/json"),c.options.headers.has("accept")||c.options.headers.set("accept","application/json")}else("pipeTo"in c.options.body&&typeof c.options.body.pipeTo=="function"||typeof c.options.body.pipe=="function")&&("duplex"in c.options||(c.options.duplex="half"));let f;if(!c.options.signal&&c.options.timeout){const h=new r;f=setTimeout(()=>{const p=new Error("[TimeoutError]: The operation was aborted due to timeout");p.name="TimeoutError",p.code=23,h.abort(p)},c.options.timeout),c.options.signal=h.signal}try{c.response=await t(c.request,c.options)}catch(h){return c.error=h,c.options.onRequestError&&await us(c,c.options.onRequestError),await s(c)}finally{f&&clearTimeout(f)}if((c.response.body||c.response._bodyInit)&&!ky.has(c.response.status)&&c.options.method!=="HEAD"){const h=(c.options.parseResponse?"json":c.options.responseType)||vy(c.response.headers.get("content-type")||"");switch(h){case"json":{const p=await c.response.text(),g=c.options.parseResponse||Ws;c.response._data=g(p);break}case"stream":{c.response._data=c.response.body||c.response._bodyInit;break}default:c.response._data=await c.response[h]()}}return c.options.onResponse&&await us(c,c.options.onResponse),!c.options.ignoreResponseError&&c.response.status>=400&&c.response.status<600?(c.options.onResponseError&&await us(c,c.options.onResponseError),await s(c)):c.response},i=async function(l,u){return(await o(l,u))._data};return i.raw=o,i.native=(...a)=>t(...a),i.create=(a={},l={})=>Qf({...e,...l,defaults:{...e.defaults,...l.defaults,...a}}),i}const qs=(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")})(),Ay=qs.fetch?(...e)=>qs.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),Ey=qs.Headers,Ty=qs.AbortController,$y=Qf({fetch:Ay,Headers:Ey,AbortController:Ty}),Ry=$y,Py=()=>window?.__NUXT__?.config||window?.useNuxtApp?.().payload?.config,Fa=()=>Py().app,Ny=()=>Fa().baseURL,Iy=()=>Fa().buildAssetsDir,Ba=(...e)=>Xf(ed(),Iy(),...e),ed=(...e)=>{const t=Fa(),n=t.cdnURL||t.baseURL;return e.length?Xf(n,...e):n};globalThis.__buildAssetsURL=Ba,globalThis.__publicAssetsURL=ed;globalThis.$fetch||(globalThis.$fetch=Ry.create({baseURL:Ny()}));"global"in globalThis||(globalThis.global=globalThis);function Fi(e,t={},n){for(const r in e){const s=e[r],o=n?`${n}:${r}`:r;typeof s=="object"&&s!==null?Fi(s,t,o):typeof s=="function"&&(t[o]=s)}return t}const Ly={run:e=>e()},Oy=()=>Ly,td=typeof console.createTask<"u"?console.createTask:Oy;function My(e,t){const n=t.shift(),r=td(n);return e.reduce((s,o)=>s.then(()=>r.run(()=>o(...t))),Promise.resolve())}function Dy(e,t){const n=t.shift(),r=td(n);return Promise.all(e.map(s=>r.run(()=>s(...t))))}function ni(e,t){for(const n of[...e])n(t)}class Fy{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=Fi(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=Fi(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(My,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(Dy,t,...n)}callHookWith(t,n,...r){const s=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&ni(this._before,s);const o=t(n in this._hooks?[...this._hooks[n]]:[],r);return o instanceof Promise?o.finally(()=>{this._after&&s&&ni(this._after,s)}):(this._after&&s&&ni(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 nd(){return new Fy}function By(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},u=()=>t===i?l:void 0;Bi.add(u);try{const c=s?s.run(i,a):a();return n||(t=void 0),await c}finally{Bi.delete(u)}}}}function Hy(e={}){const t={};return{get(n,r={}){return t[n]||(t[n]=By({...e,...r})),t[n]}}}const Ks=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},Jl="__unctx__",jy=Ks[Jl]||(Ks[Jl]=Hy()),Uy=(e,t={})=>jy.get(e,t),Yl="__unctx_async_handlers__",Bi=Ks[Yl]||(Ks[Yl]=new Set);function rd(e){const t=[];for(const s of Bi){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 Zl={id:"__nuxt-loader"},Gy={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},Wy="#__nuxt",sd="nuxt-app",Ql=36e5,zy="vite:preloadError";function od(e=sd){return Uy(e,{asyncContext:!1})}const Vy="__nuxt_plugin";function qy(e){let t=0;const n={_id:e.id||sd||"nuxt-app",_scope:wp(),provide:void 0,versions:{get nuxt(){return"4.2.2"},get vue(){return n.vueApp.version}},payload:Un({...e.ssrContext?.payload||{},data:Un({}),state:sn({}),once:new Set,_errors:Un({})}),static:{data:{}},runWithContext(s){return n._scope.active&&!Ou()?n._scope.run(()=>ec(n,s)):ec(n,s)},isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let s=!1;return()=>{if(!s&&(s=!0,t--,t===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:Un({}),_payloadRevivers:{},...e};{const s=window.__NUXT__;if(s)for(const o in s)switch(o){case"data":case"state":case"_errors":Object.assign(n.payload[o],s[o]);break;default:n.payload[o]=s[o]}}n.hooks=nd(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(s,o)=>{const i="$"+s;fs(n,i,o),fs(n.vueApp.config.globalProperties,i,o)},fs(n.vueApp,"$nuxt",n),fs(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener(zy,o=>{n.callHook("app:chunkError",{error:o.payload}),o.payload.message.includes("Unable to preload CSS")&&o.preventDefault()}),window.useNuxtApp||=xe;const s=n.hook("app:error",(...o)=>{console.error("[nuxt] error caught during app initialization",...o)});n.hook("app:mounted",s)}const r=n.payload.config;return n.provide("config",r),n}function Ky(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function Xy(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 Jy(e,t){const n=new Set,r=[],s=[];let o,i=0;async function a(l){const u=l.dependsOn?.filter(c=>t.some(f=>f._name===c)&&!n.has(c))??[];if(u.length>0)r.push([new Set(u),l]);else{const c=Xy(e,l).then(async()=>{l._name&&(n.add(l._name),await Promise.all(r.map(async([f,d])=>{f.has(l._name)&&(f.delete(l._name),f.size===0&&(i++,await a(d)))})))}).catch(f=>{if(!l.parallel&&!e.payload.error)throw f;o||=f});l.parallel?s.push(c):await c}}for(const l of t)Ky(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)throw e.payload.error||o}function yt(e){if(typeof e=="function")return e;const t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[Vy]:!0,_name:t})}function ec(e,t,n){const r=()=>t();return od(e._id).set(e),e.vueApp.runWithContext(r)}function Yy(e){let t;return vo()&&(t=Tn()?.appContext.app.$nuxt),t||=od(e).tryUse(),t||null}function xe(e){const t=Yy(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function ir(e){return xe().$config}function fs(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function Zy(e,t){return{ctx:{table:e},matchAll:n=>ad(n,e)}}function id(e){const t={};for(const n in e)t[n]=n==="dynamic"?new Map(Object.entries(e[n]).map(([r,s])=>[r,id(s)])):new Map(Object.entries(e[n]));return t}function Qy(e){return Zy(id(e))}function ad(e,t,n){e.endsWith("/")&&(e=e.slice(0,-1)||"/");const r=[];for(const[o,i]of tc(t.wildcard))(e===o||e.startsWith(o+"/"))&&r.push(i);for(const[o,i]of tc(t.dynamic))if(e.startsWith(o+"/")){const a="/"+e.slice(o.length).split("/").splice(2).join("/");r.push(...ad(a,i))}const s=t.static.get(e);return s&&r.push(s),r.filter(Boolean)}function tc(e){return[...e.entries()].sort((t,n)=>t[0].length-n[0].length)}function ri(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 Hi(e,t,n=".",r){if(!ri(t))return Hi(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]]:ri(i)&&ri(s[o])?s[o]=Hi(i,s[o],(n?`${n}.`:"")+o.toString(),r):s[o]=i))}return s}function e_(e){return(...t)=>t.reduce((n,r)=>Hi(n,r,"",e),{})}const t_=e_();function n_(e,t){try{return t in e}catch{return!1}}class nc extends Error{static __h3_error__=!0;statusCode=500;fatal=!1;unhandled=!1;statusMessage;data;cause;constructor(t,n={}){super(t,n),n.cause&&!this.cause&&(this.cause=n.cause)}toJSON(){const t={message:this.message,statusCode:ji(this.statusCode,500)};return this.statusMessage&&(t.statusMessage=ld(this.statusMessage)),this.data!==void 0&&(t.data=this.data),t}}function r_(e){if(typeof e=="string")return new nc(e);if(s_(e))return e;const t=new nc(e.message??e.statusMessage??"",{cause:e.cause||e});if(n_(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=ji(e.statusCode,t.statusCode):e.status&&(t.statusCode=ji(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;ld(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 s_(e){return e?.constructor?.__h3_error__===!0}const o_=/[^\u0009\u0020-\u007E]/g;function ld(e=""){return e.replace(o_,"")}function ji(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const cd=Symbol("route");import.meta.url.replace(/\/app\/.*$/,"/");const Tt=()=>xe()?.$router,ud=()=>vo()?Cn(cd,xe()._route):xe()._route;const i_=()=>{try{if(xe()._processingMiddleware)return!0}catch{return!1}return!1},fd=(e,t)=>{e||="/";const n=typeof e=="string"?e:"path"in e?Ui(e):Tt().resolve(e).href;if(t?.open){const{target:l="_blank",windowFeatures:u={}}=t.open,c=[];for(const[f,d]of Object.entries(u))d!==void 0&&c.push(`${f.toLowerCase()}=${d}`);return open(n,l,c.join(", ")),Promise.resolve()}const r=Gt(n,{acceptRelative:!0}),s=t?.external||r;if(s){if(!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&&ay(l))throw new Error(`Cannot navigate to a URL with '${l}' protocol.`)}const o=i_();if(!s&&o){if(t?.replace){if(typeof e=="string"){const{pathname:l,search:u,hash:c}=Yf(e);return{path:l,...u&&{query:Eo(u)},...c&&{hash:c},replace:!0}}return{...e,replace:!0}}return e}const i=Tt(),a=xe();return s?(a._scope.stop(),t?.replace?location.replace(n):location.href=n,o?a.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):t?.replace?i.replace(e):i.push(e)};function Ui(e){return qf(e.path||"",e.query||{})+(e.hash||"")}const dd="__nuxt_error",Ha=()=>Sa(xe().payload,"error"),a_=e=>{const t=ja(e);try{const n=Ha();xe().hooks.callHook("app:error",t),n.value||=t}catch{throw t}return t},l_=async(e={})=>{const t=xe(),n=Ha();t.callHook("app:error:cleared",e),e.redirect&&await Tt().replace(e.redirect),n.value=void 0},c_=e=>!!e&&typeof e=="object"&&dd in e,ja=e=>{const t=r_(e);return Object.defineProperty(t,dd,{value:!0,configurable:!1,writable:!1}),t};function u_(e){const t=d_(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 f_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function d_(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|=f_.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 h_=-1,p_=-2,g_=-3,m_=-4,y_=-5,__=-6;function b_(e,t){return w_(JSON.parse(e),t)}function w_(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===h_)return;if(o===g_)return NaN;if(o===m_)return 1/0;if(o===y_)return-1/0;if(o===__)return-0;if(i||typeof o!="number")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],u=t&&Object.hasOwn(t,l)?t[l]:void 0;if(u){let c=a[1];return typeof c!="number"&&(c=n.push(a[1])-1),r[o]=u(s(c))}switch(l){case"Date":r[o]=new Date(a[1]);break;case"Set":const c=new Set;r[o]=c;for(let h=1;h<a.length;h+=1)c.add(s(a[h]));break;case"Map":const f=new Map;r[o]=f;for(let h=1;h<a.length;h+=2)f.set(s(a[h]),s(a[h+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 h=1;h<a.length;h+=2)d[a[h]]=s(a[h+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 h=globalThis[l],p=new h(s(a[1]));r[o]=a[2]!==void 0?p.subarray(a[2],a[3]):p;break}case"ArrayBuffer":{const h=a[1],p=u_(h);r[o]=p;break}case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{const h=l.slice(9);r[o]=Temporal[h].from(a[1]);break}case"URL":{const h=new URL(a[1]);r[o]=h;break}case"URLSearchParams":{const h=new URLSearchParams(a[1]);r[o]=h;break}default:throw new Error(`Unknown type ${l}`)}}else{const l=new Array(a.length);r[o]=l;for(let u=0;u<a.length;u+=1){const c=a[u];c!==p_&&(l[u]=s(c))}}else{const l={};r[o]=l;for(const u in a){if(u==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");const c=a[u];l[u]=s(c)}}return r[o]}return s(0)}const v_=new Set(["link","style","script","noscript"]),C_=new Set(["title","titleTemplate","script","style","noscript"]),rc=new Set(["base","meta","link","style","script","noscript"]),x_=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),S_=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),k_=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),A_=new Set(["templateParams","htmlAttrs","bodyAttrs"]),E_=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]),T_=["name","property","http-equiv"],$_=new Set(["viewport","description","keywords","robots"]);function hd(e){const t=e.split(":");return t.length?E_.has(t[1]):!1}function Gi(e){const{props:t,tag:n}=e;if(S_.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 T_)if(t[r]!==void 0){const s=t[r],o=s.includes(":"),i=$_.has(s),l=!(o||i)&&e.key?`:key:${e.key}`:"";return`${n}:${s}${l}`}}if(e.key)return`${n}:key:${e.key}`;if(t.id)return`${n}:id:${t.id}`;if(C_.has(n)){const r=e.textContent||e.innerHTML;if(r)return`${n}:content:${r}`}}function sc(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 Xs(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=>Xs(o,t));if(s?.constructor===Object){const o={};for(const i of Object.keys(s))o[i]=Xs(s[i],t,i);return o}return s}function R_(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 pd(e,t){return e.props=e.props||{},t?e.tag==="templateParams"?(e.props=t,e):(Object.entries(t).forEach(([n,r])=>{if(r===null){e.props[n]=null;return}if(n==="class"||n==="style"){e.props[n]=R_(n,r);return}if(k_.has(n)){if(["textContent","innerHTML"].includes(n)&&typeof r=="object"){let i=t.type;if(t.type||(i="application/json"),!i?.endsWith("json")&&i!=="speculationrules")return;t.type=i,e.props.type=i,e[n]=JSON.stringify(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):e}function P_(e,t){const n=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},r=pd({tag:e,props:{}},n);return r.key&&v_.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 N_(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=Xs(e,n),Object.entries(e||{}).forEach(([s,o])=>{if(o!==void 0)for(const i of Array.isArray(o)?o:[o])r.push(P_(s,i))}),r.flat()}const oc=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,ic={base:-10,title:10},I_={critical:-8,high:-1,low:2},ac={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}},L_=/@import/,_r=e=>e===""||e===!0;function O_(e,t){if(typeof t.tagPriority=="number")return t.tagPriority;let n=100;const r=I_[t.tagPriority]||0,s=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:ac;if(t.tag in ic)n=ic[t.tag];else if(t.tag==="meta"){const o=t.props["http-equiv"]==="content-security-policy"?"content-security-policy":t.props.charset?"charset":t.props.name==="viewport"?"viewport":null;o&&(n=ac.meta[o])}else t.tag==="link"&&t.props.rel?n=s.link[t.props.rel]:t.tag==="script"?_r(t.props.async)?n=s.script.async:t.props.src&&!_r(t.props.defer)&&!_r(t.props.async)&&t.props.type!=="module"&&!t.props.type?.endsWith("json")?n=s.script.sync:_r(t.props.defer)&&t.props.src&&!_r(t.props.async)&&(n=s.script.defer):t.tag==="style"&&(n=t.innerHTML&&L_.test(t.innerHTML)?s.style.imported:s.style.sync);return(n||100)+r}function lc(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 M_(e={}){const t=nd();t.addHooks(e.hooks||{});const n=!e.document,r=new Map,s=new Map,o=new Set,i={_entryCount:1,plugins:s,dirty:!1,resolvedOptions:e,hooks:t,ssr:n,entries:r,headEntries(){return[...r.values()]},use:a=>lc(i,a),push(a,l){const u={...l||{}};delete u.head;const c=u._index??i._entryCount++,f={_i:c,input:a,options:u},d={_poll(h=!1){i.dirty=!0,!h&&o.add(c),t.callHook("entries:updated",i)},dispose(){r.delete(c)&&i.invalidate()},patch(h){(!u.mode||u.mode==="server"&&n||u.mode==="client"&&!n)&&(f.input=h,r.set(c,f),d._poll())}};return d.patch(a),d},async resolveTags(){const a={tagMap:new Map,tags:[],entries:[...i.entries.values()]};for(await t.callHook("entries:resolve",a);o.size;){const d=o.values().next().value;o.delete(d);const h=r.get(d);if(h){const p={tags:N_(h.input,e.propResolvers||[]).map(g=>Object.assign(g,h.options)),entry:h};await t.callHook("entries:normalize",p),h._tags=p.tags.map((g,w)=>(g._w=O_(i,g),g._p=(h._i<<10)+w,g._d=Gi(g),g))}}let l=!1;a.entries.flatMap(d=>(d._tags||[]).map(h=>({...h,props:{...h.props}}))).sort(oc).reduce((d,h)=>{const p=String(h._d||h._p);if(!d.has(p))return d.set(p,h);const g=d.get(p);if((h?.tagDuplicateStrategy||(A_.has(h.tag)?"merge":null)||(h.key&&h.key===g.key?"merge":null))==="merge"){const y={...g.props};Object.entries(h.props).forEach(([v,m])=>y[v]=v==="style"?new Map([...g.props.style||new Map,...m]):v==="class"?new Set([...g.props.class||new Set,...m]):m),d.set(p,{...h,props:y})}else h._p>>10===g._p>>10&&h.tag==="meta"&&hd(p)?(d.set(p,Object.assign([...Array.isArray(g)?g:[g],h],h)),l=!0):(h._w===g._w?h._p>g._p:h?._w<g?._w)&&d.set(p,h);return d},a.tagMap);const u=a.tagMap.get("title"),c=a.tagMap.get("titleTemplate");if(i._title=u?.textContent,c){const d=c?.textContent;if(i._titleTemplate=d,d){let h=typeof d=="function"?d(u?.textContent):d;typeof h=="string"&&!i.plugins.has("template-params")&&(h=h.replace("%s",u?.textContent||"")),u?h===null?a.tagMap.delete("title"):a.tagMap.set("title",{...u,textContent:h}):(c.tag="title",c.textContent=h)}}a.tags=Array.from(a.tagMap.values()),l&&(a.tags=a.tags.flat().sort(oc)),await t.callHook("tags:beforeResolve",a),await t.callHook("tags:resolve",a),await t.callHook("tags:afterResolve",a);const f=[];for(const d of a.tags){const{innerHTML:h,tag:p,props:g}=d;if(x_.has(p)&&!(Object.keys(g).length===0&&!d.innerHTML&&!d.textContent)&&!(p==="meta"&&!g.content&&!g["http-equiv"]&&!g.charset)){if(p==="script"&&h){if(g.type?.endsWith("json")){const w=typeof h=="string"?h:JSON.stringify(h);d.innerHTML=w.replace(/</g,"\\u003C")}else typeof h=="string"&&(d.innerHTML=h.replace(new RegExp(`</${p}`,"g"),`<\\/${p}`));d._d=Gi(d)}f.push(d)}}return f},invalidate(){for(const a of r.values())o.add(a._i);i.dirty=!0,t.callHook("entries:updated",i)}};return(e?.plugins||[]).forEach(a=>lc(i,a)),i.hooks.callHook("init",i),e.init?.forEach(a=>a&&i.push(a)),i}const D_=(e,t)=>ve(t)?Ft(t):t,Ua="usehead";function F_(e){return{install(n){n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(Ua,e)}}.install}function B_(){if(vo()){const e=Cn(Ua);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 H_(e,t={}){const n=t.head||B_();return n.ssr?n.push(e||{},t):j_(n,e,t)}function j_(e,t,n={}){const r=Ee(!1);let s;return nf(()=>{const i=r.value?{}:Xs(t,D_);s?s.patch(i):s=e.push(i,n)}),Tn()&&(Pa(()=>{s.dispose()}),of(()=>{r.value=!0}),sf(()=>{r.value=!1})),s}function U_(e){const t=e||xe();return t.ssrContext?.head||t.runWithContext(()=>{if(vo()){const n=Cn(Ua);if(!n)throw new Error("[nuxt] [unhead] Missing Unhead instance.");return n}})}function G_(e,t={}){const n=t.head||U_(t.nuxt);return H_(e,{head:n,...t})}let As,Es;function W_(){return As=$fetch(Ba(`builds/meta/${ir().app.buildId}.json`),{responseType:"json"}),As.then(e=>{Es=Qy(e.matcher)}).catch(e=>{console.error("[nuxt] Error fetching app manifest.",e)}),As}function To(){return As||W_()}async function Ga(e){const t=typeof e=="string"?e:e.path;if(await To(),!Es)return console.error("[nuxt] Error creating app manifest matcher.",Es),{};try{return t_({},...Es.matchAll(t).reverse())}catch(n){return console.error("[nuxt] Error matching route rules.",n),{}}}async function cc(e,t={}){if(!await md(e))return null;const r=await V_(e,t);return await gd(r)||null}const z_="_payload.json";async function V_(e,t={}){const n=new URL(e,"http://localhost");if(n.host!=="localhost"||Gt(n.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);const r=ir(),s=t.hash||(t.fresh?Date.now():r.app.buildId),o=r.app.cdnURL,i=o&&await md(e)?o:r.app.baseURL;return $n(i,n.pathname,z_+(s?`?${s}`:""))}async function gd(e){const t=fetch(e,{cache:"force-cache"}).then(n=>n.text().then(yd));try{return await t}catch(n){console.warn("[nuxt] Cannot load payload ",e,n)}return null}async function md(e=ud().path){const t=xe();return e=e==="/"?e:e.replace(/\/$/,""),(await To()).prerendered.includes(e)?!0:t.runWithContext(async()=>{const r=await Ga({path:e});return!!r.prerender&&!r.redirect})}let fn=null;async function q_(){if(fn)return fn;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await yd(e.textContent||""),n=e.dataset.src?await gd(e.dataset.src):void 0;return fn={...t,...n,...window.__NUXT__},fn.config?.public&&(fn.config.public=sn(fn.config.public)),fn}async function yd(e){return await b_(e,xe()._payloadRevivers)}function K_(e,t){xe()._payloadRevivers[e]=t}const X_=[["NuxtError",e=>ja(e)],["EmptyShallowRef",e=>Ls(e==="_"?void 0:e==="0n"?BigInt(0):Ws(e))],["EmptyRef",e=>Ee(e==="_"?void 0:e==="0n"?BigInt(0):Ws(e))],["ShallowRef",e=>Ls(e)],["ShallowReactive",e=>Un(e)],["Ref",e=>Ee(e)],["Reactive",e=>sn(e)]],J_=yt({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const[r,s]of X_)K_(r,s);Object.assign(e.payload,([t,n]=rd(()=>e.runWithContext(q_)),t=await t,n(),t)),delete window.__NUXT__}});async function Wa(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=>{const o=new Map,i=new Promise(h=>{e.resolveTags().then(p=>{h(p.map(g=>{const w=o.get(g._d)||0,y={tag:g,id:(w?`${g._d}:${w}`:g._d)||sc(g),shouldRender:!0};return g._d&&hd(g._d)&&o.set(g._d,w+1),y}))})});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 p=n[h]?.children;for(const g of p){const w=g.tagName.toLowerCase();if(!rc.has(w))continue;const y=pd({tag:w,props:{}},{innerHTML:g.innerHTML,...g.getAttributeNames().reduce((v,m)=>(v[m]=g.getAttribute(m),v),{})||{}});if(y.key=g.getAttribute("data-hid")||void 0,y._d=Gi(y)||sc(y),a.elMap.has(y._d)){let v=1,m=y._d;for(;a.elMap.has(m);)m=`${y._d}:${v++}`;a.elMap.set(m,g)}else a.elMap.set(y._d,g)}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function l(h,p,g){const w=`${h}:${p}`;a.sideEffects[w]=g,delete a.pendingSideEffects[w]}function u({id:h,$el:p,tag:g}){const w=g.tag.endsWith("Attrs");a.elMap.set(h,p),w||(g.textContent&&g.textContent!==p.textContent&&(p.textContent=g.textContent),g.innerHTML&&g.innerHTML!==p.innerHTML&&(p.innerHTML=g.innerHTML),l(h,"el",()=>{p?.remove(),a.elMap.delete(h)}));for(const y in g.props){if(!Object.prototype.hasOwnProperty.call(g.props,y))continue;const v=g.props[y];if(y.startsWith("on")&&typeof v=="function"){const b=p?.dataset;if(b&&b[`${y}fired`]){const C=y.slice(0,-5);v.call(p,new Event(C.substring(2)))}p.getAttribute(`data-${y}`)!==""&&((g.tag==="bodyAttrs"?n.defaultView:p).addEventListener(y.substring(2),v.bind(p)),p.setAttribute(`data-${y}`,""));continue}const m=`attr:${y}`;if(y==="class"){if(!v)continue;for(const b of v)w&&l(h,`${m}:${b}`,()=>p.classList.remove(b)),!p.classList.contains(b)&&p.classList.add(b)}else if(y==="style"){if(!v)continue;for(const[b,C]of v)l(h,`${m}:${b}`,()=>{p.style.removeProperty(b)}),p.style.setProperty(b,C)}else v!==!1&&v!==null&&(p.getAttribute(y)!==v&&p.setAttribute(y,v===!0?"":String(v)),w&&l(h,m,()=>p.removeAttribute(y)))}}const c=[],f={bodyClose:void 0,bodyOpen:void 0,head:void 0},d=await i;for(const h of d){const{tag:p,shouldRender:g,id:w}=h;if(g){if(p.tag==="title"){n.title=p.textContent,l("title","",()=>n.title=a.title);continue}h.$el=h.$el||a.elMap.get(w),h.$el?u(h):rc.has(p.tag)&&c.push(h)}}for(const h of c){const p=h.tag.tagPosition||"head";h.$el=n.createElement(h.tag.tag),u(h),f[p]=f[p]||n.createDocumentFragment(),f[p].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 Y_(e={}){const t=e.domOptions?.render||Wa;e.document=e.document||(typeof window<"u"?document:void 0);const n=e.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return M_({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[n?JSON.parse(n):!1,...e.init||[]]})}function Z_(e,t){let n=0;return()=>{const r=++n;t(()=>{n===r&&e()})}}function Q_(e={}){const t=Y_({domOptions:{render:Z_(()=>Wa(t),n=>setTimeout(n,0))},...e});return t.install=F_(t),t}const eb={disableDefaults:!0},tb=yt({name:"nuxt:head",enforce:"pre",setup(e){const t=Q_(eb);e.vueApp.use(t);{let n=!0;const r=async()=>{n=!1,await Wa(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)}}}),nb=async e=>{let t,n;const r=([t,n]=rd(()=>Ga({path:e.path})),t=await t,n(),t);if(r.redirect){const s=r.redirect.includes("#")?r.redirect:r.redirect+e.hash;return Gt(s,{acceptRelative:!0})?(window.location.href=s,!1):s}},rb=[nb];function si(e){const t=e&&typeof e=="object"?e:{};typeof e=="object"&&(e=Zf({pathname:e.path||"",search:zf(e.query||{}),hash:e.hash||""}));const n=new URL(e.toString(),window.location.href);return{path:n.pathname,fullPath:e,query:Eo(n.search),hash:n.hash,params:t.params||{},name:void 0,matched:t.matched||[],redirectedFrom:void 0,meta:t.meta||{},href:e}}const sb=yt({name:"nuxt:router",enforce:"pre",setup(e){const t=uy(window.location.pathname,ir().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=ir().app.baseURL,i=sn(si(t));async function a(f,d){try{const h=si(f);for(const p of r["navigate:before"]){const g=await p(h,i);if(g===!1||g instanceof Error)return;if(typeof g=="string"&&g.length)return a(g,!0)}for(const p of r["resolve:before"])await p(h,i);Object.assign(i,h),window.history[d?"replaceState":"pushState"]({},"",$n(o,h.fullPath)),e.isHydrating||await e.runWithContext(l_);for(const p of r["navigate:after"])await p(h,i)}catch(h){for(const p of r.error)await p(h)}}const u={currentRoute:ke(()=>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:si,addRoute:(f,d)=>{n.push(d)},getRoutes:()=>n,hasRoute:f=>n.some(d=>d.name===f),removeRoute:f=>{const d=n.findIndex(h=>h.name===f);d!==-1&&n.splice(d,1)}};e.vueApp.component("RouterLink",mt({functional:!0,props:{to:{type:String,required:!0},custom:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:String},setup:(f,{slots:d})=>{const h=()=>a(f.to,f.replace);return()=>{const p=u.resolve(f.to);return f.custom?d.default?.({href:f.to,navigate:h,route:p}):Gs("a",{href:f.to,onClick:g=>(g.preventDefault(),h())},d)}}})),window.addEventListener("popstate",f=>{const d=f.target.location;u.replace(d.href.replace(d.origin,""))}),e._route=i,e._middleware||={global:[],named:{}};const c=e.payload.state._layout;return e.hooks.hookOnce("app:created",async()=>{u.beforeEach(async(f,d)=>{f.meta=sn(f.meta||{}),e.isHydrating&&c&&!At(f.meta.layout)&&(f.meta.layout=c),e._processingMiddleware=!0;{const h=new Set([...rb,...e._middleware.global]);{const p=await e.runWithContext(()=>Ga({path:f.path}));if(p.appMiddleware)for(const g in p.appMiddleware){const w=e._middleware.named[g];if(!w)return;p.appMiddleware[g]?h.add(w):h.delete(w)}}for(const p of h){const g=await e.runWithContext(()=>p(f,d));if(g!==!0&&(g||g===!1))return g}}}),u.afterEach(()=>{delete e._processingMiddleware}),await u.replace(t),py(i.fullPath,t)||await e.runWithContext(()=>fd(i.fullPath))}),{provide:{route:i,router:u}}}}),Wi=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),ob=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),$o=e=>{const t=xe();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{Wi(()=>e())}):Wi(()=>e())},ib="$s";function ab(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);const[n,r]=e;if(!n||typeof n!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+n);if(r!==void 0&&typeof r!="function")throw new Error("[nuxt] [useState] init must be a function: "+r);const s=ib+n,o=xe(),i=Sa(o.payload.state,s);if(i.value===void 0&&r){const a=r();if(ve(a))return o.payload.state[s]=a,a;i.value=a}return i}async function _d(e,t=Tt()){const{path:n,matched:r}=t.resolve(e);if(!r.length||(t._routePreloaded||=new Set,t._routePreloaded.has(n)))return;const s=t._preloadPromises||=[];if(s.length>4)return Promise.all(s).then(()=>_d(e,t));t._routePreloaded.add(n);for(const o of r){const i=o.components?.default;if(typeof i!="function")continue;const a=Promise.resolve(i()).catch(()=>{}).finally(()=>s.splice(s.indexOf(a)));s.push(a)}await Promise.all(s)}function lb(e={}){const t=e.path||window.location.pathname;let n={};try{n=Ws(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||n?.path!==t||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:xe().payload.state}))}catch{}window.location.pathname!==t?window.location.href=t:window.location.reload()}}const cb=(...e)=>e.find(t=>t!==void 0);function ub(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 ds(o,l);const u="path"in o&&o.path!==void 0?o.path:i(o).path;return{...o,name:void 0,path:ds(u,l)}}function s(o){const i=Tt(),a=ir(),l=ke(()=>!!o.target&&o.target!=="_self"),u=ke(()=>{const w=o.to||o.href||"";return typeof w=="string"&&Gt(w,{acceptRelative:!0})}),c=on("RouterLink"),f=c&&typeof c!="string"?c.useLink:void 0,d=ke(()=>{if(o.external)return!0;const w=o.to||o.href||"";return typeof w=="object"?!1:w===""||u.value}),h=ke(()=>{const w=o.to||o.href||"";return d.value?w:r(w,i.resolve,o.trailingSlash)}),p=d.value?void 0:f?.({...o,to:h}),g=ke(()=>{const w=o.trailingSlash??e.trailingSlash;if(!h.value||u.value||n(h.value))return h.value;if(d.value){const y=typeof h.value=="object"&&"path"in h.value?Ui(h.value):h.value,v=typeof y=="object"?i.resolve(y).href:y;return ds(v,w)}return typeof h.value=="object"?i.resolve(h.value)?.href??null:ds($n(a.app.baseURL,h.value),w)});return{to:h,hasTarget:l,isAbsoluteUrl:u,isExternal:d,href:g,isActive:p?.isActive??ke(()=>h.value===i.currentRoute.value.path),isExactActive:p?.isExactActive??ke(()=>h.value===i.currentRoute.value.path),route:p?.route??ke(()=>i.resolve(h.value)),async navigate(w){await fd(g.value,{replace:o.replace,external:d.value||l.value})}}}return mt({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=Tt(),{to:l,href:u,navigate:c,isExternal:f,hasTarget:d,isAbsoluteUrl:h}=s(o),p=Ls(!1),g=Ee(null),w=m=>{g.value=o.custom?m?.$el?.nextElementSibling:m?.$el};function y(m){return!p.value&&(typeof o.prefetchOn=="string"?o.prefetchOn===m:o.prefetchOn?.[m]??e.prefetchOn?.[m])&&(o.prefetch??e.prefetch)!==!1&&o.noPrefetch!==!0&&o.target!=="_blank"&&!pb()}async function v(m=xe()){if(p.value)return;p.value=!0;const b=typeof l.value=="string"?l.value:f.value?Ui(l.value):a.resolve(l.value).fullPath,C=f.value?new URL(b,window.location.href).href:b;await Promise.all([m.hooks.callHook("link:prefetch",C).catch(()=>{}),!f.value&&!d.value&&_d(l.value,a).catch(()=>{})])}if(y("visibility")){const m=xe();let b,C=null;Ra(()=>{const k=db();$o(()=>{b=Wi(()=>{g?.value?.tagName&&(C=k.observe(g.value,async()=>{C?.(),C=null,await v(m)}))})})}),Pa(()=>{b&&ob(b),C?.(),C=null})}return()=>{if(!f.value&&!d.value&&!n(l.value)){const C={ref:w,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||(y("interaction")&&(C.onPointerenter=v.bind(null,void 0),C.onFocus=v.bind(null,void 0)),p.value&&(C.class=o.prefetchedClass||e.prefetchedClass),C.rel=o.rel||void 0),Gs(on("RouterLink"),C,i.default)}const m=o.target||null,b=cb(o.noRel?"":o.rel,e.externalRelAttribute,h.value||d.value?"noopener noreferrer":"")||null;return o.custom?i.default?i.default({href:u.value,navigate:c,prefetch:v,get route(){if(!u.value)return;const C=new URL(u.value,window.location.href);return{path:C.pathname,fullPath:C.pathname,get query(){return Eo(C.search)},hash:C.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:u.value}},rel:b,target:m,isExternal:f.value||d.value,isActive:!1,isExactActive:!1}):null:Gs("a",{ref:g,href:u.value||null,rel:b,target:m,onClick:C=>{if(!(f.value||d.value))return C.preventDefault(),o.replace?a.replace(u.value):a.push(u.value)}},i.default?.())}}})}const fb=ub(Gy);function ds(e,t){const n=t==="append"?Vs:Da;return Gt(e)&&!e.startsWith("http")?e:n(e,!0)}function db(){const e=xe();if(e._observer)return e._observer;let t=null;const n=new Map,r=(o,i)=>(t||=new IntersectionObserver(a=>{for(const l of a){const u=n.get(l.target);(l.isIntersecting||l.intersectionRatio>0)&&u&&u()}}),n.set(o,i),t.observe(o),()=>{n.delete(o),t?.unobserve(o),n.size===0&&(t?.disconnect(),t=null)});return e._observer={observe:r}}const hb=/2g/;function pb(){const e=navigator.connection;return!!(e&&(e.saveData||hb.test(e.effectiveType)))}function gb(e){typeof e.indexable<"u"&&(e.indexable=String(e.indexable)!=="false"),typeof e.trailingSlash<"u"&&!e.trailingSlash&&(e.trailingSlash=String(e.trailingSlash)!=="false"),e.url&&!Gt(String(e.url),{acceptRelative:!0,strict:!1})&&(e.url=dy(String(e.url)));const t=Object.keys(e).sort((r,s)=>r.localeCompare(s)),n={};for(const r of t)n[r]=e[r];return n}function mb(e){const n=[];function r(o){if(!o||typeof o!="object"||Object.keys(o).length===0)return()=>{};o._context;const i={};for(const l in o){const u=o[l];typeof u<"u"&&u!==""&&(i[l]=u)}let a;return Object.keys(i).filter(l=>!l.startsWith("_")).length>0&&(a=n.push(i)),()=>{typeof a<"u"&&n.splice(a-1,1)}}function s(o){const i={};o?.debug&&(i._context={}),i._priority={};for(const a in n.sort((l,u)=>(l._priority||0)-(u._priority||0)))for(const l in n[a]){const u=l,c=o?.resolveRefs?Ft(n[a][l]):n[a][l];!l.startsWith("_")&&typeof c<"u"&&c!==""&&(i[l]=c,typeof n[a]._priority<"u"&&n[a]._priority!==-1&&(i._priority[u]=n[a]._priority),o?.debug&&(i._context[u]=n[a]._context?.[u]||n[a]._context||"anonymous"))}return o?.skipNormalize?i:gb(i)}return{stack:n,push:r,get:s}}const yb=yt({name:"nuxt-site-config:init",enforce:"pre",async setup(e){const t=mb(),n=ab("site-config");{const r=n.value||window.__NUXT_SITE_CONFIG__||{};for(const s in r)s[0]!=="_"&&t.push({[s]:r[s],_priority:r._priority?.[s]||-1})}return{provide:{nuxtSiteConfig:t}}}}),_b=yt({name:"nuxt:payload",setup(e){const t=new Set;Tt().beforeResolve(async(n,r)=>{if(n.path===r.path)return;const s=await cc(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]}}),$o(()=>{e.hooks.hook("link:prefetch",async n=>{const{hostname:r}=new URL(n,window.location.href);r===window.location.hostname&&await cc(n).catch(()=>{console.warn("[nuxt] Error preloading payload for",n)})}),navigator.connection?.effectiveType!=="slow-2g"&&setTimeout(To,1e3)})}}),bb=yt(()=>{const e=Tt();$o(()=>{e.beforeResolve(async()=>{await new Promise(t=>{setTimeout(t,100),requestAnimationFrame(()=>{setTimeout(t,0)})})})})}),wb=yt(e=>{let t;async function n(){let r;try{r=await To()}catch(s){const o=s;if(!("status"in o&&(o.status===404||o.status===403)))throw o}t&&clearTimeout(t),t=setTimeout(n,Ql);try{const s=await $fetch(Ba("builds/latest.json")+`?${Date.now()}`);s.id!==r?.id&&(e.hooks.callHook("app:manifest:update",s),t&&clearTimeout(t))}catch{}}$o(()=>{t=setTimeout(n,Ql)})}),vb=yt({name:"nuxt:chunk-reload",setup(e){const t=Tt(),n=ir(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook("app:chunkError",({error:o})=>{r.add(o)});function s(o){const i=$n(n.app.baseURL,o.fullPath);lb({path:i,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(s)}),t.onError((o,i)=>{r.has(o)&&s(i)})}}),Cb=yt({name:"nuxt:global-components"}),xb=yt(()=>{}),Sb=["top","right","bottom","left"],uc=["start","end"],fc=Sb.reduce((e,t)=>e.concat(t,t+"-"+uc[0],t+"-"+uc[1]),[]),jr=Math.min,gn=Math.max,kb={left:"right",right:"left",bottom:"top",top:"bottom"},Ab={start:"end",end:"start"};function zi(e,t,n){return gn(e,jr(t,n))}function Rn(e,t){return typeof e=="function"?e(t):e}function $t(e){return e.split("-")[0]}function dt(e){return e.split("-")[1]}function bd(e){return e==="x"?"y":"x"}function za(e){return e==="y"?"height":"width"}const Eb=new Set(["top","bottom"]);function Mt(e){return Eb.has($t(e))?"y":"x"}function Va(e){return bd(Mt(e))}function wd(e,t,n){n===void 0&&(n=!1);const r=dt(e),s=Va(e),o=za(s);let i=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=Ys(i)),[i,Ys(i)]}function Tb(e){const t=Ys(e);return[Js(e),t,Js(t)]}function Js(e){return e.replace(/start|end/g,t=>Ab[t])}const dc=["left","right"],hc=["right","left"],$b=["top","bottom"],Rb=["bottom","top"];function Pb(e,t,n){switch(e){case"top":case"bottom":return n?t?hc:dc:t?dc:hc;case"left":case"right":return t?$b:Rb;default:return[]}}function Nb(e,t,n,r){const s=dt(e);let o=Pb($t(e),n==="start",r);return s&&(o=o.map(i=>i+"-"+s),t&&(o=o.concat(o.map(Js)))),o}function Ys(e){return e.replace(/left|right|bottom|top/g,t=>kb[t])}function Ib(e){return{top:0,right:0,bottom:0,left:0,...e}}function vd(e){return typeof e!="number"?Ib(e):{top:e,right:e,bottom:e,left:e}}function $r(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 pc(e,t,n){let{reference:r,floating:s}=e;const o=Mt(t),i=Va(t),a=za(i),l=$t(t),u=o==="y",c=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 h;switch(l){case"top":h={x:c,y:r.y-s.height};break;case"bottom":h={x:c,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-s.width,y:f};break;default:h={x:r.x,y:r.y}}switch(dt(t)){case"start":h[i]-=d*(n&&u?-1:1);break;case"end":h[i]+=d*(n&&u?-1:1);break}return h}const Lb=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 u=await i.getElementRects({reference:e,floating:t,strategy:s}),{x:c,y:f}=pc(u,r,l),d=r,h={},p=0;for(let g=0;g<a.length;g++){const{name:w,fn:y}=a[g],{x:v,y:m,data:b,reset:C}=await y({x:c,y:f,initialPlacement:r,placement:d,strategy:s,middlewareData:h,rects:u,platform:i,elements:{reference:e,floating:t}});c=v??c,f=m??f,h={...h,[w]:{...h[w],...b}},C&&p<=50&&(p++,typeof C=="object"&&(C.placement&&(d=C.placement),C.rects&&(u=C.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:s}):C.rects),{x:c,y:f}=pc(u,d,l)),g=-1)}return{x:c,y:f,placement:d,strategy:s,middlewareData:h}};async function Ro(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:o,rects:i,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:h=0}=Rn(t,e),p=vd(h),w=a[d?f==="floating"?"reference":"floating":f],y=$r(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(w)))==null||n?w:w.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),v=f==="floating"?{x:r,y:s,width:i.floating.width,height:i.floating.height}:i.reference,m=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),b=await(o.isElement==null?void 0:o.isElement(m))?await(o.getScale==null?void 0:o.getScale(m))||{x:1,y:1}:{x:1,y:1},C=$r(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:m,strategy:l}):v);return{top:(y.top-C.top+p.top)/b.y,bottom:(C.bottom-y.bottom+p.bottom)/b.y,left:(y.left-C.left+p.left)/b.x,right:(C.right-y.right+p.right)/b.x}}const Ob=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:u,padding:c=0}=Rn(e,t)||{};if(u==null)return{};const f=vd(c),d={x:n,y:r},h=Va(s),p=za(h),g=await i.getDimensions(u),w=h==="y",y=w?"top":"left",v=w?"bottom":"right",m=w?"clientHeight":"clientWidth",b=o.reference[p]+o.reference[h]-d[h]-o.floating[p],C=d[h]-o.reference[h],k=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let P=k?k[m]:0;(!P||!await(i.isElement==null?void 0:i.isElement(k)))&&(P=a.floating[m]||o.floating[p]);const F=b/2-C/2,G=P/2-g[p]/2-1,N=jr(f[y],G),q=jr(f[v],G),W=N,Q=P-g[p]-q,M=P/2-g[p]/2+F,X=zi(W,M,Q),L=!l.arrow&&dt(s)!=null&&M!==X&&o.reference[p]/2-(M<W?N:q)-g[p]/2<0,K=L?M<W?M-W:M-Q:0;return{[h]:d[h]+K,data:{[h]:X,centerOffset:M-X-K,...L&&{alignmentOffset:K}},reset:L}}});function Mb(e,t,n){return(e?[...n.filter(s=>dt(s)===e),...n.filter(s=>dt(s)!==e)]:n.filter(s=>$t(s)===s)).filter(s=>e?dt(s)===e||(t?Js(s)!==s:!1):!0)}const Db=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:u}=t,{crossAxis:c=!1,alignment:f,allowedPlacements:d=fc,autoAlignment:h=!0,...p}=Rn(e,t),g=f!==void 0||d===fc?Mb(f||null,h,d):d,w=await Ro(t,p),y=((n=i.autoPlacement)==null?void 0:n.index)||0,v=g[y];if(v==null)return{};const m=wd(v,o,await(l.isRTL==null?void 0:l.isRTL(u.floating)));if(a!==v)return{reset:{placement:g[0]}};const b=[w[$t(v)],w[m[0]],w[m[1]]],C=[...((r=i.autoPlacement)==null?void 0:r.overflows)||[],{placement:v,overflows:b}],k=g[y+1];if(k)return{data:{index:y+1,overflows:C},reset:{placement:k}};const P=C.map(N=>{const q=dt(N.placement);return[N.placement,q&&c?N.overflows.slice(0,2).reduce((W,Q)=>W+Q,0):N.overflows[0],N.overflows]}).sort((N,q)=>N[1]-q[1]),G=((s=P.filter(N=>N[2].slice(0,dt(N[0])?2:3).every(q=>q<=0))[0])==null?void 0:s[0])||P[0][0];return G!==a?{data:{index:y+1,overflows:C},reset:{placement:G}}:{}}}},Fb=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:u}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:g=!0,...w}=Rn(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const y=$t(s),v=Mt(a),m=$t(a)===a,b=await(l.isRTL==null?void 0:l.isRTL(u.floating)),C=d||(m||!g?[Ys(a)]:Tb(a)),k=p!=="none";!d&&k&&C.push(...Nb(a,g,p,b));const P=[a,...C],F=await Ro(t,w),G=[];let N=((r=o.flip)==null?void 0:r.overflows)||[];if(c&&G.push(F[y]),f){const M=wd(s,i,b);G.push(F[M[0]],F[M[1]])}if(N=[...N,{placement:s,overflows:G}],!G.every(M=>M<=0)){var q,W;const M=(((q=o.flip)==null?void 0:q.index)||0)+1,X=P[M];if(X&&(!(f==="alignment"?v!==Mt(X):!1)||N.every(H=>Mt(H.placement)===v?H.overflows[0]>0:!0)))return{data:{index:M,overflows:N},reset:{placement:X}};let L=(W=N.filter(K=>K.overflows[0]<=0).sort((K,H)=>K.overflows[1]-H.overflows[1])[0])==null?void 0:W.placement;if(!L)switch(h){case"bestFit":{var Q;const K=(Q=N.filter(H=>{if(k){const ce=Mt(H.placement);return ce===v||ce==="y"}return!0}).map(H=>[H.placement,H.overflows.filter(ce=>ce>0).reduce((ce,Nn)=>ce+Nn,0)]).sort((H,ce)=>H[1]-ce[1])[0])==null?void 0:Q[0];K&&(L=K);break}case"initialPlacement":L=a;break}if(s!==L)return{reset:{placement:L}}}return{}}}},Bb=new Set(["left","top"]);async function Hb(e,t){const{placement:n,platform:r,elements:s}=e,o=await(r.isRTL==null?void 0:r.isRTL(s.floating)),i=$t(n),a=dt(n),l=Mt(n)==="y",u=Bb.has(i)?-1:1,c=o&&l?-1:1,f=Rn(t,e);let{mainAxis:d,crossAxis:h,alignmentAxis:p}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof p=="number"&&(h=a==="end"?p*-1:p),l?{x:h*c,y:d*u}:{x:d*u,y:h*c}}const jb=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 Hb(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}}}}},Ub=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:w=>{let{x:y,y:v}=w;return{x:y,y:v}}},...l}=Rn(e,t),u={x:n,y:r},c=await Ro(t,l),f=Mt($t(s)),d=bd(f);let h=u[d],p=u[f];if(o){const w=d==="y"?"top":"left",y=d==="y"?"bottom":"right",v=h+c[w],m=h-c[y];h=zi(v,h,m)}if(i){const w=f==="y"?"top":"left",y=f==="y"?"bottom":"right",v=p+c[w],m=p-c[y];p=zi(v,p,m)}const g=a.fn({...t,[d]:h,[f]:p});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[d]:o,[f]:i}}}}}},Gb=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=()=>{},...u}=Rn(e,t),c=await Ro(t,u),f=$t(s),d=dt(s),h=Mt(s)==="y",{width:p,height:g}=o.floating;let w,y;f==="top"||f==="bottom"?(w=f,y=d===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(y=f,w=d==="end"?"top":"bottom");const v=g-c.top-c.bottom,m=p-c.left-c.right,b=jr(g-c[w],v),C=jr(p-c[y],m),k=!t.middlewareData.shift;let P=b,F=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(F=m),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(P=v),k&&!d){const N=gn(c.left,0),q=gn(c.right,0),W=gn(c.top,0),Q=gn(c.bottom,0);h?F=p-2*(N!==0||q!==0?N+q:gn(c.left,c.right)):P=g-2*(W!==0||Q!==0?W+Q:gn(c.top,c.bottom))}await l({...t,availableWidth:F,availableHeight:P});const G=await i.getDimensions(a.floating);return p!==G.width||g!==G.height?{reset:{rects:!0}}:{}}}};function st(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function St(e){return st(e).getComputedStyle(e)}const gc=Math.min,Rr=Math.max,Zs=Math.round;function Cd(e){const t=St(e);let n=parseFloat(t.width),r=parseFloat(t.height);const s=e.offsetWidth,o=e.offsetHeight,i=Zs(n)!==s||Zs(r)!==o;return i&&(n=s,r=o),{width:n,height:r,fallback:i}}function an(e){return Sd(e)?(e.nodeName||"").toLowerCase():""}let hs;function xd(){if(hs)return hs;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(hs=e.brands.map((t=>t.brand+"/"+t.version)).join(" "),hs):navigator.userAgent}function kt(e){return e instanceof st(e).HTMLElement}function tn(e){return e instanceof st(e).Element}function Sd(e){return e instanceof st(e).Node}function mc(e){return typeof ShadowRoot>"u"?!1:e instanceof st(e).ShadowRoot||e instanceof ShadowRoot}function Po(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=St(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(s)}function Wb(e){return["table","td","th"].includes(an(e))}function Vi(e){const t=/firefox/i.test(xd()),n=St(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 kd(){return!/^((?!chrome|android).)*safari/i.test(xd())}function qa(e){return["html","body","#document"].includes(an(e))}function Ad(e){return tn(e)?e:e.contextElement}const Ed={x:1,y:1};function Zn(e){const t=Ad(e);if(!kt(t))return Ed;const n=t.getBoundingClientRect(),{width:r,height:s,fallback:o}=Cd(t);let i=(o?Zs(n.width):n.width)/r,a=(o?Zs(n.height):n.height)/s;return i&&Number.isFinite(i)||(i=1),a&&Number.isFinite(a)||(a=1),{x:i,y:a}}function Ur(e,t,n,r){var s,o;t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=Ad(e);let l=Ed;t&&(r?tn(r)&&(l=Zn(r)):l=Zn(e));const u=a?st(a):window,c=!kd()&&n;let f=(i.left+(c&&((s=u.visualViewport)==null?void 0:s.offsetLeft)||0))/l.x,d=(i.top+(c&&((o=u.visualViewport)==null?void 0:o.offsetTop)||0))/l.y,h=i.width/l.x,p=i.height/l.y;if(a){const g=st(a),w=r&&tn(r)?st(r):r;let y=g.frameElement;for(;y&&r&&w!==g;){const v=Zn(y),m=y.getBoundingClientRect(),b=getComputedStyle(y);m.x+=(y.clientLeft+parseFloat(b.paddingLeft))*v.x,m.y+=(y.clientTop+parseFloat(b.paddingTop))*v.y,f*=v.x,d*=v.y,h*=v.x,p*=v.y,f+=m.x,d+=m.y,y=st(y).frameElement}}return{width:h,height:p,top:d,right:f+h,bottom:d+p,left:f,x:f,y:d}}function nn(e){return((Sd(e)?e.ownerDocument:e.document)||window.document).documentElement}function No(e){return tn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Td(e){return Ur(nn(e)).left+No(e).scrollLeft}function Gr(e){if(an(e)==="html")return e;const t=e.assignedSlot||e.parentNode||mc(e)&&e.host||nn(e);return mc(t)?t.host:t}function $d(e){const t=Gr(e);return qa(t)?t.ownerDocument.body:kt(t)&&Po(t)?t:$d(t)}function Qs(e,t){var n;t===void 0&&(t=[]);const r=$d(e),s=r===((n=e.ownerDocument)==null?void 0:n.body),o=st(r);return s?t.concat(o,o.visualViewport||[],Po(r)?r:[]):t.concat(r,Qs(r))}function yc(e,t,n){return t==="viewport"?$r((function(r,s){const o=st(r),i=nn(r),a=o.visualViewport;let l=i.clientWidth,u=i.clientHeight,c=0,f=0;if(a){l=a.width,u=a.height;const d=kd();(d||!d&&s==="fixed")&&(c=a.offsetLeft,f=a.offsetTop)}return{width:l,height:u,x:c,y:f}})(e,n)):tn(t)?$r((function(r,s){const o=Ur(r,!0,s==="fixed"),i=o.top+r.clientTop,a=o.left+r.clientLeft,l=kt(r)?Zn(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)):$r((function(r){const s=nn(r),o=No(r),i=r.ownerDocument.body,a=Rr(s.scrollWidth,s.clientWidth,i.scrollWidth,i.clientWidth),l=Rr(s.scrollHeight,s.clientHeight,i.scrollHeight,i.clientHeight);let u=-o.scrollLeft+Td(r);const c=-o.scrollTop;return St(i).direction==="rtl"&&(u+=Rr(s.clientWidth,i.clientWidth)-a),{width:a,height:l,x:u,y:c}})(nn(e)))}function _c(e){return kt(e)&&St(e).position!=="fixed"?e.offsetParent:null}function bc(e){const t=st(e);let n=_c(e);for(;n&&Wb(n)&&St(n).position==="static";)n=_c(n);return n&&(an(n)==="html"||an(n)==="body"&&St(n).position==="static"&&!Vi(n))?t:n||(function(r){let s=Gr(r);for(;kt(s)&&!qa(s);){if(Vi(s))return s;s=Gr(s)}return null})(e)||t}function zb(e,t,n){const r=kt(t),s=nn(t),o=Ur(e,!0,n==="fixed",t);let i={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(r||!r&&n!=="fixed")if((an(t)!=="body"||Po(s))&&(i=No(t)),kt(t)){const l=Ur(t,!0);a.x=l.x+t.clientLeft,a.y=l.y+t.clientTop}else s&&(a.x=Td(s));return{x:o.left+i.scrollLeft-a.x,y:o.top+i.scrollTop-a.y,width:o.width,height:o.height}}const Vb={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const o=n==="clippingAncestors"?(function(u,c){const f=c.get(u);if(f)return f;let d=Qs(u).filter((w=>tn(w)&&an(w)!=="body")),h=null;const p=St(u).position==="fixed";let g=p?Gr(u):u;for(;tn(g)&&!qa(g);){const w=St(g),y=Vi(g);(p?y||h:y||w.position!=="static"||!h||!["absolute","fixed"].includes(h.position))?h=w:d=d.filter((v=>v!==g)),g=Gr(g)}return c.set(u,d),d})(t,this._c):[].concat(n),i=[...o,r],a=i[0],l=i.reduce(((u,c)=>{const f=yc(t,c,s);return u.top=Rr(f.top,u.top),u.right=gc(f.right,u.right),u.bottom=gc(f.bottom,u.bottom),u.left=Rr(f.left,u.left),u}),yc(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=kt(n),o=nn(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")&&((an(n)!=="body"||Po(o))&&(i=No(n)),kt(n))){const u=Ur(n);a=Zn(n),l.x=u.x+n.clientLeft,l.y=u.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:tn,getDimensions:function(e){return kt(e)?Cd(e):e.getBoundingClientRect()},getOffsetParent:bc,getDocumentElement:nn,getScale:Zn,async getElementRects(e){let{reference:t,floating:n,strategy:r}=e;const s=this.getOffsetParent||bc,o=this.getDimensions;return{reference:zb(t,await s(n),r),floating:{x:0,y:0,...await o(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>St(e).direction==="rtl"},qb=(e,t,n)=>{const r=new Map,s={platform:Vb,...n},o={...s.platform,_c:r};return Lb(e,t,{...s,platform:o})};function Rd(e,t){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(typeof t[n]=="object"&&e[n]?Rd(e[n],t[n]):e[n]=t[n])}const ht={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 Wr(e,t){let n=ht.themes[e]||{},r;do r=n[t],typeof r>"u"?n.$extend?n=ht.themes[n.$extend]||{}:(n=null,r=ht[t]):n=null;while(n);return r}function Kb(e){const t=[e];let n=ht.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=ht.themes[n.$extend]||{}):n=null;while(n);return t.map(r=>`v-popper--theme-${r}`)}function wc(e){const t=[e];let n=ht.themes[e]||{};do n.$extend?(t.push(n.$extend),n=ht.themes[n.$extend]||{}):n=null;while(n);return t}let ar=!1;if(typeof window<"u"){ar=!1;try{const e=Object.defineProperty({},"passive",{get(){ar=!0}});window.addEventListener("test",null,e)}catch{}}let Pd=!1;typeof window<"u"&&typeof navigator<"u"&&(Pd=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Nd=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),vc={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},Cc={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function xc(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1)}function oi(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const ct=[];let dn=null;const Sc={};function kc(e){let t=Sc[e];return t||(t=Sc[e]=[]),t}let qi=function(){};typeof window<"u"&&(qi=window.Element);function le(e){return function(t){return Wr(t.theme,e)}}const ii="__floating-vue__popper",Id=()=>mt({name:"VPopper",provide(){return{[ii]:{parentPopper:this}}},inject:{[ii]:{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:le("disabled")},positioningDisabled:{type:Boolean,default:le("positioningDisabled")},placement:{type:String,default:le("placement"),validator:e=>Nd.includes(e)},delay:{type:[String,Number,Object],default:le("delay")},distance:{type:[Number,String],default:le("distance")},skidding:{type:[Number,String],default:le("skidding")},triggers:{type:Array,default:le("triggers")},showTriggers:{type:[Array,Function],default:le("showTriggers")},hideTriggers:{type:[Array,Function],default:le("hideTriggers")},popperTriggers:{type:Array,default:le("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:le("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:le("popperHideTriggers")},container:{type:[String,Object,qi,Boolean],default:le("container")},boundary:{type:[String,qi],default:le("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:le("strategy")},autoHide:{type:[Boolean,Function],default:le("autoHide")},handleResize:{type:Boolean,default:le("handleResize")},instantMove:{type:Boolean,default:le("instantMove")},eagerMount:{type:Boolean,default:le("eagerMount")},popperClass:{type:[String,Array,Object],default:le("popperClass")},computeTransformOrigin:{type:Boolean,default:le("computeTransformOrigin")},autoMinSize:{type:Boolean,default:le("autoMinSize")},autoSize:{type:[Boolean,String],default:le("autoSize")},autoMaxSize:{type:Boolean,default:le("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:le("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:le("preventOverflow")},overflowPadding:{type:[Number,String],default:le("overflowPadding")},arrowPadding:{type:[Number,String],default:le("arrowPadding")},arrowOverflow:{type:Boolean,default:le("arrowOverflow")},flip:{type:Boolean,default:le("flip")},shift:{type:Boolean,default:le("shift")},shiftCrossAxis:{type:Boolean,default:le("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:le("noAutoFocus")},disposeTimeout:{type:Number,default:le("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[ii])==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(jb({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(Db({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(Ub({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(Fb({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(Ob({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,u;return o.startsWith("top")||o.startsWith("bottom")?l=s.reference.width:u=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"]=u!=null?`${u}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(Gb({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 qb(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),dn&&this.instantMove&&dn.instantMove&&dn!==this.parentPopper){dn.$_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&&(dn=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 oi(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Qs(this.$_referenceNode),...Qs(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<ct.length;n++)t=ct[n],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}ct.push(this),document.body.classList.add("v-popper--some-open");for(const t of wc(this.theme))kc(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 oi(),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,xc(ct,this),ct.length===0&&document.body.classList.remove("v-popper--some-open");for(const n of wc(this.theme)){const r=kc(n);xc(r,this),r.length===0&&document.body.classList.remove(`v-popper--some-open--${n}`)}dn===this&&(dn=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 oi(),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,vc,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],vc,this.popperTriggers,this.popperShowTriggers,e);const t=n=>{n.usedByTooltip||this.hide({event:n})};this.$_registerTriggerListeners(this.$_targetNodes,Cc,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],Cc,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,ar?{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(Pr>=e.left&&Pr<=e.right&&Nr>=e.top&&Nr<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),n=Pr-Wt,r=Nr-zt,s=t.left+t.width/2-Wt+(t.top+t.height/2)-zt+t.width+t.height,o=Wt+n*s,i=zt+r*s;return ps(Wt,zt,o,i,t.left,t.top,t.left,t.bottom)||ps(Wt,zt,o,i,t.left,t.top,t.right,t.top)||ps(Wt,zt,o,i,t.right,t.top,t.right,t.bottom)||ps(Wt,zt,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(Pd){const e=ar?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>Ac(t,!0),e),document.addEventListener("touchend",t=>Ec(t,!0),e)}else window.addEventListener("mousedown",e=>Ac(e,!1),!0),window.addEventListener("click",e=>Ec(e,!1),!0);window.addEventListener("resize",Jb)}function Ac(e,t){if(ht.autoHideOnMousedown)Ld(e,t);else for(let n=0;n<ct.length;n++){const r=ct[n];try{r.mouseDownContains=r.popperNode().contains(e.target)}catch{}}}function Ec(e,t){ht.autoHideOnMousedown||Ld(e,t)}function Ld(e,t){const n={};for(let r=ct.length-1;r>=0;r--){const s=ct[r];try{const o=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(e.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!n[s.randomId]&&Tc(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&&Tc(i,i.containsGlobalTarget,e);)i.$_handleGlobalClose(e,t),i=i.parentPopper}})}catch{}}}function Tc(e,t,n){return n.closeAllPopover||n.closePopover&&t||Xb(e,n)&&!t}function Xb(e,t){if(typeof e.autoHide=="function"){const n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function Jb(){for(let e=0;e<ct.length;e++)ct[e].$_computePosition()}let Wt=0,zt=0,Pr=0,Nr=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{Wt=Pr,zt=Nr,Pr=e.clientX,Nr=e.clientY},ar?{passive:!0}:void 0);function ps(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)),u=((n-e)*(t-o)-(r-t)*(e-s))/((a-o)*(n-e)-(i-s)*(r-t));return l>=0&&l<=1&&u>=0&&u<=1}const Yb={extends:Id()},Io=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n};function Zb(e,t,n,r,s,o){return j(),ee("div",{ref:"reference",class:Ae(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[qe(e.$slots,"default",Ru(La(e.slotData)))],2)}const Qb=Io(Yb,[["render",Zb]]);function ew(){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 Ts;function Ki(){Ki.init||(Ki.init=!0,Ts=ew()!==-1)}var Lo={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Ki(),ur(()=>{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",Ts&&this.$el.appendChild(e),e.data="about:blank",Ts||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&&(!Ts&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const tw=ng();eg("data-v-b329ee4c");const nw={class:"resize-observer",tabindex:"-1"};tg();const rw=tw((e,t,n,r,s,o)=>(j(),be("div",nw)));Lo.render=rw;Lo.__scopeId="data-v-b329ee4c";Lo.__file="src/components/ResizeObserver.vue";const Od=(e="theme")=>({computed:{themeClass(){return Kb(this[e])}}}),sw=mt({name:"VPopperContent",components:{ResizeObserver:Lo},mixins:[Od()],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}}}),ow=["id","aria-hidden","tabindex","data-popper-placement"],iw={ref:"inner",class:"v-popper__inner"},aw=I("div",{class:"v-popper__arrow-outer"},null,-1),lw=I("div",{class:"v-popper__arrow-inner"},null,-1),cw=[aw,lw];function uw(e,t,n,r,s,o){const i=on("ResizeObserver");return j(),ee("div",{id:e.popperId,ref:"popover",class:Ae(["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:wn(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]=Om(a=>e.autoHide&&e.$emit("hide"),["esc"]))},[I("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=a=>e.autoHide&&e.$emit("hide"))}),I("div",{class:"v-popper__wrapper",style:wn(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[I("div",iw,[e.mounted?(j(),ee(_e,{key:0},[I("div",null,[qe(e.$slots,"default")]),e.handleResize?(j(),be(i,{key:0,onNotify:t[1]||(t[1]=a=>e.$emit("resize",a))})):Ie("",!0)],64)):Ie("",!0)],512),I("div",{ref:"arrow",class:"v-popper__arrow-container",style:wn(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},cw,4)],4)],46,ow)}const Md=Io(sw,[["render",uw]]),Dd={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 Xi=function(){};typeof window<"u"&&(Xi=window.Element);const fw=mt({name:"VPopperWrapper",components:{Popper:Qb,PopperContent:Md},mixins:[Dd,Od("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,Xi,Boolean],default:void 0},boundary:{type:[String,Xi],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 dw(e,t,n,r,s,o){const i=on("PopperContent"),a=on("Popper");return j(),be(a,ko({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:u,shouldMountContent:c,skipTransition:f,autoHide:d,show:h,hide:p,handleResize:g,onResize:w,classes:y,result:v})=>[qe(e.$slots,"default",{shown:u,show:h,hide:p}),z(i,{ref:"popperContent","popper-id":l,theme:e.finalTheme,shown:u,mounted:c,"skip-transition":f,"auto-hide":d,"handle-resize":g,classes:y,result:v,onHide:p,onResize:w},{default:se(()=>[qe(e.$slots,"popper",{shown:u,hide:p})]),_: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 Ka=Io(fw,[["render",dw]]),hw={...Ka,name:"VDropdown",vPopperTheme:"dropdown"},pw={...Ka,name:"VMenu",vPopperTheme:"menu"},gw={...Ka,name:"VTooltip",vPopperTheme:"tooltip"},mw=mt({name:"VTooltipDirective",components:{Popper:Id(),PopperContent:Md},mixins:[Dd],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>Wr(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>Wr(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}}}),yw=["innerHTML"],_w=["textContent"];function bw(e,t,n,r,s,o){const i=on("PopperContent"),a=on("Popper");return j(),be(a,ko({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:u,shouldMountContent:c,skipTransition:f,autoHide:d,hide:h,handleResize:p,onResize:g,classes:w,result:y})=>[z(i,{ref:"popperContent",class:Ae({"v-popper--tooltip-loading":e.loading}),"popper-id":l,theme:e.theme,shown:u,mounted:c,"skip-transition":f,"auto-hide":d,"handle-resize":p,classes:w,result:y,onHide:h,onResize:g},{default:se(()=>[e.html?(j(),ee("div",{key:0,innerHTML:e.finalContent},null,8,yw)):(j(),ee("div",{key:1,textContent:Ne(e.finalContent)},null,8,_w))]),_: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 ww=Io(mw,[["render",bw]]),Fd="v-popper--has-tooltip";function vw(e,t){let n=e.placement;if(!n&&t)for(const r of Nd)t[r]&&(n=r);return n||(n=Wr(e.theme||"tooltip","placement")),n}function Bd(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=vw(r,n),r.targetNodes=()=>[e],r.referenceNode=()=>e,r}let ai,zr,Cw=0;function xw(){if(ai)return;zr=Ee([]),ai=Uf({name:"VTooltipDirectiveApp",setup(){return{directives:zr}},render(){return this.directives.map(t=>Gs(ww,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),ai.mount(e)}function Sw(e,t,n){xw();const r=Ee(Bd(e,t,n)),s=Ee(!1),o={id:Cw++,options:r,shown:s};return zr.value.push(o),e.classList&&e.classList.add(Fd),e.$_popper={options:r,item:o,show(){s.value=!0},hide(){s.value=!1}}}function Hd(e){if(e.$_popper){const t=zr.value.indexOf(e.$_popper.item);t!==-1&&zr.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Fd)}function $c(e,{value:t,modifiers:n}){const r=Bd(e,t,n);if(!r.content||Wr(r.theme||"tooltip","disabled"))Hd(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=r):s=Sw(e,t,n),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const kw={beforeMount:$c,updated:$c,beforeUnmount(e){Hd(e)}};function Rc(e){e.addEventListener("mousedown",eo),e.addEventListener("click",eo),e.addEventListener("touchstart",jd,ar?{passive:!0}:!1)}function Pc(e){e.removeEventListener("mousedown",eo),e.removeEventListener("click",eo),e.removeEventListener("touchstart",jd),e.removeEventListener("touchend",Ud),e.removeEventListener("touchcancel",Gd)}function eo(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function jd(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",Ud),t.addEventListener("touchcancel",Gd)}}function Ud(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 Gd(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}const Aw={beforeMount(e,{value:t,modifiers:n}){e.$_closePopoverModifiers=n,(typeof t>"u"||t)&&Rc(e)},updated(e,{value:t,oldValue:n,modifiers:r}){e.$_closePopoverModifiers=r,t!==n&&(typeof t>"u"||t?Rc(e):Pc(e))},beforeUnmount(e){Pc(e)}};function Ew(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,Rd(ht,t),e.directive("tooltip",kw),e.directive("close-popper",Aw),e.component("VTooltip",gw),e.component("VDropdown",hw),e.component("VMenu",pw))}const Tw={version:"5.2.2",install:Ew,options:ht},$w=yt(e=>{e.vueApp.use(Tw)}),Rw=[J_,tb,sb,yb,_b,bb,wb,vb,Cb,xb,$w],Xa={__name:"NIcon",props:{icon:{type:String,required:!1}},setup(e){return(t,n)=>(j(),ee("div",{class:Ae(["n-icon",e.icon])},null,2))}},Oo=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},Pw={},Nw={class:"n-badge"};function Iw(e,t){return j(),ee("span",Nw,[qe(e.$slots,"default")])}const Wd=Object.assign(Oo(Pw,[["render",Iw]]),{__name:"NBadge"}),Lw={key:0,"i-carbon:arrow-up-right":"","translate-y--1":"","text-xs":"",op50:""},zd={__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=ke(()=>t.href||t.to);return(r,s)=>{const o=fb;return j(),be(o,ko(n.value?{href:n.value,target:e.target,rel:e.target==="_blank"?"noopener noreferrer":void 0}:{},{class:{"n-link n-transition hover:n-link-hover n-link-base":n.value||e.underline}}),{default:se(()=>[qe(r.$slots,"default"),n.value&&e.target==="_blank"?(j(),ee("div",Lw)):Ie("",!0)]),_:3},16,["class"])}}},Ow={},Mw={height:"22",viewBox:"0 0 1204 200",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Dw(e,t){return j(),ee("svg",Mw,[...t[0]||(t[0]=[nm('<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 Fw=Object.assign(Oo(Ow,[["render",Dw]]),{__name:"NuxtSeoLogo"}),Bw={},Hw={class:"n-loading n-panel-grids-center"},jw={class:"flex flex-col animate-pulse items-center text-lg"};function Uw(e,t){return j(),ee("div",Hw,[I("div",jw,[t[1]||(t[1]=I("div",{class:"i-carbon-circle-dash animate-spin text-4xl op50"},null,-1)),qe(e.$slots,"default",{},()=>[t[0]||(t[0]=ie(" Loading... ",-1))])])])}const Gw=Object.assign(Oo(Bw,[["render",Uw]]),{__name:"NLoading"}),Ww="modulepreload",zw=function(e,t){return new URL(e,t).href},Nc={},Ir=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){let u=function(c){return Promise.all(c.map(f=>Promise.resolve(f).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};const i=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),l=a?.nonce||a?.getAttribute("nonce");s=u(n.map(c=>{if(c=zw(c,r),c in Nc)return;Nc[c]=!0;const f=c.endsWith(".css"),d=f?'[rel="stylesheet"]':"";if(r)for(let p=i.length-1;p>=0;p--){const g=i[p];if(g.href===c&&(!f||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${d}`))return;const h=document.createElement("link");if(h.rel=f?"stylesheet":Ww,f||(h.as="script"),h.crossOrigin="",h.href=c,l&&h.setAttribute("nonce",l),document.head.appendChild(h),f)return new Promise((p,g)=>{h.addEventListener("load",p),h.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${c}`)))})}))}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 Re=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function Vw(e){return Ja(e)}function Ja(e){return Array.isArray(e)?qw(e):e instanceof RegExp?e:typeof e=="object"?Kw(e):e}function qw(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=Ja(e[n]);return t}function Kw(e){let t={};for(let n in e)t[n]=Ja(e[n]);return t}function Vd(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function qd(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?qd(e.substring(0,e.length-1)):e.substr(~t+1)}var li=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,gs=class{static hasCaptures(e){return e===null?!1:(li.lastIndex=0,li.test(e))}static replaceCaptures(e,t,n){return e.replace(li,(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 Kd(e,t){return e<t?-1:e>t?1:0}function Xd(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=Kd(e[s],t[s]);if(o!==0)return o}return 0}return n-r}function Ic(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 Jd(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Yd=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},to=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(Yw(e),t)}static createFromParsedTheme(e,t){return Qw(e,t)}_cachedMatchRoot=new Yd(e=>this._root.match(e));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=>Xw(e.parent,s.parentScopes));return r?new Zd(r.fontStyle,r.foreground,r.background):null}},ci=class $s{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new $s(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new $s(n,t[r]);return n}push(t){return new $s(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 Xw(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&&!Jw(e.scopeName,r);){if(s)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function Jw(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var Zd=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function Yw(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,h=f.length;d<h;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 u=null;typeof i.settings.foreground=="string"&&Ic(i.settings.foreground)&&(u=i.settings.foreground);let c=null;typeof i.settings.background=="string"&&Ic(i.settings.background)&&(c=i.settings.background);for(let f=0,d=a.length;f<d;f++){let p=a[f].trim().split(" "),g=p[p.length-1],w=null;p.length>1&&(w=p.slice(0,p.length-1),w.reverse()),n[r++]=new Zw(g,w,s,l,u,c)}}return n}var Zw=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}},He=(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))(He||{});function Qw(e,t){e.sort((l,u)=>{let c=Kd(l.scope,u.scope);return c!==0||(c=Xd(l.parentScopes,u.parentScopes),c!==0)?c:l.index-u.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 e0(t),i=new Zd(n,o.getId(r),o.getId(s)),a=new n0(new Ji(0,null,-1,0,0),[]);for(let l=0,u=e.length;l<u;l++){let c=e[l];a.insert(0,c.scope,c.parentScopes,c.fontStyle,o.getId(c.foreground),o.getId(c.background))}return new to(o,i,a)}var e0=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){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)}},t0=Object.freeze([]),Ji=class Qd{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,r,s,o){this.scopeDepth=t,this.parentScopes=n||t0,this.fontStyle=r,this.foreground=s,this.background=o}clone(){return new Qd(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)}},n0=class Yi{constructor(t,n=[],r={}){this._mainRule=t,this._children=r,this._rulesWithParentScopes=n}_rulesWithParentScopes;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(Yi._cmpBySpecificity),n}insert(t,n,r,s,o,i){if(n===""){this._doInsertHere(t,r,s,o,i);return}let a=n.indexOf("."),l,u;a===-1?(l=n,u=""):(l=n.substring(0,a),u=n.substring(a+1));let c;this._children.hasOwnProperty(l)?c=this._children[l]:(c=new Yi(this._mainRule.clone(),Ji.cloneArr(this._rulesWithParentScopes)),this._children[l]=c),c.insert(t+1,u,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(Xd(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 Ji(t,n,r,s,o))}},lr=class tt{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=tt.getLanguageId(t),r=tt.getTokenType(t),s=tt.getFontStyle(t),o=tt.getForeground(t),i=tt.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=tt.getLanguageId(t),u=tt.getTokenType(t),c=tt.containsBalancedBrackets(t)?1:0,f=tt.getFontStyle(t),d=tt.getForeground(t),h=tt.getBackground(t);return n!==0&&(l=n),r!==8&&(u=r),s!==null&&(c=s?1:0),o!==-1&&(f=o),i!==0&&(d=i),a!==0&&(h=a),(l<<0|u<<8|c<<10|f<<11|d<<15|h<<24)>>>0}};function no(e,t){const n=[],r=r0(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 u=i();if(n.push({matcher:u,priority:l}),s!==",")break;s=r.next()}return n;function o(){if(s==="-"){s=r.next();const l=o();return u=>!!l&&!l(u)}if(s==="("){s=r.next();const l=a();return s===")"&&(s=r.next()),l}if(Lc(s)){const l=[];do l.push(s),s=r.next();while(Lc(s));return u=>t(l,u)}return null}function i(){const l=[];let u=o();for(;u;)l.push(u),u=o();return c=>l.every(f=>f(c))}function a(){const l=[];let u=i();for(;u&&(l.push(u),s==="|"||s===",");){do s=r.next();while(s==="|"||s===",");u=i()}return c=>l.some(f=>f(c))}}function Lc(e){return!!e&&!!e.match(/[\w\.:]+/)}function r0(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 eh(e){typeof e.dispose=="function"&&e.dispose()}var Vr=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},s0=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},o0=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},i0=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Vr(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const e=this.Q;this.Q=[];const t=new o0;for(const n of e)a0(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof Vr){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 a0(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 Vr?Rs({baseGrammar:o,selfGrammar:s},r):Zi(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 Vr(a))}function Zi(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];ro([r],t,n)}}function Rs(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&ro(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&ro(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function ro(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const s=r.repository?Vd({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&ro(r.patterns,{...t,repository:s},n);const o=r.include;if(!o)continue;const i=th(o);switch(i.kind){case 0:Rs({...t,selfGrammar:t.baseGrammar},n);break;case 1:Rs(t,n);break;case 2:Zi(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?Zi(i.ruleName,l,n):Rs(l,n)}else i.kind===4?n.add(new s0(i.scopeName,i.ruleName)):n.add(new Vr(i.scopeName));break}}}var l0=class{kind=0},c0=class{kind=1},u0=class{constructor(e){this.ruleName=e}kind=2},f0=class{constructor(e){this.scopeName=e}kind=3},d0=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function th(e){if(e==="$base")return new l0;if(e==="$self")return new c0;const t=e.indexOf("#");if(t===-1)return new f0(e);if(t===0)return new u0(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new d0(n,r)}}var h0=/\\(\d+)/,Oc=/\\(\d+)/g,p0=-1,nh=-2;var es=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=gs.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=gs.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${qd(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:gs.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:gs.replaceCaptures(this._contentName,e,t)}},g0=class extends es{retokenizeCapturedWithRuleId;constructor(e,t,n,r,s){super(e,t,n,r),this.retokenizeCapturedWithRuleId=s}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,r){throw new Error("Not supported!")}},m0=class extends es{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,s){super(e,t,n,null),this._match=new qr(r,this.id),this.captures=s,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Kr,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Mc=class extends es{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,s){super(e,t,n,r),this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Kr,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Qi=class extends es{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,s,o,i,a,l,u){super(e,t,n,r),this._begin=new qr(s,this.id),this.beginCaptures=o,this._end=new qr(i||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=a,this.applyEndPatternLast=l||!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(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Kr;for(const n of this.patterns)e.getRule(n).collectPatterns(e,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,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},so=class extends es{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,s,o,i,a,l){super(e,t,n,r),this._begin=new qr(s,this.id),this.beginCaptures=o,this.whileCaptures=a,this._while=new qr(i,nh),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.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(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Kr;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Kr,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||""),this._cachedCompiledWhilePatterns}},rh=class De{static createCaptureRule(t,n,r,s,o){return t.registerRule(i=>new g0(n,i,r,s,o))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(s=>{if(t.id=s,t.match)return new m0(t.$vscodeTextmateLocation,t.id,t.name,t.match,De._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=Vd({},r,t.repository));let o=t.patterns;return typeof o>"u"&&t.include&&(o=[{include:t.include}]),new Mc(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,De._compilePatterns(o,n,r))}return t.while?new so(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,De._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,De._compileCaptures(t.whileCaptures||t.captures,n,r),De._compilePatterns(t.patterns,n,r)):new Qi(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,De._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,De._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,De._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=De.getCompiledRuleId(t[i],n,r)),s[a]=De.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 u=th(a.include);switch(u.kind){case 0:case 1:l=De.getCompiledRuleId(r[a.include],n,r);break;case 2:let c=r[u.ruleName];c&&(l=De.getCompiledRuleId(c,n,r));break;case 3:case 4:const f=u.scopeName,d=u.kind===4?u.ruleName:null,h=n.getExternalGrammar(f,r);if(h)if(d){let p=h.repository[d];p&&(l=De.getCompiledRuleId(p,n,h.repository))}else l=De.getCompiledRuleId(h.repository.$self,n,h.repository);break}}else l=De.getCompiledRuleId(a,n,r);if(l!==-1){const u=n.getRule(l);let c=!1;if((u instanceof Mc||u instanceof Qi||u instanceof so)&&u.hasMissingPatterns&&u.patterns.length===0&&(c=!0),c)continue;s.push(l)}}return{patterns:s,hasMissingPatterns:(t?t.length:0)!==s.length}}},qr=class sh{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,n){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 u=t.charAt(a+1);u==="z"?(o.push(t.substring(s,a)),o.push("$(?!\\n)(?<!\\n)"),s=a+2):(u==="A"||u==="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=h0.test(this.source):this.hasBackReferences=!1}clone(){return new sh(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 Oc.lastIndex=0,this.source.replace(Oc,(s,o)=>Jd(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}},Kr=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){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 Dc(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 Dc(e,r,this._items.map(s=>s.ruleId))}},Dc=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;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(`
|
|
5
|
+
`)}findNextMatchSync(e,t,n){const r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},ui=class{constructor(e,t){this.languageId=e,this.tokenType=t}},y0=class ea{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,n){this._defaultAttributes=new ui(t,8),this._embeddedLanguagesMatcher=new _0(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?ea._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new ui(0,0);_getBasicScopeAttributes=new Yd(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new ui(n,r)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(ea.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!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},_0=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([n,r])=>Jd(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])}},Fc=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function oh(e,t,n,r,s,o,i,a){const l=t.content.length;let u=!1,c=-1;if(i){const h=b0(e,t,n,r,s,o);s=h.stack,r=h.linePos,n=h.isFirstLine,c=h.anchorPosition}const f=Date.now();for(;!u;){if(a!==0&&Date.now()-f>a)return new Fc(s,!0);d()}return new Fc(s,!1);function d(){const h=w0(e,t,n,r,s,c);if(!h){o.produce(s,l),u=!0;return}const p=h.captureIndices,g=h.matchedRuleId,w=p&&p.length>0?p[0].end>r:!1;if(g===p0){const y=s.getRule(e);o.produce(s,p[0].start),s=s.withContentNameScopesList(s.nameScopesList),Cr(e,t,n,s,o,y.endCaptures,p),o.produce(s,p[0].end);const v=s;if(s=s.parent,c=v.getAnchorPos(),!w&&v.getEnterPos()===r){s=v,o.produce(s,l),u=!0;return}}else{const y=e.getRule(g);o.produce(s,p[0].start);const v=s,m=y.getName(t.content,p),b=s.contentNameScopesList.pushAttributed(m,e);if(s=s.push(g,r,c,p[0].end===l,null,b,b),y instanceof Qi){const C=y;Cr(e,t,n,s,o,C.beginCaptures,p),o.produce(s,p[0].end),c=p[0].end;const k=C.getContentName(t.content,p),P=b.pushAttributed(k,e);if(s=s.withContentNameScopesList(P),C.endHasBackReferences&&(s=s.withEndRule(C.getEndWithResolvedBackReferences(t.content,p))),!w&&v.hasSameRuleAs(s)){s=s.pop(),o.produce(s,l),u=!0;return}}else if(y instanceof so){const C=y;Cr(e,t,n,s,o,C.beginCaptures,p),o.produce(s,p[0].end),c=p[0].end;const k=C.getContentName(t.content,p),P=b.pushAttributed(k,e);if(s=s.withContentNameScopesList(P),C.whileHasBackReferences&&(s=s.withEndRule(C.getWhileWithResolvedBackReferences(t.content,p))),!w&&v.hasSameRuleAs(s)){s=s.pop(),o.produce(s,l),u=!0;return}}else if(Cr(e,t,n,s,o,y.captures,p),o.produce(s,p[0].end),s=s.pop(),!w){s=s.safePop(),o.produce(s,l),u=!0;return}}p[0].end>r&&(r=p[0].end,n=!1)}}function b0(e,t,n,r,s,o){let i=s.beginRuleCapturedEOL?0:-1;const a=[];for(let l=s;l;l=l.pop()){const u=l.getRule(e);u instanceof so&&a.push({rule:u,stack:l})}for(let l=a.pop();l;l=a.pop()){const{ruleScanner:u,findOptions:c}=x0(l.rule,e,l.stack.endRule,n,r===i),f=u.findNextMatchSync(t,r,c);if(f){if(f.ruleId!==nh){s=l.stack.pop();break}f.captureIndices&&f.captureIndices.length&&(o.produce(l.stack,f.captureIndices[0].start),Cr(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 w0(e,t,n,r,s,o){const i=v0(e,t,n,r,s,o),a=e.getInjections();if(a.length===0)return i;const l=C0(a,e,t,n,r,s,o);if(!l)return i;if(!i)return l;const u=i.captureIndices[0].start,c=l.captureIndices[0].start;return c<u||l.priorityMatch&&c===u?l:i}function v0(e,t,n,r,s,o){const i=s.getRule(e),{ruleScanner:a,findOptions:l}=ih(i,e,s.endRule,n,r===o),u=a.findNextMatchSync(t,r,l);return u?{captureIndices:u.captureIndices,matchedRuleId:u.ruleId}:null}function C0(e,t,n,r,s,o,i){let a=Number.MAX_VALUE,l=null,u,c=0;const f=o.contentNameScopesList.getScopeNames();for(let d=0,h=e.length;d<h;d++){const p=e[d];if(!p.matcher(f))continue;const g=t.getRule(p.ruleId),{ruleScanner:w,findOptions:y}=ih(g,t,null,r,s===i),v=w.findNextMatchSync(n,s,y);if(!v)continue;const m=v.captureIndices[0].start;if(!(m>=a)&&(a=m,l=v.captureIndices,u=v.ruleId,c=p.priority,a===s))break}return l?{priorityMatch:c===-1,captureIndices:l,matchedRuleId:u}:null}function ih(e,t,n,r,s){return{ruleScanner:e.compileAG(t,n,r,s),findOptions:0}}function x0(e,t,n,r,s){return{ruleScanner:e.compileWhileAG(t,n,r,s),findOptions:0}}function Cr(e,t,n,r,s,o,i){if(o.length===0)return;const a=t.content,l=Math.min(o.length,i.length),u=[],c=i[0].end;for(let f=0;f<l;f++){const d=o[f];if(d===null)continue;const h=i[f];if(h.length===0)continue;if(h.start>c)break;for(;u.length>0&&u[u.length-1].endPos<=h.start;)s.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop();if(u.length>0?s.produceFromScopes(u[u.length-1].scopes,h.start):s.produce(r,h.start),d.retokenizeCapturedWithRuleId){const g=d.getName(a,i),w=r.contentNameScopesList.pushAttributed(g,e),y=d.getContentName(a,i),v=w.pushAttributed(y,e),m=r.push(d.retokenizeCapturedWithRuleId,h.start,-1,!1,null,w,v),b=e.createOnigString(a.substring(0,h.end));oh(e,b,n&&h.start===0,h.start,m,s,!1,0),eh(b);continue}const p=d.getName(a,i);if(p!==null){const w=(u.length>0?u[u.length-1].scopes:r.contentNameScopesList).pushAttributed(p,e);u.push(new S0(w,h.end))}}for(;u.length>0;)s.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}var S0=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function k0(e,t,n,r,s,o,i,a){return new E0(e,t,n,r,s,o,i,a)}function Bc(e,t,n,r,s){const o=no(t,oo),i=rh.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 oo(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(A0(t[s],r))return n=s+1,!0;return!1})}function A0(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 E0=class{constructor(e,t,n,r,s,o,i,a){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=a,this._basicScopeAttributesProvider=new y0(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=Hc(t,null),this._injections=null,this._tokenTypeMatchers=[],s)for(const l of Object.keys(s)){const u=no(l,oo);for(const c of u)this._tokenTypeMatchers.push({matcher:c.matcher,type:s[l]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;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)Bc(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&&Bc(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]=Hc(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=rh.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let s;if(!t||t===ta.NULL){s=!0;const u=this._basicScopeAttributesProvider.getDefaultAttributes(),c=this.themeProvider.getDefaults(),f=lr.set(0,u.languageId,u.tokenType,null,c.fontStyle,c.foregroundId,c.backgroundId),d=this.getRule(this._rootId).getName(null,null);let h;d?h=Lr.createRootAndLookUpScopeName(d,f,this):h=Lr.createRoot("unknown",f),t=new ta(null,this._rootId,-1,-1,!1,null,h,h)}else s=!1,t.reset();e=e+`
|
|
6
|
+
`;const o=this.createOnigString(e),i=o.content.length,a=new $0(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=oh(this,o,s,0,t,a,!0,r);return eh(o),{lineLength:i,lineTokens:a,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function Hc(e,t){return e=Vw(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 Lr=class wt{constructor(t,n,r){this.parent=t,this.scopePath=n,this.tokenAttributes=r}static fromExtension(t,n){let r=t,s=t?.scopePath??null;for(const o of n)s=ci.push(s,o.scopeNames),r=new wt(r,s,o.encodedTokenAttributes);return r}static createRoot(t,n){return new wt(null,new ci(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const s=r.getMetadataForScope(t),o=new ci(null,t),i=r.themeProvider.themeMatch(o),a=wt.mergeAttributes(n,s,i);return new wt(null,o,a)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return wt.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),lr.set(t,n.languageId,n.tokenType,null,s,o,i)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return wt._pushAttributed(this,t,n);const r=t.split(/ /g);let s=this;for(const o of r)s=wt._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=wt.mergeAttributes(t.tokenAttributes,s,i);return new wt(t,o,a)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(r.parent?.scopePath??null)}),r=r.parent;return r===t?n.reverse():void 0}},ta=class mn{constructor(t,n,r,s,o,i,a,l){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}_stackElementBrand=void 0;static NULL=new mn(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:mn._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?Lr.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(){mn._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,s,o,i,a){return new mn(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){return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.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 mn(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(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){const r=Lr.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new mn(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,Lr.fromExtension(r,n.contentNameScopesList))}},T0=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):no(n,oo).map(r=>r.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>no(n,oo).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}},$0=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let r=e?.tokenAttributes??0,s=!1;if(this.balancedBracketSelectors?.matchesAlways&&(s=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const o=e?.getScopeNames()??[];for(const i of this._tokenTypeOverrides)i.matcher(o)&&(r=lr.set(r,0,i.type,null,-1,0,0));this.balancedBracketSelectors&&(s=this.balancedBracketSelectors.match(o))}if(s&&(r=lr.set(r,0,8,s,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===r){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(r),this._lastTokenEndIndex=t;return}const n=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}},R0=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;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,k0(e,o,t,n,r,s,this,this._onigLib))}return this._grammars.get(e)}},P0=class{_options;_syncRegistry;_ensureGrammarCache;constructor(t){this._options=t,this._syncRegistry=new R0(to.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(to.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 T0(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,s,o){const i=new i0(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)}},na=ta.NULL;const N0=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class ts{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}ts.prototype.normal={};ts.prototype.property={};ts.prototype.space=void 0;function ah(e,t){const n={},r={};for(const s of e)Object.assign(n,s.property),Object.assign(r,s.normal);return new ts(n,r,t)}function ra(e){return e.toLowerCase()}class Xe{constructor(t,n){this.attribute=n,this.property=t}}Xe.prototype.attribute="";Xe.prototype.booleanish=!1;Xe.prototype.boolean=!1;Xe.prototype.commaOrSpaceSeparated=!1;Xe.prototype.commaSeparated=!1;Xe.prototype.defined=!1;Xe.prototype.mustUseProperty=!1;Xe.prototype.number=!1;Xe.prototype.overloadedBoolean=!1;Xe.prototype.property="";Xe.prototype.spaceSeparated=!1;Xe.prototype.space=void 0;let I0=0;const re=Pn(),Se=Pn(),sa=Pn(),R=Pn(),me=Pn(),Qn=Pn(),Ze=Pn();function Pn(){return 2**++I0}const oa=Object.freeze(Object.defineProperty({__proto__:null,boolean:re,booleanish:Se,commaOrSpaceSeparated:Ze,commaSeparated:Qn,number:R,overloadedBoolean:sa,spaceSeparated:me},Symbol.toStringTag,{value:"Module"})),fi=Object.keys(oa);class Ya extends Xe{constructor(t,n,r,s){let o=-1;if(super(t,n),jc(this,"space",s),typeof r=="number")for(;++o<fi.length;){const i=fi[o];jc(this,fi[o],(r&oa[i])===oa[i])}}}Ya.prototype.defined=!0;function jc(e,t,n){n&&(e[t]=n)}function fr(e){const t={},n={};for(const[r,s]of Object.entries(e.properties)){const o=new Ya(r,e.transform(e.attributes||{},r),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[ra(r)]=r,n[ra(o.attribute)]=r}return new ts(t,n,e.space)}const lh=fr({properties:{ariaActiveDescendant:null,ariaAtomic:Se,ariaAutoComplete:null,ariaBusy:Se,ariaChecked:Se,ariaColCount:R,ariaColIndex:R,ariaColSpan:R,ariaControls:me,ariaCurrent:null,ariaDescribedBy:me,ariaDetails:null,ariaDisabled:Se,ariaDropEffect:me,ariaErrorMessage:null,ariaExpanded:Se,ariaFlowTo:me,ariaGrabbed:Se,ariaHasPopup:null,ariaHidden:Se,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:me,ariaLevel:R,ariaLive:null,ariaModal:Se,ariaMultiLine:Se,ariaMultiSelectable:Se,ariaOrientation:null,ariaOwns:me,ariaPlaceholder:null,ariaPosInSet:R,ariaPressed:Se,ariaReadOnly:Se,ariaRelevant:null,ariaRequired:Se,ariaRoleDescription:me,ariaRowCount:R,ariaRowIndex:R,ariaRowSpan:R,ariaSelected:Se,ariaSetSize:R,ariaSort:null,ariaValueMax:R,ariaValueMin:R,ariaValueNow:R,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function ch(e,t){return t in e?e[t]:t}function uh(e,t){return ch(e,t.toLowerCase())}const L0=fr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Qn,acceptCharset:me,accessKey:me,action:null,allow:null,allowFullScreen:re,allowPaymentRequest:re,allowUserMedia:re,alt:null,as:null,async:re,autoCapitalize:null,autoComplete:me,autoFocus:re,autoPlay:re,blocking:me,capture:null,charSet:null,checked:re,cite:null,className:me,cols:R,colSpan:null,content:null,contentEditable:Se,controls:re,controlsList:me,coords:R|Qn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:re,defer:re,dir:null,dirName:null,disabled:re,download:sa,draggable:Se,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:re,formTarget:null,headers:me,height:R,hidden:sa,high:R,href:null,hrefLang:null,htmlFor:me,httpEquiv:me,id:null,imageSizes:null,imageSrcSet:null,inert:re,inputMode:null,integrity:null,is:null,isMap:re,itemId:null,itemProp:me,itemRef:me,itemScope:re,itemType:me,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:re,low:R,manifest:null,max:null,maxLength:R,media:null,method:null,min:null,minLength:R,multiple:re,muted:re,name:null,nonce:null,noModule:re,noValidate:re,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:re,optimum:R,pattern:null,ping:me,placeholder:null,playsInline:re,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:re,referrerPolicy:null,rel:me,required:re,reversed:re,rows:R,rowSpan:R,sandbox:me,scope:null,scoped:re,seamless:re,selected:re,shadowRootClonable:re,shadowRootDelegatesFocus:re,shadowRootMode:null,shape:null,size:R,sizes:null,slot:null,span:R,spellCheck:Se,src:null,srcDoc:null,srcLang:null,srcSet:null,start:R,step:null,style:null,tabIndex:R,target:null,title:null,translate:null,type:null,typeMustMatch:re,useMap:null,value:Se,width:R,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:me,axis:null,background:null,bgColor:null,border:R,borderColor:null,bottomMargin:R,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:re,declare:re,event:null,face:null,frame:null,frameBorder:null,hSpace:R,leftMargin:R,link:null,longDesc:null,lowSrc:null,marginHeight:R,marginWidth:R,noResize:re,noHref:re,noShade:re,noWrap:re,object:null,profile:null,prompt:null,rev:null,rightMargin:R,rules:null,scheme:null,scrolling:Se,standby:null,summary:null,text:null,topMargin:R,valueType:null,version:null,vAlign:null,vLink:null,vSpace:R,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:re,disableRemotePlayback:re,prefix:null,property:null,results:R,security:null,unselectable:null},space:"html",transform:uh}),O0=fr({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:Ze,accentHeight:R,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:R,amplitude:R,arabicForm:null,ascent:R,attributeName:null,attributeType:null,azimuth:R,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:R,by:null,calcMode:null,capHeight:R,className:me,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:R,diffuseConstant:R,direction:null,display:null,dur:null,divisor:R,dominantBaseline:null,download:re,dx:null,dy:null,edgeMode:null,editable:null,elevation:R,enableBackground:null,end:null,event:null,exponent:R,externalResourcesRequired:null,fill:null,fillOpacity:R,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:Qn,g2:Qn,glyphName:Qn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:R,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:R,horizOriginX:R,horizOriginY:R,id:null,ideographic:R,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:R,k:R,k1:R,k2:R,k3:R,k4:R,kernelMatrix:Ze,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:R,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:R,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:R,overlineThickness:R,paintOrder:null,panose1:null,path:null,pathLength:R,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:me,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:R,pointsAtY:R,pointsAtZ:R,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ze,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ze,rev:Ze,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ze,requiredFeatures:Ze,requiredFonts:Ze,requiredFormats:Ze,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:R,specularExponent:R,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:R,strikethroughThickness:R,string:null,stroke:null,strokeDashArray:Ze,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:R,strokeOpacity:R,strokeWidth:null,style:null,surfaceScale:R,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ze,tabIndex:R,tableValues:null,target:null,targetX:R,targetY:R,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ze,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:R,underlineThickness:R,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:R,values:null,vAlphabetic:R,vMathematical:R,vectorEffect:null,vHanging:R,vIdeographic:R,version:null,vertAdvY:R,vertOriginX:R,vertOriginY:R,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:R,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:ch}),fh=fr({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()}}),dh=fr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:uh}),hh=fr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),M0=/[A-Z]/g,Uc=/-[a-z]/g,D0=/^data[-\w.:]+$/i;function F0(e,t){const n=ra(t);let r=t,s=Xe;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&D0.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(Uc,H0);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!Uc.test(o)){let i=o.replace(M0,B0);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}s=Ya}return new s(r,t)}function B0(e){return"-"+e.toLowerCase()}function H0(e){return e.charAt(1).toUpperCase()}const j0=ah([lh,L0,fh,dh,hh],"html"),ph=ah([lh,O0,fh,dh,hh],"svg"),Gc={}.hasOwnProperty;function U0(e,t){const n=t||{};function r(s,...o){let i=r.invalid;const a=r.handlers;if(s&&Gc.call(s,e)){const l=String(s[e]);i=Gc.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 G0=/["&'<>`]/g,W0=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,z0=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,V0=/[|\\{}()[\]^$+*?.]/g,Wc=new WeakMap;function q0(e,t){if(e=e.replace(t.subset?K0(t.subset):G0,r),t.subset||t.escapeOnly)return e;return e.replace(W0,n).replace(z0,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 K0(e){let t=Wc.get(e);return t||(t=X0(e),Wc.set(e,t)),t}function X0(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(V0,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const J0=/[\dA-Fa-f]/;function Y0(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!J0.test(String.fromCharCode(t))?r:r+";"}const Z0=/\d/;function Q0(e,t,n){const r="&#"+String(e);return n&&t&&!Z0.test(String.fromCharCode(t))?r:r+";"}const ev=["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"],di={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:"€"},tv=["cent","copy","divide","gt","lt","not","para","times"],gh={}.hasOwnProperty,ia={};let ms;for(ms in di)gh.call(di,ms)&&(ia[di[ms]]=ms);const nv=/[^\dA-Za-z]/;function rv(e,t,n,r){const s=String.fromCharCode(e);if(gh.call(ia,s)){const o=ia[s],i="&"+o;return n&&ev.includes(o)&&!tv.includes(o)&&(!r||t&&t!==61&&nv.test(String.fromCharCode(t)))?i:i+";"}return""}function sv(e,t,n){let r=Y0(e,t,n.omitOptionalSemicolons),s;if((n.useNamedReferences||n.useShortestReferences)&&(s=rv(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!s)&&n.useShortestReferences){const o=Q0(e,t,n.omitOptionalSemicolons);o.length<r.length&&(r=o)}return s&&(!n.useShortestReferences||s.length<r.length)?s:r}function er(e,t){return q0(e,Object.assign({format:sv},t))}const ov=/^>|^->|<!--|-->|--!>|<!-$/g,iv=[">"],av=["<",">"];function lv(e,t,n,r){return r.settings.bogusComments?"<?"+er(e.value,Object.assign({},r.settings.characterReferences,{subset:iv}))+">":"<!--"+e.value.replace(ov,s)+"-->";function s(o){return er(o,Object.assign({},r.settings.characterReferences,{subset:av}))}}function cv(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function zc(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 uv(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function fv(e){return e.join(" ").trim()}const dv=/[ \t\n\f\r]/g;function Za(e){return typeof e=="object"?e.type==="text"?Vc(e.value):!1:Vc(e)}function Vc(e){return e.replace(dv,"")===""}const $e=yh(1),mh=yh(-1),hv=[];function yh(e){return t;function t(n,r,s){const o=n?n.children:hv;let i=(r||0)+e,a=o[i];if(!s)for(;a&&Za(a);)i+=e,a=o[i];return a}}const pv={}.hasOwnProperty;function _h(e){return t;function t(n,r,s){return pv.call(e,n.tagName)&&e[n.tagName](n,r,s)}}const Qa=_h({body:mv,caption:hi,colgroup:hi,dd:wv,dt:bv,head:hi,html:gv,li:_v,optgroup:vv,option:Cv,p:yv,rp:qc,rt:qc,tbody:Sv,td:Kc,tfoot:kv,th:Kc,thead:xv,tr:Av});function hi(e,t,n){const r=$e(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&Za(r.value.charAt(0)))}function gv(e,t,n){const r=$e(n,t);return!r||r.type!=="comment"}function mv(e,t,n){const r=$e(n,t);return!r||r.type!=="comment"}function yv(e,t,n){const r=$e(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 _v(e,t,n){const r=$e(n,t);return!r||r.type==="element"&&r.tagName==="li"}function bv(e,t,n){const r=$e(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function wv(e,t,n){const r=$e(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function qc(e,t,n){const r=$e(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function vv(e,t,n){const r=$e(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function Cv(e,t,n){const r=$e(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function xv(e,t,n){const r=$e(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function Sv(e,t,n){const r=$e(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function kv(e,t,n){return!$e(n,t)}function Av(e,t,n){const r=$e(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function Kc(e,t,n){const r=$e(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const Ev=_h({body:Rv,colgroup:Pv,head:$v,html:Tv,tbody:Nv});function Tv(e){const t=$e(e,-1);return!t||t.type!=="comment"}function $v(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 Rv(e){const t=$e(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&Za(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function Pv(e,t,n){const r=mh(n,t),s=$e(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&Qa(r,n.children.indexOf(r),n)?!1:!!(s&&s.type==="element"&&s.tagName==="col")}function Nv(e,t,n){const r=mh(n,t),s=$e(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&Qa(r,n.children.indexOf(r),n)?!1:!!(s&&s.type==="element"&&s.tagName==="tr")}const ys={name:[[`
|
|
7
|
+
\f\r &/=>`.split(""),`
|
|
8
|
+
\f\r "&'/=>\``.split("")],[`\0
|
|
9
|
+
\f\r "&'/<=>`.split(""),`\0
|
|
10
|
+
\f\r "&'/<=>\``.split("")]],unquoted:[[`
|
|
11
|
+
\f\r &>`.split(""),`\0
|
|
12
|
+
\f\r "&'<=>\``.split("")],[`\0
|
|
13
|
+
\f\r "&'<=>\``.split(""),`\0
|
|
14
|
+
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Iv(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=ph);const u=Lv(r,e.properties),c=r.all(s.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=s,c&&(i=!1),(u||!o||!Ev(e,t,n))&&(a.push("<",e.tagName,u?" "+u:""),i&&(s.space==="svg"||r.settings.closeSelfClosing)&&(l=u.charAt(u.length-1),(!r.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&a.push(" "),a.push("/")),a.push(">")),a.push(c),!i&&(!o||!Qa(e,t,n))&&a.push("</"+e.tagName+">"),a.join("")}function Lv(e,t){const n=[];let r=-1,s;if(t){for(s in t)if(t[s]!==null&&t[s]!==void 0){const o=Ov(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 Ov(e,t,n){const r=F0(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=er(r.attribute,Object.assign({},e.settings.characterReferences,{subset:ys.name[s][o]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?uv:fv)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?l:(e.settings.preferUnquoted&&(a=er(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:ys.unquoted[s][o]}))),a!==n&&(e.settings.quoteSmart&&zc(n,i)>zc(n,e.alternative)&&(i=e.alternative),a=i+er(n,Object.assign({},e.settings.characterReferences,{subset:(i==="'"?ys.single:ys.double)[s][o],attribute:!0}))+i),l+(a&&"="+a))}const Mv=["<","&"];function bh(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:er(e.value,Object.assign({},r.settings.characterReferences,{subset:Mv}))}function Dv(e,t,n,r){return r.settings.allowDangerousHtml?e.value:bh(e,t,n,r)}function Fv(e,t,n,r){return r.all(e)}const Bv=U0("type",{invalid:Hv,unknown:jv,handlers:{comment:lv,doctype:cv,element:Iv,raw:Dv,root:Fv,text:bh}});function Hv(e){throw new Error("Expected node, not `"+e+"`")}function jv(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const Uv={},Gv={},Wv=[];function zv(e,t){const n=t||Uv,r=n.quote||'"',s=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:Vv,all:qv,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||N0,characterReferences:n.characterReferences||Gv,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?ph:j0,quote:r,alternative:s}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function Vv(e,t,n){return Bv(e,t,n,this)}function qv(e){const t=[],n=e&&e.children||Wv;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function io(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},r=typeof e=="string"?e:e.name;for(const[s,o]of Object.entries(t?.colorReplacements||{}))typeof o=="string"?n[s]=o:s===r&&Object.assign(n,o);return n}function rn(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function Kv(e){return Array.isArray(e)?e:[e]}async function wh(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function el(e){return!e||["plaintext","txt","text","plain"].includes(e)}function Xv(e){return e==="ansi"||el(e)}function tl(e){return e==="none"}function Jv(e){return tl(e)}function vh(e,t){if(!t)return e;e.properties||={},e.properties.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 r of n)r&&!e.properties.class.includes(r)&&e.properties.class.push(r);return e}function Mo(e,t=!1){if(e.length===0)return[["",0]];const n=e.split(/(\r?\n)/g);let r=0;const s=[];for(let o=0;o<n.length;o+=2){const i=t?n[o]+(n[o+1]||""):n[o];s.push([i,r]),r+=n[o].length,r+=n[o+1]?.length||0}return s}function Yv(e){const t=Mo(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 nl="light-dark()",Zv=["color","background-color"];function Qv(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 e1(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?Qv(s,o):s})):e}function t1(e,t,n,r,s="css-vars"){const o={content:e.content,explanation:e.explanation,offset:e.offset},i=t.map(c=>ao(e.variants[c])),a=new Set(i.flatMap(c=>Object.keys(c))),l={},u=(c,f)=>{const d=f==="color"?"":f==="background-color"?"-bg":`-${f}`;return n+t[c]+(f==="color"?"":d)};return i.forEach((c,f)=>{for(const d of a){const h=c[d]||"inherit";if(f===0&&r&&Zv.includes(d))if(r===nl&&i.length>1){const p=t.findIndex(v=>v==="light"),g=t.findIndex(v=>v==="dark");if(p===-1||g===-1)throw new Re('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const w=i[p][d]||"inherit",y=i[g][d]||"inherit";l[d]=`light-dark(${w}, ${y})`,s==="css-vars"&&(l[u(f,d)]=h)}else l[d]=h;else s==="css-vars"&&(l[u(f,d)]=h)}}),o.htmlStyle=l,o}function ao(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&He.Italic&&(t["font-style"]="italic"),e.fontStyle&He.Bold&&(t["font-weight"]="bold");const n=[];e.fontStyle&He.Underline&&n.push("underline"),e.fontStyle&He.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function aa(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}const Ch=new WeakMap;function Do(e,t){Ch.set(e,t)}function Xr(e){return Ch.get(e)}class dr{_stacks={};lang;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 dr(Object.fromEntries(Kv(n).map(r=>[r,na])),t)}constructor(...t){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}}}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return n1(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function n1(e){const t=[],n=new Set;function r(s){if(n.has(s))return;n.add(s);const o=s?.nameScopesList?.scopeName;o&&t.push(o),s.parent&&r(s.parent)}return r(e),t}function r1(e,t){if(!(e instanceof dr))throw new Re("Invalid grammar state");return e.getInternalStack(t)}function s1(){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 Re(`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 Re(`Invalid decoration position ${JSON.stringify(i)}. Lines length: ${s.lines.length}`);let l=i.character;if(l<0&&(l=a.length+l),l<0||l>a.length)throw new Re(`Invalid decoration position ${JSON.stringify(i)}. Line ${i.line} length: ${a.length}`);return{...i,character:l,offset:s.posToIndex(i.line,l)}}};const s=Yv(n.source),o=(n.options.decorations||[]).map(i=>({...i,start:r(i.start),end:r(i.end)}));o1(o),e.set(n.meta,{decorations:o,converter:s,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){if(!this.options.decorations?.length)return;const s=t(this).decorations.flatMap(i=>[i.start.offset,i.end.offset]);return e1(n,s)},code(n){if(!this.options.decorations?.length)return;const r=t(this),s=Array.from(n.children).filter(c=>c.type==="element"&&c.tagName==="span");if(s.length!==r.converter.lines.length)throw new Re(`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(c,f,d,h){const p=s[c];let g="",w=-1,y=-1;if(f===0&&(w=0),d===0&&(y=0),d===Number.POSITIVE_INFINITY&&(y=p.children.length),w===-1||y===-1)for(let m=0;m<p.children.length;m++)g+=xh(p.children[m]),w===-1&&g.length===f&&(w=m+1),y===-1&&g.length===d&&(y=m+1);if(w===-1)throw new Re(`Failed to find start index for decoration ${JSON.stringify(h.start)}`);if(y===-1)throw new Re(`Failed to find end index for decoration ${JSON.stringify(h.end)}`);const v=p.children.slice(w,y);if(!h.alwaysWrap&&v.length===p.children.length)a(p,h,"line");else if(!h.alwaysWrap&&v.length===1&&v[0].type==="element")a(v[0],h,"token");else{const m={type:"element",tagName:"span",properties:{},children:v};a(m,h,"wrapper"),p.children.splice(w,v.length,m)}}function i(c,f){s[c]=a(s[c],f,"line")}function a(c,f,d){const h=f.properties||{},p=f.transform||(g=>g);return c.tagName=f.tagName||"span",c.properties={...c.properties,...h,class:c.properties.class},f.properties?.class&&vh(c,f.properties.class),c=p(c,d)||c,c}const l=[],u=r.decorations.sort((c,f)=>f.start.offset-c.start.offset||c.end.offset-f.end.offset);for(const c of u){const{start:f,end:d}=c;if(f.line===d.line)o(f.line,f.character,d.character,c);else if(f.line<d.line){o(f.line,f.character,Number.POSITIVE_INFINITY,c);for(let h=f.line+1;h<d.line;h++)l.unshift(()=>i(h,c));o(d.line,0,d.character,c)}}l.forEach(c=>c())}}}function o1(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new Re(`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||a&&n.start.offset===n.end.offset||i&&s.start.offset===s.end.offset)continue;throw new Re(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(s.start)} intersect.`)}}}}function xh(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(xh).join(""):""}const i1=[s1()];function lo(e){const t=a1(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...i1]}function a1(e){const t=[],n=[],r=[];for(const s of e)switch(s.enforce){case"pre":t.push(s);break;case"post":n.push(s);break;default:r.push(s)}return{pre:t,post:n,normal:r}}var _n=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],pi={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function l1(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 Xc(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 c1(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)pi[r]&&t.push({type:"setDecoration",value:pi[r]});else if(r<=29){const s=pi[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:_n[r-30]}});else if(r===38){const s=Xc(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:_n[r-40]}});else if(r===48){const s=Xc(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:_n[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:_n[r-100+8]}})}return t}function u1(){let e=null,t=null,n=new Set;return{parse(r){const s=[];let o=0;do{const i=l1(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=c1(i.sequence);for(const u of l)u.type==="resetAll"?(e=null,t=null,n.clear()):u.type==="resetForegroundColor"?e=null:u.type==="resetBackgroundColor"?t=null:u.type==="resetDecoration"&&n.delete(u.value);for(const u of l)u.type==="setForegroundColor"?e=u.value:u.type==="setBackgroundColor"?t=u.value:u.type==="setDecoration"&&n.add(u.value)}o=i.position}while(o<r.length);return s}}}var f1={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 d1(e=f1){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 u=0;u<_n.length;u++)r.push(t(_n[u]));let a=[0,95,135,175,215,255];for(let u=0;u<6;u++)for(let c=0;c<6;c++)for(let f=0;f<6;f++)r.push(n([a[u],a[c],a[f]]));let l=8;for(let u=0;u<24;u++,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}}const h1={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function p1(e,t,n){const r=io(e,n),s=Mo(t),o=Object.fromEntries(_n.map(l=>{const u=`terminal.ansi${l[0].toUpperCase()}${l.substring(1)}`,c=e.colors?.[u];return[l,c||h1[l]]})),i=d1(o),a=u1();return s.map(l=>a.parse(l[0]).map(u=>{let c,f;u.decorations.has("reverse")?(c=u.background?i.value(u.background):e.bg,f=u.foreground?i.value(u.foreground):e.fg):(c=u.foreground?i.value(u.foreground):e.fg,f=u.background?i.value(u.background):void 0),c=rn(c,r),f=rn(f,r),u.decorations.has("dim")&&(c=g1(c));let d=He.None;return u.decorations.has("bold")&&(d|=He.Bold),u.decorations.has("italic")&&(d|=He.Italic),u.decorations.has("underline")&&(d|=He.Underline),u.decorations.has("strikethrough")&&(d|=He.Strikethrough),{content:u.value,offset:l[1],color:c,bgColor:f,fontStyle:d}}))}function g1(e){const t=e.match(/#([0-9a-f]{3,8})/i);if(t){const r=t[1];if(r.length===8){const s=Math.round(Number.parseInt(r.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${r.slice(0,6)}${s}`}else{if(r.length===6)return`#${r}80`;if(r.length===4){const s=r[0],o=r[1],i=r[2],a=r[3],l=Math.round(Number.parseInt(`${a}${a}`,16)/2).toString(16).padStart(2,"0");return`#${s}${s}${o}${o}${i}${i}${l}`}else if(r.length===3){const s=r[0],o=r[1],i=r[2];return`#${s}${s}${o}${o}${i}${i}80`}}}const n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}function rl(e,t,n={}){const{theme:r=e.getLoadedThemes()[0]}=n,s=e.resolveLangAlias(n.lang||"text");if(el(s)||tl(r))return Mo(t).map(l=>[{content:l[0],offset:l[1]}]);const{theme:o,colorMap:i}=e.setTheme(r);if(s==="ansi")return p1(o,t,n);const a=e.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==a.name)throw new Re(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${a.name}"`);if(!n.grammarState.themes.includes(o.name))throw new Re(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return y1(t,a,o,i,n)}function m1(...e){if(e.length===2)return Xr(e[1]);const[t,n,r={}]=e,{lang:s="text",theme:o=t.getLoadedThemes()[0]}=r;if(el(s)||tl(o))throw new Re("Plain language does not have grammar state");if(s==="ansi")throw new Re("ANSI language does not have grammar state");const{theme:i,colorMap:a}=t.setTheme(o),l=t.getLanguage(s);return new dr(sl(n,l,i,a,r).stateStack,l.name,i.name)}function y1(e,t,n,r,s){const o=sl(e,t,n,r,s),i=new dr(o.stateStack,t.name,n.name);return Do(o.tokens,i),o.tokens}function sl(e,t,n,r,s){const o=io(n,s),{tokenizeMaxLineLength:i=0,tokenizeTimeLimit:a=500}=s,l=Mo(e);let u=s.grammarState?r1(s.grammarState,n.name)??na:s.grammarContextCode!=null?sl(s.grammarContextCode,t,n,r,{...s,grammarState:void 0,grammarContextCode:void 0}).stateStack:na,c=[];const f=[];for(let d=0,h=l.length;d<h;d++){const[p,g]=l[d];if(p===""){c=[],f.push([]);continue}if(i>0&&p.length>=i){c=[],f.push([{content:p,offset:g,color:"",fontStyle:0}]);continue}let w,y,v;s.includeExplanation&&(w=t.tokenizeLine(p,u,a),y=w.tokens,v=0);const m=t.tokenizeLine2(p,u,a),b=m.tokens.length/2;for(let C=0;C<b;C++){const k=m.tokens[2*C],P=C+1<b?m.tokens[2*C+2]:p.length;if(k===P)continue;const F=m.tokens[2*C+1],G=rn(r[lr.getForeground(F)],o),N=lr.getFontStyle(F),q={content:p.substring(k,P),offset:g+k,color:G,fontStyle:N};if(s.includeExplanation){const W=[];if(s.includeExplanation!=="scopeName")for(const M of n.settings){let X;switch(typeof M.scope){case"string":X=M.scope.split(/,/).map(L=>L.trim());break;case"object":X=M.scope;break;default:continue}W.push({settings:M,selectors:X.map(L=>L.split(/ /))})}q.explanation=[];let Q=0;for(;k+Q<P;){const M=y[v],X=p.substring(M.startIndex,M.endIndex);Q+=X.length,q.explanation.push({content:X,scopes:s.includeExplanation==="scopeName"?_1(M.scopes):b1(W,M.scopes)}),v+=1}}c.push(q)}f.push(c),c=[],u=m.ruleStack}return{tokens:f,stateStack:u}}function _1(e){return e.map(t=>({scopeName:t}))}function b1(e,t){const n=[];for(let r=0,s=t.length;r<s;r++){const o=t[r];n[r]={scopeName:o,themeMatches:v1(e,o,t.slice(0,r))}}return n}function Jc(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function w1(e,t,n){if(!Jc(e[e.length-1],t))return!1;let r=e.length-2,s=n.length-1;for(;r>=0&&s>=0;)Jc(e[r],n[s])&&(r-=1),s-=1;return r===-1}function v1(e,t,n){const r=[];for(const{selectors:s,settings:o}of e)for(const i of s)if(w1(i,t,n)){r.push(o);break}return r}function Sh(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 u=rl(e,t,{...n,theme:l.theme}),c=Xr(u),f=typeof l.theme=="string"?l.theme:l.theme.name;return{tokens:u,state:c,theme:f}}),o=C1(...s.map(l=>l.tokens)),i=o[0].map((l,u)=>l.map((c,f)=>{const d={content:c.content,variants:{},offset:c.offset};return"includeExplanation"in n&&n.includeExplanation&&(d.explanation=c.explanation),o.forEach((h,p)=>{const{content:g,explanation:w,offset:y,...v}=h[u][f];d.variants[r[p].color]=v}),d})),a=s[0].state?new dr(Object.fromEntries(s.map(l=>[l.theme,l.state?.getInternalStack(l.theme)])),s[0].state.lang):void 0;return a&&Do(i,a),i}function C1(...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,u)=>l.push(o[u]));const i=s.map(()=>0),a=s.map(l=>l[0]);for(;a.every(l=>l);){const l=Math.min(...a.map(u=>u.content.length));for(let u=0;u<n;u++){const c=a[u];c.content.length===l?(o[u].push(c),i[u]+=1,a[u]=s[u][i[u]]):(o[u].push({...c,content:c.content.slice(0,l)}),a[u]={...c,content:c.content.slice(l),offset:c.offset+l})}}}return t}function co(e,t,n){let r,s,o,i,a,l;if("themes"in n){const{defaultColor:u="light",cssVariablePrefix:c="--shiki-",colorsRendering:f="css-vars"}=n,d=Object.entries(n.themes).filter(y=>y[1]).map(y=>({color:y[0],theme:y[1]})).sort((y,v)=>y.color===u?-1:v.color===u?1:0);if(d.length===0)throw new Re("`themes` option must not be empty");const h=Sh(e,t,n);if(l=Xr(h),u&&nl!==u&&!d.find(y=>y.color===u))throw new Re(`\`themes\` option must contain the defaultColor key \`${u}\``);const p=d.map(y=>e.getTheme(y.theme)),g=d.map(y=>y.color);o=h.map(y=>y.map(v=>t1(v,g,c,u,f))),l&&Do(o,l);const w=d.map(y=>io(y.theme,n));s=Yc(d,p,w,c,u,"fg",f),r=Yc(d,p,w,c,u,"bg",f),i=`shiki-themes ${p.map(y=>y.name).join(" ")}`,a=u?void 0:[s,r].join(";")}else if("theme"in n){const u=io(n.theme,n);o=rl(e,t,n);const c=e.getTheme(n.theme);r=rn(c.bg,u),s=rn(c.fg,u),i=c.name,l=Xr(o)}else throw new Re("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:s,bg:r,themeName:i,rootStyle:a,grammarState:l}}function Yc(e,t,n,r,s,o,i){return e.map((a,l)=>{const u=rn(t[l][o],n[l])||"inherit",c=`${r+a.color}${o==="bg"?"-bg":""}:${u}`;if(l===0&&s){if(s===nl&&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 Re('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const h=rn(t[f][o],n[f])||"inherit",p=rn(t[d][o],n[d])||"inherit";return`light-dark(${h}, ${p});${c}`}return u}return i==="css-vars"?c:null}).filter(a=>!!a).join(";")}function uo(e,t,n,r={meta:{},options:n,codeToHast:(s,o)=>uo(e,s,o),codeToTokens:(s,o)=>co(e,s,o)}){let s=t;for(const p of lo(n))s=p.preprocess?.call(r,s,n)||s;let{tokens:o,fg:i,bg:a,themeName:l,rootStyle:u,grammarState:c}=co(e,s,n);const{mergeWhitespaces:f=!0,mergeSameStyleTokens:d=!1}=n;f===!0?o=S1(o):f==="never"&&(o=k1(o)),d&&(o=A1(o));const h={...r,get source(){return s}};for(const p of lo(n))o=p.tokens?.call(h,o)||o;return x1(o,{...n,fg:i,bg:a,themeName:l,rootStyle:n.rootStyle===!1?!1:n.rootStyle??u},h,c)}function x1(e,t,n,r=Xr(e)){const s=lo(t),o=[],i={type:"root",children:[]},{structure:a="classic",tabindex:l="0"}=t,u={class:`shiki ${t.themeName||""}`};t.rootStyle!==!1&&(t.rootStyle!=null?u.style=t.rootStyle:u.style=`background-color:${t.bg};color:${t.fg}`),l!==!1&&l!=null&&(u.tabindex=l.toString());for(const[g,w]of Object.entries(t.meta||{}))g.startsWith("_")||(u[g]=w);let c={type:"element",tagName:"pre",properties:u,children:[]},f={type:"element",tagName:"code",properties:{},children:o};const d=[],h={...n,structure:a,addClassToHast:vh,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return i},get pre(){return c},get code(){return f},get lines(){return d}};if(e.forEach((g,w)=>{w&&(a==="inline"?i.children.push({type:"element",tagName:"br",properties:{},children:[]}):a==="classic"&&o.push({type:"text",value:`
|
|
15
|
+
`}));let y={type:"element",tagName:"span",properties:{class:"line"},children:[]},v=0;for(const m of g){let b={type:"element",tagName:"span",properties:{...m.htmlAttrs},children:[{type:"text",value:m.content}]};const C=aa(m.htmlStyle||ao(m));C&&(b.properties.style=C);for(const k of s)b=k?.span?.call(h,b,w+1,v,y,m)||b;a==="inline"?i.children.push(b):a==="classic"&&y.children.push(b),v+=m.content.length}if(a==="classic"){for(const m of s)y=m?.line?.call(h,y,w+1)||y;d.push(y),o.push(y)}else a==="inline"&&d.push(y)}),a==="classic"){for(const g of s)f=g?.code?.call(h,f)||f;c.children.push(f);for(const g of s)c=g?.pre?.call(h,c)||c;i.children.push(c)}else if(a==="inline"){const g=[];let w={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const m of i.children)m.type==="element"&&m.tagName==="br"?(g.push(w),w={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(m.type==="element"||m.type==="text")&&w.children.push(m);g.push(w);let v={type:"element",tagName:"code",properties:{},children:g};for(const m of s)v=m?.code?.call(h,v)||v;i.children=[];for(let m=0;m<v.children.length;m++){m>0&&i.children.push({type:"element",tagName:"br",properties:{},children:[]});const b=v.children[m];b.type==="element"&&i.children.push(...b.children)}}let p=i;for(const g of s)p=g?.root?.call(h,p)||p;return r&&Do(p,r),p}function S1(e){return e.map(t=>{const n=[];let r="",s;return t.forEach((o,i)=>{const l=!(o.fontStyle&&(o.fontStyle&He.Underline||o.fontStyle&He.Strikethrough));l&&o.content.match(/^\s+$/)&&t[i+1]?(s===void 0&&(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=void 0,r=""):n.push(o)}),n})}function k1(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 A1(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=aa(s.htmlStyle||ao(s)),i=aa(r.htmlStyle||ao(r)),a=s.fontStyle&&(s.fontStyle&He.Underline||s.fontStyle&He.Strikethrough),l=r.fontStyle&&(r.fontStyle&He.Underline||r.fontStyle&He.Strikethrough);!a&&!l&&o===i?s.content+=r.content:n.push({...r})}return n})}const E1=zv;function T1(e,t,n){const r={meta:{},options:n,codeToHast:(o,i)=>uo(e,o,i),codeToTokens:(o,i)=>co(e,o,i)};let s=E1(uo(e,t,n,r));for(const o of lo(n))s=o.postprocess?.call(r,s,n)||s;return s}const Zc={light:"#333333",dark:"#bbbbbb"},Qc={light:"#fffffe",dark:"#1e1e1e"},eu="__shiki_resolved";function ol(e){if(e?.[eu])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){const a=t.settings?t.settings.find(l=>!l.name&&!l.scope):void 0;a?.settings?.foreground&&(r=a.settings.foreground),a?.settings?.background&&(n=a.settings.background),!r&&t?.colors?.["editor.foreground"]&&(r=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),r||(r=t.type==="light"?Zc.light:Zc.dark),n||(n=t.type==="light"?Qc.light:Qc.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(a){if(o.has(a))return o.get(a);s+=1;const l=`#${s.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${l}`]?i(a):(o.set(a,l),l)}t.settings=t.settings.map(a=>{const l=a.settings?.foreground&&!a.settings.foreground.startsWith("#"),u=a.settings?.background&&!a.settings.background.startsWith("#");if(!l&&!u)return a;const c={...a,settings:{...a.settings}};if(l){const f=i(a.settings.foreground);t.colorReplacements[f]=a.settings.foreground,c.settings.foreground=f}if(u){const f=i(a.settings.background);t.colorReplacements[f]=a.settings.background,c.settings.background=f}return c});for(const a of Object.keys(t.colors||{}))if((a==="editor.foreground"||a==="editor.background"||a.startsWith("terminal.ansi"))&&!t.colors[a]?.startsWith("#")){const l=i(t.colors[a]);t.colorReplacements[l]=t.colors[a],t.colors[a]=l}return Object.defineProperty(t,eu,{enumerable:!1,writable:!1,value:!0}),t}async function kh(e){return Array.from(new Set((await Promise.all(e.filter(t=>!Xv(t)).map(async t=>await wh(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function Ah(e){return(await Promise.all(e.map(async n=>Jv(n)?null:ol(await wh(n))))).filter(n=>!!n)}let $1=3;function R1(e,t=3){t>$1||console.trace(`[SHIKI DEPRECATE]: ${e}`)}class Wn extends Error{constructor(t){super(t),this.name="ShikiError"}}function Eh(e,t){if(!t)return e;if(t[e]){const n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new Wn(`Circular alias \`${Array.from(n).join(" -> ")} -> ${e}\``);n.add(e)}}return e}class P1 extends P0{constructor(t,n,r,s={}){super(t),this._resolver=t,this._themes=n,this._langs=r,this._alias=s,this._themes.map(o=>this.loadTheme(o)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(t){return typeof t=="string"?this._resolvedThemes.get(t):this.loadTheme(t)}loadTheme(t){const n=ol(t);return n.name&&(this._resolvedThemes.set(n.name,n),this._loadedThemesCache=null),n}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(t){let n=this._textmateThemeCache.get(t);n||(n=to.createFromRawTheme(t),this._textmateThemeCache.set(t,n)),this._syncRegistry.setTheme(n)}getGrammar(t){return t=Eh(t,this._alias),this._resolvedGrammars.get(t)}loadLanguage(t){if(this.getGrammar(t.name))return;const n=new Set([...this._langMap.values()].filter(o=>o.embeddedLangsLazy?.includes(t.name)));this._resolver.addLanguage(t);const r={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);const s=this.loadGrammarWithConfiguration(t.scopeName,1,r);if(s.name=t.name,this._resolvedGrammars.set(t.name,s),t.aliases&&t.aliases.forEach(o=>{this._alias[o]=t.name}),this._loadedLanguagesCache=null,n.size)for(const o of n)this._resolvedGrammars.delete(o.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(o.scopeName),this._syncRegistry?._grammars?.delete(o.scopeName),this.loadLanguage(this._langMap.get(o.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(t){for(const s of t)this.resolveEmbeddedLanguages(s);const n=Array.from(this._langGraph.entries()),r=n.filter(([s,o])=>!o);if(r.length){const s=n.filter(([o,i])=>i?(i.embeddedLanguages||i.embeddedLangs)?.some(l=>r.map(([u])=>u).includes(l)):!1).filter(o=>!r.includes(o));throw new Wn(`Missing languages ${r.map(([o])=>`\`${o}\``).join(", ")}, required by ${s.map(([o])=>`\`${o}\``).join(", ")}`)}for(const[s,o]of n)this._resolver.addLanguage(o);for(const[s,o]of n)this.loadLanguage(o)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(t){this._langMap.set(t.name,t),this._langGraph.set(t.name,t);const n=t.embeddedLanguages??t.embeddedLangs;if(n)for(const r of n)this._langGraph.set(r,this._langMap.get(r))}}class N1{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(t,n){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 br=0;function I1(e){br+=1,e.warnings!==!1&&br>=10&&br%10===0&&console.warn(`[Shiki] ${br} 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 Wn("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(ol),s=new N1(e.engine,n),o=new P1(s,r,n,e.langAlias);let i;function a(m){return Eh(m,e.langAlias)}function l(m){y();const b=o.getGrammar(typeof m=="string"?m:m.name);if(!b)throw new Wn(`Language \`${m}\` not found, you may need to load it first`);return b}function u(m){if(m==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};y();const b=o.getTheme(m);if(!b)throw new Wn(`Theme \`${m}\` not found, you may need to load it first`);return b}function c(m){y();const b=u(m);i!==m&&(o.setTheme(b),i=m);const C=o.getColorMap();return{theme:b,colorMap:C}}function f(){return y(),o.getLoadedThemes()}function d(){return y(),o.getLoadedLanguages()}function h(...m){y(),o.loadLanguages(m.flat(1))}async function p(...m){return h(await kh(m))}function g(...m){y();for(const b of m.flat(1))o.loadTheme(b)}async function w(...m){return y(),g(await Ah(m))}function y(){if(t)throw new Wn("Shiki instance has been disposed")}function v(){t||(t=!0,o.dispose(),br-=1)}return{setTheme:c,getTheme:u,getLanguage:l,getLoadedThemes:f,getLoadedLanguages:d,resolveLangAlias:a,loadLanguage:p,loadLanguageSync:h,loadTheme:w,loadThemeSync:g,dispose:v,[Symbol.dispose]:v}}async function L1(e){e.engine||R1("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,r]=await Promise.all([Ah(e.themes||[]),kh(e.langs||[]),e.engine]);return I1({...e,themes:t,langs:n,engine:r})}async function O1(e){const t=await L1(e);return{getLastGrammarState:(...n)=>m1(t,...n),codeToTokensBase:(n,r)=>rl(t,n,r),codeToTokensWithThemes:(n,r)=>Sh(t,n,r),codeToTokens:(n,r)=>co(t,n,r),codeToHast:(n,r)=>uo(t,n,r),codeToHtml:(n,r)=>T1(t,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function hr(e){if([...e].length!==1)throw new Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function M1(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}const il=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),Pe=String.raw;function pr(e,t){if(e==null)throw new Error(t??"Value expected");return e}const Th=Pe`\[\^?`,$h=`c.? | C(?:-.?)?|${Pe`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${Pe`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${Pe`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${Pe`o\{[^\}]*\}?`}|${Pe`\d{1,3}`}`,al=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,_s=new RegExp(Pe`
|
|
16
|
+
\\ (?:
|
|
17
|
+
${$h}
|
|
18
|
+
| [gk]<[^>]*>?
|
|
19
|
+
| [gk]'[^']*'?
|
|
20
|
+
| .
|
|
21
|
+
)
|
|
22
|
+
| \( (?:
|
|
23
|
+
\? (?:
|
|
24
|
+
[:=!>({]
|
|
25
|
+
| <[=!]
|
|
26
|
+
| <[^>]*>
|
|
27
|
+
| '[^']*'
|
|
28
|
+
| ~\|?
|
|
29
|
+
| #(?:[^)\\]|\\.?)*
|
|
30
|
+
| [^:)]*[:)]
|
|
31
|
+
)?
|
|
32
|
+
| \*[^\)]*\)?
|
|
33
|
+
)?
|
|
34
|
+
| (?:${al.source})+
|
|
35
|
+
| ${Th}
|
|
36
|
+
| .
|
|
37
|
+
`.replace(/\s+/g,""),"gsu"),gi=new RegExp(Pe`
|
|
38
|
+
\\ (?:
|
|
39
|
+
${$h}
|
|
40
|
+
| .
|
|
41
|
+
)
|
|
42
|
+
| \[:(?:\^?\p{Alpha}+|\^):\]
|
|
43
|
+
| ${Th}
|
|
44
|
+
| &&
|
|
45
|
+
| .
|
|
46
|
+
`.replace(/\s+/g,""),"gsu");function D1(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=nC(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(_s.lastIndex=0;a=_s.exec(e);){const f=F1(o,e,a[0],_s.lastIndex);f.tokens?i.push(...f.tokens):f.token&&i.push(f.token),f.lastIndex!==void 0&&(_s.lastIndex=f.lastIndex)}const l=[];let u=0;i.filter(f=>f.type==="GroupOpen").forEach(f=>{f.kind==="capturing"?f.number=++u:f.raw==="("&&l.push(f)}),u||l.forEach((f,d)=>{f.kind="capturing",f.number=d+1});const c=u||l.length;return{tokens:i.map(f=>f.type==="EscapedNumber"?sC(f,c):f).flat(),flags:r}}function F1(e,t,n,r){const[s,o]=n;if(n==="["||n==="[^"){const i=B1(t,n,r);return{tokens:i.tokens,lastIndex:i.lastIndex}}if(s==="\\"){if("AbBGyYzZ".includes(o))return{token:tu(n,n)};if(/^\\g[<']/.test(n)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:X1(n)}}if(/^\\k[<']/.test(n)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:Ph(n)}}if(o==="K")return{token:Nh("keep",n)};if(o==="N"||o==="R")return{token:bn("newline",n,{negate:o==="N"})};if(o==="O")return{token:bn("any",n)};if(o==="X")return{token:bn("text_segment",n)};const i=Rh(n,{inCharClass:!1});return Array.isArray(i)?{tokens:i}:{token:i}}if(s==="("){if(o==="*")return{token:Q1(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:Z1(n,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,n==="("&&!e.captureGroup||n==="(?:")return{token:Hn("group",n)};if(n==="(?>")return{token:Hn("atomic",n)};if(n==="(?="||n==="(?!"||n==="(?<="||n==="(?<!")return{token:Hn(n[2]==="<"?"lookbehind":"lookahead",n,{negate:n.endsWith("!")})};if(n==="("&&e.captureGroup||n.startsWith("(?<")&&n.endsWith(">")||n.startsWith("(?'")&&n.endsWith("'"))return{token:Hn("capturing",n,{...n!=="("&&{name:n.slice(3,-1)}})};if(n.startsWith("(?~")){if(n==="(?~|")throw new Error(`Unsupported absence function kind "${n}"`);return{token:Hn("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:V1(n)}}if(e.getCurrentModX()){if(n==="#"){const i=t.indexOf(`
|
|
47
|
+
`,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:bn("dot",n)};if(n==="^"||n==="$"){const i=e.singleline?{"^":Pe`\A`,$:Pe`\Z`}[n]:n;return{token:tu(i,n)}}return n==="|"?{token:j1(n)}:al.test(n)?{tokens:oC(n)}:{token:Dt(hr(n),n)}}function B1(e,t,n){const r=[nu(t[1]==="^",t)];let s=1,o;for(gi.lastIndex=n;o=gi.exec(e);){const i=o[0];if(i[0]==="["&&i[1]!==":")s++,r.push(nu(i[1]==="^",i));else if(i==="]"){if(r.at(-1).type==="CharacterClassOpen")r.push(Dt(93,i));else if(s--,r.push(U1(i)),!s)break}else{const a=H1(i);Array.isArray(a)?r.push(...a):r.push(a)}}return{tokens:r,lastIndex:gi.lastIndex||e.length}}function H1(e){if(e[0]==="\\")return Rh(e,{inCharClass:!0});if(e[0]==="["){const t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!il.has(t.groups.name))throw new Error(`Invalid POSIX class "${e}"`);return bn("posix",e,{value:t.groups.name,negate:!!t.groups.negate})}return e==="-"?G1(e):e==="&&"?W1(e):Dt(hr(e),e)}function Rh(e,{inCharClass:t}){const n=e[1];if(n==="c"||n==="C")return Y1(e);if("dDhHsSwW".includes(n))return eC(e);if(e.startsWith(Pe`\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 tC(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 Dt(hr(i),a)})}catch{throw new Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(n==="u"||n==="x")return Dt(rC(e),e);if(ru.has(n))return Dt(ru.get(n),e);if(/\d/.test(n))return z1(t,e);if(e==="\\")throw new Error(Pe`Incomplete escape "\"`);if(n==="M")throw new Error(`Unsupported meta "${e}"`);if([...e].length===2)return Dt(e.codePointAt(1),e);throw new Error(`Unexpected escape "${e}"`)}function j1(e){return{type:"Alternator",raw:e}}function tu(e,t){return{type:"Assertion",kind:e,raw:t}}function Ph(e){return{type:"Backreference",raw:e}}function Dt(e,t){return{type:"Character",value:e,raw:t}}function U1(e){return{type:"CharacterClassClose",raw:e}}function G1(e){return{type:"CharacterClassHyphen",raw:e}}function W1(e){return{type:"CharacterClassIntersector",raw:e}}function nu(e,t){return{type:"CharacterClassOpen",negate:e,raw:t}}function bn(e,t,n={}){return{type:"CharacterSet",kind:e,...n,raw:t}}function Nh(e,t,n={}){return e==="keep"?{type:"Directive",kind:e,raw:t}:{type:"Directive",kind:e,flags:pr(n.flags),raw:t}}function z1(e,t){return{type:"EscapedNumber",inCharClass:e,raw:t}}function V1(e){return{type:"GroupClose",raw:e}}function Hn(e,t,n={}){return{type:"GroupOpen",kind:e,...n,raw:t}}function q1(e,t,n,r){return{type:"NamedCallout",kind:e,tag:t,arguments:n,raw:r}}function K1(e,t,n,r){return{type:"Quantifier",kind:e,min:t,max:n,raw:r}}function X1(e){return{type:"Subroutine",raw:e}}const J1=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),ru=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function Y1(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 Dt(hr(t.toUpperCase())-64,e)}function Z1(e,t){let{on:n,off:r}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;r??="";const s=(t.getCurrentModX()||n.includes("x"))&&!r.includes("x"),o=ou(n),i=ou(r),a={};if(o&&(a.enable=o),i&&(a.disable=i),e.endsWith(")"))return t.replaceCurrentModX(s),Nh("flags",e,{flags:a});if(e.endsWith(":"))return t.pushModX(s),t.numOpenGroups++,Hn("group",e,{...(o||i)&&{flags:a}});throw new Error(`Unexpected flag modifier "${e}"`)}function Q1(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(c=>c!=="").map(c=>/^[+-]?\d+$/.test(c)?+c:c):[],[i,a,l]=o,u=J1.has(n)?n.toLowerCase():"custom";switch(u){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 "${u}"`)}return q1(u,r??null,s?.split(",")??null,e)}function su(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 K1(t,n,r,e)}function eC(e){const t=e[1].toLowerCase();return bn({d:"digit",h:"hex",s:"space",w:"word"}[t],e,{negate:e[1]!==t})}function tC(e){const{p:t,neg:n,value:r}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return bn("property",e,{value:r,negate:t==="P"&&!n||t==="p"&&!!n})}function ou(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 nC(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 rC(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 sC(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[Ph(n)];const o=[],i=s.match(/^[0-7]+|\d/g);for(let a=0;a<i.length;a++){const l=i[a];let u;if(a===0&&l!=="8"&&l!=="9"){if(u=parseInt(l,8),u>127)throw new Error(Pe`Octal encoded byte above 177 unsupported "${n}"`)}else u=hr(l);o.push(Dt(u,(a===0?"\\":"")+l))}return o}function oC(e){const t=[],n=new RegExp(al,"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(su(s.slice(0,-1)));continue}}}t.push(su(s))}return t}function Ih(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 iC(e){return aC.has(e.type)}const aC=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function Lh(e,t={}){const n={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},r=D1(e,{flags:n.flags,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline}}),s=(d,h)=>{const p=r.tokens[o.nextIndex];switch(o.parent=d,o.nextIndex++,p.type){case"Alternator":return En();case"Assertion":return lC(p);case"Backreference":return cC(p,o);case"Character":return Fo(p.value,{useLastValid:!!h.isCheckingRangeEnd});case"CharacterClassHyphen":return uC(p,o,h);case"CharacterClassOpen":return fC(p,o,h);case"CharacterSet":return dC(p,o);case"Directive":return _C(p.kind,{flags:p.flags});case"GroupOpen":return hC(p,o,h);case"NamedCallout":return wC(p.kind,p.tag,p.arguments);case"Quantifier":return pC(p,o);case"Subroutine":return gC(p,o);default:throw new Error(`Unexpected token type "${p.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=CC(bC(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:u,namedGroupsByName:c,subroutines:f}=o;if(u&&c.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(c.has(d)){if(c.get(d).length>1)throw new Error(Pe`Subroutine uses a duplicate group name "\g<${d}>"`);c.get(d)[0].isSubroutined=!0}else throw new Error(Pe`Subroutine uses a group name that's not defined "\g<${d}>"`);return i}function lC({kind:e}){return la(pr({"^":"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===Pe`\B`||e===Pe`\Y`})}function cC({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,ca(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 ca(r)}return s(+r)}function uC(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(),yC(i,l);throw new Error("Invalid character class range")}return Fo(hr("-"))}function fC({negate:e},t,n){const{tokens:r,walk:s}=t,o=r[t.nextIndex],i=[Ps()];let a=lu(o);for(;a.type!=="CharacterClassClose";){if(a.type==="CharacterClassIntersector")i.push(Ps()),t.nextIndex++;else{const u=i.at(-1);u.body.push(s(u,n))}a=lu(r[t.nextIndex],o)}const l=Ps({negate:e});return i.length===1?l.body=i[0].body:(l.kind="intersection",l.body=i.map(u=>u.body.length===1?u.body[0]:u)),t.nextIndex++,l}function dC({kind:e,negate:t,value:n},r){const{normalizeUnknownPropertyNames:s,skipPropertyNameValidation:o,unicodePropertyMap:i}=r;if(e==="property"){const a=Bo(n);if(il.has(a)&&!i?.has(a))e="posix",n=a;else return jn(n,{negate:t,normalizeUnknownPropertyNames:s,skipPropertyNameValidation:o,unicodePropertyMap:i})}return e==="posix"?vC(n,{negate:t}):ua(e,{negate:t})}function hC(e,t,n){const{tokens:r,capturingGroups:s,namedGroupsByName:o,skipLookbehindValidation:i,walk:a}=t,l=xC(e),u=l.type==="AbsenceFunction",c=au(l),f=c&&l.negate;if(l.type==="CapturingGroup"&&(s.push(l),l.name&&M1(o,l.name,[]).push(l)),u&&n.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let d=cu(r[t.nextIndex]);for(;d.type!=="GroupClose";){if(d.type==="Alternator")l.body.push(En()),t.nextIndex++;else{const h=l.body.at(-1),p=a(h,{...n,isInAbsenceFunction:n.isInAbsenceFunction||u,isInLookbehind:n.isInLookbehind||c,isInNegLookbehind:n.isInNegLookbehind||f});if(h.body.push(p),(c||n.isInLookbehind)&&!i){const g="Lookbehind includes a pattern not allowed by Oniguruma";if(f||n.isInNegLookbehind){if(iu(p)||p.type==="CapturingGroup")throw new Error(g)}else if(iu(p)||au(p)&&p.negate)throw new Error(g)}}d=cu(r[t.nextIndex])}return t.nextIndex++,l}function pC({kind:e,min:t,max:n},r){const s=r.parent,o=s.body.at(-1);if(!o||!iC(o))throw new Error("Quantifier requires a repeatable token");const i=Mh(e,t,n,o);return s.body.pop(),i}function gC({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=Dh(s);return r.push(i),i}function mC(e,t){return{type:"AbsenceFunction",kind:e,body:ns(t?.body)}}function En(e){return{type:"Alternative",body:Fh(e?.body)}}function la(e,t){const n={type:"Assertion",kind:e};return(e==="word_boundary"||e==="text_segment_boundary")&&(n.negate=!!t?.negate),n}function ca(e,t){const n=!!t?.orphan;return{type:"Backreference",ref:e,...n&&{orphan:n}}}function Oh(e,t){const n={name:void 0,isSubroutined:!1,...t};if(n.name!==void 0&&!SC(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:ns(t?.body)}}function Fo(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 Ps(e){const t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:Fh(e?.body)}}function yC(e,t){if(t.value<e.value)throw new Error("Character class range out of order");return{type:"CharacterClassRange",min:e,max:t}}function ua(e,t){const n=!!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 _C(e,t={}){if(e==="keep")return{type:"Directive",kind:e};if(e==="flags")return{type:"Directive",kind:e,flags:pr(t.flags)};throw new Error(`Unexpected directive kind "${e}"`)}function bC(e){return{type:"Flags",...e}}function ut(e){const t=e?.atomic,n=e?.flags;if(t&&n)throw new Error("Atomic group cannot have flags");return{type:"Group",...t&&{atomic:t},...n&&{flags:n},body:ns(e?.body)}}function yn(e){const t={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:t.behind?"lookbehind":"lookahead",negate:t.negate,body:ns(e?.body)}}function wC(e,t,n){return{type:"NamedCallout",kind:e,tag:t,arguments:n}}function vC(e,t){const n=!!t?.negate;if(!il.has(e))throw new Error(`Invalid POSIX class "${e}"`);return{type:"CharacterSet",kind:"posix",value:e,negate:n}}function Mh(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 CC(e,t){return{type:"Regex",body:ns(t?.body),flags:e}}function Dh(e){return{type:"Subroutine",ref:e}}function jn(e,t){const n={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t};let r=n.unicodePropertyMap?.get(Bo(e));if(!r){if(n.normalizeUnknownPropertyNames)r=kC(e);else if(n.unicodePropertyMap&&!n.skipPropertyNameValidation)throw new Error(Pe`Invalid Unicode property "\p{${e}}"`)}return{type:"CharacterSet",kind:"property",value:r??e,negate:n.negate}}function xC({flags:e,kind:t,name:n,negate:r,number:s}){switch(t){case"absence_repeater":return mC("repeater");case"atomic":return ut({atomic:!0});case"capturing":return Oh(s,{name:n});case"group":return ut({flags:e});case"lookahead":case"lookbehind":return yn({behind:t==="lookbehind",negate:r});default:throw new Error(`Unexpected group kind "${t}"`)}}function ns(e){if(e===void 0)e=[En()];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 Fh(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 iu(e){return e.type==="LookaroundAssertion"&&e.kind==="lookahead"}function au(e){return e.type==="LookaroundAssertion"&&e.kind==="lookbehind"}function SC(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function kC(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 Bo(e){return e.replace(/[- _]+/g,"").toLowerCase()}function lu(e,t){return pr(e,`${t?.type==="Character"&&t.value===93?"Empty":"Unclosed"} character class`)}function cu(e){return pr(e,"Unclosed group")}function Or(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){let u=0,c=!1;const f={node:o,parent:i,key:a,container:l,root:e,remove(){bs(l).splice(Math.max(0,Mn(a)+u),1),u--,c=!0},removeAllNextSiblings(){return bs(l).splice(Mn(a)+1)},removeAllPrevSiblings(){const y=Mn(a)+u;return u-=y,bs(l).splice(0,Math.max(0,y))},replaceWith(y,v={}){const m=!!v.traverse;l?l[Math.max(0,Mn(a)+u)]=y:pr(i,"Can't replace root node")[a]=y,m&&s(y,i,a,l),c=!0},replaceWithMultiple(y,v={}){const m=!!v.traverse;if(bs(l).splice(Math.max(0,Mn(a)+u),1,...y),u+=y.length-1,m){let b=0;for(let C=0;C<y.length;C++)b+=s(y[C],i,Mn(a)+C+b,l)}c=!0},skip(){c=!0}},{type:d}=o,h=t["*"],p=t[d],g=typeof h=="function"?h:h?.enter,w=typeof p=="function"?p:p?.enter;if(g?.(f,n),w?.(f,n),!c)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 p?.exit?.(f,n),h?.exit?.(f,n),u}return s(e),e}function bs(e){if(!Array.isArray(e))throw new Error("Container expected");return e}function Mn(e){if(typeof e!="number")throw new Error("Numeric key expected");return e}const AC=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function EC(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function TC(e,t,n,r){return e.slice(0,t)+r+e.slice(t+n.length)}const ot=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function ll(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:u,groups:{$skip:c}}=l;if(!c&&(!r||r===ot.DEFAULT==!i)){n instanceof Function?a+=n(l,{context:i?ot.CHAR_CLASS:ot.DEFAULT,negated:o[o.length-1]}):a+=n;continue}u[0]==="["?(i++,o.push(u[1]==="^")):u==="]"&&i&&(i--,o.pop()),a+=u}return a}function Bh(e,t,n,r){ll(e,t,n,r)}function $C(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===ot.DEFAULT==!o))return i;a==="["?o++:a==="]"&&o&&o--,s.lastIndex==i.index&&s.lastIndex++}return null}function ws(e,t,n){return!!$C(e,t,0,n)}function RC(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 uu=new RegExp(String.raw`(?<noncapturingStart>${AC})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function PC(e,t){const n=t?.hiddenCaptures??[];let r=t?.captureTransfers??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:r,hiddenCaptures:n};const s="(?>",o="(?:(?=(",i=[0],a=[];let l=0,u=0,c=NaN,f;do{f=!1;let d=0,h=0,p=!1,g;for(uu.lastIndex=Number.isNaN(c)?0:c+o.length;g=uu.exec(e);){const{0:w,index:y,groups:{capturingStart:v,noncapturingStart:m}}=g;if(w==="[")d++;else if(d)w==="]"&&d--;else if(w===s&&!p)c=y,p=!0;else if(p&&m)h++;else if(v)p?h++:(l++,i.push(l+u));else if(w===")"&&p){if(!h){u++;const b=l+u;if(e=`${e.slice(0,c)}${o}${e.slice(c+s.length,y)}))<$$${b}>)${e.slice(y+1)}`,f=!0,a.push(b),EC(n,b),r.size){const C=new Map;r.forEach((k,P)=>{C.set(P>=b?P+1:P,k.map(F=>F>=b?F+1:F))}),r=C}break}h--}}}while(f);return n.push(...a),e=ll(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:d,groups:{backrefNum:h,wrappedBackrefNum:p}})=>{if(h){const g=+h;if(g>i.length-1)throw new Error(`Backref "${d}" greater than number of captures`);return`\\${i[g]}`}return`\\${p}`},ot.DEFAULT),{pattern:e,captureTransfers:r,hiddenCaptures:n}}const Hh=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,mi=new RegExp(String.raw`
|
|
48
|
+
\\(?: \d+
|
|
49
|
+
| c[A-Za-z]
|
|
50
|
+
| [gk]<[^>]+>
|
|
51
|
+
| [pPu]\{[^\}]+\}
|
|
52
|
+
| u[A-Fa-f\d]{4}
|
|
53
|
+
| x[A-Fa-f\d]{2}
|
|
54
|
+
)
|
|
55
|
+
| \((?: \? (?: [:=!>]
|
|
56
|
+
| <(?:[=!]|[^>]+>)
|
|
57
|
+
| [A-Za-z\-]+:
|
|
58
|
+
| \(DEFINE\)
|
|
59
|
+
))?
|
|
60
|
+
| (?<qBase>${Hh})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
|
|
61
|
+
| \\?.
|
|
62
|
+
`.replace(/\s+/g,""),"gsu");function NC(e){if(!new RegExp(`${Hh}\\+`).test(e))return{pattern:e};const t=[];let n=null,r=null,s="",o=0,i;for(mi.lastIndex=0;i=mi.exec(e);){const{0:a,index:l,groups:{qBase:u,qMod:c,invalidQ:f}}=i;if(a==="[")o||(r=l),o++;else if(a==="]")o?o--:r=null;else if(!o)if(c==="+"&&s&&!s.startsWith("(")){if(f)throw new Error(`Invalid quantifier "${a}"`);let d=-1;if(/^\{\d+\}$/.test(u))e=TC(e,l+u.length,c,"");else{if(s===")"||s==="]"){const h=s===")"?n:r;if(h===null)throw new Error(`Invalid unmatched "${s}"`);e=`${e.slice(0,h)}(?>${e.slice(h,l)}${u})${e.slice(l+a.length)}`}else e=`${e.slice(0,l-s.length)}(?>${s}${u})${e.slice(l+a.length)}`;d+=4}mi.lastIndex+=d}else a[0]==="("?t.push(l):a===")"&&(n=t.length?t.pop():null);s=a}return{pattern:e}}const rt=String.raw,IC=rt`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,fa=rt`\(\?R=(?<rDepth>[^\)]+)\)|${IC}`,Ho=rt`\(\?<(?![=!])(?<captureName>[^>]+)>`,jh=rt`${Ho}|(?<unnamed>\()(?!\?)`,hn=new RegExp(rt`${Ho}|${fa}|\(\?|\\?.`,"gsu"),yi="Cannot use multiple overlapping recursions";function LC(e,t){const{hiddenCaptures:n,mode:r}={hiddenCaptures:[],mode:"plugin",...t};let s=t?.captureTransfers??new Map;if(!new RegExp(fa,"su").test(e))return{pattern:e,captureTransfers:s,hiddenCaptures:n};if(r==="plugin"&&ws(e,rt`\(\?\(DEFINE\)`,ot.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");const o=[],i=ws(e,rt`\\[1-9]`,ot.DEFAULT),a=new Map,l=[];let u=!1,c=0,f=0,d;for(hn.lastIndex=0;d=hn.exec(e);){const{0:h,groups:{captureName:p,rDepth:g,gRNameOrNum:w,gRDepth:y}}=d;if(h==="[")c++;else if(c)h==="]"&&c--;else if(g){if(fu(g),u)throw new Error(yi);if(i)throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);const v=e.slice(0,d.index),m=e.slice(hn.lastIndex);if(ws(m,fa,ot.DEFAULT))throw new Error(yi);const b=+g-1;e=du(v,m,b,!1,n,o,f),s=pu(s,v,b,o.length,0,f);break}else if(w){fu(y);let v=!1;for(const W of l)if(W.name===w||W.num===+w){if(v=!0,W.hasRecursedWithin)throw new Error(yi);break}if(!v)throw new Error(rt`Recursive \g cannot be used outside the referenced group "${r==="external"?w:rt`\g<${w}&R=${y}>`}"`);const m=a.get(w),b=RC(e,m);if(i&&ws(b,rt`${Ho}|\((?!\?)`,ot.DEFAULT))throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);const C=e.slice(m,d.index),k=b.slice(C.length+h.length),P=o.length,F=+y-1,G=du(C,k,F,!0,n,o,f);s=pu(s,C,F,o.length-P,P,f);const N=e.slice(0,m),q=e.slice(m+b.length);e=`${N}${G}${q}`,hn.lastIndex+=G.length-h.length-C.length-k.length,l.forEach(W=>W.hasRecursedWithin=!0),u=!0}else if(p)f++,a.set(String(f),hn.lastIndex),a.set(p,hn.lastIndex),l.push({num:f,name:p});else if(h[0]==="("){const v=h==="(";v&&(f++,a.set(String(f),hn.lastIndex)),l.push(v?{num:f}:{})}else h===")"&&l.pop()}return n.push(...o),{pattern:e,captureTransfers:s,hiddenCaptures:n}}function fu(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 du(e,t,n,r,s,o,i){const a=new Set;r&&Bh(e+t,Ho,({groups:{captureName:u}})=>{a.add(u)},ot.DEFAULT);const l=[n,r?a:null,s,o,i];return`${e}${hu(`(?:${e}`,"forward",...l)}(?:)${hu(`${t})`,"backward",...l)}${t}`}function hu(e,t,n,r,s,o,i){const l=c=>t==="forward"?c+2:n-c+2-1;let u="";for(let c=0;c<n;c++){const f=l(c);u+=ll(e,rt`${jh}|\\k<(?<backref>[^>]+)>`,({0:d,groups:{captureName:h,unnamed:p,backref:g}})=>{if(g&&r&&!r.has(g))return d;const w=`_$${f}`;if(p||h){const y=i+o.length+1;return o.push(y),OC(s,y),p?d:`(?<${h}${w}>`}return rt`\k<${g}${w}>`},ot.DEFAULT)}return u}function OC(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function pu(e,t,n,r,s,o){if(e.size&&r){let i=0;Bh(t,jh,()=>i++,ot.DEFAULT);const a=o-i+s,l=new Map;return e.forEach((u,c)=>{const f=(r-i*n)/n,d=i*n,h=c>a+i?c+r:c,p=[];for(const g of u)if(g<=a)p.push(g);else if(g>a+i+f)p.push(g+r);else if(g<=a+i)for(let w=0;w<=n;w++)p.push(g+i*w);else for(let w=0;w<=n;w++)p.push(g+d+f*w);l.set(h,p)}),l}return e}var Te=String.fromCodePoint,ne=String.raw,Bt={flagGroups:(()=>{try{new RegExp("(?i:)")}catch{return!1}return!0})(),unicodeSets:(()=>{try{new RegExp("[[]]","v")}catch{return!1}return!0})()};Bt.bugFlagVLiteralHyphenIsRange=Bt.unicodeSets?(()=>{try{new RegExp(ne`[\d\-a]`,"v")}catch{return!0}return!1})():!1;Bt.bugNestedClassIgnoresNegation=Bt.unicodeSets&&new RegExp("[[^a]]","v").test("a");function fo(e,{enable:t,disable:n}){return{dotAll:!n?.dotAll&&!!(t?.dotAll||e.dotAll),ignoreCase:!n?.ignoreCase&&!!(t?.ignoreCase||e.ignoreCase)}}function Jr(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}function da(e,t){return gu[e]>=gu[t]}function MC(e,t){if(e==null)throw new Error(t??"Value expected");return e}var gu={ES2025:2025,ES2024:2024,ES2018:2018},DC={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function Uh(e={}){if({}.toString.call(e)!=="[object Object]")throw new Error("Unexpected options");if(e.target!==void 0&&!DC[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=Bt.flagGroups?"ES2025":Bt.unicodeSets?"ES2024":"ES2018"),t}var FC="[ -\r ]",BC=new Set([Te(304),Te(305)]),Pt=ne`[\p{L}\p{M}\p{N}\p{Pc}]`;function Gh(e){if(BC.has(e))return[e];const t=new Set,n=e.toLowerCase(),r=n.toUpperCase(),s=UC.get(n),o=HC.get(n),i=jC.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 cl=new Map(`C Other
|
|
63
|
+
Cc Control cntrl
|
|
64
|
+
Cf Format
|
|
65
|
+
Cn Unassigned
|
|
66
|
+
Co Private_Use
|
|
67
|
+
Cs Surrogate
|
|
68
|
+
L Letter
|
|
69
|
+
LC Cased_Letter
|
|
70
|
+
Ll Lowercase_Letter
|
|
71
|
+
Lm Modifier_Letter
|
|
72
|
+
Lo Other_Letter
|
|
73
|
+
Lt Titlecase_Letter
|
|
74
|
+
Lu Uppercase_Letter
|
|
75
|
+
M Mark Combining_Mark
|
|
76
|
+
Mc Spacing_Mark
|
|
77
|
+
Me Enclosing_Mark
|
|
78
|
+
Mn Nonspacing_Mark
|
|
79
|
+
N Number
|
|
80
|
+
Nd Decimal_Number digit
|
|
81
|
+
Nl Letter_Number
|
|
82
|
+
No Other_Number
|
|
83
|
+
P Punctuation punct
|
|
84
|
+
Pc Connector_Punctuation
|
|
85
|
+
Pd Dash_Punctuation
|
|
86
|
+
Pe Close_Punctuation
|
|
87
|
+
Pf Final_Punctuation
|
|
88
|
+
Pi Initial_Punctuation
|
|
89
|
+
Po Other_Punctuation
|
|
90
|
+
Ps Open_Punctuation
|
|
91
|
+
S Symbol
|
|
92
|
+
Sc Currency_Symbol
|
|
93
|
+
Sk Modifier_Symbol
|
|
94
|
+
Sm Math_Symbol
|
|
95
|
+
So Other_Symbol
|
|
96
|
+
Z Separator
|
|
97
|
+
Zl Line_Separator
|
|
98
|
+
Zp Paragraph_Separator
|
|
99
|
+
Zs Space_Separator
|
|
100
|
+
ASCII
|
|
101
|
+
ASCII_Hex_Digit AHex
|
|
102
|
+
Alphabetic Alpha
|
|
103
|
+
Any
|
|
104
|
+
Assigned
|
|
105
|
+
Bidi_Control Bidi_C
|
|
106
|
+
Bidi_Mirrored Bidi_M
|
|
107
|
+
Case_Ignorable CI
|
|
108
|
+
Cased
|
|
109
|
+
Changes_When_Casefolded CWCF
|
|
110
|
+
Changes_When_Casemapped CWCM
|
|
111
|
+
Changes_When_Lowercased CWL
|
|
112
|
+
Changes_When_NFKC_Casefolded CWKCF
|
|
113
|
+
Changes_When_Titlecased CWT
|
|
114
|
+
Changes_When_Uppercased CWU
|
|
115
|
+
Dash
|
|
116
|
+
Default_Ignorable_Code_Point DI
|
|
117
|
+
Deprecated Dep
|
|
118
|
+
Diacritic Dia
|
|
119
|
+
Emoji
|
|
120
|
+
Emoji_Component EComp
|
|
121
|
+
Emoji_Modifier EMod
|
|
122
|
+
Emoji_Modifier_Base EBase
|
|
123
|
+
Emoji_Presentation EPres
|
|
124
|
+
Extended_Pictographic ExtPict
|
|
125
|
+
Extender Ext
|
|
126
|
+
Grapheme_Base Gr_Base
|
|
127
|
+
Grapheme_Extend Gr_Ext
|
|
128
|
+
Hex_Digit Hex
|
|
129
|
+
IDS_Binary_Operator IDSB
|
|
130
|
+
IDS_Trinary_Operator IDST
|
|
131
|
+
ID_Continue IDC
|
|
132
|
+
ID_Start IDS
|
|
133
|
+
Ideographic Ideo
|
|
134
|
+
Join_Control Join_C
|
|
135
|
+
Logical_Order_Exception LOE
|
|
136
|
+
Lowercase Lower
|
|
137
|
+
Math
|
|
138
|
+
Noncharacter_Code_Point NChar
|
|
139
|
+
Pattern_Syntax Pat_Syn
|
|
140
|
+
Pattern_White_Space Pat_WS
|
|
141
|
+
Quotation_Mark QMark
|
|
142
|
+
Radical
|
|
143
|
+
Regional_Indicator RI
|
|
144
|
+
Sentence_Terminal STerm
|
|
145
|
+
Soft_Dotted SD
|
|
146
|
+
Terminal_Punctuation Term
|
|
147
|
+
Unified_Ideograph UIdeo
|
|
148
|
+
Uppercase Upper
|
|
149
|
+
Variation_Selector VS
|
|
150
|
+
White_Space space
|
|
151
|
+
XID_Continue XIDC
|
|
152
|
+
XID_Start XIDS`.split(/\s/).map(e=>[Bo(e),e])),HC=new Map([["s",Te(383)],[Te(383),"s"]]),jC=new Map([[Te(223),Te(7838)],[Te(107),Te(8490)],[Te(229),Te(8491)],[Te(969),Te(8486)]]),UC=new Map([Vt(453),Vt(456),Vt(459),Vt(498),..._i(8072,8079),..._i(8088,8095),..._i(8104,8111),Vt(8124),Vt(8140),Vt(8188)]),GC=new Map([["alnum",ne`[\p{Alpha}\p{Nd}]`],["alpha",ne`\p{Alpha}`],["ascii",ne`\p{ASCII}`],["blank",ne`[\p{Zs}\t]`],["cntrl",ne`\p{Cc}`],["digit",ne`\p{Nd}`],["graph",ne`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",ne`\p{Lower}`],["print",ne`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",ne`[\p{P}\p{S}]`],["space",ne`\p{space}`],["upper",ne`\p{Upper}`],["word",ne`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",ne`\p{AHex}`]]);function WC(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}function Vt(e){const t=Te(e);return[t.toLowerCase(),t]}function _i(e,t){return WC(e,t).map(n=>Vt(n))}var Wh=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function zC(e,t){const n={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...t};zh(e);const r={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:da(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};Or(e,VC,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};Or(e,qC,o);const i={groupsByName:o.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:o.reffedNodesByReferencer};return Or(e,KC,i),e._originMap=o.groupOriginByCopy,e._strategy=r.strategy,e}var VC={AbsenceFunction({node:e,parent:t,replaceWith:n}){const{body:r,kind:s}=e;if(s==="repeater"){const o=ut();o.body[0].body.push(yn({negate:!0,body:r}),jn("Any"));const i=ut();i.body[0].body.push(Mh("greedy",0,1/0,o)),n(Ce(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];Jr(r,i,[]).push(...s)}},exit({node:e},{flagDirectivesByAlt:t}){if(t.get(e)?.length){const n=qh(t.get(e));if(n){const r=ut({flags:n});r.body[0].body=e.body,e.body=[Ce(r,e)]}}}},Assertion({node:e,parent:t,key:n,container:r,root:s,remove:o,replaceWith:i},a){const{kind:l,negate:u}=e,{asciiWordBoundaries:c,avoidSubclass:f,supportedGNodes:d,wordIsAscii:h}=a;if(l==="text_segment_boundary")throw new Error(`Unsupported text segment boundary "\\${u?"Y":"y"}"`);if(l==="line_end")i(Ce(yn({body:[En({body:[la("string_end")]}),En({body:[Fo(10)]})]}),t));else if(l==="line_start")i(Ce(Nt(ne`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if(l==="search_start")if(d.has(e))s.flags.sticky=!0,o();else{const p=r[n-1];if(p&&ex(p))i(Ce(yn({negate:!0}),t));else{if(f)throw new Error(ne`Uses "\G" in a way that requires a subclass`);i(qt(la("string_start"),t)),a.strategy="clip_search"}}else if(!(l==="string_end"||l==="string_start"))if(l==="string_end_newline")i(Ce(Nt(ne`(?=\n?\z)`),t));else if(l==="word_boundary"){if(!h&&!c){const p=`(?:(?<=${Pt})(?!${Pt})|(?<!${Pt})(?=${Pt}))`,g=`(?:(?<=${Pt})(?=${Pt})|(?<!${Pt})(?!${Pt}))`;i(Ce(Nt(u?g:p),t))}}else throw new Error(`Unexpected assertion kind "${l}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n=="string"&&!wi(n)&&(n=bi(n,t),e.ref=n)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:n}){let{name:r}=e;r&&!wi(r)&&(r=bi(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=Ps({body:[e]});n(Ce(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:u,value:c}=e;if(o&&(l==="digit"||c==="digit")){n(qt(ua("digit",{negate:u}),t));return}if(i&&(l==="space"||c==="space")){n(Ce(vi(Nt(FC),u),t));return}if(a&&(l==="word"||c==="word")){n(qt(ua("word",{negate:u}),t));return}if(l==="any")n(qt(jn("Any"),t));else if(l==="digit")n(qt(jn("Nd",{negate:u}),t));else if(l!=="dot")if(l==="text_segment"){if(r==="strict")throw new Error(ne`Use of "\X" requires non-strict accuracy`);const f="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",d=ne`\p{RI}{2}|${f}(?:\u200D${f})*`;n(Ce(Nt(ne`(?>\r\n|${s?ne`\p{RGI_Emoji}`:d}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(l==="hex")n(qt(jn("AHex",{negate:u}),t));else if(l==="newline")n(Ce(Nt(u?`[^
|
|
153
|
+
]`:`(?>\r
|
|
154
|
+
?|[
|
|
155
|
+
\v\f
\u2028\u2029])`),t));else if(l==="posix")if(!s&&(c==="graph"||c==="print")){if(r==="strict")throw new Error(`POSIX class "${c}" requires min target ES2024 or non-strict accuracy`);let f={graph:"!-~",print:" -~"}[c];u&&(f=`\0-${Te(f.codePointAt(0)-1)}${Te(f.codePointAt(2)+1)}-`),n(Ce(Nt(`[${f}]`),t))}else n(Ce(vi(Nt(GC.get(c)),u),t));else if(l==="property")cl.has(Bo(c))||(e.key="sc");else if(l==="space")n(qt(jn("space",{negate:u}),t));else if(l==="word")n(Ce(vi(Nt(Pt),u),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 u=ut({flags:l});u.body[0].body=i(),s(Ce(u,t),{traverse:!0})}else if(a==="keep"){const u=n.body[0],f=n.body.length===1&&Ih(u,{type:"Group"})&&u.body[0].body.length===1?u.body[0]:n;if(t.parent!==f||f.body.length>1)throw new Error(ne`Uses "\K" in a way that's unsupported`);const d=yn({behind:!0});d.body[0].body=o(),s(Ce(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?.extended&&delete t.extended,n?.extended&&delete n.extended,t?.dotAll&&n?.dotAll&&delete t.dotAll,t?.ignoreCase&&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(Ce(yn({negate:!0}),t));else throw new Error(`Unsupported named callout "(*${r.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type==="Quantifier"){const t=ut();t.body[0].body.push(e.body),e.body=Ce(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=Xh(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(ne`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n=="string"&&!wi(n)&&(n=bi(n,t),e.ref=n)}},qC={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 u=s.get(e);if(u&&a.has(e.number)){const f=qt(mu(e.number),t);l.set(f,a.get(e.number)),n(f);return}a.set(e.number,e),i.set(e.number,[]),e.name&&Jr(i,e.name,[]);const c=i.get(e.name??e.number);for(let f=0;f<c.length;f++){const d=c[f];if(u===d.node||u&&u===d.origin||e===d.origin){c.splice(f,1);break}}if(i.get(e.number).push({node:e,origin:u}),e.name&&i.get(e.name).push({node:e,origin:u}),e.name){const f=Jr(o,e.name,new Map);let d=!1;if(u)d=!0;else for(const h of f.values())if(!h.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=fo(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 c=t;for(;(c=c.parent)&&!(c.type==="CapturingGroup"&&(c.name===o||c.number===o)););r.reffedNodesByReferencer.set(e,c);return}const i=r.subroutineRefMap.get(o),a=o===0,l=a?mu(0):Vh(i,r.groupOriginByCopy,null);let u=l;if(!a){const c=qh(YC(i,d=>d.type==="Group"&&!!d.flags)),f=c?fo(r.globalFlags,c):r.globalFlags;XC(f,r.currentFlags)||(u=ut({flags:ZC(f)}),u.body[0].body.push(l))}n(Ce(u,t),{traverse:!a})}},KC={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=>JC(i,e));if(!o.length)n(Ce(yn({negate:!0}),t));else if(o.length>1){const i=ut({atomic:!0,body:o.reverse().map(a=>En({body:[ca(a.number)]}))});n(Ce(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=Oh();e.body.at(-1).body.push(s)}}},Subroutine({node:e},t){!e.isRecursive||e.ref===0||(e.ref=t.reffedNodesByReferencer.get(e).number)}};function zh(e){Or(e,{"*"({node:t,parent:n}){t.parent=n}})}function XC(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function JC(e,t){let n=t;do{if(n.type==="Regex")return!1;if(n.type==="Alternative")continue;if(n===e)return!1;const r=Kh(n.parent);for(const s of r){if(s===n)break;if(s===e||Jh(s,e))return!0}}while(n=n.parent);throw new Error("Unexpected path")}function Vh(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]=Vh(i,t,s,n):(o==="type"&&i==="CapturingGroup"&&t.set(s,t.get(e)??e),s[o]=i);return s}function mu(e){const t=Dh(e);return t.isRecursive=!0,t}function YC(e,t){const n=[];for(;e=e.parent;)(!t||t(e))&&n.push(e);return n}function bi(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 qh(e){const t=["dotAll","ignoreCase"],n={enable:{},disable:{}};return e.forEach(({flags:r})=>{t.forEach(s=>{r.enable?.[s]&&(delete n.disable[s],n.enable[s]=!0),r.disable?.[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 ZC({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 Kh(e){if(!e)throw new Error("Node expected");const{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function Xh(e){const t=e.find(n=>n.kind==="search_start"||tx(n,{negate:!1})||!QC(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=Xh(r.body);if(!s)return null;Array.isArray(s)?n.push(...s):n.push(s)}return n}return null}function Jh(e,t){const n=Kh(e)??[];for(const r of n)if(r===t||Jh(r,t))return!0;return!1}function QC({type:e}){return e==="Assertion"||e==="Directive"||e==="LookaroundAssertion"}function ex(e){const t=["Character","CharacterClass","CharacterSet"];return t.includes(e.type)||e.type==="Quantifier"&&e.min&&t.includes(e.body.type)}function tx(e,t){const n={negate:null,...t};return e.type==="LookaroundAssertion"&&(n.negate===null||e.negate===n.negate)&&e.body.length===1&&Ih(e.body[0],{type:"Assertion",kind:"search_start"})}function wi(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function Nt(e,t){const r=Lh(e,{...t,unicodePropertyMap:cl}).body;return r.length>1||r[0].body.length>1?ut({body:r}):r[0].body[0]}function vi(e,t){return e.negate=t,e}function qt(e,t){return e.parent=t,e}function Ce(e,t){return zh(e),e.parent=t,e}function nx(e,t){const n=Uh(t),r=da(n.target,"ES2024"),s=da(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 h=[e.flags.ignoreCase];Or(e,rx,{getCurrentModI:()=>h.at(-1),popModI(){h.pop()},pushModI(p){h.push(p)},setHasCasedChar(){h.at(-1)?i=!0:a=!0}})}const l={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||i)&&!a)};let u=e;const c={accuracy:n.accuracy,appliedGlobalFlags:l,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:u,originMap:e._originMap,recursionLimit:o,useAppliedIgnoreCase:!!(!s&&i&&a),useFlagMods:s,useFlagV:r,verbose:n.verbose};function f(h){return c.lastNode=u,u=h,MC(sx[h.type],`Unexpected node type "${h.type}"`)(h,c,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=[],c.captureMap.forEach((h,p)=>{h.hidden&&d._hiddenCaptures.push(p),h.transferTo&&Jr(d._captureTransfers,h.transferTo,[]).push(p)}),d}var rx={"*":{enter({node:e},t){if(_u(e)){const n=t.getCurrentModI();t.pushModI(e.flags?fo({ignoreCase:n},e.flags).ignoreCase:n)}},exit({node:e},t){_u(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){ul(Te(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},n){t(),Yh(e,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:e},t){e.kind==="property"&&Wh.has(e.value)&&t.setHasCasedChar()}},sx={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?ne`\B`:ne`\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=Te(e),r=Dn(e,{escDigit:t.lastNode.type==="Backreference",inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(r!==n)return r;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&ul(n)){const s=Gh(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 character class intersection requires min target ES2024");Bt.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&i.some(bu)&&(i=[Fo(45),...i.filter(u=>!bu(u))]);const a=()=>`[${s?"^":""}${i.map(n).join(r==="intersection"?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||Bt.bugNestedClassIgnoresNegation)&&!s){const c=i.filter(f=>f.type==="CharacterClass"&&f.kind==="union"&&f.negate);if(c.length){const f=ut(),d=f.body[0];return f.parent=o,d.parent=f,i=i.filter(h=>!c.includes(h)),e.body=i,i.length?(e.parent=d,d.body.push(e)):f.body.pop(),c.forEach(h=>{const p=En({body:[h]});h.parent=p,p.parent=f,f.body.push(p)}),n(f)}}t.inCharClass=!0;const u=a();return t.inCharClass=!1,u}const l=i[0];if(r==="union"&&!s&&l&&((!t.useFlagV||!t.verbose)&&o.kind==="union"&&!(Bt.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("Uses nested character class in a way that 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=Dn(n,s),i=Dn(r,s),a=new Set;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase){const l=Yh(e);cx(l).forEach(c=>{a.add(Array.isArray(c)?`${Dn(c[0],s)}-${Dn(c[1],s)}`:Dn(c,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?".":"[^]":ne`[^\n]`;if(e==="digit")return t?ne`\D`:ne`\d`;if(e==="property"){if(s.useAppliedIgnoreCase&&s.currentFlags.ignoreCase&&Wh.has(n))throw new Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${t?ne`\P`:ne`\p`}{${r?`${r}=`:""}${n}}`}if(e==="word")return t?ne`\W`:ne`\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=fo(i,n));const a=t.map(o).join("|"),l=!s.verbose&&t.length===1&&r.type!=="Quantifier"&&!e&&(!s.useFlagMods||!n)?a:`(?${ux(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)+fx(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})`:ne`\g<${t}&R=${r}>`}},ox=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),ix=new Set(["-","\\","]","^","["]),ax=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),yu=new Map([[9,ne`\t`],[10,ne`\n`],[11,ne`\v`],[12,ne`\f`],[13,ne`\r`],[8232,ne`\u2028`],[8233,ne`\u2029`],[65279,ne`\uFEFF`]]),lx=new RegExp("^\\p{Cased}$","u");function ul(e){return lx.test(e)}function Yh(e,t){const n=!!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=Te(i);if(!ul(a))continue;const l=Gh(a).filter(u=>{const c=u.codePointAt(0);return c<r||c>s});if(l.length&&(o.push(...l),n))break}return o}function Dn(e,{escDigit:t,inCharClass:n,useFlagV:r}){if(yu.has(e))return yu.get(e);if(e<32||e>126&&e<160||e>262143||t&&dx(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;const s=n?r?ax:ix:ox,o=Te(e);return(s.has(o)?"\\":"")+o}function cx(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??=t[s]:r===null?n.push(t[s]):(n.push([r,t[s]]),r=null);return n}function ux(e,t,n){if(e)return">";let r="";if(t&&n){const{enable:s,disable:o}=t;r=(s?.ignoreCase?"i":"")+(s?.dotAll?"s":"")+(o?"-":"")+(o?.ignoreCase?"i":"")+(o?.dotAll?"s":"")}return`${r}:`}function fx({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 _u({type:e}){return e==="CapturingGroup"||e==="Group"||e==="LookaroundAssertion"}function dx(e){return e>47&&e<58}function bu({type:e,value:t}){return e==="Character"&&t===45}var hx=class ha extends RegExp{#t=new Map;#e=null;#r;#n=null;#s=null;rawOptions={};get source(){return this.#r||"(?:)"}constructor(t,n,r){const s=!!r?.lazyCompile;if(t instanceof RegExp){if(r)throw new Error("Cannot provide options when copying a regexp");const o=t;super(o,n),this.#r=o.source,o instanceof ha&&(this.#t=o.#t,this.#n=o.#n,this.#s=o.#s,this.rawOptions=o.rawOptions)}else{const o={hiddenCaptures:[],strategy:null,transfers:[],...r};super(s?"":t,n),this.#r=t,this.#t=gx(o.hiddenCaptures,o.transfers),this.#s=o.strategy,this.rawOptions=r??{}}s||(this.#e=this)}exec(t){if(!this.#e){const{lazyCompile:s,...o}=this.rawOptions;this.#e=new ha(this.#r,this.flags,o)}const n=this.global||this.sticky,r=this.lastIndex;if(this.#s==="clip_search"&&n&&r){this.lastIndex=0;const s=this.#o(t.slice(r));return s&&(px(s,r,t,this.hasIndices),this.lastIndex+=r),s}return this.#o(t)}#o(t){this.#e.lastIndex=this.lastIndex;const n=super.exec.call(this.#e,t);if(this.lastIndex=this.#e.lastIndex,!n||!this.#t.size)return n;const r=[...n];n.length=1;let s;this.hasIndices&&(s=[...n.indices],n.indices.length=1);const o=[0];for(let i=1;i<r.length;i++){const{hidden:a,transferTo:l}=this.#t.get(i)??{};if(a?o.push(null):(o.push(n.length),n.push(r[i]),this.hasIndices&&n.indices.push(s[i])),l&&r[i]!==void 0){const u=o[l];if(!u)throw new Error(`Invalid capture transfer to "${u}"`);if(n[u]=r[i],this.hasIndices&&(n.indices[u]=s[i]),n.groups){this.#n||(this.#n=mx(this.source));const c=this.#n.get(l);c&&(n.groups[c]=r[i],this.hasIndices&&(n.indices.groups[c]=s[i]))}}}return n}};function px(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 gx(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)Jr(n,o,{}).transferTo=r;return n}function mx(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 yx(e,t){const n=_x(e,t);return n.options?new hx(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function _x(e,t){const n=Uh(t),r=Lh(e,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:cl}),s=zC(r,{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),o=nx(s,n),i=LC(o.pattern,{captureTransfers:o._captureTransfers,hiddenCaptures:o._hiddenCaptures,mode:"external"}),a=NC(i.pattern),l=PC(a.pattern,{captureTransfers:i.captureTransfers,hiddenCaptures:i.hiddenCaptures}),u={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 c=l.hiddenCaptures.sort((p,g)=>p-g),f=Array.from(l.captureTransfers),d=s._strategy,h=u.pattern.length>=n.lazyCompileLength;(c.length||f.length||d||h)&&(u.options={...c.length&&{hiddenCaptures:c},...f.length&&{transfers:f},...d&&{strategy:d},...h&&{lazyCompile:h}})}return u}const wu=4294967295;class bx{constructor(t,n={}){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?.get(i);if(a){if(a instanceof RegExp)return a;if(r)return null;throw a}try{const l=o(i);return s?.set(i,l),l}catch(l){if(s?.set(i,l),r)return null;throw l}})}regexps;findNextMatchSync(t,n,r){const s=typeof t=="string"?t:t.content,o=[];function i(a,l,u=0){return{index:a,captureIndices:l.indices.map(c=>c==null?{start:wu,end:wu,length:0}:{start:c[0]+u,end:c[1]+u,length:c[1]-c[0]})}}for(let a=0;a<this.regexps.length;a++){const l=this.regexps[a];if(l)try{l.lastIndex=n;const u=l.exec(s);if(!u)continue;if(u.index===n)return i(a,u,0);o.push([a,u,0])}catch(u){if(this.options.forgiving)continue;throw u}}if(o.length){const a=Math.min(...o.map(l=>l[1].index));for(const[l,u,c]of o)if(u.index===a)return i(l,u,c)}return null}}function wx(e,t){return yx(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function vx(e={}){const t=Object.assign({target:"auto",cache:new Map},e);return t.regexConstructor||=n=>wx(n,{target:t.target}),{createScanner(n){return new bx(n,t)},createString(n){return{content:n}}}}let Cx;const wr=[];function xx(e){if(wr.push(e),!(typeof window>"u"))return window.__NUXT_DEVTOOLS__&&wr.forEach(t=>t(window.__NUXT_DEVTOOLS__)),Object.defineProperty(window,"__NUXT_DEVTOOLS__",{set(t){t&&wr.forEach(n=>n(t))},get(){return Cx.value},configurable:!0}),()=>{wr.splice(wr.indexOf(e),1)}}const Fe=Ee(null);async function Zh(){pa.value&&(Fe.value=await pa.value("/__sitemap__/debug.json"))}const pa=Ee(),Qh=Ee(),ep=Ee();xx(async e=>{pa.value=e.host.app.$fetch,nf(()=>{ep.value=e.host.app.colorMode.value}),Qh.value=e.devtools,Zh()});const tp=Ee();function Sx(){return O1({themes:[Ir(()=>import("./CVO1_9PV.js"),[],import.meta.url),Ir(()=>import("./D0r3Knsf.js"),[],import.meta.url)],langs:[Ir(()=>import("./Cp-IABpG.js"),[],import.meta.url)],engine:vx()}).then(e=>{tp.value=e})}function kx(e,t){return ke(()=>{const n=Qh.value?.colorMode||"light";return tp.value.codeToHtml(Ft(e),{lang:t,theme:n==="dark"?"vitesse-dark":"vitesse-light"})||""})}const Ax=["innerHTML"],Ex=mt({__name:"OCodeBlock",props:{code:{},lang:{},lines:{type:Boolean,default:!1},transformRendered:{}},setup(e){const t=e,n=ke(()=>{const r=kx(t.code,"json");return t.transformRendered?t.transformRendered(r.value||""):r.value});return(r,s)=>(j(),ee("pre",{class:Ae(["n-code-block",e.lines?"n-code-block-lines":""]),innerHTML:n.value},null,10,Ax))}}),np=Object.assign(Ex,{__name:"OCodeBlock"}),Tx={flex:"~ gap-3","items-center":""},$x={__name:"NIconTitle",props:{icon:{type:String,required:!1},text:{type:String,required:!1}},setup(e){return(t,n)=>(j(),ee("div",Tx,[e.icon?(j(),ee("div",{key:0,class:Ae(e.icon)},null,2)):Ie("",!0),qe(t.$slots,"default",{},()=>[I("div",null,Ne(e.text),1)])]))}},Rx=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Px=e=>typeof e<"u",Nx=Object.prototype.toString,Ix=e=>Nx.call(e)==="[object Object]",Lx=()=>{};function Ox(...e){if(e.length!==1)return Sa(...e);const t=e[0];return typeof t=="function"?Fr(Wp(()=>({get:t,set:Lx}))):Ee(t)}function Mx(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 rp=e=>e();function Dx(e=rp,t={}){const{initialState:n="active"}=t,r=Ox(n==="active");function s(){r.value=!1}function o(){r.value=!0}const i=(...a)=>{r.value&&e(...a)};return{isActive:Fr(r),pause:s,resume:o,eventFilter:i}}function Ci(e){return Array.isArray(e)?e:[e]}function Fx(e){return Tn()}function Bx(e,t,n={}){const{eventFilter:r=rp,...s}=n;return en(e,Mx(r,t),s)}function Hx(e,t,n={}){const{eventFilter:r,initialState:s="active",...o}=n,{eventFilter:i,pause:a,resume:l,isActive:u}=Dx(r,{initialState:s});return{stop:Bx(e,t,{...o,eventFilter:i}),pause:a,resume:l,isActive:u}}const jx=Hx;function Ux(e,t=!0,n){Fx()?Ra(e,n):t?e():ur(e)}function Gx(e,t,n){return en(e,t,{...n,immediate:!0})}const zn=Rx?window:void 0;function Wx(e){var t;const n=Ft(e);return(t=n?.$el)!==null&&t!==void 0?t:n}function vu(...e){const t=(r,s,o,i)=>(r.addEventListener(s,o,i),()=>r.removeEventListener(s,o,i)),n=ke(()=>{const r=Ci(Ft(e[0])).filter(s=>s!=null);return r.every(s=>typeof s!="string")?r:void 0});return Gx(()=>{var r,s;return[(r=(s=n.value)===null||s===void 0?void 0:s.map(o=>Wx(o)))!==null&&r!==void 0?r:[zn].filter(o=>o!=null),Ci(Ft(n.value?e[1]:e[0])),Ci(oe(n.value?e[2]:e[1])),Ft(n.value?e[3]:e[2])]},([r,s,o,i],a,l)=>{if(!r?.length||!s?.length||!o?.length)return;const u=Ix(i)?{...i}:i,c=r.flatMap(f=>s.flatMap(d=>o.map(h=>t(f,d,h,u))));l(()=>{c.forEach(f=>f())})},{flush:"post"})}function zx(e){return JSON.parse(JSON.stringify(e))}const vs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Cs="__vueuse_ssr_handlers__",Vx=qx();function qx(){return Cs in vs||(vs[Cs]=vs[Cs]||{}),vs[Cs]}function Kx(e,t){return Vx[e]||t}function Xx(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 Jx={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()}},Cu="vueuse-storage";function Yx(e,t,n,r={}){var s;const{flush:o="pre",deep:i=!0,listenToStorageChanges:a=!0,writeDefaults:l=!0,mergeDefaults:u=!1,shallow:c,window:f=zn,eventFilter:d,onError:h=M=>{console.error(M)},initOnMounted:p}=r,g=(c?Ls:Ee)(t),w=ke(()=>Ft(e));if(!n)try{n=Kx("getDefaultStorage",()=>zn?.localStorage)()}catch(M){h(M)}if(!n)return g;const y=Ft(t),v=Xx(y),m=(s=r.serializer)!==null&&s!==void 0?s:Jx[v],{pause:b,resume:C}=jx(g,M=>N(M),{flush:o,deep:i,eventFilter:d});en(w,()=>W(),{flush:o});let k=!1;const P=M=>{p&&!k||W(M)},F=M=>{p&&!k||Q(M)};f&&a&&(n instanceof Storage?vu(f,"storage",P,{passive:!0}):vu(f,Cu,F)),p?Ux(()=>{k=!0,W()}):W();function G(M,X){if(f){const L={key:w.value,oldValue:M,newValue:X,storageArea:n};f.dispatchEvent(n instanceof Storage?new StorageEvent("storage",L):new CustomEvent(Cu,{detail:L}))}}function N(M){try{const X=n.getItem(w.value);if(M==null)G(X,null),n.removeItem(w.value);else{const L=m.write(M);X!==L&&(n.setItem(w.value,L),G(X,L))}}catch(X){h(X)}}function q(M){const X=M?M.newValue:n.getItem(w.value);if(X==null)return l&&y!=null&&n.setItem(w.value,m.write(y)),y;if(!M&&u){const L=m.read(X);return typeof u=="function"?u(L,y):v==="object"&&!Array.isArray(L)?{...y,...L}:L}else return typeof X!="string"?X:m.read(X)}function W(M){if(!(M&&M.storageArea!==n)){if(M&&M.key==null){g.value=y;return}if(!(M&&M.key!==w.value)){b();try{const X=m.write(g.value);(M===void 0||M?.newValue!==X)&&(g.value=q(M))}catch(X){h(X)}finally{M?ur(C):C()}}}}function Q(M){W(M.detail)}return g}function Zx(e,t,n={}){const{window:r=zn}=n;return Yx(e,t,r?.localStorage,n)}function Qx(e,t,n,r={}){var s,o;const{clone:i=!1,passive:a=!1,eventName:l,deep:u=!1,defaultValue:c,shouldEmit:f}=r,d=Tn(),h=d?.emit||(d==null||(s=d.$emit)===null||s===void 0?void 0:s.bind(d))||(d==null||(o=d.proxy)===null||o===void 0||(o=o.$emit)===null||o===void 0?void 0:o.bind(d?.proxy));let p=l;p=p||`update:${t.toString()}`;const g=v=>i?typeof i=="function"?i(v):zx(v):v,w=()=>Px(e[t])?g(e[t]):c,y=v=>{f?f(v)&&h(p,v):h(p,v)};if(a){const v=Ee(w());let m=!1;return en(()=>e[t],b=>{m||(m=!0,v.value=g(b),ur(()=>m=!1))}),en(v,b=>{!m&&(b!==e[t]||u)&&y(b)},{deep:u}),v}else return ke({get(){return w()},set(v){y(v)}})}const eS=["open"],tS={"text-base":""},nS={key:0,"text-sm":"",op50:""},rS=mt({__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=Qx(e,"open");function r(s){n.value=s.target.open}return(s,o)=>{const i=Xa,a=$x;return j(),ee(_e,null,[I("details",{open:oe(n),onToggle:r},[I("summary",{class:Ae(["cursor-pointer select-none n-bg-active hover:bg-active p4 rounded transition-all",e.collapse?"":"pointer-events-none"])},[z(a,{icon:e.icon,text:e.text,"text-xl":"",transition:"",class:Ae([oe(n)?"op100":"op60",e.headerClass])},{default:se(()=>[I("div",null,[I("div",tS,[qe(s.$slots,"text",{},()=>[ie(Ne(e.text),1)],!0)]),e.description||s.$slots.description?(j(),ee("div",nS,[qe(s.$slots,"description",{},()=>[ie(Ne(e.description),1)],!0)])):Ie("",!0)]),o[0]||(o[0]=I("div",{class:"flex-auto"},null,-1)),qe(s.$slots,"actions",{},void 0,!0),e.collapse?(j(),be(i,{key:0,icon:"carbon-chevron-down",class:"chevron","cursor-pointer":"","place-self-start":"","text-base":"",op75:"",transition:"","duration-500":""})):Ie("",!0)]),_:3},8,["icon","text","class"])],2),I("div",{class:Ae(["flex flex-col flex-gap2 pb6 pt2",typeof e.padding=="string"?e.padding:e.padding?"px4":""])},[qe(s.$slots,"details",{},void 0,!0),I("div",{class:Ae([e.containerClass,"mt1"])},[qe(s.$slots,"default",{},void 0,!0)],2),qe(s.$slots,"footer",{},void 0,!0)],2)],40,eS),o[1]||(o[1]=I("div",{class:"x-divider"},null,-1))],64)}}}),sp=Object.assign(Oo(rS,[["__scopeId","data-v-1b9488bc"]]),{__name:"OSectionBlock"}),sS={class:"flex space-x-5"},oS={class:"opacity-80 text-base mb-1 flex space-x-3 items-center"},iS={key:0,class:"flex space-x-2"},aS={key:0,class:"opacity-60 text-sm"},lS={class:"flex items-center space-x-3"},cS={key:0},uS={key:1,class:"text-xs mt-1 opacity-70"},fS={key:0},dS={key:2,class:"px-3 py-3 mt-2 dark:bg-gray-900/50 bg-gray-50/50 opacity-70"},hS={class:"list-disc ml-5"},pS=["innerHTML"],gS=mt({__name:"Source",props:{source:{},showContext:{type:Boolean}},setup(e){const t=e,n=ke(()=>{const s=typeof t.source.fetch=="string"?t.source.fetch:t.source.fetch[0];return s.includes("http")?s:$n(Fe.value?.nitroOrigin||"localhost",s)});function r(s){return s.replace(/`([^`]+)`/g,"<code>$1</code>")}return(s,o)=>{const i=Xa,a=Wd,l=zd,u=np,c=sp;return j(),be(c,null,{text:se(()=>[I("div",sS,[I("h3",oS,[e.source.fetch?(j(),ee("div",iS,[z(i,{icon:"carbon:api-1",class:"opacity-50 text-lg"}),e.source.timeTakenMs?(j(),ee("div",aS,Ne(e.source.timeTakenMs)+"ms ",1)):Ie("",!0)])):Ie("",!0),I("div",null,Ne(e.source.context.name),1),I("div",null,[z(a,null,{default:se(()=>[ie(Ne(e.source.urls?.length||0),1)]),_:1})])])])]),description:se(()=>[I("div",lS,[e.source.fetch?(j(),ee("div",cS,[z(l,{href:n.value,target:"_blank"},{default:se(()=>[ie(Ne(e.source.fetch),1)]),_:1},8,["href"])])):Ie("",!0),e.source.context.description?(j(),ee("div",uS,Ne(e.source.context.description),1)):Ie("",!0)])]),default:se(()=>[e.source.error?(j(),ee("div",fS,[z(i,{icon:"carbon:warning",class:"text-red-500"}),ie(" "+Ne(e.source.error),1)])):(j(),be(u,{key:1,class:"max-h-[250px] overflow-y-auto",code:JSON.stringify(e.source.urls,null,2),lang:"json"},null,8,["code"])),e.source.context.tips?.length?(j(),ee("div",dS,[o[0]||(o[0]=I("h3",{class:"text-sm font-bold mb-1"}," Hints ",-1)),I("ul",hS,[(j(!0),ee(_e,null,Bn(e.source.context.tips,(f,d)=>(j(),ee("li",{key:d,class:"text-sm opacity-80 mb-1",innerHTML:r(f)},null,8,pS))),128))])])):Ie("",!0)]),_:1})}}}),mS=Object.assign(gS,{__name:"Source"}),yS={class:"relative n-bg-base flex flex-col"},_S={class:"sticky top-0 z-2 px-4 pt-4"},bS={class:"flex justify-between items-start",mb2:""},wS={class:"flex space-x-5"},vS={"text-xl":"",flex:"","items-center":"","gap-2":""},CS={class:"flex items-center space-x-3 text-xl"},xS={class:"n-select-tabs flex flex-inline flex-wrap items-center border n-border-base rounded-lg n-bg-base"},SS={class:"px-5 py-2"},kS={"text-lg":"",flex:"","items-center":""},AS={class:"px-5 py-2"},ES={"text-lg":"",flex:"","items-center":""},TS={class:"px-5 py-2"},$S={"text-lg":"",flex:"","items-center":""},RS={class:"px-5 py-2"},PS={"text-lg":"",flex:"","items-center":""},NS={class:"px-5 py-2"},IS={"text-lg":"",flex:"","items-center":""},LS=["value","title"],OS={class:"items-center space-x-3 hidden lg:flex"},MS={class:"opacity-80 text-sm"},DS={class:"opacity-80 text-sm"},FS={href:"https://nuxtseo.com",target:"_blank",class:"flex items-end gap-1.5 font-semibold text-xl dark:text-white font-title"},BS={class:"flex-row flex p4 h-full",style:{"min-height":"calc(100vh - 64px)"}},HS={class:"mx-auto flex flex-col w-full bg-white dark:bg-black dark:bg-dark-700 bg-light-200"},jS={key:0,class:"space-y-5"},US={class:"opacity-80 text-base mb-1"},GS={class:"px-3 py-2 space-y-5"},WS={key:0},zS={class:"text-sm opacity-70"},VS={key:0,class:"flex space-x-5"},qS={class:"flex-grow"},KS={class:"flex space-x-5"},XS={class:"flex-grow flex flex-col justify-center"},JS={key:0,class:"opacity-70"},YS={key:1,class:"opacity-70"},ZS={class:"opacity-50 text-xs mt-2"},QS={class:"flex space-x-5"},ek={class:"n-bg-base/20 flex-grow"},tk={key:1,class:"space-y-5"},nk={key:2,class:"space-y-5"},rk={key:3,class:"h-full max-h-full overflow-hidden"},sk={class:"opacity-80 text-base mb-1"},ok={class:"px-3 py-2 space-y-5"},ik={key:4,class:"h-full max-h-full overflow-hidden"},ak=mt({__name:"app",async setup(e){let t,n;[t,n]=Sg(()=>Sx()),await t,n();const r=Ee(!1);async function s(){r.value=!0,Fe.value=null,await Zh(),setTimeout(()=>{r.value=!1},300)}const o=Zx("@nuxtjs/sitemap:tab","sitemaps");function i(f){return Fe.value?f==="sitemap"||f==="sitemap.xml"?`${Fe.value.nitroOrigin}sitemap.xml`:f==="index"?`${Fe.value.nitroOrigin}sitemap_index.xml`:$n(Fe.value.nitroOrigin,Fe.value.runtimeConfig?.sitemapsPathPrefix||"",`${f}-sitemap.xml`):""}function a(f){const d={};return Object.entries(f).forEach(([h,p])=>{p!==void 0&&(!Array.isArray(p)||p.length>0)&&h!=="includeAppSources"&&(d[h]=p)}),d}G_({htmlAttrs:{class:()=>ep.value||""}});const l=ke(()=>Fe.value?.runtimeConfig?.excludeAppSources||[]),u=ke(()=>(Fe.value?.globalSources||[]).filter(f=>f.sourceType==="app")),c=ke(()=>(Fe.value?.globalSources||[]).filter(f=>f.sourceType==="user"));return(f,d)=>{const h=Xa,p=Wd,g=on("VTooltip"),w=zd,y=Fw,v=Gw,m=mS,b=np,C=sp;return j(),ee("div",yS,[I("header",_S,[I("div",bS,[I("div",wS,[I("h1",vS,[z(h,{icon:"carbon:load-balancer-application",class:"text-blue-300"}),d[2]||(d[2]=ie(" Sitemap ",-1)),z(p,{class:"text-sm"},{default:se(()=>[ie(Ne(oe(Fe)?.runtimeConfig?.version),1)]),_:1})])]),I("div",CS,[I("fieldset",xS,[(j(),ee(_e,null,Bn(["sitemaps","user-sources","app-sources","debug","docs"],(k,P)=>I("label",{key:P,class:Ae(["relative n-border-base hover:n-bg-active cursor-pointer",[P?"border-l n-border-base ml--1px":"",k===oe(o)?"n-bg-active":""]])},[k==="sitemaps"?(j(),ee("div",{key:0,class:Ae([k===oe(o)?"":"op35"])},[z(g,null,{popper:se(()=>[...d[3]||(d[3]=[ie(" Sitemaps ",-1)])]),default:se(()=>[I("div",SS,[I("h2",kS,[z(h,{icon:"carbon:load-balancer-application opacity-50"}),z(p,{class:"text-sm"},{default:se(()=>[ie(Ne(Object.keys(oe(Fe)?.sitemaps||{}).length||0),1)]),_:1})])])]),_:1})],2)):Ie("",!0),k==="user-sources"?(j(),ee("div",{key:1,class:Ae([k===oe(o)?"":"op35"])},[z(g,null,{popper:se(()=>[...d[4]||(d[4]=[ie(" User Sources ",-1)])]),default:se(()=>[I("div",AS,[I("h2",ES,[z(h,{icon:"carbon:group-account opacity-50"}),z(p,{class:"text-sm"},{default:se(()=>[ie(Ne(c.value.length),1)]),_:1})])])]),_:1})],2)):Ie("",!0),k==="app-sources"?(j(),ee("div",{key:2,class:Ae([k===oe(o)?"":"op35"])},[z(g,null,{popper:se(()=>[...d[5]||(d[5]=[ie(" App Sources ",-1)])]),default:se(()=>[I("div",TS,[I("h2",$S,[z(h,{icon:"carbon:bot opacity-50"}),z(p,{class:"text-sm"},{default:se(()=>[ie(Ne(u.value.length),1)]),_:1})])])]),_:1})],2)):k==="debug"?(j(),ee("div",{key:3,class:Ae([k===oe(o)?"":"op35"])},[z(g,null,{popper:se(()=>[...d[6]||(d[6]=[ie(" Debug ",-1)])]),default:se(()=>[I("div",RS,[I("h2",PS,[z(h,{icon:"carbon:debug opacity-50"})])])]),_:1})],2)):k==="docs"?(j(),ee("div",{key:4,class:Ae([k===oe(o)?"":"op35"])},[z(g,null,{popper:se(()=>[...d[7]||(d[7]=[ie(" Documentation ",-1)])]),default:se(()=>[I("div",NS,[I("h2",IS,[z(h,{icon:"carbon:book opacity-50"})])])]),_:1})],2)):Ie("",!0),rg(I("input",{"onUpdate:modelValue":d[0]||(d[0]=F=>ve(o)?o.value=F:null),type:"radio",value:k,title:k,class:"absolute cursor-pointer pointer-events-none inset-0 op-0.1"},null,8,LS),[[Nm,oe(o)]])],2)),64))]),z(g,null,{popper:se(()=>[...d[8]||(d[8]=[ie(" Refresh ",-1)])]),default:se(()=>[I("button",{"text-lg":"",type:"button",class:"n-icon-button n-button n-transition n-disabled:n-disabled",onClick:s},[z(h,{icon:"carbon:reset",class:"group-hover:text-green-500"})])]),_:1})]),I("div",OS,[I("div",MS,[z(w,{href:"https://github.com/sponsors/harlan-zw",target:"_blank"},{default:se(()=>[z(h,{icon:"carbon:favorite",class:"mr-[2px]"}),d[9]||(d[9]=ie(" Sponsor ",-1))]),_:1})]),I("div",DS,[z(w,{href:"https://github.com/nuxt-modules/sitemap",target:"_blank"},{default:se(()=>[z(h,{icon:"logos:github-icon",class:"mr-[2px]"}),d[10]||(d[10]=ie(" Submit an issue ",-1))]),_:1})]),I("a",FS,[z(y)])])])]),I("div",BS,[I("main",HS,[!oe(Fe)?.globalSources||r.value?(j(),be(v,{key:0})):(j(),ee(_e,{key:1},[oe(o)==="sitemaps"?(j(),ee("div",jS,[d[23]||(d[23]=I("div",null,[I("h2",{class:"text-lg mb-1"}," Sitemaps "),I("p",{"text-xs":"",op60:""}," The sitemaps generated from your site. ")],-1)),(j(!0),ee(_e,null,Bn(oe(Fe).sitemaps,(k,P)=>(j(),be(C,{key:P},{text:se(()=>[I("h3",US,[ie(Ne(k.sitemapName)+" ",1),(k.sources||[]).some(F=>typeof F!="string"&&"error"in F&&!!F.error)?(j(),be(h,{key:0,icon:"carbon:warning",class:"text-red-500"})):Ie("",!0)])]),description:se(()=>[z(w,{target:"_blank",href:i(k.sitemapName)},{default:se(()=>[ie(Ne(i(k.sitemapName)),1)]),_:2},1032,["href"])]),default:se(()=>[I("div",GS,[k.sitemapName==="index"?(j(),ee("div",WS,[d[14]||(d[14]=I("div",{class:"text-sm mb-1 opacity-80"}," This is a special sitemap file that links to your other sitemaps. ",-1)),I("div",zS,[d[12]||(d[12]=ie(" You can learn about this on the ",-1)),z(w,{underline:"",target:"_blank",href:"https://developers.google.com/search/docs/crawling-indexing/sitemaps/large-sitemaps"},{default:se(()=>[...d[11]||(d[11]=[ie(" Google Search Central ",-1)])]),_:1}),d[13]||(d[13]=ie(". ",-1))])])):(j(),ee(_e,{key:1},[k.sources&&k.sources.length?(j(),ee("div",VS,[d[15]||(d[15]=I("div",{class:"w-40"},[I("div",{class:"font-bold text-sm mb-1"}," Sources "),I("div",{class:"opacity-40 text-xs max-w-60"},[ie(" Local sources associated with just this sitemap."),I("br"),ie("Example: Load in a dynamic list of URLs from an API endpoint. ")])],-1)),I("div",qS,[(j(!0),ee(_e,null,Bn(k.sources,(F,G)=>(j(),be(m,{key:G,source:F},null,8,["source"]))),128))])])):Ie("",!0),I("div",KS,[d[21]||(d[21]=I("div",{class:"w-40"},[I("div",{class:"font-bold text-sm mb-1"}," App Sources "),I("div",{class:"opacity-40 text-xs max-w-60"},[ie(" Configured with the "),I("code",null,"includeAppSources"),ie(" option. ")])],-1)),I("div",XS,[k.includeAppSources&&l.value!==!0?(j(),ee("div",JS,[z(h,{icon:"carbon:checkmark",class:"text-green-500 text-lg"}),d[16]||(d[16]=ie(" Enabled ",-1))])):(j(),ee("div",YS,[z(h,{icon:"carbon:close",class:"text-red-500 text-lg"}),d[17]||(d[17]=ie(" Disabled ",-1))])),I("div",ZS,[d[19]||(d[19]=ie(" Switch to ",-1)),z(w,{underline:"",class:"cursor-pointer",onClick:d[1]||(d[1]=F=>o.value="app-sources")},{default:se(()=>[...d[18]||(d[18]=[ie(" App sources ",-1)])]),_:1}),d[20]||(d[20]=ie(" to learn more. ",-1))])])]),I("div",QS,[d[22]||(d[22]=I("div",{class:"w-40"},[I("div",{class:"font-bold text-sm mb-1"}," Sitemap Options "),I("div",{class:"opacity-40 text-xs max-w-60"}," Extra options used to filter the URLs on the final sitemap and set defaults. ")],-1)),I("div",ek,[z(b,{class:"max-h-[350px] min-h-full overflow-y-auto",code:JSON.stringify(a(k),null,2),lang:"json"},null,8,["code"])])])],64))])]),_:2},1024))),128))])):oe(o)==="app-sources"?(j(),ee("div",tk,[d[24]||(d[24]=I("div",null,[I("h2",{class:"text-lg mb-1"}," App Sources "),I("p",{"text-xs":"",op60:""}," Automatic global sources generated from your application. ")],-1)),(j(!0),ee(_e,null,Bn(u.value,(k,P)=>(j(),be(m,{key:P,source:k},null,8,["source"]))),128))])):oe(o)==="user-sources"?(j(),ee("div",nk,[d[25]||(d[25]=I("div",null,[I("h2",{class:"text-lg mb-1"}," User Sources "),I("p",{"text-xs":"",op60:""}," Manually provided global sources provided by you. ")],-1)),(j(!0),ee(_e,null,Bn(c.value,(k,P)=>(j(),be(m,{key:P,source:k},null,8,["source"]))),128))])):oe(o)==="debug"?(j(),ee("div",rk,[z(C,null,{text:se(()=>[I("h3",sk,[z(h,{icon:"carbon:settings",class:"mr-1"}),d[26]||(d[26]=ie(" Runtime Config ",-1))])]),default:se(()=>[I("div",ok,[z(b,{code:JSON.stringify(oe(Fe)?.runtimeConfig,null,2),lang:"json"},null,8,["code"])])]),_:1})])):oe(o)==="docs"?(j(),ee("div",ik,[...d[27]||(d[27]=[I("iframe",{src:"https://nuxtseo.com/sitemap",class:"w-full h-full border-none",style:{"min-height":"calc(100vh - 100px)"}},null,-1)])])):Ie("",!0)],64))])])])}}}),lk={__name:"nuxt-error-page",props:{error:Object},setup(e){const n=e.error,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,c=s?Sl(()=>Ir(()=>import("./BcLzIRTJ.js"),__vite__mapDeps([0,1]),import.meta.url)):Sl(()=>Ir(()=>import("./CQIolwG-.js"),__vite__mapDeps([2,3]),import.meta.url));return(f,d)=>(j(),be(oe(c),Ru(La({statusCode:oe(r),statusMessage:oe(o),description:oe(i),stack:oe(a)})),null,16))}},ck={key:0},xu={__name:"nuxt-root",setup(e){const t=()=>null,n=xe(),r=n.deferHydration();if(n.isHydrating){const u=n.hooks.hookOnce("app:error",r);Tt().beforeEach(u)}const s=!1;tf(cd,ud()),n.hooks.callHookWith(u=>u.map(c=>c()),"vue:setup");const o=Ha(),i=!1,a=/bot\b|chrome-lighthouse|facebookexternalhit|google\b/i;cf((u,c,f)=>{if(n.hooks.callHook("vue:error",u,c,f).catch(d=>console.error("[nuxt] Error in `vue:error` hook",d)),a.test(navigator.userAgent))return n.hooks.callHook("app:error",u),console.error(`[nuxt] Not rendering error page for bot with user agent \`${navigator.userAgent}\`:`,u),!1;if(c_(u)&&(u.fatal||u.unhandled))return n.runWithContext(()=>a_(u)),!1});const l=!1;return(u,c)=>(j(),be(Xg,{onResolve:oe(r)},{default:se(()=>[oe(i)?(j(),ee("div",ck)):oe(o)?(j(),be(oe(lk),{key:1,error:oe(o)},null,8,["error"])):oe(l)?(j(),be(oe(t),{key:2,context:oe(l)},null,8,["context"])):oe(s)?(j(),be(Cg(oe(s)),{key:3})):(j(),be(oe(ak),{key:4}))]),_:1},8,["onResolve"]))}};let Su;{let e;Su=async function(){if(e)return e;const n=!!(window.__NUXT__?.serverRendered??document.getElementById("__NUXT_DATA__")?.dataset.ssr==="true"),r=n?Fm(xu):Uf(xu),s=qy({vueApp:r});async function o(i){await s.callHook("app:error",i),s.payload.error||=ja(i)}r.config.errorHandler=o,s.hook("app:suspense:resolve",()=>{r.config.errorHandler===o&&(r.config.errorHandler=void 0)}),!n&&Zl.id&&s.hook("app:suspense:resolve",()=>{document.getElementById(Zl.id)?.remove()});try{await Jy(s,Rw)}catch(i){o(i)}try{await s.hooks.callHook("app:created",r),await s.hooks.callHook("app:beforeMount",r),r.mount(Wy),await s.hooks.callHook("app:mounted",r),await ur()}catch(i){o(i)}return r},e=Su().catch(t=>{throw console.error("Error while mounting app:",t),t})}export{Oo as _,I as a,z as b,ee as c,ie as d,fb as e,j as o,Ne as t,G_ as u,se as w};
|