nuxt-schema-org
Version:
The quickest and easiest way to build Schema.org graphs for Nuxt.
158 lines • 372 kB
JavaScript
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CIUB4yEm.js","./error-404.BIhpXfjn.css","./H4uO9r07.js","./error-500.6WUHEHhE.css"])))=>i.map(i=>d[i]);
(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 pa(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const he={},Gn=[],vt=()=>{},ku=()=>!1,Kr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ga=e=>e.startsWith("onUpdate:"),He=Object.assign,ma=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},np=Object.prototype.hasOwnProperty,ue=(e,t)=>np.call(e,t),J=Array.isArray,Wn=e=>Xr(e)==="[object Map]",Eu=e=>Xr(e)==="[object Set]",ml=e=>Xr(e)==="[object Date]",X=e=>typeof e=="function",_e=e=>typeof e=="string",ft=e=>typeof e=="symbol",de=e=>e!==null&&typeof e=="object",ya=e=>(de(e)||X(e))&&X(e.then)&&X(e.catch),Au=Object.prototype.toString,Xr=e=>Au.call(e),rp=e=>Xr(e).slice(8,-1),Tu=e=>Xr(e)==="[object Object]",fo=e=>_e(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,zn=pa(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ho=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},sp=/-\w/g,rt=ho(e=>e.replace(sp,t=>t.slice(1).toUpperCase())),op=/\B([A-Z])/g,an=ho(e=>e.replace(op,"-$1").toLowerCase()),po=ho(e=>e.charAt(0).toUpperCase()+e.slice(1)),Go=ho(e=>e?`on${po(e)}`:""),Jt=(e,t)=>!Object.is(e,t),vs=(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})},ip=e=>{const t=parseFloat(e);return isNaN(t)?e:t},ap=e=>{const t=_e(e)?Number(e):NaN;return isNaN(t)?e:t};let yl;const go=()=>yl||(yl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function bn(e){if(J(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=_e(r)?fp(r):bn(r);if(s)for(const o in s)t[o]=s[o]}return t}else if(_e(e)||de(e))return e}const lp=/;(?![^(]*\))/g,cp=/:([^]+)/,up=/\/\*[^]*?\*\//g;function fp(e){const t={};return e.replace(up,"").split(lp).forEach(n=>{if(n){const r=n.split(cp);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Ae(e){let t="";if(_e(e))t=e;else if(J(e))for(let n=0;n<e.length;n++){const r=Ae(e[n]);r&&(t+=r+" ")}else if(de(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&&!_e(t)&&(e.class=Ae(t)),n&&(e.style=bn(n)),e}const dp="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",hp=pa(dp);function Pu(e){return!!e||e===""}function pp(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Rs(e[r],t[r]);return n}function Rs(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=ft(e),r=ft(t),n||r)return e===t;if(n=J(e),r=J(t),n||r)return n&&r?pp(e,t):!1;if(n=de(e),r=de(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||!Rs(e[i],t[i]))return!1}}return String(e)===String(t)}const Nu=e=>!!(e&&e.__v_isRef===!0),Qt=e=>_e(e)?e:e==null?"":J(e)||de(e)&&(e.toString===Au||!X(e.toString))?Nu(e)?Qt(e.value):JSON.stringify(e,Iu,2):String(e),Iu=(e,t)=>Nu(t)?Iu(e,t.value):Wn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],o)=>(n[Wo(r,o)+" =>"]=s,n),{})}:Eu(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Wo(n))}:ft(t)?Wo(t):de(t)&&!J(t)&&!Tu(t)?String(t):t,Wo=(e,t="")=>{var n;return ft(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let Me;class Lu{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Me,!t&&Me&&(this.index=(Me.scopes||(Me.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=Me;try{return Me=this,t()}finally{Me=n}}}on(){++this._on===1&&(this.prevScope=Me,Me=this)}off(){this._on>0&&--this._on===0&&(Me=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 gp(e){return new Lu(e)}function _a(){return Me}function mp(e,t=!1){Me&&Me.cleanups.push(e)}let me;const zo=new WeakSet;class Ou{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,Me&&Me.active&&Me.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,zo.has(this)&&(zo.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Du(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,_l(this),Bu(this);const t=me,n=lt;me=this,lt=!0;try{return this.fn()}finally{Fu(this),me=t,lt=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?zo.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ci(this)&&this.run()}get dirty(){return Ci(this)}}let Mu=0,vr,Cr;function Du(e,t=!1){if(e.flags|=8,t){e.next=Cr,Cr=e;return}e.next=vr,vr=e}function ba(){Mu++}function wa(){if(--Mu>0)return;if(Cr){let t=Cr;for(Cr=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;vr;){let t=vr;for(vr=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 Fu(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),va(r),yp(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function Ci(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Hu(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Hu(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ir)||(e.globalVersion=Ir,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ci(e))))return;e.flags|=2;const t=e.dep,n=me,r=lt;me=e,lt=!0;try{Bu(e);const s=e.fn(e._value);(t.version===0||Jt(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{me=n,lt=r,Fu(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 yp(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let lt=!0;const ju=[];function Dt(){ju.push(lt),lt=!1}function Bt(){const e=ju.pop();lt=e===void 0?!0:e}function _l(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=me;me=void 0;try{t()}finally{me=n}}}let Ir=0;class _p{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 Ca{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(!me||!lt||me===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==me)n=this.activeLink=new _p(me,this),me.deps?(n.prevDep=me.depsTail,me.depsTail.nextDep=n,me.depsTail=n):me.deps=me.depsTail=n,Uu(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=me.depsTail,n.nextDep=void 0,me.depsTail.nextDep=n,me.depsTail=n,me.deps===n&&(me.deps=r)}return n}trigger(t){this.version++,Ir++,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 Uu(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)Uu(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Ps=new WeakMap,wn=Symbol(""),xi=Symbol(""),Lr=Symbol("");function De(e,t,n){if(lt&&me){let r=Ps.get(e);r||Ps.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new Ca),s.map=r,s.key=n),s.track()}}function Nt(e,t,n,r,s,o){const i=Ps.get(e);if(!i){Ir++;return}const a=l=>{l&&l.trigger()};if(ba(),t==="clear")i.forEach(a);else{const l=J(e),u=l&&fo(n);if(l&&n==="length"){const c=Number(r);i.forEach((f,d)=>{(d==="length"||d===Lr||!ft(d)&&d>=c)&&a(f)})}else switch((n!==void 0||i.has(void 0))&&a(i.get(n)),u&&a(i.get(Lr)),t){case"add":l?u&&a(i.get("length")):(a(i.get(wn)),Wn(e)&&a(i.get(xi)));break;case"delete":l||(a(i.get(wn)),Wn(e)&&a(i.get(xi)));break;case"set":Wn(e)&&a(i.get(wn));break}}wa()}function bp(e,t){const n=Ps.get(e);return n&&n.get(t)}function Nn(e){const t=le(e);return t===e?t:(De(t,"iterate",Lr),Qe(e)?t:t.map(dt))}function mo(e){return De(e=le(e),"iterate",Lr),e}function zt(e,t){return St(e)?Yt(e)?Yn(dt(t)):Yn(t):dt(t)}const wp={__proto__:null,[Symbol.iterator](){return Vo(this,Symbol.iterator,e=>zt(this,e))},concat(...e){return Nn(this).concat(...e.map(t=>J(t)?Nn(t):t))},entries(){return Vo(this,"entries",e=>(e[1]=zt(this,e[1]),e))},every(e,t){return Tt(this,"every",e,t,void 0,arguments)},filter(e,t){return Tt(this,"filter",e,t,n=>n.map(r=>zt(this,r)),arguments)},find(e,t){return Tt(this,"find",e,t,n=>zt(this,n),arguments)},findIndex(e,t){return Tt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Tt(this,"findLast",e,t,n=>zt(this,n),arguments)},findLastIndex(e,t){return Tt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Tt(this,"forEach",e,t,void 0,arguments)},includes(...e){return qo(this,"includes",e)},indexOf(...e){return qo(this,"indexOf",e)},join(e){return Nn(this).join(e)},lastIndexOf(...e){return qo(this,"lastIndexOf",e)},map(e,t){return Tt(this,"map",e,t,void 0,arguments)},pop(){return gr(this,"pop")},push(...e){return gr(this,"push",e)},reduce(e,...t){return bl(this,"reduce",e,t)},reduceRight(e,...t){return bl(this,"reduceRight",e,t)},shift(){return gr(this,"shift")},some(e,t){return Tt(this,"some",e,t,void 0,arguments)},splice(...e){return gr(this,"splice",e)},toReversed(){return Nn(this).toReversed()},toSorted(e){return Nn(this).toSorted(e)},toSpliced(...e){return Nn(this).toSpliced(...e)},unshift(...e){return gr(this,"unshift",e)},values(){return Vo(this,"values",e=>zt(this,e))}};function Vo(e,t,n){const r=mo(e),s=r[t]();return r!==e&&!Qe(e)&&(s._next=s.next,s.next=()=>{const o=s._next();return o.done||(o.value=n(o.value)),o}),s}const vp=Array.prototype;function Tt(e,t,n,r,s,o){const i=mo(e),a=i!==e&&!Qe(e),l=i[t];if(l!==vp[t]){const f=l.apply(e,o);return a?dt(f):f}let u=n;i!==e&&(a?u=function(f,d){return n.call(this,zt(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=mo(e);let o=n;return s!==e&&(Qe(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,zt(e,a),l,e)}),s[t](o,...r)}function qo(e,t,n){const r=le(e);De(r,"iterate",Lr);const s=r[t](...n);return(s===-1||s===!1)&&yo(n[0])?(n[0]=le(n[0]),r[t](...n)):s}function gr(e,t,n=[]){Dt(),ba();const r=le(e)[t].apply(e,n);return wa(),Bt(),r}const Cp=pa("__proto__,__v_isRef,__isVue"),Gu=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ft));function xp(e){ft(e)||(e=String(e));const t=le(this);return De(t,"has",e),t.hasOwnProperty(e)}class Wu{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?Ip:Ku:o?qu:Vu).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=J(t);if(!s){let l;if(i&&(l=wp[n]))return l;if(n==="hasOwnProperty")return xp}const a=Reflect.get(t,n,we(t)?t:r);if((ft(n)?Gu.has(n):Cp(n))||(s||De(t,"get",n),o))return a;if(we(a)){const l=i&&fo(n)?a:a.value;return s&&de(l)?ki(l):l}return de(a)?s?ki(a):rn(a):a}}class zu extends Wu{constructor(t=!1){super(!1,t)}set(t,n,r,s){let o=t[n];const i=J(t)&&fo(n);if(!this._isShallow){const u=St(o);if(!Qe(r)&&!St(r)&&(o=le(o),r=le(r)),!i&&we(o)&&!we(r))return u||(o.value=r),!0}const a=i?Number(n)<t.length:ue(t,n),l=Reflect.set(t,n,r,we(t)?t:s);return t===le(s)&&(a?Jt(r,o)&&Nt(t,"set",n,r):Nt(t,"add",n,r)),l}deleteProperty(t,n){const r=ue(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&r&&Nt(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!ft(n)||!Gu.has(n))&&De(t,"has",n),r}ownKeys(t){return De(t,"iterate",J(t)?"length":wn),Reflect.ownKeys(t)}}class Sp extends Wu{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const kp=new zu,Ep=new Sp,Ap=new zu(!0);const Si=e=>e,rs=e=>Reflect.getPrototypeOf(e);function Tp(e,t,n){return function(...r){const s=this.__v_raw,o=le(s),i=Wn(o),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,u=s[e](...r),c=n?Si:t?Yn:dt;return!t&&De(o,"iterate",l?xi:wn),{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 ss(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function $p(e,t){const n={get(s){const o=this.__v_raw,i=le(o),a=le(s);e||(Jt(s,a)&&De(i,"get",s),De(i,"get",a));const{has:l}=rs(i),u=t?Si:e?Yn:dt;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&&De(le(s),"iterate",wn),s.size},has(s){const o=this.__v_raw,i=le(o),a=le(s);return e||(Jt(s,a)&&De(i,"has",s),De(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=le(a),u=t?Si:e?Yn:dt;return!e&&De(l,"iterate",wn),a.forEach((c,f)=>s.call(o,u(c),u(f),i))}};return He(n,e?{add:ss("add"),set:ss("set"),delete:ss("delete"),clear:ss("clear")}:{add(s){!t&&!Qe(s)&&!St(s)&&(s=le(s));const o=le(this);return rs(o).has.call(o,s)||(o.add(s),Nt(o,"add",s,s)),this},set(s,o){!t&&!Qe(o)&&!St(o)&&(o=le(o));const i=le(this),{has:a,get:l}=rs(i);let u=a.call(i,s);u||(s=le(s),u=a.call(i,s));const c=l.call(i,s);return i.set(s,o),u?Jt(o,c)&&Nt(i,"set",s,o):Nt(i,"add",s,o),this},delete(s){const o=le(this),{has:i,get:a}=rs(o);let l=i.call(o,s);l||(s=le(s),l=i.call(o,s)),a&&a.call(o,s);const u=o.delete(s);return l&&Nt(o,"delete",s,void 0),u},clear(){const s=le(this),o=s.size!==0,i=s.clear();return o&&Nt(s,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=Tp(s,e,t)}),n}function xa(e,t){const n=$p(e,t);return(r,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(ue(n,s)&&s in r?n:r,s,o)}const Rp={get:xa(!1,!1)},Pp={get:xa(!1,!0)},Np={get:xa(!0,!1)};const Vu=new WeakMap,qu=new WeakMap,Ku=new WeakMap,Ip=new WeakMap;function Lp(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Op(e){return e.__v_skip||!Object.isExtensible(e)?0:Lp(rp(e))}function rn(e){return St(e)?e:Sa(e,!1,kp,Rp,Vu)}function Fn(e){return Sa(e,!1,Ap,Pp,qu)}function ki(e){return Sa(e,!0,Ep,Np,Ku)}function Sa(e,t,n,r,s){if(!de(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=Op(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 Yt(e){return St(e)?Yt(e.__v_raw):!!(e&&e.__v_isReactive)}function St(e){return!!(e&&e.__v_isReadonly)}function Qe(e){return!!(e&&e.__v_isShallow)}function yo(e){return e?!!e.__v_raw:!1}function le(e){const t=e&&e.__v_raw;return t?le(t):e}function Mp(e){return!ue(e,"__v_skip")&&Object.isExtensible(e)&&$u(e,"__v_skip",!0),e}const dt=e=>de(e)?rn(e):e,Yn=e=>de(e)?ki(e):e;function we(e){return e?e.__v_isRef===!0:!1}function ye(e){return Xu(e,!1)}function Or(e){return Xu(e,!0)}function Xu(e,t){return we(e)?e:new Dp(e,t)}class Dp{constructor(t,n){this.dep=new Ca,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:le(t),this._value=n?t:dt(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Qe(t)||St(t);t=r?t:le(t),Jt(t,n)&&(this._rawValue=t,this._value=r?t:dt(t),this.dep.trigger())}}function te(e){return we(e)?e.value:e}function Zn(e){return X(e)?e():te(e)}const Bp={get:(e,t,n)=>t==="__v_raw"?e:te(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return we(s)&&!we(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function Ju(e){return Yt(e)?e:new Proxy(e,Bp)}class Fp{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._raw=le(t);let s=!0,o=t;if(!J(t)||!fo(String(n)))do s=!yo(o)||Qe(o);while(s&&(o=o.__v_raw));this._shallow=s}get value(){let t=this._object[this._key];return this._shallow&&(t=te(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&we(this._raw[this._key])){const n=this._object[this._key];if(we(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return bp(this._raw,this._key)}}class Hp{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 ka(e,t,n){return we(e)?e:X(e)?new Hp(e):de(e)&&arguments.length>1?jp(e,t,n):ye(e)}function jp(e,t,n){return new Fp(e,t,n)}class Up{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Ca(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ir-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&me!==this)return Du(this,!0),!0}get value(){const t=this.dep.track();return Hu(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Gp(e,t,n=!1){let r,s;return X(e)?r=e:(r=e.get,s=e.set),new Up(r,s,n)}const os={},Ns=new WeakMap;let hn;function Wp(e,t=!1,n=hn){if(n){let r=Ns.get(n);r||Ns.set(n,r=[]),r.push(e)}}function zp(e,t,n=he){const{immediate:r,deep:s,once:o,scheduler:i,augmentJob:a,call:l}=n,u=_=>s?_:Qe(_)||s===!1||s===0?It(_,1):It(_);let c,f,d,h,p=!1,g=!1;if(we(e)?(f=()=>e.value,p=Qe(e)):Yt(e)?(f=()=>u(e),p=!0):J(e)?(g=!0,p=e.some(_=>Yt(_)||Qe(_)),f=()=>e.map(_=>{if(we(_))return _.value;if(Yt(_))return u(_);if(X(_))return l?l(_,2):_()})):X(e)?t?f=l?()=>l(e,2):e:f=()=>{if(d){Dt();try{d()}finally{Bt()}}const _=hn;hn=c;try{return l?l(e,3,[h]):e(h)}finally{hn=_}}:f=vt,t&&s){const _=f,w=s===!0?1/0:s;f=()=>It(_(),w)}const C=_a(),y=()=>{c.stop(),C&&C.active&&ma(C.effects,c)};if(o&&t){const _=t;t=(...w)=>{_(...w),y()}}let v=g?new Array(e.length).fill(os):os;const m=_=>{if(!(!(c.flags&1)||!c.dirty&&!_))if(t){const w=c.run();if(s||p||(g?w.some((k,P)=>Jt(k,v[P])):Jt(w,v))){d&&d();const k=hn;hn=c;try{const P=[w,v===os?void 0:g&&v[0]===os?[]:v,h];v=w,l?l(t,3,P):t(...P)}finally{hn=k}}}else c.run()};return a&&a(m),c=new Ou(f),c.scheduler=i?()=>i(m,!1):m,h=_=>Wp(_,!1,c),d=c.onStop=()=>{const _=Ns.get(c);if(_){if(l)l(_,4);else for(const w of _)w();Ns.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 It(e,t=1/0,n){if(t<=0||!de(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,we(e))It(e.value,t,n);else if(J(e))for(let r=0;r<e.length;r++)It(e[r],t,n);else if(Eu(e)||Wn(e))e.forEach(r=>{It(r,t,n)});else if(Tu(e)){for(const r in e)It(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&It(e[r],t,n)}return e}function Jr(e,t,n,r){try{return r?e(...r):e()}catch(s){lr(s,t,n)}}function kt(e,t,n,r){if(X(e)){const s=Jr(e,t,n,r);return s&&ya(s)&&s.catch(o=>{lr(o,t,n)}),s}if(J(e)){const s=[];for(let o=0;o<e.length;o++)s.push(kt(e[o],t,n,r));return s}}function lr(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||he;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){Dt(),Jr(o,null,10,[e,l,u]),Bt();return}}Vp(e,n,s,r,i)}function Vp(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const Ue=[];let _t=-1;const Vn=[];let Vt=null,Mn=0;const Qu=Promise.resolve();let Is=null;function Qr(e){const t=Is||Qu;return e?t.then(this?e.bind(this):e):t}function qp(e){let t=_t+1,n=Ue.length;for(;t<n;){const r=t+n>>>1,s=Ue[r],o=Mr(s);o<e||o===e&&s.flags&2?t=r+1:n=r}return t}function Ea(e){if(!(e.flags&1)){const t=Mr(e),n=Ue[Ue.length-1];!n||!(e.flags&2)&&t>=Mr(n)?Ue.push(e):Ue.splice(qp(t),0,e),e.flags|=1,Yu()}}function Yu(){Is||(Is=Qu.then(Zu))}function Ls(e){J(e)?Vn.push(...e):Vt&&e.id===-1?Vt.splice(Mn+1,0,e):e.flags&1||(Vn.push(e),e.flags|=1),Yu()}function wl(e,t,n=_t+1){for(;n<Ue.length;n++){const r=Ue[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Ue.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Os(e){if(Vn.length){const t=[...new Set(Vn)].sort((n,r)=>Mr(n)-Mr(r));if(Vn.length=0,Vt){Vt.push(...t);return}for(Vt=t,Mn=0;Mn<Vt.length;Mn++){const n=Vt[Mn];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Vt=null,Mn=0}}const Mr=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Zu(e){try{for(_t=0;_t<Ue.length;_t++){const t=Ue[_t];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Jr(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;_t<Ue.length;_t++){const t=Ue[_t];t&&(t.flags&=-2)}_t=-1,Ue.length=0,Os(),Is=null,(Ue.length||Vn.length)&&Zu()}}let Ie=null,_o=null;function Ms(e){const t=Ie;return Ie=e,_o=e&&e.type.__scopeId||null,t}function Kp(e){_o=e}function Xp(){_o=null}const Jp=e=>ae;function ae(e,t=Ie,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&Fs(-1);const o=Ms(t);let i;try{i=e(...s)}finally{Ms(o),r._d&&Fs(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function Qp(e,t){if(Ie===null)return e;const n=So(Ie),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[o,i,a,l=he]=t[s];o&&(X(o)&&(o={mounted:o,updated:o}),o.deep&&It(i),r.push({dir:o,instance:n,value:i,oldValue:void 0,arg:a,modifiers:l}))}return e}function bt(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&&(Dt(),kt(l,n,8,[e.el,a,e,t]),Bt())}}const Yp=Symbol("_vte"),Zp=e=>e.__isTeleport,eg=Symbol("_leaveCb");function Aa(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Aa(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 ht(e,t){return X(e)?He({name:e.name},t,{setup:e}):e}function Ta(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const Ds=new WeakMap;function qn(e,t,n,r,s=!1){if(J(e)){e.forEach((p,g)=>qn(p,t&&(J(t)?t[g]:t),n,r,s));return}if(vn(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&qn(e,t,n,r.component.subTree);return}const o=r.shapeFlag&4?So(r.component):r.el,i=s?null:o,{i:a,r:l}=e,u=t&&t.r,c=a.refs===he?a.refs={}:a.refs,f=a.setupState,d=le(f),h=f===he?ku:p=>ue(d,p);if(u!=null&&u!==l){if(vl(t),_e(u))c[u]=null,h(u)&&(f[u]=null);else if(we(u)){u.value=null;const p=t;p.k&&(c[p.k]=null)}}if(X(l))Jr(l,a,12,[i,c]);else{const p=_e(l),g=we(l);if(p||g){const C=()=>{if(e.f){const y=p?h(l)?f[l]:c[l]:l.value;if(s)J(y)&&ma(y,o);else if(J(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=()=>{C(),Ds.delete(e)};y.id=-1,Ds.set(e,y),We(y,n)}else vl(e),C()}}}function vl(e){const t=Ds.get(e);t&&(t.flags|=8,Ds.delete(e))}let Cl=!1;const In=()=>{Cl||(console.error("Hydration completed but contains mismatches."),Cl=!0)},tg=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",ng=e=>e.namespaceURI.includes("MathML"),is=e=>{if(e.nodeType===1){if(tg(e))return"svg";if(ng(e))return"mathml"}},Hn=e=>e.nodeType===8;function rg(e){const{mt:t,p:n,o:{patchProp:r,createText:s,nextSibling:o,parentNode:i,remove:a,insert:l,createComment:u}}=e,c=(m,_)=>{if(!_.hasChildNodes()){n(null,m,_),Os(),_._vnode=m;return}f(_.firstChild,m,null,null,null),Os(),_._vnode=m},f=(m,_,w,k,P,O=!1)=>{O=O||!!_.dynamicChildren;const H=Hn(m)&&m.data==="[",N=()=>g(m,_,w,k,P,H),{type:V,ref:G,shapeFlag:Z,patchFlag:Q}=_;let oe=m.nodeType;_.el=m,Q===-2&&(O=!1,_.dynamicChildren=null);let B=null;switch(V){case Sn:oe!==3?_.children===""?(l(_.el=s(""),i(m),m),B=m):B=N():(m.data!==_.children&&(In(),m.data=_.children),B=o(m));break;case st:v(m)?(B=o(m),y(_.el=m.content.firstChild,m,w)):oe!==8||H?B=N():B=o(m);break;case Sr:if(H&&(m=o(m),oe=m.nodeType),oe===1||oe===3){B=m;const z=!_.children.length;for(let D=0;D<_.staticCount;D++)z&&(_.children+=B.nodeType===1?B.outerHTML:B.data),D===_.staticCount-1&&(_.anchor=B),B=o(B);return H?o(B):B}else N();break;case Ee:H?B=p(m,_,w,k,P,O):B=N();break;default:if(Z&1)(oe!==1||_.type.toLowerCase()!==m.tagName.toLowerCase())&&!v(m)?B=N():B=d(m,_,w,k,P,O);else if(Z&6){_.slotScopeIds=P;const z=i(m);if(H?B=C(m):Hn(m)&&m.data==="teleport start"?B=C(m,m.data,"teleport end"):B=o(m),t(_,z,null,w,k,is(z),O),vn(_)&&!_.type.__asyncResolved){let D;H?(D=U(Ee),D.anchor=B?B.previousSibling:z.lastChild):D=m.nodeType===3?be(""):U("div"),D.el=m,_.component.subTree=D}}else Z&64?oe!==8?B=N():B=_.type.hydrate(m,_,w,k,P,O,e,h):Z&128&&(B=_.type.hydrate(m,_,w,k,is(i(m)),P,O,e,f))}return G!=null&&qn(G,null,k,_),B},d=(m,_,w,k,P,O)=>{O=O||!!_.dynamicChildren;const{type:H,props:N,patchFlag:V,shapeFlag:G,dirs:Z,transition:Q}=_,oe=H==="input"||H==="option";if(oe||V!==-1){Z&&bt(_,null,w,"created");let B=!1;if(v(m)){B=Ef(null,Q)&&w&&w.vnode.props&&w.vnode.props.appear;const D=m.content.firstChild;if(B){const ie=D.getAttribute("class");ie&&(D.$cls=ie),Q.beforeEnter(D)}y(D,m,w),_.el=m=D}if(G&16&&!(N&&(N.innerHTML||N.textContent))){let D=h(m.firstChild,_,m,w,k,P,O);for(;D;){as(m,1)||In();const ie=D;D=D.nextSibling,a(ie)}}else if(G&8){let D=_.children;D[0]===`
`&&(m.tagName==="PRE"||m.tagName==="TEXTAREA")&&(D=D.slice(1));const{textContent:ie}=m;ie!==D&&ie!==D.replace(/\r\n|\r/g,`
`)&&(as(m,0)||In(),m.textContent=_.children)}if(N){if(oe||!O||V&48){const D=m.tagName.includes("-");for(const ie in N)(oe&&(ie.endsWith("value")||ie==="indeterminate")||Kr(ie)&&!zn(ie)||ie[0]==="."||D)&&r(m,ie,null,N[ie],void 0,w)}else if(N.onClick)r(m,"onClick",null,N.onClick,void 0,w);else if(V&4&&Yt(N.style))for(const D in N.style)N.style[D]}let z;(z=N&&N.onVnodeBeforeMount)&&Ze(z,w,_),Z&&bt(_,null,w,"beforeMount"),((z=N&&N.onVnodeMounted)||Z||B)&&Pf(()=>{z&&Ze(z,w,_),B&&Q.enter(m),Z&&bt(_,null,w,"mounted")},k)}return m.nextSibling},h=(m,_,w,k,P,O,H)=>{H=H||!!_.dynamicChildren;const N=_.children,V=N.length;for(let G=0;G<V;G++){const Z=H?N[G]:N[G]=Je(N[G]),Q=Z.type===Sn;m?(Q&&!H&&G+1<V&&Je(N[G+1]).type===Sn&&(l(s(m.data.slice(Z.children.length)),w,o(m)),m.data=Z.children),m=f(m,Z,k,P,O,H)):Q&&!Z.children?l(Z.el=s(""),w):(as(w,1)||In(),n(null,Z,w,null,k,P,is(w),O))}return m},p=(m,_,w,k,P,O)=>{const{slotScopeIds:H}=_;H&&(P=P?P.concat(H):H);const N=i(m),V=h(o(m),_,N,w,k,P,O);return V&&Hn(V)&&V.data==="]"?o(_.anchor=V):(In(),l(_.anchor=u("]"),N,V),V)},g=(m,_,w,k,P,O)=>{if(as(m.parentElement,1)||In(),_.el=null,O){const V=C(m);for(;;){const G=o(m);if(G&&G!==V)a(G);else break}}const H=o(m),N=i(m);return a(m),n(null,_,N,H,w,k,is(N),P),w&&(w.vnode.el=_.el,Co(w,_.el)),H},C=(m,_="[",w="]")=>{let k=0;for(;m;)if(m=o(m),m&&Hn(m)&&(m.data===_&&k++,m.data===w)){if(k===0)return o(m);k--}return m},y=(m,_,w)=>{const k=_.parentNode;k&&k.replaceChild(m,_);let P=w;for(;P;)P.vnode.el===_&&(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",sg={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function as(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(sg[t])}}go().requestIdleCallback;go().cancelIdleCallback;function og(e,t){if(Hn(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(Hn(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const vn=e=>!!e.type.__asyncLoader;function Sl(e){X(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((C,y)=>{l(g,()=>C(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 ht({name:"AsyncComponentWrapper",__asyncLoader:h,__asyncHydrate(p,g,C){let y=!1;(g.bu||(g.bu=[])).push(()=>y=!0);const v=()=>{y||C()},m=o?()=>{const _=o(v,w=>og(p,w));_&&(g.bum||(g.bum=[])).push(_)}:v;c?m():h().then(()=>!g.isUnmounted&&m())},get __asyncResolved(){return c},setup(){const p=Ne;if(Ta(p),c)return()=>ls(c,p);const g=m=>{u=null,lr(m,p,13,!r)};if(a&&p.suspense||rr)return h().then(m=>()=>ls(m,p)).catch(m=>(g(m),()=>r?U(r,{error:m}):null));const C=ye(!1),y=ye(),v=ye(!!s);return s&&setTimeout(()=>{v.value=!1},s),i!=null&&setTimeout(()=>{if(!C.value&&!y.value){const m=new Error(`Async component timed out after ${i}ms.`);g(m),y.value=m}},i),h().then(()=>{C.value=!0,p.parent&&$a(p.parent.vnode)&&p.parent.update()}).catch(m=>{g(m),y.value=m}),()=>{if(C.value&&c)return ls(c,p);if(y.value&&r)return U(r,{error:y.value});if(n&&!v.value)return ls(n,p)}}})}function ls(e,t){const{ref:n,props:r,children:s,ce:o}=t.vnode,i=U(e,r,s);return i.ref=n,i.ce=o,delete t.vnode.ce,i}const $a=e=>e.type.__isKeepAlive;function ef(e,t){nf(e,"a",t)}function tf(e,t){nf(e,"da",t)}function nf(e,t,n=Ne){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(bo(t,r,n),n){let s=n.parent;for(;s&&s.parent;)$a(s.parent.vnode)&&ig(r,t,n,s),s=s.parent}}function ig(e,t,n,r){const s=bo(t,e,r,!0);Pa(()=>{ma(r[t],s)},n)}function bo(e,t,n=Ne,r=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{Dt();const a=kn(n),l=kt(t,n,e,i);return a(),Bt(),l});return r?s.unshift(o):s.push(o),o}}const Ft=e=>(t,n=Ne)=>{(!rr||e==="sp")&&bo(e,(...r)=>t(...r),n)},rf=Ft("bm"),sf=Ft("m"),ag=Ft("bu"),lg=Ft("u"),Ra=Ft("bum"),Pa=Ft("um"),cg=Ft("sp"),ug=Ft("rtg"),fg=Ft("rtc");function of(e,t=Ne){bo("ec",e,t)}const af="components";function sn(e,t){return cf(af,e,!0,t)||e}const lf=Symbol.for("v-ndc");function dg(e){return _e(e)?cf(af,e,!1)||e:e||lf}function cf(e,t,n=!0,r=!1){const s=Ie||Ne;if(s){const o=s.type;{const a=sm(o,!1);if(a&&(a===t||a===rt(t)||a===po(rt(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[rt(t)]||e[po(rt(t))])}function Ko(e,t,n,r){let s;const o=n,i=J(e);if(i||_e(e)){const a=i&&Yt(e);let l=!1,u=!1;a&&(l=!Qe(e),u=St(e),e=mo(e)),s=new Array(e.length);for(let c=0,f=e.length;c<f;c++)s[c]=t(l?u?Yn(dt(e[c])):dt(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(de(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 Be(e,t,n={},r,s){if(Ie.ce||Ie.parent&&vn(Ie.parent)&&Ie.parent.ce){const u=Object.keys(n).length>0;return t!=="default"&&(n.name=t),K(),Re(Ee,null,[U("slot",n,r&&r())],u?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),K();const i=o&&uf(o(n)),a=n.key||i&&i.key,l=Re(Ee,{key:(a&&!ft(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 uf(e){return e.some(t=>tr(t)?!(t.type===st||t.type===Ee&&!uf(t.children)):!0)?e:null}const Ei=e=>e?Of(e)?So(e):Ei(e.parent):null,xr=He(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=>df(e),$forceUpdate:e=>e.f||(e.f=()=>{Ea(e.update)}),$nextTick:e=>e.n||(e.n=Qr.bind(e.proxy)),$watch:e=>kg.bind(e)}),Xo=(e,t)=>e!==he&&!e.__isScriptSetup&&ue(e,t),hg={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!==he&&ue(s,t))return i[t]=2,s[t];if(ue(o,t))return i[t]=3,o[t];if(n!==he&&ue(n,t))return i[t]=4,n[t];Ai&&(i[t]=0)}}const u=xr[t];let c,f;if(u)return t==="$attrs"&&De(e.attrs,"get",""),u(e);if((c=a.__cssModules)&&(c=c[t]))return c;if(n!==he&&ue(n,t))return i[t]=4,n[t];if(f=l.config.globalProperties,ue(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!==he&&ue(r,t)?(r[t]=n,!0):ue(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!==he&&a[0]!=="$"&&ue(e,a)||Xo(t,a)||ue(o,a)||ue(r,a)||ue(xr,a)||ue(s.config.globalProperties,a)||(l=i.__cssModules)&&l[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ue(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function El(e){return J(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function pg(e){const t=An();let n=e();return Ni(),ya(n)&&(n=n.catch(r=>{throw kn(t),r})),[n,()=>kn(t)]}let Ai=!0;function gg(e){const t=df(e),n=e.proxy,r=e.ctx;Ai=!1,t.beforeCreate&&Al(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:C,beforeDestroy:y,beforeUnmount:v,destroyed:m,unmounted:_,render:w,renderTracked:k,renderTriggered:P,errorCaptured:O,serverPrefetch:H,expose:N,inheritAttrs:V,components:G,directives:Z,filters:Q}=t;if(u&&mg(u,r,null),i)for(const z in i){const D=i[z];X(D)&&(r[z]=D.bind(n))}if(s){const z=s.call(n,n);de(z)&&(e.data=rn(z))}if(Ai=!0,o)for(const z in o){const D=o[z],ie=X(D)?D.bind(n,n):X(D.get)?D.get.bind(n,n):vt,Rn=!X(D)&&X(D.set)?D.set.bind(n):vt,ln=Se({get:ie,set:Rn});Object.defineProperty(r,z,{enumerable:!0,configurable:!0,get:()=>ln.value,set:gt=>ln.value=gt})}if(a)for(const z in a)ff(a[z],r,n,z);if(l){const z=X(l)?l.call(n):l;Reflect.ownKeys(z).forEach(D=>{pf(D,z[D])})}c&&Al(c,e,"c");function B(z,D){J(D)?D.forEach(ie=>z(ie.bind(n))):D&&z(D.bind(n))}if(B(rf,f),B(sf,d),B(ag,h),B(lg,p),B(ef,g),B(tf,C),B(of,O),B(fg,k),B(ug,P),B(Ra,v),B(Pa,_),B(cg,H),J(N))if(N.length){const z=e.exposed||(e.exposed={});N.forEach(D=>{Object.defineProperty(z,D,{get:()=>n[D],set:ie=>n[D]=ie,enumerable:!0})})}else e.exposed||(e.exposed={});w&&e.render===vt&&(e.render=w),V!=null&&(e.inheritAttrs=V),G&&(e.components=G),Z&&(e.directives=Z),H&&Ta(e)}function mg(e,t,n=vt){J(e)&&(e=Ti(e));for(const r in e){const s=e[r];let o;de(s)?"default"in s?o=Zt(s.from||r,s.default,!0):o=Zt(s.from||r):o=Zt(s),we(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[r]=o}}function Al(e,t,n){kt(J(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function ff(e,t,n,r){let s=r.includes(".")?gf(n,r):()=>n[r];if(_e(e)){const o=t[e];X(o)&&xn(s,o)}else if(X(e))xn(s,e.bind(n));else if(de(e))if(J(e))e.forEach(o=>ff(o,t,n,r));else{const o=X(e.handler)?e.handler.bind(n):t[e.handler];X(o)&&xn(s,o,e)}}function df(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=>Bs(l,u,i,!0)),Bs(l,t,i)),de(t)&&o.set(t,l),l}function Bs(e,t,n,r=!1){const{mixins:s,extends:o}=t;o&&Bs(e,o,n,!0),s&&s.forEach(i=>Bs(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const a=yg[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const yg={data:Tl,props:$l,emits:$l,methods:br,computed:br,beforeCreate:je,created:je,beforeMount:je,mounted:je,beforeUpdate:je,updated:je,beforeDestroy:je,beforeUnmount:je,destroyed:je,unmounted:je,activated:je,deactivated:je,errorCaptured:je,serverPrefetch:je,components:br,directives:br,watch:bg,provide:Tl,inject:_g};function Tl(e,t){return t?e?function(){return He(X(e)?e.call(this,this):e,X(t)?t.call(this,this):t)}:t:e}function _g(e,t){return br(Ti(e),Ti(t))}function Ti(e){if(J(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function je(e,t){return e?[...new Set([].concat(e,t))]:t}function br(e,t){return e?He(Object.create(null),e,t):t}function $l(e,t){return e?J(e)&&J(t)?[...new Set([...e,...t])]:He(Object.create(null),El(e),El(t??{})):t}function bg(e,t){if(!e)return t;if(!t)return e;const n=He(Object.create(null),e);for(const r in t)n[r]=je(e[r],t[r]);return n}function hf(){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 wg=0;function vg(e,t){return function(r,s=null){X(r)||(r=He({},r)),s!=null&&!de(s)&&(s=null);const o=hf(),i=new WeakSet,a=[];let l=!1;const u=o.app={_uid:wg++,_component:r,_props:s,_container:null,_context:o,_instance:null,version:im,get config(){return o.config},set config(c){},use(c,...f){return i.has(c)||(c&&X(c.install)?(i.add(c),c.install(u,...f)):X(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||U(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,So(h.component)}},onUnmount(c){a.push(c)},unmount(){l&&(kt(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=Cn;Cn=u;try{return c()}finally{Cn=f}}};return u}}let Cn=null;function pf(e,t){if(Ne){let n=Ne.provides;const r=Ne.parent&&Ne.parent.provides;r===n&&(n=Ne.provides=Object.create(r)),n[e]=t}}function Zt(e,t,n=!1){const r=An();if(r||Cn){let s=Cn?Cn._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&&X(t)?t.call(r&&r.proxy):t}}function wo(){return!!(An()||Cn)}const Cg=Symbol.for("v-scx"),xg=()=>Zt(Cg);function Sg(e,t){return Na(e,null,t)}function xn(e,t,n){return Na(e,t,n)}function Na(e,t,n=he){const{immediate:r,deep:s,flush:o,once:i}=n,a=He({},n),l=t&&r||!t&&o!=="post";let u;if(rr){if(o==="sync"){const h=xg();u=h.__watcherHandles||(h.__watcherHandles=[])}else if(!l){const h=()=>{};return h.stop=vt,h.resume=vt,h.pause=vt,h}}const c=Ne;a.call=(h,p,g)=>kt(h,c,p,g);let f=!1;o==="post"?a.scheduler=h=>{We(h,c&&c.suspense)}:o!=="sync"&&(f=!0,a.scheduler=(h,p)=>{p?h():Ea(h)}),a.augmentJob=h=>{t&&(h.flags|=4),f&&(h.flags|=2,c&&(h.id=c.uid,h.i=c))};const d=zp(e,t,a);return rr&&(u?u.push(d):l&&d()),d}function kg(e,t,n){const r=this.proxy,s=_e(e)?e.includes(".")?gf(r,e):()=>r[e]:e.bind(r,r);let o;X(t)?o=t:(o=t.handler,n=t);const i=kn(this),a=Na(s,o.bind(r),n);return i(),a}function gf(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 Eg=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${rt(t)}Modifiers`]||e[`${an(t)}Modifiers`];function Ag(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||he;let s=n;const o=t.startsWith("update:"),i=o&&Eg(r,t.slice(7));i&&(i.trim&&(s=n.map(c=>_e(c)?c.trim():c)),i.number&&(s=n.map(ip)));let a,l=r[a=Go(t)]||r[a=Go(rt(t))];!l&&o&&(l=r[a=Go(an(t))]),l&&kt(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,kt(u,e,6,s)}}const Tg=new WeakMap;function mf(e,t,n=!1){const r=n?Tg:t.emitsCache,s=r.get(e);if(s!==void 0)return s;const o=e.emits;let i={},a=!1;if(!X(e)){const l=u=>{const c=mf(u,t,!0);c&&(a=!0,He(i,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!a?(de(e)&&r.set(e,null),null):(J(o)?o.forEach(l=>i[l]=null):He(i,o),de(e)&&r.set(e,i),i)}function vo(e,t){return!e||!Kr(t)?!1:(t=t.slice(2).replace(/Once$/,""),ue(e,t[0].toLowerCase()+t.slice(1))||ue(e,an(t))||ue(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,C=Ms(e);let y,v;try{if(n.shapeFlag&4){const _=s||r,w=_;y=Je(u.call(w,_,c,f,h,d,p)),v=a}else{const _=t;y=Je(_.length>1?_(f,{attrs:a,slots:i,emit:l}):_(f,null)),v=t.props?a:Rg(a)}}catch(_){kr.length=0,lr(_,e,1),y=U(st)}let m=y;if(v&&g!==!1){const _=Object.keys(v),{shapeFlag:w}=m;_.length&&w&7&&(o&&_.some(ga)&&(v=Pg(v,o)),m=nr(m,v,!1,!0))}return n.dirs&&(m=nr(m,null,!1,!0),m.dirs=m.dirs?m.dirs.concat(n.dirs):n.dirs),n.transition&&Aa(m,n.transition),y=m,Ms(C),y}function $g(e,t=!0){let n;for(let r=0;r<e.length;r++){const s=e[r];if(tr(s)){if(s.type!==st||s.children==="v-if"){if(n)return;n=s}}else return}return n}const Rg=e=>{let t;for(const n in e)(n==="class"||n==="style"||Kr(n))&&((t||(t={}))[n]=e[n]);return t},Pg=(e,t)=>{const n={};for(const r in e)(!ga(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Ng(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]&&!vo(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]&&!vo(n,o))return!0}return!1}function Co({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 yf={},_f=()=>Object.create(yf),bf=e=>Object.getPrototypeOf(e)===yf;function Ig(e,t,n,r=!1){const s={},o=_f();e.propsDefaults=Object.create(null),wf(e,t,s,o);for(const i in e.propsOptions[0])i in s||(s[i]=void 0);n?e.props=r?s:Fn(s):e.type.props?e.props=s:e.props=o,e.attrs=o}function Lg(e,t,n,r){const{props:s,attrs:o,vnode:{patchFlag:i}}=e,a=le(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(vo(e.emitsOptions,d))continue;const h=t[d];if(l)if(ue(o,d))h!==o[d]&&(o[d]=h,u=!0);else{const p=rt(d);s[p]=$i(l,a,p,h,e,!1)}else h!==o[d]&&(o[d]=h,u=!0)}}}else{wf(e,t,s,o)&&(u=!0);let c;for(const f in a)(!t||!ue(t,f)&&((c=an(f))===f||!ue(t,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(s[f]=$i(l,a,f,void 0,e,!0)):delete s[f]);if(o!==a)for(const f in o)(!t||!ue(t,f))&&(delete o[f],u=!0)}u&&Nt(e.attrs,"set","")}function wf(e,t,n,r){const[s,o]=e.propsOptions;let i=!1,a;if(t)for(let l in t){if(zn(l))continue;const u=t[l];let c;s&&ue(s,c=rt(l))?!o||!o.includes(c)?n[c]=u:(a||(a={}))[c]=u:vo(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,i=!0)}if(o){const l=le(n),u=a||he;for(let c=0;c<o.length;c++){const f=o[c];n[f]=$i(s,l,f,u[f],e,!ue(u,f))}}return i}function $i(e,t,n,r,s,o){const i=e[n];if(i!=null){const a=ue(i,"default");if(a&&r===void 0){const l=i.default;if(i.type!==Function&&!i.skipFactory&&X(l)){const{propsDefaults:u}=s;if(n in u)r=u[n];else{const c=kn(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===an(n))&&(r=!0))}return r}const Og=new WeakMap;function vf(e,t,n=!1){const r=n?Og:t.propsCache,s=r.get(e);if(s)return s;const o=e.props,i={},a=[];let l=!1;if(!X(e)){const c=f=>{l=!0;const[d,h]=vf(f,t,!0);He(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 de(e)&&r.set(e,Gn),Gn;if(J(o))for(let c=0;c<o.length;c++){const f=rt(o[c]);Pl(f)&&(i[f]=he)}else if(o)for(const c in o){const f=rt(c);if(Pl(f)){const d=o[c],h=i[f]=J(d)||X(d)?{type:d}:He({},d),p=h.type;let g=!1,C=!0;if(J(p))for(let y=0;y<p.length;++y){const v=p[y],m=X(v)&&v.name;if(m==="Boolean"){g=!0;break}else m==="String"&&(C=!1)}else g=X(p)&&p.name==="Boolean";h[0]=g,h[1]=C,(g||ue(h,"default"))&&a.push(f)}}const u=[i,a];return de(e)&&r.set(e,u),u}function Pl(e){return e[0]!=="$"&&!zn(e)}const Ia=e=>e==="_"||e==="_ctx"||e==="$stable",La=e=>J(e)?e.map(Je):[Je(e)],Mg=(e,t,n)=>{if(t._n)return t;const r=ae((...s)=>La(t(...s)),n);return r._c=!1,r},Cf=(e,t,n)=>{const r=e._ctx;for(const s in e){if(Ia(s))continue;const o=e[s];if(X(o))t[s]=Mg(s,o,r);else if(o!=null){const i=La(o);t[s]=()=>i}}},xf=(e,t)=>{const n=La(t);e.slots.default=()=>n},Sf=(e,t,n)=>{for(const r in t)(n||!Ia(r))&&(e[r]=t[r])},Dg=(e,t,n)=>{const r=e.slots=_f();if(e.vnode.shapeFlag&32){const s=t._;s?(Sf(r,t,n),n&&$u(r,"_",s,!0)):Cf(t,r)}else t&&xf(e,t)},Bg=(e,t,n)=>{const{vnode:r,slots:s}=e;let o=!0,i=he;if(r.shapeFlag&32){const a=t._;a?n&&a===1?o=!1:Sf(s,t,n):(o=!t.$stable,Cf(t,s)),i=t}else t&&(xf(e,t),i={default:1});if(o)for(const a in s)!Ia(a)&&i[a]==null&&delete s[a]},We=Pf;function Fg(e){return kf(e)}function Hg(e){return kf(e,rg)}function kf(e,t){const n=go();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=vt,insertStaticContent:p}=e,g=(b,x,S,$=null,E=null,A=null,M=void 0,L=null,I=!!x.dynamicChildren)=>{if(b===x)return;b&&!Xt(b,x)&&($=ns(b),gt(b,E,A,!0),b=null),x.patchFlag===-2&&(I=!1,x.dynamicChildren=null);const{type:T,ref:q,shapeFlag:F}=x;switch(T){case Sn:C(b,x,S,$);break;case st:y(b,x,S,$);break;case Sr:b==null&&v(x,S,$,M);break;case Ee:G(b,x,S,$,E,A,M,L,I);break;default:F&1?w(b,x,S,$,E,A,M,L,I):F&6?Z(b,x,S,$,E,A,M,L,I):(F&64||F&128)&&T.process(b,x,S,$,E,A,M,L,I,Pn)}q!=null&&E?qn(q,b&&b.ref,A,x||b,!x):q==null&&b&&b.ref!=null&&qn(b.ref,null,A,b,!0)},C=(b,x,S,$)=>{if(b==null)r(x.el=a(x.children),S,$);else{const E=x.el=b.el;x.children!==b.children&&u(E,x.children)}},y=(b,x,S,$)=>{b==null?r(x.el=l(x.children||""),S,$):x.el=b.el},v=(b,x,S,$)=>{[b.el,b.anchor]=p(b.children,x,S,$,b.el,b.anchor)},m=({el:b,anchor:x},S,$)=>{let E;for(;b&&b!==x;)E=d(b),r(b,S,$),b=E;r(x,S,$)},_=({el:b,anchor:x})=>{let S;for(;b&&b!==x;)S=d(b),s(b),b=S;s(x)},w=(b,x,S,$,E,A,M,L,I)=>{if(x.type==="svg"?M="svg":x.type==="math"&&(M="mathml"),b==null)k(x,S,$,E,A,M,L,I);else{const T=b.el&&b.el._isVueCE?b.el:null;try{T&&T._beginPatch(),H(b,x,E,A,M,L,I)}finally{T&&T._endPatch()}}},k=(b,x,S,$,E,A,M,L)=>{let I,T;const{props:q,shapeFlag:F,transition:W,dirs:Y}=b;if(I=b.el=i(b.type,A,q&&q.is,q),F&8?c(I,b.children):F&16&&O(b.children,I,null,$,E,Qo(b,A),M,L),Y&&bt(b,null,$,"created"),P(I,b,b.scopeId,M,$),q){for(const pe in q)pe!=="value"&&!zn(pe)&&o(I,pe,null,q[pe],A,$);"value"in q&&o(I,"value",null,q.value,A),(T=q.onVnodeBeforeMount)&&Ze(T,$,b)}Y&&bt(b,null,$,"beforeMount");const re=Ef(E,W);re&&W.beforeEnter(I),r(I,x,S),((T=q&&q.onVnodeMounted)||re||Y)&&We(()=>{T&&Ze(T,$,b),re&&W.enter(I),Y&&bt(b,null,$,"mounted")},E)},P=(b,x,S,$,E)=>{if(S&&h(b,S),$)for(let A=0;A<$.length;A++)h(b,$[A]);if(E){let A=E.subTree;if(x===A||$f(A.type)&&(A.ssContent===x||A.ssFallback===x)){const M=E.vnode;P(b,M,M.scopeId,M.slotScopeIds,E.parent)}}},O=(b,x,S,$,E,A,M,L,I=0)=>{for(let T=I;T<b.length;T++){const q=b[T]=L?qt(b[T]):Je(b[T]);g(null,q,x,S,$,E,A,M,L)}},H=(b,x,S,$,E,A,M)=>{const L=x.el=b.el;let{patchFlag:I,dynamicChildren:T,dirs:q}=x;I|=b.patchFlag&16;const F=b.props||he,W=x.props||he;let Y;if(S&&cn(S,!1),(Y=W.onVnodeBeforeUpdate)&&Ze(Y,S,x,b),q&&bt(x,b,S,"beforeUpdate"),S&&cn(S,!0),(F.innerHTML&&W.innerHTML==null||F.textContent&&W.textContent==null)&&c(L,""),T?N(b.dynamicChildren,T,L,S,$,Qo(x,E),A):M||D(b,x,L,null,S,$,Qo(x,E),A,!1),I>0){if(I&16)V(L,F,W,S,E);else if(I&2&&F.class!==W.class&&o(L,"class",null,W.class,E),I&4&&o(L,"style",F.style,W.style,E),I&8){const re=x.dynamicProps;for(let pe=0;pe<re.length;pe++){const fe=re[pe],Ge=F[fe],Le=W[fe];(Le!==Ge||fe==="value")&&o(L,fe,Ge,Le,E,S)}}I&1&&b.children!==x.children&&c(L,x.children)}else!M&&T==null&&V(L,F,W,S,E);((Y=W.onVnodeUpdated)||q)&&We(()=>{Y&&Ze(Y,S,x,b),q&&bt(x,b,S,"updated")},$)},N=(b,x,S,$,E,A,M)=>{for(let L=0;L<x.length;L++){const I=b[L],T=x[L],q=I.el&&(I.type===Ee||!Xt(I,T)||I.shapeFlag&198)?f(I.el):S;g(I,T,q,null,$,E,A,M,!0)}},V=(b,x,S,$,E)=>{if(x!==S){if(x!==he)for(const A in x)!zn(A)&&!(A in S)&&o(b,A,x[A],null,E,$);for(const A in S){if(zn(A))continue;const M=S[A],L=x[A];M!==L&&A!=="value"&&o(b,A,L,M,E,$)}"value"in S&&o(b,"value",x.value,S.value,E)}},G=(b,x,S,$,E,A,M,L,I)=>{const T=x.el=b?b.el:a(""),q=x.anchor=b?b.anchor:a("");let{patchFlag:F,dynamicChildren:W,slotScopeIds:Y}=x;Y&&(L=L?L.concat(Y):Y),b==null?(r(T,S,$),r(q,S,$),O(x.children||[],S,q,E,A,M,L,I)):F>0&&F&64&&W&&b.dynamicChildren?(N(b.dynamicChildren,W,S,E,A,M,L),(x.key!=null||E&&x===E.subTree)&&Af(b,x,!0)):D(b,x,S,q,E,A,M,L,I)},Z=(b,x,S,$,E,A,M,L,I)=>{x.slotScopeIds=L,b==null?x.shapeFlag&512?E.ctx.activate(x,S,$,M,I):Q(x,S,$,E,A,M,I):oe(b,x,I)},Q=(b,x,S,$,E,A,M)=>{const L=b.component=Zg(b,$,E);if($a(b)&&(L.ctx.renderer=Pn),em(L,!1,M),L.asyncDep){if(E&&E.registerDep(L,B,M),!b.el){const I=L.subTree=U(st);y(null,I,x,S),b.placeholder=I.el}}else B(L,b,x,S,E,A,M)},oe=(b,x,S)=>{const $=x.component=b.component;if(Ng(b,x,S))if($.asyncDep&&!$.asyncResolved){z($,x,S);return}else $.next=x,$.update();else x.el=b.el,$.vnode=x},B=(b,x,S,$,E,A,M)=>{const L=()=>{if(b.isMounted){let{next:F,bu:W,u:Y,parent:re,vnode:pe}=b;{const qe=Tf(b);if(qe){F&&(F.el=pe.el,z(b,F,M)),qe.asyncDep.then(()=>{b.isUnmounted||L()});return}}let fe=F,Ge;cn(b,!1),F?(F.el=pe.el,z(b,F,M)):F=pe,W&&vs(W),(Ge=F.props&&F.props.onVnodeBeforeUpdate)&&Ze(Ge,re,F,pe),cn(b,!0);const Le=Jo(b),ot=b.subTree;b.subTree=Le,g(ot,Le,f(ot.el),ns(ot),b,E,A),F.el=Le.el,fe===null&&Co(b,Le.el),Y&&We(Y,E),(Ge=F.props&&F.props.onVnodeUpdated)&&We(()=>Ze(Ge,re,F,pe),E)}else{let F;const{el:W,props:Y}=x,{bm:re,m:pe,parent:fe,root:Ge,type:Le}=b,ot=vn(x);if(cn(b,!1),re&&vs(re),!ot&&(F=Y&&Y.onVnodeBeforeMount)&&Ze(F,fe,x),cn(b,!0),W&&Uo){const qe=()=>{b.subTree=Jo(b),Uo(W,b.subTree,b,E,null)};ot&&Le.__asyncHydrate?Le.__asyncHydrate(W,b,qe):qe()}else{Ge.ce&&Ge.ce._def.shadowRoot!==!1&&Ge.ce._injectChildStyle(Le);const qe=b.subTree=Jo(b);g(null,qe,S,$,b,E,A),x.el=qe.el}if(pe&&We(pe,E),!ot&&(F=Y&&Y.onVnodeMounted)){const qe=x;We(()=>Ze(F,fe,qe),E)}(x.shapeFlag&256||fe&&vn(fe.vnode)&&fe.vnode.shapeFlag&256)&&b.a&&We(b.a,E),b.isMounted=!0,x=S=$=null}};b.scope.on();const I=b.effect=new Ou(L);b.scope.off();const T=b.update=I.run.bind(I),q=b.job=I.runIfDirty.bind(I);q.i=b,q.id=b.uid,I.scheduler=()=>Ea(q),cn(b,!0),T()},z=(b,x,S)=>{x.component=b;const $=b.vnode.props;b.vnode=x,b.next=null,Lg(b,x.props,$,S),Bg(b,x.children,S),Dt(),wl(b),Bt()},D=(b,x,S,$,E,A,M,L,I=!1)=>{const T=b&&b.children,q=b?b.shapeFlag:0,F=x.children,{patchFlag:W,shapeFlag:Y}=x;if(W>0){if(W&128){Rn(T,F,S,$,E,A,M,L,I);return}else if(W&256){ie(T,F,S,$,E,A,M,L,I);return}}Y&8?(q&16&&hr(T,E,A),F!==T&&c(S,F)):q&16?Y&16?Rn(T,F,S,$,E,A,M,L,I):hr(T,E,A,!0):(q&8&&c(S,""),Y&16&&O(F,S,$,E,A,M,L,I))},ie=(b,x,S,$,E,A,M,L,I)=>{b=b||Gn,x=x||Gn;const T=b.length,q=x.length,F=Math.min(T,q);let W;for(W=0;W<F;W++){const Y=x[W]=I?qt(x[W]):Je(x[W]);g(b[W],Y,S,null,E,A,M,L,I)}T>q?hr(b,E,A,!0,!1,F):O(x,S,$,E,A,M,L,I,F)},Rn=(b,x,S,$,E,A,M,L,I)=>{let T=0;const q=x.length;let F=b.length-1,W=q-1;for(;T<=F&&T<=W;){const Y=b[T],re=x[T]=I?qt(x[T]):Je(x[T]);if(Xt(Y,re))g(Y,re,S,null,E,A,M,L,I);else break;T++}for(;T<=F&&T<=W;){const Y=b[F],re=x[W]=I?qt(x[W]):Je(x[W]);if(Xt(Y,re))g(Y,re,S,null,E,A,M,L,I);else break;F--,W--}if(T>F){if(T<=W){const Y=W+1,re=Y<q?x[Y].el:$;for(;T<=W;)g(null,x[T]=I?qt(x[T]):Je(x[T]),S,re,E,A,M,L,I),T++}}else if(T>W)for(;T<=F;)gt(b[T],E,A,!0),T++;else{const Y=T,re=T,pe=new Map;for(T=re;T<=W;T++){const Ke=x[T]=I?qt(x[T]):Je(x[T]);Ke.key!=null&&pe.set(Ke.key,T)}let fe,Ge=0;const Le=W-re+1;let ot=!1,qe=0;const pr=new Array(Le);for(T=0;T<Le;T++)pr[T]=0;for(T=Y;T<=F;T++){const Ke=b[T];if(Ge>=Le){gt(Ke,E,A,!0);continue}let mt;if(Ke.key!=null)mt=pe.get(Ke.key);else for(fe=re;fe<=W;fe++)if(pr[fe-re]===0&&Xt(Ke,x[fe])){mt=fe;break}mt===void 0?gt(Ke,E,A,!0):(pr[mt-re]=T+1,mt>=qe?qe=mt:ot=!0,g(Ke,x[mt],S,null,E,A,M,L,I),Ge++)}const hl=ot?jg(pr):Gn;for(fe=hl.length-1,T=Le-1;T>=0;T--){const Ke=re+T,mt=x[Ke],pl=x[Ke+1],gl=Ke+1<q?pl.el||pl.placeholder:$;pr[T]===0?g(null,mt,S,gl,E,A,M,L,I):ot&&(fe<0||T!==hl[fe]?ln(mt,S,gl,2):fe--)}}},ln=(b,x,S,$,E=null)=>{const{el:A,type:M,transition:L,children:I,shapeFlag:T}=b;if(T&6){ln(b.component.subTree,x,S,$);return}if(T&128){b.suspense.move(x,S,$);return}if(T&64){M.move(b,x,S,Pn);return}if(M===Ee){r(A,x,S);for(let F=0;F<I.length;F++)ln(I[F],x,S,$);r(b.anchor,x,S);return}if(M===Sr){m(b,x,S);return}if($!==2&&T&1&&L)if($===0)L.beforeEnter(A),r(A,x,S),We(()=>L.enter(A),E);else{const{leave:F,delayLeave:W,afterLeave:Y}=L,re=()=>{b.ctx.isUnmounted?s(A):r(A,x,S)},pe=()=>{A._isLeaving&&A[eg](!0),F(A,()=>{re(),Y&&Y()})};W?W(A,re,pe):pe()}else r(A,x,S)},gt=(b,x,S,$=!1,E=!1)=>{const{type:A,props:M,ref:L,children:I,dynamicChildren:T,shapeFlag:q,patchFlag:F,dirs:W,cacheIndex:Y}=b;if(F===-2&&(E=!1),L!=null&&(Dt(),qn(L,null,S,b,!0),Bt()),Y!=null&&(x.renderCache[Y]=void 0),q&256){x.ctx.deactivate(b);return}const re=q&1&&W,pe=!vn(b);let fe;if(pe&&(fe=M&&M.onVnodeBeforeUnmount)&&Ze(fe,x,b),q&6)tp(b.component,S,$);else{if(q&128){b.suspense.unmount(S,$);return}re&&bt(b,null,x,"beforeUnmount"),q&64?b.type.remove(b,x,S,Pn,$):T&&!T.hasOnce&&(A!==Ee||F>0&&F&64)?hr(T,x,S,!1,!0):(A===Ee&&F&384||!E&&q&16)&&hr(I,x,S),$&&fl(b)}(pe&&(fe=M&&M.onVnodeUnmounted)||re)&&We(()=>{fe&&Ze(fe,x,b),re&&bt(b,null,x,"unmounted")},S)},fl=b=>{const{type:x,el:S,anchor:$,transition:E}=b;if(x===Ee){ep(S,$);return}if(x===Sr){_(b);return}const A=()=>{s(S),E&&!E.persisted&&E.afterLeave&&E.afterLeave()};if(b.shapeFlag&1&&E&&!E.persisted){const{leave:M,delayLeave:L}=E,I=()=>M(S,A);L?L(b.el,A,I):I()}else A()},ep=(b,x)=>{let S;for(;b!==x;)S=d(b),s(b),b=S;s(x)},tp=(b,x,S)=>{const{bum:$,scope:E,job:A,subTree:M,um:L,m:I,a:T}=b;Nl(I),Nl(T),$&&vs($),E.stop(),A&&(A.flags|=8,gt(M,b,x,S)),L&&We(L,x),We(()=>{b.isUnmounted=!0},x)},hr=(b,x,S,$=!1,E=!1,A=0)=>{for(let M=A;M<b.length;M++)gt(b[M],x,S,$,E)},ns=b=>{if(b.shapeFlag&6)return ns(b.component.subTree);if(b.shapeFlag&128)return b.suspense.next();const x=d(b.anchor||b.el),S=x&&x[Yp];return S?d(S):x};let Ho=!1;const dl=(b,x,S)=>{b==null?x._vnode&>(x._vnode,null,null,!0):g(x._vnode||null,b,x,null,null,null,S),x._vnode=b,Ho||(Ho=!0,wl(),Os(),Ho=!1)},Pn={p:g,um:gt,m:ln,r:fl,mt:Q,mc:O,pc:D,pbc:N,n:ns,o:e};let jo,Uo;return t&&([jo,Uo]=t(Pn)),{render:dl,hydrate:jo,createApp:vg(dl,jo)}}function Qo({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 cn({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 Af(e,t,n=!1){const r=e.children,s=t.children;if(J(r)&&J(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]=qt(s[o]),a.el=i.el),!n&&a.patchFlag!==-2&&Af(i,a)),a.type===Sn&&a.patchFlag!==-1&&(a.el=i.el),a.type===st&&!a.el&&(a.el=i.el)}}function jg(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 Tf(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Tf(t)}function Nl(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const $f=e=>e.__isSuspense;let Ri=0;const Ug={name:"Suspense",__isSuspense:!0,process(e,t,n,r,s,o,i,a,l,u){if(e==null)Wg(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}zg(e,t,n,r,s,i,a,l,u)}},hydrate:Vg,normalize:qg},Gg=Ug;function Dr(e,t){const n=e.props&&e.props[t];X(n)&&n()}function Wg(e,t,n,r,s,o,i,a,l){const{p:u,o:{createElement:c}}=l,f=c("div"),d=e.suspense=Rf(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?(Dr(e,"onPending"),Dr(e,"onFallback"),u(null,e.ssFallback,t,n,r,null,o,i),Kn(d,e.ssFallback)):d.resolve(!1,!0)}function zg(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:C,isHydrating:y}=f;if(g)f.pendingBranch=d,Xt(g,d)?(l(g,d,f.hiddenContainer,null,s,f,o,i,a),f.deps<=0?f.resolve():C&&(y||(l(p,h,n,r,s,null,o,i,a),Kn(f,h)))):(f.pendingId=Ri++,y?(f.isHydrating=!1,f.activeBranch=g):u(g,s,f),f.deps=0,f.effects.length=0,f.hiddenContainer=c("div"),C?(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),Kn(f,h))):p&&Xt(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&&Xt(p,d))l(p,d,n,r,s,f,o,i,a),Kn(f,d);else if(Dr(t,"onPending"),f.pendingBranch=d,d.shapeFlag&512?f.pendingId=d.component.suspenseId:f.pendingId=Ri++,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 Rf(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:C}}=u;let y;const v=Kg(e);v&&t&&t.pendingBranch&&(y=t.pendingId,t.deps++);const m=e.props?ap(e.props.timeout):void 0,_=o,w={vnode:e,parent:t,parentComponent:n,namespace:i,container:r,hiddenContainer:s,deps:0,pendingId:Ri++,timeout:typeof m=="number"?m:-1,activeBranch:null,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve(k=!1,P=!1){const{vnode:O,activeBranch:H,pendingBranch:N,pendingId:V,effects:G,parentComponent:Z,container:Q,isInFallback:oe}=w;let B=!1;w.isHydrating?w.isHydrating=!1:k||(B=H&&N.transition&&N.transition.mode==="out-in",B&&(H.transition.afterLeave=()=>{V===w.pendingId&&(d(N,Q,o===_?p(H):o,0),Ls(G),oe&&O.ssFallback&&(O.ssFallback.el=null))}),H&&(g(H.el)===Q&&(o=p(H)),h(H,Z,w,!0),!B&&oe&&O.ssFallback&&We(()=>O.ssFallback.el=null,w)),B||d(N,Q,o,0)),Kn(w,N),w.pendingBranch=null,w.isInFallback=!1;let z=w.parent,D=!1;for(;z;){if(z.pendingBranch){z.effects.push(...G),D=!0;break}z=z.parent}!D&&!B&&Ls(G),w.effects=[],v&&t&&t.pendingBranch&&y===t.pendingId&&(t.deps--,t.deps===0&&!P&&t.resolve()),Dr(O,"onResolve")},fallback(k){if(!w.pendingBranch)return;const{vnode:P,activeBranch:O,parentComponent:H,container:N,namespace:V}=w;Dr(P,"onFallback");const G=p(O),Z=()=>{w.isInFallback&&(f(null,k,N,G,H,null,V,a,l),Kn(w,k))},Q=k.transition&&k.transition.mode==="out-in";Q&&(O.transition.afterLeave=Z),w.isInFallback=!0,h(O,H,null,!0),Q||Z()},move(k,P,O){w.activeBranch&&d(w.activeBranch,k,P,O),w.container=k},next(){return w.activeBranch&&p(w.activeBranch)},registerDep(k,P,O){const H=!!w.pendingBranch;H&&w.deps++;const N=k.vnode.el;k.asyncDep.catch(V=>{lr(V,k,0)}).then(V=>{if(k.isUnmounted||w.isUnmounted||w.pendingId!==k.suspenseId)return;k.asyncResolved=!0;const{vnode:G}=k;Ii(k,V),N&&(G.el=N);const Z=!N&&k.subTree.el;P(k,G,g(N||k.subTree.el),N?null:p(k.subTree),w,i,O),Z&&(G.placeholder=null,C(Z)),Co(k,G.el),H&&--w.deps===0&&w.resolve()})},unmount(k,P){w.isUnmounted=!0,w.activeBranch&&h(w.activeBranch,n,k,P),w.pendingBranch&&h(w.pendingBranch,n,k,P)}};return w}function Vg(e,t,n,r,s,o,i,a,l){const u=t.suspense=Rf(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):U(st)}function Il(e){let t;if(X(e)){const n=er&&e._c;n&&(e._d=!1,K()),e=e(),n&&(e._d=!0,t=ze,Nf())}return J(e)&&(e=$g(e)),e=Je(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Pf(e,t){t&&t.pendingBranch?J(e)?t.effects.push(...e):t.effects.push(e):Ls(e)}function Kn(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,Co(r,s))}function Kg(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Ee=Symbol.for("v-fgt"),Sn=Symbol.for("v-txt"),st=Symbol.for("v-cmt"),Sr=Symbol.for("v-stc"),kr=[];let ze=null;function K(e=!1){kr.push(ze=e?null:[])}function Nf(){kr.pop(),ze=kr[kr.length-1]||null}let er=1;function Fs(e,t=!1){er+=e,e<0&&ze&&t&&(ze.hasOnce=!0)}function If(e){return e.dynamicChildren=er>0?ze||Gn:null,Nf(),er>0&&ze&&ze.push(e),e}function ce(e,t,n,r,s,o){return If(j(e,t,n,r,s,o,!0))}function Re(e,t,n,r,s){return If(U(e,t,n,r,s,!0))}function tr(e){return e?e.__v_isVNode===!0:!1}function Xt(e,t){return e.type===t.type&&e.key===t.key}const Lf=({key:e})=>e??null,Cs=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?_e(e)||we(e)||X(e)?{i:Ie,r:e,k:t,f:!!n}:e:null);function j(e,t=null,n=null,r=0,s=null,o=e===Ee?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Lf(t),ref:t&&Cs(t),scopeId:_o,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:Ie};return a?(Ma(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=_e(n)?8:16),er>0&&!i&&ze&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&ze.push(l),l}const U=Xg;function Xg(e,t=null,n=null,r=0,s=null,o=!1){if((!e||e===lf)&&(e=st),tr(e)){const a=nr(e,t,!0);return n&&Ma(a,n),er>0&&!o&&ze&&(a.shapeFlag&6?ze[ze.indexOf(e)]=a:ze.push(a)),a.patchFlag=-2,a}if(om(e)&&(e=e.__vccOpts),t){t=Oa(t);let{class:a,style:l}=t;a&&!_e(a)&&(t.class=Ae(a)),de(l)&&(yo(l)&&!J(l)&&(l=He({},l)),t.style=bn(l))}const i=_e(e)?1:$f(e)?128:Zp(e)?64:de(e)?4:X(e)?2:0;return j(e,t,n,r,s,i,o,!0)}function Oa(e){return e?yo(e)||bf(e)?He({},e):e:null}function nr(e,t,n=!1,r=!1){const{props:s,ref:o,patchFlag:i,children:a,transition:l}=e,u=t?xo(s||{},t):s,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Lf(u),ref:t&&t.ref?n&&o?J(o)?o.concat(Cs(t)):[o,Cs(t)]:Cs(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!==Ee?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&&nr(e.ssContent),ssFallback:e.ssFallback&&nr(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&Aa(c,l.clone(c)),c}function be(e=" ",t=0){return U(Sn,null,e,t)}function Jg(e,t){const n=U(Sr,null,e);return n.staticCount=t,n}function wt(e="",t=!1){return t?(K(),Re(st,null,e)):U(st,null,e)}function Je(e){return e==null||typeof e=="boolean"?U(st):J(e)?U(Ee,null,e.slice()):tr(e)?qt(e):U(Sn,null,String(e))}function qt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:nr(e)}function Ma(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(J(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),Ma(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!bf(t)?t._ctx=Ie:s===3&&Ie&&(Ie.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else X(t)?(t={default:t,_ctx:Ie},n=32):(t=String(t),r&64?(n=16,t=[be(t)]):n=8);e.children=t,e.shapeFlag|=n}function xo(...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=bn([t.style,r.style]);else if(Kr(s)){const o=t[s],i=r[s];i&&o!==i&&!(J(o)&&o.includes(i))&&(t[s]=o?[].concat(o,i):i)}else s!==""&&(t[s]=r[s])}return t}function Ze(e,t,n,r=null){kt(e,t,7,[n,r])}const Qg=hf();let Yg=0;function Zg(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||Qg,o={uid:Yg++,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:vf(r,s),emitsOptions:mf(r,s),emit:null,emitted:null,propsDefaults:he,inheritAttrs:r.inheritAttrs,ctx:he,data:he,props:he,attrs:he,slots:he,refs:he,setupState:he,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=Ag.bind(null,o),e.ce&&e.ce(o),o}let Ne=null;const An=()=>Ne||Ie;let Hs,Pi;{const e=go(),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)}};Hs=t("__VUE_INSTANCE_SETTERS__",n=>Ne=n),Pi=t("__VUE_SSR_SETTERS__",n=>rr=n)}const kn=e=>{const t=Ne;return Hs(e),e.scope.on(),()=>{e.scope.off(),Hs(t)}},Ni=()=>{Ne&&Ne.scope.off(),Hs(null)};function Of(e){return e.vnode.shapeFlag&4}let rr=!1;function em(e,t=!1,n=!1){t&&Pi(t);const{props:r,children:s}=e.vnode,o=Of(e);Ig(e,r,o,t),Dg(e,s,n||t);const i=o?tm(e,t):void 0;return t&&Pi(!1),i}function tm(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,hg);const{setup:r}=n;if(r){Dt();const s=e.setupContext=r.length>1?rm(e):null,o=kn(e),i=Jr(r,e,0,[e.props,s]),a=ya(i);if(Bt(),o(),(a||e.sp)&&!vn(e)&&Ta(e),a){if(i.then(Ni,Ni),t)return i.then(l=>{Ii(e,l)}).catch(l=>{lr(l,e,0)});e.asyncDep=i}else Ii(e,i)}else Mf(e)}function Ii(e,t,n){X(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:de(t)&&(e.setupState=Ju(t)),Mf(e)}function Mf(e,t,n){const r=e.type;e.render||(e.render=r.render||vt);{const s=kn(e);Dt();try{gg(e)}finally{Bt(),s()}}}const nm={get(e,t){return De(e,"get",""),e[t]}};function rm(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,nm),slots:e.slots,emit:e.emit,expose:t}}function So(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ju(Mp(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in xr)return xr[n](e)},has(t,n){return n in t||n in xr}})):e.proxy}function sm(e,t=!0){return X(e)?e.displayName||e.name:e.name||t&&e.__name}function om(e){return X(e)&&"__vccOpts"in e}const Se=(e,t)=>Gp(e,t,rr);function sr(e,t,n){try{Fs(-1);const r=arguments.length;return r===2?de(t)&&!J(t)?tr(t)?U(e,null,[t]):U(e,t):U(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&tr(n)&&(n=[n]),U(e,t,n))}finally{Fs(1)}}const im="3.5.25";let Li;const Ll=typeof window<"u"&&window.trustedTypes;if(Ll)try{Li=Ll.createPolicy("vue",{createHTML:e=>e})}catch{}const Df=Li?e=>Li.createHTML(e):e=>e,am="http://www.w3.org/2000/svg",lm="http://www.w3.org/1998/Math/MathML",Pt=typeof document<"u"?document:null,Ol=Pt&&Pt.createElement("template"),cm={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"?Pt.createElementNS(am,e):t==="mathml"?Pt.createElementNS(lm,e):n?Pt.createElement(e,{is:n}):Pt.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>Pt.createTextNode(e),createComment:e=>Pt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Pt.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=Df(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]}},um=Symbol("_vtc");function fm(e,t,n){const r=e[um];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Ml=Symbol("_vod"),dm=Symbol("_vsh"),hm=Symbol(""),pm=/(?:^|;)\s*display\s*:/;function gm(e,t,n){const r=e.style,s=_e(n);let o=!1;if(n&&!s){if(t)if(_e(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();n[a]==null&&xs(r,a,"")}else for(const i in t)n[i]==null&&xs(r,i,"");for(const i in n)i==="display"&&(o=!0),xs(r,i,n[i])}else if(s){if(t!==n){const i=r[hm];i&&(n+=";"+i),r.cssText=n,o=pm.test(n)}}else t&&e.removeAttribute("style");Ml in e&&(e[Ml]=o?r.display:"",e[dm]&&(r.display="none"))}const Dl=/\s*!important$/;function xs(e,t,n){if(J(n))n.forEach(r=>xs(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=mm(e,t);Dl.test(n)?e.setProperty(an(r),n.replace(Dl,""),"important"):e[r]=n}}const Bl=["Webkit","Moz","ms"],Yo={};function mm(e,t){const n=Yo[t];if(n)return n;let r=rt(t);if(r!=="filter"&&r in e)return Yo[t]=r;r=po(r);for(let s=0;s<Bl.length;s++){const o=Bl[s]+r;if(o in e)return Yo[t]=o}return t}const Fl="http://www.w3.org/1999/xlink";function Hl(e,t,n,r,s,o=hp(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Fl,t.slice(6,t.length)):e.setAttributeNS(Fl,t,n):n==null||o&&!Pu(n)?e.removeAttribute(t):e.setAttribute(t,o?"":ft(n)?String(n):n)}function jl(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Df(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 Bf(e,t,n,r){e.addEventListener(t,n,r)}function ym(e,t,n,r){e.removeEventListener(t,n,r)}const Ul=Symbol("_vei");function _m(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]=bm(t);if(r){const u=o[t]=Cm(r,s);Bf(e,a,u,l)}else i&&(ym(e,a,i,l),o[t]=void 0)}}const Gl=/(?:Once|Passive|Capture)$/;function bm(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):an(e.slice(2)),t]}let Zo=0;const wm=Promise.resolve(),vm=()=>Zo||(wm.then(()=>Zo=0),Zo=Date.now());function Cm(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;kt(xm(r,n.value),t,5,[r])};return n.value=e,n.attached=vm(),n}function xm(e,t){if(J(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,Sm=(e,t,n,r,s,o)=>{const i=s==="svg";t==="class"?fm(e,r,i):t==="style"?gm(e,n,r):Kr(t)?ga(t)||_m(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):km(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)||!_e(r))?jl(e,rt(t),r,o,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Hl(e,t,r,i))};function km(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Wl(t)&&X(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)&&_e(n)?!1:t in e}const zl=e=>{const t=e.props["onUpdate:modelValue"]||!1;return J(t)?n=>vs(t,n):t},ei=Symbol("_assign"),Em={created(e,{value:t},n){e.checked=Rs(t,n.props.value),e[ei]=zl(n),Bf(e,"change",()=>{e[ei](Am(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[ei]=zl(r),t!==n&&(e.checked=Rs(t,r.props.value))}};function Am(e){return"_value"in e?e._value:e.value}const Tm={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},$m=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=(s=>{if(!("key"in s))return;const o=an(s.key);if(t.some(i=>i===o||Tm[i]===o))return e(s)}))},Ff=He({patchProp:Sm},cm);let Er,Vl=!1;function Rm(){return Er||(Er=Fg(Ff))}function Pm(){return Er=Vl?Er:Hg(Ff),Vl=!0,Er}const Hf=((...e)=>{const t=Rm().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Uf(r);if(!s)return;const o=t._component;!X(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const i=n(s,!1,jf(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),i},t}),Nm=((...e)=>{const t=Pm().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Uf(r);if(s)return n(s,!0,jf(s))},t});function jf(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Uf(e){return _e(e)?document.querySelector(e):e}const Im=/"(?:_|\\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*:/,Lm=/"(?: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*:/,Om=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Mm(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){Dm(e);return}return t}function Dm(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function js(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(!Om.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(Im.test(e)||Lm.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,Mm)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}const Bm=/#/g,Fm=/&/g,Hm=/\//g,jm=/=/g,Da=/\+/g,Um=/%5e/gi,Gm=/%60/gi,Wm=/%7c/gi,zm=/%20/gi;function Vm(e){return encodeURI(""+e).replace(Wm,"|")}function Oi(e){return Vm(typeof e=="string"?e:JSON.stringify(e)).replace(Da,"%2B").replace(zm,"+").replace(Bm,"%23").replace(Fm,"%26").replace(Gm,"`").replace(Um,"^").replace(Hm,"%2F")}function ti(e){return Oi(e).replace(jm,"%3D")}function Us(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function qm(e){return Us(e.replace(Da," "))}function Km(e){return Us(e.replace(Da," "))}function ko(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=Km(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 Xm(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${ti(e)}=${Oi(n)}`).join("&"):`${ti(e)}=${Oi(t)}`:ti(e)}function Gf(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>Xm(t,e[t])).filter(Boolean).join("&")}const Jm=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,Wf=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,Qm=/^([/\\]\s*){2,}[^/\\]/,Ym=/^[\s\0]*(blob|data|javascript|vbscript):$/i,Zm=/\/$|\/\?|\/#/,ey=/^\.?\//;function Ht(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?Jm.test(e):Wf.test(e)||(t.acceptRelative?Qm.test(e):!1)}function ty(e){return!!e&&Ym.test(e)}function Mi(e="",t){return t?Zm.test(e):e.endsWith("/")}function Ba(e="",t){if(!t)return(Mi(e)?e.slice(0,-1):e)||"/";if(!Mi(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 Gs(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(Mi(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 ny(e=""){return e.startsWith("/")}function ql(e=""){return ny(e)?e:"/"+e}function zf(e,t){if(qf(t)||Ht(e))return e;const n=Ba(t);return e.startsWith(n)?e:Yr(n,e)}function ry(e,t){if(qf(t))return e;const n=Ba(t);if(!e.startsWith(n))return e;const r=e.slice(n.length);return r[0]==="/"?r:"/"+r}function Vf(e,t){const n=Jf(e),r={...ko(n.search),...t};return n.search=Gf(r),Qf(n)}function qf(e){return!e||e==="/"}function sy(e){return e&&e!=="/"}function Yr(e,...t){let n=e||"";for(const r of t.filter(s=>sy(s)))if(n){const s=r.replace(ey,"");n=Gs(n)+s}else n=r;return n}function Kf(...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&&Ht(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 oy(e){return iy(e,"https://")}function iy(e,t){let n=e.match(Wf);return n||(n=e.match(/^\/{2,}/)),n?t+e.slice(n[0].length):t+e}function ay(e,t,n={}){return n.trailingSlash||(e=Gs(e),t=Gs(t)),n.leadingSlash||(e=ql(e),t=ql(t)),n.encoding||(e=Us(e),t=Us(t)),e===t}const Xf=Symbol.for("ufo:protocolRelative");function Jf(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(!Ht(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,[Xf]:!r}}function Kl(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function Qf(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[Xf]?(e.protocol||"")+"//":"")+s+o+t+n+r}class ly extends Error{constructor(t,n){super(t,n),this.name="FetchError",n?.cause&&!this.cause&&(this.cause=n.cause)}}function cy(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 ly(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 uy=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function Xl(e="GET"){return uy.has(e.toUpperCase())}function fy(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 dy=new Set(["image/svg","application/xml","application/xhtml","application/html"]),hy=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function py(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return hy.test(t)?"json":t==="text/event-stream"?"stream":dy.has(t)||t.startsWith("text/")?"text":"blob"}function gy(e,t,n,r){const s=my(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 my(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 cs(e,t){if(t)if(Array.isArray(t))for(const n of t)await n(e);else await t(e)}const yy=new Set([408,409,425,429,500,502,503,504]),_y=new Set([101,204,205,304]);function Yf(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):yy.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=cy(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,o),u}const o=async function(l,u={}){const c={request:l,options:gy(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 cs(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=zf(c.request,c.options.baseURL)),c.options.query&&(c.request=Vf(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(fy(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 cs(c,c.options.onRequestError),await s(c)}finally{f&&clearTimeout(f)}if((c.response.body||c.response._bodyInit)&&!_y.has(c.response.status)&&c.options.method!=="HEAD"){const h=(c.options.parseResponse?"json":c.options.responseType)||py(c.response.headers.get("content-type")||"");switch(h){case"json":{const p=await c.response.text(),g=c.options.parseResponse||js;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 cs(c,c.options.onResponse),!c.options.ignoreResponseError&&c.response.status>=400&&c.response.status<600?(c.options.onResponseError&&await cs(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={})=>Yf({...e,...l,defaults:{...e.defaults,...l.defaults,...a}}),i}const Ws=(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")})(),by=Ws.fetch?(...e)=>Ws.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),wy=Ws.Headers,vy=Ws.AbortController,Cy=Yf({fetch:by,Headers:wy,AbortController:vy}),xy=Cy,Sy=()=>window?.__NUXT__?.config||window?.useNuxtApp?.().payload?.config,Fa=()=>Sy().app,ky=()=>Fa().baseURL,Ey=()=>Fa().buildAssetsDir,Ha=(...e)=>Kf(Zf(),Ey(),...e),Zf=(...e)=>{const t=Fa(),n=t.cdnURL||t.baseURL;return e.length?Kf(n,...e):n};globalThis.__buildAssetsURL=Ha,globalThis.__publicAssetsURL=Zf;globalThis.$fetch||(globalThis.$fetch=xy.create({baseURL:ky()}));"global"in globalThis||(globalThis.global=globalThis);function Di(e,t={},n){for(const r in e){const s=e[r],o=n?`${n}:${r}`:r;typeof s=="object"&&s!==null?Di(s,t,o):typeof s=="function"&&(t[o]=s)}return t}const Ay={run:e=>e()},Ty=()=>Ay,ed=typeof console.createTask<"u"?console.createTask:Ty;function $y(e,t){const n=t.shift(),r=ed(n);return e.reduce((s,o)=>s.then(()=>r.run(()=>o(...t))),Promise.resolve())}function Ry(e,t){const n=t.shift(),r=ed(n);return Promise.all(e.map(s=>r.run(()=>s(...t))))}function ni(e,t){for(const n of[...e])n(t)}class Py{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=Di(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=Di(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($y,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(Ry,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 td(){return new Py}function Ny(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 Iy(e={}){const t={};return{get(n,r={}){return t[n]||(t[n]=Ny({...e,...r})),t[n]}}}const zs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},Jl="__unctx__",Ly=zs[Jl]||(zs[Jl]=Iy()),Oy=(e,t={})=>Ly.get(e,t),Ql="__unctx_async_handlers__",Bi=zs[Ql]||(zs[Ql]=new Set);function nd(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 Yl={id:"__nuxt-loader"},My={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},Dy={deep:!1},By="#__nuxt",rd="nuxt-app",Zl=36e5,Fy="vite:preloadError";function sd(e=rd){return Oy(e,{asyncContext:!1})}const Hy="__nuxt_plugin";function jy(e){let t=0;const n={_id:e.id||rd||"nuxt-app",_scope:gp(),provide:void 0,versions:{get nuxt(){return"4.2.2"},get vue(){return n.vueApp.version}},payload:Fn({...e.ssrContext?.payload||{},data:Fn({}),state:rn({}),once:new Set,_errors:Fn({})}),static:{data:{}},runWithContext(s){return n._scope.active&&!_a()?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:Fn({}),_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=td(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(s,o)=>{const i="$"+s;us(n,i,o),us(n.vueApp.config.globalProperties,i,o)},us(n.vueApp,"$nuxt",n),us(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener(Fy,o=>{n.callHook("app:chunkError",{error:o.payload}),o.payload.message.includes("Unable to preload CSS")&&o.preventDefault()}),window.useNuxtApp||=ve;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 Uy(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function Gy(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 Wy(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=Gy(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)Uy(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 pt(e){if(typeof e=="function")return e;const t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[Hy]:!0,_name:t})}function ec(e,t,n){const r=()=>t();return sd(e._id).set(e),e.vueApp.runWithContext(r)}function zy(e){let t;return wo()&&(t=An()?.appContext.app.$nuxt),t||=sd(e).tryUse(),t||null}function ve(e){const t=zy(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function or(e){return ve().$config}function us(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function Vy(e,t){return{ctx:{table:e},matchAll:n=>id(n,e)}}function od(e){const t={};for(const n in e)t[n]=n==="dynamic"?new Map(Object.entries(e[n]).map(([r,s])=>[r,od(s)])):new Map(Object.entries(e[n]));return t}function qy(e){return Vy(od(e))}function id(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(...id(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 Fi(e,t,n=".",r){if(!ri(t))return Fi(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]=Fi(i,s[o],(n?`${n}.`:"")+o.toString(),r):s[o]=i))}return s}function Ky(e){return(...t)=>t.reduce((n,r)=>Fi(n,r,"",e),{})}const Xy=Ky();function Jy(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:Hi(this.statusCode,500)};return this.statusMessage&&(t.statusMessage=ad(this.statusMessage)),this.data!==void 0&&(t.data=this.data),t}}function Qy(e){if(typeof e=="string")return new nc(e);if(Yy(e))return e;const t=new nc(e.message??e.statusMessage??"",{cause:e.cause||e});if(Jy(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=Hi(e.statusCode,t.statusCode):e.status&&(t.statusCode=Hi(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;ad(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 Yy(e){return e?.constructor?.__h3_error__===!0}const Zy=/[^\u0009\u0020-\u007E]/g;function ad(e=""){return e.replace(Zy,"")}function Hi(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const ld=Symbol("route");import.meta.url.replace(/\/app\/.*$/,"/");const Et=()=>ve()?.$router,cd=()=>wo()?Zt(ld,ve()._route):ve()._route;const e_=()=>{try{if(ve()._processingMiddleware)return!0}catch{return!1}return!1},ud=(e,t)=>{e||="/";const n=typeof e=="string"?e:"path"in e?ji(e):Et().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=Ht(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&&ty(l))throw new Error(`Cannot navigate to a URL with '${l}' protocol.`)}const o=e_();if(!s&&o){if(t?.replace){if(typeof e=="string"){const{pathname:l,search:u,hash:c}=Jf(e);return{path:l,...u&&{query:ko(u)},...c&&{hash:c},replace:!0}}return{...e,replace:!0}}return e}const i=Et(),a=ve();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 ji(e){return Vf(e.path||"",e.query||{})+(e.hash||"")}const fd="__nuxt_error",ja=()=>ka(ve().payload,"error"),t_=e=>{const t=Eo(e);try{const n=ja();ve().hooks.callHook("app:error",t),n.value||=t}catch{throw t}return t},n_=async(e={})=>{const t=ve(),n=ja();t.callHook("app:error:cleared",e),e.redirect&&await Et().replace(e.redirect),n.value=void 0},r_=e=>!!e&&typeof e=="object"&&fd in e,Eo=e=>{const t=Qy(e);return Object.defineProperty(t,fd,{value:!0,configurable:!1,writable:!1}),t};function s_(e){const t=i_(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 o_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function i_(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|=o_.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 a_=-1,l_=-2,c_=-3,u_=-4,f_=-5,d_=-6;function h_(e,t){return p_(JSON.parse(e),t)}function p_(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===a_)return;if(o===c_)return NaN;if(o===u_)return 1/0;if(o===f_)return-1/0;if(o===d_)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=s_(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!==l_&&(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 g_=new Set(["link","style","script","noscript"]),m_=new Set(["title","titleTemplate","script","style","noscript"]),rc=new Set(["base","meta","link","style","script","noscript"]),y_=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),__=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),b_=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),w_=new Set(["templateParams","htmlAttrs","bodyAttrs"]),v_=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]),C_=["name","property","http-equiv"],x_=new Set(["viewport","description","keywords","robots"]);function dd(e){const t=e.split(":");return t.length?v_.has(t[1]):!1}function Ui(e){const{props:t,tag:n}=e;if(__.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 C_)if(t[r]!==void 0){const s=t[r],o=s.includes(":"),i=x_.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(m_.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 Vs(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=>Vs(o,t));if(s?.constructor===Object){const o={};for(const i of Object.keys(s))o[i]=Vs(s[i],t,i);return o}return s}function S_(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 hd(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]=S_(n,r);return}if(b_.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 k_(e,t){const n=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},r=hd({tag:e,props:{}},n);return r.key&&g_.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 E_(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=Vs(e,n),Object.entries(e||{}).forEach(([s,o])=>{if(o!==void 0)for(const i of Array.isArray(o)?o:[o])r.push(k_(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},A_={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}},T_=/@import/,mr=e=>e===""||e===!0;function $_(e,t){if(typeof t.tagPriority=="number")return t.tagPriority;let n=100;const r=A_[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"?mr(t.props.async)?n=s.script.async:t.props.src&&!mr(t.props.defer)&&!mr(t.props.async)&&t.props.type!=="module"&&!t.props.type?.endsWith("json")?n=s.script.sync:mr(t.props.defer)&&t.props.src&&!mr(t.props.async)&&(n=s.script.defer):t.tag==="style"&&(n=t.innerHTML&&T_.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 R_(e={}){const t=td();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:E_(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,C)=>(g._w=$_(i,g),g._p=(h._i<<10)+C,g._d=Ui(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||(w_.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"&&dd(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(y_.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 C=typeof h=="string"?h:JSON.stringify(h);d.innerHTML=C.replace(/</g,"\\u003C")}else typeof h=="string"&&(d.innerHTML=h.replace(new RegExp(`</${p}`,"g"),`<\\/${p}`));d._d=Ui(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 P_=(e,t)=>we(t)?Zn(t):t,Ua="usehead";function N_(e){return{install(n){n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(Ua,e)}}.install}function I_(){if(wo()){const e=Zt(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 L_(e,t={}){const n=t.head||I_();return n.ssr?n.push(e||{},t):O_(n,e,t)}function O_(e,t,n={}){const r=ye(!1);let s;return Sg(()=>{const i=r.value?{}:Vs(t,P_);s?s.patch(i):s=e.push(i,n)}),An()&&(Ra(()=>{s.dispose()}),tf(()=>{r.value=!0}),ef(()=>{r.value=!1})),s}function M_(e){const t=e||ve();return t.ssrContext?.head||t.runWithContext(()=>{if(wo()){const n=Zt(Ua);if(!n)throw new Error("[nuxt] [unhead] Missing Unhead instance.");return n}})}function D_(e,t={}){const n=t.head||M_(t.nuxt);return L_(e,{head:n,...t})}let Ss,ks;function B_(){return Ss=$fetch(Ha(`builds/meta/${or().app.buildId}.json`),{responseType:"json"}),Ss.then(e=>{ks=qy(e.matcher)}).catch(e=>{console.error("[nuxt] Error fetching app manifest.",e)}),Ss}function Ao(){return Ss||B_()}async function Ga(e){const t=typeof e=="string"?e:e.path;if(await Ao(),!ks)return console.error("[nuxt] Error creating app manifest matcher.",ks),{};try{return Xy({},...ks.matchAll(t).reverse())}catch(n){return console.error("[nuxt] Error matching route rules.",n),{}}}async function cc(e,t={}){if(!await gd(e))return null;const r=await H_(e,t);return await pd(r)||null}const F_="_payload.json";async function H_(e,t={}){const n=new URL(e,"http://localhost");if(n.host!=="localhost"||Ht(n.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);const r=or(),s=t.hash||(t.fresh?Date.now():r.app.buildId),o=r.app.cdnURL,i=o&&await gd(e)?o:r.app.baseURL;return Yr(i,n.pathname,F_+(s?`?${s}`:""))}async function pd(e){const t=fetch(e,{cache:"force-cache"}).then(n=>n.text().then(md));try{return await t}catch(n){console.warn("[nuxt] Cannot load payload ",e,n)}return null}async function gd(e=cd().path){const t=ve();return e=e==="/"?e:e.replace(/\/$/,""),(await Ao()).prerendered.includes(e)?!0:t.runWithContext(async()=>{const r=await Ga({path:e});return!!r.prerender&&!r.redirect})}let un=null;async function j_(){if(un)return un;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await md(e.textContent||""),n=e.dataset.src?await pd(e.dataset.src):void 0;return un={...t,...n,...window.__NUXT__},un.config?.public&&(un.config.public=rn(un.config.public)),un}async function md(e){return await h_(e,ve()._payloadRevivers)}function U_(e,t){ve()._payloadRevivers[e]=t}const G_=[["NuxtError",e=>Eo(e)],["EmptyShallowRef",e=>Or(e==="_"?void 0:e==="0n"?BigInt(0):js(e))],["EmptyRef",e=>ye(e==="_"?void 0:e==="0n"?BigInt(0):js(e))],["ShallowRef",e=>Or(e)],["ShallowReactive",e=>Fn(e)],["Ref",e=>ye(e)],["Reactive",e=>rn(e)]],W_=pt({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const[r,s]of G_)U_(r,s);Object.assign(e.payload,([t,n]=nd(()=>e.runWithContext(j_)),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 C=o.get(g._d)||0,y={tag:g,id:(C?`${g._d}:${C}`:g._d)||sc(g),shouldRender:!0};return g._d&&dd(g._d)&&o.set(g._d,C+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 C=g.tagName.toLowerCase();if(!rc.has(C))continue;const y=hd({tag:C,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=Ui(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 C=`${h}:${p}`;a.sideEffects[C]=g,delete a.pendingSideEffects[C]}function u({id:h,$el:p,tag:g}){const C=g.tag.endsWith("Attrs");a.elMap.set(h,p),C||(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 _=p?.dataset;if(_&&_[`${y}fired`]){const w=y.slice(0,-5);v.call(p,new Event(w.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 _ of v)C&&l(h,`${m}:${_}`,()=>p.classList.remove(_)),!p.classList.contains(_)&&p.classList.add(_)}else if(y==="style"){if(!v)continue;for(const[_,w]of v)l(h,`${m}:${_}`,()=>{p.style.removeProperty(_)}),p.style.setProperty(_,w)}else v!==!1&&v!==null&&(p.getAttribute(y)!==v&&p.setAttribute(y,v===!0?"":String(v)),C&&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:C}=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(C),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 z_(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 R_({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[n?JSON.parse(n):!1,...e.init||[]]})}function V_(e,t){let n=0;return()=>{const r=++n;t(()=>{n===r&&e()})}}function q_(e={}){const t=z_({domOptions:{render:V_(()=>Wa(t),n=>setTimeout(n,0))},...e});return t.install=N_(t),t}const K_={disableDefaults:!0},X_=pt({name:"nuxt:head",enforce:"pre",setup(e){const t=q_(K_);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)}}}),J_=async e=>{let t,n;const r=([t,n]=nd(()=>Ga({path:e.path})),t=await t,n(),t);if(r.redirect){const s=r.redirect.includes("#")?r.redirect:r.redirect+e.hash;return Ht(s,{acceptRelative:!0})?(window.location.href=s,!1):s}},Q_=[J_];function si(e){const t=e&&typeof e=="object"?e:{};typeof e=="object"&&(e=Qf({pathname:e.path||"",search:Gf(e.query||{}),hash:e.hash||""}));const n=new URL(e.toString(),window.location.href);return{path:n.pathname,fullPath:e,query:ko(n.search),hash:n.hash,params:t.params||{},name:void 0,matched:t.matched||[],redirectedFrom:void 0,meta:t.meta||{},href:e}}const Y_=pt({name:"nuxt:router",enforce:"pre",setup(e){const t=ry(window.location.pathname,or().app.baseURL)+window.location.search+window.location.hash,n=[],r={"navigate:before":[],"resolve:before":[],"navigate:after":[],error:[]},s=(f,d)=>(r[f].push(d),()=>r[f].splice(r[f].indexOf(d),1)),o=or().app.baseURL,i=rn(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"]({},"",Yr(o,h.fullPath)),e.isHydrating||await e.runWithContext(n_);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:Se(()=>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",ht({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}):sr("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=rn(f.meta||{}),e.isHydrating&&c&&!St(f.meta.layout)&&(f.meta.layout=c),e._processingMiddleware=!0;{const h=new Set([...Q_,...e._middleware.global]);{const p=await e.runWithContext(()=>Ga({path:f.path}));if(p.appMiddleware)for(const g in p.appMiddleware){const C=e._middleware.named[g];if(!C)return;p.appMiddleware[g]?h.add(C):h.delete(C)}}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),ay(i.fullPath,t)||await e.runWithContext(()=>ud(i.fullPath))}),{provide:{route:i,router:u}}}}),Z_={trailing:!0};function eb(e,t=25,n={}){if(n={...Z_,...n},!Number.isFinite(t))throw new TypeError("Expected `wait` to be a finite number");let r,s,o=[],i,a;const l=(f,d)=>(i=tb(e,f,d),i.finally(()=>{if(i=null,n.trailing&&a&&!s){const h=l(f,a);return a=null,h}}),i),u=function(...f){return n.trailing&&(a=f),i||new Promise(d=>{const h=!s&&n.leading;clearTimeout(s),s=setTimeout(()=>{s=null;const p=n.leading?r:l(this,f);a=null;for(const g of o)g(p);o=[]},t),h?(r=l(this,f),d(r)):o.push(d)})},c=f=>{f&&(clearTimeout(f),s=null)};return u.isPending=()=>!!s,u.cancel=()=>{c(s),o=[],a=null},u.flush=()=>{if(c(s),!a||i)return;const f=a;return a=null,l(this,f)},u}async function tb(e,t,n){return await e.apply(t,n)}const nb=Symbol.for("nuxt:client-only"),Gi=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),rb=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),To=e=>{const t=ve();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{Gi(()=>e())}):Gi(()=>e())};function sb(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;ob(e[0],e[1])&&e.unshift(t);let[n,r,s={}]=e,o=!1;const i=Se(()=>Zn(n));if(typeof i.value!="string")throw new TypeError("[nuxt] [useAsyncData] key must be a string.");if(typeof r!="function")throw new TypeError("[nuxt] [useAsyncData] handler must be a function.");const a=ve();s.server??=!0,s.default??=ab,s.getCachedData??=_d,s.lazy??=!1,s.immediate??=!0,s.deep??=Dy.deep,s.dedupe??="cancel",s._functionName,a._asyncData[i.value];function l(){const p={cause:"initial",dedupe:s.dedupe};return a._asyncData[i.value]?._init||(p.cachedData=s.getCachedData(i.value,a,{cause:"initial"}),a._asyncData[i.value]=uc(a,i.value,r,s,p.cachedData)),()=>a._asyncData[i.value].execute(p)}const u=l(),c=a._asyncData[i.value];c._deps++;const f=s.server!==!1&&a.payload.serverRendered;{let p=function(_){const w=a._asyncData[_];w?._deps&&(w._deps--,w._deps===0&&w?._off())};const g=An();if(g&&f&&s.immediate&&!g.sp&&(g.sp=[]),g&&!g._nuxtOnBeforeMountCbs){g._nuxtOnBeforeMountCbs=[];const _=g._nuxtOnBeforeMountCbs;rf(()=>{_.forEach(w=>{w()}),_.splice(0,_.length)}),Pa(()=>_.splice(0,_.length))}const C=g&&(g._nuxtClientOnly||Zt(nb,!1));f&&a.isHydrating&&(c.error.value||c.data.value!==void 0)?c.status.value=c.error.value?"error":"success":g&&(!C&&a.payload.serverRendered&&a.isHydrating||s.lazy)&&s.immediate?g._nuxtOnBeforeMountCbs.push(u):s.immediate&&c.status.value!=="success"&&u();const y=_a(),v=xn(i,(_,w)=>{if((_||w)&&_!==w){o=!0;const k=a._asyncData[w]?.data.value!==void 0,P=a._asyncDataPromises[w]!==void 0,O={cause:"initial",dedupe:s.dedupe};if(!a._asyncData[_]?._init){let H;w&&k?H=a._asyncData[w].data.value:(H=s.getCachedData(_,a,{cause:"initial"}),O.cachedData=H),a._asyncData[_]=uc(a,_,r,s,H)}a._asyncData[_]._deps++,w&&p(w),(s.immediate||k||P)&&a._asyncData[_].execute(O),Ls(()=>{o=!1})}},{flush:"sync"}),m=s.watch?xn(s.watch,()=>{o||a._asyncData[i.value]?._execute({cause:"watch",dedupe:s.dedupe})}):()=>{};y&&mp(()=>{v(),m(),p(i.value)})}const d={data:fs(()=>a._asyncData[i.value]?.data),pending:fs(()=>a._asyncData[i.value]?.pending),status:fs(()=>a._asyncData[i.value]?.status),error:fs(()=>a._asyncData[i.value]?.error),refresh:(...p)=>a._asyncData[i.value]?._init?a._asyncData[i.value].execute(...p):l()(),execute:(...p)=>d.refresh(...p),clear:()=>{const p=a._asyncData[i.value];if(p?._abortController)try{p._abortController.abort(new DOMException("AsyncData aborted by user.","AbortError"))}finally{p._abortController=void 0}yd(a,i.value)}},h=Promise.resolve(a._asyncDataPromises[i.value]).then(()=>d);return Object.assign(h,d),h}function fs(e){return Se({get(){return e()?.value},set(t){const n=e();n&&(n.value=t)}})}function ob(e,t){return!(typeof e=="string"||typeof e=="object"&&e!==null||typeof e=="function"&&typeof t=="function")}function yd(e,t){t in e.payload.data&&(e.payload.data[t]=void 0),t in e.payload._errors&&(e.payload._errors[t]=void 0),e._asyncData[t]&&(e._asyncData[t].data.value=te(e._asyncData[t]._default()),e._asyncData[t].error.value=void 0,e._asyncData[t].status.value="idle"),t in e._asyncDataPromises&&(e._asyncDataPromises[t]=void 0)}function ib(e,t){const n={};for(const r of t)n[r]=e[r];return n}function uc(e,t,n,r,s){e.payload._errors[t]??=void 0;const o=r.getCachedData!==_d,i=n,a=r.deep?ye:Or,l=s!==void 0,u=e.hook("app:data:refresh",async f=>{(!f||f.includes(t))&&await c.execute({cause:"refresh:hook"})}),c={data:a(l?s:r.default()),pending:Se(()=>c.status.value==="pending"),error:ka(e.payload._errors,t),status:Or("idle"),execute:(...f)=>{const[d,h=void 0]=f,p=d&&h===void 0&&typeof d=="object"?d:{};if(e._asyncDataPromises[t]&&(p.dedupe??r.dedupe)==="defer")return e._asyncDataPromises[t];{const y="cachedData"in p?p.cachedData:r.getCachedData(t,e,{cause:p.cause??"refresh:manual"});if(y!==void 0)return e.payload.data[t]=c.data.value=y,c.error.value=void 0,c.status.value="success",Promise.resolve(y)}c._abortController&&c._abortController.abort(new DOMException("AsyncData request cancelled by deduplication","AbortError")),c._abortController=new AbortController,c.status.value="pending";const g=new AbortController,C=new Promise((y,v)=>{try{const m=p.timeout??r.timeout,_=lb([c._abortController?.signal,p?.signal],g.signal,m);if(_.aborted){const w=_.reason;v(w instanceof Error?w:new DOMException(String(w??"Aborted"),"AbortError"));return}return _.addEventListener("abort",()=>{const w=_.reason;v(w instanceof Error?w:new DOMException(String(w??"Aborted"),"AbortError"))},{once:!0,signal:g.signal}),Promise.resolve(i(e,{signal:_})).then(y,v)}catch(m){v(m)}}).then(async y=>{let v=y;r.transform&&(v=await r.transform(y)),r.pick&&(v=ib(v,r.pick)),e.payload.data[t]=v,c.data.value=v,c.error.value=void 0,c.status.value="success"}).catch(y=>{if(e._asyncDataPromises[t]&&e._asyncDataPromises[t]!==C||c._abortController?.signal.aborted)return e._asyncDataPromises[t];if(typeof DOMException<"u"&&y instanceof DOMException&&y.name==="AbortError")return c.status.value="idle",e._asyncDataPromises[t];c.error.value=Eo(y),c.data.value=te(r.default()),c.status.value="error"}).finally(()=>{g.abort(),delete e._asyncDataPromises[t]});return e._asyncDataPromises[t]=C,e._asyncDataPromises[t]},_execute:eb((...f)=>c.execute(...f),0,{leading:!0}),_default:r.default,_deps:0,_init:!0,_hash:void 0,_off:()=>{u(),e._asyncData[t]?._init&&(e._asyncData[t]._init=!1),o||Qr(()=>{e._asyncData[t]?._init||(yd(e,t),c.execute=()=>Promise.resolve())})}};return c}const ab=()=>{},_d=(e,t,n)=>{if(t.isHydrating)return t.payload.data[e];if(n.cause!=="refresh:manual"&&n.cause!=="refresh:hook")return t.static.data[e]};function lb(e,t,n){const r=e.filter(i=>!!i);if(typeof n=="number"&&n>=0){const i=AbortSignal.timeout?.(n);i&&r.push(i)}if(AbortSignal.any)return AbortSignal.any(r);const s=new AbortController;for(const i of r)if(i.aborted){const a=i.reason??new DOMException("Aborted","AbortError");try{s.abort(a)}catch{s.abort()}return s.signal}const o=()=>{const a=r.find(l=>l.aborted)?.reason??new DOMException("Aborted","AbortError");try{s.abort(a)}catch{s.abort()}};for(const i of r)i.addEventListener?.("abort",o,{once:!0,signal:t});return s.signal}const cb="$s";function ub(...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=cb+n,o=ve(),i=ka(o.payload.state,s);if(i.value===void 0&&r){const a=r();if(we(a))return o.payload.state[s]=a,a;i.value=a}return i}async function bd(e,t=Et()){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(()=>bd(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 fb(e={}){const t=e.path||window.location.pathname;let n={};try{n=js(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:ve().payload.state}))}catch{}window.location.pathname!==t?window.location.href=t:window.location.reload()}}const db=(...e)=>e.find(t=>t!==void 0);function hb(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=Et(),a=or(),l=Se(()=>!!o.target&&o.target!=="_self"),u=Se(()=>{const C=o.to||o.href||"";return typeof C=="string"&&Ht(C,{acceptRelative:!0})}),c=sn("RouterLink"),f=c&&typeof c!="string"?c.useLink:void 0,d=Se(()=>{if(o.external)return!0;const C=o.to||o.href||"";return typeof C=="object"?!1:C===""||u.value}),h=Se(()=>{const C=o.to||o.href||"";return d.value?C:r(C,i.resolve,o.trailingSlash)}),p=d.value?void 0:f?.({...o,to:h}),g=Se(()=>{const C=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?ji(h.value):h.value,v=typeof y=="object"?i.resolve(y).href:y;return ds(v,C)}return typeof h.value=="object"?i.resolve(h.value)?.href??null:ds(Yr(a.app.baseURL,h.value),C)});return{to:h,hasTarget:l,isAbsoluteUrl:u,isExternal:d,href:g,isActive:p?.isActive??Se(()=>h.value===i.currentRoute.value.path),isExactActive:p?.isExactActive??Se(()=>h.value===i.currentRoute.value.path),route:p?.route??Se(()=>i.resolve(h.value)),async navigate(C){await ud(g.value,{replace:o.replace,external:d.value||l.value})}}}return ht({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=Et(),{to:l,href:u,navigate:c,isExternal:f,hasTarget:d,isAbsoluteUrl:h}=s(o),p=Or(!1),g=ye(null),C=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"&&!mb()}async function v(m=ve()){if(p.value)return;p.value=!0;const _=typeof l.value=="string"?l.value:f.value?ji(l.value):a.resolve(l.value).fullPath,w=f.value?new URL(_,window.location.href).href:_;await Promise.all([m.hooks.callHook("link:prefetch",w).catch(()=>{}),!f.value&&!d.value&&bd(l.value,a).catch(()=>{})])}if(y("visibility")){const m=ve();let _,w=null;sf(()=>{const k=pb();To(()=>{_=Gi(()=>{g?.value?.tagName&&(w=k.observe(g.value,async()=>{w?.(),w=null,await v(m)}))})})}),Ra(()=>{_&&rb(_),w?.(),w=null})}return()=>{if(!f.value&&!d.value&&!n(l.value)){const w={ref:C,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")&&(w.onPointerenter=v.bind(null,void 0),w.onFocus=v.bind(null,void 0)),p.value&&(w.class=o.prefetchedClass||e.prefetchedClass),w.rel=o.rel||void 0),sr(sn("RouterLink"),w,i.default)}const m=o.target||null,_=db(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 w=new URL(u.value,window.location.href);return{path:w.pathname,fullPath:w.pathname,get query(){return ko(w.search)},hash:w.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:u.value}},rel:_,target:m,isExternal:f.value||d.value,isActive:!1,isExactActive:!1}):null:sr("a",{ref:g,href:u.value||null,rel:_,target:m,onClick:w=>{if(!(f.value||d.value))return w.preventDefault(),o.replace?a.replace(u.value):a.push(u.value)}},i.default?.())}}})}const za=hb(My);function ds(e,t){const n=t==="append"?Gs:Ba;return Ht(e)&&!e.startsWith("http")?e:n(e,!0)}function pb(){const e=ve();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 gb=/2g/;function mb(){const e=navigator.connection;return!!(e&&(e.saveData||gb.test(e.effectiveType)))}function yb(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&&!Ht(String(e.url),{acceptRelative:!0,strict:!1})&&(e.url=oy(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 _b(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?Zn(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:yb(i)}return{stack:n,push:r,get:s}}const bb=pt({name:"nuxt-site-config:init",enforce:"pre",async setup(e){const t=_b(),n=ub("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}}}}),wb=pt({name:"nuxt:payload",setup(e){const t=new Set;Et().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]}}),To(()=>{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(Ao,1e3)})}}),vb=pt(()=>{const e=Et();To(()=>{e.beforeResolve(async()=>{await new Promise(t=>{setTimeout(t,100),requestAnimationFrame(()=>{setTimeout(t,0)})})})})}),Cb=pt(e=>{let t;async function n(){let r;try{r=await Ao()}catch(s){const o=s;if(!("status"in o&&(o.status===404||o.status===403)))throw o}t&&clearTimeout(t),t=setTimeout(n,Zl);try{const s=await $fetch(Ha("builds/latest.json")+`?${Date.now()}`);s.id!==r?.id&&(e.hooks.callHook("app:manifest:update",s),t&&clearTimeout(t))}catch{}}To(()=>{t=setTimeout(n,Zl)})}),xb=pt({name:"nuxt:chunk-reload",setup(e){const t=Et(),n=or(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook("app:chunkError",({error:o})=>{r.add(o)});function s(o){const i=Yr(n.app.baseURL,o.fullPath);fb({path:i,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(s)}),t.onError((o,i)=>{r.has(o)&&s(i)})}}),Sb=pt({name:"nuxt:global-components"}),kb=pt(()=>{}),Eb=["top","right","bottom","left"],fc=["start","end"],dc=Eb.reduce((e,t)=>e.concat(t,t+"-"+fc[0],t+"-"+fc[1]),[]),Br=Math.min,pn=Math.max,Ab={left:"right",right:"left",bottom:"top",top:"bottom"},Tb={start:"end",end:"start"};function Wi(e,t,n){return pn(e,Br(t,n))}function Tn(e,t){return typeof e=="function"?e(t):e}function At(e){return e.split("-")[0]}function ct(e){return e.split("-")[1]}function wd(e){return e==="x"?"y":"x"}function Va(e){return e==="y"?"height":"width"}const $b=new Set(["top","bottom"]);function Lt(e){return $b.has(At(e))?"y":"x"}function qa(e){return wd(Lt(e))}function vd(e,t,n){n===void 0&&(n=!1);const r=ct(e),s=qa(e),o=Va(s);let i=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=Ks(i)),[i,Ks(i)]}function Rb(e){const t=Ks(e);return[qs(e),t,qs(t)]}function qs(e){return e.replace(/start|end/g,t=>Tb[t])}const hc=["left","right"],pc=["right","left"],Pb=["top","bottom"],Nb=["bottom","top"];function Ib(e,t,n){switch(e){case"top":case"bottom":return n?t?pc:hc:t?hc:pc;case"left":case"right":return t?Pb:Nb;default:return[]}}function Lb(e,t,n,r){const s=ct(e);let o=Ib(At(e),n==="start",r);return s&&(o=o.map(i=>i+"-"+s),t&&(o=o.concat(o.map(qs)))),o}function Ks(e){return e.replace(/left|right|bottom|top/g,t=>Ab[t])}function Ob(e){return{top:0,right:0,bottom:0,left:0,...e}}function Cd(e){return typeof e!="number"?Ob(e):{top:e,right:e,bottom:e,left:e}}function Ar(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 gc(e,t,n){let{reference:r,floating:s}=e;const o=Lt(t),i=qa(t),a=Va(i),l=At(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(ct(t)){case"start":h[i]-=d*(n&&u?-1:1);break;case"end":h[i]+=d*(n&&u?-1:1);break}return h}const Mb=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}=gc(u,r,l),d=r,h={},p=0;for(let g=0;g<a.length;g++){const{name:C,fn:y}=a[g],{x:v,y:m,data:_,reset:w}=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,[C]:{...h[C],..._}},w&&p<=50&&(p++,typeof w=="object"&&(w.placement&&(d=w.placement),w.rects&&(u=w.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:s}):w.rects),{x:c,y:f}=gc(u,d,l)),g=-1)}return{x:c,y:f,placement:d,strategy:s,middlewareData:h}};async function $o(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}=Tn(t,e),p=Cd(h),C=a[d?f==="floating"?"reference":"floating":f],y=Ar(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(C)))==null||n?C:C.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)),_=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},w=Ar(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:m,strategy:l}):v);return{top:(y.top-w.top+p.top)/_.y,bottom:(w.bottom-y.bottom+p.bottom)/_.y,left:(y.left-w.left+p.left)/_.x,right:(w.right-y.right+p.right)/_.x}}const Db=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}=Tn(e,t)||{};if(u==null)return{};const f=Cd(c),d={x:n,y:r},h=qa(s),p=Va(h),g=await i.getDimensions(u),C=h==="y",y=C?"top":"left",v=C?"bottom":"right",m=C?"clientHeight":"clientWidth",_=o.reference[p]+o.reference[h]-d[h]-o.floating[p],w=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 O=_/2-w/2,H=P/2-g[p]/2-1,N=Br(f[y],H),V=Br(f[v],H),G=N,Z=P-g[p]-V,Q=P/2-g[p]/2+O,oe=Wi(G,Q,Z),B=!l.arrow&&ct(s)!=null&&Q!==oe&&o.reference[p]/2-(Q<G?N:V)-g[p]/2<0,z=B?Q<G?Q-G:Q-Z:0;return{[h]:d[h]+z,data:{[h]:oe,centerOffset:Q-oe-z,...B&&{alignmentOffset:z}},reset:B}}});function Bb(e,t,n){return(e?[...n.filter(s=>ct(s)===e),...n.filter(s=>ct(s)!==e)]:n.filter(s=>At(s)===s)).filter(s=>e?ct(s)===e||(t?qs(s)!==s:!1):!0)}const Fb=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=dc,autoAlignment:h=!0,...p}=Tn(e,t),g=f!==void 0||d===dc?Bb(f||null,h,d):d,C=await $o(t,p),y=((n=i.autoPlacement)==null?void 0:n.index)||0,v=g[y];if(v==null)return{};const m=vd(v,o,await(l.isRTL==null?void 0:l.isRTL(u.floating)));if(a!==v)return{reset:{placement:g[0]}};const _=[C[At(v)],C[m[0]],C[m[1]]],w=[...((r=i.autoPlacement)==null?void 0:r.overflows)||[],{placement:v,overflows:_}],k=g[y+1];if(k)return{data:{index:y+1,overflows:w},reset:{placement:k}};const P=w.map(N=>{const V=ct(N.placement);return[N.placement,V&&c?N.overflows.slice(0,2).reduce((G,Z)=>G+Z,0):N.overflows[0],N.overflows]}).sort((N,V)=>N[1]-V[1]),H=((s=P.filter(N=>N[2].slice(0,ct(N[0])?2:3).every(V=>V<=0))[0])==null?void 0:s[0])||P[0][0];return H!==a?{data:{index:y+1,overflows:w},reset:{placement:H}}:{}}}},Hb=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,...C}=Tn(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const y=At(s),v=Lt(a),m=At(a)===a,_=await(l.isRTL==null?void 0:l.isRTL(u.floating)),w=d||(m||!g?[Ks(a)]:Rb(a)),k=p!=="none";!d&&k&&w.push(...Lb(a,g,p,_));const P=[a,...w],O=await $o(t,C),H=[];let N=((r=o.flip)==null?void 0:r.overflows)||[];if(c&&H.push(O[y]),f){const Q=vd(s,i,_);H.push(O[Q[0]],O[Q[1]])}if(N=[...N,{placement:s,overflows:H}],!H.every(Q=>Q<=0)){var V,G;const Q=(((V=o.flip)==null?void 0:V.index)||0)+1,oe=P[Q];if(oe&&(!(f==="alignment"?v!==Lt(oe):!1)||N.every(D=>Lt(D.placement)===v?D.overflows[0]>0:!0)))return{data:{index:Q,overflows:N},reset:{placement:oe}};let B=(G=N.filter(z=>z.overflows[0]<=0).sort((z,D)=>z.overflows[1]-D.overflows[1])[0])==null?void 0:G.placement;if(!B)switch(h){case"bestFit":{var Z;const z=(Z=N.filter(D=>{if(k){const ie=Lt(D.placement);return ie===v||ie==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(ie=>ie>0).reduce((ie,Rn)=>ie+Rn,0)]).sort((D,ie)=>D[1]-ie[1])[0])==null?void 0:Z[0];z&&(B=z);break}case"initialPlacement":B=a;break}if(s!==B)return{reset:{placement:B}}}return{}}}},jb=new Set(["left","top"]);async function Ub(e,t){const{placement:n,platform:r,elements:s}=e,o=await(r.isRTL==null?void 0:r.isRTL(s.floating)),i=At(n),a=ct(n),l=Lt(n)==="y",u=jb.has(i)?-1:1,c=o&&l?-1:1,f=Tn(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 Gb=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 Ub(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}}}}},Wb=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:C=>{let{x:y,y:v}=C;return{x:y,y:v}}},...l}=Tn(e,t),u={x:n,y:r},c=await $o(t,l),f=Lt(At(s)),d=wd(f);let h=u[d],p=u[f];if(o){const C=d==="y"?"top":"left",y=d==="y"?"bottom":"right",v=h+c[C],m=h-c[y];h=Wi(v,h,m)}if(i){const C=f==="y"?"top":"left",y=f==="y"?"bottom":"right",v=p+c[C],m=p-c[y];p=Wi(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}}}}}},zb=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}=Tn(e,t),c=await $o(t,u),f=At(s),d=ct(s),h=Lt(s)==="y",{width:p,height:g}=o.floating;let C,y;f==="top"||f==="bottom"?(C=f,y=d===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(y=f,C=d==="end"?"top":"bottom");const v=g-c.top-c.bottom,m=p-c.left-c.right,_=Br(g-c[C],v),w=Br(p-c[y],m),k=!t.middlewareData.shift;let P=_,O=w;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(O=m),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(P=v),k&&!d){const N=pn(c.left,0),V=pn(c.right,0),G=pn(c.top,0),Z=pn(c.bottom,0);h?O=p-2*(N!==0||V!==0?N+V:pn(c.left,c.right)):P=g-2*(G!==0||Z!==0?G+Z:pn(c.top,c.bottom))}await l({...t,availableWidth:O,availableHeight:P});const H=await i.getDimensions(a.floating);return p!==H.width||g!==H.height?{reset:{rects:!0}}:{}}}};function tt(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ct(e){return tt(e).getComputedStyle(e)}const mc=Math.min,Tr=Math.max,Xs=Math.round;function xd(e){const t=Ct(e);let n=parseFloat(t.width),r=parseFloat(t.height);const s=e.offsetWidth,o=e.offsetHeight,i=Xs(n)!==s||Xs(r)!==o;return i&&(n=s,r=o),{width:n,height:r,fallback:i}}function on(e){return kd(e)?(e.nodeName||"").toLowerCase():""}let hs;function Sd(){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 xt(e){return e instanceof tt(e).HTMLElement}function en(e){return e instanceof tt(e).Element}function kd(e){return e instanceof tt(e).Node}function yc(e){return typeof ShadowRoot>"u"?!1:e instanceof tt(e).ShadowRoot||e instanceof ShadowRoot}function Ro(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=Ct(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(s)}function Vb(e){return["table","td","th"].includes(on(e))}function zi(e){const t=/firefox/i.test(Sd()),n=Ct(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 Ed(){return!/^((?!chrome|android).)*safari/i.test(Sd())}function Ka(e){return["html","body","#document"].includes(on(e))}function Ad(e){return en(e)?e:e.contextElement}const Td={x:1,y:1};function Xn(e){const t=Ad(e);if(!xt(t))return Td;const n=t.getBoundingClientRect(),{width:r,height:s,fallback:o}=xd(t);let i=(o?Xs(n.width):n.width)/r,a=(o?Xs(n.height):n.height)/s;return i&&Number.isFinite(i)||(i=1),a&&Number.isFinite(a)||(a=1),{x:i,y:a}}function Fr(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=Td;t&&(r?en(r)&&(l=Xn(r)):l=Xn(e));const u=a?tt(a):window,c=!Ed()&&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=tt(a),C=r&&en(r)?tt(r):r;let y=g.frameElement;for(;y&&r&&C!==g;){const v=Xn(y),m=y.getBoundingClientRect(),_=getComputedStyle(y);m.x+=(y.clientLeft+parseFloat(_.paddingLeft))*v.x,m.y+=(y.clientTop+parseFloat(_.paddingTop))*v.y,f*=v.x,d*=v.y,h*=v.x,p*=v.y,f+=m.x,d+=m.y,y=tt(y).frameElement}}return{width:h,height:p,top:d,right:f+h,bottom:d+p,left:f,x:f,y:d}}function tn(e){return((kd(e)?e.ownerDocument:e.document)||window.document).documentElement}function Po(e){return en(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function $d(e){return Fr(tn(e)).left+Po(e).scrollLeft}function Hr(e){if(on(e)==="html")return e;const t=e.assignedSlot||e.parentNode||yc(e)&&e.host||tn(e);return yc(t)?t.host:t}function Rd(e){const t=Hr(e);return Ka(t)?t.ownerDocument.body:xt(t)&&Ro(t)?t:Rd(t)}function Js(e,t){var n;t===void 0&&(t=[]);const r=Rd(e),s=r===((n=e.ownerDocument)==null?void 0:n.body),o=tt(r);return s?t.concat(o,o.visualViewport||[],Ro(r)?r:[]):t.concat(r,Js(r))}function _c(e,t,n){return t==="viewport"?Ar((function(r,s){const o=tt(r),i=tn(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=Ed();(d||!d&&s==="fixed")&&(c=a.offsetLeft,f=a.offsetTop)}return{width:l,height:u,x:c,y:f}})(e,n)):en(t)?Ar((function(r,s){const o=Fr(r,!0,s==="fixed"),i=o.top+r.clientTop,a=o.left+r.clientLeft,l=xt(r)?Xn(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)):Ar((function(r){const s=tn(r),o=Po(r),i=r.ownerDocument.body,a=Tr(s.scrollWidth,s.clientWidth,i.scrollWidth,i.clientWidth),l=Tr(s.scrollHeight,s.clientHeight,i.scrollHeight,i.clientHeight);let u=-o.scrollLeft+$d(r);const c=-o.scrollTop;return Ct(i).direction==="rtl"&&(u+=Tr(s.clientWidth,i.clientWidth)-a),{width:a,height:l,x:u,y:c}})(tn(e)))}function bc(e){return xt(e)&&Ct(e).position!=="fixed"?e.offsetParent:null}function wc(e){const t=tt(e);let n=bc(e);for(;n&&Vb(n)&&Ct(n).position==="static";)n=bc(n);return n&&(on(n)==="html"||on(n)==="body"&&Ct(n).position==="static"&&!zi(n))?t:n||(function(r){let s=Hr(r);for(;xt(s)&&!Ka(s);){if(zi(s))return s;s=Hr(s)}return null})(e)||t}function qb(e,t,n){const r=xt(t),s=tn(t),o=Fr(e,!0,n==="fixed",t);let i={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(r||!r&&n!=="fixed")if((on(t)!=="body"||Ro(s))&&(i=Po(t)),xt(t)){const l=Fr(t,!0);a.x=l.x+t.clientLeft,a.y=l.y+t.clientTop}else s&&(a.x=$d(s));return{x:o.left+i.scrollLeft-a.x,y:o.top+i.scrollTop-a.y,width:o.width,height:o.height}}const Kb={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=Js(u).filter((C=>en(C)&&on(C)!=="body")),h=null;const p=Ct(u).position==="fixed";let g=p?Hr(u):u;for(;en(g)&&!Ka(g);){const C=Ct(g),y=zi(g);(p?y||h:y||C.position!=="static"||!h||!["absolute","fixed"].includes(h.position))?h=C:d=d.filter((v=>v!==g)),g=Hr(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=_c(t,c,s);return u.top=Tr(f.top,u.top),u.right=mc(f.right,u.right),u.bottom=mc(f.bottom,u.bottom),u.left=Tr(f.left,u.left),u}),_c(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=xt(n),o=tn(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")&&((on(n)!=="body"||Ro(o))&&(i=Po(n)),xt(n))){const u=Fr(n);a=Xn(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:en,getDimensions:function(e){return xt(e)?xd(e):e.getBoundingClientRect()},getOffsetParent:wc,getDocumentElement:tn,getScale:Xn,async getElementRects(e){let{reference:t,floating:n,strategy:r}=e;const s=this.getOffsetParent||wc,o=this.getDimensions;return{reference:qb(t,await s(n),r),floating:{x:0,y:0,...await o(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Ct(e).direction==="rtl"},Xb=(e,t,n)=>{const r=new Map,s={platform:Kb,...n},o={...s.platform,_c:r};return Mb(e,t,{...s,platform:o})};function Pd(e,t){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(typeof t[n]=="object"&&e[n]?Pd(e[n],t[n]):e[n]=t[n])}const ut={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 jr(e,t){let n=ut.themes[e]||{},r;do r=n[t],typeof r>"u"?n.$extend?n=ut.themes[n.$extend]||{}:(n=null,r=ut[t]):n=null;while(n);return r}function Jb(e){const t=[e];let n=ut.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=ut.themes[n.$extend]||{}):n=null;while(n);return t.map(r=>`v-popper--theme-${r}`)}function vc(e){const t=[e];let n=ut.themes[e]||{};do n.$extend?(t.push(n.$extend),n=ut.themes[n.$extend]||{}):n=null;while(n);return t}let ir=!1;if(typeof window<"u"){ir=!1;try{const e=Object.defineProperty({},"passive",{get(){ir=!0}});window.addEventListener("test",null,e)}catch{}}let Nd=!1;typeof window<"u"&&typeof navigator<"u"&&(Nd=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Id=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),Cc={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},xc={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function Sc(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1)}function oi(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const it=[];let fn=null;const kc={};function Ec(e){let t=kc[e];return t||(t=kc[e]=[]),t}let Vi=function(){};typeof window<"u"&&(Vi=window.Element);function se(e){return function(t){return jr(t.theme,e)}}const ii="__floating-vue__popper",Ld=()=>ht({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:se("disabled")},positioningDisabled:{type:Boolean,default:se("positioningDisabled")},placement:{type:String,default:se("placement"),validator:e=>Id.includes(e)},delay:{type:[String,Number,Object],default:se("delay")},distance:{type:[Number,String],default:se("distance")},skidding:{type:[Number,String],default:se("skidding")},triggers:{type:Array,default:se("triggers")},showTriggers:{type:[Array,Function],default:se("showTriggers")},hideTriggers:{type:[Array,Function],default:se("hideTriggers")},popperTriggers:{type:Array,default:se("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:se("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:se("popperHideTriggers")},container:{type:[String,Object,Vi,Boolean],default:se("container")},boundary:{type:[String,Vi],default:se("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:se("strategy")},autoHide:{type:[Boolean,Function],default:se("autoHide")},handleResize:{type:Boolean,default:se("handleResize")},instantMove:{type:Boolean,default:se("instantMove")},eagerMount:{type:Boolean,default:se("eagerMount")},popperClass:{type:[String,Array,Object],default:se("popperClass")},computeTransformOrigin:{type:Boolean,default:se("computeTransformOrigin")},autoMinSize:{type:Boolean,default:se("autoMinSize")},autoSize:{type:[Boolean,String],default:se("autoSize")},autoMaxSize:{type:Boolean,default:se("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:se("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:se("preventOverflow")},overflowPadding:{type:[Number,String],default:se("overflowPadding")},arrowPadding:{type:[Number,String],default:se("arrowPadding")},arrowOverflow:{type:Boolean,default:se("arrowOverflow")},flip:{type:Boolean,default:se("flip")},shift:{type:Boolean,default:se("shift")},shiftCrossAxis:{type:Boolean,default:se("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:se("noAutoFocus")},disposeTimeout:{type:Number,default:se("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(Gb({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(Fb({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(Wb({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(Hb({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(Db({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(zb({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 Xb(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),fn&&this.instantMove&&fn.instantMove&&fn!==this.parentPopper){fn.$_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&&(fn=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([...Js(this.$_referenceNode),...Js(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<it.length;n++)t=it[n],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}it.push(this),document.body.classList.add("v-popper--some-open");for(const t of vc(this.theme))Ec(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,Sc(it,this),it.length===0&&document.body.classList.remove("v-popper--some-open");for(const n of vc(this.theme)){const r=Ec(n);Sc(r,this),r.length===0&&document.body.classList.remove(`v-popper--some-open--${n}`)}fn===this&&(fn=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,Cc,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Cc,this.popperTriggers,this.popperShowTriggers,e);const t=n=>{n.usedByTooltip||this.hide({event:n})};this.$_registerTriggerListeners(this.$_targetNodes,xc,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],xc,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,ir?{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($r>=e.left&&$r<=e.right&&Rr>=e.top&&Rr<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),n=$r-jt,r=Rr-Ut,s=t.left+t.width/2-jt+(t.top+t.height/2)-Ut+t.width+t.height,o=jt+n*s,i=Ut+r*s;return ps(jt,Ut,o,i,t.left,t.top,t.left,t.bottom)||ps(jt,Ut,o,i,t.left,t.top,t.right,t.top)||ps(jt,Ut,o,i,t.right,t.top,t.right,t.bottom)||ps(jt,Ut,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(Nd){const e=ir?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>Ac(t,!0),e),document.addEventListener("touchend",t=>Tc(t,!0),e)}else window.addEventListener("mousedown",e=>Ac(e,!1),!0),window.addEventListener("click",e=>Tc(e,!1),!0);window.addEventListener("resize",Yb)}function Ac(e,t){if(ut.autoHideOnMousedown)Od(e,t);else for(let n=0;n<it.length;n++){const r=it[n];try{r.mouseDownContains=r.popperNode().contains(e.target)}catch{}}}function Tc(e,t){ut.autoHideOnMousedown||Od(e,t)}function Od(e,t){const n={};for(let r=it.length-1;r>=0;r--){const s=it[r];try{const o=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(e.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!n[s.randomId]&&$c(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&&$c(i,i.containsGlobalTarget,e);)i.$_handleGlobalClose(e,t),i=i.parentPopper}})}catch{}}}function $c(e,t,n){return n.closeAllPopover||n.closePopover&&t||Qb(e,n)&&!t}function Qb(e,t){if(typeof e.autoHide=="function"){const n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function Yb(){for(let e=0;e<it.length;e++)it[e].$_computePosition()}let jt=0,Ut=0,$r=0,Rr=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{jt=$r,Ut=Rr,$r=e.clientX,Rr=e.clientY},ir?{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 Zb={extends:Ld()},No=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n};function ew(e,t,n,r,s,o){return K(),ce("div",{ref:"reference",class:Ae(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[Be(e.$slots,"default",Ru(Oa(e.slotData)))],2)}const tw=No(Zb,[["render",ew]]);function nw(){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 Es;function qi(){qi.init||(qi.init=!0,Es=nw()!==-1)}var Io={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){qi(),Qr(()=>{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",Es&&this.$el.appendChild(e),e.data="about:blank",Es||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&&(!Es&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const rw=Jp();Kp("data-v-b329ee4c");const sw={class:"resize-observer",tabindex:"-1"};Xp();const ow=rw((e,t,n,r,s,o)=>(K(),Re("div",sw)));Io.render=ow;Io.__scopeId="data-v-b329ee4c";Io.__file="src/components/ResizeObserver.vue";const Md=(e="theme")=>({computed:{themeClass(){return Jb(this[e])}}}),iw=ht({name:"VPopperContent",components:{ResizeObserver:Io},mixins:[Md()],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}}}),aw=["id","aria-hidden","tabindex","data-popper-placement"],lw={ref:"inner",class:"v-popper__inner"},cw=j("div",{class:"v-popper__arrow-outer"},null,-1),uw=j("div",{class:"v-popper__arrow-inner"},null,-1),fw=[cw,uw];function dw(e,t,n,r,s,o){const i=sn("ResizeObserver");return K(),ce("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:bn(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]=$m(a=>e.autoHide&&e.$emit("hide"),["esc"]))},[j("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=a=>e.autoHide&&e.$emit("hide"))}),j("div",{class:"v-popper__wrapper",style:bn(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[j("div",lw,[e.mounted?(K(),ce(Ee,{key:0},[j("div",null,[Be(e.$slots,"default")]),e.handleResize?(K(),Re(i,{key:0,onNotify:t[1]||(t[1]=a=>e.$emit("resize",a))})):wt("",!0)],64)):wt("",!0)],512),j("div",{ref:"arrow",class:"v-popper__arrow-container",style:bn(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},fw,4)],4)],46,aw)}const Dd=No(iw,[["render",dw]]),Bd={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 Ki=function(){};typeof window<"u"&&(Ki=window.Element);const hw=ht({name:"VPopperWrapper",components:{Popper:tw,PopperContent:Dd},mixins:[Bd,Md("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,Ki,Boolean],default:void 0},boundary:{type:[String,Ki],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 pw(e,t,n,r,s,o){const i=sn("PopperContent"),a=sn("Popper");return K(),Re(a,xo({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:ae(({popperId:l,isShown:u,shouldMountContent:c,skipTransition:f,autoHide:d,show:h,hide:p,handleResize:g,onResize:C,classes:y,result:v})=>[Be(e.$slots,"default",{shown:u,show:h,hide:p}),U(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:C},{default:ae(()=>[Be(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 Xa=No(hw,[["render",pw]]),gw={...Xa,name:"VDropdown",vPopperTheme:"dropdown"},mw={...Xa,name:"VMenu",vPopperTheme:"menu"},yw={...Xa,name:"VTooltip",vPopperTheme:"tooltip"},_w=ht({name:"VTooltipDirective",components:{Popper:Ld(),PopperContent:Dd},mixins:[Bd],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>jr(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>jr(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}}}),bw=["innerHTML"],ww=["textContent"];function vw(e,t,n,r,s,o){const i=sn("PopperContent"),a=sn("Popper");return K(),Re(a,xo({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:ae(({popperId:l,isShown:u,shouldMountContent:c,skipTransition:f,autoHide:d,hide:h,handleResize:p,onResize:g,classes:C,result:y})=>[U(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:C,result:y,onHide:h,onResize:g},{default:ae(()=>[e.html?(K(),ce("div",{key:0,innerHTML:e.finalContent},null,8,bw)):(K(),ce("div",{key:1,textContent:Qt(e.finalContent)},null,8,ww))]),_: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 Cw=No(_w,[["render",vw]]),Fd="v-popper--has-tooltip";function xw(e,t){let n=e.placement;if(!n&&t)for(const r of Id)t[r]&&(n=r);return n||(n=jr(e.theme||"tooltip","placement")),n}function Hd(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=xw(r,n),r.targetNodes=()=>[e],r.referenceNode=()=>e,r}let ai,Ur,Sw=0;function kw(){if(ai)return;Ur=ye([]),ai=Hf({name:"VTooltipDirectiveApp",setup(){return{directives:Ur}},render(){return this.directives.map(t=>sr(Cw,{...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 Ew(e,t,n){kw();const r=ye(Hd(e,t,n)),s=ye(!1),o={id:Sw++,options:r,shown:s};return Ur.value.push(o),e.classList&&e.classList.add(Fd),e.$_popper={options:r,item:o,show(){s.value=!0},hide(){s.value=!1}}}function jd(e){if(e.$_popper){const t=Ur.value.indexOf(e.$_popper.item);t!==-1&&Ur.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Fd)}function Rc(e,{value:t,modifiers:n}){const r=Hd(e,t,n);if(!r.content||jr(r.theme||"tooltip","disabled"))jd(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=r):s=Ew(e,t,n),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const Aw={beforeMount:Rc,updated:Rc,beforeUnmount(e){jd(e)}};function Pc(e){e.addEventListener("mousedown",Qs),e.addEventListener("click",Qs),e.addEventListener("touchstart",Ud,ir?{passive:!0}:!1)}function Nc(e){e.removeEventListener("mousedown",Qs),e.removeEventListener("click",Qs),e.removeEventListener("touchstart",Ud),e.removeEventListener("touchend",Gd),e.removeEventListener("touchcancel",Wd)}function Qs(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function Ud(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",Gd),t.addEventListener("touchcancel",Wd)}}function Gd(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 Wd(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}const Tw={beforeMount(e,{value:t,modifiers:n}){e.$_closePopoverModifiers=n,(typeof t>"u"||t)&&Pc(e)},updated(e,{value:t,oldValue:n,modifiers:r}){e.$_closePopoverModifiers=r,t!==n&&(typeof t>"u"||t?Pc(e):Nc(e))},beforeUnmount(e){Nc(e)}};function $w(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,Pd(ut,t),e.directive("tooltip",Aw),e.directive("close-popper",Tw),e.component("VTooltip",yw),e.component("VDropdown",gw),e.component("VMenu",mw))}const Rw={version:"5.2.2",install:$w,options:ut},Pw=pt(e=>{e.vueApp.use(Rw)}),Nw=[W_,X_,Y_,bb,wb,vb,Cb,xb,Sb,kb,Pw],Ja={__name:"NIcon",props:{icon:{type:String,required:!1}},setup(e){return(t,n)=>(K(),ce("div",{class:Ae(["n-icon",e.icon])},null,2))}},Lo=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},Iw={},Lw={class:"n-badge"};function Ow(e,t){return K(),ce("span",Lw,[Be(e.$slots,"default")])}const Mw=Object.assign(Lo(Iw,[["render",Ow]]),{__name:"NBadge"}),Dw={key:0,"i-carbon:arrow-up-right":"","translate-y--1":"","text-xs":"",op50:""},Bw={__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=Se(()=>t.href||t.to);return(r,s)=>{const o=za;return K(),Re(o,xo(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:ae(()=>[Be(r.$slots,"default"),n.value&&e.target==="_blank"?(K(),ce("div",Dw)):wt("",!0)]),_:3},16,["class"])}}},Fw={},Hw={height:"22",viewBox:"0 0 1204 200",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function jw(e,t){return K(),ce("svg",Hw,[...t[0]||(t[0]=[Jg('<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 Uw=Object.assign(Lo(Fw,[["render",jw]]),{__name:"NuxtSeoLogo"}),Gw={},Ww={class:"n-loading n-panel-grids-center"},zw={class:"flex flex-col animate-pulse items-center text-lg"};function Vw(e,t){return K(),ce("div",Ww,[j("div",zw,[t[1]||(t[1]=j("div",{class:"i-carbon-circle-dash animate-spin text-4xl op50"},null,-1)),Be(e.$slots,"default",{},()=>[t[0]||(t[0]=be(" Loading... ",-1))])])])}const qw=Object.assign(Lo(Gw,[["render",Vw]]),{__name:"NLoading"}),Kw="modulepreload",Xw=function(e,t){return new URL(e,t).href},Ic={},jn=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=Xw(c,r),c in Ic)return;Ic[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":Kw,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 $e=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function Jw(e){return Qa(e)}function Qa(e){return Array.isArray(e)?Qw(e):e instanceof RegExp?e:typeof e=="object"?Yw(e):e}function Qw(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=Qa(e[n]);return t}function Yw(e){let t={};for(let n in e)t[n]=Qa(e[n]);return t}function zd(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function Vd(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?Vd(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 qd(e,t){return e<t?-1:e>t?1:0}function Kd(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=qd(e[s],t[s]);if(o!==0)return o}return 0}return n-r}function Lc(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 Xd(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Jd=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}},Ys=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(t0(e),t)}static createFromParsedTheme(e,t){return r0(e,t)}_cachedMatchRoot=new Jd(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=>Zw(e.parent,s.parentScopes));return r?new Qd(r.fontStyle,r.foreground,r.background):null}},ci=class As{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new As(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new As(n,t[r]);return n}push(t){return new As(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 Zw(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&&!e0(e.scopeName,r);){if(s)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function e0(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var Qd=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function t0(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"&&Lc(i.settings.foreground)&&(u=i.settings.foreground);let c=null;typeof i.settings.background=="string"&&Lc(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],C=null;p.length>1&&(C=p.slice(0,p.length-1),C.reverse()),n[r++]=new n0(g,C,s,l,u,c)}}return n}var n0=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}},Fe=(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))(Fe||{});function r0(e,t){e.sort((l,u)=>{let c=qd(l.scope,u.scope);return c!==0||(c=Kd(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 s0(t),i=new Qd(n,o.getId(r),o.getId(s)),a=new i0(new Xi(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 Ys(o,i,a)}var s0=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)}},o0=Object.freeze([]),Xi=class Yd{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,r,s,o){this.scopeDepth=t,this.parentScopes=n||o0,this.fontStyle=r,this.foreground=s,this.background=o}clone(){return new Yd(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)}},i0=class Ji{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(Ji._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 Ji(this._mainRule.clone(),Xi.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(Kd(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 Xi(t,n,r,s,o))}},ar=class Ye{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=Ye.getLanguageId(t),r=Ye.getTokenType(t),s=Ye.getFontStyle(t),o=Ye.getForeground(t),i=Ye.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=Ye.getLanguageId(t),u=Ye.getTokenType(t),c=Ye.containsBalancedBrackets(t)?1:0,f=Ye.getFontStyle(t),d=Ye.getForeground(t),h=Ye.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 Zs(e,t){const n=[],r=a0(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(Oc(s)){const l=[];do l.push(s),s=r.next();while(Oc(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 Oc(e){return!!e&&!!e.match(/[\w\.:]+/)}function a0(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 Zd(e){typeof e.dispose=="function"&&e.dispose()}var Gr=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},l0=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},c0=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))}},u0=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Gr(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const e=this.Q;this.Q=[];const t=new c0;for(const n of e)f0(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof Gr){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 f0(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 Gr?Ts({baseGrammar:o,selfGrammar:s},r):Qi(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 Gr(a))}function Qi(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];eo([r],t,n)}}function Ts(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&eo(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&eo(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function eo(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const s=r.repository?zd({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&eo(r.patterns,{...t,repository:s},n);const o=r.include;if(!o)continue;const i=eh(o);switch(i.kind){case 0:Ts({...t,selfGrammar:t.baseGrammar},n);break;case 1:Ts(t,n);break;case 2:Qi(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?Qi(i.ruleName,l,n):Ts(l,n)}else i.kind===4?n.add(new l0(i.scopeName,i.ruleName)):n.add(new Gr(i.scopeName));break}}}var d0=class{kind=0},h0=class{kind=1},p0=class{constructor(e){this.ruleName=e}kind=2},g0=class{constructor(e){this.scopeName=e}kind=3},m0=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function eh(e){if(e==="$base")return new d0;if(e==="$self")return new h0;const t=e.indexOf("#");if(t===-1)return new g0(e);if(t===0)return new p0(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new m0(n,r)}}var y0=/\\(\d+)/,Mc=/\\(\d+)/g,_0=-1,th=-2;var Zr=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?`${Vd(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)}},b0=class extends Zr{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!")}},w0=class extends Zr{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,s){super(e,t,n,null),this._match=new Wr(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 zr,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Dc=class extends Zr{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 zr,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Yi=class extends Zr{_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 Wr(s,this.id),this.beginCaptures=o,this._end=new Wr(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 zr;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}},to=class extends Zr{_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 Wr(s,this.id),this.beginCaptures=o,this.whileCaptures=a,this._while=new Wr(i,th),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 zr;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 zr,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||""),this._cachedCompiledWhilePatterns}},nh=class Oe{static createCaptureRule(t,n,r,s,o){return t.registerRule(i=>new b0(n,i,r,s,o))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(s=>{if(t.id=s,t.match)return new w0(t.$vscodeTextmateLocation,t.id,t.name,t.match,Oe._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=zd({},r,t.repository));let o=t.patterns;return typeof o>"u"&&t.include&&(o=[{include:t.include}]),new Dc(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,Oe._compilePatterns(o,n,r))}return t.while?new to(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Oe._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,Oe._compileCaptures(t.whileCaptures||t.captures,n,r),Oe._compilePatterns(t.patterns,n,r)):new Yi(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Oe._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,Oe._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,Oe._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=Oe.getCompiledRuleId(t[i],n,r)),s[a]=Oe.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=eh(a.include);switch(u.kind){case 0:case 1:l=Oe.getCompiledRuleId(r[a.include],n,r);break;case 2:let c=r[u.ruleName];c&&(l=Oe.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=Oe.getCompiledRuleId(p,n,h.repository))}else l=Oe.getCompiledRuleId(h.repository.$self,n,h.repository);break}}else l=Oe.getCompiledRuleId(a,n,r);if(l!==-1){const u=n.getRule(l);let c=!1;if((u instanceof Dc||u instanceof Yi||u instanceof to)&&u.hasMissingPatterns&&u.patterns.length===0&&(c=!0),c)continue;s.push(l)}}return{patterns:s,hasMissingPatterns:(t?t.length:0)!==s.length}}},Wr=class rh{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=y0.test(this.source):this.hasBackReferences=!1}clone(){return new rh(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 Mc.lastIndex=0,this.source.replace(Mc,(s,o)=>Xd(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}},zr=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 Bc(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 Bc(e,r,this._items.map(s=>s.ruleId))}},Bc=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(`
`)}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}},v0=class Zi{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,n){this._defaultAttributes=new ui(t,8),this._embeddedLanguagesMatcher=new C0(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?Zi._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new ui(0,0);_getBasicScopeAttributes=new Jd(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(Zi.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/},C0=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])=>Xd(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 sh(e,t,n,r,s,o,i,a){const l=t.content.length;let u=!1,c=-1;if(i){const h=x0(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=S0(e,t,n,r,s,c);if(!h){o.produce(s,l),u=!0;return}const p=h.captureIndices,g=h.matchedRuleId,C=p&&p.length>0?p[0].end>r:!1;if(g===_0){const y=s.getRule(e);o.produce(s,p[0].start),s=s.withContentNameScopesList(s.nameScopesList),wr(e,t,n,s,o,y.endCaptures,p),o.produce(s,p[0].end);const v=s;if(s=s.parent,c=v.getAnchorPos(),!C&&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),_=s.contentNameScopesList.pushAttributed(m,e);if(s=s.push(g,r,c,p[0].end===l,null,_,_),y instanceof Yi){const w=y;wr(e,t,n,s,o,w.beginCaptures,p),o.produce(s,p[0].end),c=p[0].end;const k=w.getContentName(t.content,p),P=_.pushAttributed(k,e);if(s=s.withContentNameScopesList(P),w.endHasBackReferences&&(s=s.withEndRule(w.getEndWithResolvedBackReferences(t.content,p))),!C&&v.hasSameRuleAs(s)){s=s.pop(),o.produce(s,l),u=!0;return}}else if(y instanceof to){const w=y;wr(e,t,n,s,o,w.beginCaptures,p),o.produce(s,p[0].end),c=p[0].end;const k=w.getContentName(t.content,p),P=_.pushAttributed(k,e);if(s=s.withContentNameScopesList(P),w.whileHasBackReferences&&(s=s.withEndRule(w.getWhileWithResolvedBackReferences(t.content,p))),!C&&v.hasSameRuleAs(s)){s=s.pop(),o.produce(s,l),u=!0;return}}else if(wr(e,t,n,s,o,y.captures,p),o.produce(s,p[0].end),s=s.pop(),!C){s=s.safePop(),o.produce(s,l),u=!0;return}}p[0].end>r&&(r=p[0].end,n=!1)}}function x0(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 to&&a.push({rule:u,stack:l})}for(let l=a.pop();l;l=a.pop()){const{ruleScanner:u,findOptions:c}=A0(l.rule,e,l.stack.endRule,n,r===i),f=u.findNextMatchSync(t,r,c);if(f){if(f.ruleId!==th){s=l.stack.pop();break}f.captureIndices&&f.captureIndices.length&&(o.produce(l.stack,f.captureIndices[0].start),wr(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 S0(e,t,n,r,s,o){const i=k0(e,t,n,r,s,o),a=e.getInjections();if(a.length===0)return i;const l=E0(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 k0(e,t,n,r,s,o){const i=s.getRule(e),{ruleScanner:a,findOptions:l}=oh(i,e,s.endRule,n,r===o),u=a.findNextMatchSync(t,r,l);return u?{captureIndices:u.captureIndices,matchedRuleId:u.ruleId}:null}function E0(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:C,findOptions:y}=oh(g,t,null,r,s===i),v=C.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 oh(e,t,n,r,s){return{ruleScanner:e.compileAG(t,n,r,s),findOptions:0}}function A0(e,t,n,r,s){return{ruleScanner:e.compileWhileAG(t,n,r,s),findOptions:0}}function wr(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),C=r.contentNameScopesList.pushAttributed(g,e),y=d.getContentName(a,i),v=C.pushAttributed(y,e),m=r.push(d.retokenizeCapturedWithRuleId,h.start,-1,!1,null,C,v),_=e.createOnigString(a.substring(0,h.end));sh(e,_,n&&h.start===0,h.start,m,s,!1,0),Zd(_);continue}const p=d.getName(a,i);if(p!==null){const C=(u.length>0?u[u.length-1].scopes:r.contentNameScopesList).pushAttributed(p,e);u.push(new T0(C,h.end))}}for(;u.length>0;)s.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}var T0=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function $0(e,t,n,r,s,o,i,a){return new P0(e,t,n,r,s,o,i,a)}function Hc(e,t,n,r,s){const o=Zs(t,no),i=nh.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 no(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(R0(t[s],r))return n=s+1,!0;return!1})}function R0(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 P0=class{constructor(e,t,n,r,s,o,i,a){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=a,this._basicScopeAttributesProvider=new v0(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=jc(t,null),this._injections=null,this._tokenTypeMatchers=[],s)for(const l of Object.keys(s)){const u=Zs(l,no);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)Hc(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&&Hc(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]=jc(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=nh.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let s;if(!t||t===ea.NULL){s=!0;const u=this._basicScopeAttributesProvider.getDefaultAttributes(),c=this.themeProvider.getDefaults(),f=ar.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=Pr.createRootAndLookUpScopeName(d,f,this):h=Pr.createRoot("unknown",f),t=new ea(null,this._rootId,-1,-1,!1,null,h,h)}else s=!1,t.reset();e=e+`
`;const o=this.createOnigString(e),i=o.content.length,a=new I0(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=sh(this,o,s,0,t,a,!0,r);return Zd(o),{lineLength:i,lineTokens:a,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function jc(e,t){return e=Jw(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 Pr=class yt{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 yt(r,s,o.encodedTokenAttributes);return r}static createRoot(t,n){return new yt(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=yt.mergeAttributes(n,s,i);return new yt(null,o,a)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return yt.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),ar.set(t,n.languageId,n.tokenType,null,s,o,i)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return yt._pushAttributed(this,t,n);const r=t.split(/ /g);let s=this;for(const o of r)s=yt._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=yt.mergeAttributes(t.tokenAttributes,s,i);return new yt(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}},ea=class gn{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 gn(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:gn._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?Pr.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(){gn._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,s,o,i,a){return new gn(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 gn(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=Pr.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new gn(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,Pr.fromExtension(r,n.contentNameScopesList))}},N0=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):Zs(n,no).map(r=>r.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>Zs(n,no).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}},I0=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=ar.set(r,0,i.type,null,-1,0,0));this.balancedBracketSelectors&&(s=this.balancedBracketSelectors.match(o))}if(s&&(r=ar.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}},L0=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,$0(e,o,t,n,r,s,this,this._onigLib))}return this._grammars.get(e)}},O0=class{_options;_syncRegistry;_ensureGrammarCache;constructor(t){this._options=t,this._syncRegistry=new L0(Ys.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(Ys.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 N0(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,s,o){const i=new u0(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)}},ta=ea.NULL;const M0=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class es{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}es.prototype.normal={};es.prototype.property={};es.prototype.space=void 0;function ih(e,t){const n={},r={};for(const s of e)Object.assign(n,s.property),Object.assign(r,s.normal);return new es(n,r,t)}function na(e){return e.toLowerCase()}class Ve{constructor(t,n){this.attribute=n,this.property=t}}Ve.prototype.attribute="";Ve.prototype.booleanish=!1;Ve.prototype.boolean=!1;Ve.prototype.commaOrSpaceSeparated=!1;Ve.prototype.commaSeparated=!1;Ve.prototype.defined=!1;Ve.prototype.mustUseProperty=!1;Ve.prototype.number=!1;Ve.prototype.overloadedBoolean=!1;Ve.prototype.property="";Ve.prototype.spaceSeparated=!1;Ve.prototype.space=void 0;let D0=0;const ne=$n(),xe=$n(),ra=$n(),R=$n(),ge=$n(),Jn=$n(),Xe=$n();function $n(){return 2**++D0}const sa=Object.freeze(Object.defineProperty({__proto__:null,boolean:ne,booleanish:xe,commaOrSpaceSeparated:Xe,commaSeparated:Jn,number:R,overloadedBoolean:ra,spaceSeparated:ge},Symbol.toStringTag,{value:"Module"})),fi=Object.keys(sa);class Ya extends Ve{constructor(t,n,r,s){let o=-1;if(super(t,n),Uc(this,"space",s),typeof r=="number")for(;++o<fi.length;){const i=fi[o];Uc(this,fi[o],(r&sa[i])===sa[i])}}}Ya.prototype.defined=!0;function Uc(e,t,n){n&&(e[t]=n)}function cr(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[na(r)]=r,n[na(o.attribute)]=r}return new es(t,n,e.space)}const ah=cr({properties:{ariaActiveDescendant:null,ariaAtomic:xe,ariaAutoComplete:null,ariaBusy:xe,ariaChecked:xe,ariaColCount:R,ariaColIndex:R,ariaColSpan:R,ariaControls:ge,ariaCurrent:null,ariaDescribedBy:ge,ariaDetails:null,ariaDisabled:xe,ariaDropEffect:ge,ariaErrorMessage:null,ariaExpanded:xe,ariaFlowTo:ge,ariaGrabbed:xe,ariaHasPopup:null,ariaHidden:xe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ge,ariaLevel:R,ariaLive:null,ariaModal:xe,ariaMultiLine:xe,ariaMultiSelectable:xe,ariaOrientation:null,ariaOwns:ge,ariaPlaceholder:null,ariaPosInSet:R,ariaPressed:xe,ariaReadOnly:xe,ariaRelevant:null,ariaRequired:xe,ariaRoleDescription:ge,ariaRowCount:R,ariaRowIndex:R,ariaRowSpan:R,ariaSelected:xe,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 lh(e,t){return t in e?e[t]:t}function ch(e,t){return lh(e,t.toLowerCase())}const B0=cr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Jn,acceptCharset:ge,accessKey:ge,action:null,allow:null,allowFullScreen:ne,allowPaymentRequest:ne,allowUserMedia:ne,alt:null,as:null,async:ne,autoCapitalize:null,autoComplete:ge,autoFocus:ne,autoPlay:ne,blocking:ge,capture:null,charSet:null,checked:ne,cite:null,className:ge,cols:R,colSpan:null,content:null,contentEditable:xe,controls:ne,controlsList:ge,coords:R|Jn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ne,defer:ne,dir:null,dirName:null,disabled:ne,download:ra,draggable:xe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ne,formTarget:null,headers:ge,height:R,hidden:ra,high:R,href:null,hrefLang:null,htmlFor:ge,httpEquiv:ge,id:null,imageSizes:null,imageSrcSet:null,inert:ne,inputMode:null,integrity:null,is:null,isMap:ne,itemId:null,itemProp:ge,itemRef:ge,itemScope:ne,itemType:ge,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ne,low:R,manifest:null,max:null,maxLength:R,media:null,method:null,min:null,minLength:R,multiple:ne,muted:ne,name:null,nonce:null,noModule:ne,noValidate:ne,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:ne,optimum:R,pattern:null,ping:ge,placeholder:null,playsInline:ne,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ne,referrerPolicy:null,rel:ge,required:ne,reversed:ne,rows:R,rowSpan:R,sandbox:ge,scope:null,scoped:ne,seamless:ne,selected:ne,shadowRootClonable:ne,shadowRootDelegatesFocus:ne,shadowRootMode:null,shape:null,size:R,sizes:null,slot:null,span:R,spellCheck:xe,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:ne,useMap:null,value:xe,width:R,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ge,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:ne,declare:ne,event:null,face:null,frame:null,frameBorder:null,hSpace:R,leftMargin:R,link:null,longDesc:null,lowSrc:null,marginHeight:R,marginWidth:R,noResize:ne,noHref:ne,noShade:ne,noWrap:ne,object:null,profile:null,prompt:null,rev:null,rightMargin:R,rules:null,scheme:null,scrolling:xe,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:ne,disableRemotePlayback:ne,prefix:null,property:null,results:R,security:null,unselectable:null},space:"html",transform:ch}),F0=cr({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:Xe,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:ge,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:ne,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:Jn,g2:Jn,glyphName:Jn,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:Xe,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:ge,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:R,pointsAtY:R,pointsAtZ:R,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Xe,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Xe,rev:Xe,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Xe,requiredFeatures:Xe,requiredFonts:Xe,requiredFormats:Xe,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:Xe,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:Xe,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:Xe,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:lh}),uh=cr({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()}}),fh=cr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:ch}),dh=cr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),H0=/[A-Z]/g,Gc=/-[a-z]/g,j0=/^data[-\w.:]+$/i;function U0(e,t){const n=na(t);let r=t,s=Ve;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&j0.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(Gc,W0);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!Gc.test(o)){let i=o.replace(H0,G0);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}s=Ya}return new s(r,t)}function G0(e){return"-"+e.toLowerCase()}function W0(e){return e.charAt(1).toUpperCase()}const z0=ih([ah,B0,uh,fh,dh],"html"),hh=ih([ah,F0,uh,fh,dh],"svg"),Wc={}.hasOwnProperty;function V0(e,t){const n=t||{};function r(s,...o){let i=r.invalid;const a=r.handlers;if(s&&Wc.call(s,e)){const l=String(s[e]);i=Wc.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 q0=/["&'<>`]/g,K0=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,X0=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,J0=/[|\\{}()[\]^$+*?.]/g,zc=new WeakMap;function Q0(e,t){if(e=e.replace(t.subset?Y0(t.subset):q0,r),t.subset||t.escapeOnly)return e;return e.replace(K0,n).replace(X0,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 Y0(e){let t=zc.get(e);return t||(t=Z0(e),zc.set(e,t)),t}function Z0(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(J0,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const ev=/[\dA-Fa-f]/;function tv(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!ev.test(String.fromCharCode(t))?r:r+";"}const nv=/\d/;function rv(e,t,n){const r="&#"+String(e);return n&&t&&!nv.test(String.fromCharCode(t))?r:r+";"}const sv=["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:"€"},ov=["cent","copy","divide","gt","lt","not","para","times"],ph={}.hasOwnProperty,oa={};let ms;for(ms in di)ph.call(di,ms)&&(oa[di[ms]]=ms);const iv=/[^\dA-Za-z]/;function av(e,t,n,r){const s=String.fromCharCode(e);if(ph.call(oa,s)){const o=oa[s],i="&"+o;return n&&sv.includes(o)&&!ov.includes(o)&&(!r||t&&t!==61&&iv.test(String.fromCharCode(t)))?i:i+";"}return""}function lv(e,t,n){let r=tv(e,t,n.omitOptionalSemicolons),s;if((n.useNamedReferences||n.useShortestReferences)&&(s=av(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!s)&&n.useShortestReferences){const o=rv(e,t,n.omitOptionalSemicolons);o.length<r.length&&(r=o)}return s&&(!n.useShortestReferences||s.length<r.length)?s:r}function Qn(e,t){return Q0(e,Object.assign({format:lv},t))}const cv=/^>|^->|<!--|-->|--!>|<!-$/g,uv=[">"],fv=["<",">"];function dv(e,t,n,r){return r.settings.bogusComments?"<?"+Qn(e.value,Object.assign({},r.settings.characterReferences,{subset:uv}))+">":"<!--"+e.value.replace(cv,s)+"-->";function s(o){return Qn(o,Object.assign({},r.settings.characterReferences,{subset:fv}))}}function hv(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function Vc(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 pv(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function gv(e){return e.join(" ").trim()}const mv=/[ \t\n\f\r]/g;function Za(e){return typeof e=="object"?e.type==="text"?qc(e.value):!1:qc(e)}function qc(e){return e.replace(mv,"")===""}const Te=mh(1),gh=mh(-1),yv=[];function mh(e){return t;function t(n,r,s){const o=n?n.children:yv;let i=(r||0)+e,a=o[i];if(!s)for(;a&&Za(a);)i+=e,a=o[i];return a}}const _v={}.hasOwnProperty;function yh(e){return t;function t(n,r,s){return _v.call(e,n.tagName)&&e[n.tagName](n,r,s)}}const el=yh({body:wv,caption:hi,colgroup:hi,dd:Sv,dt:xv,head:hi,html:bv,li:Cv,optgroup:kv,option:Ev,p:vv,rp:Kc,rt:Kc,tbody:Tv,td:Xc,tfoot:$v,th:Xc,thead:Av,tr:Rv});function hi(e,t,n){const r=Te(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&Za(r.value.charAt(0)))}function bv(e,t,n){const r=Te(n,t);return!r||r.type!=="comment"}function wv(e,t,n){const r=Te(n,t);return!r||r.type!=="comment"}function vv(e,t,n){const r=Te(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 Cv(e,t,n){const r=Te(n,t);return!r||r.type==="element"&&r.tagName==="li"}function xv(e,t,n){const r=Te(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function Sv(e,t,n){const r=Te(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function Kc(e,t,n){const r=Te(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function kv(e,t,n){const r=Te(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function Ev(e,t,n){const r=Te(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function Av(e,t,n){const r=Te(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function Tv(e,t,n){const r=Te(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function $v(e,t,n){return!Te(n,t)}function Rv(e,t,n){const r=Te(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function Xc(e,t,n){const r=Te(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const Pv=yh({body:Lv,colgroup:Ov,head:Iv,html:Nv,tbody:Mv});function Nv(e){const t=Te(e,-1);return!t||t.type!=="comment"}function Iv(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 Lv(e){const t=Te(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 Ov(e,t,n){const r=gh(n,t),s=Te(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&el(r,n.children.indexOf(r),n)?!1:!!(s&&s.type==="element"&&s.tagName==="col")}function Mv(e,t,n){const r=gh(n,t),s=Te(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&el(r,n.children.indexOf(r),n)?!1:!!(s&&s.type==="element"&&s.tagName==="tr")}const ys={name:[[`
\f\r &/=>`.split(""),`
\f\r "&'/=>\``.split("")],[`\0
\f\r "&'/<=>`.split(""),`\0
\f\r "&'/<=>\``.split("")]],unquoted:[[`
\f\r &>`.split(""),`\0
\f\r "&'<=>\``.split("")],[`\0
\f\r "&'<=>\``.split(""),`\0
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Dv(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=hh);const u=Bv(r,e.properties),c=r.all(s.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=s,c&&(i=!1),(u||!o||!Pv(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||!el(e,t,n))&&a.push("</"+e.tagName+">"),a.join("")}function Bv(e,t){const n=[];let r=-1,s;if(t){for(s in t)if(t[s]!==null&&t[s]!==void 0){const o=Fv(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 Fv(e,t,n){const r=U0(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=Qn(r.attribute,Object.assign({},e.settings.characterReferences,{subset:ys.name[s][o]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?pv:gv)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?l:(e.settings.preferUnquoted&&(a=Qn(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:ys.unquoted[s][o]}))),a!==n&&(e.settings.quoteSmart&&Vc(n,i)>Vc(n,e.alternative)&&(i=e.alternative),a=i+Qn(n,Object.assign({},e.settings.characterReferences,{subset:(i==="'"?ys.single:ys.double)[s][o],attribute:!0}))+i),l+(a&&"="+a))}const Hv=["<","&"];function _h(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:Qn(e.value,Object.assign({},r.settings.characterReferences,{subset:Hv}))}function jv(e,t,n,r){return r.settings.allowDangerousHtml?e.value:_h(e,t,n,r)}function Uv(e,t,n,r){return r.all(e)}const Gv=V0("type",{invalid:Wv,unknown:zv,handlers:{comment:dv,doctype:hv,element:Dv,raw:jv,root:Uv,text:_h}});function Wv(e){throw new Error("Expected node, not `"+e+"`")}function zv(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const Vv={},qv={},Kv=[];function Xv(e,t){const n=t||Vv,r=n.quote||'"',s=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:Jv,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||M0,characterReferences:n.characterReferences||qv,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?hh:z0,quote:r,alternative:s}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function Jv(e,t,n){return Gv(e,t,n,this)}function Qv(e){const t=[],n=e&&e.children||Kv;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function ro(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 nn(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function Yv(e){return Array.isArray(e)?e:[e]}async function bh(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function tl(e){return!e||["plaintext","txt","text","plain"].includes(e)}function Zv(e){return e==="ansi"||tl(e)}function nl(e){return e==="none"}function e1(e){return nl(e)}function wh(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 Oo(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 t1(e){const t=Oo(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 rl="light-dark()",n1=["color","background-color"];function r1(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 s1(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?r1(s,o):s})):e}function o1(e,t,n,r,s="css-vars"){const o={content:e.content,explanation:e.explanation,offset:e.offset},i=t.map(c=>so(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&&n1.includes(d))if(r===rl&&i.length>1){const p=t.findIndex(v=>v==="light"),g=t.findIndex(v=>v==="dark");if(p===-1||g===-1)throw new $e('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const C=i[p][d]||"inherit",y=i[g][d]||"inherit";l[d]=`light-dark(${C}, ${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 so(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&Fe.Italic&&(t["font-style"]="italic"),e.fontStyle&Fe.Bold&&(t["font-weight"]="bold");const n=[];e.fontStyle&Fe.Underline&&n.push("underline"),e.fontStyle&Fe.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function ia(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}const vh=new WeakMap;function Mo(e,t){vh.set(e,t)}function Vr(e){return vh.get(e)}class ur{_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 ur(Object.fromEntries(Yv(n).map(r=>[r,ta])),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 i1(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function i1(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 a1(e,t){if(!(e instanceof ur))throw new $e("Invalid grammar state");return e.getInternalStack(t)}function l1(){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 $e(`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 $e(`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 $e(`Invalid decoration position ${JSON.stringify(i)}. Line ${i.line} length: ${a.length}`);return{...i,character:l,offset:s.posToIndex(i.line,l)}}};const s=t1(n.source),o=(n.options.decorations||[]).map(i=>({...i,start:r(i.start),end:r(i.end)}));c1(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 s1(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 $e(`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="",C=-1,y=-1;if(f===0&&(C=0),d===0&&(y=0),d===Number.POSITIVE_INFINITY&&(y=p.children.length),C===-1||y===-1)for(let m=0;m<p.children.length;m++)g+=Ch(p.children[m]),C===-1&&g.length===f&&(C=m+1),y===-1&&g.length===d&&(y=m+1);if(C===-1)throw new $e(`Failed to find start index for decoration ${JSON.stringify(h.start)}`);if(y===-1)throw new $e(`Failed to find end index for decoration ${JSON.stringify(h.end)}`);const v=p.children.slice(C,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(C,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&&wh(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 c1(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new $e(`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 $e(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(s.start)} intersect.`)}}}}function Ch(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(Ch).join(""):""}const u1=[l1()];function oo(e){const t=f1(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...u1]}function f1(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 yn=["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 d1(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 Jc(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 h1(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:yn[r-30]}});else if(r===38){const s=Jc(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:yn[r-40]}});else if(r===48){const s=Jc(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:yn[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:yn[r-100+8]}})}return t}function p1(){let e=null,t=null,n=new Set;return{parse(r){const s=[];let o=0;do{const i=d1(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=h1(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 g1={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 m1(e=g1){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<yn.length;u++)r.push(t(yn[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 y1={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 _1(e,t,n){const r=ro(e,n),s=Oo(t),o=Object.fromEntries(yn.map(l=>{const u=`terminal.ansi${l[0].toUpperCase()}${l.substring(1)}`,c=e.colors?.[u];return[l,c||y1[l]]})),i=m1(o),a=p1();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=nn(c,r),f=nn(f,r),u.decorations.has("dim")&&(c=b1(c));let d=Fe.None;return u.decorations.has("bold")&&(d|=Fe.Bold),u.decorations.has("italic")&&(d|=Fe.Italic),u.decorations.has("underline")&&(d|=Fe.Underline),u.decorations.has("strikethrough")&&(d|=Fe.Strikethrough),{content:u.value,offset:l[1],color:c,bgColor:f,fontStyle:d}}))}function b1(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 sl(e,t,n={}){const{theme:r=e.getLoadedThemes()[0]}=n,s=e.resolveLangAlias(n.lang||"text");if(tl(s)||nl(r))return Oo(t).map(l=>[{content:l[0],offset:l[1]}]);const{theme:o,colorMap:i}=e.setTheme(r);if(s==="ansi")return _1(o,t,n);const a=e.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==a.name)throw new $e(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${a.name}"`);if(!n.grammarState.themes.includes(o.name))throw new $e(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return v1(t,a,o,i,n)}function w1(...e){if(e.length===2)return Vr(e[1]);const[t,n,r={}]=e,{lang:s="text",theme:o=t.getLoadedThemes()[0]}=r;if(tl(s)||nl(o))throw new $e("Plain language does not have grammar state");if(s==="ansi")throw new $e("ANSI language does not have grammar state");const{theme:i,colorMap:a}=t.setTheme(o),l=t.getLanguage(s);return new ur(io(n,l,i,a,r).stateStack,l.name,i.name)}function v1(e,t,n,r,s){const o=io(e,t,n,r,s),i=new ur(io(e,t,n,r,s).stateStack,t.name,n.name);return Mo(o.tokens,i),o.tokens}function io(e,t,n,r,s){const o=ro(n,s),{tokenizeMaxLineLength:i=0,tokenizeTimeLimit:a=500}=s,l=Oo(e);let u=s.grammarState?a1(s.grammarState,n.name)??ta:s.grammarContextCode!=null?io(s.grammarContextCode,t,n,r,{...s,grammarState:void 0,grammarContextCode:void 0}).stateStack:ta,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 C,y,v;s.includeExplanation&&(C=t.tokenizeLine(p,u,a),y=C.tokens,v=0);const m=t.tokenizeLine2(p,u,a),_=m.tokens.length/2;for(let w=0;w<_;w++){const k=m.tokens[2*w],P=w+1<_?m.tokens[2*w+2]:p.length;if(k===P)continue;const O=m.tokens[2*w+1],H=nn(r[ar.getForeground(O)],o),N=ar.getFontStyle(O),V={content:p.substring(k,P),offset:g+k,color:H,fontStyle:N};if(s.includeExplanation){const G=[];if(s.includeExplanation!=="scopeName")for(const Q of n.settings){let oe;switch(typeof Q.scope){case"string":oe=Q.scope.split(/,/).map(B=>B.trim());break;case"object":oe=Q.scope;break;default:continue}G.push({settings:Q,selectors:oe.map(B=>B.split(/ /))})}V.explanation=[];let Z=0;for(;k+Z<P;){const Q=y[v],oe=p.substring(Q.startIndex,Q.endIndex);Z+=oe.length,V.explanation.push({content:oe,scopes:s.includeExplanation==="scopeName"?C1(Q.scopes):x1(G,Q.scopes)}),v+=1}}c.push(V)}f.push(c),c=[],u=m.ruleStack}return{tokens:f,stateStack:u}}function C1(e){return e.map(t=>({scopeName:t}))}function x1(e,t){const n=[];for(let r=0,s=t.length;r<s;r++){const o=t[r];n[r]={scopeName:o,themeMatches:k1(e,o,t.slice(0,r))}}return n}function Qc(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function S1(e,t,n){if(!Qc(e[e.length-1],t))return!1;let r=e.length-2,s=n.length-1;for(;r>=0&&s>=0;)Qc(e[r],n[s])&&(r-=1),s-=1;return r===-1}function k1(e,t,n){const r=[];for(const{selectors:s,settings:o}of e)for(const i of s)if(S1(i,t,n)){r.push(o);break}return r}function xh(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=sl(e,t,{...n,theme:l.theme}),c=Vr(u),f=typeof l.theme=="string"?l.theme:l.theme.name;return{tokens:u,state:c,theme:f}}),o=E1(...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:C,offset:y,...v}=h[u][f];d.variants[r[p].color]=v}),d})),a=s[0].state?new ur(Object.fromEntries(s.map(l=>[l.theme,l.state?.getInternalStack(l.theme)])),s[0].state.lang):void 0;return a&&Mo(i,a),i}function E1(...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 ao(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 $e("`themes` option must not be empty");const h=xh(e,t,n);if(l=Vr(h),u&&rl!==u&&!d.find(y=>y.color===u))throw new $e(`\`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=>o1(v,g,c,u,f))),l&&Mo(o,l);const C=d.map(y=>ro(y.theme,n));s=Yc(d,p,C,c,u,"fg",f),r=Yc(d,p,C,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=ro(n.theme,n);o=sl(e,t,n);const c=e.getTheme(n.theme);r=nn(c.bg,u),s=nn(c.fg,u),i=c.name,l=Vr(o)}else throw new $e("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=nn(t[l][o],n[l])||"inherit",c=`${r+a.color}${o==="bg"?"-bg":""}:${u}`;if(l===0&&s){if(s===rl&&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 $e('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const h=nn(t[f][o],n[f])||"inherit",p=nn(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 lo(e,t,n,r={meta:{},options:n,codeToHast:(s,o)=>lo(e,s,o),codeToTokens:(s,o)=>ao(e,s,o)}){let s=t;for(const p of oo(n))s=p.preprocess?.call(r,s,n)||s;let{tokens:o,fg:i,bg:a,themeName:l,rootStyle:u,grammarState:c}=ao(e,s,n);const{mergeWhitespaces:f=!0,mergeSameStyleTokens:d=!1}=n;f===!0?o=T1(o):f==="never"&&(o=$1(o)),d&&(o=R1(o));const h={...r,get source(){return s}};for(const p of oo(n))o=p.tokens?.call(h,o)||o;return A1(o,{...n,fg:i,bg:a,themeName:l,rootStyle:n.rootStyle===!1?!1:n.rootStyle??u},h,c)}function A1(e,t,n,r=Vr(e)){const s=oo(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,C]of Object.entries(t.meta||{}))g.startsWith("_")||(u[g]=C);let c={type:"element",tagName:"pre",properties:u,children:[]},f={type:"element",tagName:"code",properties:{},children:o};const d=[],h={...n,structure:a,addClassToHast:wh,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,C)=>{C&&(a==="inline"?i.children.push({type:"element",tagName:"br",properties:{},children:[]}):a==="classic"&&o.push({type:"text",value:`
`}));let y={type:"element",tagName:"span",properties:{class:"line"},children:[]},v=0;for(const m of g){let _={type:"element",tagName:"span",properties:{...m.htmlAttrs},children:[{type:"text",value:m.content}]};const w=ia(m.htmlStyle||so(m));w&&(_.properties.style=w);for(const k of s)_=k?.span?.call(h,_,C+1,v,y,m)||_;a==="inline"?i.children.push(_):a==="classic"&&y.children.push(_),v+=m.content.length}if(a==="classic"){for(const m of s)y=m?.line?.call(h,y,C+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 C={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const m of i.children)m.type==="element"&&m.tagName==="br"?(g.push(C),C={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(m.type==="element"||m.type==="text")&&C.children.push(m);g.push(C);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 _=v.children[m];_.type==="element"&&i.children.push(..._.children)}}let p=i;for(const g of s)p=g?.root?.call(h,p)||p;return r&&Mo(p,r),p}function T1(e){return e.map(t=>{const n=[];let r="",s;return t.forEach((o,i)=>{const l=!(o.fontStyle&&(o.fontStyle&Fe.Underline||o.fontStyle&Fe.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 $1(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 R1(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=ia(s.htmlStyle||so(s)),i=ia(r.htmlStyle||so(r)),a=s.fontStyle&&(s.fontStyle&Fe.Underline||s.fontStyle&Fe.Strikethrough),l=r.fontStyle&&(r.fontStyle&Fe.Underline||r.fontStyle&Fe.Strikethrough);!a&&!l&&o===i?s.content+=r.content:n.push({...r})}return n})}const P1=Xv;function N1(e,t,n){const r={meta:{},options:n,codeToHast:(o,i)=>lo(e,o,i),codeToTokens:(o,i)=>ao(e,o,i)};let s=P1(lo(e,t,n,r));for(const o of oo(n))s=o.postprocess?.call(r,s,n)||s;return s}const Zc={light:"#333333",dark:"#bbbbbb"},eu={light:"#fffffe",dark:"#1e1e1e"},tu="__shiki_resolved";function ol(e){if(e?.[tu])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"?eu.light:eu.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,tu,{enumerable:!1,writable:!1,value:!0}),t}async function Sh(e){return Array.from(new Set((await Promise.all(e.filter(t=>!Zv(t)).map(async t=>await bh(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function kh(e){return(await Promise.all(e.map(async n=>e1(n)?null:ol(await bh(n))))).filter(n=>!!n)}let I1=3;function L1(e,t=3){t>I1||console.trace(`[SHIKI DEPRECATE]: ${e}`)}class Un 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 Un(`Circular alias \`${Array.from(n).join(" -> ")} -> ${e}\``);n.add(e)}}return e}class O1 extends O0{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=Ys.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 Un(`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 M1{_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 yr=0;function D1(e){yr+=1,e.warnings!==!1&&yr>=10&&yr%10===0&&console.warn(`[Shiki] ${yr} 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 Un("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(ol),s=new M1(e.engine,n),o=new O1(s,r,n,e.langAlias);let i;function a(m){return Eh(m,e.langAlias)}function l(m){y();const _=o.getGrammar(typeof m=="string"?m:m.name);if(!_)throw new Un(`Language \`${m}\` not found, you may need to load it first`);return _}function u(m){if(m==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};y();const _=o.getTheme(m);if(!_)throw new Un(`Theme \`${m}\` not found, you may need to load it first`);return _}function c(m){y();const _=u(m);i!==m&&(o.setTheme(_),i=m);const w=o.getColorMap();return{theme:_,colorMap:w}}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 Sh(m))}function g(...m){y();for(const _ of m.flat(1))o.loadTheme(_)}async function C(...m){return y(),g(await kh(m))}function y(){if(t)throw new Un("Shiki instance has been disposed")}function v(){t||(t=!0,o.dispose(),yr-=1)}return{setTheme:c,getTheme:u,getLanguage:l,getLoadedThemes:f,getLoadedLanguages:d,resolveLangAlias:a,loadLanguage:p,loadLanguageSync:h,loadTheme:C,loadThemeSync:g,dispose:v,[Symbol.dispose]:v}}async function B1(e){e.engine||L1("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,r]=await Promise.all([kh(e.themes||[]),Sh(e.langs||[]),e.engine]);return D1({...e,themes:t,langs:n,engine:r})}async function F1(e){const t=await B1(e);return{getLastGrammarState:(...n)=>w1(t,...n),codeToTokensBase:(n,r)=>sl(t,n,r),codeToTokensWithThemes:(n,r)=>xh(t,n,r),codeToTokens:(n,r)=>ao(t,n,r),codeToHast:(n,r)=>lo(t,n,r),codeToHtml:(n,r)=>N1(t,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function fr(e){if([...e].length!==1)throw new Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function H1(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 dr(e,t){if(e==null)throw new Error(t??"Value expected");return e}const Ah=Pe`\[\^?`,Th=`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`
\\ (?:
${Th}
| [gk]<[^>]*>?
| [gk]'[^']*'?
| .
)
| \( (?:
\? (?:
[:=!>({]
| <[=!]
| <[^>]*>
| '[^']*'
| ~\|?
| #(?:[^)\\]|\\.?)*
| [^:)]*[:)]
)?
| \*[^\)]*\)?
)?
| (?:${al.source})+
| ${Ah}
| .
`.replace(/\s+/g,""),"gsu"),gi=new RegExp(Pe`
\\ (?:
${Th}
| .
)
| \[:(?:\^?\p{Alpha}+|\^):\]
| ${Ah}
| &&
| .
`.replace(/\s+/g,""),"gsu");function j1(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=iC(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=U1(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"?lC(f,c):f).flat(),flags:r}}function U1(e,t,n,r){const[s,o]=n;if(n==="["||n==="[^"){const i=G1(t,n,r);return{tokens:i.tokens,lastIndex:i.lastIndex}}if(s==="\\"){if("AbBGyYzZ".includes(o))return{token:nu(n,n)};if(/^\\g[<']/.test(n)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:Z1(n)}}if(/^\\k[<']/.test(n)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:Rh(n)}}if(o==="K")return{token:Ph("keep",n)};if(o==="N"||o==="R")return{token:_n("newline",n,{negate:o==="N"})};if(o==="O")return{token:_n("any",n)};if(o==="X")return{token:_n("text_segment",n)};const i=$h(n,{inCharClass:!1});return Array.isArray(i)?{tokens:i}:{token:i}}if(s==="("){if(o==="*")return{token:rC(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:nC(n,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,n==="("&&!e.captureGroup||n==="(?:")return{token:Dn("group",n)};if(n==="(?>")return{token:Dn("atomic",n)};if(n==="(?="||n==="(?!"||n==="(?<="||n==="(?<!")return{token:Dn(n[2]==="<"?"lookbehind":"lookahead",n,{negate:n.endsWith("!")})};if(n==="("&&e.captureGroup||n.startsWith("(?<")&&n.endsWith(">")||n.startsWith("(?'")&&n.endsWith("'"))return{token:Dn("capturing",n,{...n!=="("&&{name:n.slice(3,-1)}})};if(n.startsWith("(?~")){if(n==="(?~|")throw new Error(`Unsupported absence function kind "${n}"`);return{token:Dn("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:J1(n)}}if(e.getCurrentModX()){if(n==="#"){const i=t.indexOf(`
`,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:_n("dot",n)};if(n==="^"||n==="$"){const i=e.singleline?{"^":Pe`\A`,$:Pe`\Z`}[n]:n;return{token:nu(i,n)}}return n==="|"?{token:z1(n)}:al.test(n)?{tokens:cC(n)}:{token:Ot(fr(n),n)}}function G1(e,t,n){const r=[ru(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(ru(i[1]==="^",i));else if(i==="]"){if(r.at(-1).type==="CharacterClassOpen")r.push(Ot(93,i));else if(s--,r.push(V1(i)),!s)break}else{const a=W1(i);Array.isArray(a)?r.push(...a):r.push(a)}}return{tokens:r,lastIndex:gi.lastIndex||e.length}}function W1(e){if(e[0]==="\\")return $h(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 _n("posix",e,{value:t.groups.name,negate:!!t.groups.negate})}return e==="-"?q1(e):e==="&&"?K1(e):Ot(fr(e),e)}function $h(e,{inCharClass:t}){const n=e[1];if(n==="c"||n==="C")return tC(e);if("dDhHsSwW".includes(n))return sC(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 oC(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 Ot(fr(i),a)})}catch{throw new Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(n==="u"||n==="x")return Ot(aC(e),e);if(su.has(n))return Ot(su.get(n),e);if(/\d/.test(n))return X1(t,e);if(e==="\\")throw new Error(Pe`Incomplete escape "\"`);if(n==="M")throw new Error(`Unsupported meta "${e}"`);if([...e].length===2)return Ot(e.codePointAt(1),e);throw new Error(`Unexpected escape "${e}"`)}function z1(e){return{type:"Alternator",raw:e}}function nu(e,t){return{type:"Assertion",kind:e,raw:t}}function Rh(e){return{type:"Backreference",raw:e}}function Ot(e,t){return{type:"Character",value:e,raw:t}}function V1(e){return{type:"CharacterClassClose",raw:e}}function q1(e){return{type:"CharacterClassHyphen",raw:e}}function K1(e){return{type:"CharacterClassIntersector",raw:e}}function ru(e,t){return{type:"CharacterClassOpen",negate:e,raw:t}}function _n(e,t,n={}){return{type:"CharacterSet",kind:e,...n,raw:t}}function Ph(e,t,n={}){return e==="keep"?{type:"Directive",kind:e,raw:t}:{type:"Directive",kind:e,flags:dr(n.flags),raw:t}}function X1(e,t){return{type:"EscapedNumber",inCharClass:e,raw:t}}function J1(e){return{type:"GroupClose",raw:e}}function Dn(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 Y1(e,t,n,r){return{type:"Quantifier",kind:e,min:t,max:n,raw:r}}function Z1(e){return{type:"Subroutine",raw:e}}const eC=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),su=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function tC(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 Ot(fr(t.toUpperCase())-64,e)}function nC(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=iu(n),i=iu(r),a={};if(o&&(a.enable=o),i&&(a.disable=i),e.endsWith(")"))return t.replaceCurrentModX(s),Ph("flags",e,{flags:a});if(e.endsWith(":"))return t.pushModX(s),t.numOpenGroups++,Dn("group",e,{...(o||i)&&{flags:a}});throw new Error(`Unexpected flag modifier "${e}"`)}function rC(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=eC.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 ou(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 Y1(t,n,r,e)}function sC(e){const t=e[1].toLowerCase();return _n({d:"digit",h:"hex",s:"space",w:"word"}[t],e,{negate:e[1]!==t})}function oC(e){const{p:t,neg:n,value:r}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return _n("property",e,{value:r,negate:t==="P"&&!n||t==="p"&&!!n})}function iu(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 iC(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 aC(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 lC(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[Rh(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=fr(l);o.push(Ot(u,(a===0?"\\":"")+l))}return o}function cC(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(ou(s.slice(0,-1)));continue}}}t.push(ou(s))}return t}function Nh(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 uC(e){return fC.has(e.type)}const fC=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function Ih(e,t={}){const n={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},r=j1(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 dC(p);case"Backreference":return hC(p,o);case"Character":return Do(p.value,{useLastValid:!!h.isCheckingRangeEnd});case"CharacterClassHyphen":return pC(p,o,h);case"CharacterClassOpen":return gC(p,o,h);case"CharacterSet":return mC(p,o);case"Directive":return CC(p.kind,{flags:p.flags});case"GroupOpen":return yC(p,o,h);case"NamedCallout":return SC(p.kind,p.tag,p.arguments);case"Quantifier":return _C(p,o);case"Subroutine":return bC(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=EC(xC(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 dC({kind:e}){return aa(dr({"^":"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 hC({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,la(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 la(r)}return s(+r)}function pC(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(),vC(i,l);throw new Error("Invalid character class range")}return Do(fr("-"))}function gC({negate:e},t,n){const{tokens:r,walk:s}=t,o=r[t.nextIndex],i=[$s()];let a=cu(o);for(;a.type!=="CharacterClassClose";){if(a.type==="CharacterClassIntersector")i.push($s()),t.nextIndex++;else{const u=i.at(-1);u.body.push(s(u,n))}a=cu(r[t.nextIndex],o)}const l=$s({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 mC({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 Bn(n,{negate:t,normalizeUnknownPropertyNames:s,skipPropertyNameValidation:o,unicodePropertyMap:i})}return e==="posix"?kC(n,{negate:t}):ca(e,{negate:t})}function yC(e,t,n){const{tokens:r,capturingGroups:s,namedGroupsByName:o,skipLookbehindValidation:i,walk:a}=t,l=AC(e),u=l.type==="AbsenceFunction",c=lu(l),f=c&&l.negate;if(l.type==="CapturingGroup"&&(s.push(l),l.name&&H1(o,l.name,[]).push(l)),u&&n.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let d=uu(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(au(p)||p.type==="CapturingGroup")throw new Error(g)}else if(au(p)||lu(p)&&p.negate)throw new Error(g)}}d=uu(r[t.nextIndex])}return t.nextIndex++,l}function _C({kind:e,min:t,max:n},r){const s=r.parent,o=s.body.at(-1);if(!o||!uC(o))throw new Error("Quantifier requires a repeatable token");const i=Oh(e,t,n,o);return s.body.pop(),i}function bC({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=Mh(s);return r.push(i),i}function wC(e,t){return{type:"AbsenceFunction",kind:e,body:ts(t?.body)}}function En(e){return{type:"Alternative",body:Dh(e?.body)}}function aa(e,t){const n={type:"Assertion",kind:e};return(e==="word_boundary"||e==="text_segment_boundary")&&(n.negate=!!t?.negate),n}function la(e,t){const n=!!t?.orphan;return{type:"Backreference",ref:e,...n&&{orphan:n}}}function Lh(e,t){const n={name:void 0,isSubroutined:!1,...t};if(n.name!==void 0&&!TC(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:ts(t?.body)}}function Do(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 $s(e){const t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:Dh(e?.body)}}function vC(e,t){if(t.value<e.value)throw new Error("Character class range out of order");return{type:"CharacterClassRange",min:e,max:t}}function ca(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 CC(e,t={}){if(e==="keep")return{type:"Directive",kind:e};if(e==="flags")return{type:"Directive",kind:e,flags:dr(t.flags)};throw new Error(`Unexpected directive kind "${e}"`)}function xC(e){return{type:"Flags",...e}}function at(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:ts(e?.body)}}function mn(e){const t={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:t.behind?"lookbehind":"lookahead",negate:t.negate,body:ts(e?.body)}}function SC(e,t,n){return{type:"NamedCallout",kind:e,tag:t,arguments:n}}function kC(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 Oh(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 EC(e,t){return{type:"Regex",body:ts(t?.body),flags:e}}function Mh(e){return{type:"Subroutine",ref:e}}function Bn(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=$C(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 AC({flags:e,kind:t,name:n,negate:r,number:s}){switch(t){case"absence_repeater":return wC("repeater");case"atomic":return at({atomic:!0});case"capturing":return Lh(s,{name:n});case"group":return at({flags:e});case"lookahead":case"lookbehind":return mn({behind:t==="lookbehind",negate:r});default:throw new Error(`Unexpected group kind "${t}"`)}}function ts(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 Dh(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 au(e){return e.type==="LookaroundAssertion"&&e.kind==="lookahead"}function lu(e){return e.type==="LookaroundAssertion"&&e.kind==="lookbehind"}function TC(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function $C(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 cu(e,t){return dr(e,`${t?.type==="Character"&&t.value===93?"Empty":"Unclosed"} character class`)}function uu(e){return dr(e,"Unclosed group")}function Nr(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,Ln(a)+u),1),u--,c=!0},removeAllNextSiblings(){return bs(l).splice(Ln(a)+1)},removeAllPrevSiblings(){const y=Ln(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,Ln(a)+u)]=y:dr(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,Ln(a)+u),1,...y),u+=y.length-1,m){let _=0;for(let w=0;w<y.length;w++)_+=s(y[w],i,Ln(a)+w+_,l)}c=!0},skip(){c=!0}},{type:d}=o,h=t["*"],p=t[d],g=typeof h=="function"?h:h?.enter,C=typeof p=="function"?p:p?.enter;if(g?.(f,n),C?.(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 Ln(e){if(typeof e!="number")throw new Error("Numeric key expected");return e}const RC=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function PC(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function NC(e,t,n,r){return e.slice(0,t)+r+e.slice(t+n.length)}const nt=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===nt.DEFAULT==!i)){n instanceof Function?a+=n(l,{context:i?nt.CHAR_CLASS:nt.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 IC(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===nt.DEFAULT==!o))return i;a==="["?o++:a==="]"&&o&&o--,s.lastIndex==i.index&&s.lastIndex++}return null}function ws(e,t,n){return!!IC(e,t,0,n)}function LC(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 fu=new RegExp(String.raw`(?<noncapturingStart>${RC})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function OC(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(fu.lastIndex=Number.isNaN(c)?0:c+o.length;g=fu.exec(e);){const{0:C,index:y,groups:{capturingStart:v,noncapturingStart:m}}=g;if(C==="[")d++;else if(d)C==="]"&&d--;else if(C===s&&!p)c=y,p=!0;else if(p&&m)h++;else if(v)p?h++:(l++,i.push(l+u));else if(C===")"&&p){if(!h){u++;const _=l+u;if(e=`${e.slice(0,c)}${o}${e.slice(c+s.length,y)}))<$$${_}>)${e.slice(y+1)}`,f=!0,a.push(_),PC(n,_),r.size){const w=new Map;r.forEach((k,P)=>{w.set(P>=_?P+1:P,k.map(O=>O>=_?O+1:O))}),r=w}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}`},nt.DEFAULT),{pattern:e,captureTransfers:r,hiddenCaptures:n}}const Fh=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,mi=new RegExp(String.raw`
\\(?: \d+
| c[A-Za-z]
| [gk]<[^>]+>
| [pPu]\{[^\}]+\}
| u[A-Fa-f\d]{4}
| x[A-Fa-f\d]{2}
)
| \((?: \? (?: [:=!>]
| <(?:[=!]|[^>]+>)
| [A-Za-z\-]+:
| \(DEFINE\)
))?
| (?<qBase>${Fh})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
| \\?.
`.replace(/\s+/g,""),"gsu");function MC(e){if(!new RegExp(`${Fh}\\+`).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=NC(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 et=String.raw,DC=et`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,ua=et`\(\?R=(?<rDepth>[^\)]+)\)|${DC}`,Fo=et`\(\?<(?![=!])(?<captureName>[^>]+)>`,Hh=et`${Fo}|(?<unnamed>\()(?!\?)`,dn=new RegExp(et`${Fo}|${ua}|\(\?|\\?.`,"gsu"),yi="Cannot use multiple overlapping recursions";function BC(e,t){const{hiddenCaptures:n,mode:r}={hiddenCaptures:[],mode:"plugin",...t};let s=t?.captureTransfers??new Map;if(!new RegExp(ua,"su").test(e))return{pattern:e,captureTransfers:s,hiddenCaptures:n};if(r==="plugin"&&ws(e,et`\(\?\(DEFINE\)`,nt.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");const o=[],i=ws(e,et`\\[1-9]`,nt.DEFAULT),a=new Map,l=[];let u=!1,c=0,f=0,d;for(dn.lastIndex=0;d=dn.exec(e);){const{0:h,groups:{captureName:p,rDepth:g,gRNameOrNum:C,gRDepth:y}}=d;if(h==="[")c++;else if(c)h==="]"&&c--;else if(g){if(du(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(dn.lastIndex);if(ws(m,ua,nt.DEFAULT))throw new Error(yi);const _=+g-1;e=hu(v,m,_,!1,n,o,f),s=gu(s,v,_,o.length,0,f);break}else if(C){du(y);let v=!1;for(const G of l)if(G.name===C||G.num===+C){if(v=!0,G.hasRecursedWithin)throw new Error(yi);break}if(!v)throw new Error(et`Recursive \g cannot be used outside the referenced group "${r==="external"?C:et`\g<${C}&R=${y}>`}"`);const m=a.get(C),_=LC(e,m);if(i&&ws(_,et`${Fo}|\((?!\?)`,nt.DEFAULT))throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);const w=e.slice(m,d.index),k=_.slice(w.length+h.length),P=o.length,O=+y-1,H=hu(w,k,O,!0,n,o,f);s=gu(s,w,O,o.length-P,P,f);const N=e.slice(0,m),V=e.slice(m+_.length);e=`${N}${H}${V}`,dn.lastIndex+=H.length-h.length-w.length-k.length,l.forEach(G=>G.hasRecursedWithin=!0),u=!0}else if(p)f++,a.set(String(f),dn.lastIndex),a.set(p,dn.lastIndex),l.push({num:f,name:p});else if(h[0]==="("){const v=h==="(";v&&(f++,a.set(String(f),dn.lastIndex)),l.push(v?{num:f}:{})}else h===")"&&l.pop()}return n.push(...o),{pattern:e,captureTransfers:s,hiddenCaptures:n}}function du(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 hu(e,t,n,r,s,o,i){const a=new Set;r&&Bh(e+t,Fo,({groups:{captureName:u}})=>{a.add(u)},nt.DEFAULT);const l=[n,r?a:null,s,o,i];return`${e}${pu(`(?:${e}`,"forward",...l)}(?:)${pu(`${t})`,"backward",...l)}${t}`}function pu(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,et`${Hh}|\\k<(?<backref>[^>]+)>`,({0:d,groups:{captureName:h,unnamed:p,backref:g}})=>{if(g&&r&&!r.has(g))return d;const C=`_$${f}`;if(p||h){const y=i+o.length+1;return o.push(y),FC(s,y),p?d:`(?<${h}${C}>`}return et`\k<${g}${C}>`},nt.DEFAULT)}return u}function FC(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function gu(e,t,n,r,s,o){if(e.size&&r){let i=0;Bh(t,Hh,()=>i++,nt.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 C=0;C<=n;C++)p.push(g+i*C);else for(let C=0;C<=n;C++)p.push(g+d+f*C);l.set(h,p)}),l}return e}var ke=String.fromCodePoint,ee=String.raw,Mt={flagGroups:(()=>{try{new RegExp("(?i:)")}catch{return!1}return!0})(),unicodeSets:(()=>{try{new RegExp("[[]]","v")}catch{return!1}return!0})()};Mt.bugFlagVLiteralHyphenIsRange=Mt.unicodeSets?(()=>{try{new RegExp(ee`[\d\-a]`,"v")}catch{return!0}return!1})():!1;Mt.bugNestedClassIgnoresNegation=Mt.unicodeSets&&new RegExp("[[^a]]","v").test("a");function co(e,{enable:t,disable:n}){return{dotAll:!n?.dotAll&&!!(t?.dotAll||e.dotAll),ignoreCase:!n?.ignoreCase&&!!(t?.ignoreCase||e.ignoreCase)}}function qr(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}function fa(e,t){return mu[e]>=mu[t]}function HC(e,t){if(e==null)throw new Error(t??"Value expected");return e}var mu={ES2025:2025,ES2024:2024,ES2018:2018},jC={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function jh(e={}){if({}.toString.call(e)!=="[object Object]")throw new Error("Unexpected options");if(e.target!==void 0&&!jC[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=Mt.flagGroups?"ES2025":Mt.unicodeSets?"ES2024":"ES2018"),t}var UC="[ -\r ]",GC=new Set([ke(304),ke(305)]),$t=ee`[\p{L}\p{M}\p{N}\p{Pc}]`;function Uh(e){if(GC.has(e))return[e];const t=new Set,n=e.toLowerCase(),r=n.toUpperCase(),s=VC.get(n),o=WC.get(n),i=zC.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
Cc Control cntrl
Cf Format
Cn Unassigned
Co Private_Use
Cs Surrogate
L Letter
LC Cased_Letter
Ll Lowercase_Letter
Lm Modifier_Letter
Lo Other_Letter
Lt Titlecase_Letter
Lu Uppercase_Letter
M Mark Combining_Mark
Mc Spacing_Mark
Me Enclosing_Mark
Mn Nonspacing_Mark
N Number
Nd Decimal_Number digit
Nl Letter_Number
No Other_Number
P Punctuation punct
Pc Connector_Punctuation
Pd Dash_Punctuation
Pe Close_Punctuation
Pf Final_Punctuation
Pi Initial_Punctuation
Po Other_Punctuation
Ps Open_Punctuation
S Symbol
Sc Currency_Symbol
Sk Modifier_Symbol
Sm Math_Symbol
So Other_Symbol
Z Separator
Zl Line_Separator
Zp Paragraph_Separator
Zs Space_Separator
ASCII
ASCII_Hex_Digit AHex
Alphabetic Alpha
Any
Assigned
Bidi_Control Bidi_C
Bidi_Mirrored Bidi_M
Case_Ignorable CI
Cased
Changes_When_Casefolded CWCF
Changes_When_Casemapped CWCM
Changes_When_Lowercased CWL
Changes_When_NFKC_Casefolded CWKCF
Changes_When_Titlecased CWT
Changes_When_Uppercased CWU
Dash
Default_Ignorable_Code_Point DI
Deprecated Dep
Diacritic Dia
Emoji
Emoji_Component EComp
Emoji_Modifier EMod
Emoji_Modifier_Base EBase
Emoji_Presentation EPres
Extended_Pictographic ExtPict
Extender Ext
Grapheme_Base Gr_Base
Grapheme_Extend Gr_Ext
Hex_Digit Hex
IDS_Binary_Operator IDSB
IDS_Trinary_Operator IDST
ID_Continue IDC
ID_Start IDS
Ideographic Ideo
Join_Control Join_C
Logical_Order_Exception LOE
Lowercase Lower
Math
Noncharacter_Code_Point NChar
Pattern_Syntax Pat_Syn
Pattern_White_Space Pat_WS
Quotation_Mark QMark
Radical
Regional_Indicator RI
Sentence_Terminal STerm
Soft_Dotted SD
Terminal_Punctuation Term
Unified_Ideograph UIdeo
Uppercase Upper
Variation_Selector VS
White_Space space
XID_Continue XIDC
XID_Start XIDS`.split(/\s/).map(e=>[Bo(e),e])),WC=new Map([["s",ke(383)],[ke(383),"s"]]),zC=new Map([[ke(223),ke(7838)],[ke(107),ke(8490)],[ke(229),ke(8491)],[ke(969),ke(8486)]]),VC=new Map([Gt(453),Gt(456),Gt(459),Gt(498),..._i(8072,8079),..._i(8088,8095),..._i(8104,8111),Gt(8124),Gt(8140),Gt(8188)]),qC=new Map([["alnum",ee`[\p{Alpha}\p{Nd}]`],["alpha",ee`\p{Alpha}`],["ascii",ee`\p{ASCII}`],["blank",ee`[\p{Zs}\t]`],["cntrl",ee`\p{Cc}`],["digit",ee`\p{Nd}`],["graph",ee`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",ee`\p{Lower}`],["print",ee`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",ee`[\p{P}\p{S}]`],["space",ee`\p{space}`],["upper",ee`\p{Upper}`],["word",ee`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",ee`\p{AHex}`]]);function KC(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}function Gt(e){const t=ke(e);return[t.toLowerCase(),t]}function _i(e,t){return KC(e,t).map(n=>Gt(n))}var Gh=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function XC(e,t){const n={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...t};Wh(e);const r={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:fa(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};Nr(e,JC,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};Nr(e,QC,o);const i={groupsByName:o.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:o.reffedNodesByReferencer};return Nr(e,YC,i),e._originMap=o.groupOriginByCopy,e._strategy=r.strategy,e}var JC={AbsenceFunction({node:e,parent:t,replaceWith:n}){const{body:r,kind:s}=e;if(s==="repeater"){const o=at();o.body[0].body.push(mn({negate:!0,body:r}),Bn("Any"));const i=at();i.body[0].body.push(Oh("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];qr(r,i,[]).push(...s)}},exit({node:e},{flagDirectivesByAlt:t}){if(t.get(e)?.length){const n=Vh(t.get(e));if(n){const r=at({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(mn({body:[En({body:[aa("string_end")]}),En({body:[Do(10)]})]}),t));else if(l==="line_start")i(Ce(Rt(ee`(?<=\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&&sx(p))i(Ce(mn({negate:!0}),t));else{if(f)throw new Error(ee`Uses "\G" in a way that requires a subclass`);i(Wt(aa("string_start"),t)),a.strategy="clip_search"}}else if(!(l==="string_end"||l==="string_start"))if(l==="string_end_newline")i(Ce(Rt(ee`(?=\n?\z)`),t));else if(l==="word_boundary"){if(!h&&!c){const p=`(?:(?<=${$t})(?!${$t})|(?<!${$t})(?=${$t}))`,g=`(?:(?<=${$t})(?=${$t})|(?<!${$t})(?!${$t}))`;i(Ce(Rt(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=$s({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(Wt(ca("digit",{negate:u}),t));return}if(i&&(l==="space"||c==="space")){n(Ce(vi(Rt(UC),u),t));return}if(a&&(l==="word"||c==="word")){n(Wt(ca("word",{negate:u}),t));return}if(l==="any")n(Wt(Bn("Any"),t));else if(l==="digit")n(Wt(Bn("Nd",{negate:u}),t));else if(l!=="dot")if(l==="text_segment"){if(r==="strict")throw new Error(ee`Use of "\X" requires non-strict accuracy`);const f="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",d=ee`\p{RI}{2}|${f}(?:\u200D${f})*`;n(Ce(Rt(ee`(?>\r\n|${s?ee`\p{RGI_Emoji}`:d}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(l==="hex")n(Wt(Bn("AHex",{negate:u}),t));else if(l==="newline")n(Ce(Rt(u?`[^
]`:`(?>\r
?|[
\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-${ke(f.codePointAt(0)-1)}${ke(f.codePointAt(2)+1)}-`),n(Ce(Rt(`[${f}]`),t))}else n(Ce(vi(Rt(qC.get(c)),u),t));else if(l==="property")cl.has(Bo(c))||(e.key="sc");else if(l==="space")n(Wt(Bn("space",{negate:u}),t));else if(l==="word")n(Ce(vi(Rt($t),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=at({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&&Nh(u,{type:"Group"})&&u.body[0].body.length===1?u.body[0]:n;if(t.parent!==f||f.body.length>1)throw new Error(ee`Uses "\K" in a way that's unsupported`);const d=mn({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(mn({negate:!0}),t));else throw new Error(`Unsupported named callout "(*${r.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type==="Quantifier"){const t=at();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=Kh(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(ee`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=Wt(yu(e.number),t);l.set(f,a.get(e.number)),n(f);return}a.set(e.number,e),i.set(e.number,[]),e.name&&qr(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=qr(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=co(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?yu(0):zh(i,r.groupOriginByCopy,null);let u=l;if(!a){const c=Vh(tx(i,d=>d.type==="Group"&&!!d.flags)),f=c?co(r.globalFlags,c):r.globalFlags;ZC(f,r.currentFlags)||(u=at({flags:nx(f)}),u.body[0].body.push(l))}n(Ce(u,t),{traverse:!a})}},YC={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=>ex(i,e));if(!o.length)n(Ce(mn({negate:!0}),t));else if(o.length>1){const i=at({atomic:!0,body:o.reverse().map(a=>En({body:[la(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=Lh();e.body.at(-1).body.push(s)}}},Subroutine({node:e},t){!e.isRecursive||e.ref===0||(e.ref=t.reffedNodesByReferencer.get(e).number)}};function Wh(e){Nr(e,{"*"({node:t,parent:n}){t.parent=n}})}function ZC(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function ex(e,t){let n=t;do{if(n.type==="Regex")return!1;if(n.type==="Alternative")continue;if(n===e)return!1;const r=qh(n.parent);for(const s of r){if(s===n)break;if(s===e||Xh(s,e))return!0}}while(n=n.parent);throw new Error("Unexpected path")}function zh(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]=zh(i,t,s,n):(o==="type"&&i==="CapturingGroup"&&t.set(s,t.get(e)??e),s[o]=i);return s}function yu(e){const t=Mh(e);return t.isRecursive=!0,t}function tx(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 Vh(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 nx({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 qh(e){if(!e)throw new Error("Node expected");const{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function Kh(e){const t=e.find(n=>n.kind==="search_start"||ox(n,{negate:!1})||!rx(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=Kh(r.body);if(!s)return null;Array.isArray(s)?n.push(...s):n.push(s)}return n}return null}function Xh(e,t){const n=qh(e)??[];for(const r of n)if(r===t||Xh(r,t))return!0;return!1}function rx({type:e}){return e==="Assertion"||e==="Directive"||e==="LookaroundAssertion"}function sx(e){const t=["Character","CharacterClass","CharacterSet"];return t.includes(e.type)||e.type==="Quantifier"&&e.min&&t.includes(e.body.type)}function ox(e,t){const n={negate:null,...t};return e.type==="LookaroundAssertion"&&(n.negate===null||e.negate===n.negate)&&e.body.length===1&&Nh(e.body[0],{type:"Assertion",kind:"search_start"})}function wi(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function Rt(e,t){const r=Ih(e,{...t,unicodePropertyMap:cl}).body;return r.length>1||r[0].body.length>1?at({body:r}):r[0].body[0]}function vi(e,t){return e.negate=t,e}function Wt(e,t){return e.parent=t,e}function Ce(e,t){return Wh(e),e.parent=t,e}function ix(e,t){const n=jh(t),r=fa(n.target,"ES2024"),s=fa(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];Nr(e,ax,{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,HC(lx[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&&qr(d._captureTransfers,h.transferTo,[]).push(p)}),d}var ax={"*":{enter({node:e},t){if(bu(e)){const n=t.getCurrentModI();t.pushModI(e.flags?co({ignoreCase:n},e.flags).ignoreCase:n)}},exit({node:e},t){bu(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){ul(ke(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},n){t(),Jh(e,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:e},t){e.kind==="property"&&Gh.has(e.value)&&t.setHasCasedChar()}},lx={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?ee`\B`:ee`\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=ke(e),r=On(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=Uh(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");Mt.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&i.some(wu)&&(i=[Do(45),...i.filter(u=>!wu(u))]);const a=()=>`[${s?"^":""}${i.map(n).join(r==="intersection"?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||Mt.bugNestedClassIgnoresNegation)&&!s){const c=i.filter(f=>f.type==="CharacterClass"&&f.kind==="union"&&f.negate);if(c.length){const f=at(),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"&&!(Mt.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=On(n,s),i=On(r,s),a=new Set;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase){const l=Jh(e);hx(l).forEach(c=>{a.add(Array.isArray(c)?`${On(c[0],s)}-${On(c[1],s)}`:On(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?".":"[^]":ee`[^\n]`;if(e==="digit")return t?ee`\D`:ee`\d`;if(e==="property"){if(s.useAppliedIgnoreCase&&s.currentFlags.ignoreCase&&Gh.has(n))throw new Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${t?ee`\P`:ee`\p`}{${r?`${r}=`:""}${n}}`}if(e==="word")return t?ee`\W`:ee`\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=co(i,n));const a=t.map(o).join("|"),l=!s.verbose&&t.length===1&&r.type!=="Quantifier"&&!e&&(!s.useFlagMods||!n)?a:`(?${px(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)+gx(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})`:ee`\g<${t}&R=${r}>`}},cx=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),ux=new Set(["-","\\","]","^","["]),fx=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),_u=new Map([[9,ee`\t`],[10,ee`\n`],[11,ee`\v`],[12,ee`\f`],[13,ee`\r`],[8232,ee`\u2028`],[8233,ee`\u2029`],[65279,ee`\uFEFF`]]),dx=new RegExp("^\\p{Cased}$","u");function ul(e){return dx.test(e)}function Jh(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=ke(i);if(!ul(a))continue;const l=Uh(a).filter(u=>{const c=u.codePointAt(0);return c<r||c>s});if(l.length&&(o.push(...l),n))break}return o}function On(e,{escDigit:t,inCharClass:n,useFlagV:r}){if(_u.has(e))return _u.get(e);if(e<32||e>126&&e<160||e>262143||t&&mx(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;const s=n?r?fx:ux:cx,o=ke(e);return(s.has(o)?"\\":"")+o}function hx(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 px(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 gx({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 bu({type:e}){return e==="CapturingGroup"||e==="Group"||e==="LookaroundAssertion"}function mx(e){return e>47&&e<58}function wu({type:e,value:t}){return e==="Character"&&t===45}var yx=class da 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 da&&(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=bx(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 da(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&&(_x(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=wx(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 _x(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 bx(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)qr(n,o,{}).transferTo=r;return n}function wx(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 vx(e,t){const n=Cx(e,t);return n.options?new yx(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function Cx(e,t){const n=jh(t),r=Ih(e,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:cl}),s=XC(r,{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),o=ix(s,n),i=BC(o.pattern,{captureTransfers:o._captureTransfers,hiddenCaptures:o._hiddenCaptures,mode:"external"}),a=MC(i.pattern),l=OC(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 vu=4294967295;class xx{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:vu,end:vu,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 Sx(e,t){return vx(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function kx(e={}){const t=Object.assign({target:"auto",cache:new Map},e);return t.regexConstructor||=n=>Sx(n,{target:t.target}),{createScanner(n){return new xx(n,t)},createString(n){return{content:n}}}}let Ex;const _r=[];function Ax(e){if(_r.push(e),!(typeof window>"u"))return window.__NUXT_DEVTOOLS__&&_r.forEach(t=>t(window.__NUXT_DEVTOOLS__)),Object.defineProperty(window,"__NUXT_DEVTOOLS__",{set(t){t&&_r.forEach(n=>n(t))},get(){return Ex.value},configurable:!0}),()=>{_r.splice(_r.indexOf(e),1)}}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Tx=e=>typeof e<"u",Cu=()=>{};function $x(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}function Rx(e,t={}){let n,r,s=Cu;const o=l=>{clearTimeout(l),s(),s=Cu};let i;return l=>{const u=Zn(e),c=Zn(t.maxWait);return n&&o(n),u<=0||c!==void 0&&c<=0?(r&&(o(r),r=void 0),Promise.resolve(l())):new Promise((f,d)=>{s=t.rejectOnCancel?d:f,i=l,c&&!r&&(r=setTimeout(()=>{n&&o(n),r=void 0,f(i())},c)),n=setTimeout(()=>{r&&o(r),r=void 0,f(l())},u)})}}function Px(e,t=200,n={}){return $x(Rx(t,n),e)}function Nx(e){return JSON.parse(JSON.stringify(e))}function Ix(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=An(),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):Nx(v):v,C=()=>Tx(e[t])?g(e[t]):c,y=v=>{f?f(v)&&h(p,v):h(p,v)};if(a){const v=ye(C());let m=!1;return xn(()=>e[t],_=>{m||(m=!0,v.value=g(_),Qr(()=>m=!1))}),xn(v,_=>{!m&&(_!==e[t]||u)&&y(_)},{deep:u}),v}else return Se({get(){return C()},set(v){y(v)}})}const Kt=ye(null);ye(Date.now());const Lx=ye(Date.now()),Ox=window.location.host;ye("/");ye();const Mx=ye("/");Se(()=>zf(Mx.value,`${window.location.protocol}//${Ox}`));const Qh=ye(),Yh=ye(),Zh=ye(),Dx=Px(async()=>{Kt.value=(await Qh.value.resolveTags()).filter(e=>!!e.props["data-nuxt-schema-org"])[0]?.innerHTML||{}},300);async function uo(){Kt.value="loading",Dx()}Ax(async e=>{Zh.value=e.host.app.$fetch,Yh.value=e.devtools,Qh.value=e.host.nuxt.vueApp._context.provides.usehead,e.host.nuxt.$router.afterEach(()=>{setTimeout(uo,100)}),uo()});const ha=ye();async function Bx(){return ha.value=await F1({themes:[jn(()=>import("./CVO1_9PV.js"),[],import.meta.url),jn(()=>import("./D0r3Knsf.js"),[],import.meta.url)],langs:[jn(()=>import("./wDzz0qaB.js"),[],import.meta.url),jn(()=>import("./Cp-IABpG.js"),[],import.meta.url)],engine:kx()}),ha.value}function Fx(e,t){return Se(()=>{const n=Yh.value?.colorMode||"light";return ha.value.codeToHtml(Zn(e)||"",{lang:t,theme:n==="dark"?"vitesse-dark":"vitesse-light"})||""})}const Hx=["innerHTML"],jx=ht({__name:"OCodeBlock",props:{code:{},lang:{},lines:{type:Boolean,default:!1},transformRendered:{}},setup(e){const t=e,n=Se(()=>{const r=Fx(t.code,t.lang);return t.transformRendered?t.transformRendered(r.value||""):r.value});return(r,s)=>(K(),ce("pre",{class:Ae(["n-code-block w-full",e.lines?"n-code-block-lines":""]),innerHTML:n.value},null,10,Hx))}}),Ux=Object.assign(jx,{__name:"OCodeBlock"}),Gx={flex:"~ gap-3","items-center":""},Wx={__name:"NIconTitle",props:{icon:{type:String,required:!1},text:{type:String,required:!1}},setup(e){return(t,n)=>(K(),ce("div",Gx,[e.icon?(K(),ce("div",{key:0,class:Ae(e.icon)},null,2)):wt("",!0),Be(t.$slots,"default",{},()=>[j("div",null,Qt(e.text),1)])]))}},zx=["open"],Vx={"text-base":""},qx={key:0,"text-sm":"",op50:""},Kx=ht({__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=Ix(e,"open");function r(s){n.value=s.target.open}return(s,o)=>{const i=Ja,a=Wx;return K(),ce(Ee,null,[j("details",{open:te(n),onToggle:r},[j("summary",{class:Ae(["cursor-pointer select-none n-bg-active hover:bg-active px-2 py-2 rounded transition-all",e.collapse?"":"pointer-events-none"])},[U(a,{icon:e.icon,text:e.text,"text-xl":"",transition:"",class:Ae([te(n)?"op100":"op60",e.headerClass])},{default:ae(()=>[j("div",null,[j("div",Vx,[Be(s.$slots,"text",{},()=>[be(Qt(e.text),1)],!0)]),e.description||s.$slots.description?(K(),ce("div",qx,[Be(s.$slots,"description",{},()=>[be(Qt(e.description),1)],!0)])):wt("",!0)]),o[0]||(o[0]=j("div",{class:"flex-auto"},null,-1)),Be(s.$slots,"actions",{},void 0,!0),e.collapse?(K(),Re(i,{key:0,icon:"carbon-chevron-down",class:"chevron","cursor-pointer":"","place-self-start":"","text-base":"",op75:"",transition:"","duration-500":""})):wt("",!0)]),_:3},8,["icon","text","class"])],2),j("div",{class:Ae(["flex flex-col flex-gap2 pb6 pt2",typeof e.padding=="string"?e.padding:e.padding?"px4":""])},[Be(s.$slots,"details",{},void 0,!0),j("div",{class:Ae([e.containerClass,"mt1"])},[Be(s.$slots,"default",{},void 0,!0)],2),Be(s.$slots,"footer",{},void 0,!0)],2)],40,zx),o[1]||(o[1]=j("div",{class:"x-divider"},null,-1))],64)}}}),Xx=Object.assign(Lo(Kx,[["__scopeId","data-v-0d7b3b46"]]),{__name:"OSectionBlock"}),Jx=ht({name:"NButton",props:{to:String,icon:String,border:{type:Boolean,default:!0},disabled:Boolean,type:{type:String,default:"button"}},setup(e,{attrs:t,slots:n}){return()=>sr(e.to?za:"button",{to:e.to,...t,...!e.to&&{type:e.type},...e.disabled?{disabled:!0}:{tabindex:0},class:[e.border?"n-button-base active:n-button-active focus-visible:n-focus-base hover:n-button-hover":"",n.default?"":"n-icon-button","n-button n-transition n-disabled:n-disabled"].join(" ")},{default:()=>[Be(n,"icon",{},()=>e.icon?[sr(Ja,{icon:e.icon,class:n.default?"n-button-icon":""})]:[]),Be(n,"default")]})}});function Qx(){return sb(()=>Zh.value("/__schema-org__/debug.json"),{watch:[Lx]},"$sUVPCiQAhH")}const Yx={class:"relative n-bg-base flex flex-col"},Zx={class:"sticky top-0 z-2 px-4 pt-4"},eS={class:"flex justify-between items-start",mb2:""},tS={class:"flex space-x-5"},nS={"text-xl":"",flex:"","items-center":"","gap-2":""},rS={class:"flex items-center space-x-3 text-xl"},sS={class:"n-select-tabs flex flex-inline flex-wrap items-center border n-border-base rounded-lg n-bg-base"},oS={class:"px-5 py-2"},iS={"text-lg":"",flex:"","items-center":""},aS={class:"px-5 py-2"},lS={"text-lg":"",flex:"","items-center":""},cS={class:"px-5 py-2"},uS={"text-lg":"",flex:"","items-center":""},fS={class:"px-5 py-2"},dS={"text-lg":"",flex:"","items-center":""},hS=["value","title"],pS={class:"items-center space-x-3 hidden lg:flex"},gS={class:"opacity-80 text-sm"},mS={class:"opacity-80 text-sm"},yS={href:"https://nuxtseo.com",target:"_blank",class:"flex items-end gap-1.5 font-semibold text-xl dark:text-white font-title"},_S={class:"flex-row flex p4 h-full",style:{"min-height":"calc(100vh - 64px)"}},bS={class:"mx-auto flex flex-col w-full bg-white dark:bg-black dark:bg-dark-700 bg-light-200"},wS={key:1},vS={key:0},CS={class:"flex flex-col items-center justify-center mx-auto max-w-135 h-85vh"},xS={class:""},SS={class:"text-2xl font-semibold mb-3"},kS={class:"px-3 py-2 space-y-5 rounded mb-3 border"},ES={class:"px-3 py-2 space-y-5"},AS={key:2,class:"space-y-5"},TS={class:"space-x-3"},$S={key:3,class:"space-y-5"},RS={class:"opacity-80 text-base mb-1"},PS={key:4,class:"h-full max-h-full overflow-hidden"},NS=`useSchemaOrg([
defineWebPage({ title: 'Hello World' })
])`,IS=ht({__name:"app",async setup(e){let t,n;D_({title:"Nuxt Schema.org Playground"}),[t,n]=pg(()=>Bx()),await t,n();const{data:r}=Qx(),s=ye("nodes"),o=Se(()=>{if(Kt.value)try{return JSON.parse(Kt.value)["@graph"]}catch{}return!1});function i(){navigator.clipboard.writeText(Kt.value)}const a={article:["Article","NewsArticle","BlogPosting"],book:["Book"],breadcrumb:["BreadcrumbList"],carousel:["ItemList"],"course-info":["Course"],course:["Course"],dataset:["Dataset"],"discussion-forum":["DiscussionForumPosting"],"education-qa":["Question","Answer"],"employer-rating":["EmployerAggregateRating"],"estimated-salary":["OccupationalExperienceRequirements"],event:["Event"],factcheck:["ClaimReview"],faqpage:["FAQPage"],"image-license-metadata":["ImageObject"],"job-posting":["JobPosting"],"learning-video":["LearningResource","VideoObject"],"local-business":["LocalBusiness"],"math-solvers":["MathSolver"],movie:["Movie"],organization:["Organization"],"practice-problems":["Quiz","Question"],product:["Product"],"product-snippet":["Product"],"merchant-listing":["Product","Offer"],"product-variants":["Product"],"profile-page":["ProfilePage","Person"],qapage:["QAPage"],recipe:["Recipe"],"review-snippet":["Review"],"software-app":["SoftwareApplication"],speakable:["SpeakableSpecification"],"special-announcements":["SpecialAnnouncement"],"paywalled-content":["CreativeWork"],"vacation-rental":["Accommodation","LodgingBusiness"],"vehicle-listing":["Vehicle"],video:["VideoObject"]};function l(c){return Array.isArray(c)?c:[c]}function u(c){const f=c.replace("https://schema.org/",""),d=Object.entries(a).find(([h,p])=>p.includes(f))?.[0];return{type:f,schemaOrg:`https://schema.org/${f}`,googlePage:d?`https://developers.google.com/search/docs/appearance/structured-data/${d}`:null}}return(c,f)=>{const d=Ja,h=Mw,p=sn("VTooltip"),g=Bw,C=Uw,y=qw,v=Ux,m=za,_=Xx,w=Jx;return K(),ce("div",Yx,[j("header",Zx,[j("div",eS,[j("div",tS,[j("h1",nS,[U(d,{icon:"carbon:image-search",class:"text-blue-300"}),f[2]||(f[2]=be(" Schema.org ",-1)),U(h,{class:"text-sm"},{default:ae(()=>[be(Qt(te(r)?.runtimeConfig.version),1)]),_:1})])]),j("div",rS,[j("fieldset",sS,[(K(),ce(Ee,null,Ko(["nodes","raw","debug","docs"],(k,P)=>j("label",{key:P,class:Ae(["relative n-border-base hover:n-bg-active cursor-pointer",[P?"border-l n-border-base ml--1px":"",k===te(s)?"n-bg-active":""]])},[k==="nodes"?(K(),ce("div",{key:0,class:Ae([k===te(s)?"":"op35"])},[U(p,null,{popper:ae(()=>[...f[3]||(f[3]=[be(" Nodes ",-1)])]),default:ae(()=>[j("div",oS,[j("h2",iS,[U(d,{icon:"carbon:connect-source opacity-50"})])])]),_:1})],2)):wt("",!0),k==="raw"?(K(),ce("div",{key:1,class:Ae([k===te(s)?"":"op35"])},[U(p,null,{popper:ae(()=>[...f[4]||(f[4]=[be(" Raw ",-1)])]),default:ae(()=>[j("div",aS,[j("h2",lS,[U(d,{icon:"carbon:code opacity-50"})])])]),_:1})],2)):k==="debug"?(K(),ce("div",{key:2,class:Ae([k===te(s)?"":"op35"])},[U(p,null,{popper:ae(()=>[...f[5]||(f[5]=[be(" Debug ",-1)])]),default:ae(()=>[j("div",cS,[j("h2",uS,[U(d,{icon:"carbon:debug opacity-50"})])])]),_:1})],2)):k==="docs"?(K(),ce("div",{key:3,class:Ae([k===te(s)?"":"op35"])},[U(p,null,{popper:ae(()=>[...f[6]||(f[6]=[be(" Documentation ",-1)])]),default:ae(()=>[j("div",fS,[j("h2",dS,[U(d,{icon:"carbon:book opacity-50"})])])]),_:1})],2)):wt("",!0),Qp(j("input",{"onUpdate:modelValue":f[0]||(f[0]=O=>we(s)?s.value=O:null),type:"radio",value:k,title:k,class:"absolute cursor-pointer pointer-events-none inset-0 op-0.1"},null,8,hS),[[Em,te(s)]])],2)),64))]),U(p,null,{popper:ae(()=>[...f[7]||(f[7]=[be(" Refresh ",-1)])]),default:ae(()=>[j("button",{"text-lg":"",type:"button",class:"n-icon-button n-button n-transition n-disabled:n-disabled",onClick:f[1]||(f[1]=(...k)=>te(uo)&&te(uo)(...k))},[U(d,{icon:"carbon:reset",class:"group-hover:text-green-500"})])]),_:1})]),j("div",pS,[j("div",gS,[U(g,{href:"https://github.com/sponsors/harlan-zw",target:"_blank"},{default:ae(()=>[U(d,{icon:"carbon:favorite",class:"mr-[2px]"}),f[8]||(f[8]=be(" Sponsor ",-1))]),_:1})]),j("div",mS,[U(g,{href:"https://github.com/harlan-zw/nuxt-schema-org",target:"_blank"},{default:ae(()=>[U(d,{icon:"logos:github-icon",class:"mr-[2px]"}),f[9]||(f[9]=be(" Submit an issue ",-1))]),_:1})]),j("a",yS,[U(C)])])])]),j("div",_S,[j("main",bS,[!te(Kt)||te(Kt)==="loading"?(K(),Re(y,{key:0})):te(s)==="nodes"?(K(),ce("div",wS,[te(o)?.length?(K(!0),ce(Ee,{key:1},Ko(te(o),(k,P)=>(K(),Re(_,{key:P},{text:ae(()=>[(K(!0),ce(Ee,null,Ko(l(k["@type"]).map(u),O=>(K(),ce("h3",{key:O.type,class:"opacity-80 text-base space-x-2"},[j("span",null,Qt(O.type),1),U(m,{to:O.schemaOrg,target:"_blank",class:"dark:text-blue-300 hover:underline"},{default:ae(()=>[f[15]||(f[15]=be(" Schema.org ",-1)),U(d,{icon:"carbon:launch",class:"text-xs ml-[2px] opacity-50"})]),_:1},8,["to"]),O.googlePage?(K(),Re(m,{key:0,to:O.googlePage,target:"_blank",class:"dark:text-blue-300 hover:underline"},{default:ae(()=>[f[16]||(f[16]=be(" Rich Results ",-1)),U(d,{icon:"carbon:launch",class:"text-xs ml-[2px] opacity-50"})]),_:1},8,["to"])):wt("",!0)]))),128))]),description:ae(()=>[j("div",null,Qt(k["@id"]),1)]),default:ae(()=>[j("div",ES,[U(v,{code:JSON.stringify(k,null,2),lang:"json"},null,8,["code"])])]),_:2},1024))),128)):(K(),ce("div",vS,[j("div",CS,[j("div",xS,[j("h2",SS,[U(d,{icon:"carbon:information",class:"text-blue-500"}),f[10]||(f[10]=be(" Oops! Did you forget ",-1)),f[11]||(f[11]=j("code",null,"useSchemaOrg()",-1)),f[12]||(f[12]=be("? ",-1))]),f[13]||(f[13]=j("p",{class:"text-lg opacity-80 my-3"}," Getting started with Nuxt Schema.org is easy, simply add the following code within setup script setup of your file. ",-1)),j("div",kS,[U(v,{code:NS,lang:"javascript"})]),f[14]||(f[14]=j("p",{class:"text-lg opacity-80"},[j("a",{href:"https://nuxtseo.com/docs/schema-org/getting-started/introduction",target:"_blank",class:"underline"}," Learn more ")],-1))])])]))])):te(s)==="raw"?(K(),ce("div",AS,[j("div",TS,[U(g,{to:"https://validator.schema.org/",target:"_blank"},{default:ae(()=>[U(d,{icon:"carbon:launch",class:"text-xs mr-1 opacity-50"}),f[17]||(f[17]=be("Structured Data Test ",-1))]),_:1}),U(g,{to:"https://search.google.com/test/rich-results",target:"_blank"},{default:ae(()=>[U(d,{icon:"carbon:launch",class:"text-xs mr-1 opacity-50"}),f[18]||(f[18]=be("Rich Results Test ",-1))]),_:1}),U(w,{onClick:i},{default:ae(()=>[...f[19]||(f[19]=[be(" Copy ",-1)])]),_:1})]),U(v,{code:te(Kt),lang:"json"},null,8,["code"])])):te(s)==="debug"?(K(),ce("div",$S,[U(_,null,{text:ae(()=>[j("h3",RS,[U(d,{icon:"carbon:settings",class:"mr-1"}),f[20]||(f[20]=be(" Runtime Config ",-1))])]),default:ae(()=>[U(v,{code:JSON.stringify(te(r)?.runtimeConfig||{},null,2),lang:"json"},null,8,["code"])]),_:1})])):te(s)==="docs"?(K(),ce("div",PS,[...f[21]||(f[21]=[j("iframe",{src:"https://nuxtseo.com/schema-org",class:"w-full h-full border-none",style:{"min-height":"calc(100vh - 100px)"}},null,-1)])])):wt("",!0)])])])}}}),LS={__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(()=>jn(()=>import("./CIUB4yEm.js"),__vite__mapDeps([0,1]),import.meta.url)):Sl(()=>jn(()=>import("./H4uO9r07.js"),__vite__mapDeps([2,3]),import.meta.url));return(f,d)=>(K(),Re(te(c),Ru(Oa({statusCode:te(r),statusMessage:te(o),description:te(i),stack:te(a)})),null,16))}},OS={key:0},xu={__name:"nuxt-root",setup(e){const t=()=>null,n=ve(),r=n.deferHydration();if(n.isHydrating){const u=n.hooks.hookOnce("app:error",r);Et().beforeEach(u)}const s=!1;pf(ld,cd()),n.hooks.callHookWith(u=>u.map(c=>c()),"vue:setup");const o=ja(),i=!1,a=/bot\b|chrome-lighthouse|facebookexternalhit|google\b/i;of((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(r_(u)&&(u.fatal||u.unhandled))return n.runWithContext(()=>t_(u)),!1});const l=!1;return(u,c)=>(K(),Re(Gg,{onResolve:te(r)},{default:ae(()=>[te(i)?(K(),ce("div",OS)):te(o)?(K(),Re(te(LS),{key:1,error:te(o)},null,8,["error"])):te(l)?(K(),Re(te(t),{key:2,context:te(l)},null,8,["context"])):te(s)?(K(),Re(dg(te(s)),{key:3})):(K(),Re(te(IS),{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?Nm(xu):Hf(xu),s=jy({vueApp:r});async function o(i){await s.callHook("app:error",i),s.payload.error||=Eo(i)}r.config.errorHandler=o,s.hook("app:suspense:resolve",()=>{r.config.errorHandler===o&&(r.config.errorHandler=void 0)}),!n&&Yl.id&&s.hook("app:suspense:resolve",()=>{document.getElementById(Yl.id)?.remove()});try{await Wy(s,Nw)}catch(i){o(i)}try{await s.hooks.callHook("app:created",r),await s.hooks.callHook("app:beforeMount",r),r.mount(By),await s.hooks.callHook("app:mounted",r),await Qr()}catch(i){o(i)}return r},e=Su().catch(t=>{throw console.error("Error while mounting app:",t),t})}export{Lo as _,j as a,U as b,ce as c,be as d,za as e,K as o,Qt as t,D_ as u,ae as w};