nuxt-schema-org 5.0.7 → 5.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist/client/200.html +1 -0
  2. package/dist/client/404.html +1 -0
  3. package/dist/client/_nuxt/3mPCgC9T.js +1 -0
  4. package/dist/client/_nuxt/B3Z8rEby.js +1 -0
  5. package/dist/client/_nuxt/BMMyXqK5.js +1 -0
  6. package/dist/client/_nuxt/BpdejJ-Z.js +174 -0
  7. package/dist/client/_nuxt/CVO1_9PV.js +1 -0
  8. package/dist/client/_nuxt/Cp-IABpG.js +1 -0
  9. package/dist/client/_nuxt/D0r3Knsf.js +1 -0
  10. package/dist/client/_nuxt/builds/latest.json +1 -0
  11. package/dist/client/_nuxt/builds/meta/8a772054-fdc3-4341-9461-52f13effa2ab.json +1 -0
  12. package/dist/client/_nuxt/entry.BVcYdedQ.css +1 -0
  13. package/dist/client/_nuxt/error-404.C93bBBKL.css +1 -0
  14. package/dist/client/_nuxt/error-500.zofSQbXz.css +1 -0
  15. package/dist/client/index.html +1 -0
  16. package/dist/content.cjs +28 -0
  17. package/dist/content.d.cts +14 -0
  18. package/dist/content.d.mts +14 -0
  19. package/dist/content.d.ts +14 -0
  20. package/dist/content.mjs +24 -0
  21. package/dist/module.cjs +221 -0
  22. package/dist/module.d.cts +50 -0
  23. package/dist/module.d.mts +50 -0
  24. package/dist/module.d.ts +50 -0
  25. package/dist/module.json +29 -0
  26. package/dist/module.mjs +218 -0
  27. package/dist/runtime/app/composables/useSchemaOrg.d.ts +4 -0
  28. package/dist/runtime/app/composables/useSchemaOrg.js +27 -0
  29. package/dist/runtime/app/plugins/defaults.d.ts +2 -0
  30. package/dist/runtime/app/plugins/defaults.js +28 -0
  31. package/dist/runtime/app/plugins/i18n/defaults.d.ts +2 -0
  32. package/dist/runtime/app/plugins/i18n/defaults.js +77 -0
  33. package/dist/runtime/app/plugins/i18n/init.d.ts +2 -0
  34. package/dist/runtime/app/plugins/i18n/init.js +11 -0
  35. package/dist/runtime/app/plugins/i18n/tsconfig.json +3 -0
  36. package/dist/runtime/app/plugins/init.d.ts +2 -0
  37. package/dist/runtime/app/plugins/init.js +8 -0
  38. package/dist/runtime/app/utils/config.d.ts +2 -0
  39. package/dist/runtime/app/utils/config.js +8 -0
  40. package/dist/runtime/app/utils/shared.d.ts +3 -0
  41. package/dist/runtime/app/utils/shared.js +99 -0
  42. package/dist/runtime/server/plugins/nuxt-content-v2.d.ts +2 -0
  43. package/dist/runtime/server/plugins/nuxt-content-v2.js +37 -0
  44. package/dist/runtime/server/routes/__schema-org__/debug.d.ts +5 -0
  45. package/dist/runtime/server/routes/__schema-org__/debug.js +10 -0
  46. package/dist/runtime/server/tsconfig.json +3 -0
  47. package/dist/runtime/server/utils/config.d.ts +3 -0
  48. package/dist/runtime/server/utils/config.js +8 -0
  49. package/dist/runtime/types.d.ts +9 -0
  50. package/dist/runtime/types.js +0 -0
  51. package/dist/schema.cjs +16 -0
  52. package/dist/schema.d.cts +1 -0
  53. package/dist/schema.d.mts +1 -0
  54. package/dist/schema.d.ts +1 -0
  55. package/dist/schema.mjs +1 -0
  56. package/dist/types.d.mts +9 -0
  57. package/package.json +1 -1
@@ -0,0 +1,174 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./B3Z8rEby.js","./error-404.C93bBBKL.css","./3mPCgC9T.js","./error-500.zofSQbXz.css"])))=>i.map(i=>d[i]);
2
+ (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();/**
3
+ * @vue/shared v3.5.21
4
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
5
+ * @license MIT
6
+ **/function fa(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const de={},Un=[],vt=()=>{},xu=()=>!1,Vr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),da=e=>e.startsWith("onUpdate:"),je=Object.assign,ha=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ep=Object.prototype.hasOwnProperty,ce=(e,t)=>ep.call(e,t),J=Array.isArray,Gn=e=>qr(e)==="[object Map]",Su=e=>qr(e)==="[object Set]",pl=e=>qr(e)==="[object Date]",X=e=>typeof e=="function",_e=e=>typeof e=="string",dt=e=>typeof e=="symbol",he=e=>e!==null&&typeof e=="object",pa=e=>(he(e)||X(e))&&X(e.then)&&X(e.catch),ku=Object.prototype.toString,qr=e=>ku.call(e),tp=e=>qr(e).slice(8,-1),Eu=e=>qr(e)==="[object Object]",ga=e=>_e(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Wn=fa(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),lo=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},np=/-\w/g,st=lo(e=>e.replace(np,t=>t.slice(1).toUpperCase())),rp=/\B([A-Z])/g,sn=lo(e=>e.replace(rp,"-$1").toLowerCase()),co=lo(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ho=lo(e=>e?`on${co(e)}`:""),Xt=(e,t)=>!Object.is(e,t),_s=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Au=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},sp=e=>{const t=parseFloat(e);return isNaN(t)?e:t},op=e=>{const t=_e(e)?Number(e):NaN;return isNaN(t)?e:t};let gl;const uo=()=>gl||(gl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function yn(e){if(J(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=_e(r)?cp(r):yn(r);if(s)for(const o in s)t[o]=s[o]}return t}else if(_e(e)||he(e))return e}const ip=/;(?![^(]*\))/g,ap=/:([^]+)/,lp=/\/\*[^]*?\*\//g;function cp(e){const t={};return e.replace(lp,"").split(ip).forEach(n=>{if(n){const r=n.split(ap);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(he(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Tu(e){if(!e)return null;let{class:t,style:n}=e;return t&&!_e(t)&&(e.class=Ae(t)),n&&(e.style=yn(n)),e}const up="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",fp=fa(up);function $u(e){return!!e||e===""}function dp(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=As(e[r],t[r]);return n}function As(e,t){if(e===t)return!0;let n=pl(e),r=pl(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=dt(e),r=dt(t),n||r)return e===t;if(n=J(e),r=J(t),n||r)return n&&r?dp(e,t):!1;if(n=he(e),r=he(t),n||r){if(!n||!r)return!1;const s=Object.keys(e).length,o=Object.keys(t).length;if(s!==o)return!1;for(const i in e){const a=e.hasOwnProperty(i),l=t.hasOwnProperty(i);if(a&&!l||!a&&l||!As(e[i],t[i]))return!1}}return String(e)===String(t)}const Ru=e=>!!(e&&e.__v_isRef===!0),Jt=e=>_e(e)?e:e==null?"":J(e)||he(e)&&(e.toString===ku||!X(e.toString))?Ru(e)?Jt(e.value):JSON.stringify(e,Pu,2):String(e),Pu=(e,t)=>Ru(t)?Pu(e,t.value):Gn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],o)=>(n[Fo(r,o)+" =>"]=s,n),{})}:Su(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Fo(n))}:dt(t)?Fo(t):he(t)&&!J(t)&&!Eu(t)?String(t):t,Fo=(e,t="")=>{var n;return dt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
7
+ * @vue/reactivity v3.5.21
8
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
9
+ * @license MIT
10
+ **/let De;class Nu{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=De,!t&&De&&(this.index=(De.scopes||(De.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=De;try{return De=this,t()}finally{De=n}}}on(){++this._on===1&&(this.prevScope=De,De=this)}off(){this._on>0&&--this._on===0&&(De=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 hp(e){return new Nu(e)}function ma(){return De}function pp(e,t=!1){De&&De.cleanups.push(e)}let me;const jo=new WeakSet;class Iu{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,De&&De.active&&De.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,jo.has(this)&&(jo.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Ou(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,ml(this),Mu(this);const t=me,n=ct;me=this,ct=!0;try{return this.fn()}finally{Du(this),me=t,ct=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)ba(t);this.deps=this.depsTail=void 0,ml(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?jo.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){bi(this)&&this.run()}get dirty(){return bi(this)}}let Lu=0,br,wr;function Ou(e,t=!1){if(e.flags|=8,t){e.next=wr,wr=e;return}e.next=br,br=e}function ya(){Lu++}function _a(){if(--Lu>0)return;if(wr){let t=wr;for(wr=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;br;){let t=br;for(br=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 Mu(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Du(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),ba(r),gp(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function bi(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Bu(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Bu(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Pr)||(e.globalVersion=Pr,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!bi(e))))return;e.flags|=2;const t=e.dep,n=me,r=ct;me=e,ct=!0;try{Mu(e);const s=e.fn(e._value);(t.version===0||Xt(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{me=n,ct=r,Du(e),e.flags&=-3}}function ba(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)ba(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function gp(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let ct=!0;const Hu=[];function Mt(){Hu.push(ct),ct=!1}function Dt(){const e=Hu.pop();ct=e===void 0?!0:e}function ml(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=me;me=void 0;try{t()}finally{me=n}}}let Pr=0;class mp{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 wa{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||!ct||me===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==me)n=this.activeLink=new mp(me,this),me.deps?(n.prevDep=me.depsTail,me.depsTail.nextDep=n,me.depsTail=n):me.deps=me.depsTail=n,Fu(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++,Pr++,this.notify(t)}notify(t){ya();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{_a()}}}function Fu(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)Fu(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Ts=new WeakMap,_n=Symbol(""),wi=Symbol(""),Nr=Symbol("");function Be(e,t,n){if(ct&&me){let r=Ts.get(e);r||Ts.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new wa),s.map=r,s.key=n),s.track()}}function Pt(e,t,n,r,s,o){const i=Ts.get(e);if(!i){Pr++;return}const a=l=>{l&&l.trigger()};if(ya(),t==="clear")i.forEach(a);else{const l=J(e),u=l&&ga(n);if(l&&n==="length"){const c=Number(r);i.forEach((f,h)=>{(h==="length"||h===Nr||!dt(h)&&h>=c)&&a(f)})}else switch((n!==void 0||i.has(void 0))&&a(i.get(n)),u&&a(i.get(Nr)),t){case"add":l?u&&a(i.get("length")):(a(i.get(_n)),Gn(e)&&a(i.get(wi)));break;case"delete":l||(a(i.get(_n)),Gn(e)&&a(i.get(wi)));break;case"set":Gn(e)&&a(i.get(_n));break}}_a()}function yp(e,t){const n=Ts.get(e);return n&&n.get(t)}function Pn(e){const t=ae(e);return t===e?t:(Be(t,"iterate",Nr),rt(e)?t:t.map(Ne))}function fo(e){return Be(e=ae(e),"iterate",Nr),e}const _p={__proto__:null,[Symbol.iterator](){return Uo(this,Symbol.iterator,Ne)},concat(...e){return Pn(this).concat(...e.map(t=>J(t)?Pn(t):t))},entries(){return Uo(this,"entries",e=>(e[1]=Ne(e[1]),e))},every(e,t){return At(this,"every",e,t,void 0,arguments)},filter(e,t){return At(this,"filter",e,t,n=>n.map(Ne),arguments)},find(e,t){return At(this,"find",e,t,Ne,arguments)},findIndex(e,t){return At(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return At(this,"findLast",e,t,Ne,arguments)},findLastIndex(e,t){return At(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return At(this,"forEach",e,t,void 0,arguments)},includes(...e){return Go(this,"includes",e)},indexOf(...e){return Go(this,"indexOf",e)},join(e){return Pn(this).join(e)},lastIndexOf(...e){return Go(this,"lastIndexOf",e)},map(e,t){return At(this,"map",e,t,void 0,arguments)},pop(){return hr(this,"pop")},push(...e){return hr(this,"push",e)},reduce(e,...t){return yl(this,"reduce",e,t)},reduceRight(e,...t){return yl(this,"reduceRight",e,t)},shift(){return hr(this,"shift")},some(e,t){return At(this,"some",e,t,void 0,arguments)},splice(...e){return hr(this,"splice",e)},toReversed(){return Pn(this).toReversed()},toSorted(e){return Pn(this).toSorted(e)},toSpliced(...e){return Pn(this).toSpliced(...e)},unshift(...e){return hr(this,"unshift",e)},values(){return Uo(this,"values",Ne)}};function Uo(e,t,n){const r=fo(e),s=r[t]();return r!==e&&!rt(e)&&(s._next=s.next,s.next=()=>{const o=s._next();return o.value&&(o.value=n(o.value)),o}),s}const bp=Array.prototype;function At(e,t,n,r,s,o){const i=fo(e),a=i!==e&&!rt(e),l=i[t];if(l!==bp[t]){const f=l.apply(e,o);return a?Ne(f):f}let u=n;i!==e&&(a?u=function(f,h){return n.call(this,Ne(f),h,e)}:n.length>2&&(u=function(f,h){return n.call(this,f,h,e)}));const c=l.call(i,u,r);return a&&s?s(c):c}function yl(e,t,n,r){const s=fo(e);let o=n;return s!==e&&(rt(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,Ne(a),l,e)}),s[t](o,...r)}function Go(e,t,n){const r=ae(e);Be(r,"iterate",Nr);const s=r[t](...n);return(s===-1||s===!1)&&xa(n[0])?(n[0]=ae(n[0]),r[t](...n)):s}function hr(e,t,n=[]){Mt(),ya();const r=ae(e)[t].apply(e,n);return _a(),Dt(),r}const wp=fa("__proto__,__v_isRef,__isVue"),ju=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(dt));function vp(e){dt(e)||(e=String(e));const t=ae(this);return Be(t,"has",e),t.hasOwnProperty(e)}class Uu{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?Pp:Vu:o?zu:Wu).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=J(t);if(!s){let l;if(i&&(l=_p[n]))return l;if(n==="hasOwnProperty")return vp}const a=Reflect.get(t,n,Ce(t)?t:r);return(dt(n)?ju.has(n):wp(n))||(s||Be(t,"get",n),o)?a:Ce(a)?i&&ga(n)?a:a.value:he(a)?s?qu(a):tn(a):a}}class Gu extends Uu{constructor(t=!1){super(!1,t)}set(t,n,r,s){let o=t[n];if(!this._isShallow){const l=Bt(o);if(!rt(r)&&!Bt(r)&&(o=ae(o),r=ae(r)),!J(t)&&Ce(o)&&!Ce(r))return l||(o.value=r),!0}const i=J(t)&&ga(n)?Number(n)<t.length:ce(t,n),a=Reflect.set(t,n,r,Ce(t)?t:s);return t===ae(s)&&(i?Xt(r,o)&&Pt(t,"set",n,r):Pt(t,"add",n,r)),a}deleteProperty(t,n){const r=ce(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&r&&Pt(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!dt(n)||!ju.has(n))&&Be(t,"has",n),r}ownKeys(t){return Be(t,"iterate",J(t)?"length":_n),Reflect.ownKeys(t)}}class Cp extends Uu{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const xp=new Gu,Sp=new Cp,kp=new Gu(!0);const vi=e=>e,ts=e=>Reflect.getPrototypeOf(e);function Ep(e,t,n){return function(...r){const s=this.__v_raw,o=ae(s),i=Gn(o),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,u=s[e](...r),c=n?vi:t?$s:Ne;return!t&&Be(o,"iterate",l?wi:_n),{next(){const{value:f,done:h}=u.next();return h?{value:f,done:h}:{value:a?[c(f[0]),c(f[1])]:c(f),done:h}},[Symbol.iterator](){return this}}}}function ns(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Ap(e,t){const n={get(s){const o=this.__v_raw,i=ae(o),a=ae(s);e||(Xt(s,a)&&Be(i,"get",s),Be(i,"get",a));const{has:l}=ts(i),u=t?vi:e?$s:Ne;if(l.call(i,s))return u(o.get(s));if(l.call(i,a))return u(o.get(a));o!==i&&o.get(s)},get size(){const s=this.__v_raw;return!e&&Be(ae(s),"iterate",_n),s.size},has(s){const o=this.__v_raw,i=ae(o),a=ae(s);return e||(Xt(s,a)&&Be(i,"has",s),Be(i,"has",a)),s===a?o.has(s):o.has(s)||o.has(a)},forEach(s,o){const i=this,a=i.__v_raw,l=ae(a),u=t?vi:e?$s:Ne;return!e&&Be(l,"iterate",_n),a.forEach((c,f)=>s.call(o,u(c),u(f),i))}};return je(n,e?{add:ns("add"),set:ns("set"),delete:ns("delete"),clear:ns("clear")}:{add(s){!t&&!rt(s)&&!Bt(s)&&(s=ae(s));const o=ae(this);return ts(o).has.call(o,s)||(o.add(s),Pt(o,"add",s,s)),this},set(s,o){!t&&!rt(o)&&!Bt(o)&&(o=ae(o));const i=ae(this),{has:a,get:l}=ts(i);let u=a.call(i,s);u||(s=ae(s),u=a.call(i,s));const c=l.call(i,s);return i.set(s,o),u?Xt(o,c)&&Pt(i,"set",s,o):Pt(i,"add",s,o),this},delete(s){const o=ae(this),{has:i,get:a}=ts(o);let l=i.call(o,s);l||(s=ae(s),l=i.call(o,s)),a&&a.call(o,s);const u=o.delete(s);return l&&Pt(o,"delete",s,void 0),u},clear(){const s=ae(this),o=s.size!==0,i=s.clear();return o&&Pt(s,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=Ep(s,e,t)}),n}function va(e,t){const n=Ap(e,t);return(r,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(ce(n,s)&&s in r?n:r,s,o)}const Tp={get:va(!1,!1)},$p={get:va(!1,!0)},Rp={get:va(!0,!1)};const Wu=new WeakMap,zu=new WeakMap,Vu=new WeakMap,Pp=new WeakMap;function Np(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ip(e){return e.__v_skip||!Object.isExtensible(e)?0:Np(tp(e))}function tn(e){return Bt(e)?e:Ca(e,!1,xp,Tp,Wu)}function Bn(e){return Ca(e,!1,kp,$p,zu)}function qu(e){return Ca(e,!0,Sp,Rp,Vu)}function Ca(e,t,n,r,s){if(!he(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=Ip(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 bn(e){return Bt(e)?bn(e.__v_raw):!!(e&&e.__v_isReactive)}function Bt(e){return!!(e&&e.__v_isReadonly)}function rt(e){return!!(e&&e.__v_isShallow)}function xa(e){return e?!!e.__v_raw:!1}function ae(e){const t=e&&e.__v_raw;return t?ae(t):e}function Lp(e){return!ce(e,"__v_skip")&&Object.isExtensible(e)&&Au(e,"__v_skip",!0),e}const Ne=e=>he(e)?tn(e):e,$s=e=>he(e)?qu(e):e;function Ce(e){return e?e.__v_isRef===!0:!1}function ye(e){return Ku(e,!1)}function Ir(e){return Ku(e,!0)}function Ku(e,t){return Ce(e)?e:new Op(e,t)}class Op{constructor(t,n){this.dep=new wa,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ae(t),this._value=n?t:Ne(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||rt(t)||Bt(t);t=r?t:ae(t),Xt(t,n)&&(this._rawValue=t,this._value=r?t:Ne(t),this.dep.trigger())}}function ne(e){return Ce(e)?e.value:e}function Zn(e){return X(e)?e():ne(e)}const Mp={get:(e,t,n)=>t==="__v_raw"?e:ne(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return Ce(s)&&!Ce(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function Xu(e){return bn(e)?e:new Proxy(e,Mp)}class Dp{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return yp(ae(this._object),this._key)}}class Bp{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Sa(e,t,n){return Ce(e)?e:X(e)?new Bp(e):he(e)&&arguments.length>1?Hp(e,t,n):ye(e)}function Hp(e,t,n){const r=e[t];return Ce(r)?r:new Dp(e,t,n)}class Fp{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new wa(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Pr-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 Ou(this,!0),!0}get value(){const t=this.dep.track();return Bu(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function jp(e,t,n=!1){let r,s;return X(e)?r=e:(r=e.get,s=e.set),new Fp(r,s,n)}const rs={},Rs=new WeakMap;let fn;function Up(e,t=!1,n=fn){if(n){let r=Rs.get(n);r||Rs.set(n,r=[]),r.push(e)}}function Gp(e,t,n=de){const{immediate:r,deep:s,once:o,scheduler:i,augmentJob:a,call:l}=n,u=b=>s?b:rt(b)||s===!1||s===0?Nt(b,1):Nt(b);let c,f,h,d,p=!1,g=!1;if(Ce(e)?(f=()=>e.value,p=rt(e)):bn(e)?(f=()=>u(e),p=!0):J(e)?(g=!0,p=e.some(b=>bn(b)||rt(b)),f=()=>e.map(b=>{if(Ce(b))return b.value;if(bn(b))return u(b);if(X(b))return l?l(b,2):b()})):X(e)?t?f=l?()=>l(e,2):e:f=()=>{if(h){Mt();try{h()}finally{Dt()}}const b=fn;fn=c;try{return l?l(e,3,[d]):e(d)}finally{fn=b}}:f=vt,t&&s){const b=f,C=s===!0?1/0:s;f=()=>Nt(b(),C)}const w=ma(),_=()=>{c.stop(),w&&w.active&&ha(w.effects,c)};if(o&&t){const b=t;t=(...C)=>{b(...C),_()}}let v=g?new Array(e.length).fill(rs):rs;const m=b=>{if(!(!(c.flags&1)||!c.dirty&&!b))if(t){const C=c.run();if(s||p||(g?C.some((k,P)=>Xt(k,v[P])):Xt(C,v))){h&&h();const k=fn;fn=c;try{const P=[C,v===rs?void 0:g&&v[0]===rs?[]:v,d];v=C,l?l(t,3,P):t(...P)}finally{fn=k}}}else c.run()};return a&&a(m),c=new Iu(f),c.scheduler=i?()=>i(m,!1):m,d=b=>Up(b,!1,c),h=c.onStop=()=>{const b=Rs.get(c);if(b){if(l)l(b,4);else for(const C of b)C();Rs.delete(c)}},t?r?m(!0):v=c.run():i?i(m.bind(null,!0),!0):c.run(),_.pause=c.pause.bind(c),_.resume=c.resume.bind(c),_.stop=_,_}function Nt(e,t=1/0,n){if(t<=0||!he(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ce(e))Nt(e.value,t,n);else if(J(e))for(let r=0;r<e.length;r++)Nt(e[r],t,n);else if(Su(e)||Gn(e))e.forEach(r=>{Nt(r,t,n)});else if(Eu(e)){for(const r in e)Nt(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Nt(e[r],t,n)}return e}/**
11
+ * @vue/runtime-core v3.5.21
12
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
13
+ * @license MIT
14
+ **/function Kr(e,t,n,r){try{return r?e(...r):e()}catch(s){ir(s,t,n)}}function St(e,t,n,r){if(X(e)){const s=Kr(e,t,n,r);return s&&pa(s)&&s.catch(o=>{ir(o,t,n)}),s}if(J(e)){const s=[];for(let o=0;o<e.length;o++)s.push(St(e[o],t,n,r));return s}}function ir(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||de;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){Mt(),Kr(o,null,10,[e,l,u]),Dt();return}}Wp(e,n,s,r,i)}function Wp(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const Ge=[];let _t=-1;const zn=[];let zt=null,On=0;const Ju=Promise.resolve();let Ps=null;function Xr(e){const t=Ps||Ju;return e?t.then(this?e.bind(this):e):t}function zp(e){let t=_t+1,n=Ge.length;for(;t<n;){const r=t+n>>>1,s=Ge[r],o=Lr(s);o<e||o===e&&s.flags&2?t=r+1:n=r}return t}function ka(e){if(!(e.flags&1)){const t=Lr(e),n=Ge[Ge.length-1];!n||!(e.flags&2)&&t>=Lr(n)?Ge.push(e):Ge.splice(zp(t),0,e),e.flags|=1,Zu()}}function Zu(){Ps||(Ps=Ju.then(Yu))}function Ci(e){J(e)?zn.push(...e):zt&&e.id===-1?zt.splice(On+1,0,e):e.flags&1||(zn.push(e),e.flags|=1),Zu()}function _l(e,t,n=_t+1){for(;n<Ge.length;n++){const r=Ge[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Ge.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Ns(e){if(zn.length){const t=[...new Set(zn)].sort((n,r)=>Lr(n)-Lr(r));if(zn.length=0,zt){zt.push(...t);return}for(zt=t,On=0;On<zt.length;On++){const n=zt[On];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}zt=null,On=0}}const Lr=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Yu(e){try{for(_t=0;_t<Ge.length;_t++){const t=Ge[_t];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Kr(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;_t<Ge.length;_t++){const t=Ge[_t];t&&(t.flags&=-2)}_t=-1,Ge.length=0,Ns(),Ps=null,(Ge.length||zn.length)&&Yu()}}let Le=null,ho=null;function Is(e){const t=Le;return Le=e,ho=e&&e.type.__scopeId||null,t}function Vp(e){ho=e}function qp(){ho=null}const Kp=e=>ie;function ie(e,t=Le,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&Ms(-1);const o=Is(t);let i;try{i=e(...s)}finally{Is(o),r._d&&Ms(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function Xp(e,t){if(Le===null)return e;const n=bo(Le),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[o,i,a,l=de]=t[s];o&&(X(o)&&(o={mounted:o,updated:o}),o.deep&&Nt(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&&(Mt(),St(l,n,8,[e.el,a,e,t]),Dt())}}const Jp=Symbol("_vte"),Zp=e=>e.__isTeleport,Yp=Symbol("_leaveCb");function Ea(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Ea(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ht(e,t){return X(e)?je({name:e.name},t,{setup:e}):e}function Aa(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const Ls=new WeakMap;function Vn(e,t,n,r,s=!1){if(J(e)){e.forEach((p,g)=>Vn(p,t&&(J(t)?t[g]:t),n,r,s));return}if(wn(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Vn(e,t,n,r.component.subTree);return}const o=r.shapeFlag&4?bo(r.component):r.el,i=s?null:o,{i:a,r:l}=e,u=t&&t.r,c=a.refs===de?a.refs={}:a.refs,f=a.setupState,h=ae(f),d=f===de?xu:p=>ce(h,p);if(u!=null&&u!==l){if(bl(t),_e(u))c[u]=null,d(u)&&(f[u]=null);else if(Ce(u)){u.value=null;const p=t;p.k&&(c[p.k]=null)}}if(X(l))Kr(l,a,12,[i,c]);else{const p=_e(l),g=Ce(l);if(p||g){const w=()=>{if(e.f){const _=p?d(l)?f[l]:c[l]:l.value;if(s)J(_)&&ha(_,o);else if(J(_))_.includes(o)||_.push(o);else if(p)c[l]=[o],d(l)&&(f[l]=c[l]);else{const v=[o];l.value=v,e.k&&(c[e.k]=v)}}else p?(c[l]=i,d(l)&&(f[l]=i)):g&&(l.value=i,e.k&&(c[e.k]=i))};if(i){const _=()=>{w(),Ls.delete(e)};_.id=-1,Ls.set(e,_),Je(_,n)}else bl(e),w()}}}function bl(e){const t=Ls.get(e);t&&(t.flags|=8,Ls.delete(e))}let wl=!1;const Nn=()=>{wl||(console.error("Hydration completed but contains mismatches."),wl=!0)},Qp=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",eg=e=>e.namespaceURI.includes("MathML"),ss=e=>{if(e.nodeType===1){if(Qp(e))return"svg";if(eg(e))return"mathml"}},Hn=e=>e.nodeType===8;function tg(e){const{mt:t,p:n,o:{patchProp:r,createText:s,nextSibling:o,parentNode:i,remove:a,insert:l,createComment:u}}=e,c=(m,b)=>{if(!b.hasChildNodes()){n(null,m,b),Ns(),b._vnode=m;return}f(b.firstChild,m,null,null,null),Ns(),b._vnode=m},f=(m,b,C,k,P,O=!1)=>{O=O||!!b.dynamicChildren;const F=Hn(m)&&m.data==="[",N=()=>g(m,b,C,k,P,F),{type:z,ref:G,shapeFlag:Q,patchFlag:Z}=b;let re=m.nodeType;b.el=m,Z===-2&&(O=!1,b.dynamicChildren=null);let D=null;switch(z){case xn:re!==3?b.children===""?(l(b.el=s(""),i(m),m),D=m):D=N():(m.data!==b.children&&(Nn(),m.data=b.children),D=o(m));break;case ot:v(m)?(D=o(m),_(b.el=m.content.firstChild,m,C)):re!==8||F?D=N():D=o(m);break;case Cr:if(F&&(m=o(m),re=m.nodeType),re===1||re===3){D=m;const V=!b.children.length;for(let H=0;H<b.staticCount;H++)V&&(b.children+=D.nodeType===1?D.outerHTML:D.data),H===b.staticCount-1&&(b.anchor=D),D=o(D);return F?o(D):D}else N();break;case Ee:F?D=p(m,b,C,k,P,O):D=N();break;default:if(Q&1)(re!==1||b.type.toLowerCase()!==m.tagName.toLowerCase())&&!v(m)?D=N():D=h(m,b,C,k,P,O);else if(Q&6){b.slotScopeIds=P;const V=i(m);if(F?D=w(m):Hn(m)&&m.data==="teleport start"?D=w(m,m.data,"teleport end"):D=o(m),t(b,V,null,C,k,ss(V),O),wn(b)&&!b.type.__asyncResolved){let H;F?(H=W(Ee),H.anchor=D?D.previousSibling:V.lastChild):H=m.nodeType===3?be(""):W("div"),H.el=m,b.component.subTree=H}}else Q&64?re!==8?D=N():D=b.type.hydrate(m,b,C,k,P,O,e,d):Q&128&&(D=b.type.hydrate(m,b,C,k,ss(i(m)),P,O,e,f))}return G!=null&&Vn(G,null,k,b),D},h=(m,b,C,k,P,O)=>{O=O||!!b.dynamicChildren;const{type:F,props:N,patchFlag:z,shapeFlag:G,dirs:Q,transition:Z}=b,re=F==="input"||F==="option";if(re||z!==-1){Q&&bt(b,null,C,"created");let D=!1;if(v(m)){D=xf(null,Z)&&C&&C.vnode.props&&C.vnode.props.appear;const H=m.content.firstChild;if(D){const ue=H.getAttribute("class");ue&&(H.$cls=ue),Z.beforeEnter(H)}_(H,m,C),b.el=m=H}if(G&16&&!(N&&(N.innerHTML||N.textContent))){let H=d(m.firstChild,b,m,C,k,P,O);for(;H;){os(m,1)||Nn();const ue=H;H=H.nextSibling,a(ue)}}else if(G&8){let H=b.children;H[0]===`
15
+ `&&(m.tagName==="PRE"||m.tagName==="TEXTAREA")&&(H=H.slice(1)),m.textContent!==H&&(os(m,0)||Nn(),m.textContent=b.children)}if(N){if(re||!O||z&48){const H=m.tagName.includes("-");for(const ue in N)(re&&(ue.endsWith("value")||ue==="indeterminate")||Vr(ue)&&!Wn(ue)||ue[0]==="."||H)&&r(m,ue,null,N[ue],void 0,C)}else if(N.onClick)r(m,"onClick",null,N.onClick,void 0,C);else if(z&4&&bn(N.style))for(const H in N.style)N.style[H]}let V;(V=N&&N.onVnodeBeforeMount)&&Qe(V,C,b),Q&&bt(b,null,C,"beforeMount"),((V=N&&N.onVnodeMounted)||Q||D)&&Rf(()=>{V&&Qe(V,C,b),D&&Z.enter(m),Q&&bt(b,null,C,"mounted")},k)}return m.nextSibling},d=(m,b,C,k,P,O,F)=>{F=F||!!b.dynamicChildren;const N=b.children,z=N.length;for(let G=0;G<z;G++){const Q=F?N[G]:N[G]=Ze(N[G]),Z=Q.type===xn;m?(Z&&!F&&G+1<z&&Ze(N[G+1]).type===xn&&(l(s(m.data.slice(Q.children.length)),C,o(m)),m.data=Q.children),m=f(m,Q,k,P,O,F)):Z&&!Q.children?l(Q.el=s(""),C):(os(C,1)||Nn(),n(null,Q,C,null,k,P,ss(C),O))}return m},p=(m,b,C,k,P,O)=>{const{slotScopeIds:F}=b;F&&(P=P?P.concat(F):F);const N=i(m),z=d(o(m),b,N,C,k,P,O);return z&&Hn(z)&&z.data==="]"?o(b.anchor=z):(Nn(),l(b.anchor=u("]"),N,z),z)},g=(m,b,C,k,P,O)=>{if(os(m.parentElement,1)||Nn(),b.el=null,O){const z=w(m);for(;;){const G=o(m);if(G&&G!==z)a(G);else break}}const F=o(m),N=i(m);return a(m),n(null,b,N,F,C,k,ss(N),P),C&&(C.vnode.el=b.el,yo(C,b.el)),F},w=(m,b="[",C="]")=>{let k=0;for(;m;)if(m=o(m),m&&Hn(m)&&(m.data===b&&k++,m.data===C)){if(k===0)return o(m);k--}return m},_=(m,b,C)=>{const k=b.parentNode;k&&k.replaceChild(m,b);let P=C;for(;P;)P.vnode.el===b&&(P.vnode.el=P.subTree.el=m),P=P.parent},v=m=>m.nodeType===1&&m.tagName==="TEMPLATE";return[c,f]}const vl="data-allow-mismatch",ng={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function os(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(vl);)e=e.parentElement;const n=e&&e.getAttribute(vl);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:r.includes(ng[t])}}uo().requestIdleCallback;uo().cancelIdleCallback;function rg(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 wn=e=>!!e.type.__asyncLoader;function Cl(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 h=()=>(f++,u=null,d()),d=()=>{let p;return u||(p=u=t().catch(g=>{if(g=g instanceof Error?g:new Error(String(g)),l)return new Promise((w,_)=>{l(g,()=>w(h()),()=>_(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:d,__asyncHydrate(p,g,w){let _=!1;(g.bu||(g.bu=[])).push(()=>_=!0);const v=()=>{_||w()},m=o?()=>{const b=o(v,C=>rg(p,C));b&&(g.bum||(g.bum=[])).push(b)}:v;c?m():d().then(()=>!g.isUnmounted&&m())},get __asyncResolved(){return c},setup(){const p=Ie;if(Aa(p),c)return()=>Wo(c,p);const g=m=>{u=null,ir(m,p,13,!r)};if(a&&p.suspense||tr)return d().then(m=>()=>Wo(m,p)).catch(m=>(g(m),()=>r?W(r,{error:m}):null));const w=ye(!1),_=ye(),v=ye(!!s);return s&&setTimeout(()=>{v.value=!1},s),i!=null&&setTimeout(()=>{if(!w.value&&!_.value){const m=new Error(`Async component timed out after ${i}ms.`);g(m),_.value=m}},i),d().then(()=>{w.value=!0,p.parent&&Ta(p.parent.vnode)&&p.parent.update()}).catch(m=>{g(m),_.value=m}),()=>{if(w.value&&c)return Wo(c,p);if(_.value&&r)return W(r,{error:_.value});if(n&&!v.value)return W(n)}}})}function Wo(e,t){const{ref:n,props:r,children:s,ce:o}=t.vnode,i=W(e,r,s);return i.ref=n,i.ce=o,delete t.vnode.ce,i}const Ta=e=>e.type.__isKeepAlive;function Qu(e,t){tf(e,"a",t)}function ef(e,t){tf(e,"da",t)}function tf(e,t,n=Ie){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(po(t,r,n),n){let s=n.parent;for(;s&&s.parent;)Ta(s.parent.vnode)&&sg(r,t,n,s),s=s.parent}}function sg(e,t,n,r){const s=po(t,e,r,!0);Ra(()=>{ha(r[t],s)},n)}function po(e,t,n=Ie,r=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{Mt();const a=Sn(n),l=St(t,n,e,i);return a(),Dt(),l});return r?s.unshift(o):s.push(o),o}}const Ht=e=>(t,n=Ie)=>{(!tr||e==="sp")&&po(e,(...r)=>t(...r),n)},nf=Ht("bm"),rf=Ht("m"),og=Ht("bu"),ig=Ht("u"),$a=Ht("bum"),Ra=Ht("um"),ag=Ht("sp"),lg=Ht("rtg"),cg=Ht("rtc");function sf(e,t=Ie){po("ec",e,t)}const of="components";function nn(e,t){return lf(of,e,!0,t)||e}const af=Symbol.for("v-ndc");function ug(e){return _e(e)?lf(of,e,!1)||e:e||af}function lf(e,t,n=!0,r=!1){const s=Le||Ie;if(s){const o=s.type;{const a=nm(o,!1);if(a&&(a===t||a===st(t)||a===co(st(t))))return o}const i=xl(s[e]||o[e],t)||xl(s.appContext[e],t);return!i&&r?o:i}}function xl(e,t){return e&&(e[t]||e[st(t)]||e[co(st(t))])}function zo(e,t,n,r){let s;const o=n,i=J(e);if(i||_e(e)){const a=i&&bn(e);let l=!1,u=!1;a&&(l=!rt(e),u=Bt(e),e=fo(e)),s=new Array(e.length);for(let c=0,f=e.length;c<f;c++)s[c]=t(l?u?$s(Ne(e[c])):Ne(e[c]):e[c],c,void 0,o)}else if(typeof e=="number"){s=new Array(e);for(let a=0;a<e;a++)s[a]=t(a+1,a,void 0,o)}else if(he(e))if(e[Symbol.iterator])s=Array.from(e,(a,l)=>t(a,l,void 0,o));else{const a=Object.keys(e);s=new Array(a.length);for(let l=0,u=a.length;l<u;l++){const c=a[l];s[l]=t(e[c],c,l,o)}}else s=[];return s}function He(e,t,n={},r,s){if(Le.ce||Le.parent&&wn(Le.parent)&&Le.parent.ce)return t!=="default"&&(n.name=t),K(),Re(Ee,null,[W("slot",n,r&&r())],64);let o=e[t];o&&o._c&&(o._d=!1),K();const i=o&&cf(o(n)),a=n.key||i&&i.key,l=Re(Ee,{key:(a&&!dt(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 cf(e){return e.some(t=>Qn(t)?!(t.type===ot||t.type===Ee&&!cf(t.children)):!0)?e:null}const xi=e=>e?Lf(e)?bo(e):xi(e.parent):null,vr=je(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>xi(e.parent),$root:e=>xi(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ff(e),$forceUpdate:e=>e.f||(e.f=()=>{ka(e.update)}),$nextTick:e=>e.n||(e.n=Xr.bind(e.proxy)),$watch:e=>Ng.bind(e)}),Vo=(e,t)=>e!==de&&!e.__isScriptSetup&&ce(e,t),fg={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:o,accessCache:i,type:a,appContext:l}=e;let u;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(Vo(r,t))return i[t]=1,r[t];if(s!==de&&ce(s,t))return i[t]=2,s[t];if((u=e.propsOptions[0])&&ce(u,t))return i[t]=3,o[t];if(n!==de&&ce(n,t))return i[t]=4,n[t];Si&&(i[t]=0)}}const c=vr[t];let f,h;if(c)return t==="$attrs"&&Be(e.attrs,"get",""),c(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(n!==de&&ce(n,t))return i[t]=4,n[t];if(h=l.config.globalProperties,ce(h,t))return h[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:o}=e;return Vo(s,t)?(s[t]=n,!0):r!==de&&ce(r,t)?(r[t]=n,!0):ce(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:o,type:i}},a){let l,u;return!!(n[a]||e!==de&&a[0]!=="$"&&ce(e,a)||Vo(t,a)||(l=o[0])&&ce(l,a)||ce(r,a)||ce(vr,a)||ce(s.config.globalProperties,a)||(u=i.__cssModules)&&u[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ce(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Sl(e){return J(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function dg(e){const t=En();let n=e();return $i(),pa(n)&&(n=n.catch(r=>{throw Sn(t),r})),[n,()=>Sn(t)]}let Si=!0;function hg(e){const t=ff(e),n=e.proxy,r=e.ctx;Si=!1,t.beforeCreate&&kl(t.beforeCreate,e,"bc");const{data:s,computed:o,methods:i,watch:a,provide:l,inject:u,created:c,beforeMount:f,mounted:h,beforeUpdate:d,updated:p,activated:g,deactivated:w,beforeDestroy:_,beforeUnmount:v,destroyed:m,unmounted:b,render:C,renderTracked:k,renderTriggered:P,errorCaptured:O,serverPrefetch:F,expose:N,inheritAttrs:z,components:G,directives:Q,filters:Z}=t;if(u&&pg(u,r,null),i)for(const V in i){const H=i[V];X(H)&&(r[V]=H.bind(n))}if(s){const V=s.call(n,n);he(V)&&(e.data=tn(V))}if(Si=!0,o)for(const V in o){const H=o[V],ue=X(H)?H.bind(n,n):X(H.get)?H.get.bind(n,n):vt,$n=!X(H)&&X(H.set)?H.set.bind(n):vt,on=Se({get:ue,set:$n});Object.defineProperty(r,V,{enumerable:!0,configurable:!0,get:()=>on.value,set:gt=>on.value=gt})}if(a)for(const V in a)uf(a[V],r,n,V);if(l){const V=X(l)?l.call(n):l;Reflect.ownKeys(V).forEach(H=>{hf(H,V[H])})}c&&kl(c,e,"c");function D(V,H){J(H)?H.forEach(ue=>V(ue.bind(n))):H&&V(H.bind(n))}if(D(nf,f),D(rf,h),D(og,d),D(ig,p),D(Qu,g),D(ef,w),D(sf,O),D(cg,k),D(lg,P),D($a,v),D(Ra,b),D(ag,F),J(N))if(N.length){const V=e.exposed||(e.exposed={});N.forEach(H=>{Object.defineProperty(V,H,{get:()=>n[H],set:ue=>n[H]=ue,enumerable:!0})})}else e.exposed||(e.exposed={});C&&e.render===vt&&(e.render=C),z!=null&&(e.inheritAttrs=z),G&&(e.components=G),Q&&(e.directives=Q),F&&Aa(e)}function pg(e,t,n=vt){J(e)&&(e=ki(e));for(const r in e){const s=e[r];let o;he(s)?"default"in s?o=Zt(s.from||r,s.default,!0):o=Zt(s.from||r):o=Zt(s),Ce(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[r]=o}}function kl(e,t,n){St(J(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function uf(e,t,n,r){let s=r.includes(".")?Ef(n,r):()=>n[r];if(_e(e)){const o=t[e];X(o)&&Cn(s,o)}else if(X(e))Cn(s,e.bind(n));else if(he(e))if(J(e))e.forEach(o=>uf(o,t,n,r));else{const o=X(e.handler)?e.handler.bind(n):t[e.handler];X(o)&&Cn(s,o,e)}}function ff(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=>Os(l,u,i,!0)),Os(l,t,i)),he(t)&&o.set(t,l),l}function Os(e,t,n,r=!1){const{mixins:s,extends:o}=t;o&&Os(e,o,n,!0),s&&s.forEach(i=>Os(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const a=gg[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const gg={data:El,props:Al,emits:Al,methods:yr,computed:yr,beforeCreate:Ue,created:Ue,beforeMount:Ue,mounted:Ue,beforeUpdate:Ue,updated:Ue,beforeDestroy:Ue,beforeUnmount:Ue,destroyed:Ue,unmounted:Ue,activated:Ue,deactivated:Ue,errorCaptured:Ue,serverPrefetch:Ue,components:yr,directives:yr,watch:yg,provide:El,inject:mg};function El(e,t){return t?e?function(){return je(X(e)?e.call(this,this):e,X(t)?t.call(this,this):t)}:t:e}function mg(e,t){return yr(ki(e),ki(t))}function ki(e){if(J(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ue(e,t){return e?[...new Set([].concat(e,t))]:t}function yr(e,t){return e?je(Object.create(null),e,t):t}function Al(e,t){return e?J(e)&&J(t)?[...new Set([...e,...t])]:je(Object.create(null),Sl(e),Sl(t??{})):t}function yg(e,t){if(!e)return t;if(!t)return e;const n=je(Object.create(null),e);for(const r in t)n[r]=Ue(e[r],t[r]);return n}function df(){return{app:null,config:{isNativeTag:xu,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 _g=0;function bg(e,t){return function(r,s=null){X(r)||(r=je({},r)),s!=null&&!he(s)&&(s=null);const o=df(),i=new WeakSet,a=[];let l=!1;const u=o.app={_uid:_g++,_component:r,_props:s,_container:null,_context:o,_instance:null,version:sm,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,h){if(!l){const d=u._ceVNode||W(r,s);return d.appContext=o,h===!0?h="svg":h===!1&&(h=void 0),f&&t?t(d,c):e(d,c,h),l=!0,u._container=c,c.__vue_app__=u,bo(d.component)}},onUnmount(c){a.push(c)},unmount(){l&&(St(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=vn;vn=u;try{return c()}finally{vn=f}}};return u}}let vn=null;function hf(e,t){if(Ie){let n=Ie.provides;const r=Ie.parent&&Ie.parent.provides;r===n&&(n=Ie.provides=Object.create(r)),n[e]=t}}function Zt(e,t,n=!1){const r=En();if(r||vn){let s=vn?vn._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 go(){return!!(En()||vn)}const pf={},gf=()=>Object.create(pf),mf=e=>Object.getPrototypeOf(e)===pf;function wg(e,t,n,r=!1){const s={},o=gf();e.propsDefaults=Object.create(null),yf(e,t,s,o);for(const i in e.propsOptions[0])i in s||(s[i]=void 0);n?e.props=r?s:Bn(s):e.type.props?e.props=s:e.props=o,e.attrs=o}function vg(e,t,n,r){const{props:s,attrs:o,vnode:{patchFlag:i}}=e,a=ae(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 h=c[f];if(mo(e.emitsOptions,h))continue;const d=t[h];if(l)if(ce(o,h))d!==o[h]&&(o[h]=d,u=!0);else{const p=st(h);s[p]=Ei(l,a,p,d,e,!1)}else d!==o[h]&&(o[h]=d,u=!0)}}}else{yf(e,t,s,o)&&(u=!0);let c;for(const f in a)(!t||!ce(t,f)&&((c=sn(f))===f||!ce(t,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(s[f]=Ei(l,a,f,void 0,e,!0)):delete s[f]);if(o!==a)for(const f in o)(!t||!ce(t,f))&&(delete o[f],u=!0)}u&&Pt(e.attrs,"set","")}function yf(e,t,n,r){const[s,o]=e.propsOptions;let i=!1,a;if(t)for(let l in t){if(Wn(l))continue;const u=t[l];let c;s&&ce(s,c=st(l))?!o||!o.includes(c)?n[c]=u:(a||(a={}))[c]=u:mo(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,i=!0)}if(o){const l=ae(n),u=a||de;for(let c=0;c<o.length;c++){const f=o[c];n[f]=Ei(s,l,f,u[f],e,!ce(u,f))}}return i}function Ei(e,t,n,r,s,o){const i=e[n];if(i!=null){const a=ce(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=Sn(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===sn(n))&&(r=!0))}return r}const Cg=new WeakMap;function _f(e,t,n=!1){const r=n?Cg: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[h,d]=_f(f,t,!0);je(i,h),d&&a.push(...d)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!o&&!l)return he(e)&&r.set(e,Un),Un;if(J(o))for(let c=0;c<o.length;c++){const f=st(o[c]);Tl(f)&&(i[f]=de)}else if(o)for(const c in o){const f=st(c);if(Tl(f)){const h=o[c],d=i[f]=J(h)||X(h)?{type:h}:je({},h),p=d.type;let g=!1,w=!0;if(J(p))for(let _=0;_<p.length;++_){const v=p[_],m=X(v)&&v.name;if(m==="Boolean"){g=!0;break}else m==="String"&&(w=!1)}else g=X(p)&&p.name==="Boolean";d[0]=g,d[1]=w,(g||ce(d,"default"))&&a.push(f)}}const u=[i,a];return he(e)&&r.set(e,u),u}function Tl(e){return e[0]!=="$"&&!Wn(e)}const Pa=e=>e==="_"||e==="_ctx"||e==="$stable",Na=e=>J(e)?e.map(Ze):[Ze(e)],xg=(e,t,n)=>{if(t._n)return t;const r=ie((...s)=>Na(t(...s)),n);return r._c=!1,r},bf=(e,t,n)=>{const r=e._ctx;for(const s in e){if(Pa(s))continue;const o=e[s];if(X(o))t[s]=xg(s,o,r);else if(o!=null){const i=Na(o);t[s]=()=>i}}},wf=(e,t)=>{const n=Na(t);e.slots.default=()=>n},vf=(e,t,n)=>{for(const r in t)(n||!Pa(r))&&(e[r]=t[r])},Sg=(e,t,n)=>{const r=e.slots=gf();if(e.vnode.shapeFlag&32){const s=t._;s?(vf(r,t,n),n&&Au(r,"_",s,!0)):bf(t,r)}else t&&wf(e,t)},kg=(e,t,n)=>{const{vnode:r,slots:s}=e;let o=!0,i=de;if(r.shapeFlag&32){const a=t._;a?n&&a===1?o=!1:vf(s,t,n):(o=!t.$stable,bf(t,s)),i=t}else t&&(wf(e,t),i={default:1});if(o)for(const a in s)!Pa(a)&&i[a]==null&&delete s[a]},Je=Rf;function Eg(e){return Cf(e)}function Ag(e){return Cf(e,tg)}function Cf(e,t){const n=uo();n.__VUE__=!0;const{insert:r,remove:s,patchProp:o,createElement:i,createText:a,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:h,setScopeId:d=vt,insertStaticContent:p}=e,g=(y,x,S,T=null,E=null,A=null,M=void 0,L=null,I=!!x.dynamicChildren)=>{if(y===x)return;y&&!Kt(y,x)&&(T=es(y),gt(y,E,A,!0),y=null),x.patchFlag===-2&&(I=!1,x.dynamicChildren=null);const{type:$,ref:q,shapeFlag:B}=x;switch($){case xn:w(y,x,S,T);break;case ot:_(y,x,S,T);break;case Cr:y==null&&v(x,S,T,M);break;case Ee:G(y,x,S,T,E,A,M,L,I);break;default:B&1?C(y,x,S,T,E,A,M,L,I):B&6?Q(y,x,S,T,E,A,M,L,I):(B&64||B&128)&&$.process(y,x,S,T,E,A,M,L,I,Rn)}q!=null&&E?Vn(q,y&&y.ref,A,x||y,!x):q==null&&y&&y.ref!=null&&Vn(y.ref,null,A,y,!0)},w=(y,x,S,T)=>{if(y==null)r(x.el=a(x.children),S,T);else{const E=x.el=y.el;x.children!==y.children&&u(E,x.children)}},_=(y,x,S,T)=>{y==null?r(x.el=l(x.children||""),S,T):x.el=y.el},v=(y,x,S,T)=>{[y.el,y.anchor]=p(y.children,x,S,T,y.el,y.anchor)},m=({el:y,anchor:x},S,T)=>{let E;for(;y&&y!==x;)E=h(y),r(y,S,T),y=E;r(x,S,T)},b=({el:y,anchor:x})=>{let S;for(;y&&y!==x;)S=h(y),s(y),y=S;s(x)},C=(y,x,S,T,E,A,M,L,I)=>{x.type==="svg"?M="svg":x.type==="math"&&(M="mathml"),y==null?k(x,S,T,E,A,M,L,I):F(y,x,E,A,M,L,I)},k=(y,x,S,T,E,A,M,L)=>{let I,$;const{props:q,shapeFlag:B,transition:U,dirs:Y}=y;if(I=y.el=i(y.type,A,q&&q.is,q),B&8?c(I,y.children):B&16&&O(y.children,I,null,T,E,qo(y,A),M,L),Y&&bt(y,null,T,"created"),P(I,y,y.scopeId,M,T),q){for(const pe in q)pe!=="value"&&!Wn(pe)&&o(I,pe,null,q[pe],A,T);"value"in q&&o(I,"value",null,q.value,A),($=q.onVnodeBeforeMount)&&Qe($,T,y)}Y&&bt(y,null,T,"beforeMount");const se=xf(E,U);se&&U.beforeEnter(I),r(I,x,S),(($=q&&q.onVnodeMounted)||se||Y)&&Je(()=>{$&&Qe($,T,y),se&&U.enter(I),Y&&bt(y,null,T,"mounted")},E)},P=(y,x,S,T,E)=>{if(S&&d(y,S),T)for(let A=0;A<T.length;A++)d(y,T[A]);if(E){let A=E.subTree;if(x===A||Tf(A.type)&&(A.ssContent===x||A.ssFallback===x)){const M=E.vnode;P(y,M,M.scopeId,M.slotScopeIds,E.parent)}}},O=(y,x,S,T,E,A,M,L,I=0)=>{for(let $=I;$<y.length;$++){const q=y[$]=L?Vt(y[$]):Ze(y[$]);g(null,q,x,S,T,E,A,M,L)}},F=(y,x,S,T,E,A,M)=>{const L=x.el=y.el;let{patchFlag:I,dynamicChildren:$,dirs:q}=x;I|=y.patchFlag&16;const B=y.props||de,U=x.props||de;let Y;if(S&&an(S,!1),(Y=U.onVnodeBeforeUpdate)&&Qe(Y,S,x,y),q&&bt(x,y,S,"beforeUpdate"),S&&an(S,!0),(B.innerHTML&&U.innerHTML==null||B.textContent&&U.textContent==null)&&c(L,""),$?N(y.dynamicChildren,$,L,S,T,qo(x,E),A):M||H(y,x,L,null,S,T,qo(x,E),A,!1),I>0){if(I&16)z(L,B,U,S,E);else if(I&2&&B.class!==U.class&&o(L,"class",null,U.class,E),I&4&&o(L,"style",B.style,U.style,E),I&8){const se=x.dynamicProps;for(let pe=0;pe<se.length;pe++){const fe=se[pe],We=B[fe],Oe=U[fe];(Oe!==We||fe==="value")&&o(L,fe,We,Oe,E,S)}}I&1&&y.children!==x.children&&c(L,x.children)}else!M&&$==null&&z(L,B,U,S,E);((Y=U.onVnodeUpdated)||q)&&Je(()=>{Y&&Qe(Y,S,x,y),q&&bt(x,y,S,"updated")},T)},N=(y,x,S,T,E,A,M)=>{for(let L=0;L<x.length;L++){const I=y[L],$=x[L],q=I.el&&(I.type===Ee||!Kt(I,$)||I.shapeFlag&198)?f(I.el):S;g(I,$,q,null,T,E,A,M,!0)}},z=(y,x,S,T,E)=>{if(x!==S){if(x!==de)for(const A in x)!Wn(A)&&!(A in S)&&o(y,A,x[A],null,E,T);for(const A in S){if(Wn(A))continue;const M=S[A],L=x[A];M!==L&&A!=="value"&&o(y,A,L,M,E,T)}"value"in S&&o(y,"value",x.value,S.value,E)}},G=(y,x,S,T,E,A,M,L,I)=>{const $=x.el=y?y.el:a(""),q=x.anchor=y?y.anchor:a("");let{patchFlag:B,dynamicChildren:U,slotScopeIds:Y}=x;Y&&(L=L?L.concat(Y):Y),y==null?(r($,S,T),r(q,S,T),O(x.children||[],S,q,E,A,M,L,I)):B>0&&B&64&&U&&y.dynamicChildren?(N(y.dynamicChildren,U,S,E,A,M,L),(x.key!=null||E&&x===E.subTree)&&Sf(y,x,!0)):H(y,x,S,q,E,A,M,L,I)},Q=(y,x,S,T,E,A,M,L,I)=>{x.slotScopeIds=L,y==null?x.shapeFlag&512?E.ctx.activate(x,S,T,M,I):Z(x,S,T,E,A,M,I):re(y,x,I)},Z=(y,x,S,T,E,A,M)=>{const L=y.component=Zg(y,T,E);if(Ta(y)&&(L.ctx.renderer=Rn),Yg(L,!1,M),L.asyncDep){if(E&&E.registerDep(L,D,M),!y.el){const I=L.subTree=W(ot);_(null,I,x,S),y.placeholder=I.el}}else D(L,y,x,S,E,A,M)},re=(y,x,S)=>{const T=x.component=y.component;if(Hg(y,x,S))if(T.asyncDep&&!T.asyncResolved){V(T,x,S);return}else T.next=x,T.update();else x.el=y.el,T.vnode=x},D=(y,x,S,T,E,A,M)=>{const L=()=>{if(y.isMounted){let{next:B,bu:U,u:Y,parent:se,vnode:pe}=y;{const qe=kf(y);if(qe){B&&(B.el=pe.el,V(y,B,M)),qe.asyncDep.then(()=>{y.isUnmounted||L()});return}}let fe=B,We;an(y,!1),B?(B.el=pe.el,V(y,B,M)):B=pe,U&&_s(U),(We=B.props&&B.props.onVnodeBeforeUpdate)&&Qe(We,se,B,pe),an(y,!0);const Oe=Ko(y),it=y.subTree;y.subTree=Oe,g(it,Oe,f(it.el),es(it),y,E,A),B.el=Oe.el,fe===null&&yo(y,Oe.el),Y&&Je(Y,E),(We=B.props&&B.props.onVnodeUpdated)&&Je(()=>Qe(We,se,B,pe),E)}else{let B;const{el:U,props:Y}=x,{bm:se,m:pe,parent:fe,root:We,type:Oe}=y,it=wn(x);if(an(y,!1),se&&_s(se),!it&&(B=Y&&Y.onVnodeBeforeMount)&&Qe(B,fe,x),an(y,!0),U&&Bo){const qe=()=>{y.subTree=Ko(y),Bo(U,y.subTree,y,E,null)};it&&Oe.__asyncHydrate?Oe.__asyncHydrate(U,y,qe):qe()}else{We.ce&&We.ce._def.shadowRoot!==!1&&We.ce._injectChildStyle(Oe);const qe=y.subTree=Ko(y);g(null,qe,S,T,y,E,A),x.el=qe.el}if(pe&&Je(pe,E),!it&&(B=Y&&Y.onVnodeMounted)){const qe=x;Je(()=>Qe(B,fe,qe),E)}(x.shapeFlag&256||fe&&wn(fe.vnode)&&fe.vnode.shapeFlag&256)&&y.a&&Je(y.a,E),y.isMounted=!0,x=S=T=null}};y.scope.on();const I=y.effect=new Iu(L);y.scope.off();const $=y.update=I.run.bind(I),q=y.job=I.runIfDirty.bind(I);q.i=y,q.id=y.uid,I.scheduler=()=>ka(q),an(y,!0),$()},V=(y,x,S)=>{x.component=y;const T=y.vnode.props;y.vnode=x,y.next=null,vg(y,x.props,T,S),kg(y,x.children,S),Mt(),_l(y),Dt()},H=(y,x,S,T,E,A,M,L,I=!1)=>{const $=y&&y.children,q=y?y.shapeFlag:0,B=x.children,{patchFlag:U,shapeFlag:Y}=x;if(U>0){if(U&128){$n($,B,S,T,E,A,M,L,I);return}else if(U&256){ue($,B,S,T,E,A,M,L,I);return}}Y&8?(q&16&&fr($,E,A),B!==$&&c(S,B)):q&16?Y&16?$n($,B,S,T,E,A,M,L,I):fr($,E,A,!0):(q&8&&c(S,""),Y&16&&O(B,S,T,E,A,M,L,I))},ue=(y,x,S,T,E,A,M,L,I)=>{y=y||Un,x=x||Un;const $=y.length,q=x.length,B=Math.min($,q);let U;for(U=0;U<B;U++){const Y=x[U]=I?Vt(x[U]):Ze(x[U]);g(y[U],Y,S,null,E,A,M,L,I)}$>q?fr(y,E,A,!0,!1,B):O(x,S,T,E,A,M,L,I,B)},$n=(y,x,S,T,E,A,M,L,I)=>{let $=0;const q=x.length;let B=y.length-1,U=q-1;for(;$<=B&&$<=U;){const Y=y[$],se=x[$]=I?Vt(x[$]):Ze(x[$]);if(Kt(Y,se))g(Y,se,S,null,E,A,M,L,I);else break;$++}for(;$<=B&&$<=U;){const Y=y[B],se=x[U]=I?Vt(x[U]):Ze(x[U]);if(Kt(Y,se))g(Y,se,S,null,E,A,M,L,I);else break;B--,U--}if($>B){if($<=U){const Y=U+1,se=Y<q?x[Y].el:T;for(;$<=U;)g(null,x[$]=I?Vt(x[$]):Ze(x[$]),S,se,E,A,M,L,I),$++}}else if($>U)for(;$<=B;)gt(y[$],E,A,!0),$++;else{const Y=$,se=$,pe=new Map;for($=se;$<=U;$++){const Ke=x[$]=I?Vt(x[$]):Ze(x[$]);Ke.key!=null&&pe.set(Ke.key,$)}let fe,We=0;const Oe=U-se+1;let it=!1,qe=0;const dr=new Array(Oe);for($=0;$<Oe;$++)dr[$]=0;for($=Y;$<=B;$++){const Ke=y[$];if(We>=Oe){gt(Ke,E,A,!0);continue}let mt;if(Ke.key!=null)mt=pe.get(Ke.key);else for(fe=se;fe<=U;fe++)if(dr[fe-se]===0&&Kt(Ke,x[fe])){mt=fe;break}mt===void 0?gt(Ke,E,A,!0):(dr[mt-se]=$+1,mt>=qe?qe=mt:it=!0,g(Ke,x[mt],S,null,E,A,M,L,I),We++)}const fl=it?Tg(dr):Un;for(fe=fl.length-1,$=Oe-1;$>=0;$--){const Ke=se+$,mt=x[Ke],dl=x[Ke+1],hl=Ke+1<q?dl.el||dl.placeholder:T;dr[$]===0?g(null,mt,S,hl,E,A,M,L,I):it&&(fe<0||$!==fl[fe]?on(mt,S,hl,2):fe--)}}},on=(y,x,S,T,E=null)=>{const{el:A,type:M,transition:L,children:I,shapeFlag:$}=y;if($&6){on(y.component.subTree,x,S,T);return}if($&128){y.suspense.move(x,S,T);return}if($&64){M.move(y,x,S,Rn);return}if(M===Ee){r(A,x,S);for(let B=0;B<I.length;B++)on(I[B],x,S,T);r(y.anchor,x,S);return}if(M===Cr){m(y,x,S);return}if(T!==2&&$&1&&L)if(T===0)L.beforeEnter(A),r(A,x,S),Je(()=>L.enter(A),E);else{const{leave:B,delayLeave:U,afterLeave:Y}=L,se=()=>{y.ctx.isUnmounted?s(A):r(A,x,S)},pe=()=>{A._isLeaving&&A[Yp](!0),B(A,()=>{se(),Y&&Y()})};U?U(A,se,pe):pe()}else r(A,x,S)},gt=(y,x,S,T=!1,E=!1)=>{const{type:A,props:M,ref:L,children:I,dynamicChildren:$,shapeFlag:q,patchFlag:B,dirs:U,cacheIndex:Y}=y;if(B===-2&&(E=!1),L!=null&&(Mt(),Vn(L,null,S,y,!0),Dt()),Y!=null&&(x.renderCache[Y]=void 0),q&256){x.ctx.deactivate(y);return}const se=q&1&&U,pe=!wn(y);let fe;if(pe&&(fe=M&&M.onVnodeBeforeUnmount)&&Qe(fe,x,y),q&6)Qh(y.component,S,T);else{if(q&128){y.suspense.unmount(S,T);return}se&&bt(y,null,x,"beforeUnmount"),q&64?y.type.remove(y,x,S,Rn,T):$&&!$.hasOnce&&(A!==Ee||B>0&&B&64)?fr($,x,S,!1,!0):(A===Ee&&B&384||!E&&q&16)&&fr(I,x,S),T&&cl(y)}(pe&&(fe=M&&M.onVnodeUnmounted)||se)&&Je(()=>{fe&&Qe(fe,x,y),se&&bt(y,null,x,"unmounted")},S)},cl=y=>{const{type:x,el:S,anchor:T,transition:E}=y;if(x===Ee){Yh(S,T);return}if(x===Cr){b(y);return}const A=()=>{s(S),E&&!E.persisted&&E.afterLeave&&E.afterLeave()};if(y.shapeFlag&1&&E&&!E.persisted){const{leave:M,delayLeave:L}=E,I=()=>M(S,A);L?L(y.el,A,I):I()}else A()},Yh=(y,x)=>{let S;for(;y!==x;)S=h(y),s(y),y=S;s(x)},Qh=(y,x,S)=>{const{bum:T,scope:E,job:A,subTree:M,um:L,m:I,a:$}=y;$l(I),$l($),T&&_s(T),E.stop(),A&&(A.flags|=8,gt(M,y,x,S)),L&&Je(L,x),Je(()=>{y.isUnmounted=!0},x)},fr=(y,x,S,T=!1,E=!1,A=0)=>{for(let M=A;M<y.length;M++)gt(y[M],x,S,T,E)},es=y=>{if(y.shapeFlag&6)return es(y.component.subTree);if(y.shapeFlag&128)return y.suspense.next();const x=h(y.anchor||y.el),S=x&&x[Jp];return S?h(S):x};let Mo=!1;const ul=(y,x,S)=>{y==null?x._vnode&&gt(x._vnode,null,null,!0):g(x._vnode||null,y,x,null,null,null,S),x._vnode=y,Mo||(Mo=!0,_l(),Ns(),Mo=!1)},Rn={p:g,um:gt,m:on,r:cl,mt:Z,mc:O,pc:H,pbc:N,n:es,o:e};let Do,Bo;return t&&([Do,Bo]=t(Rn)),{render:ul,hydrate:Do,createApp:bg(ul,Do)}}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 an({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function xf(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Sf(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]=Vt(s[o]),a.el=i.el),!n&&a.patchFlag!==-2&&Sf(i,a)),a.type===xn&&a.patchFlag!==-1&&(a.el=i.el),a.type===ot&&!a.el&&(a.el=i.el)}}function Tg(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 kf(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:kf(t)}function $l(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const $g=Symbol.for("v-scx"),Rg=()=>Zt($g);function Pg(e,t){return Ia(e,null,t)}function Cn(e,t,n){return Ia(e,t,n)}function Ia(e,t,n=de){const{immediate:r,deep:s,flush:o,once:i}=n,a=je({},n),l=t&&r||!t&&o!=="post";let u;if(tr){if(o==="sync"){const d=Rg();u=d.__watcherHandles||(d.__watcherHandles=[])}else if(!l){const d=()=>{};return d.stop=vt,d.resume=vt,d.pause=vt,d}}const c=Ie;a.call=(d,p,g)=>St(d,c,p,g);let f=!1;o==="post"?a.scheduler=d=>{Je(d,c&&c.suspense)}:o!=="sync"&&(f=!0,a.scheduler=(d,p)=>{p?d():ka(d)}),a.augmentJob=d=>{t&&(d.flags|=4),f&&(d.flags|=2,c&&(d.id=c.uid,d.i=c))};const h=Gp(e,t,a);return tr&&(u?u.push(h):l&&h()),h}function Ng(e,t,n){const r=this.proxy,s=_e(e)?e.includes(".")?Ef(r,e):()=>r[e]:e.bind(r,r);let o;X(t)?o=t:(o=t.handler,n=t);const i=Sn(this),a=Ia(s,o.bind(r),n);return i(),a}function Ef(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 Ig=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${st(t)}Modifiers`]||e[`${sn(t)}Modifiers`];function Lg(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||de;let s=n;const o=t.startsWith("update:"),i=o&&Ig(r,t.slice(7));i&&(i.trim&&(s=n.map(c=>_e(c)?c.trim():c)),i.number&&(s=n.map(sp)));let a,l=r[a=Ho(t)]||r[a=Ho(st(t))];!l&&o&&(l=r[a=Ho(sn(t))]),l&&St(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,St(u,e,6,s)}}const Og=new WeakMap;function Af(e,t,n=!1){const r=n?Og: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=Af(u,t,!0);c&&(a=!0,je(i,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!a?(he(e)&&r.set(e,null),null):(J(o)?o.forEach(l=>i[l]=null):je(i,o),he(e)&&r.set(e,i),i)}function mo(e,t){return!e||!Vr(t)?!1:(t=t.slice(2).replace(/Once$/,""),ce(e,t[0].toLowerCase()+t.slice(1))||ce(e,sn(t))||ce(e,t))}function Ko(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:h,setupState:d,ctx:p,inheritAttrs:g}=e,w=Is(e);let _,v;try{if(n.shapeFlag&4){const b=s||r,C=b;_=Ze(u.call(C,b,c,f,d,h,p)),v=a}else{const b=t;_=Ze(b.length>1?b(f,{attrs:a,slots:i,emit:l}):b(f,null)),v=t.props?a:Dg(a)}}catch(b){xr.length=0,ir(b,e,1),_=W(ot)}let m=_;if(v&&g!==!1){const b=Object.keys(v),{shapeFlag:C}=m;b.length&&C&7&&(o&&b.some(da)&&(v=Bg(v,o)),m=er(m,v,!1,!0))}return n.dirs&&(m=er(m,null,!1,!0),m.dirs=m.dirs?m.dirs.concat(n.dirs):n.dirs),n.transition&&Ea(m,n.transition),_=m,Is(w),_}function Mg(e,t=!0){let n;for(let r=0;r<e.length;r++){const s=e[r];if(Qn(s)){if(s.type!==ot||s.children==="v-if"){if(n)return;n=s}}else return}return n}const Dg=e=>{let t;for(const n in e)(n==="class"||n==="style"||Vr(n))&&((t||(t={}))[n]=e[n]);return t},Bg=(e,t)=>{const n={};for(const r in e)(!da(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Hg(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 h=c[f];if(i[h]!==r[h]&&!mo(u,h))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]&&!mo(n,o))return!0}return!1}function yo({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 Tf=e=>e.__isSuspense;let Ai=0;const Fg={name:"Suspense",__isSuspense:!0,process(e,t,n,r,s,o,i,a,l,u){if(e==null)Ug(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}Gg(e,t,n,r,s,i,a,l,u)}},hydrate:Wg,normalize:zg},jg=Fg;function Or(e,t){const n=e.props&&e.props[t];X(n)&&n()}function Ug(e,t,n,r,s,o,i,a,l){const{p:u,o:{createElement:c}}=l,f=c("div"),h=e.suspense=$f(e,s,r,t,f,n,o,i,a,l);u(null,h.pendingBranch=e.ssContent,f,null,r,h,o,i),h.deps>0?(Or(e,"onPending"),Or(e,"onFallback"),u(null,e.ssFallback,t,n,r,null,o,i),qn(h,e.ssFallback)):h.resolve(!1,!0)}function Gg(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 h=t.ssContent,d=t.ssFallback,{activeBranch:p,pendingBranch:g,isInFallback:w,isHydrating:_}=f;if(g)f.pendingBranch=h,Kt(g,h)?(l(g,h,f.hiddenContainer,null,s,f,o,i,a),f.deps<=0?f.resolve():w&&(_||(l(p,d,n,r,s,null,o,i,a),qn(f,d)))):(f.pendingId=Ai++,_?(f.isHydrating=!1,f.activeBranch=g):u(g,s,f),f.deps=0,f.effects.length=0,f.hiddenContainer=c("div"),w?(l(null,h,f.hiddenContainer,null,s,f,o,i,a),f.deps<=0?f.resolve():(l(p,d,n,r,s,null,o,i,a),qn(f,d))):p&&Kt(p,h)?(l(p,h,n,r,s,f,o,i,a),f.resolve(!0)):(l(null,h,f.hiddenContainer,null,s,f,o,i,a),f.deps<=0&&f.resolve()));else if(p&&Kt(p,h))l(p,h,n,r,s,f,o,i,a),qn(f,h);else if(Or(t,"onPending"),f.pendingBranch=h,h.shapeFlag&512?f.pendingId=h.component.suspenseId:f.pendingId=Ai++,l(null,h,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(d)},v):v===0&&f.fallback(d)}}function $f(e,t,n,r,s,o,i,a,l,u,c=!1){const{p:f,m:h,um:d,n:p,o:{parentNode:g,remove:w}}=u;let _;const v=Vg(e);v&&t&&t.pendingBranch&&(_=t.pendingId,t.deps++);const m=e.props?op(e.props.timeout):void 0,b=o,C={vnode:e,parent:t,parentComponent:n,namespace:i,container:r,hiddenContainer:s,deps:0,pendingId:Ai++,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:F,pendingBranch:N,pendingId:z,effects:G,parentComponent:Q,container:Z}=C;let re=!1;C.isHydrating?C.isHydrating=!1:k||(re=F&&N.transition&&N.transition.mode==="out-in",re&&(F.transition.afterLeave=()=>{z===C.pendingId&&(h(N,Z,o===b?p(F):o,0),Ci(G))}),F&&(g(F.el)===Z&&(o=p(F)),d(F,Q,C,!0)),re||h(N,Z,o,0)),qn(C,N),C.pendingBranch=null,C.isInFallback=!1;let D=C.parent,V=!1;for(;D;){if(D.pendingBranch){D.effects.push(...G),V=!0;break}D=D.parent}!V&&!re&&Ci(G),C.effects=[],v&&t&&t.pendingBranch&&_===t.pendingId&&(t.deps--,t.deps===0&&!P&&t.resolve()),Or(O,"onResolve")},fallback(k){if(!C.pendingBranch)return;const{vnode:P,activeBranch:O,parentComponent:F,container:N,namespace:z}=C;Or(P,"onFallback");const G=p(O),Q=()=>{C.isInFallback&&(f(null,k,N,G,F,null,z,a,l),qn(C,k))},Z=k.transition&&k.transition.mode==="out-in";Z&&(O.transition.afterLeave=Q),C.isInFallback=!0,d(O,F,null,!0),Z||Q()},move(k,P,O){C.activeBranch&&h(C.activeBranch,k,P,O),C.container=k},next(){return C.activeBranch&&p(C.activeBranch)},registerDep(k,P,O){const F=!!C.pendingBranch;F&&C.deps++;const N=k.vnode.el;k.asyncDep.catch(z=>{ir(z,k,0)}).then(z=>{if(k.isUnmounted||C.isUnmounted||C.pendingId!==k.suspenseId)return;k.asyncResolved=!0;const{vnode:G}=k;Ri(k,z),N&&(G.el=N);const Q=!N&&k.subTree.el;P(k,G,g(N||k.subTree.el),N?null:p(k.subTree),C,i,O),Q&&w(Q),yo(k,G.el),F&&--C.deps===0&&C.resolve()})},unmount(k,P){C.isUnmounted=!0,C.activeBranch&&d(C.activeBranch,n,k,P),C.pendingBranch&&d(C.pendingBranch,n,k,P)}};return C}function Wg(e,t,n,r,s,o,i,a,l){const u=t.suspense=$f(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 zg(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Pl(r?n.default:n),e.ssFallback=r?Pl(n.fallback):W(ot)}function Pl(e){let t;if(X(e)){const n=Yn&&e._c;n&&(e._d=!1,K()),e=e(),n&&(e._d=!0,t=ze,Pf())}return J(e)&&(e=Mg(e)),e=Ze(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Rf(e,t){t&&t.pendingBranch?J(e)?t.effects.push(...e):t.effects.push(e):Ci(e)}function qn(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,yo(r,s))}function Vg(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Ee=Symbol.for("v-fgt"),xn=Symbol.for("v-txt"),ot=Symbol.for("v-cmt"),Cr=Symbol.for("v-stc"),xr=[];let ze=null;function K(e=!1){xr.push(ze=e?null:[])}function Pf(){xr.pop(),ze=xr[xr.length-1]||null}let Yn=1;function Ms(e,t=!1){Yn+=e,e<0&&ze&&t&&(ze.hasOnce=!0)}function Nf(e){return e.dynamicChildren=Yn>0?ze||Un:null,Pf(),Yn>0&&ze&&ze.push(e),e}function le(e,t,n,r,s,o){return Nf(j(e,t,n,r,s,o,!0))}function Re(e,t,n,r,s){return Nf(W(e,t,n,r,s,!0))}function Qn(e){return e?e.__v_isVNode===!0:!1}function Kt(e,t){return e.type===t.type&&e.key===t.key}const If=({key:e})=>e??null,bs=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?_e(e)||Ce(e)||X(e)?{i:Le,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&&If(t),ref:t&&bs(t),scopeId:ho,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Le};return a?(Oa(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=_e(n)?8:16),Yn>0&&!i&&ze&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&ze.push(l),l}const W=qg;function qg(e,t=null,n=null,r=0,s=null,o=!1){if((!e||e===af)&&(e=ot),Qn(e)){const a=er(e,t,!0);return n&&Oa(a,n),Yn>0&&!o&&ze&&(a.shapeFlag&6?ze[ze.indexOf(e)]=a:ze.push(a)),a.patchFlag=-2,a}if(rm(e)&&(e=e.__vccOpts),t){t=La(t);let{class:a,style:l}=t;a&&!_e(a)&&(t.class=Ae(a)),he(l)&&(xa(l)&&!J(l)&&(l=je({},l)),t.style=yn(l))}const i=_e(e)?1:Tf(e)?128:Zp(e)?64:he(e)?4:X(e)?2:0;return j(e,t,n,r,s,i,o,!0)}function La(e){return e?xa(e)||mf(e)?je({},e):e:null}function er(e,t,n=!1,r=!1){const{props:s,ref:o,patchFlag:i,children:a,transition:l}=e,u=t?_o(s||{},t):s,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&If(u),ref:t&&t.ref?n&&o?J(o)?o.concat(bs(t)):[o,bs(t)]:bs(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&&er(e.ssContent),ssFallback:e.ssFallback&&er(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&Ea(c,l.clone(c)),c}function be(e=" ",t=0){return W(xn,null,e,t)}function Kg(e,t){const n=W(Cr,null,e);return n.staticCount=t,n}function wt(e="",t=!1){return t?(K(),Re(ot,null,e)):W(ot,null,e)}function Ze(e){return e==null||typeof e=="boolean"?W(ot):J(e)?W(Ee,null,e.slice()):Qn(e)?Vt(e):W(xn,null,String(e))}function Vt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:er(e)}function Oa(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),Oa(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!mf(t)?t._ctx=Le:s===3&&Le&&(Le.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else X(t)?(t={default:t,_ctx:Le},n=32):(t=String(t),r&64?(n=16,t=[be(t)]):n=8);e.children=t,e.shapeFlag|=n}function _o(...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=yn([t.style,r.style]);else if(Vr(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 Qe(e,t,n,r=null){St(e,t,7,[n,r])}const Xg=df();let Jg=0;function Zg(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||Xg,o={uid:Jg++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Nu(!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:_f(r,s),emitsOptions:Af(r,s),emit:null,emitted:null,propsDefaults:de,inheritAttrs:r.inheritAttrs,ctx:de,data:de,props:de,attrs:de,slots:de,refs:de,setupState:de,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=Lg.bind(null,o),e.ce&&e.ce(o),o}let Ie=null;const En=()=>Ie||Le;let Ds,Ti;{const e=uo(),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)}};Ds=t("__VUE_INSTANCE_SETTERS__",n=>Ie=n),Ti=t("__VUE_SSR_SETTERS__",n=>tr=n)}const Sn=e=>{const t=Ie;return Ds(e),e.scope.on(),()=>{e.scope.off(),Ds(t)}},$i=()=>{Ie&&Ie.scope.off(),Ds(null)};function Lf(e){return e.vnode.shapeFlag&4}let tr=!1;function Yg(e,t=!1,n=!1){t&&Ti(t);const{props:r,children:s}=e.vnode,o=Lf(e);wg(e,r,o,t),Sg(e,s,n||t);const i=o?Qg(e,t):void 0;return t&&Ti(!1),i}function Qg(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,fg);const{setup:r}=n;if(r){Mt();const s=e.setupContext=r.length>1?tm(e):null,o=Sn(e),i=Kr(r,e,0,[e.props,s]),a=pa(i);if(Dt(),o(),(a||e.sp)&&!wn(e)&&Aa(e),a){if(i.then($i,$i),t)return i.then(l=>{Ri(e,l)}).catch(l=>{ir(l,e,0)});e.asyncDep=i}else Ri(e,i)}else Of(e)}function Ri(e,t,n){X(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:he(t)&&(e.setupState=Xu(t)),Of(e)}function Of(e,t,n){const r=e.type;e.render||(e.render=r.render||vt);{const s=Sn(e);Mt();try{hg(e)}finally{Dt(),s()}}}const em={get(e,t){return Be(e,"get",""),e[t]}};function tm(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,em),slots:e.slots,emit:e.emit,expose:t}}function bo(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Xu(Lp(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in vr)return vr[n](e)},has(t,n){return n in t||n in vr}})):e.proxy}function nm(e,t=!0){return X(e)?e.displayName||e.name:e.name||t&&e.__name}function rm(e){return X(e)&&"__vccOpts"in e}const Se=(e,t)=>jp(e,t,tr);function nr(e,t,n){const r=(o,i,a)=>{Ms(-1);try{return W(o,i,a)}finally{Ms(1)}},s=arguments.length;return s===2?he(t)&&!J(t)?Qn(t)?r(e,null,[t]):r(e,t):r(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Qn(n)&&(n=[n]),r(e,t,n))}const sm="3.5.21";/**
16
+ * @vue/runtime-dom v3.5.21
17
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
18
+ * @license MIT
19
+ **/let Pi;const Nl=typeof window<"u"&&window.trustedTypes;if(Nl)try{Pi=Nl.createPolicy("vue",{createHTML:e=>e})}catch{}const Mf=Pi?e=>Pi.createHTML(e):e=>e,om="http://www.w3.org/2000/svg",im="http://www.w3.org/1998/Math/MathML",Rt=typeof document<"u"?document:null,Il=Rt&&Rt.createElement("template"),am={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"?Rt.createElementNS(om,e):t==="mathml"?Rt.createElementNS(im,e):n?Rt.createElement(e,{is:n}):Rt.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>Rt.createTextNode(e),createComment:e=>Rt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Rt.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{Il.innerHTML=Mf(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const a=Il.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]}},lm=Symbol("_vtc");function cm(e,t,n){const r=e[lm];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Ll=Symbol("_vod"),um=Symbol("_vsh"),fm=Symbol(""),dm=/(?:^|;)\s*display\s*:/;function hm(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&&ws(r,a,"")}else for(const i in t)n[i]==null&&ws(r,i,"");for(const i in n)i==="display"&&(o=!0),ws(r,i,n[i])}else if(s){if(t!==n){const i=r[fm];i&&(n+=";"+i),r.cssText=n,o=dm.test(n)}}else t&&e.removeAttribute("style");Ll in e&&(e[Ll]=o?r.display:"",e[um]&&(r.display="none"))}const Ol=/\s*!important$/;function ws(e,t,n){if(J(n))n.forEach(r=>ws(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=pm(e,t);Ol.test(n)?e.setProperty(sn(r),n.replace(Ol,""),"important"):e[r]=n}}const Ml=["Webkit","Moz","ms"],Xo={};function pm(e,t){const n=Xo[t];if(n)return n;let r=st(t);if(r!=="filter"&&r in e)return Xo[t]=r;r=co(r);for(let s=0;s<Ml.length;s++){const o=Ml[s]+r;if(o in e)return Xo[t]=o}return t}const Dl="http://www.w3.org/1999/xlink";function Bl(e,t,n,r,s,o=fp(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Dl,t.slice(6,t.length)):e.setAttributeNS(Dl,t,n):n==null||o&&!$u(n)?e.removeAttribute(t):e.setAttribute(t,o?"":dt(n)?String(n):n)}function Hl(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Mf(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=$u(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 Df(e,t,n,r){e.addEventListener(t,n,r)}function gm(e,t,n,r){e.removeEventListener(t,n,r)}const Fl=Symbol("_vei");function mm(e,t,n,r,s=null){const o=e[Fl]||(e[Fl]={}),i=o[t];if(r&&i)i.value=r;else{const[a,l]=ym(t);if(r){const u=o[t]=wm(r,s);Df(e,a,u,l)}else i&&(gm(e,a,i,l),o[t]=void 0)}}const jl=/(?:Once|Passive|Capture)$/;function ym(e){let t;if(jl.test(e)){t={};let r;for(;r=e.match(jl);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):sn(e.slice(2)),t]}let Jo=0;const _m=Promise.resolve(),bm=()=>Jo||(_m.then(()=>Jo=0),Jo=Date.now());function wm(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;St(vm(r,n.value),t,5,[r])};return n.value=e,n.attached=bm(),n}function vm(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 Ul=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Cm=(e,t,n,r,s,o)=>{const i=s==="svg";t==="class"?cm(e,r,i):t==="style"?hm(e,n,r):Vr(t)?da(t)||mm(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):xm(e,t,r,i))?(Hl(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Bl(e,t,r,i,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!_e(r))?Hl(e,st(t),r,o,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Bl(e,t,r,i))};function xm(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Ul(t)&&X(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Ul(t)&&_e(n)?!1:t in e}const Gl=e=>{const t=e.props["onUpdate:modelValue"]||!1;return J(t)?n=>_s(t,n):t},Zo=Symbol("_assign"),Sm={created(e,{value:t},n){e.checked=As(t,n.props.value),e[Zo]=Gl(n),Df(e,"change",()=>{e[Zo](km(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Zo]=Gl(r),t!==n&&(e.checked=As(t,r.props.value))}};function km(e){return"_value"in e?e._value:e.value}const Em={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Am=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=(s=>{if(!("key"in s))return;const o=sn(s.key);if(t.some(i=>i===o||Em[i]===o))return e(s)}))},Bf=je({patchProp:Cm},am);let Sr,Wl=!1;function Tm(){return Sr||(Sr=Eg(Bf))}function $m(){return Sr=Wl?Sr:Ag(Bf),Wl=!0,Sr}const Hf=((...e)=>{const t=Tm().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=jf(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,Ff(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),i},t}),Rm=((...e)=>{const t=$m().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=jf(r);if(s)return n(s,!0,Ff(s))},t});function Ff(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function jf(e){return _e(e)?document.querySelector(e):e}const Pm=/"(?:_|\\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*:/,Nm=/"(?: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*:/,Im=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Lm(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){Om(e);return}return t}function Om(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Bs(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(!Im.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(Pm.test(e)||Nm.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,Lm)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}const Mm=/#/g,Dm=/&/g,Bm=/\//g,Hm=/=/g,Ma=/\+/g,Fm=/%5e/gi,jm=/%60/gi,Um=/%7c/gi,Gm=/%20/gi;function Wm(e){return encodeURI(""+e).replace(Um,"|")}function Ni(e){return Wm(typeof e=="string"?e:JSON.stringify(e)).replace(Ma,"%2B").replace(Gm,"+").replace(Mm,"%23").replace(Dm,"%26").replace(jm,"`").replace(Fm,"^").replace(Bm,"%2F")}function Yo(e){return Ni(e).replace(Hm,"%3D")}function Hs(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function zm(e){return Hs(e.replace(Ma," "))}function Vm(e){return Hs(e.replace(Ma," "))}function wo(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=zm(r[1]);if(s==="__proto__"||s==="constructor")continue;const o=Vm(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 qm(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${Yo(e)}=${Ni(n)}`).join("&"):`${Yo(e)}=${Ni(t)}`:Yo(e)}function Uf(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>qm(t,e[t])).filter(Boolean).join("&")}const Km=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,Gf=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,Xm=/^([/\\]\s*){2,}[^/\\]/,Jm=/^[\s\0]*(blob|data|javascript|vbscript):$/i,Zm=/\/$|\/\?|\/#/,Ym=/^\.?\//;function Ft(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?Km.test(e):Gf.test(e)||(t.acceptRelative?Xm.test(e):!1)}function Qm(e){return!!e&&Jm.test(e)}function Ii(e="",t){return t?Zm.test(e):e.endsWith("/")}function vo(e="",t){if(!t)return(Ii(e)?e.slice(0,-1):e)||"/";if(!Ii(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 Fs(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(Ii(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 ey(e=""){return e.startsWith("/")}function zl(e=""){return ey(e)?e:"/"+e}function Wf(e,t){if(Vf(t)||Ft(e))return e;const n=vo(t);return e.startsWith(n)?e:Jr(n,e)}function ty(e,t){if(Vf(t))return e;const n=vo(t);if(!e.startsWith(n))return e;const r=e.slice(n.length);return r[0]==="/"?r:"/"+r}function zf(e,t){const n=Xf(e),r={...wo(n.search),...t};return n.search=Uf(r),Jf(n)}function Vf(e){return!e||e==="/"}function ny(e){return e&&e!=="/"}function Jr(e,...t){let n=e||"";for(const r of t.filter(s=>ny(s)))if(n){const s=r.replace(Ym,"");n=Fs(n)+s}else n=r;return n}function qf(...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&&Ft(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 ry(e){return sy(e,"https://")}function sy(e,t){let n=e.match(Gf);return n||(n=e.match(/^\/{2,}/)),n?t+e.slice(n[0].length):t+e}function oy(e,t,n={}){return n.trailingSlash||(e=Fs(e),t=Fs(t)),n.leadingSlash||(e=zl(e),t=zl(t)),n.encoding||(e=Hs(e),t=Hs(t)),e===t}const Kf=Symbol.for("ufo:protocolRelative");function Xf(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,f,h=""]=n;return{protocol:f.toLowerCase(),pathname:h,href:f+h,auth:"",host:"",search:"",hash:""}}if(!Ft(e,{acceptRelative:!0}))return Vl(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}=Vl(a);return{protocol:r.toLowerCase(),auth:s?s.slice(0,Math.max(0,s.length-1)):"",host:i,pathname:l,search:u,hash:c,[Kf]:!r}}function Vl(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function Jf(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[Kf]?(e.protocol||"")+"//":"")+s+o+t+n+r}class iy extends Error{constructor(t,n){super(t,n),this.name="FetchError",n?.cause&&!this.cause&&(this.cause=n.cause)}}function ay(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 iy(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 ly=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function ql(e="GET"){return ly.has(e.toUpperCase())}function cy(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const uy=new Set(["image/svg","application/xml","application/xhtml","application/html"]),fy=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function dy(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return fy.test(t)?"json":uy.has(t)||t.startsWith("text/")?"text":"blob"}function hy(e,t,n,r){const s=py(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 py(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 is(e,t){if(t)if(Array.isArray(t))for(const n of t)await n(e);else await t(e)}const gy=new Set([408,409,425,429,500,502,503,504]),my=new Set([101,204,205,304]);function Zf(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=ql(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):gy.has(f))){const h=typeof a.options.retryDelay=="function"?a.options.retryDelay(a):a.options.retryDelay||0;return h>0&&await new Promise(d=>setTimeout(d,h)),o(a.request,{...a.options,retry:c-1})}}const u=ay(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,o),u}const o=async function(l,u={}){const c={request:l,options:hy(l,u,e.defaults,n),response:void 0,error:void 0};c.options.method&&(c.options.method=c.options.method.toUpperCase()),c.options.onRequest&&await is(c,c.options.onRequest),typeof c.request=="string"&&(c.options.baseURL&&(c.request=Wf(c.request,c.options.baseURL)),c.options.query&&(c.request=zf(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&&ql(c.options.method)&&(cy(c.options.body)?(c.options.body=typeof c.options.body=="string"?c.options.body:JSON.stringify(c.options.body),c.options.headers=new n(c.options.headers||{}),c.options.headers.has("content-type")||c.options.headers.set("content-type","application/json"),c.options.headers.has("accept")||c.options.headers.set("accept","application/json")):("pipeTo"in c.options.body&&typeof c.options.body.pipeTo=="function"||typeof c.options.body.pipe=="function")&&("duplex"in c.options||(c.options.duplex="half")));let f;if(!c.options.signal&&c.options.timeout){const d=new r;f=setTimeout(()=>{const p=new Error("[TimeoutError]: The operation was aborted due to timeout");p.name="TimeoutError",p.code=23,d.abort(p)},c.options.timeout),c.options.signal=d.signal}try{c.response=await t(c.request,c.options)}catch(d){return c.error=d,c.options.onRequestError&&await is(c,c.options.onRequestError),await s(c)}finally{f&&clearTimeout(f)}if((c.response.body||c.response._bodyInit)&&!my.has(c.response.status)&&c.options.method!=="HEAD"){const d=(c.options.parseResponse?"json":c.options.responseType)||dy(c.response.headers.get("content-type")||"");switch(d){case"json":{const p=await c.response.text(),g=c.options.parseResponse||Bs;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[d]()}}return c.options.onResponse&&await is(c,c.options.onResponse),!c.options.ignoreResponseError&&c.response.status>=400&&c.response.status<600?(c.options.onResponseError&&await is(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={})=>Zf({...e,...l,defaults:{...e.defaults,...l.defaults,...a}}),i}const js=(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")})(),yy=js.fetch?(...e)=>js.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),_y=js.Headers,by=js.AbortController,wy=Zf({fetch:yy,Headers:_y,AbortController:by}),vy=wy,Cy=()=>window?.__NUXT__?.config||window?.useNuxtApp?.().payload?.config,Da=()=>Cy().app,xy=()=>Da().baseURL,Sy=()=>Da().buildAssetsDir,Ba=(...e)=>qf(Yf(),Sy(),...e),Yf=(...e)=>{const t=Da(),n=t.cdnURL||t.baseURL;return e.length?qf(n,...e):n};globalThis.__buildAssetsURL=Ba,globalThis.__publicAssetsURL=Yf;globalThis.$fetch||(globalThis.$fetch=vy.create({baseURL:xy()}));"global"in globalThis||(globalThis.global=globalThis);function Li(e,t={},n){for(const r in e){const s=e[r],o=n?`${n}:${r}`:r;typeof s=="object"&&s!==null?Li(s,t,o):typeof s=="function"&&(t[o]=s)}return t}const ky={run:e=>e()},Ey=()=>ky,Qf=typeof console.createTask<"u"?console.createTask:Ey;function Ay(e,t){const n=t.shift(),r=Qf(n);return e.reduce((s,o)=>s.then(()=>r.run(()=>o(...t))),Promise.resolve())}function Ty(e,t){const n=t.shift(),r=Qf(n);return Promise.all(e.map(s=>r.run(()=>s(...t))))}function Qo(e,t){for(const n of[...e])n(t)}class $y{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=Li(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=Li(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(Ay,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(Ty,t,...n)}callHookWith(t,n,...r){const s=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&Qo(this._before,s);const o=t(n in this._hooks?[...this._hooks[n]]:[],r);return o instanceof Promise?o.finally(()=>{this._after&&s&&Qo(this._after,s)}):(this._after&&s&&Qo(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 ed(){return new $y}function Ry(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;Oi.add(u);try{const c=s?s.run(i,a):a();return n||(t=void 0),await c}finally{Oi.delete(u)}}}}function Py(e={}){const t={};return{get(n,r={}){return t[n]||(t[n]=Ry({...e,...r})),t[n]}}}const Us=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},Kl="__unctx__",Ny=Us[Kl]||(Us[Kl]=Py()),Iy=(e,t={})=>Ny.get(e,t),Xl="__unctx_async_handlers__",Oi=Us[Xl]||(Us[Xl]=new Set);function td(e){const t=[];for(const s of Oi){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 Jl={id:"__nuxt-loader"},Ly={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},Oy={deep:!1},My="#__nuxt",nd="nuxt-app",Zl=36e5,Dy="vite:preloadError";function rd(e=nd){return Iy(e,{asyncContext:!1})}const By="__nuxt_plugin";function Hy(e){let t=0;const n={_id:e.id||nd||"nuxt-app",_scope:hp(),provide:void 0,versions:{get nuxt(){return"4.1.2"},get vue(){return n.vueApp.version}},payload:Bn({...e.ssrContext?.payload||{},data:Bn({}),state:tn({}),once:new Set,_errors:Bn({})}),static:{data:{}},runWithContext(s){return n._scope.active&&!ma()?n._scope.run(()=>Yl(n,s)):Yl(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:Bn({}),_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=ed(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(s,o)=>{const i="$"+s;as(n,i,o),as(n.vueApp.config.globalProperties,i,o)},as(n.vueApp,"$nuxt",n),as(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener(Dy,o=>{n.callHook("app:chunkError",{error:o.payload}),o.payload.message.includes("Unable to preload CSS")&&o.preventDefault()}),window.useNuxtApp||=we;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 Fy(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function jy(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 Uy(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=jy(e,l).then(async()=>{l._name&&(n.add(l._name),await Promise.all(r.map(async([f,h])=>{f.has(l._name)&&(f.delete(l._name),f.size===0&&(i++,await a(h)))})))}).catch(f=>{if(!l.parallel&&!e.payload.error)throw f;o||=f});l.parallel?s.push(c):await c}}for(const l of t)Fy(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,{[By]:!0,_name:t})}function Yl(e,t,n){const r=()=>t();return rd(e._id).set(e),e.vueApp.runWithContext(r)}function Gy(e){let t;return go()&&(t=En()?.appContext.app.$nuxt),t||=rd(e).tryUse(),t||null}function we(e){const t=Gy(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function rr(e){return we().$config}function as(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function Wy(e,t){return{ctx:{table:e},matchAll:n=>od(n,e)}}function sd(e){const t={};for(const n in e)t[n]=n==="dynamic"?new Map(Object.entries(e[n]).map(([r,s])=>[r,sd(s)])):new Map(Object.entries(e[n]));return t}function zy(e){return Wy(sd(e))}function od(e,t,n){e.endsWith("/")&&(e=e.slice(0,-1)||"/");const r=[];for(const[o,i]of Ql(t.wildcard))(e===o||e.startsWith(o+"/"))&&r.push(i);for(const[o,i]of Ql(t.dynamic))if(e.startsWith(o+"/")){const a="/"+e.slice(o.length).split("/").splice(2).join("/");r.push(...od(a,i))}const s=t.static.get(e);return s&&r.push(s),r.filter(Boolean)}function Ql(e){return[...e.entries()].sort((t,n)=>t[0].length-n[0].length)}function ei(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 Mi(e,t,n=".",r){if(!ei(t))return Mi(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]]:ei(i)&&ei(s[o])?s[o]=Mi(i,s[o],(n?`${n}.`:"")+o.toString(),r):s[o]=i))}return s}function Vy(e){return(...t)=>t.reduce((n,r)=>Mi(n,r,"",e),{})}const qy=Vy();function Ky(e,t){try{return t in e}catch{return!1}}class ec 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:Di(this.statusCode,500)};return this.statusMessage&&(t.statusMessage=id(this.statusMessage)),this.data!==void 0&&(t.data=this.data),t}}function Xy(e){if(typeof e=="string")return new ec(e);if(Jy(e))return e;const t=new ec(e.message??e.statusMessage??"",{cause:e.cause||e});if(Ky(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=Di(e.statusCode,t.statusCode):e.status&&(t.statusCode=Di(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;id(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 Jy(e){return e?.constructor?.__h3_error__===!0}const Zy=/[^\u0009\u0020-\u007E]/g;function id(e=""){return e.replace(Zy,"")}function Di(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const ad=Symbol("route");import.meta.url.replace(/\/app\/.*$/,"/");const kt=()=>we()?.$router,ld=()=>go()?Zt(ad,we()._route):we()._route;const Yy=()=>{try{if(we()._processingMiddleware)return!0}catch{return!1}return!1},cd=(e,t)=>{e||="/";const n=typeof e=="string"?e:"path"in e?Bi(e):kt().resolve(e).href;if(t?.open){const{target:l="_blank",windowFeatures:u={}}=t.open,c=[];for(const[f,h]of Object.entries(u))h!==void 0&&c.push(`${f.toLowerCase()}=${h}`);return open(n,l,c.join(", ")),Promise.resolve()}const r=Ft(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&&Qm(l))throw new Error(`Cannot navigate to a URL with '${l}' protocol.`)}const o=Yy();if(!s&&o){if(t?.replace){if(typeof e=="string"){const{pathname:l,search:u,hash:c}=Xf(e);return{path:l,...u&&{query:wo(u)},...c&&{hash:c},replace:!0}}return{...e,replace:!0}}return e}const i=kt(),a=we();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 Bi(e){return zf(e.path||"",e.query||{})+(e.hash||"")}const ud="__nuxt_error",Ha=()=>Sa(we().payload,"error"),Qy=e=>{const t=Co(e);try{const n=we(),r=Ha();n.hooks.callHook("app:error",t),r.value||=t}catch{throw t}return t},e_=async(e={})=>{const t=we(),n=Ha();t.callHook("app:error:cleared",e),e.redirect&&await kt().replace(e.redirect),n.value=void 0},t_=e=>!!e&&typeof e=="object"&&ud in e,Co=e=>{const t=Xy(e);return Object.defineProperty(t,ud,{value:!0,configurable:!1,writable:!1}),t};function n_(e){const t=s_(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 r_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function s_(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|=r_.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 o_=-1,i_=-2,a_=-3,l_=-4,c_=-5,u_=-6;function f_(e,t){return d_(JSON.parse(e),t)}function d_(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===o_)return;if(o===a_)return NaN;if(o===l_)return 1/0;if(o===c_)return-1/0;if(o===u_)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?.[l];if(u)return r[o]=u(s(a[1]));switch(l){case"Date":r[o]=new Date(a[1]);break;case"Set":const c=new Set;r[o]=c;for(let d=1;d<a.length;d+=1)c.add(s(a[d]));break;case"Map":const f=new Map;r[o]=f;for(let d=1;d<a.length;d+=2)f.set(s(a[d]),s(a[d+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 h=Object.create(null);r[o]=h;for(let d=1;d<a.length;d+=2)h[a[d]]=s(a[d+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 d=globalThis[l],p=new d(s(a[1]));r[o]=a[2]!==void 0?p.subarray(a[2],a[3]):p;break}case"ArrayBuffer":{const d=a[1],p=n_(d);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 d=l.slice(9);r[o]=Temporal[d].from(a[1]);break}case"URL":{const d=new URL(a[1]);r[o]=d;break}case"URLSearchParams":{const d=new URLSearchParams(a[1]);r[o]=d;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!==i_&&(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 h_=new Set(["link","style","script","noscript"]),p_=new Set(["title","titleTemplate","script","style","noscript"]),tc=new Set(["base","meta","link","style","script","noscript"]),g_=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),m_=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),y_=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),__=new Set(["templateParams","htmlAttrs","bodyAttrs"]),b_=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]),w_=["name","property","http-equiv"],v_=new Set(["viewport","description","keywords","robots"]);function fd(e){const t=e.split(":");return t.length?b_.has(t[1]):!1}function Hi(e){const{props:t,tag:n}=e;if(m_.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 w_)if(t[r]!==void 0){const s=t[r],o=s.includes(":"),i=v_.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(p_.has(n)){const r=e.textContent||e.innerHTML;if(r)return`${n}:content:${r}`}}function nc(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 Gs(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=>Gs(o,t));if(s?.constructor===Object){const o={};for(const i of Object.keys(s))o[i]=Gs(s[i],t,i);return o}return s}function C_(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 dd(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]=C_(n,r);return}if(y_.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 x_(e,t){const n=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},r=dd({tag:e,props:{}},n);return r.key&&h_.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 S_(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=Gs(e,n),Object.entries(e||{}).forEach(([s,o])=>{if(o!==void 0)for(const i of Array.isArray(o)?o:[o])r.push(x_(s,i))}),r.flat()}const rc=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,sc={base:-10,title:10},k_={critical:-8,high:-1,low:2},oc={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}},E_=/@import/,pr=e=>e===""||e===!0;function A_(e,t){if(typeof t.tagPriority=="number")return t.tagPriority;let n=100;const r=k_[t.tagPriority]||0,s=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:oc;if(t.tag in sc)n=sc[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=oc.meta[o])}else t.tag==="link"&&t.props.rel?n=s.link[t.props.rel]:t.tag==="script"?pr(t.props.async)?n=s.script.async:t.props.src&&!pr(t.props.defer)&&!pr(t.props.async)&&t.props.type!=="module"&&!t.props.type?.endsWith("json")?n=s.script.sync:pr(t.props.defer)&&t.props.src&&!pr(t.props.async)&&(n=s.script.defer):t.tag==="style"&&(n=t.innerHTML&&E_.test(t.innerHTML)?s.style.imported:s.style.sync);return(n||100)+r}function ic(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 T_(e={}){const t=ed();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=>ic(i,a),push(a,l){const u={...l||{}};delete u.head;const c=u._index??i._entryCount++,f={_i:c,input:a,options:u},h={_poll(d=!1){i.dirty=!0,!d&&o.add(c),t.callHook("entries:updated",i)},dispose(){r.delete(c)&&i.invalidate()},patch(d){(!u.mode||u.mode==="server"&&n||u.mode==="client"&&!n)&&(f.input=d,r.set(c,f),h._poll())}};return h.patch(a),h},async resolveTags(){const a={tagMap:new Map,tags:[],entries:[...i.entries.values()]};for(await t.callHook("entries:resolve",a);o.size;){const h=o.values().next().value;o.delete(h);const d=r.get(h);if(d){const p={tags:S_(d.input,e.propResolvers||[]).map(g=>Object.assign(g,d.options)),entry:d};await t.callHook("entries:normalize",p),d._tags=p.tags.map((g,w)=>(g._w=A_(i,g),g._p=(d._i<<10)+w,g._d=Hi(g),g))}}let l=!1;a.entries.flatMap(h=>(h._tags||[]).map(d=>({...d,props:{...d.props}}))).sort(rc).reduce((h,d)=>{const p=String(d._d||d._p);if(!h.has(p))return h.set(p,d);const g=h.get(p);if((d?.tagDuplicateStrategy||(__.has(d.tag)?"merge":null)||(d.key&&d.key===g.key?"merge":null))==="merge"){const _={...g.props};Object.entries(d.props).forEach(([v,m])=>_[v]=v==="style"?new Map([...g.props.style||new Map,...m]):v==="class"?new Set([...g.props.class||new Set,...m]):m),h.set(p,{...d,props:_})}else d._p>>10===g._p>>10&&d.tag==="meta"&&fd(p)?(h.set(p,Object.assign([...Array.isArray(g)?g:[g],d],d)),l=!0):(d._w===g._w?d._p>g._p:d?._w<g?._w)&&h.set(p,d);return h},a.tagMap);const u=a.tagMap.get("title"),c=a.tagMap.get("titleTemplate");if(i._title=u?.textContent,c){const h=c?.textContent;if(i._titleTemplate=h,h){let d=typeof h=="function"?h(u?.textContent):h;typeof d=="string"&&!i.plugins.has("template-params")&&(d=d.replace("%s",u?.textContent||"")),u?d===null?a.tagMap.delete("title"):a.tagMap.set("title",{...u,textContent:d}):(c.tag="title",c.textContent=d)}}a.tags=Array.from(a.tagMap.values()),l&&(a.tags=a.tags.flat().sort(rc)),await t.callHook("tags:beforeResolve",a),await t.callHook("tags:resolve",a),await t.callHook("tags:afterResolve",a);const f=[];for(const h of a.tags){const{innerHTML:d,tag:p,props:g}=h;if(g_.has(p)&&!(Object.keys(g).length===0&&!h.innerHTML&&!h.textContent)&&!(p==="meta"&&!g.content&&!g["http-equiv"]&&!g.charset)){if(p==="script"&&d){if(g.type?.endsWith("json")){const w=typeof d=="string"?d:JSON.stringify(d);h.innerHTML=w.replace(/</g,"\\u003C")}else typeof d=="string"&&(h.innerHTML=d.replace(new RegExp(`</${p}`,"g"),`<\\/${p}`));h._d=Hi(h)}f.push(h)}}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=>ic(i,a)),i.hooks.callHook("init",i),e.init?.forEach(a=>a&&i.push(a)),i}const $_=(e,t)=>Ce(t)?Zn(t):t,Fa="usehead";function R_(e){return{install(n){n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(Fa,e)}}.install}function P_(){if(go()){const e=Zt(Fa);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 N_(e,t={}){const n=t.head||P_();return n.ssr?n.push(e||{},t):I_(n,e,t)}function I_(e,t,n={}){const r=ye(!1);let s;return Pg(()=>{const i=r.value?{}:Gs(t,$_);s?s.patch(i):s=e.push(i,n)}),En()&&($a(()=>{s.dispose()}),ef(()=>{r.value=!0}),Qu(()=>{r.value=!1})),s}function L_(e){const t=e||we();return t.ssrContext?.head||t.runWithContext(()=>{if(go()){const n=Zt(Fa);if(!n)throw new Error("[nuxt] [unhead] Missing Unhead instance.");return n}})}function O_(e,t={}){const n=L_(t.nuxt);return N_(e,{head:n,...t})}const M_="modulepreload",D_=function(e,t){return new URL(e,t).href},ac={},Fn=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(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};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=D_(c,r),c in ac)return;ac[c]=!0;const f=c.endsWith(".css"),h=f?'[rel="stylesheet"]':"";if(!!r)for(let g=i.length-1;g>=0;g--){const w=i[g];if(w.href===c&&(!f||w.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${h}`))return;const p=document.createElement("link");if(p.rel=f?"stylesheet":M_,f||(p.as="script"),p.crossOrigin="",p.href=c,l&&p.setAttribute("nonce",l),document.head.appendChild(p),f)return new Promise((g,w)=>{p.addEventListener("load",g),p.addEventListener("error",()=>w(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 vs,Cs;function B_(){return vs=$fetch(Ba(`builds/meta/${rr().app.buildId}.json`),{responseType:"json"}),vs.then(e=>{Cs=zy(e.matcher)}).catch(e=>{console.error("[nuxt] Error fetching app manifest.",e)}),vs}function xo(){return vs||B_()}async function ja(e){const t=typeof e=="string"?e:e.path;if(await xo(),!Cs)return console.error("[nuxt] Error creating app manifest matcher.",Cs),{};try{return qy({},...Cs.matchAll(t).reverse())}catch(n){return console.error("[nuxt] Error matching route rules.",n),{}}}async function lc(e,t={}){if(!await pd(e))return null;const r=await F_(e,t);return await hd(r)||null}const H_="_payload.json";async function F_(e,t={}){const n=new URL(e,"http://localhost");if(n.host!=="localhost"||Ft(n.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);const r=rr(),s=t.hash||(t.fresh?Date.now():r.app.buildId),o=r.app.cdnURL,i=o&&await pd(e)?o:r.app.baseURL;return Jr(i,n.pathname,H_+(s?`?${s}`:""))}async function hd(e){const t=fetch(e,{cache:"force-cache"}).then(n=>n.text().then(gd));try{return await t}catch(n){console.warn("[nuxt] Cannot load payload ",e,n)}return null}async function pd(e=ld().path){const t=we();return e=vo(e),(await xo()).prerendered.includes(e)?!0:t.runWithContext(async()=>{const r=await ja({path:e});return!!r.prerender&&!r.redirect})}let ln=null;async function j_(){if(ln)return ln;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await gd(e.textContent||""),n=e.dataset.src?await hd(e.dataset.src):void 0;return ln={...t,...n,...window.__NUXT__},ln.config?.public&&(ln.config.public=tn(ln.config.public)),ln}async function gd(e){return await f_(e,we()._payloadRevivers)}function U_(e,t){we()._payloadRevivers[e]=t}const G_=[["NuxtError",e=>Co(e)],["EmptyShallowRef",e=>Ir(e==="_"?void 0:e==="0n"?BigInt(0):Bs(e))],["EmptyRef",e=>ye(e==="_"?void 0:e==="0n"?BigInt(0):Bs(e))],["ShallowRef",e=>Ir(e)],["ShallowReactive",e=>Bn(e)],["Ref",e=>ye(e)],["Reactive",e=>tn(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]=td(()=>e.runWithContext(j_)),t=await t,n(),t)),delete window.__NUXT__}});async function Ua(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(d=>{e.resolveTags().then(p=>{d(p.map(g=>{const w=o.get(g._d)||0,_={tag:g,id:(w?`${g._d}:${w}`:g._d)||nc(g),shouldRender:!0};return g._d&&fd(g._d)&&o.set(g._d,w+1),_}))})});let a=e._dom;if(!a){a={title:n.title,elMap:new Map().set("htmlAttrs",n.documentElement).set("bodyAttrs",n.body)};for(const d of["body","head"]){const p=n[d]?.children;for(const g of p){const w=g.tagName.toLowerCase();if(!tc.has(w))continue;const _=dd({tag:w,props:{}},{innerHTML:g.innerHTML,...g.getAttributeNames().reduce((v,m)=>(v[m]=g.getAttribute(m),v),{})||{}});if(_.key=g.getAttribute("data-hid")||void 0,_._d=Hi(_)||nc(_),a.elMap.has(_._d)){let v=1,m=_._d;for(;a.elMap.has(m);)m=`${_._d}:${v++}`;a.elMap.set(m,g)}else a.elMap.set(_._d,g)}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function l(d,p,g){const w=`${d}:${p}`;a.sideEffects[w]=g,delete a.pendingSideEffects[w]}function u({id:d,$el:p,tag:g}){const w=g.tag.endsWith("Attrs");a.elMap.set(d,p),w||(g.textContent&&g.textContent!==p.textContent&&(p.textContent=g.textContent),g.innerHTML&&g.innerHTML!==p.innerHTML&&(p.innerHTML=g.innerHTML),l(d,"el",()=>{p?.remove(),a.elMap.delete(d)}));for(const _ in g.props){if(!Object.prototype.hasOwnProperty.call(g.props,_))continue;const v=g.props[_];if(_.startsWith("on")&&typeof v=="function"){const b=p?.dataset;if(b&&b[`${_}fired`]){const C=_.slice(0,-5);v.call(p,new Event(C.substring(2)))}p.getAttribute(`data-${_}`)!==""&&((g.tag==="bodyAttrs"?n.defaultView:p).addEventListener(_.substring(2),v.bind(p)),p.setAttribute(`data-${_}`,""));continue}const m=`attr:${_}`;if(_==="class"){if(!v)continue;for(const b of v)w&&l(d,`${m}:${b}`,()=>p.classList.remove(b)),!p.classList.contains(b)&&p.classList.add(b)}else if(_==="style"){if(!v)continue;for(const[b,C]of v)l(d,`${m}:${b}`,()=>{p.style.removeProperty(b)}),p.style.setProperty(b,C)}else v!==!1&&v!==null&&(p.getAttribute(_)!==v&&p.setAttribute(_,v===!0?"":String(v)),w&&l(d,m,()=>p.removeAttribute(_)))}}const c=[],f={bodyClose:void 0,bodyOpen:void 0,head:void 0},h=await i;for(const d of h){const{tag:p,shouldRender:g,id:w}=d;if(g){if(p.tag==="title"){n.title=p.textContent,l("title","",()=>n.title=a.title);continue}d.$el=d.$el||a.elMap.get(w),d.$el?u(d):tc.has(p.tag)&&c.push(d)}}for(const d of c){const p=d.tag.tagPosition||"head";d.$el=n.createElement(d.tag.tag),u(d),f[p]=f[p]||n.createDocumentFragment(),f[p].appendChild(d.$el)}for(const d of h)await e.hooks.callHook("dom:renderTag",d,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 d in a.pendingSideEffects)a.pendingSideEffects[d]();e._dom=a,await e.hooks.callHook("dom:rendered",{renders:h}),s()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function z_(e={}){const t=e.domOptions?.render||Ua;e.document=e.document||(typeof window<"u"?document:void 0);const n=e.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return T_({...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_(()=>Ua(t),n=>setTimeout(n,0))},...e});return t.install=R_(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 Ua(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]=td(()=>ja({path:e.path})),t=await t,n(),t);if(r.redirect)return Ft(r.redirect,{acceptRelative:!0})?(window.location.href=r.redirect,!1):r.redirect},Z_=[J_];function ti(e){const t=e&&typeof e=="object"?e:{};typeof e=="object"&&(e=Jf({pathname:e.path||"",search:Uf(e.query||{}),hash:e.hash||""}));const n=new URL(e.toString(),window.location.href);return{path:n.pathname,fullPath:e,query:wo(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=ty(window.location.pathname,rr().app.baseURL)+window.location.search+window.location.hash,n=[],r={"navigate:before":[],"resolve:before":[],"navigate:after":[],error:[]},s=(f,h)=>(r[f].push(h),()=>r[f].splice(r[f].indexOf(h),1)),o=rr().app.baseURL,i=tn(ti(t));async function a(f,h){try{const d=ti(f);for(const p of r["navigate:before"]){const g=await p(d,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(d,i);Object.assign(i,d),window.history[h?"replaceState":"pushState"]({},"",Jr(o,d.fullPath)),e.isHydrating||await e.runWithContext(e_);for(const p of r["navigate:after"])await p(d,i)}catch(d){for(const p of r.error)await p(d)}}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:ti,addRoute:(f,h)=>{n.push(h)},getRoutes:()=>n,hasRoute:f=>n.some(h=>h.name===f),removeRoute:f=>{const h=n.findIndex(d=>d.name===f);h!==-1&&n.splice(h,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:h})=>{const d=()=>a(f.to,f.replace);return()=>{const p=u.resolve(f.to);return f.custom?h.default?.({href:f.to,navigate:d,route:p}):nr("a",{href:f.to,onClick:g=>(g.preventDefault(),d())},h)}}})),window.addEventListener("popstate",f=>{const h=f.target.location;u.replace(h.href.replace(h.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,h)=>{f.meta=tn(f.meta||{}),e.isHydrating&&c&&!Bt(f.meta.layout)&&(f.meta.layout=c),e._processingMiddleware=!0;{const d=new Set([...Z_,...e._middleware.global]);{const p=await e.runWithContext(()=>ja({path:f.path}));if(p.appMiddleware)for(const g in p.appMiddleware){const w=e._middleware.named[g];if(!w)return;p.appMiddleware[g]?d.add(w):d.delete(w)}}for(const p of d){const g=await e.runWithContext(()=>p(f,h));if(g!==!0&&(g||g===!1))return g}}}),u.afterEach(()=>{delete e._processingMiddleware}),await u.replace(t),oy(i.fullPath,t)||await e.runWithContext(()=>cd(i.fullPath))}),{provide:{route:i,router:u}}}}),Q_={trailing:!0};function eb(e,t=25,n={}){if(n={...Q_,...n},!Number.isFinite(t))throw new TypeError("Expected `wait` to be a finite number");let r,s,o=[],i,a;const l=(f,h)=>(i=tb(e,f,h),i.finally(()=>{if(i=null,n.trailing&&a&&!s){const d=l(f,a);return a=null,d}}),i),u=function(...f){return n.trailing&&(a=f),i||new Promise(h=>{const d=!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),d?(r=l(this,f),h(r)):o.push(h)})},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"),Fi=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)}),So=e=>{const t=we();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{Fi(()=>e())}):Fi(()=>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;const o=Se(()=>Zn(n));if(typeof o.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 i=we();s.server??=!0,s.default??=ab,s.getCachedData??=yd,s.lazy??=!1,s.immediate??=!0,s.deep??=Oy.deep,s.dedupe??="cancel",s._functionName,i._asyncData[o.value];const a={cause:"initial",dedupe:s.dedupe};i._asyncData[o.value]?._init||(a.cachedData=s.getCachedData(o.value,i,{cause:"initial"}),i._asyncData[o.value]=cc(i,o.value,r,s,a.cachedData));const l=i._asyncData[o.value];l._deps++;const u=()=>i._asyncData[o.value].execute(a),c=s.server!==!1&&i.payload.serverRendered;{let d=function(m){const b=i._asyncData[m];b?._deps&&(b._deps--,b._deps===0&&b?._off())};const p=En();if(p&&c&&s.immediate&&!p.sp&&(p.sp=[]),p&&!p._nuxtOnBeforeMountCbs){p._nuxtOnBeforeMountCbs=[];const m=p._nuxtOnBeforeMountCbs;nf(()=>{m.forEach(b=>{b()}),m.splice(0,m.length)}),Ra(()=>m.splice(0,m.length))}const g=p&&(p._nuxtClientOnly||Zt(nb,!1));c&&i.isHydrating&&(l.error.value||l.data.value!==void 0)?l.status.value=l.error.value?"error":"success":p&&(!g&&i.payload.serverRendered&&i.isHydrating||s.lazy)&&s.immediate?p._nuxtOnBeforeMountCbs.push(u):s.immediate&&l.status.value!=="success"&&u();const w=ma(),_=Cn(o,(m,b)=>{if((m||b)&&m!==b){const C=i._asyncData[b]?.data.value!==void 0,k=i._asyncDataPromises[b]!==void 0;b&&d(b);const P={cause:"initial",dedupe:s.dedupe};if(!i._asyncData[m]?._init){let O;b&&C?O=i._asyncData[b]?.data.value:(O=s.getCachedData(m,i,{cause:"initial"}),P.cachedData=O),i._asyncData[m]=cc(i,m,r,s,O)}i._asyncData[m]._deps++,(s.immediate||C||k)&&i._asyncData[m].execute(P)}},{flush:"sync"}),v=s.watch?Cn(s.watch,()=>{l._execute({cause:"watch",dedupe:s.dedupe})}):()=>{};w&&pp(()=>{_(),v(),d(o.value)})}const f={data:ls(()=>i._asyncData[o.value]?.data),pending:ls(()=>i._asyncData[o.value]?.pending),status:ls(()=>i._asyncData[o.value]?.status),error:ls(()=>i._asyncData[o.value]?.error),refresh:(...d)=>i._asyncData[o.value].execute(...d),execute:(...d)=>i._asyncData[o.value].execute(...d),clear:()=>md(i,o.value)},h=Promise.resolve(i._asyncDataPromises[o.value]).then(()=>f);return Object.assign(h,f),h}function ls(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 md(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=ne(e._asyncData[t]._default()),e._asyncData[t].error.value=void 0,e._asyncData[t].status.value="idle"),t in e._asyncDataPromises&&(e._asyncDataPromises[t]&&(e._asyncDataPromises[t].cancelled=!0),e._asyncDataPromises[t]=void 0)}function ib(e,t){const n={};for(const r of t)n[r]=e[r];return n}function cc(e,t,n,r,s){e.payload._errors[t]??=void 0;const o=r.getCachedData!==yd,i=n,a=r.deep?ye:Ir,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:Sa(e.payload._errors,t),status:Ir("idle"),execute:(...f)=>{const[h,d=void 0]=f,p=h&&d===void 0&&typeof h=="object"?h:{};if(e._asyncDataPromises[t]){if((p.dedupe??r.dedupe)==="defer")return e._asyncDataPromises[t];e._asyncDataPromises[t].cancelled=!0}{const w="cachedData"in p?p.cachedData:r.getCachedData(t,e,{cause:p.cause??"refresh:manual"});if(w!==void 0)return e.payload.data[t]=c.data.value=w,c.error.value=void 0,c.status.value="success",Promise.resolve(w)}c.status.value="pending";const g=new Promise((w,_)=>{try{w(i(e))}catch(v){_(v)}}).then(async w=>{if(g.cancelled)return e._asyncDataPromises[t];let _=w;r.transform&&(_=await r.transform(w)),r.pick&&(_=ib(_,r.pick)),e.payload.data[t]=_,c.data.value=_,c.error.value=void 0,c.status.value="success"}).catch(w=>{if(g.cancelled)return e._asyncDataPromises[t];c.error.value=Co(w),c.data.value=ne(r.default()),c.status.value="error"}).finally(()=>{g.cancelled||delete e._asyncDataPromises[t]});return e._asyncDataPromises[t]=g,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||Xr(()=>{e._asyncData[t]?._init||(md(e,t),c.execute=()=>Promise.resolve())})}};return c}const ab=()=>{},yd=(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]},lb="$s";function cb(...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=lb+n,o=we(),i=Sa(o.payload.state,s);if(i.value===void 0&&r){const a=r();if(Ce(a))return o.payload.state[s]=a,a;i.value=a}return i}async function _d(e,t=kt()){const{path:n,matched:r}=t.resolve(e);if(!r.length||(t._routePreloaded||=new Set,t._routePreloaded.has(n)))return;const s=t._preloadPromises||=[];if(s.length>4)return Promise.all(s).then(()=>_d(e,t));t._routePreloaded.add(n);for(const o of r){const i=o.components?.default;if(typeof i!="function")continue;const a=Promise.resolve(i()).catch(()=>{}).finally(()=>s.splice(s.indexOf(a)));s.push(a)}await Promise.all(s)}function ub(e={}){const t=e.path||window.location.pathname;let n={};try{n=Bs(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:we().payload.state}))}catch{}window.location.pathname!==t?window.location.href=t:window.location.reload()}}const fb=(...e)=>e.find(t=>t!==void 0);function db(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 cs(o,l);const u="path"in o&&o.path!==void 0?o.path:i(o).path;return{...o,name:void 0,path:cs(u,l)}}function s(o){const i=kt(),a=rr(),l=Se(()=>!!o.target&&o.target!=="_self"),u=Se(()=>{const w=o.to||o.href||"";return typeof w=="string"&&Ft(w,{acceptRelative:!0})}),c=nn("RouterLink"),f=c&&typeof c!="string"?c.useLink:void 0,h=Se(()=>{if(o.external)return!0;const w=o.to||o.href||"";return typeof w=="object"?!1:w===""||u.value}),d=Se(()=>{const w=o.to||o.href||"";return h.value?w:r(w,i.resolve,o.trailingSlash)}),p=h.value?void 0:f?.({...o,to:d}),g=Se(()=>{const w=o.trailingSlash??e.trailingSlash;if(!d.value||u.value||n(d.value))return d.value;if(h.value){const _=typeof d.value=="object"&&"path"in d.value?Bi(d.value):d.value,v=typeof _=="object"?i.resolve(_).href:_;return cs(v,w)}return typeof d.value=="object"?i.resolve(d.value)?.href??null:cs(Jr(a.app.baseURL,d.value),w)});return{to:d,hasTarget:l,isAbsoluteUrl:u,isExternal:h,href:g,isActive:p?.isActive??Se(()=>d.value===i.currentRoute.value.path),isExactActive:p?.isExactActive??Se(()=>d.value===i.currentRoute.value.path),route:p?.route??Se(()=>i.resolve(d.value)),async navigate(w){await cd(g.value,{replace:o.replace,external:h.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=kt(),{to:l,href:u,navigate:c,isExternal:f,hasTarget:h,isAbsoluteUrl:d}=s(o),p=Ir(!1),g=ye(null),w=m=>{g.value=o.custom?m?.$el?.nextElementSibling:m?.$el};function _(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"&&!gb()}async function v(m=we()){if(p.value)return;p.value=!0;const b=typeof l.value=="string"?l.value:f.value?Bi(l.value):a.resolve(l.value).fullPath,C=f.value?new URL(b,window.location.href).href:b;await Promise.all([m.hooks.callHook("link:prefetch",C).catch(()=>{}),!f.value&&!h.value&&_d(l.value,a).catch(()=>{})])}if(_("visibility")){const m=we();let b,C=null;rf(()=>{const k=hb();So(()=>{b=Fi(()=>{g?.value?.tagName&&(C=k.observe(g.value,async()=>{C?.(),C=null,await v(m)}))})})}),$a(()=>{b&&rb(b),C?.(),C=null})}return()=>{if(!f.value&&!h.value&&!n(l.value)){const C={ref:w,to:l.value,activeClass:o.activeClass||e.activeClass,exactActiveClass:o.exactActiveClass||e.exactActiveClass,replace:o.replace,ariaCurrentValue:o.ariaCurrentValue,custom:o.custom};return o.custom||(_("interaction")&&(C.onPointerenter=v.bind(null,void 0),C.onFocus=v.bind(null,void 0)),p.value&&(C.class=o.prefetchedClass||e.prefetchedClass),C.rel=o.rel||void 0),nr(nn("RouterLink"),C,i.default)}const m=o.target||null,b=fb(o.noRel?"":o.rel,e.externalRelAttribute,d.value||h.value?"noopener noreferrer":"")||null;return o.custom?i.default?i.default({href:u.value,navigate:c,prefetch:v,get route(){if(!u.value)return;const C=new URL(u.value,window.location.href);return{path:C.pathname,fullPath:C.pathname,get query(){return wo(C.search)},hash:C.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:u.value}},rel:b,target:m,isExternal:f.value||h.value,isActive:!1,isExactActive:!1}):null:nr("a",{ref:g,href:u.value||null,rel:b,target:m,onClick:C=>{if(!(f.value||h.value))return C.preventDefault(),o.replace?a.replace(u.value):a.push(u.value)}},i.default?.())}}})}const Ga=db(Ly);function cs(e,t){const n=t==="append"?Fs:vo;return Ft(e)&&!e.startsWith("http")?e:n(e,!0)}function hb(){const e=we();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 pb=/2g/;function gb(){const e=navigator.connection;return!!(e&&(e.saveData||pb.test(e.effectiveType)))}function mb(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&&!Ft(String(e.url),{acceptRelative:!0,strict:!1})&&(e.url=ry(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 yb(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:mb(i)}return{stack:n,push:r,get:s}}const _b=pt({name:"nuxt-site-config:init",enforce:"pre",async setup(e){const t=yb(),n=cb("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}}}}),bb=pt({name:"nuxt:payload",setup(e){const t=new Set;kt().beforeResolve(async(n,r)=>{if(n.path===r.path)return;const s=await lc(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]}}),So(()=>{e.hooks.hook("link:prefetch",async n=>{const{hostname:r}=new URL(n,window.location.href);r===window.location.hostname&&await lc(n).catch(()=>{console.warn("[nuxt] Error preloading payload for",n)})}),navigator.connection?.effectiveType!=="slow-2g"&&setTimeout(xo,1e3)})}}),wb=pt(()=>{const e=kt();So(()=>{e.beforeResolve(async()=>{await new Promise(t=>{setTimeout(t,100),requestAnimationFrame(()=>{setTimeout(t,0)})})})})}),vb=pt(e=>{let t;async function n(){let r;try{r=await xo()}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(Ba("builds/latest.json")+`?${Date.now()}`);s.id!==r?.id&&(e.hooks.callHook("app:manifest:update",s),t&&clearTimeout(t))}catch{}}So(()=>{t=setTimeout(n,Zl)})}),Cb=pt({name:"nuxt:chunk-reload",setup(e){const t=kt(),n=rr(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook("app:chunkError",({error:o})=>{r.add(o)});function s(o){const i=Jr(n.app.baseURL,o.fullPath);ub({path:i,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(s)}),t.onError((o,i)=>{r.has(o)&&s(i)})}}),xb=pt({name:"nuxt:global-components"}),Sb=pt(()=>{}),kb=["top","right","bottom","left"],uc=["start","end"],fc=kb.reduce((e,t)=>e.concat(t,t+"-"+uc[0],t+"-"+uc[1]),[]),Mr=Math.min,dn=Math.max,Eb={left:"right",right:"left",bottom:"top",top:"bottom"},Ab={start:"end",end:"start"};function ji(e,t,n){return dn(e,Mr(t,n))}function An(e,t){return typeof e=="function"?e(t):e}function Et(e){return e.split("-")[0]}function ut(e){return e.split("-")[1]}function bd(e){return e==="x"?"y":"x"}function Wa(e){return e==="y"?"height":"width"}const Tb=new Set(["top","bottom"]);function It(e){return Tb.has(Et(e))?"y":"x"}function za(e){return bd(It(e))}function wd(e,t,n){n===void 0&&(n=!1);const r=ut(e),s=za(e),o=Wa(s);let i=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=zs(i)),[i,zs(i)]}function $b(e){const t=zs(e);return[Ws(e),t,Ws(t)]}function Ws(e){return e.replace(/start|end/g,t=>Ab[t])}const dc=["left","right"],hc=["right","left"],Rb=["top","bottom"],Pb=["bottom","top"];function Nb(e,t,n){switch(e){case"top":case"bottom":return n?t?hc:dc:t?dc:hc;case"left":case"right":return t?Rb:Pb;default:return[]}}function Ib(e,t,n,r){const s=ut(e);let o=Nb(Et(e),n==="start",r);return s&&(o=o.map(i=>i+"-"+s),t&&(o=o.concat(o.map(Ws)))),o}function zs(e){return e.replace(/left|right|bottom|top/g,t=>Eb[t])}function Lb(e){return{top:0,right:0,bottom:0,left:0,...e}}function vd(e){return typeof e!="number"?Lb(e):{top:e,right:e,bottom:e,left:e}}function kr(e){const{x:t,y:n,width:r,height:s}=e;return{width:r,height:s,top:n,left:t,right:t+r,bottom:n+s,x:t,y:n}}function pc(e,t,n){let{reference:r,floating:s}=e;const o=It(t),i=za(t),a=Wa(i),l=Et(t),u=o==="y",c=r.x+r.width/2-s.width/2,f=r.y+r.height/2-s.height/2,h=r[a]/2-s[a]/2;let d;switch(l){case"top":d={x:c,y:r.y-s.height};break;case"bottom":d={x:c,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:f};break;case"left":d={x:r.x-s.width,y:f};break;default:d={x:r.x,y:r.y}}switch(ut(t)){case"start":d[i]-=h*(n&&u?-1:1);break;case"end":d[i]+=h*(n&&u?-1:1);break}return d}const Ob=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:o=[],platform:i}=n,a=o.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:s}),{x:c,y:f}=pc(u,r,l),h=r,d={},p=0;for(let g=0;g<a.length;g++){const{name:w,fn:_}=a[g],{x:v,y:m,data:b,reset:C}=await _({x:c,y:f,initialPlacement:r,placement:h,strategy:s,middlewareData:d,rects:u,platform:i,elements:{reference:e,floating:t}});c=v??c,f=m??f,d={...d,[w]:{...d[w],...b}},C&&p<=50&&(p++,typeof C=="object"&&(C.placement&&(h=C.placement),C.rects&&(u=C.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:s}):C.rects),{x:c,y:f}=pc(u,h,l)),g=-1)}return{x:c,y:f,placement:h,strategy:s,middlewareData:d}};async function ko(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:h=!1,padding:d=0}=An(t,e),p=vd(d),w=a[h?f==="floating"?"reference":"floating":f],_=kr(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(w)))==null||n?w:w.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),v=f==="floating"?{x:r,y:s,width:i.floating.width,height:i.floating.height}:i.reference,m=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),b=await(o.isElement==null?void 0:o.isElement(m))?await(o.getScale==null?void 0:o.getScale(m))||{x:1,y:1}:{x:1,y:1},C=kr(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:m,strategy:l}):v);return{top:(_.top-C.top+p.top)/b.y,bottom:(C.bottom-_.bottom+p.bottom)/b.y,left:(_.left-C.left+p.left)/b.x,right:(C.right-_.right+p.right)/b.x}}const Mb=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}=An(e,t)||{};if(u==null)return{};const f=vd(c),h={x:n,y:r},d=za(s),p=Wa(d),g=await i.getDimensions(u),w=d==="y",_=w?"top":"left",v=w?"bottom":"right",m=w?"clientHeight":"clientWidth",b=o.reference[p]+o.reference[d]-h[d]-o.floating[p],C=h[d]-o.reference[d],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=b/2-C/2,F=P/2-g[p]/2-1,N=Mr(f[_],F),z=Mr(f[v],F),G=N,Q=P-g[p]-z,Z=P/2-g[p]/2+O,re=ji(G,Z,Q),D=!l.arrow&&ut(s)!=null&&Z!==re&&o.reference[p]/2-(Z<G?N:z)-g[p]/2<0,V=D?Z<G?Z-G:Z-Q:0;return{[d]:h[d]+V,data:{[d]:re,centerOffset:Z-re-V,...D&&{alignmentOffset:V}},reset:D}}});function Db(e,t,n){return(e?[...n.filter(s=>ut(s)===e),...n.filter(s=>ut(s)!==e)]:n.filter(s=>Et(s)===s)).filter(s=>e?ut(s)===e||(t?Ws(s)!==s:!1):!0)}const Bb=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:h=fc,autoAlignment:d=!0,...p}=An(e,t),g=f!==void 0||h===fc?Db(f||null,d,h):h,w=await ko(t,p),_=((n=i.autoPlacement)==null?void 0:n.index)||0,v=g[_];if(v==null)return{};const m=wd(v,o,await(l.isRTL==null?void 0:l.isRTL(u.floating)));if(a!==v)return{reset:{placement:g[0]}};const b=[w[Et(v)],w[m[0]],w[m[1]]],C=[...((r=i.autoPlacement)==null?void 0:r.overflows)||[],{placement:v,overflows:b}],k=g[_+1];if(k)return{data:{index:_+1,overflows:C},reset:{placement:k}};const P=C.map(N=>{const z=ut(N.placement);return[N.placement,z&&c?N.overflows.slice(0,2).reduce((G,Q)=>G+Q,0):N.overflows[0],N.overflows]}).sort((N,z)=>N[1]-z[1]),F=((s=P.filter(N=>N[2].slice(0,ut(N[0])?2:3).every(z=>z<=0))[0])==null?void 0:s[0])||P[0][0];return F!==a?{data:{index:_+1,overflows:C},reset:{placement:F}}:{}}}},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:h,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:g=!0,...w}=An(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const _=Et(s),v=It(a),m=Et(a)===a,b=await(l.isRTL==null?void 0:l.isRTL(u.floating)),C=h||(m||!g?[zs(a)]:$b(a)),k=p!=="none";!h&&k&&C.push(...Ib(a,g,p,b));const P=[a,...C],O=await ko(t,w),F=[];let N=((r=o.flip)==null?void 0:r.overflows)||[];if(c&&F.push(O[_]),f){const Z=wd(s,i,b);F.push(O[Z[0]],O[Z[1]])}if(N=[...N,{placement:s,overflows:F}],!F.every(Z=>Z<=0)){var z,G;const Z=(((z=o.flip)==null?void 0:z.index)||0)+1,re=P[Z];if(re&&(!(f==="alignment"?v!==It(re):!1)||N.every(H=>It(H.placement)===v?H.overflows[0]>0:!0)))return{data:{index:Z,overflows:N},reset:{placement:re}};let D=(G=N.filter(V=>V.overflows[0]<=0).sort((V,H)=>V.overflows[1]-H.overflows[1])[0])==null?void 0:G.placement;if(!D)switch(d){case"bestFit":{var Q;const V=(Q=N.filter(H=>{if(k){const ue=It(H.placement);return ue===v||ue==="y"}return!0}).map(H=>[H.placement,H.overflows.filter(ue=>ue>0).reduce((ue,$n)=>ue+$n,0)]).sort((H,ue)=>H[1]-ue[1])[0])==null?void 0:Q[0];V&&(D=V);break}case"initialPlacement":D=a;break}if(s!==D)return{reset:{placement:D}}}return{}}}},Fb=new Set(["left","top"]);async function jb(e,t){const{placement:n,platform:r,elements:s}=e,o=await(r.isRTL==null?void 0:r.isRTL(s.floating)),i=Et(n),a=ut(n),l=It(n)==="y",u=Fb.has(i)?-1:1,c=o&&l?-1:1,f=An(t,e);let{mainAxis:h,crossAxis:d,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"&&(d=a==="end"?p*-1:p),l?{x:d*c,y:h*u}:{x:h*u,y:d*c}}const Ub=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 jb(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}}}}},Gb=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:s}=t,{mainAxis:o=!0,crossAxis:i=!1,limiter:a={fn:w=>{let{x:_,y:v}=w;return{x:_,y:v}}},...l}=An(e,t),u={x:n,y:r},c=await ko(t,l),f=It(Et(s)),h=bd(f);let d=u[h],p=u[f];if(o){const w=h==="y"?"top":"left",_=h==="y"?"bottom":"right",v=d+c[w],m=d-c[_];d=ji(v,d,m)}if(i){const w=f==="y"?"top":"left",_=f==="y"?"bottom":"right",v=p+c[w],m=p-c[_];p=ji(v,p,m)}const g=a.fn({...t,[h]:d,[f]:p});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[h]:o,[f]:i}}}}}},Wb=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}=An(e,t),c=await ko(t,u),f=Et(s),h=ut(s),d=It(s)==="y",{width:p,height:g}=o.floating;let w,_;f==="top"||f==="bottom"?(w=f,_=h===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(_=f,w=h==="end"?"top":"bottom");const v=g-c.top-c.bottom,m=p-c.left-c.right,b=Mr(g-c[w],v),C=Mr(p-c[_],m),k=!t.middlewareData.shift;let P=b,O=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(O=m),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(P=v),k&&!h){const N=dn(c.left,0),z=dn(c.right,0),G=dn(c.top,0),Q=dn(c.bottom,0);d?O=p-2*(N!==0||z!==0?N+z:dn(c.left,c.right)):P=g-2*(G!==0||Q!==0?G+Q:dn(c.top,c.bottom))}await l({...t,availableWidth:O,availableHeight:P});const F=await i.getDimensions(a.floating);return p!==F.width||g!==F.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 gc=Math.min,Er=Math.max,Vs=Math.round;function Cd(e){const t=Ct(e);let n=parseFloat(t.width),r=parseFloat(t.height);const s=e.offsetWidth,o=e.offsetHeight,i=Vs(n)!==s||Vs(r)!==o;return i&&(n=s,r=o),{width:n,height:r,fallback:i}}function rn(e){return Sd(e)?(e.nodeName||"").toLowerCase():""}let us;function xd(){if(us)return us;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(us=e.brands.map((t=>t.brand+"/"+t.version)).join(" "),us):navigator.userAgent}function xt(e){return e instanceof tt(e).HTMLElement}function Yt(e){return e instanceof tt(e).Element}function Sd(e){return e instanceof tt(e).Node}function mc(e){return typeof ShadowRoot>"u"?!1:e instanceof tt(e).ShadowRoot||e instanceof ShadowRoot}function Eo(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 zb(e){return["table","td","th"].includes(rn(e))}function Ui(e){const t=/firefox/i.test(xd()),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 kd(){return!/^((?!chrome|android).)*safari/i.test(xd())}function Va(e){return["html","body","#document"].includes(rn(e))}function Ed(e){return Yt(e)?e:e.contextElement}const Ad={x:1,y:1};function Kn(e){const t=Ed(e);if(!xt(t))return Ad;const n=t.getBoundingClientRect(),{width:r,height:s,fallback:o}=Cd(t);let i=(o?Vs(n.width):n.width)/r,a=(o?Vs(n.height):n.height)/s;return i&&Number.isFinite(i)||(i=1),a&&Number.isFinite(a)||(a=1),{x:i,y:a}}function Dr(e,t,n,r){var s,o;t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=Ed(e);let l=Ad;t&&(r?Yt(r)&&(l=Kn(r)):l=Kn(e));const u=a?tt(a):window,c=!kd()&&n;let f=(i.left+(c&&((s=u.visualViewport)==null?void 0:s.offsetLeft)||0))/l.x,h=(i.top+(c&&((o=u.visualViewport)==null?void 0:o.offsetTop)||0))/l.y,d=i.width/l.x,p=i.height/l.y;if(a){const g=tt(a),w=r&&Yt(r)?tt(r):r;let _=g.frameElement;for(;_&&r&&w!==g;){const v=Kn(_),m=_.getBoundingClientRect(),b=getComputedStyle(_);m.x+=(_.clientLeft+parseFloat(b.paddingLeft))*v.x,m.y+=(_.clientTop+parseFloat(b.paddingTop))*v.y,f*=v.x,h*=v.y,d*=v.x,p*=v.y,f+=m.x,h+=m.y,_=tt(_).frameElement}}return{width:d,height:p,top:h,right:f+d,bottom:h+p,left:f,x:f,y:h}}function Qt(e){return((Sd(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ao(e){return Yt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Td(e){return Dr(Qt(e)).left+Ao(e).scrollLeft}function Br(e){if(rn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||mc(e)&&e.host||Qt(e);return mc(t)?t.host:t}function $d(e){const t=Br(e);return Va(t)?t.ownerDocument.body:xt(t)&&Eo(t)?t:$d(t)}function qs(e,t){var n;t===void 0&&(t=[]);const r=$d(e),s=r===((n=e.ownerDocument)==null?void 0:n.body),o=tt(r);return s?t.concat(o,o.visualViewport||[],Eo(r)?r:[]):t.concat(r,qs(r))}function yc(e,t,n){return t==="viewport"?kr((function(r,s){const o=tt(r),i=Qt(r),a=o.visualViewport;let l=i.clientWidth,u=i.clientHeight,c=0,f=0;if(a){l=a.width,u=a.height;const h=kd();(h||!h&&s==="fixed")&&(c=a.offsetLeft,f=a.offsetTop)}return{width:l,height:u,x:c,y:f}})(e,n)):Yt(t)?kr((function(r,s){const o=Dr(r,!0,s==="fixed"),i=o.top+r.clientTop,a=o.left+r.clientLeft,l=xt(r)?Kn(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)):kr((function(r){const s=Qt(r),o=Ao(r),i=r.ownerDocument.body,a=Er(s.scrollWidth,s.clientWidth,i.scrollWidth,i.clientWidth),l=Er(s.scrollHeight,s.clientHeight,i.scrollHeight,i.clientHeight);let u=-o.scrollLeft+Td(r);const c=-o.scrollTop;return Ct(i).direction==="rtl"&&(u+=Er(s.clientWidth,i.clientWidth)-a),{width:a,height:l,x:u,y:c}})(Qt(e)))}function _c(e){return xt(e)&&Ct(e).position!=="fixed"?e.offsetParent:null}function bc(e){const t=tt(e);let n=_c(e);for(;n&&zb(n)&&Ct(n).position==="static";)n=_c(n);return n&&(rn(n)==="html"||rn(n)==="body"&&Ct(n).position==="static"&&!Ui(n))?t:n||(function(r){let s=Br(r);for(;xt(s)&&!Va(s);){if(Ui(s))return s;s=Br(s)}return null})(e)||t}function Vb(e,t,n){const r=xt(t),s=Qt(t),o=Dr(e,!0,n==="fixed",t);let i={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(r||!r&&n!=="fixed")if((rn(t)!=="body"||Eo(s))&&(i=Ao(t)),xt(t)){const l=Dr(t,!0);a.x=l.x+t.clientLeft,a.y=l.y+t.clientTop}else s&&(a.x=Td(s));return{x:o.left+i.scrollLeft-a.x,y:o.top+i.scrollTop-a.y,width:o.width,height:o.height}}const qb={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 h=qs(u).filter((w=>Yt(w)&&rn(w)!=="body")),d=null;const p=Ct(u).position==="fixed";let g=p?Br(u):u;for(;Yt(g)&&!Va(g);){const w=Ct(g),_=Ui(g);(p?_||d:_||w.position!=="static"||!d||!["absolute","fixed"].includes(d.position))?d=w:h=h.filter((v=>v!==g)),g=Br(g)}return c.set(u,h),h})(t,this._c):[].concat(n),i=[...o,r],a=i[0],l=i.reduce(((u,c)=>{const f=yc(t,c,s);return u.top=Er(f.top,u.top),u.right=gc(f.right,u.right),u.bottom=gc(f.bottom,u.bottom),u.left=Er(f.left,u.left),u}),yc(t,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const s=xt(n),o=Qt(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")&&((rn(n)!=="body"||Eo(o))&&(i=Ao(n)),xt(n))){const u=Dr(n);a=Kn(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:Yt,getDimensions:function(e){return xt(e)?Cd(e):e.getBoundingClientRect()},getOffsetParent:bc,getDocumentElement:Qt,getScale:Kn,async getElementRects(e){let{reference:t,floating:n,strategy:r}=e;const s=this.getOffsetParent||bc,o=this.getDimensions;return{reference:Vb(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"},Kb=(e,t,n)=>{const r=new Map,s={platform:qb,...n},o={...s.platform,_c:r};return Ob(e,t,{...s,platform:o})};function Rd(e,t){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(typeof t[n]=="object"&&e[n]?Rd(e[n],t[n]):e[n]=t[n])}const ft={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 Hr(e,t){let n=ft.themes[e]||{},r;do r=n[t],typeof r>"u"?n.$extend?n=ft.themes[n.$extend]||{}:(n=null,r=ft[t]):n=null;while(n);return r}function Xb(e){const t=[e];let n=ft.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=ft.themes[n.$extend]||{}):n=null;while(n);return t.map(r=>`v-popper--theme-${r}`)}function wc(e){const t=[e];let n=ft.themes[e]||{};do n.$extend?(t.push(n.$extend),n=ft.themes[n.$extend]||{}):n=null;while(n);return t}let sr=!1;if(typeof window<"u"){sr=!1;try{const e=Object.defineProperty({},"passive",{get(){sr=!0}});window.addEventListener("test",null,e)}catch{}}let Pd=!1;typeof window<"u"&&typeof navigator<"u"&&(Pd=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Nd=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),vc={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},Cc={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function xc(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1)}function ni(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const at=[];let cn=null;const Sc={};function kc(e){let t=Sc[e];return t||(t=Sc[e]=[]),t}let Gi=function(){};typeof window<"u"&&(Gi=window.Element);function oe(e){return function(t){return Hr(t.theme,e)}}const ri="__floating-vue__popper",Id=()=>ht({name:"VPopper",provide(){return{[ri]:{parentPopper:this}}},inject:{[ri]:{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:oe("disabled")},positioningDisabled:{type:Boolean,default:oe("positioningDisabled")},placement:{type:String,default:oe("placement"),validator:e=>Nd.includes(e)},delay:{type:[String,Number,Object],default:oe("delay")},distance:{type:[Number,String],default:oe("distance")},skidding:{type:[Number,String],default:oe("skidding")},triggers:{type:Array,default:oe("triggers")},showTriggers:{type:[Array,Function],default:oe("showTriggers")},hideTriggers:{type:[Array,Function],default:oe("hideTriggers")},popperTriggers:{type:Array,default:oe("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:oe("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:oe("popperHideTriggers")},container:{type:[String,Object,Gi,Boolean],default:oe("container")},boundary:{type:[String,Gi],default:oe("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:oe("strategy")},autoHide:{type:[Boolean,Function],default:oe("autoHide")},handleResize:{type:Boolean,default:oe("handleResize")},instantMove:{type:Boolean,default:oe("instantMove")},eagerMount:{type:Boolean,default:oe("eagerMount")},popperClass:{type:[String,Array,Object],default:oe("popperClass")},computeTransformOrigin:{type:Boolean,default:oe("computeTransformOrigin")},autoMinSize:{type:Boolean,default:oe("autoMinSize")},autoSize:{type:[Boolean,String],default:oe("autoSize")},autoMaxSize:{type:Boolean,default:oe("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:oe("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:oe("preventOverflow")},overflowPadding:{type:[Number,String],default:oe("overflowPadding")},arrowPadding:{type:[Number,String],default:oe("arrowPadding")},arrowOverflow:{type:Boolean,default:oe("arrowOverflow")},flip:{type:Boolean,default:oe("flip")},shift:{type:Boolean,default:oe("shift")},shiftCrossAxis:{type:Boolean,default:oe("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:oe("noAutoFocus")},disposeTimeout:{type:Number,default:oe("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[ri])==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(Ub({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(Bb({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(Gb({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(Mb({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(Wb({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 Kb(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),cn&&this.instantMove&&cn.instantMove&&cn!==this.parentPopper){cn.$_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&&(cn=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 ni(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...qs(this.$_referenceNode),...qs(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),n=this.$_popperNode.querySelector(".v-popper__wrapper"),r=n.parentNode.getBoundingClientRect(),s=t.x+t.width/2-(r.left+n.offsetLeft),o=t.y+t.height/2-(r.top+n.offsetTop);this.result.transformOrigin=`${s}px ${o}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let n=0;n<at.length;n++)t=at[n],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}at.push(this),document.body.classList.add("v-popper--some-open");for(const t of wc(this.theme))kc(t).push(this),document.body.classList.add(`v-popper--some-open--${t}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await ni(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,xc(at,this),at.length===0&&document.body.classList.remove("v-popper--some-open");for(const n of wc(this.theme)){const r=kc(n);xc(r,this),r.length===0&&document.body.classList.remove(`v-popper--some-open--${n}`)}cn===this&&(cn=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 ni(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=n=>{this.isShown&&!this.$_hideInProgress||(n.usedByTooltip=!0,!this.$_preventShow&&this.show({event:n}))};this.$_registerTriggerListeners(this.$_targetNodes,vc,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],vc,this.popperTriggers,this.popperShowTriggers,e);const t=n=>{n.usedByTooltip||this.hide({event:n})};this.$_registerTriggerListeners(this.$_targetNodes,Cc,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],Cc,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,n){this.$_events.push({targetNodes:e,eventType:t,handler:n}),e.forEach(r=>r.addEventListener(t,n,sr?{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(Ar>=e.left&&Ar<=e.right&&Tr>=e.top&&Tr<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),n=Ar-jt,r=Tr-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 fs(jt,Ut,o,i,t.left,t.top,t.left,t.bottom)||fs(jt,Ut,o,i,t.left,t.top,t.right,t.top)||fs(jt,Ut,o,i,t.right,t.top,t.right,t.bottom)||fs(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(Pd){const e=sr?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>Ec(t,!0),e),document.addEventListener("touchend",t=>Ac(t,!0),e)}else window.addEventListener("mousedown",e=>Ec(e,!1),!0),window.addEventListener("click",e=>Ac(e,!1),!0);window.addEventListener("resize",Zb)}function Ec(e,t){if(ft.autoHideOnMousedown)Ld(e,t);else for(let n=0;n<at.length;n++){const r=at[n];try{r.mouseDownContains=r.popperNode().contains(e.target)}catch{}}}function Ac(e,t){ft.autoHideOnMousedown||Ld(e,t)}function Ld(e,t){const n={};for(let r=at.length-1;r>=0;r--){const s=at[r];try{const o=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(e.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!n[s.randomId]&&Tc(s,o,e)){if(s.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&o){let a=s.parentPopper;for(;a;)n[a.randomId]=!0,a=a.parentPopper;return}let i=s.parentPopper;for(;i&&Tc(i,i.containsGlobalTarget,e);)i.$_handleGlobalClose(e,t),i=i.parentPopper}})}catch{}}}function Tc(e,t,n){return n.closeAllPopover||n.closePopover&&t||Jb(e,n)&&!t}function Jb(e,t){if(typeof e.autoHide=="function"){const n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function Zb(){for(let e=0;e<at.length;e++)at[e].$_computePosition()}let jt=0,Ut=0,Ar=0,Tr=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{jt=Ar,Ut=Tr,Ar=e.clientX,Tr=e.clientY},sr?{passive:!0}:void 0);function fs(e,t,n,r,s,o,i,a){const l=((i-s)*(t-o)-(a-o)*(e-s))/((a-o)*(n-e)-(i-s)*(r-t)),u=((n-e)*(t-o)-(r-t)*(e-s))/((a-o)*(n-e)-(i-s)*(r-t));return l>=0&&l<=1&&u>=0&&u<=1}const Yb={extends:Id()},To=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n};function Qb(e,t,n,r,s,o){return K(),le("div",{ref:"reference",class:Ae(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[He(e.$slots,"default",Tu(La(e.slotData)))],2)}const ew=To(Yb,[["render",Qb]]);function tw(){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 xs;function Wi(){Wi.init||(Wi.init=!0,xs=tw()!==-1)}var $o={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Wi(),Xr(()=>{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",xs&&this.$el.appendChild(e),e.data="about:blank",xs||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&&(!xs&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const nw=Kp();Vp("data-v-b329ee4c");const rw={class:"resize-observer",tabindex:"-1"};qp();const sw=nw((e,t,n,r,s,o)=>(K(),Re("div",rw)));$o.render=sw;$o.__scopeId="data-v-b329ee4c";$o.__file="src/components/ResizeObserver.vue";const Od=(e="theme")=>({computed:{themeClass(){return Xb(this[e])}}}),ow=ht({name:"VPopperContent",components:{ResizeObserver:$o},mixins:[Od()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),iw=["id","aria-hidden","tabindex","data-popper-placement"],aw={ref:"inner",class:"v-popper__inner"},lw=j("div",{class:"v-popper__arrow-outer"},null,-1),cw=j("div",{class:"v-popper__arrow-inner"},null,-1),uw=[lw,cw];function fw(e,t,n,r,s,o){const i=nn("ResizeObserver");return K(),le("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:yn(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]=Am(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:yn(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[j("div",aw,[e.mounted?(K(),le(Ee,{key:0},[j("div",null,[He(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:yn(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},uw,4)],4)],46,iw)}const Md=To(ow,[["render",fw]]),Dd={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}};let zi=function(){};typeof window<"u"&&(zi=window.Element);const dw=ht({name:"VPopperWrapper",components:{Popper:ew,PopperContent:Md},mixins:[Dd,Od("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,zi,Boolean],default:void 0},boundary:{type:[String,zi],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 hw(e,t,n,r,s,o){const i=nn("PopperContent"),a=nn("Popper");return K(),Re(a,_o({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:ie(({popperId:l,isShown:u,shouldMountContent:c,skipTransition:f,autoHide:h,show:d,hide:p,handleResize:g,onResize:w,classes:_,result:v})=>[He(e.$slots,"default",{shown:u,show:d,hide:p}),W(i,{ref:"popperContent","popper-id":l,theme:e.finalTheme,shown:u,mounted:c,"skip-transition":f,"auto-hide":h,"handle-resize":g,classes:_,result:v,onHide:p,onResize:w},{default:ie(()=>[He(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 qa=To(dw,[["render",hw]]),pw={...qa,name:"VDropdown",vPopperTheme:"dropdown"},gw={...qa,name:"VMenu",vPopperTheme:"menu"},mw={...qa,name:"VTooltip",vPopperTheme:"tooltip"},yw=ht({name:"VTooltipDirective",components:{Popper:Id(),PopperContent:Md},mixins:[Dd],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>Hr(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>Hr(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}}}),_w=["innerHTML"],bw=["textContent"];function ww(e,t,n,r,s,o){const i=nn("PopperContent"),a=nn("Popper");return K(),Re(a,_o({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:ie(({popperId:l,isShown:u,shouldMountContent:c,skipTransition:f,autoHide:h,hide:d,handleResize:p,onResize:g,classes:w,result:_})=>[W(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":h,"handle-resize":p,classes:w,result:_,onHide:d,onResize:g},{default:ie(()=>[e.html?(K(),le("div",{key:0,innerHTML:e.finalContent},null,8,_w)):(K(),le("div",{key:1,textContent:Jt(e.finalContent)},null,8,bw))]),_: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 vw=To(yw,[["render",ww]]),Bd="v-popper--has-tooltip";function Cw(e,t){let n=e.placement;if(!n&&t)for(const r of Nd)t[r]&&(n=r);return n||(n=Hr(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=Cw(r,n),r.targetNodes=()=>[e],r.referenceNode=()=>e,r}let si,Fr,xw=0;function Sw(){if(si)return;Fr=ye([]),si=Hf({name:"VTooltipDirectiveApp",setup(){return{directives:Fr}},render(){return this.directives.map(t=>nr(vw,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),si.mount(e)}function kw(e,t,n){Sw();const r=ye(Hd(e,t,n)),s=ye(!1),o={id:xw++,options:r,shown:s};return Fr.value.push(o),e.classList&&e.classList.add(Bd),e.$_popper={options:r,item:o,show(){s.value=!0},hide(){s.value=!1}}}function Fd(e){if(e.$_popper){const t=Fr.value.indexOf(e.$_popper.item);t!==-1&&Fr.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Bd)}function $c(e,{value:t,modifiers:n}){const r=Hd(e,t,n);if(!r.content||Hr(r.theme||"tooltip","disabled"))Fd(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=r):s=kw(e,t,n),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const Ew={beforeMount:$c,updated:$c,beforeUnmount(e){Fd(e)}};function Rc(e){e.addEventListener("mousedown",Ks),e.addEventListener("click",Ks),e.addEventListener("touchstart",jd,sr?{passive:!0}:!1)}function Pc(e){e.removeEventListener("mousedown",Ks),e.removeEventListener("click",Ks),e.removeEventListener("touchstart",jd),e.removeEventListener("touchend",Ud),e.removeEventListener("touchcancel",Gd)}function Ks(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function jd(e){if(e.changedTouches.length===1){const t=e.currentTarget;t.$_vclosepopover_touch=!0;const n=e.changedTouches[0];t.$_vclosepopover_touchPoint=n,t.addEventListener("touchend",Ud),t.addEventListener("touchcancel",Gd)}}function Ud(e){const t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){const n=e.changedTouches[0],r=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(n.screenY-r.screenY)<20&&Math.abs(n.screenX-r.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function Gd(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}const Aw={beforeMount(e,{value:t,modifiers:n}){e.$_closePopoverModifiers=n,(typeof t>"u"||t)&&Rc(e)},updated(e,{value:t,oldValue:n,modifiers:r}){e.$_closePopoverModifiers=r,t!==n&&(typeof t>"u"||t?Rc(e):Pc(e))},beforeUnmount(e){Pc(e)}};function Tw(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,Rd(ft,t),e.directive("tooltip",Ew),e.directive("close-popper",Aw),e.component("VTooltip",mw),e.component("VDropdown",pw),e.component("VMenu",gw))}const $w={version:"5.2.2",install:Tw,options:ft},Rw=pt(e=>{e.vueApp.use($w)}),Pw=[W_,X_,Y_,_b,bb,wb,vb,Cb,xb,Sb,Rw],Ka={__name:"NIcon",props:{icon:{type:String,required:!1}},setup(e){return(t,n)=>(K(),le("div",{class:Ae(["n-icon",e.icon])},null,2))}},Ro=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},Nw={},Iw={class:"n-badge"};function Lw(e,t){return K(),le("span",Iw,[He(e.$slots,"default")])}const Ow=Object.assign(Ro(Nw,[["render",Lw]]),{__name:"NBadge"}),Mw={key:0,"i-carbon:arrow-up-right":"","translate-y--1":"","text-xs":"",op50:""},Dw={__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=Ga;return K(),Re(o,_o(n.value?{href:n.value,target:e.target,rel:e.target==="_blank"?"noopener noreferrer":null}:{},{class:{"n-link n-transition hover:n-link-hover n-link-base":n.value||e.underline}}),{default:ie(()=>[He(r.$slots,"default"),n.value&&e.target==="_blank"?(K(),le("div",Mw)):wt("",!0)]),_:3},16,["class"])}}},Bw={},Hw={height:"22",viewBox:"0 0 1204 200",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Fw(e,t){return K(),le("svg",Hw,[...t[0]||(t[0]=[Kg('<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 jw=Object.assign(Ro(Bw,[["render",Fw]]),{__name:"NuxtSeoLogo"}),Uw={},Gw={class:"n-loading n-panel-grids-center"},Ww={class:"flex flex-col animate-pulse items-center text-lg"};function zw(e,t){return K(),le("div",Gw,[j("div",Ww,[t[1]||(t[1]=j("div",{class:"i-carbon-circle-dash animate-spin text-4xl op50"},null,-1)),He(e.$slots,"default",{},()=>[t[0]||(t[0]=be(" Loading... ",-1))])])])}const Vw=Object.assign(Ro(Uw,[["render",zw]]),{__name:"NLoading"});let $e=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function qw(e){return Xa(e)}function Xa(e){return Array.isArray(e)?Kw(e):e instanceof RegExp?e:typeof e=="object"?Xw(e):e}function Kw(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=Xa(e[n]);return t}function Xw(e){let t={};for(let n in e)t[n]=Xa(e[n]);return t}function Wd(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function zd(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?zd(e.substring(0,e.length-1)):e.substr(~t+1)}var oi=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,ds=class{static hasCaptures(e){return e===null?!1:(oi.lastIndex=0,oi.test(e))}static replaceCaptures(e,t,n){return e.replace(oi,(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 Vd(e,t){return e<t?-1:e>t?1:0}function qd(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=Vd(e[s],t[s]);if(o!==0)return o}return 0}return n-r}function Nc(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 Kd(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Xd=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}},Xs=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(Yw(e),t)}static createFromParsedTheme(e,t){return e0(e,t)}_cachedMatchRoot=new Xd(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=>Jw(e.parent,s.parentScopes));return r?new Jd(r.fontStyle,r.foreground,r.background):null}},ii=class Ss{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new Ss(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new Ss(n,t[r]);return n}push(t){return new Ss(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 Jw(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&&!Zw(e.scopeName,r);){if(s)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function Zw(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var Jd=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function Yw(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let s=0,o=t.length;s<o;s++){let i=t[s];if(!i.settings)continue;let a;if(typeof i.scope=="string"){let f=i.scope;f=f.replace(/^[,]+/,""),f=f.replace(/[,]+$/,""),a=f.split(",")}else Array.isArray(i.scope)?a=i.scope:a=[""];let l=-1;if(typeof i.settings.fontStyle=="string"){l=0;let f=i.settings.fontStyle.split(" ");for(let h=0,d=f.length;h<d;h++)switch(f[h]){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"&&Nc(i.settings.foreground)&&(u=i.settings.foreground);let c=null;typeof i.settings.background=="string"&&Nc(i.settings.background)&&(c=i.settings.background);for(let f=0,h=a.length;f<h;f++){let p=a[f].trim().split(" "),g=p[p.length-1],w=null;p.length>1&&(w=p.slice(0,p.length-1),w.reverse()),n[r++]=new Qw(g,w,s,l,u,c)}}return n}var Qw=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 e0(e,t){e.sort((l,u)=>{let c=Vd(l.scope,u.scope);return c!==0||(c=qd(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 t0(t),i=new Jd(n,o.getId(r),o.getId(s)),a=new r0(new Vi(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 Xs(o,i,a)}var t0=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)}},n0=Object.freeze([]),Vi=class Zd{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,r,s,o){this.scopeDepth=t,this.parentScopes=n||n0,this.fontStyle=r,this.foreground=s,this.background=o}clone(){return new Zd(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)}},r0=class qi{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(qi._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 qi(this._mainRule.clone(),Vi.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(qd(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 Vi(t,n,r,s,o))}},or=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),h=Ye.getForeground(t),d=Ye.getBackground(t);return n!==0&&(l=n),r!==8&&(u=r),s!==null&&(c=s?1:0),o!==-1&&(f=o),i!==0&&(h=i),a!==0&&(d=a),(l<<0|u<<8|c<<10|f<<11|h<<15|d<<24)>>>0}};function Js(e,t){const n=[],r=s0(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(Ic(s)){const l=[];do l.push(s),s=r.next();while(Ic(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 Ic(e){return!!e&&!!e.match(/[\w\.:]+/)}function s0(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 Yd(e){typeof e.dispose=="function"&&e.dispose()}var jr=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},o0=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},i0=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))}},a0=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new jr(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const e=this.Q;this.Q=[];const t=new i0;for(const n of e)l0(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof jr){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 l0(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 jr?ks({baseGrammar:o,selfGrammar:s},r):Ki(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 jr(a))}function Ki(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];Zs([r],t,n)}}function ks(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Zs(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Zs(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Zs(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const s=r.repository?Wd({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&Zs(r.patterns,{...t,repository:s},n);const o=r.include;if(!o)continue;const i=Qd(o);switch(i.kind){case 0:ks({...t,selfGrammar:t.baseGrammar},n);break;case 1:ks(t,n);break;case 2:Ki(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?Ki(i.ruleName,l,n):ks(l,n)}else i.kind===4?n.add(new o0(i.scopeName,i.ruleName)):n.add(new jr(i.scopeName));break}}}var c0=class{kind=0},u0=class{kind=1},f0=class{constructor(e){this.ruleName=e}kind=2},d0=class{constructor(e){this.scopeName=e}kind=3},h0=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function Qd(e){if(e==="$base")return new c0;if(e==="$self")return new u0;const t=e.indexOf("#");if(t===-1)return new d0(e);if(t===0)return new f0(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new h0(n,r)}}var p0=/\\(\d+)/,Lc=/\\(\d+)/g,g0=-1,eh=-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=ds.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=ds.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${zd(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:ds.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:ds.replaceCaptures(this._contentName,e,t)}},m0=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!")}},y0=class extends Zr{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,s){super(e,t,n,null),this._match=new Ur(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 Gr,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Oc=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 Gr,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Xi=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 Ur(s,this.id),this.beginCaptures=o,this._end=new Ur(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 Gr;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}},Ys=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 Ur(s,this.id),this.beginCaptures=o,this.whileCaptures=a,this._while=new Ur(i,eh),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 Gr;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 Gr,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}},th=class Me{static createCaptureRule(t,n,r,s,o){return t.registerRule(i=>new m0(n,i,r,s,o))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(s=>{if(t.id=s,t.match)return new y0(t.$vscodeTextmateLocation,t.id,t.name,t.match,Me._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=Wd({},r,t.repository));let o=t.patterns;return typeof o>"u"&&t.include&&(o=[{include:t.include}]),new Oc(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,Me._compilePatterns(o,n,r))}return t.while?new Ys(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Me._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,Me._compileCaptures(t.whileCaptures||t.captures,n,r),Me._compilePatterns(t.patterns,n,r)):new Xi(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Me._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,Me._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,Me._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=Me.getCompiledRuleId(t[i],n,r)),s[a]=Me.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=Qd(a.include);switch(u.kind){case 0:case 1:l=Me.getCompiledRuleId(r[a.include],n,r);break;case 2:let c=r[u.ruleName];c&&(l=Me.getCompiledRuleId(c,n,r));break;case 3:case 4:const f=u.scopeName,h=u.kind===4?u.ruleName:null,d=n.getExternalGrammar(f,r);if(d)if(h){let p=d.repository[h];p&&(l=Me.getCompiledRuleId(p,n,d.repository))}else l=Me.getCompiledRuleId(d.repository.$self,n,d.repository);break}}else l=Me.getCompiledRuleId(a,n,r);if(l!==-1){const u=n.getRule(l);let c=!1;if((u instanceof Oc||u instanceof Xi||u instanceof Ys)&&u.hasMissingPatterns&&u.patterns.length===0&&(c=!0),c)continue;s.push(l)}}return{patterns:s,hasMissingPatterns:(t?t.length:0)!==s.length}}},Ur=class nh{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=p0.test(this.source):this.hasBackReferences=!1}clone(){return new nh(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 Lc.lastIndex=0,this.source.replace(Lc,(s,o)=>Kd(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}},Gr=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 Mc(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 Mc(e,r,this._items.map(s=>s.ruleId))}},Mc=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(`
20
+ `)}findNextMatchSync(e,t,n){const r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},ai=class{constructor(e,t){this.languageId=e,this.tokenType=t}},_0=class Ji{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,n){this._defaultAttributes=new ai(t,8),this._embeddedLanguagesMatcher=new b0(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?Ji._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new ai(0,0);_getBasicScopeAttributes=new Xd(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new ai(n,r)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(Ji.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/},b0=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])=>Kd(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])}},Dc=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function rh(e,t,n,r,s,o,i,a){const l=t.content.length;let u=!1,c=-1;if(i){const d=w0(e,t,n,r,s,o);s=d.stack,r=d.linePos,n=d.isFirstLine,c=d.anchorPosition}const f=Date.now();for(;!u;){if(a!==0&&Date.now()-f>a)return new Dc(s,!0);h()}return new Dc(s,!1);function h(){const d=v0(e,t,n,r,s,c);if(!d){o.produce(s,l),u=!0;return}const p=d.captureIndices,g=d.matchedRuleId,w=p&&p.length>0?p[0].end>r:!1;if(g===g0){const _=s.getRule(e);o.produce(s,p[0].start),s=s.withContentNameScopesList(s.nameScopesList),_r(e,t,n,s,o,_.endCaptures,p),o.produce(s,p[0].end);const v=s;if(s=s.parent,c=v.getAnchorPos(),!w&&v.getEnterPos()===r){s=v,o.produce(s,l),u=!0;return}}else{const _=e.getRule(g);o.produce(s,p[0].start);const v=s,m=_.getName(t.content,p),b=s.contentNameScopesList.pushAttributed(m,e);if(s=s.push(g,r,c,p[0].end===l,null,b,b),_ instanceof Xi){const C=_;_r(e,t,n,s,o,C.beginCaptures,p),o.produce(s,p[0].end),c=p[0].end;const k=C.getContentName(t.content,p),P=b.pushAttributed(k,e);if(s=s.withContentNameScopesList(P),C.endHasBackReferences&&(s=s.withEndRule(C.getEndWithResolvedBackReferences(t.content,p))),!w&&v.hasSameRuleAs(s)){s=s.pop(),o.produce(s,l),u=!0;return}}else if(_ instanceof Ys){const C=_;_r(e,t,n,s,o,C.beginCaptures,p),o.produce(s,p[0].end),c=p[0].end;const k=C.getContentName(t.content,p),P=b.pushAttributed(k,e);if(s=s.withContentNameScopesList(P),C.whileHasBackReferences&&(s=s.withEndRule(C.getWhileWithResolvedBackReferences(t.content,p))),!w&&v.hasSameRuleAs(s)){s=s.pop(),o.produce(s,l),u=!0;return}}else if(_r(e,t,n,s,o,_.captures,p),o.produce(s,p[0].end),s=s.pop(),!w){s=s.safePop(),o.produce(s,l),u=!0;return}}p[0].end>r&&(r=p[0].end,n=!1)}}function w0(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 Ys&&a.push({rule:u,stack:l})}for(let l=a.pop();l;l=a.pop()){const{ruleScanner:u,findOptions:c}=S0(l.rule,e,l.stack.endRule,n,r===i),f=u.findNextMatchSync(t,r,c);if(f){if(f.ruleId!==eh){s=l.stack.pop();break}f.captureIndices&&f.captureIndices.length&&(o.produce(l.stack,f.captureIndices[0].start),_r(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 v0(e,t,n,r,s,o){const i=C0(e,t,n,r,s,o),a=e.getInjections();if(a.length===0)return i;const l=x0(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 C0(e,t,n,r,s,o){const i=s.getRule(e),{ruleScanner:a,findOptions:l}=sh(i,e,s.endRule,n,r===o),u=a.findNextMatchSync(t,r,l);return u?{captureIndices:u.captureIndices,matchedRuleId:u.ruleId}:null}function x0(e,t,n,r,s,o,i){let a=Number.MAX_VALUE,l=null,u,c=0;const f=o.contentNameScopesList.getScopeNames();for(let h=0,d=e.length;h<d;h++){const p=e[h];if(!p.matcher(f))continue;const g=t.getRule(p.ruleId),{ruleScanner:w,findOptions:_}=sh(g,t,null,r,s===i),v=w.findNextMatchSync(n,s,_);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 sh(e,t,n,r,s){return{ruleScanner:e.compileAG(t,n,r,s),findOptions:0}}function S0(e,t,n,r,s){return{ruleScanner:e.compileWhileAG(t,n,r,s),findOptions:0}}function _r(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 h=o[f];if(h===null)continue;const d=i[f];if(d.length===0)continue;if(d.start>c)break;for(;u.length>0&&u[u.length-1].endPos<=d.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,d.start):s.produce(r,d.start),h.retokenizeCapturedWithRuleId){const g=h.getName(a,i),w=r.contentNameScopesList.pushAttributed(g,e),_=h.getContentName(a,i),v=w.pushAttributed(_,e),m=r.push(h.retokenizeCapturedWithRuleId,d.start,-1,!1,null,w,v),b=e.createOnigString(a.substring(0,d.end));rh(e,b,n&&d.start===0,d.start,m,s,!1,0),Yd(b);continue}const p=h.getName(a,i);if(p!==null){const w=(u.length>0?u[u.length-1].scopes:r.contentNameScopesList).pushAttributed(p,e);u.push(new k0(w,d.end))}}for(;u.length>0;)s.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}var k0=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function E0(e,t,n,r,s,o,i,a){return new T0(e,t,n,r,s,o,i,a)}function Bc(e,t,n,r,s){const o=Js(t,Qs),i=th.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 Qs(e,t){if(t.length<e.length)return!1;let n=0;return e.every(r=>{for(let s=n;s<t.length;s++)if(A0(t[s],r))return n=s+1,!0;return!1})}function A0(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]==="."}var T0=class{constructor(e,t,n,r,s,o,i,a){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=a,this._basicScopeAttributesProvider=new _0(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=Hc(t,null),this._injections=null,this._tokenTypeMatchers=[],s)for(const l of Object.keys(s)){const u=Js(l,Qs);for(const c of u)this._tokenTypeMatchers.push({matcher:c.matcher,type:s[l]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e={lookup:s=>s===this._rootScopeName?this._grammar:this.getExternalGrammar(s),injections:s=>this._grammarRepository.injections(s)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){const s=r.injections;if(s)for(let i in s)Bc(t,i,s[i],this,r);const o=this._grammarRepository.injections(n);o&&o.forEach(i=>{const a=this.getExternalGrammar(i);if(a){const l=a.injectionSelector;l&&Bc(t,l,a,this,a)}})}return t.sort((s,o)=>s.priority-o.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=Hc(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){const r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){this._rootId===-1&&(this._rootId=th.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let s;if(!t||t===Zi.NULL){s=!0;const u=this._basicScopeAttributesProvider.getDefaultAttributes(),c=this.themeProvider.getDefaults(),f=or.set(0,u.languageId,u.tokenType,null,c.fontStyle,c.foregroundId,c.backgroundId),h=this.getRule(this._rootId).getName(null,null);let d;h?d=$r.createRootAndLookUpScopeName(h,f,this):d=$r.createRoot("unknown",f),t=new Zi(null,this._rootId,-1,-1,!1,null,d,d)}else s=!1,t.reset();e=e+`
21
+ `;const o=this.createOnigString(e),i=o.content.length,a=new R0(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=rh(this,o,s,0,t,a,!0,r);return Yd(o),{lineLength:i,lineTokens:a,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function Hc(e,t){return e=qw(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 $r=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=ii.push(s,o.scopeNames),r=new yt(r,s,o.encodedTokenAttributes);return r}static createRoot(t,n){return new yt(null,new ii(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const s=r.getMetadataForScope(t),o=new ii(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),or.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}},Zi=class hn{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 hn(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:hn._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?$r.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(){hn._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,s,o,i,a){return new hn(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 hn(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=$r.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new hn(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,$r.fromExtension(r,n.contentNameScopesList))}},$0=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):Js(n,Qs).map(r=>r.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>Js(n,Qs).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}},R0=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=or.set(r,0,i.type,null,-1,0,0));this.balancedBracketSelectors&&(s=this.balancedBracketSelectors.match(o))}if(s&&(r=or.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}},P0=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,E0(e,o,t,n,r,s,this,this._onigLib))}return this._grammars.get(e)}},N0=class{_options;_syncRegistry;_ensureGrammarCache;constructor(t){this._options=t,this._syncRegistry=new P0(Xs.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(Xs.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 $0(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,s,o){const i=new a0(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)}},Yi=Zi.NULL;const I0=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class Yr{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Yr.prototype.normal={};Yr.prototype.property={};Yr.prototype.space=void 0;function oh(e,t){const n={},r={};for(const s of e)Object.assign(n,s.property),Object.assign(r,s.normal);return new Yr(n,r,t)}function Qi(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 L0=0;const te=Tn(),xe=Tn(),ea=Tn(),R=Tn(),ge=Tn(),Xn=Tn(),Xe=Tn();function Tn(){return 2**++L0}const ta=Object.freeze(Object.defineProperty({__proto__:null,boolean:te,booleanish:xe,commaOrSpaceSeparated:Xe,commaSeparated:Xn,number:R,overloadedBoolean:ea,spaceSeparated:ge},Symbol.toStringTag,{value:"Module"})),li=Object.keys(ta);class Ja extends Ve{constructor(t,n,r,s){let o=-1;if(super(t,n),Fc(this,"space",s),typeof r=="number")for(;++o<li.length;){const i=li[o];Fc(this,li[o],(r&ta[i])===ta[i])}}}Ja.prototype.defined=!0;function Fc(e,t,n){n&&(e[t]=n)}function ar(e){const t={},n={};for(const[r,s]of Object.entries(e.properties)){const o=new Ja(r,e.transform(e.attributes||{},r),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Qi(r)]=r,n[Qi(o.attribute)]=r}return new Yr(t,n,e.space)}const ih=ar({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 ah(e,t){return t in e?e[t]:t}function lh(e,t){return ah(e,t.toLowerCase())}const O0=ar({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Xn,acceptCharset:ge,accessKey:ge,action:null,allow:null,allowFullScreen:te,allowPaymentRequest:te,allowUserMedia:te,alt:null,as:null,async:te,autoCapitalize:null,autoComplete:ge,autoFocus:te,autoPlay:te,blocking:ge,capture:null,charSet:null,checked:te,cite:null,className:ge,cols:R,colSpan:null,content:null,contentEditable:xe,controls:te,controlsList:ge,coords:R|Xn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:te,defer:te,dir:null,dirName:null,disabled:te,download:ea,draggable:xe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:te,formTarget:null,headers:ge,height:R,hidden:ea,high:R,href:null,hrefLang:null,htmlFor:ge,httpEquiv:ge,id:null,imageSizes:null,imageSrcSet:null,inert:te,inputMode:null,integrity:null,is:null,isMap:te,itemId:null,itemProp:ge,itemRef:ge,itemScope:te,itemType:ge,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:te,low:R,manifest:null,max:null,maxLength:R,media:null,method:null,min:null,minLength:R,multiple:te,muted:te,name:null,nonce:null,noModule:te,noValidate:te,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:te,optimum:R,pattern:null,ping:ge,placeholder:null,playsInline:te,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:te,referrerPolicy:null,rel:ge,required:te,reversed:te,rows:R,rowSpan:R,sandbox:ge,scope:null,scoped:te,seamless:te,selected:te,shadowRootClonable:te,shadowRootDelegatesFocus:te,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:te,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:te,declare:te,event:null,face:null,frame:null,frameBorder:null,hSpace:R,leftMargin:R,link:null,longDesc:null,lowSrc:null,marginHeight:R,marginWidth:R,noResize:te,noHref:te,noShade:te,noWrap:te,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:te,disableRemotePlayback:te,prefix:null,property:null,results:R,security:null,unselectable:null},space:"html",transform:lh}),M0=ar({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:te,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:Xn,g2:Xn,glyphName:Xn,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:ah}),ch=ar({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()}}),uh=ar({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:lh}),fh=ar({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),D0=/[A-Z]/g,jc=/-[a-z]/g,B0=/^data[-\w.:]+$/i;function H0(e,t){const n=Qi(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"&&B0.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(jc,j0);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!jc.test(o)){let i=o.replace(D0,F0);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}s=Ja}return new s(r,t)}function F0(e){return"-"+e.toLowerCase()}function j0(e){return e.charAt(1).toUpperCase()}const U0=oh([ih,O0,ch,uh,fh],"html"),dh=oh([ih,M0,ch,uh,fh],"svg"),Uc={}.hasOwnProperty;function G0(e,t){const n=t||{};function r(s,...o){let i=r.invalid;const a=r.handlers;if(s&&Uc.call(s,e)){const l=String(s[e]);i=Uc.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 W0=/["&'<>`]/g,z0=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,V0=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,q0=/[|\\{}()[\]^$+*?.]/g,Gc=new WeakMap;function K0(e,t){if(e=e.replace(t.subset?X0(t.subset):W0,r),t.subset||t.escapeOnly)return e;return e.replace(z0,n).replace(V0,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 X0(e){let t=Gc.get(e);return t||(t=J0(e),Gc.set(e,t)),t}function J0(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(q0,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const Z0=/[\dA-Fa-f]/;function Y0(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!Z0.test(String.fromCharCode(t))?r:r+";"}const Q0=/\d/;function ev(e,t,n){const r="&#"+String(e);return n&&t&&!Q0.test(String.fromCharCode(t))?r:r+";"}const tv=["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"],ci={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:"€"},nv=["cent","copy","divide","gt","lt","not","para","times"],hh={}.hasOwnProperty,na={};let hs;for(hs in ci)hh.call(ci,hs)&&(na[ci[hs]]=hs);const rv=/[^\dA-Za-z]/;function sv(e,t,n,r){const s=String.fromCharCode(e);if(hh.call(na,s)){const o=na[s],i="&"+o;return n&&tv.includes(o)&&!nv.includes(o)&&(!r||t&&t!==61&&rv.test(String.fromCharCode(t)))?i:i+";"}return""}function ov(e,t,n){let r=Y0(e,t,n.omitOptionalSemicolons),s;if((n.useNamedReferences||n.useShortestReferences)&&(s=sv(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!s)&&n.useShortestReferences){const o=ev(e,t,n.omitOptionalSemicolons);o.length<r.length&&(r=o)}return s&&(!n.useShortestReferences||s.length<r.length)?s:r}function Jn(e,t){return K0(e,Object.assign({format:ov},t))}const iv=/^>|^->|<!--|-->|--!>|<!-$/g,av=[">"],lv=["<",">"];function cv(e,t,n,r){return r.settings.bogusComments?"<?"+Jn(e.value,Object.assign({},r.settings.characterReferences,{subset:av}))+">":"<!--"+e.value.replace(iv,s)+"-->";function s(o){return Jn(o,Object.assign({},r.settings.characterReferences,{subset:lv}))}}function uv(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function Wc(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 fv(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function dv(e){return e.join(" ").trim()}const hv=/[ \t\n\f\r]/g;function Za(e){return typeof e=="object"?e.type==="text"?zc(e.value):!1:zc(e)}function zc(e){return e.replace(hv,"")===""}const Te=gh(1),ph=gh(-1),pv=[];function gh(e){return t;function t(n,r,s){const o=n?n.children:pv;let i=(r||0)+e,a=o[i];if(!s)for(;a&&Za(a);)i+=e,a=o[i];return a}}const gv={}.hasOwnProperty;function mh(e){return t;function t(n,r,s){return gv.call(e,n.tagName)&&e[n.tagName](n,r,s)}}const Ya=mh({body:yv,caption:ui,colgroup:ui,dd:vv,dt:wv,head:ui,html:mv,li:bv,optgroup:Cv,option:xv,p:_v,rp:Vc,rt:Vc,tbody:kv,td:qc,tfoot:Ev,th:qc,thead:Sv,tr:Av});function ui(e,t,n){const r=Te(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&Za(r.value.charAt(0)))}function mv(e,t,n){const r=Te(n,t);return!r||r.type!=="comment"}function yv(e,t,n){const r=Te(n,t);return!r||r.type!=="comment"}function _v(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 bv(e,t,n){const r=Te(n,t);return!r||r.type==="element"&&r.tagName==="li"}function wv(e,t,n){const r=Te(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function vv(e,t,n){const r=Te(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function Vc(e,t,n){const r=Te(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function Cv(e,t,n){const r=Te(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function xv(e,t,n){const r=Te(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function Sv(e,t,n){const r=Te(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function kv(e,t,n){const r=Te(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function Ev(e,t,n){return!Te(n,t)}function Av(e,t,n){const r=Te(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function qc(e,t,n){const r=Te(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const Tv=mh({body:Pv,colgroup:Nv,head:Rv,html:$v,tbody:Iv});function $v(e){const t=Te(e,-1);return!t||t.type!=="comment"}function Rv(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 Pv(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 Nv(e,t,n){const r=ph(n,t),s=Te(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&Ya(r,n.children.indexOf(r),n)?!1:!!(s&&s.type==="element"&&s.tagName==="col")}function Iv(e,t,n){const r=ph(n,t),s=Te(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&Ya(r,n.children.indexOf(r),n)?!1:!!(s&&s.type==="element"&&s.tagName==="tr")}const ps={name:[[`
22
+ \f\r &/=>`.split(""),`
23
+ \f\r "&'/=>\``.split("")],[`\0
24
+ \f\r "&'/<=>`.split(""),`\0
25
+ \f\r "&'/<=>\``.split("")]],unquoted:[[`
26
+ \f\r &>`.split(""),`\0
27
+ \f\r "&'<=>\``.split("")],[`\0
28
+ \f\r "&'<=>\``.split(""),`\0
29
+ \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Lv(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=dh);const u=Ov(r,e.properties),c=r.all(s.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=s,c&&(i=!1),(u||!o||!Tv(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||!Ya(e,t,n))&&a.push("</"+e.tagName+">"),a.join("")}function Ov(e,t){const n=[];let r=-1,s;if(t){for(s in t)if(t[s]!==null&&t[s]!==void 0){const o=Mv(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 Mv(e,t,n){const r=H0(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=Jn(r.attribute,Object.assign({},e.settings.characterReferences,{subset:ps.name[s][o]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?fv:dv)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?l:(e.settings.preferUnquoted&&(a=Jn(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:ps.unquoted[s][o]}))),a!==n&&(e.settings.quoteSmart&&Wc(n,i)>Wc(n,e.alternative)&&(i=e.alternative),a=i+Jn(n,Object.assign({},e.settings.characterReferences,{subset:(i==="'"?ps.single:ps.double)[s][o],attribute:!0}))+i),l+(a&&"="+a))}const Dv=["<","&"];function yh(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:Jn(e.value,Object.assign({},r.settings.characterReferences,{subset:Dv}))}function Bv(e,t,n,r){return r.settings.allowDangerousHtml?e.value:yh(e,t,n,r)}function Hv(e,t,n,r){return r.all(e)}const Fv=G0("type",{invalid:jv,unknown:Uv,handlers:{comment:cv,doctype:uv,element:Lv,raw:Bv,root:Hv,text:yh}});function jv(e){throw new Error("Expected node, not `"+e+"`")}function Uv(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const Gv={},Wv={},zv=[];function Vv(e,t){const n=t||Gv,r=n.quote||'"',s=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:qv,all:Kv,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||I0,characterReferences:n.characterReferences||Wv,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?dh:U0,quote:r,alternative:s}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function qv(e,t,n){return Fv(e,t,n,this)}function Kv(e){const t=[],n=e&&e.children||zv;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function eo(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 en(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function Xv(e){return Array.isArray(e)?e:[e]}async function _h(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function Qa(e){return!e||["plaintext","txt","text","plain"].includes(e)}function Jv(e){return e==="ansi"||Qa(e)}function el(e){return e==="none"}function Zv(e){return el(e)}function bh(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 Po(e,t=!1){const n=e.split(/(\r?\n)/g);let r=0;const s=[];for(let o=0;o<n.length;o+=2){const i=t?n[o]+(n[o+1]||""):n[o];s.push([i,r]),r+=n[o].length,r+=n[o+1]?.length||0}return s}function Yv(e){const t=Po(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 tl="light-dark()",Qv=["color","background-color"];function e1(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 t1(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?e1(s,o):s})):e}function n1(e,t,n,r,s="css-vars"){const o={content:e.content,explanation:e.explanation,offset:e.offset},i=t.map(c=>to(e.variants[c])),a=new Set(i.flatMap(c=>Object.keys(c))),l={},u=(c,f)=>{const h=f==="color"?"":f==="background-color"?"-bg":`-${f}`;return n+t[c]+(f==="color"?"":h)};return i.forEach((c,f)=>{for(const h of a){const d=c[h]||"inherit";if(f===0&&r&&Qv.includes(h))if(r===tl&&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 w=i[p][h]||"inherit",_=i[g][h]||"inherit";l[h]=`light-dark(${w}, ${_})`,s==="css-vars"&&(l[u(f,h)]=d)}else l[h]=d;else s==="css-vars"&&(l[u(f,h)]=d)}}),o.htmlStyle=l,o}function to(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 ra(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}const wh=new WeakMap;function No(e,t){wh.set(e,t)}function Wr(e){return wh.get(e)}class lr{_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 lr(Object.fromEntries(Xv(n).map(r=>[r,Yi])),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 r1(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function r1(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 s1(e,t){if(!(e instanceof lr))throw new $e("Invalid grammar state");return e.getInternalStack(t)}function o1(){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=Yv(n.source),o=(n.options.decorations||[]).map(i=>({...i,start:r(i.start),end:r(i.end)}));i1(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 t1(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,h,d){const p=s[c];let g="",w=-1,_=-1;if(f===0&&(w=0),h===0&&(_=0),h===Number.POSITIVE_INFINITY&&(_=p.children.length),w===-1||_===-1)for(let m=0;m<p.children.length;m++)g+=vh(p.children[m]),w===-1&&g.length===f&&(w=m+1),_===-1&&g.length===h&&(_=m+1);if(w===-1)throw new $e(`Failed to find start index for decoration ${JSON.stringify(d.start)}`);if(_===-1)throw new $e(`Failed to find end index for decoration ${JSON.stringify(d.end)}`);const v=p.children.slice(w,_);if(!d.alwaysWrap&&v.length===p.children.length)a(p,d,"line");else if(!d.alwaysWrap&&v.length===1&&v[0].type==="element")a(v[0],d,"token");else{const m={type:"element",tagName:"span",properties:{},children:v};a(m,d,"wrapper"),p.children.splice(w,v.length,m)}}function i(c,f){s[c]=a(s[c],f,"line")}function a(c,f,h){const d=f.properties||{},p=f.transform||(g=>g);return c.tagName=f.tagName||"span",c.properties={...c.properties,...d,class:c.properties.class},f.properties?.class&&bh(c,f.properties.class),c=p(c,h)||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:h}=c;if(f.line===h.line)o(f.line,f.character,h.character,c);else if(f.line<h.line){o(f.line,f.character,Number.POSITIVE_INFINITY,c);for(let d=f.line+1;d<h.line;d++)l.unshift(()=>i(d,c));o(h.line,0,h.character,c)}}l.forEach(c=>c())}}}function i1(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 vh(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(vh).join(""):""}const a1=[o1()];function no(e){const t=l1(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...a1]}function l1(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 gn=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],fi={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function c1(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 Kc(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 u1(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)fi[r]&&t.push({type:"setDecoration",value:fi[r]});else if(r<=29){const s=fi[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:gn[r-30]}});else if(r===38){const s=Kc(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:gn[r-40]}});else if(r===48){const s=Kc(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:gn[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:gn[r-100+8]}})}return t}function f1(){let e=null,t=null,n=new Set;return{parse(r){const s=[];let o=0;do{const i=c1(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=u1(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 d1={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 h1(e=d1){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<gn.length;u++)r.push(t(gn[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}}function p1(e,t,n){const r=eo(e,n),s=Po(t),o=h1(Object.fromEntries(gn.map(a=>[a,e.colors?.[`terminal.ansi${a[0].toUpperCase()}${a.substring(1)}`]]))),i=f1();return s.map(a=>i.parse(a[0]).map(l=>{let u,c;l.decorations.has("reverse")?(u=l.background?o.value(l.background):e.bg,c=l.foreground?o.value(l.foreground):e.fg):(u=l.foreground?o.value(l.foreground):e.fg,c=l.background?o.value(l.background):void 0),u=en(u,r),c=en(c,r),l.decorations.has("dim")&&(u=g1(u));let f=Fe.None;return l.decorations.has("bold")&&(f|=Fe.Bold),l.decorations.has("italic")&&(f|=Fe.Italic),l.decorations.has("underline")&&(f|=Fe.Underline),l.decorations.has("strikethrough")&&(f|=Fe.Strikethrough),{content:l.value,offset:a[1],color:u,bgColor:c,fontStyle:f}}))}function g1(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t)if(t[3]){const r=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${r}`}else return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map(r=>`${r}${r}`).join("")}80`;const n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}function nl(e,t,n={}){const{lang:r="text",theme:s=e.getLoadedThemes()[0]}=n;if(Qa(r)||el(s))return Po(t).map(l=>[{content:l[0],offset:l[1]}]);const{theme:o,colorMap:i}=e.setTheme(s);if(r==="ansi")return p1(o,t,n);const a=e.getLanguage(r);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 y1(t,a,o,i,n)}function m1(...e){if(e.length===2)return Wr(e[1]);const[t,n,r={}]=e,{lang:s="text",theme:o=t.getLoadedThemes()[0]}=r;if(Qa(s)||el(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 lr(ro(n,l,i,a,r).stateStack,l.name,i.name)}function y1(e,t,n,r,s){const o=ro(e,t,n,r,s),i=new lr(ro(e,t,n,r,s).stateStack,t.name,n.name);return No(o.tokens,i),o.tokens}function ro(e,t,n,r,s){const o=eo(n,s),{tokenizeMaxLineLength:i=0,tokenizeTimeLimit:a=500}=s,l=Po(e);let u=s.grammarState?s1(s.grammarState,n.name)??Yi:s.grammarContextCode!=null?ro(s.grammarContextCode,t,n,r,{...s,grammarState:void 0,grammarContextCode:void 0}).stateStack:Yi,c=[];const f=[];for(let h=0,d=l.length;h<d;h++){const[p,g]=l[h];if(p===""){c=[],f.push([]);continue}if(i>0&&p.length>=i){c=[],f.push([{content:p,offset:g,color:"",fontStyle:0}]);continue}let w,_,v;s.includeExplanation&&(w=t.tokenizeLine(p,u,a),_=w.tokens,v=0);const m=t.tokenizeLine2(p,u,a),b=m.tokens.length/2;for(let C=0;C<b;C++){const k=m.tokens[2*C],P=C+1<b?m.tokens[2*C+2]:p.length;if(k===P)continue;const O=m.tokens[2*C+1],F=en(r[or.getForeground(O)],o),N=or.getFontStyle(O),z={content:p.substring(k,P),offset:g+k,color:F,fontStyle:N};if(s.includeExplanation){const G=[];if(s.includeExplanation!=="scopeName")for(const Z of n.settings){let re;switch(typeof Z.scope){case"string":re=Z.scope.split(/,/).map(D=>D.trim());break;case"object":re=Z.scope;break;default:continue}G.push({settings:Z,selectors:re.map(D=>D.split(/ /))})}z.explanation=[];let Q=0;for(;k+Q<P;){const Z=_[v],re=p.substring(Z.startIndex,Z.endIndex);Q+=re.length,z.explanation.push({content:re,scopes:s.includeExplanation==="scopeName"?_1(Z.scopes):b1(G,Z.scopes)}),v+=1}}c.push(z)}f.push(c),c=[],u=m.ruleStack}return{tokens:f,stateStack:u}}function _1(e){return e.map(t=>({scopeName:t}))}function b1(e,t){const n=[];for(let r=0,s=t.length;r<s;r++){const o=t[r];n[r]={scopeName:o,themeMatches:v1(e,o,t.slice(0,r))}}return n}function Xc(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function w1(e,t,n){if(!Xc(e[e.length-1],t))return!1;let r=e.length-2,s=n.length-1;for(;r>=0&&s>=0;)Xc(e[r],n[s])&&(r-=1),s-=1;return r===-1}function v1(e,t,n){const r=[];for(const{selectors:s,settings:o}of e)for(const i of s)if(w1(i,t,n)){r.push(o);break}return r}function Ch(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=nl(e,t,{...n,theme:l.theme}),c=Wr(u),f=typeof l.theme=="string"?l.theme:l.theme.name;return{tokens:u,state:c,theme:f}}),o=C1(...s.map(l=>l.tokens)),i=o[0].map((l,u)=>l.map((c,f)=>{const h={content:c.content,variants:{},offset:c.offset};return"includeExplanation"in n&&n.includeExplanation&&(h.explanation=c.explanation),o.forEach((d,p)=>{const{content:g,explanation:w,offset:_,...v}=d[u][f];h.variants[r[p].color]=v}),h})),a=s[0].state?new lr(Object.fromEntries(s.map(l=>[l.theme,l.state?.getInternalStack(l.theme)])),s[0].state.lang):void 0;return a&&No(i,a),i}function C1(...e){const t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){const s=e.map(l=>l[r]),o=t.map(()=>[]);t.forEach((l,u)=>l.push(o[u]));const i=s.map(()=>0),a=s.map(l=>l[0]);for(;a.every(l=>l);){const l=Math.min(...a.map(u=>u.content.length));for(let u=0;u<n;u++){const c=a[u];c.content.length===l?(o[u].push(c),i[u]+=1,a[u]=s[u][i[u]]):(o[u].push({...c,content:c.content.slice(0,l)}),a[u]={...c,content:c.content.slice(l),offset:c.offset+l})}}}return t}function so(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,h=Object.entries(n.themes).filter(_=>_[1]).map(_=>({color:_[0],theme:_[1]})).sort((_,v)=>_.color===u?-1:v.color===u?1:0);if(h.length===0)throw new $e("`themes` option must not be empty");const d=Ch(e,t,n);if(l=Wr(d),u&&tl!==u&&!h.find(_=>_.color===u))throw new $e(`\`themes\` option must contain the defaultColor key \`${u}\``);const p=h.map(_=>e.getTheme(_.theme)),g=h.map(_=>_.color);o=d.map(_=>_.map(v=>n1(v,g,c,u,f))),l&&No(o,l);const w=h.map(_=>eo(_.theme,n));s=Jc(h,p,w,c,u,"fg",f),r=Jc(h,p,w,c,u,"bg",f),i=`shiki-themes ${p.map(_=>_.name).join(" ")}`,a=u?void 0:[s,r].join(";")}else if("theme"in n){const u=eo(n.theme,n);o=nl(e,t,n);const c=e.getTheme(n.theme);r=en(c.bg,u),s=en(c.fg,u),i=c.name,l=Wr(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 Jc(e,t,n,r,s,o,i){return e.map((a,l)=>{const u=en(t[l][o],n[l])||"inherit",c=`${r+a.color}${o==="bg"?"-bg":""}:${u}`;if(l===0&&s){if(s===tl&&e.length>1){const f=e.findIndex(g=>g.color==="light"),h=e.findIndex(g=>g.color==="dark");if(f===-1||h===-1)throw new $e('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const d=en(t[f][o],n[f])||"inherit",p=en(t[h][o],n[h])||"inherit";return`light-dark(${d}, ${p});${c}`}return u}return i==="css-vars"?c:null}).filter(a=>!!a).join(";")}function oo(e,t,n,r={meta:{},options:n,codeToHast:(s,o)=>oo(e,s,o),codeToTokens:(s,o)=>so(e,s,o)}){let s=t;for(const p of no(n))s=p.preprocess?.call(r,s,n)||s;let{tokens:o,fg:i,bg:a,themeName:l,rootStyle:u,grammarState:c}=so(e,s,n);const{mergeWhitespaces:f=!0,mergeSameStyleTokens:h=!1}=n;f===!0?o=S1(o):f==="never"&&(o=k1(o)),h&&(o=E1(o));const d={...r,get source(){return s}};for(const p of no(n))o=p.tokens?.call(d,o)||o;return x1(o,{...n,fg:i,bg:a,themeName:l,rootStyle:u},d,c)}function x1(e,t,n,r=Wr(e)){const s=no(t),o=[],i={type:"root",children:[]},{structure:a="classic",tabindex:l="0"}=t;let u={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,...l!==!1&&l!=null?{tabindex:l.toString()}:{},...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([p])=>!p.startsWith("_")))},children:[]},c={type:"element",tagName:"code",properties:{},children:o};const f=[],h={...n,structure:a,addClassToHast:bh,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return i},get pre(){return u},get code(){return c},get lines(){return f}};if(e.forEach((p,g)=>{g&&(a==="inline"?i.children.push({type:"element",tagName:"br",properties:{},children:[]}):a==="classic"&&o.push({type:"text",value:`
30
+ `}));let w={type:"element",tagName:"span",properties:{class:"line"},children:[]},_=0;for(const v of p){let m={type:"element",tagName:"span",properties:{...v.htmlAttrs},children:[{type:"text",value:v.content}]};const b=ra(v.htmlStyle||to(v));b&&(m.properties.style=b);for(const C of s)m=C?.span?.call(h,m,g+1,_,w,v)||m;a==="inline"?i.children.push(m):a==="classic"&&w.children.push(m),_+=v.content.length}if(a==="classic"){for(const v of s)w=v?.line?.call(h,w,g+1)||w;f.push(w),o.push(w)}}),a==="classic"){for(const p of s)c=p?.code?.call(h,c)||c;u.children.push(c);for(const p of s)u=p?.pre?.call(h,u)||u;i.children.push(u)}let d=i;for(const p of s)d=p?.root?.call(h,d)||d;return r&&No(d,r),d}function S1(e){return e.map(t=>{const n=[];let r="",s=0;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||(s=o.offset),r+=o.content):r?(l?n.push({...o,offset:s,content:r+o.content}):n.push({content:r,offset:s},o),s=0,r=""):n.push(o)}),n})}function k1(e){return e.map(t=>t.flatMap(n=>{if(n.content.match(/^\s+$/))return n;const r=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return n;const[,s,o,i]=r;if(!s&&!i)return n;const a=[{...n,offset:n.offset+s.length,content:o}];return s&&a.unshift({content:s,offset:n.offset}),i&&a.push({content:i,offset:n.offset+s.length+o.length}),a}))}function E1(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=ra(s.htmlStyle||to(s)),i=ra(r.htmlStyle||to(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 A1=Vv;function T1(e,t,n){const r={meta:{},options:n,codeToHast:(o,i)=>oo(e,o,i),codeToTokens:(o,i)=>so(e,o,i)};let s=A1(oo(e,t,n,r));for(const o of no(n))s=o.postprocess?.call(r,s,n)||s;return s}const Zc={light:"#333333",dark:"#bbbbbb"},Yc={light:"#fffffe",dark:"#1e1e1e"},Qc="__shiki_resolved";function rl(e){if(e?.[Qc])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"?Yc.light:Yc.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,Qc,{enumerable:!1,writable:!1,value:!0}),t}async function xh(e){return Array.from(new Set((await Promise.all(e.filter(t=>!Jv(t)).map(async t=>await _h(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function Sh(e){return(await Promise.all(e.map(async n=>Zv(n)?null:rl(await _h(n))))).filter(n=>!!n)}let $1=3;function R1(e,t=3){t>$1||console.trace(`[SHIKI DEPRECATE]: ${e}`)}class jn extends Error{constructor(t){super(t),this.name="ShikiError"}}class P1 extends N0{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=rl(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=Xs.createFromRawTheme(t),this._textmateThemeCache.set(t,n)),this._syncRegistry.setTheme(n)}getGrammar(t){if(this._alias[t]){const n=new Set([t]);for(;this._alias[t];){if(t=this._alias[t],n.has(t))throw new jn(`Circular alias \`${Array.from(n).join(" -> ")} -> ${t}\``);n.add(t)}}return 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.embeddedLangs?.some(a=>r.map(([l])=>l).includes(a))).filter(o=>!r.includes(o));throw new jn(`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){if(this._langMap.set(t.name,t),this._langGraph.set(t.name,t),t.embeddedLangs)for(const n of t.embeddedLangs)this._langGraph.set(n,this._langMap.get(n))}}class N1{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(t,n){this._onigLib={createOnigScanner:r=>t.createScanner(r),createOnigString:r=>t.createString(r)},n.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(t){return this._langs.get(t)}loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(n=>{this._langs.set(n,t)}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(t.scopeName)})}getInjections(t){const n=t.split(".");let r=[];for(let s=1;s<=n.length;s++){const o=n.slice(0,s).join(".");r=[...r,...this._injections.get(o)||[]]}return r}}let gr=0;function I1(e){gr+=1,e.warnings!==!1&&gr>=10&&gr%10===0&&console.warn(`[Shiki] ${gr} 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 jn("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(rl),s=new N1(e.engine,n),o=new P1(s,r,n,e.langAlias);let i;function a(v){w();const m=o.getGrammar(typeof v=="string"?v:v.name);if(!m)throw new jn(`Language \`${v}\` not found, you may need to load it first`);return m}function l(v){if(v==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};w();const m=o.getTheme(v);if(!m)throw new jn(`Theme \`${v}\` not found, you may need to load it first`);return m}function u(v){w();const m=l(v);i!==v&&(o.setTheme(m),i=v);const b=o.getColorMap();return{theme:m,colorMap:b}}function c(){return w(),o.getLoadedThemes()}function f(){return w(),o.getLoadedLanguages()}function h(...v){w(),o.loadLanguages(v.flat(1))}async function d(...v){return h(await xh(v))}function p(...v){w();for(const m of v.flat(1))o.loadTheme(m)}async function g(...v){return w(),p(await Sh(v))}function w(){if(t)throw new jn("Shiki instance has been disposed")}function _(){t||(t=!0,o.dispose(),gr-=1)}return{setTheme:u,getTheme:l,getLanguage:a,getLoadedThemes:c,getLoadedLanguages:f,loadLanguage:d,loadLanguageSync:h,loadTheme:g,loadThemeSync:p,dispose:_,[Symbol.dispose]:_}}async function L1(e){e.engine||R1("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,r]=await Promise.all([Sh(e.themes||[]),xh(e.langs||[]),e.engine]);return I1({...e,themes:t,langs:n,engine:r})}async function O1(e){const t=await L1(e);return{getLastGrammarState:(...n)=>m1(t,...n),codeToTokensBase:(n,r)=>nl(t,n,r),codeToTokensWithThemes:(n,r)=>Ch(t,n,r),codeToTokens:(n,r)=>so(t,n,r),codeToHast:(n,r)=>oo(t,n,r),codeToHtml:(n,r)=>T1(t,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function cr(e){if([...e].length!==1)throw new Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function M1(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}const sl=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),Pe=String.raw;function ur(e,t){if(e==null)throw new Error(t??"Value expected");return e}const kh=Pe`\[\^?`,Eh=`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}`}`,ol=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,gs=new RegExp(Pe`
31
+ \\ (?:
32
+ ${Eh}
33
+ | [gk]<[^>]*>?
34
+ | [gk]'[^']*'?
35
+ | .
36
+ )
37
+ | \( (?:
38
+ \? (?:
39
+ [:=!>({]
40
+ | <[=!]
41
+ | <[^>]*>
42
+ | '[^']*'
43
+ | ~\|?
44
+ | #(?:[^)\\]|\\.?)*
45
+ | [^:)]*[:)]
46
+ )?
47
+ | \*[^\)]*\)?
48
+ )?
49
+ | (?:${ol.source})+
50
+ | ${kh}
51
+ | .
52
+ `.replace(/\s+/g,""),"gsu"),di=new RegExp(Pe`
53
+ \\ (?:
54
+ ${Eh}
55
+ | .
56
+ )
57
+ | \[:(?:\^?\p{Alpha}+|\^):\]
58
+ | ${kh}
59
+ | &&
60
+ | .
61
+ `.replace(/\s+/g,""),"gsu");function D1(e,t={}){const n={flags:"",...t,rules:{captureGroup:!1,singleline:!1,...t.rules}};if(typeof e!="string")throw new Error("String expected as pattern");const r=nC(n.flags),s=[r.extended],o={captureGroup:n.rules.captureGroup,getCurrentModX(){return s.at(-1)},numOpenGroups:0,popModX(){s.pop()},pushModX(f){s.push(f)},replaceCurrentModX(f){s[s.length-1]=f},singleline:n.rules.singleline};let i=[],a;for(gs.lastIndex=0;a=gs.exec(e);){const f=B1(o,e,a[0],gs.lastIndex);f.tokens?i.push(...f.tokens):f.token&&i.push(f.token),f.lastIndex!==void 0&&(gs.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,h)=>{f.kind="capturing",f.number=h+1});const c=u||l.length;return{tokens:i.map(f=>f.type==="EscapedNumber"?sC(f,c):f).flat(),flags:r}}function B1(e,t,n,r){const[s,o]=n;if(n==="["||n==="[^"){const i=H1(t,n,r);return{tokens:i.tokens,lastIndex:i.lastIndex}}if(s==="\\"){if("AbBGyYzZ".includes(o))return{token:eu(n,n)};if(/^\\g[<']/.test(n)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:X1(n)}}if(/^\\k[<']/.test(n)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:Th(n)}}if(o==="K")return{token:$h("keep",n)};if(o==="N"||o==="R")return{token:mn("newline",n,{negate:o==="N"})};if(o==="O")return{token:mn("any",n)};if(o==="X")return{token:mn("text_segment",n)};const i=Ah(n,{inCharClass:!1});return Array.isArray(i)?{tokens:i}:{token:i}}if(s==="("){if(o==="*")return{token:Q1(n)};if(n==="(?{")throw new Error(`Unsupported callout "${n}"`);if(n.startsWith("(?#")){if(t[r]!==")")throw new Error('Unclosed comment group "(?#"');return{lastIndex:r+1}}if(/^\(\?[-imx]+[:)]$/.test(n))return{token:Y1(n,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,n==="("&&!e.captureGroup||n==="(?:")return{token:Mn("group",n)};if(n==="(?>")return{token:Mn("atomic",n)};if(n==="(?="||n==="(?!"||n==="(?<="||n==="(?<!")return{token:Mn(n[2]==="<"?"lookbehind":"lookahead",n,{negate:n.endsWith("!")})};if(n==="("&&e.captureGroup||n.startsWith("(?<")&&n.endsWith(">")||n.startsWith("(?'")&&n.endsWith("'"))return{token:Mn("capturing",n,{...n!=="("&&{name:n.slice(3,-1)}})};if(n.startsWith("(?~")){if(n==="(?~|")throw new Error(`Unsupported absence function kind "${n}"`);return{token:Mn("absence_repeater",n)}}throw n==="(?("?new Error(`Unsupported conditional "${n}"`):new Error(`Invalid or unsupported group option "${n}"`)}if(n===")"){if(e.popModX(),e.numOpenGroups--,e.numOpenGroups<0)throw new Error('Unmatched ")"');return{token:V1(n)}}if(e.getCurrentModX()){if(n==="#"){const i=t.indexOf(`
62
+ `,r);return{lastIndex:i===-1?t.length:i}}if(/^\s$/.test(n)){const i=/\s+/y;return i.lastIndex=r,{lastIndex:i.exec(t)?i.lastIndex:r}}}if(n===".")return{token:mn("dot",n)};if(n==="^"||n==="$"){const i=e.singleline?{"^":Pe`\A`,$:Pe`\Z`}[n]:n;return{token:eu(i,n)}}return n==="|"?{token:j1(n)}:ol.test(n)?{tokens:oC(n)}:{token:Lt(cr(n),n)}}function H1(e,t,n){const r=[tu(t[1]==="^",t)];let s=1,o;for(di.lastIndex=n;o=di.exec(e);){const i=o[0];if(i[0]==="["&&i[1]!==":")s++,r.push(tu(i[1]==="^",i));else if(i==="]"){if(r.at(-1).type==="CharacterClassOpen")r.push(Lt(93,i));else if(s--,r.push(U1(i)),!s)break}else{const a=F1(i);Array.isArray(a)?r.push(...a):r.push(a)}}return{tokens:r,lastIndex:di.lastIndex||e.length}}function F1(e){if(e[0]==="\\")return Ah(e,{inCharClass:!0});if(e[0]==="["){const t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!sl.has(t.groups.name))throw new Error(`Invalid POSIX class "${e}"`);return mn("posix",e,{value:t.groups.name,negate:!!t.groups.negate})}return e==="-"?G1(e):e==="&&"?W1(e):Lt(cr(e),e)}function Ah(e,{inCharClass:t}){const n=e[1];if(n==="c"||n==="C")return Z1(e);if("dDhHsSwW".includes(n))return eC(e);if(e.startsWith(Pe`\o{`))throw new Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);if(/^\\[pP]\{/.test(e)){if(e.length===3)throw new Error(`Incomplete or invalid Unicode property "${e}"`);return tC(e)}if(new RegExp("^\\\\x[89A-Fa-f]\\p{AHex}","u").test(e))try{const r=e.split(/\\x/).slice(1).map(i=>parseInt(i,16)),s=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(r)),o=new TextEncoder;return[...s].map(i=>{const a=[...o.encode(i)].map(l=>`\\x${l.toString(16)}`).join("");return Lt(cr(i),a)})}catch{throw new Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(n==="u"||n==="x")return Lt(rC(e),e);if(nu.has(n))return Lt(nu.get(n),e);if(/\d/.test(n))return z1(t,e);if(e==="\\")throw new Error(Pe`Incomplete escape "\"`);if(n==="M")throw new Error(`Unsupported meta "${e}"`);if([...e].length===2)return Lt(e.codePointAt(1),e);throw new Error(`Unexpected escape "${e}"`)}function j1(e){return{type:"Alternator",raw:e}}function eu(e,t){return{type:"Assertion",kind:e,raw:t}}function Th(e){return{type:"Backreference",raw:e}}function Lt(e,t){return{type:"Character",value:e,raw:t}}function U1(e){return{type:"CharacterClassClose",raw:e}}function G1(e){return{type:"CharacterClassHyphen",raw:e}}function W1(e){return{type:"CharacterClassIntersector",raw:e}}function tu(e,t){return{type:"CharacterClassOpen",negate:e,raw:t}}function mn(e,t,n={}){return{type:"CharacterSet",kind:e,...n,raw:t}}function $h(e,t,n={}){return e==="keep"?{type:"Directive",kind:e,raw:t}:{type:"Directive",kind:e,flags:ur(n.flags),raw:t}}function z1(e,t){return{type:"EscapedNumber",inCharClass:e,raw:t}}function V1(e){return{type:"GroupClose",raw:e}}function Mn(e,t,n={}){return{type:"GroupOpen",kind:e,...n,raw:t}}function q1(e,t,n,r){return{type:"NamedCallout",kind:e,tag:t,arguments:n,raw:r}}function K1(e,t,n,r){return{type:"Quantifier",kind:e,min:t,max:n,raw:r}}function X1(e){return{type:"Subroutine",raw:e}}const J1=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),nu=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function Z1(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 Lt(cr(t.toUpperCase())-64,e)}function Y1(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=su(n),i=su(r),a={};if(o&&(a.enable=o),i&&(a.disable=i),e.endsWith(")"))return t.replaceCurrentModX(s),$h("flags",e,{flags:a});if(e.endsWith(":"))return t.pushModX(s),t.numOpenGroups++,Mn("group",e,{...(o||i)&&{flags:a}});throw new Error(`Unexpected flag modifier "${e}"`)}function Q1(e){const t=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(e);if(!t)throw new Error(`Incomplete or invalid named callout "${e}"`);const{name:n,tag:r,args:s}=t.groups;if(!n)throw new Error(`Invalid named callout "${e}"`);if(r==="")throw new Error(`Named callout tag with empty value not allowed "${e}"`);const o=s?s.split(",").filter(c=>c!=="").map(c=>/^[+-]?\d+$/.test(c)?+c:c):[],[i,a,l]=o,u=J1.has(n)?n.toLowerCase():"custom";switch(u){case"fail":case"mismatch":case"skip":if(o.length>0)throw new Error(`Named callout arguments not allowed "${o}"`);break;case"error":if(o.length>1)throw new Error(`Named callout allows only one argument "${o}"`);if(typeof i=="string")throw new Error(`Named callout argument must be a number "${i}"`);break;case"max":if(!o.length||o.length>2)throw new Error(`Named callout must have one or two arguments "${o}"`);if(typeof i=="string"&&!/^[A-Za-z_]\w*$/.test(i))throw new Error(`Named callout argument one must be a tag or number "${i}"`);if(o.length===2&&(typeof a=="number"||!/^[<>X]$/.test(a)))throw new Error(`Named callout optional argument two must be '<', '>', or 'X' "${a}"`);break;case"count":case"total_count":if(o.length>1)throw new Error(`Named callout allows only one argument "${o}"`);if(o.length===1&&(typeof i=="number"||!/^[<>X]$/.test(i)))throw new Error(`Named callout optional argument must be '<', '>', or 'X' "${i}"`);break;case"cmp":if(o.length!==3)throw new Error(`Named callout must have three arguments "${o}"`);if(typeof i=="string"&&!/^[A-Za-z_]\w*$/.test(i))throw new Error(`Named callout argument one must be a tag or number "${i}"`);if(typeof a=="number"||!/^(?:[<>!=]=|[<>])$/.test(a))throw new Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${a}"`);if(typeof l=="string"&&!/^[A-Za-z_]\w*$/.test(l))throw new Error(`Named callout argument three must be a tag or number "${l}"`);break;case"custom":throw new Error(`Undefined callout name "${n}"`);default:throw new Error(`Unexpected named callout kind "${u}"`)}return q1(u,r??null,s?.split(",")??null,e)}function ru(e){let t=null,n,r;if(e[0]==="{"){const{minStr:s,maxStr:o}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups,i=1e5;if(+s>i||o&&+o>i)throw new Error("Quantifier value unsupported in Oniguruma");if(n=+s,r=o===void 0?+s:o===""?1/0:+o,n>r&&(t="possessive",[n,r]=[r,n]),e.endsWith("?")){if(t==="possessive")throw new Error('Unsupported possessive interval quantifier chain with "?"');t="lazy"}else t||(t="greedy")}else n=e[0]==="+"?1:0,r=e[0]==="?"?1:1/0,t=e[1]==="+"?"possessive":e[1]==="?"?"lazy":"greedy";return K1(t,n,r,e)}function eC(e){const t=e[1].toLowerCase();return mn({d:"digit",h:"hex",s:"space",w:"word"}[t],e,{negate:e[1]!==t})}function tC(e){const{p:t,neg:n,value:r}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return mn("property",e,{value:r,negate:t==="P"&&!n||t==="p"&&!!n})}function su(e){const t={};return e.includes("i")&&(t.ignoreCase=!0),e.includes("m")&&(t.dotAll=!0),e.includes("x")&&(t.extended=!0),Object.keys(t).length?t:null}function nC(e){const t={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let n=0;n<e.length;n++){const r=e[n];if(!"imxDPSWy".includes(r))throw new Error(`Invalid flag "${r}"`);if(r==="y"){if(!/^y{[gw]}/.test(e.slice(n)))throw new Error('Invalid or unspecified flag "y" mode');t.textSegmentMode=e[n+2]==="g"?"grapheme":"word",n+=3;continue}t[{i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"}[r]]=!0}return t}function rC(e){if(new RegExp("^(?:\\\\u(?!\\p{AHex}{4})|\\\\x(?!\\p{AHex}{1,2}|\\{\\p{AHex}{1,8}\\}))","u").test(e))throw new Error(`Incomplete or invalid escape "${e}"`);const t=e[2]==="{"?new RegExp("^\\\\x\\{\\s*(?<hex>\\p{AHex}+)","u").exec(e).groups.hex:e.slice(2);return parseInt(t,16)}function sC(e,t){const{raw:n,inCharClass:r}=e,s=n.slice(1);if(!r&&(s!=="0"&&s.length===1||s[0]!=="0"&&+s<=t))return[Th(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=cr(l);o.push(Lt(u,(a===0?"\\":"")+l))}return o}function oC(e){const t=[],n=new RegExp(ol,"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(ru(s.slice(0,-1)));continue}}}t.push(ru(s))}return t}function Rh(e,t){if(!Array.isArray(e.body))throw new Error("Expected node with body array");if(e.body.length!==1)return!1;const n=e.body[0];return!t||Object.keys(t).every(r=>t[r]===n[r])}function iC(e){return aC.has(e.type)}const aC=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function Ph(e,t={}){const n={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},r=D1(e,{flags:n.flags,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline}}),s=(h,d)=>{const p=r.tokens[o.nextIndex];switch(o.parent=h,o.nextIndex++,p.type){case"Alternator":return kn();case"Assertion":return lC(p);case"Backreference":return cC(p,o);case"Character":return Io(p.value,{useLastValid:!!d.isCheckingRangeEnd});case"CharacterClassHyphen":return uC(p,o,d);case"CharacterClassOpen":return fC(p,o,d);case"CharacterSet":return dC(p,o);case"Directive":return _C(p.kind,{flags:p.flags});case"GroupOpen":return hC(p,o,d);case"NamedCallout":return wC(p.kind,p.tag,p.arguments);case"Quantifier":return pC(p,o);case"Subroutine":return gC(p,o);default:throw new Error(`Unexpected token type "${p.type}"`)}},o={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:n.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:n.skipBackrefValidation,skipLookbehindValidation:n.skipLookbehindValidation,skipPropertyNameValidation:n.skipPropertyNameValidation,subroutines:[],tokens:r.tokens,unicodePropertyMap:n.unicodePropertyMap,walk:s},i=CC(bC(r.flags));let a=i.body[0];for(;o.nextIndex<r.tokens.length;){const h=s(a,{});h.type==="Alternative"?(i.body.push(h),a=h):a.body.push(h)}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:h}of f)if(typeof h=="number"){if(h>l.length)throw new Error("Subroutine uses a group number that's not defined");h&&(l[h-1].isSubroutined=!0)}else if(c.has(h)){if(c.get(h).length>1)throw new Error(Pe`Subroutine uses a duplicate group name "\g<${h}>"`);c.get(h)[0].isSubroutined=!0}else throw new Error(Pe`Subroutine uses a group name that's not defined "\g<${h}>"`);return i}function lC({kind:e}){return sa(ur({"^":"line_start",$:"line_end","\\A":"string_start","\\b":"word_boundary","\\B":"word_boundary","\\G":"search_start","\\y":"text_segment_boundary","\\Y":"text_segment_boundary","\\z":"string_end","\\Z":"string_end_newline"}[e],`Unexpected assertion kind "${e}"`),{negate:e===Pe`\B`||e===Pe`\Y`})}function cC({raw:e},t){const n=/^\\k[<']/.test(e),r=n?e.slice(3,-1):e.slice(1),s=(o,i=!1)=>{const a=t.capturingGroups.length;let l=!1;if(o>a)if(t.skipBackrefValidation)l=!0;else throw new Error(`Not enough capturing groups defined to the left "${e}"`);return t.hasNumberedRef=!0,oa(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 oa(r)}return s(+r)}function uC(e,t,n){const{tokens:r,walk:s}=t,o=t.parent,i=o.body.at(-1),a=r[t.nextIndex];if(!n.isCheckingRangeEnd&&i&&i.type!=="CharacterClass"&&i.type!=="CharacterClassRange"&&a&&a.type!=="CharacterClassOpen"&&a.type!=="CharacterClassClose"&&a.type!=="CharacterClassIntersector"){const l=s(o,{...n,isCheckingRangeEnd:!0});if(i.type==="Character"&&l.type==="Character")return o.body.pop(),yC(i,l);throw new Error("Invalid character class range")}return Io(cr("-"))}function fC({negate:e},t,n){const{tokens:r,walk:s}=t,o=r[t.nextIndex],i=[Es()];let a=au(o);for(;a.type!=="CharacterClassClose";){if(a.type==="CharacterClassIntersector")i.push(Es()),t.nextIndex++;else{const u=i.at(-1);u.body.push(s(u,n))}a=au(r[t.nextIndex],o)}const l=Es({negate:e});return i.length===1?l.body=i[0].body:(l.kind="intersection",l.body=i.map(u=>u.body.length===1?u.body[0]:u)),t.nextIndex++,l}function dC({kind:e,negate:t,value:n},r){const{normalizeUnknownPropertyNames:s,skipPropertyNameValidation:o,unicodePropertyMap:i}=r;if(e==="property"){const a=Lo(n);if(sl.has(a)&&!i?.has(a))e="posix",n=a;else return Dn(n,{negate:t,normalizeUnknownPropertyNames:s,skipPropertyNameValidation:o,unicodePropertyMap:i})}return e==="posix"?vC(n,{negate:t}):ia(e,{negate:t})}function hC(e,t,n){const{tokens:r,capturingGroups:s,namedGroupsByName:o,skipLookbehindValidation:i,walk:a}=t,l=xC(e),u=l.type==="AbsenceFunction",c=iu(l),f=c&&l.negate;if(l.type==="CapturingGroup"&&(s.push(l),l.name&&M1(o,l.name,[]).push(l)),u&&n.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let h=lu(r[t.nextIndex]);for(;h.type!=="GroupClose";){if(h.type==="Alternator")l.body.push(kn()),t.nextIndex++;else{const d=l.body.at(-1),p=a(d,{...n,isInAbsenceFunction:n.isInAbsenceFunction||u,isInLookbehind:n.isInLookbehind||c,isInNegLookbehind:n.isInNegLookbehind||f});if(d.body.push(p),(c||n.isInLookbehind)&&!i){const g="Lookbehind includes a pattern not allowed by Oniguruma";if(f||n.isInNegLookbehind){if(ou(p)||p.type==="CapturingGroup")throw new Error(g)}else if(ou(p)||iu(p)&&p.negate)throw new Error(g)}}h=lu(r[t.nextIndex])}return t.nextIndex++,l}function pC({kind:e,min:t,max:n},r){const s=r.parent,o=s.body.at(-1);if(!o||!iC(o))throw new Error("Quantifier requires a repeatable token");const i=Ih(e,t,n,o);return s.body.pop(),i}function gC({raw:e},t){const{capturingGroups:n,subroutines:r}=t;let s=e.slice(3,-1);const o=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(s);if(o){const a=+o.groups.num,l=n.length;if(t.hasNumberedRef=!0,s={"":a,"+":l+a,"-":l+1-a}[o.groups.sign],s<1)throw new Error("Invalid subroutine number")}else s==="0"&&(s=0);const i=Lh(s);return r.push(i),i}function mC(e,t){return{type:"AbsenceFunction",kind:e,body:Qr(t?.body)}}function kn(e){return{type:"Alternative",body:Oh(e?.body)}}function sa(e,t){const n={type:"Assertion",kind:e};return(e==="word_boundary"||e==="text_segment_boundary")&&(n.negate=!!t?.negate),n}function oa(e,t){const n=!!t?.orphan;return{type:"Backreference",ref:e,...n&&{orphan:n}}}function Nh(e,t){const n={name:void 0,isSubroutined:!1,...t};if(n.name!==void 0&&!SC(n.name))throw new Error(`Group name "${n.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:e,...n.name&&{name:n.name},...n.isSubroutined&&{isSubroutined:n.isSubroutined},body:Qr(t?.body)}}function Io(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 Es(e){const t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:Oh(e?.body)}}function yC(e,t){if(t.value<e.value)throw new Error("Character class range out of order");return{type:"CharacterClassRange",min:e,max:t}}function ia(e,t){const n=!!t?.negate,r={type:"CharacterSet",kind:e};return(e==="digit"||e==="hex"||e==="newline"||e==="space"||e==="word")&&(r.negate=n),(e==="text_segment"||e==="newline"&&!n)&&(r.variableLength=!0),r}function _C(e,t={}){if(e==="keep")return{type:"Directive",kind:e};if(e==="flags")return{type:"Directive",kind:e,flags:ur(t.flags)};throw new Error(`Unexpected directive kind "${e}"`)}function bC(e){return{type:"Flags",...e}}function lt(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:Qr(e?.body)}}function pn(e){const t={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:t.behind?"lookbehind":"lookahead",negate:t.negate,body:Qr(e?.body)}}function wC(e,t,n){return{type:"NamedCallout",kind:e,tag:t,arguments:n}}function vC(e,t){const n=!!t?.negate;if(!sl.has(e))throw new Error(`Invalid POSIX class "${e}"`);return{type:"CharacterSet",kind:"posix",value:e,negate:n}}function Ih(e,t,n,r){if(t>n)throw new Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:e,min:t,max:n,body:r}}function CC(e,t){return{type:"Regex",body:Qr(t?.body),flags:e}}function Lh(e){return{type:"Subroutine",ref:e}}function Dn(e,t){const n={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t};let r=n.unicodePropertyMap?.get(Lo(e));if(!r){if(n.normalizeUnknownPropertyNames)r=kC(e);else if(n.unicodePropertyMap&&!n.skipPropertyNameValidation)throw new Error(Pe`Invalid Unicode property "\p{${e}}"`)}return{type:"CharacterSet",kind:"property",value:r??e,negate:n.negate}}function xC({flags:e,kind:t,name:n,negate:r,number:s}){switch(t){case"absence_repeater":return mC("repeater");case"atomic":return lt({atomic:!0});case"capturing":return Nh(s,{name:n});case"group":return lt({flags:e});case"lookahead":case"lookbehind":return pn({behind:t==="lookbehind",negate:r});default:throw new Error(`Unexpected group kind "${t}"`)}}function Qr(e){if(e===void 0)e=[kn()];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 Oh(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 ou(e){return e.type==="LookaroundAssertion"&&e.kind==="lookahead"}function iu(e){return e.type==="LookaroundAssertion"&&e.kind==="lookbehind"}function SC(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function kC(e){return e.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,t=>t[0].toUpperCase()+t.slice(1).toLowerCase())}function Lo(e){return e.replace(/[- _]+/g,"").toLowerCase()}function au(e,t){return ur(e,`${t?.type==="Character"&&t.value===93?"Empty":"Unclosed"} character class`)}function lu(e){return ur(e,"Unclosed group")}function Rr(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(){ms(l).splice(Math.max(0,In(a)+u),1),u--,c=!0},removeAllNextSiblings(){return ms(l).splice(In(a)+1)},removeAllPrevSiblings(){const _=In(a)+u;return u-=_,ms(l).splice(0,Math.max(0,_))},replaceWith(_,v={}){const m=!!v.traverse;l?l[Math.max(0,In(a)+u)]=_:ur(i,"Can't replace root node")[a]=_,m&&s(_,i,a,l),c=!0},replaceWithMultiple(_,v={}){const m=!!v.traverse;if(ms(l).splice(Math.max(0,In(a)+u),1,..._),u+=_.length-1,m){let b=0;for(let C=0;C<_.length;C++)b+=s(_[C],i,In(a)+C+b,l)}c=!0},skip(){c=!0}},{type:h}=o,d=t["*"],p=t[h],g=typeof d=="function"?d:d?.enter,w=typeof p=="function"?p:p?.enter;if(g?.(f,n),w?.(f,n),!c)switch(h){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 "${h}"`)}return p?.exit?.(f,n),d?.exit?.(f,n),u}return s(e),e}function ms(e){if(!Array.isArray(e))throw new Error("Container expected");return e}function In(e){if(typeof e!="number")throw new Error("Numeric key expected");return e}const EC=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function AC(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function TC(e,t,n,r){return e.slice(0,t)+r+e.slice(t+n.length)}const nt=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function il(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 Mh(e,t,n,r){il(e,t,n,r)}function $C(e,t,n=0,r){if(!new RegExp(t,"su").test(e))return null;const s=new RegExp(`${t}|(?<$skip>\\\\?.)`,"gsu");s.lastIndex=n;let o=0,i;for(;i=s.exec(e);){const{0:a,groups:{$skip:l}}=i;if(!l&&(!r||r===nt.DEFAULT==!o))return i;a==="["?o++:a==="]"&&o&&o--,s.lastIndex==i.index&&s.lastIndex++}return null}function ys(e,t,n){return!!$C(e,t,0,n)}function RC(e,t){const n=/\\?./gsu;n.lastIndex=t;let r=e.length,s=0,o=1,i;for(;i=n.exec(e);){const[a]=i;if(a==="[")s++;else if(s)a==="]"&&s--;else if(a==="(")o++;else if(a===")"&&(o--,!o)){r=i.index;break}}return e.slice(t,r)}const cu=new RegExp(String.raw`(?<noncapturingStart>${EC})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function PC(e,t){const n=t?.hiddenCaptures??[];let r=t?.captureTransfers??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:r,hiddenCaptures:n};const s="(?>",o="(?:(?=(",i=[0],a=[];let l=0,u=0,c=NaN,f;do{f=!1;let h=0,d=0,p=!1,g;for(cu.lastIndex=Number.isNaN(c)?0:c+o.length;g=cu.exec(e);){const{0:w,index:_,groups:{capturingStart:v,noncapturingStart:m}}=g;if(w==="[")h++;else if(h)w==="]"&&h--;else if(w===s&&!p)c=_,p=!0;else if(p&&m)d++;else if(v)p?d++:(l++,i.push(l+u));else if(w===")"&&p){if(!d){u++;const b=l+u;if(e=`${e.slice(0,c)}${o}${e.slice(c+s.length,_)}))<$$${b}>)${e.slice(_+1)}`,f=!0,a.push(b),AC(n,b),r.size){const C=new Map;r.forEach((k,P)=>{C.set(P>=b?P+1:P,k.map(O=>O>=b?O+1:O))}),r=C}break}d--}}}while(f);return n.push(...a),e=il(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:h,groups:{backrefNum:d,wrappedBackrefNum:p}})=>{if(d){const g=+d;if(g>i.length-1)throw new Error(`Backref "${h}" greater than number of captures`);return`\\${i[g]}`}return`\\${p}`},nt.DEFAULT),{pattern:e,captureTransfers:r,hiddenCaptures:n}}const Dh=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,hi=new RegExp(String.raw`
63
+ \\(?: \d+
64
+ | c[A-Za-z]
65
+ | [gk]<[^>]+>
66
+ | [pPu]\{[^\}]+\}
67
+ | u[A-Fa-f\d]{4}
68
+ | x[A-Fa-f\d]{2}
69
+ )
70
+ | \((?: \? (?: [:=!>]
71
+ | <(?:[=!]|[^>]+>)
72
+ | [A-Za-z\-]+:
73
+ | \(DEFINE\)
74
+ ))?
75
+ | (?<qBase>${Dh})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
76
+ | \\?.
77
+ `.replace(/\s+/g,""),"gsu");function NC(e){if(!new RegExp(`${Dh}\\+`).test(e))return{pattern:e};const t=[];let n=null,r=null,s="",o=0,i;for(hi.lastIndex=0;i=hi.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 h=-1;if(/^\{\d+\}$/.test(u))e=TC(e,l+u.length,c,"");else{if(s===")"||s==="]"){const d=s===")"?n:r;if(d===null)throw new Error(`Invalid unmatched "${s}"`);e=`${e.slice(0,d)}(?>${e.slice(d,l)}${u})${e.slice(l+a.length)}`}else e=`${e.slice(0,l-s.length)}(?>${s}${u})${e.slice(l+a.length)}`;h+=4}hi.lastIndex+=h}else a[0]==="("?t.push(l):a===")"&&(n=t.length?t.pop():null);s=a}return{pattern:e}}const et=String.raw,IC=et`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,aa=et`\(\?R=(?<rDepth>[^\)]+)\)|${IC}`,Oo=et`\(\?<(?![=!])(?<captureName>[^>]+)>`,Bh=et`${Oo}|(?<unnamed>\()(?!\?)`,un=new RegExp(et`${Oo}|${aa}|\(\?|\\?.`,"gsu"),pi="Cannot use multiple overlapping recursions";function LC(e,t){const{hiddenCaptures:n,mode:r}={hiddenCaptures:[],mode:"plugin",...t};let s=t?.captureTransfers??new Map;if(!new RegExp(aa,"su").test(e))return{pattern:e,captureTransfers:s,hiddenCaptures:n};if(r==="plugin"&&ys(e,et`\(\?\(DEFINE\)`,nt.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");const o=[],i=ys(e,et`\\[1-9]`,nt.DEFAULT),a=new Map,l=[];let u=!1,c=0,f=0,h;for(un.lastIndex=0;h=un.exec(e);){const{0:d,groups:{captureName:p,rDepth:g,gRNameOrNum:w,gRDepth:_}}=h;if(d==="[")c++;else if(c)d==="]"&&c--;else if(g){if(uu(g),u)throw new Error(pi);if(i)throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);const v=e.slice(0,h.index),m=e.slice(un.lastIndex);if(ys(m,aa,nt.DEFAULT))throw new Error(pi);const b=+g-1;e=fu(v,m,b,!1,n,o,f),s=hu(s,v,b,o.length,0,f);break}else if(w){uu(_);let v=!1;for(const G of l)if(G.name===w||G.num===+w){if(v=!0,G.hasRecursedWithin)throw new Error(pi);break}if(!v)throw new Error(et`Recursive \g cannot be used outside the referenced group "${r==="external"?w:et`\g<${w}&R=${_}>`}"`);const m=a.get(w),b=RC(e,m);if(i&&ys(b,et`${Oo}|\((?!\?)`,nt.DEFAULT))throw new Error(`${r==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);const C=e.slice(m,h.index),k=b.slice(C.length+d.length),P=o.length,O=+_-1,F=fu(C,k,O,!0,n,o,f);s=hu(s,C,O,o.length-P,P,f);const N=e.slice(0,m),z=e.slice(m+b.length);e=`${N}${F}${z}`,un.lastIndex+=F.length-d.length-C.length-k.length,l.forEach(G=>G.hasRecursedWithin=!0),u=!0}else if(p)f++,a.set(String(f),un.lastIndex),a.set(p,un.lastIndex),l.push({num:f,name:p});else if(d[0]==="("){const v=d==="(";v&&(f++,a.set(String(f),un.lastIndex)),l.push(v?{num:f}:{})}else d===")"&&l.pop()}return n.push(...o),{pattern:e,captureTransfers:s,hiddenCaptures:n}}function uu(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 fu(e,t,n,r,s,o,i){const a=new Set;r&&Mh(e+t,Oo,({groups:{captureName:u}})=>{a.add(u)},nt.DEFAULT);const l=[n,r?a:null,s,o,i];return`${e}${du(`(?:${e}`,"forward",...l)}(?:)${du(`${t})`,"backward",...l)}${t}`}function du(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+=il(e,et`${Bh}|\\k<(?<backref>[^>]+)>`,({0:h,groups:{captureName:d,unnamed:p,backref:g}})=>{if(g&&r&&!r.has(g))return h;const w=`_$${f}`;if(p||d){const _=i+o.length+1;return o.push(_),OC(s,_),p?h:`(?<${d}${w}>`}return et`\k<${g}${w}>`},nt.DEFAULT)}return u}function OC(e,t){for(let n=0;n<e.length;n++)e[n]>=t&&e[n]++}function hu(e,t,n,r,s,o){if(e.size&&r){let i=0;Mh(t,Bh,()=>i++,nt.DEFAULT);const a=o-i+s,l=new Map;return e.forEach((u,c)=>{const f=(r-i*n)/n,h=i*n,d=c>a+i?c+r:c,p=[];for(const g of u)if(g<=a)p.push(g);else if(g>a+i+f)p.push(g+r);else if(g<=a+i)for(let w=0;w<=n;w++)p.push(g+i*w);else for(let w=0;w<=n;w++)p.push(g+h+f*w);l.set(d,p)}),l}return e}var ke=String.fromCodePoint,ee=String.raw,Ot={flagGroups:(()=>{try{new RegExp("(?i:)")}catch{return!1}return!0})(),unicodeSets:(()=>{try{new RegExp("","v")}catch{return!1}return!0})()};Ot.bugFlagVLiteralHyphenIsRange=Ot.unicodeSets?(()=>{try{new RegExp(ee`[\d\-a]`,"v")}catch{return!0}return!1})():!1;Ot.bugNestedClassIgnoresNegation=Ot.unicodeSets&&new RegExp("[[^a]]","v").test("a");function io(e,{enable:t,disable:n}){return{dotAll:!n?.dotAll&&!!(t?.dotAll||e.dotAll),ignoreCase:!n?.ignoreCase&&!!(t?.ignoreCase||e.ignoreCase)}}function zr(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}function la(e,t){return pu[e]>=pu[t]}function MC(e,t){if(e==null)throw new Error(t??"Value expected");return e}var pu={ES2025:2025,ES2024:2024,ES2018:2018},DC={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function Hh(e={}){if({}.toString.call(e)!=="[object Object]")throw new Error("Unexpected options");if(e.target!==void 0&&!DC[e.target])throw new Error(`Unexpected target "${e.target}"`);const t={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,lazyCompileLength:1/0,target:"auto",verbose:!1,...e,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...e.rules}};return t.target==="auto"&&(t.target=Ot.flagGroups?"ES2025":Ot.unicodeSets?"ES2024":"ES2018"),t}var BC="[ -\r ]",HC=new Set([ke(304),ke(305)]),Tt=ee`[\p{L}\p{M}\p{N}\p{Pc}]`;function Fh(e){if(HC.has(e))return[e];const t=new Set,n=e.toLowerCase(),r=n.toUpperCase(),s=UC.get(n),o=FC.get(n),i=jC.get(n);return[...r].length===1&&t.add(r),i&&t.add(i),s&&t.add(s),t.add(n),o&&t.add(o),[...t]}var al=new Map(`C Other
78
+ Cc Control cntrl
79
+ Cf Format
80
+ Cn Unassigned
81
+ Co Private_Use
82
+ Cs Surrogate
83
+ L Letter
84
+ LC Cased_Letter
85
+ Ll Lowercase_Letter
86
+ Lm Modifier_Letter
87
+ Lo Other_Letter
88
+ Lt Titlecase_Letter
89
+ Lu Uppercase_Letter
90
+ M Mark Combining_Mark
91
+ Mc Spacing_Mark
92
+ Me Enclosing_Mark
93
+ Mn Nonspacing_Mark
94
+ N Number
95
+ Nd Decimal_Number digit
96
+ Nl Letter_Number
97
+ No Other_Number
98
+ P Punctuation punct
99
+ Pc Connector_Punctuation
100
+ Pd Dash_Punctuation
101
+ Pe Close_Punctuation
102
+ Pf Final_Punctuation
103
+ Pi Initial_Punctuation
104
+ Po Other_Punctuation
105
+ Ps Open_Punctuation
106
+ S Symbol
107
+ Sc Currency_Symbol
108
+ Sk Modifier_Symbol
109
+ Sm Math_Symbol
110
+ So Other_Symbol
111
+ Z Separator
112
+ Zl Line_Separator
113
+ Zp Paragraph_Separator
114
+ Zs Space_Separator
115
+ ASCII
116
+ ASCII_Hex_Digit AHex
117
+ Alphabetic Alpha
118
+ Any
119
+ Assigned
120
+ Bidi_Control Bidi_C
121
+ Bidi_Mirrored Bidi_M
122
+ Case_Ignorable CI
123
+ Cased
124
+ Changes_When_Casefolded CWCF
125
+ Changes_When_Casemapped CWCM
126
+ Changes_When_Lowercased CWL
127
+ Changes_When_NFKC_Casefolded CWKCF
128
+ Changes_When_Titlecased CWT
129
+ Changes_When_Uppercased CWU
130
+ Dash
131
+ Default_Ignorable_Code_Point DI
132
+ Deprecated Dep
133
+ Diacritic Dia
134
+ Emoji
135
+ Emoji_Component EComp
136
+ Emoji_Modifier EMod
137
+ Emoji_Modifier_Base EBase
138
+ Emoji_Presentation EPres
139
+ Extended_Pictographic ExtPict
140
+ Extender Ext
141
+ Grapheme_Base Gr_Base
142
+ Grapheme_Extend Gr_Ext
143
+ Hex_Digit Hex
144
+ IDS_Binary_Operator IDSB
145
+ IDS_Trinary_Operator IDST
146
+ ID_Continue IDC
147
+ ID_Start IDS
148
+ Ideographic Ideo
149
+ Join_Control Join_C
150
+ Logical_Order_Exception LOE
151
+ Lowercase Lower
152
+ Math
153
+ Noncharacter_Code_Point NChar
154
+ Pattern_Syntax Pat_Syn
155
+ Pattern_White_Space Pat_WS
156
+ Quotation_Mark QMark
157
+ Radical
158
+ Regional_Indicator RI
159
+ Sentence_Terminal STerm
160
+ Soft_Dotted SD
161
+ Terminal_Punctuation Term
162
+ Unified_Ideograph UIdeo
163
+ Uppercase Upper
164
+ Variation_Selector VS
165
+ White_Space space
166
+ XID_Continue XIDC
167
+ XID_Start XIDS`.split(/\s/).map(e=>[Lo(e),e])),FC=new Map([["s",ke(383)],[ke(383),"s"]]),jC=new Map([[ke(223),ke(7838)],[ke(107),ke(8490)],[ke(229),ke(8491)],[ke(969),ke(8486)]]),UC=new Map([Gt(453),Gt(456),Gt(459),Gt(498),...gi(8072,8079),...gi(8088,8095),...gi(8104,8111),Gt(8124),Gt(8140),Gt(8188)]),GC=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 WC(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 gi(e,t){return WC(e,t).map(n=>Gt(n))}var jh=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function zC(e,t){const n={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...t};Uh(e);const r={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:la(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};Rr(e,VC,r);const s={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},o={currentFlags:s,prevFlags:null,globalFlags:s,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:r.subroutineRefMap};Rr(e,qC,o);const i={groupsByName:o.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:o.reffedNodesByReferencer};return Rr(e,KC,i),e._originMap=o.groupOriginByCopy,e._strategy=r.strategy,e}var VC={AbsenceFunction({node:e,parent:t,replaceWith:n}){const{body:r,kind:s}=e;if(s==="repeater"){const o=lt();o.body[0].body.push(pn({negate:!0,body:r}),Dn("Any"));const i=lt();i.body[0].body.push(Ih("greedy",0,1/0,o)),n(ve(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];zr(r,i,[]).push(...s)}},exit({node:e},{flagDirectivesByAlt:t}){if(t.get(e)?.length){const n=Wh(t.get(e));if(n){const r=lt({flags:n});r.body[0].body=e.body,e.body=[ve(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:h,wordIsAscii:d}=a;if(l==="text_segment_boundary")throw new Error(`Unsupported text segment boundary "\\${u?"Y":"y"}"`);if(l==="line_end")i(ve(pn({body:[kn({body:[sa("string_end")]}),kn({body:[Io(10)]})]}),t));else if(l==="line_start")i(ve($t(ee`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if(l==="search_start")if(h.has(e))s.flags.sticky=!0,o();else{const p=r[n-1];if(p&&ex(p))i(ve(pn({negate:!0}),t));else{if(f)throw new Error(ee`Uses "\G" in a way that requires a subclass`);i(Wt(sa("string_start"),t)),a.strategy="clip_search"}}else if(!(l==="string_end"||l==="string_start"))if(l==="string_end_newline")i(ve($t(ee`(?=\n?\z)`),t));else if(l==="word_boundary"){if(!d&&!c){const p=`(?:(?<=${Tt})(?!${Tt})|(?<!${Tt})(?=${Tt}))`,g=`(?:(?<=${Tt})(?=${Tt})|(?<!${Tt})(?!${Tt}))`;i(ve($t(u?g:p),t))}}else throw new Error(`Unexpected assertion kind "${l}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:n}=e;typeof n=="string"&&!yi(n)&&(n=mi(n,t),e.ref=n)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:n}){let{name:r}=e;r&&!yi(r)&&(r=mi(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=Es({body:[e]});n(ve(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(ia("digit",{negate:u}),t));return}if(i&&(l==="space"||c==="space")){n(ve(_i($t(BC),u),t));return}if(a&&(l==="word"||c==="word")){n(Wt(ia("word",{negate:u}),t));return}if(l==="any")n(Wt(Dn("Any"),t));else if(l==="digit")n(Wt(Dn("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})?",h=ee`\p{RI}{2}|${f}(?:\u200D${f})*`;n(ve($t(ee`(?>\r\n|${s?ee`\p{RGI_Emoji}`:h}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(l==="hex")n(Wt(Dn("AHex",{negate:u}),t));else if(l==="newline")n(ve($t(u?`[^
168
+ ]`:`(?>\r
169
+ ?|[
170
+ \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(ve($t(`[${f}]`),t))}else n(ve(_i($t(GC.get(c)),u),t));else if(l==="property")al.has(Lo(c))||(e.key="sc");else if(l==="space")n(Wt(Dn("space",{negate:u}),t));else if(l==="word")n(ve(_i($t(Tt),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=lt({flags:l});u.body[0].body=i(),s(ve(u,t),{traverse:!0})}else if(a==="keep"){const u=n.body[0],f=n.body.length===1&&Rh(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 h=pn({behind:!0});h.body[0].body=o(),s(ve(h,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(ve(pn({negate:!0}),t));else throw new Error(`Unsupported named callout "(*${r.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type==="Quantifier"){const t=lt();t.body[0].body.push(e.body),e.body=ve(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=Vh(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"&&!yi(n)&&(n=mi(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(gu(e.number),t);l.set(f,a.get(e.number)),n(f);return}a.set(e.number,e),i.set(e.number,[]),e.name&&zr(i,e.name,[]);const c=i.get(e.name??e.number);for(let f=0;f<c.length;f++){const h=c[f];if(u===h.node||u&&u===h.origin||e===h.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=zr(o,e.name,new Map);let h=!1;if(u)h=!0;else for(const d of f.values())if(!d.hasDuplicateNameToRemove){h=!0;break}o.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:h})}},exit({node:e},{openRefs:t}){t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=io(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?gu(0):Gh(i,r.groupOriginByCopy,null);let u=l;if(!a){const c=Wh(ZC(i,h=>h.type==="Group"&&!!h.flags)),f=c?io(r.globalFlags,c):r.globalFlags;XC(f,r.currentFlags)||(u=lt({flags:YC(f)}),u.body[0].body.push(l))}n(ve(u,t),{traverse:!a})}},KC={Backreference({node:e,parent:t,replaceWith:n},r){if(e.orphan){r.highestOrphanBackref=Math.max(r.highestOrphanBackref,e.ref);return}const o=r.reffedNodesByReferencer.get(e).filter(i=>JC(i,e));if(!o.length)n(ve(pn({negate:!0}),t));else if(o.length>1){const i=lt({atomic:!0,body:o.reverse().map(a=>kn({body:[oa(a.number)]}))});n(ve(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=Nh();e.body.at(-1).body.push(s)}}},Subroutine({node:e},t){!e.isRecursive||e.ref===0||(e.ref=t.reffedNodesByReferencer.get(e).number)}};function Uh(e){Rr(e,{"*"({node:t,parent:n}){t.parent=n}})}function XC(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function JC(e,t){let n=t;do{if(n.type==="Regex")return!1;if(n.type==="Alternative")continue;if(n===e)return!1;const r=zh(n.parent);for(const s of r){if(s===n)break;if(s===e||qh(s,e))return!0}}while(n=n.parent);throw new Error("Unexpected path")}function Gh(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]=Gh(i,t,s,n):(o==="type"&&i==="CapturingGroup"&&t.set(s,t.get(e)??e),s[o]=i);return s}function gu(e){const t=Lh(e);return t.isRecursive=!0,t}function ZC(e,t){const n=[];for(;e=e.parent;)(!t||t(e))&&n.push(e);return n}function mi(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 Wh(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 YC({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 zh(e){if(!e)throw new Error("Node expected");const{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function Vh(e){const t=e.find(n=>n.kind==="search_start"||tx(n,{negate:!1})||!QC(n));if(!t)return null;if(t.kind==="search_start")return t;if(t.type==="LookaroundAssertion")return t.body[0].body[0];if(t.type==="CapturingGroup"||t.type==="Group"){const n=[];for(const r of t.body){const s=Vh(r.body);if(!s)return null;Array.isArray(s)?n.push(...s):n.push(s)}return n}return null}function qh(e,t){const n=zh(e)??[];for(const r of n)if(r===t||qh(r,t))return!0;return!1}function QC({type:e}){return e==="Assertion"||e==="Directive"||e==="LookaroundAssertion"}function ex(e){const t=["Character","CharacterClass","CharacterSet"];return t.includes(e.type)||e.type==="Quantifier"&&e.min&&t.includes(e.body.type)}function tx(e,t){const n={negate:null,...t};return e.type==="LookaroundAssertion"&&(n.negate===null||e.negate===n.negate)&&e.body.length===1&&Rh(e.body[0],{type:"Assertion",kind:"search_start"})}function yi(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function $t(e,t){const r=Ph(e,{...t,unicodePropertyMap:al}).body;return r.length>1||r[0].body.length>1?lt({body:r}):r[0].body[0]}function _i(e,t){return e.negate=t,e}function Wt(e,t){return e.parent=t,e}function ve(e,t){return Uh(e),e.parent=t,e}function nx(e,t){const n=Hh(t),r=la(n.target,"ES2024"),s=la(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 d=[e.flags.ignoreCase];Rr(e,rx,{getCurrentModI:()=>d.at(-1),popModI(){d.pop()},pushModI(p){d.push(p)},setHasCasedChar(){d.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(d){return c.lastNode=u,u=d,MC(sx[d.type],`Unexpected node type "${d.type}"`)(d,c,f)}const h={pattern:e.body.map(f).join("|"),flags:f(e.flags),options:{...e.options}};return r||(delete h.options.force.v,h.options.disable.v=!0,h.options.unicodeSetsPlugin=null),h._captureTransfers=new Map,h._hiddenCaptures=[],c.captureMap.forEach((d,p)=>{d.hidden&&h._hiddenCaptures.push(p),d.transferTo&&zr(h._captureTransfers,d.transferTo,[]).push(p)}),h}var rx={"*":{enter({node:e},t){if(yu(e)){const n=t.getCurrentModI();t.pushModI(e.flags?io({ignoreCase:n},e.flags).ignoreCase:n)}},exit({node:e},t){yu(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){ll(ke(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},n){t(),Kh(e,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:e},t){e.kind==="property"&&jh.has(e.value)&&t.setHasCasedChar()}},sx={Alternative({body:e},t,n){return e.map(n).join("")},Assertion({kind:e,negate:t}){if(e==="string_end")return"$";if(e==="string_start")return"^";if(e==="word_boundary")return t?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=Ln(e,{escDigit:t.lastNode.type==="Backreference",inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(r!==n)return r;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&ll(n)){const s=Fh(n);return t.inCharClass?s.join(""):s.length>1?`[${s.join("")}]`:s[0]}return n},CharacterClass(e,t,n){const{kind:r,negate:s,parent:o}=e;let{body:i}=e;if(r==="intersection"&&!t.useFlagV)throw new Error("Use of class intersection requires min target ES2024");Ot.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&i.some(_u)&&(i=[Io(45),...i.filter(u=>!_u(u))]);const a=()=>`[${s?"^":""}${i.map(n).join(r==="intersection"?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||Ot.bugNestedClassIgnoresNegation)&&!s){const c=i.filter(f=>f.type==="CharacterClass"&&f.kind==="union"&&f.negate);if(c.length){const f=lt(),h=f.body[0];return f.parent=o,h.parent=f,i=i.filter(d=>!c.includes(d)),e.body=i,i.length?(e.parent=h,h.body.push(e)):f.body.pop(),c.forEach(d=>{const p=kn({body:[d]});d.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"&&!(Ot.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&o.kind==="intersection"&&i.length===1&&l.type!=="CharacterClassRange"))return i.map(n).join("");if(!t.useFlagV&&o.type==="CharacterClass")throw new Error("Use of nested character class requires min target ES2024");return a()},CharacterClassRange(e,t){const n=e.min.value,r=e.max.value,s={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},o=Ln(n,s),i=Ln(r,s),a=new Set;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase){const l=Kh(e);cx(l).forEach(c=>{a.add(Array.isArray(c)?`${Ln(c[0],s)}-${Ln(c[1],s)}`:Ln(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&&jh.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=io(i,n));const a=t.map(o).join("|"),l=!s.verbose&&t.length===1&&r.type!=="Quantifier"&&!e&&(!s.useFlagMods||!n)?a:`(?${ux(e,n,s.useFlagMods)}${a})`;return s.currentFlags=i,l},LookaroundAssertion({body:e,kind:t,negate:n},r,s){return`(?${`${t==="lookahead"?"":"<"}${n?"!":"="}`}${e.map(s).join("|")})`},Quantifier(e,t,n){return n(e.body)+fx(e)},Subroutine({isRecursive:e,ref:t},n){if(!e)throw new Error("Unexpected non-recursive subroutine in transformed AST");const r=n.recursionLimit;return t===0?`(?R=${r})`:ee`\g<${t}&R=${r}>`}},ox=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),ix=new Set(["-","\\","]","^","["]),ax=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),mu=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`]]),lx=new RegExp("^\\p{Cased}$","u");function ll(e){return lx.test(e)}function Kh(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(!ll(a))continue;const l=Fh(a).filter(u=>{const c=u.codePointAt(0);return c<r||c>s});if(l.length&&(o.push(...l),n))break}return o}function Ln(e,{escDigit:t,inCharClass:n,useFlagV:r}){if(mu.has(e))return mu.get(e);if(e<32||e>126&&e<160||e>262143||t&&dx(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;const s=n?r?ax:ix:ox,o=ke(e);return(s.has(o)?"\\":"")+o}function cx(e){const t=e.map(s=>s.codePointAt(0)).sort((s,o)=>s-o),n=[];let r=null;for(let s=0;s<t.length;s++)t[s+1]===t[s]+1?r??=t[s]:r===null?n.push(t[s]):(n.push([r,t[s]]),r=null);return n}function ux(e,t,n){if(e)return">";let r="";if(t&&n){const{enable:s,disable:o}=t;r=(s?.ignoreCase?"i":"")+(s?.dotAll?"s":"")+(o?"-":"")+(o?.ignoreCase?"i":"")+(o?.dotAll?"s":"")}return`${r}:`}function fx({kind:e,max:t,min:n}){let r;return!n&&t===1?r="?":!n&&t===1/0?r="*":n===1&&t===1/0?r="+":n===t?r=`{${n}}`:r=`{${n},${t===1/0?"":t}}`,r+{greedy:"",lazy:"?",possessive:"+"}[e]}function yu({type:e}){return e==="CapturingGroup"||e==="Group"||e==="LookaroundAssertion"}function dx(e){return e>47&&e<58}function _u({type:e,value:t}){return e==="Character"&&t===45}var hx=class ca 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 ca&&(this.#t=o.#t,this.#n=o.#n,this.#s=o.#s,this.rawOptions=o.rawOptions)}else{const o={hiddenCaptures:[],strategy:null,transfers:[],...r};super(s?"":t,n),this.#r=t,this.#t=gx(o.hiddenCaptures,o.transfers),this.#s=o.strategy,this.rawOptions=r??{}}s||(this.#e=this)}exec(t){if(!this.#e){const{lazyCompile:s,...o}=this.rawOptions;this.#e=new ca(this.#r,this.flags,o)}const n=this.global||this.sticky,r=this.lastIndex;if(this.#s==="clip_search"&&n&&r){this.lastIndex=0;const s=this.#o(t.slice(r));return s&&(px(s,r,t,this.hasIndices),this.lastIndex+=r),s}return this.#o(t)}#o(t){this.#e.lastIndex=this.lastIndex;const n=super.exec.call(this.#e,t);if(this.lastIndex=this.#e.lastIndex,!n||!this.#t.size)return n;const r=[...n];n.length=1;let s;this.hasIndices&&(s=[...n.indices],n.indices.length=1);const o=[0];for(let i=1;i<r.length;i++){const{hidden:a,transferTo:l}=this.#t.get(i)??{};if(a?o.push(null):(o.push(n.length),n.push(r[i]),this.hasIndices&&n.indices.push(s[i])),l&&r[i]!==void 0){const u=o[l];if(!u)throw new Error(`Invalid capture transfer to "${u}"`);if(n[u]=r[i],this.hasIndices&&(n.indices[u]=s[i]),n.groups){this.#n||(this.#n=mx(this.source));const c=this.#n.get(l);c&&(n.groups[c]=r[i],this.hasIndices&&(n.indices.groups[c]=s[i]))}}}return n}};function px(e,t,n,r){if(e.index+=t,e.input=n,r){const s=e.indices;for(let i=0;i<s.length;i++){const a=s[i];a&&(s[i]=[a[0]+t,a[1]+t])}const o=s.groups;o&&Object.keys(o).forEach(i=>{const a=o[i];a&&(o[i]=[a[0]+t,a[1]+t])})}}function gx(e,t){const n=new Map;for(const r of e)n.set(r,{hidden:!0});for(const[r,s]of t)for(const o of s)zr(n,o,{}).transferTo=r;return n}function mx(e){const t=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,n=new Map;let r=0,s=0,o;for(;o=t.exec(e);){const{0:i,groups:{capture:a,name:l}}=o;i==="["?r++:r?i==="]"&&r--:a&&(s++,l&&n.set(s,l))}return n}function yx(e,t){const n=_x(e,t);return n.options?new hx(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function _x(e,t){const n=Hh(t),r=Ph(e,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:al}),s=zC(r,{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),o=nx(s,n),i=LC(o.pattern,{captureTransfers:o._captureTransfers,hiddenCaptures:o._hiddenCaptures,mode:"external"}),a=NC(i.pattern),l=PC(a.pattern,{captureTransfers:i.captureTransfers,hiddenCaptures:i.hiddenCaptures}),u={pattern:l.pattern,flags:`${n.hasIndices?"d":""}${n.global?"g":""}${o.flags}${o.options.disable.v?"u":"v"}`};if(n.avoidSubclass){if(n.lazyCompileLength!==1/0)throw new Error("Lazy compilation requires subclass")}else{const c=l.hiddenCaptures.sort((p,g)=>p-g),f=Array.from(l.captureTransfers),h=s._strategy,d=u.pattern.length>=n.lazyCompileLength;(c.length||f.length||h||d)&&(u.options={...c.length&&{hiddenCaptures:c},...f.length&&{transfers:f},...h&&{strategy:h},...d&&{lazyCompile:d}})}return u}const bu=4294967295;class bx{constructor(t,n={}){this.patterns=t,this.options=n;const{forgiving:r=!1,cache:s,regexConstructor:o}=n;if(!o)throw new Error("Option `regexConstructor` is not provided");this.regexps=t.map(i=>{if(typeof i!="string")return i;const a=s?.get(i);if(a){if(a instanceof RegExp)return a;if(r)return null;throw a}try{const l=o(i);return s?.set(i,l),l}catch(l){if(s?.set(i,l),r)return null;throw l}})}regexps;findNextMatchSync(t,n,r){const s=typeof t=="string"?t:t.content,o=[];function i(a,l,u=0){return{index:a,captureIndices:l.indices.map(c=>c==null?{start:bu,end:bu,length:0}:{start:c[0]+u,end:c[1]+u,length:c[1]-c[0]})}}for(let a=0;a<this.regexps.length;a++){const l=this.regexps[a];if(l)try{l.lastIndex=n;const u=l.exec(s);if(!u)continue;if(u.index===n)return i(a,u,0);o.push([a,u,0])}catch(u){if(this.options.forgiving)continue;throw u}}if(o.length){const a=Math.min(...o.map(l=>l[1].index));for(const[l,u,c]of o)if(u.index===a)return i(l,u,c)}return null}}function wx(e,t){return yx(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function vx(e={}){const t=Object.assign({target:"auto",cache:new Map},e);return t.regexConstructor||=n=>wx(n,{target:t.target}),{createScanner(n){return new bx(n,t)},createString(n){return{content:n}}}}let Cx;const mr=[];function xx(e){if(mr.push(e),!(typeof window>"u"))return window.__NUXT_DEVTOOLS__&&mr.forEach(t=>t(window.__NUXT_DEVTOOLS__)),Object.defineProperty(window,"__NUXT_DEVTOOLS__",{set(t){t&&mr.forEach(n=>n(t))},get(){return Cx.value},configurable:!0}),()=>{mr.splice(mr.indexOf(e),1)}}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Sx=e=>typeof e<"u",wu=()=>{};function kx(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 Ex(e,t={}){let n,r,s=wu;const o=l=>{clearTimeout(l),s(),s=wu};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,h)=>{s=t.rejectOnCancel?h: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 Ax(e,t=200,n={}){return kx(Ex(t,n),e)}function Tx(e){return JSON.parse(JSON.stringify(e))}function $x(e,t,n,r={}){var s,o,i;const{clone:a=!1,passive:l=!1,eventName:u,deep:c=!1,defaultValue:f,shouldEmit:h}=r,d=En(),p=d?.emit||((s=d?.$emit)==null?void 0:s.bind(d))||((i=(o=d?.proxy)==null?void 0:o.$emit)==null?void 0:i.bind(d?.proxy));let g=u;g=g||`update:${t.toString()}`;const w=m=>a?typeof a=="function"?a(m):Tx(m):m,_=()=>Sx(e[t])?w(e[t]):f,v=m=>{h?h(m)&&p(g,m):p(g,m)};if(l){const m=_(),b=ye(m);let C=!1;return Cn(()=>e[t],k=>{C||(C=!0,b.value=w(k),Xr(()=>C=!1))}),Cn(b,k=>{!C&&(k!==e[t]||c)&&v(k)},{deep:c}),b}else return Se({get(){return _()},set(m){v(m)}})}const qt=ye(null);ye(Date.now());const Rx=ye(Date.now()),Px=window.location.host;ye("/");ye();const Nx=ye("/");Se(()=>Wf(Nx.value,`${window.location.protocol}//${Px}`));const Xh=ye(),Jh=ye(),Zh=ye(),Ix=Ax(async()=>{qt.value=(await Xh.value.resolveTags()).filter(e=>!!e.props["data-nuxt-schema-org"])[0]?.innerHTML||{}},300);async function ao(){qt.value="loading",Ix()}xx(async e=>{Zh.value=e.host.app.$fetch,Jh.value=e.devtools,Xh.value=e.host.nuxt.vueApp._context.provides.usehead,e.host.nuxt.$router.afterEach(()=>{setTimeout(ao,100)}),ao()});const ua=ye();async function Lx(){return ua.value=await O1({themes:[Fn(()=>import("./CVO1_9PV.js"),[],import.meta.url),Fn(()=>import("./D0r3Knsf.js"),[],import.meta.url)],langs:[Fn(()=>import("./BMMyXqK5.js"),[],import.meta.url),Fn(()=>import("./Cp-IABpG.js"),[],import.meta.url)],engine:vx()}),ua.value}function Ox(e,t){return Se(()=>{const n=Jh.value?.colorMode||"light";return ua.value.codeToHtml(Zn(e)||"",{lang:t,theme:n==="dark"?"vitesse-dark":"vitesse-light"})||""})}const Mx=["innerHTML"],Dx=ht({__name:"OCodeBlock",props:{code:{},lang:{},lines:{type:Boolean,default:!1},transformRendered:{}},setup(e){const t=e,n=Se(()=>{const r=Ox(t.code,t.lang);return t.transformRendered?t.transformRendered(r.value||""):r.value});return(r,s)=>(K(),le("pre",{class:Ae(["n-code-block w-full",r.lines?"n-code-block-lines":""]),innerHTML:n.value},null,10,Mx))}}),Bx=Object.assign(Dx,{__name:"OCodeBlock"}),Hx={flex:"~ gap-3","items-center":""},Fx={__name:"NIconTitle",props:{icon:{type:String,required:!1},text:{type:String,required:!1}},setup(e){return(t,n)=>(K(),le("div",Hx,[e.icon?(K(),le("div",{key:0,class:Ae(e.icon)},null,2)):wt("",!0),He(t.$slots,"default",{},()=>[j("div",null,Jt(e.text),1)])]))}},jx=["open"],Ux={"text-base":""},Gx={key:0,"text-sm":"",op50:""},Wx=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=$x(e,"open");function r(s){n.value=s.target.open}return(s,o)=>{const i=Ka,a=Fx;return K(),le(Ee,null,[j("details",{open:ne(n),onToggle:r},[j("summary",{class:Ae(["cursor-pointer select-none n-bg-active hover:bg-active px-2 py-2 rounded transition-all",s.collapse?"":"pointer-events-none"])},[W(a,{icon:s.icon,text:s.text,"text-xl":"",transition:"",class:Ae([ne(n)?"op100":"op60",s.headerClass])},{default:ie(()=>[j("div",null,[j("div",Ux,[He(s.$slots,"text",{},()=>[be(Jt(s.text),1)],!0)]),s.description||s.$slots.description?(K(),le("div",Gx,[He(s.$slots,"description",{},()=>[be(Jt(s.description),1)],!0)])):wt("",!0)]),o[0]||(o[0]=j("div",{class:"flex-auto"},null,-1)),He(s.$slots,"actions",{},void 0,!0),s.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 s.padding=="string"?s.padding:s.padding?"px4":""])},[He(s.$slots,"details",{},void 0,!0),j("div",{class:Ae([s.containerClass,"mt1"])},[He(s.$slots,"default",{},void 0,!0)],2),He(s.$slots,"footer",{},void 0,!0)],2)],40,jx),o[1]||(o[1]=j("div",{class:"x-divider"},null,-1))],64)}}}),zx=Object.assign(Ro(Wx,[["__scopeId","data-v-0d7b3b46"]]),{__name:"OSectionBlock"}),Vx=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()=>nr(e.to?Ga:"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:()=>[He(n,"icon",{},()=>e.icon?[nr(Ka,{icon:e.icon,class:n.default?"n-button-icon":""})]:[]),He(n,"default")]})}});function qx(){return sb(()=>Zh.value("/__schema-org__/debug.json"),{watch:[Rx]},"$sUVPCiQAhH")}const Kx={class:"relative n-bg-base flex flex-col"},Xx={class:"sticky top-0 z-2 px-4 pt-4"},Jx={class:"flex justify-between items-start",mb2:""},Zx={class:"flex space-x-5"},Yx={"text-xl":"",flex:"","items-center":"","gap-2":""},Qx={class:"flex items-center space-x-3 text-xl"},eS={class:"n-select-tabs flex flex-inline flex-wrap items-center border n-border-base rounded-lg n-bg-base"},tS={class:"px-5 py-2"},nS={"text-lg":"",flex:"","items-center":""},rS={class:"px-5 py-2"},sS={"text-lg":"",flex:"","items-center":""},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=["value","title"],uS={class:"items-center space-x-3 hidden lg:flex"},fS={class:"opacity-80 text-sm"},dS={class:"opacity-80 text-sm"},hS={href:"https://nuxtseo.com",target:"_blank",class:"flex items-end gap-1.5 font-semibold text-xl dark:text-white font-title"},pS={class:"flex-row flex p4 h-full",style:{"min-height":"calc(100vh - 64px)"}},gS={class:"mx-auto flex flex-col w-full bg-white dark:bg-black dark:bg-dark-700 bg-light-200"},mS={key:1},yS={key:0},_S={class:"flex flex-col items-center justify-center mx-auto max-w-135 h-85vh"},bS={class:""},wS={class:"text-2xl font-semibold mb-3"},vS={class:"px-3 py-2 space-y-5 rounded mb-3 border"},CS={class:"px-3 py-2 space-y-5"},xS={key:2,class:"space-y-5"},SS={class:"space-x-3"},kS={key:3,class:"space-y-5"},ES={class:"opacity-80 text-base mb-1"},AS={key:4,class:"h-full max-h-full overflow-hidden"},TS=`useSchemaOrg([
171
+ defineWebPage({ title: 'Hello World' })
172
+ ])`,$S=ht({__name:"app",async setup(e){let t,n;O_({title:"Nuxt Schema.org Playground"}),[t,n]=dg(()=>Lx()),await t,n();const{data:r}=qx(),s=ye("nodes"),o=Se(()=>{if(qt.value)try{return JSON.parse(qt.value)["@graph"]}catch{}return!1});function i(){navigator.clipboard.writeText(qt.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/",""),h=Object.entries(a).find(([d,p])=>p.includes(f))?.[0];return{type:f,schemaOrg:`https://schema.org/${f}`,googlePage:h?`https://developers.google.com/search/docs/appearance/structured-data/${h}`:null}}return(c,f)=>{const h=Ka,d=Ow,p=nn("VTooltip"),g=Dw,w=jw,_=Vw,v=Bx,m=Ga,b=zx,C=Vx;return K(),le("div",Kx,[j("header",Xx,[j("div",Jx,[j("div",Zx,[j("h1",Yx,[W(h,{icon:"carbon:image-search",class:"text-blue-300"}),f[2]||(f[2]=be(" Schema.org ",-1)),W(d,{class:"text-sm"},{default:ie(()=>[be(Jt(ne(r)?.runtimeConfig.version),1)]),_:1})])]),j("div",Qx,[j("fieldset",eS,[(K(),le(Ee,null,zo(["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===ne(s)?"n-bg-active":""]])},[k==="nodes"?(K(),le("div",{key:0,class:Ae([k===ne(s)?"":"op35"])},[W(p,null,{popper:ie(()=>[...f[3]||(f[3]=[be(" Nodes ",-1)])]),default:ie(()=>[j("div",tS,[j("h2",nS,[W(h,{icon:"carbon:connect-source opacity-50"})])])]),_:1})],2)):wt("",!0),k==="raw"?(K(),le("div",{key:1,class:Ae([k===ne(s)?"":"op35"])},[W(p,null,{popper:ie(()=>[...f[4]||(f[4]=[be(" Raw ",-1)])]),default:ie(()=>[j("div",rS,[j("h2",sS,[W(h,{icon:"carbon:code opacity-50"})])])]),_:1})],2)):k==="debug"?(K(),le("div",{key:2,class:Ae([k===ne(s)?"":"op35"])},[W(p,null,{popper:ie(()=>[...f[5]||(f[5]=[be(" Debug ",-1)])]),default:ie(()=>[j("div",oS,[j("h2",iS,[W(h,{icon:"carbon:debug opacity-50"})])])]),_:1})],2)):k==="docs"?(K(),le("div",{key:3,class:Ae([k===ne(s)?"":"op35"])},[W(p,null,{popper:ie(()=>[...f[6]||(f[6]=[be(" Documentation ",-1)])]),default:ie(()=>[j("div",aS,[j("h2",lS,[W(h,{icon:"carbon:book opacity-50"})])])]),_:1})],2)):wt("",!0),Xp(j("input",{"onUpdate:modelValue":f[0]||(f[0]=O=>Ce(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,cS),[[Sm,ne(s)]])],2)),64))]),W(p,null,{popper:ie(()=>[...f[7]||(f[7]=[be(" Refresh ",-1)])]),default:ie(()=>[j("button",{"text-lg":"",type:"button",class:"n-icon-button n-button n-transition n-disabled:n-disabled",onClick:f[1]||(f[1]=(...k)=>ne(ao)&&ne(ao)(...k))},[W(h,{icon:"carbon:reset",class:"group-hover:text-green-500"})])]),_:1})]),j("div",uS,[j("div",fS,[W(g,{href:"https://github.com/sponsors/harlan-zw",target:"_blank"},{default:ie(()=>[W(h,{icon:"carbon:favorite",class:"mr-[2px]"}),f[8]||(f[8]=be(" Sponsor ",-1))]),_:1})]),j("div",dS,[W(g,{href:"https://github.com/harlan-zw/nuxt-schema-org",target:"_blank"},{default:ie(()=>[W(h,{icon:"logos:github-icon",class:"mr-[2px]"}),f[9]||(f[9]=be(" Submit an issue ",-1))]),_:1})]),j("a",hS,[W(w)])])])]),j("div",pS,[j("main",gS,[!ne(qt)||ne(qt)==="loading"?(K(),Re(_,{key:0})):ne(s)==="nodes"?(K(),le("div",mS,[ne(o)?.length?(K(!0),le(Ee,{key:1},zo(ne(o),(k,P)=>(K(),Re(b,{key:P},{text:ie(()=>[(K(!0),le(Ee,null,zo(l(k["@type"]).map(u),O=>(K(),le("h3",{key:O.type,class:"opacity-80 text-base space-x-2"},[j("span",null,Jt(O.type),1),W(m,{to:O.schemaOrg,target:"_blank",class:"dark:text-blue-300 hover:underline"},{default:ie(()=>[f[15]||(f[15]=be(" Schema.org ",-1)),W(h,{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:ie(()=>[f[16]||(f[16]=be(" Rich Results ",-1)),W(h,{icon:"carbon:launch",class:"text-xs ml-[2px] opacity-50"})]),_:1},8,["to"])):wt("",!0)]))),128))]),description:ie(()=>[j("div",null,Jt(k["@id"]),1)]),default:ie(()=>[j("div",CS,[W(v,{code:JSON.stringify(k,null,2),lang:"json"},null,8,["code"])])]),_:2},1024))),128)):(K(),le("div",yS,[j("div",_S,[j("div",bS,[j("h2",wS,[W(h,{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",vS,[W(v,{code:TS,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))])])]))])):ne(s)==="raw"?(K(),le("div",xS,[j("div",SS,[W(g,{to:"https://validator.schema.org/",target:"_blank"},{default:ie(()=>[W(h,{icon:"carbon:launch",class:"text-xs mr-1 opacity-50"}),f[17]||(f[17]=be("Structured Data Test ",-1))]),_:1}),W(g,{to:"https://search.google.com/test/rich-results",target:"_blank"},{default:ie(()=>[W(h,{icon:"carbon:launch",class:"text-xs mr-1 opacity-50"}),f[18]||(f[18]=be("Rich Results Test ",-1))]),_:1}),W(C,{onClick:i},{default:ie(()=>[...f[19]||(f[19]=[be(" Copy ",-1)])]),_:1})]),W(v,{code:ne(qt),lang:"json"},null,8,["code"])])):ne(s)==="debug"?(K(),le("div",kS,[W(b,null,{text:ie(()=>[j("h3",ES,[W(h,{icon:"carbon:settings",class:"mr-1"}),f[20]||(f[20]=be(" Runtime Config ",-1))])]),default:ie(()=>[W(v,{code:JSON.stringify(ne(r)?.runtimeConfig||{},null,2),lang:"json"},null,8,["code"])]),_:1})])):ne(s)==="docs"?(K(),le("div",AS,[...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)])])])}}}),RS={__name:"nuxt-error-page",props:{error:Object},setup(e){const n=e.error;n.stack&&n.stack.split(`
173
+ `).splice(1).map(f=>({text:f.replace("webpack:/","").replace(".vue",".js").trim(),internal:f.includes("node_modules")&&!f.includes(".cache")||f.includes("internal")||f.includes("new Promise")})).map(f=>`<span class="stack${f.internal?" internal":""}">${f.text}</span>`).join(`
174
+ `);const r=Number(n.statusCode||500),s=r===404,o=n.statusMessage??(s?"Page Not Found":"Internal Server Error"),i=n.message||n.toString(),a=void 0,c=s?Cl(()=>Fn(()=>import("./B3Z8rEby.js"),__vite__mapDeps([0,1]),import.meta.url)):Cl(()=>Fn(()=>import("./3mPCgC9T.js"),__vite__mapDeps([2,3]),import.meta.url));return(f,h)=>(K(),Re(ne(c),Tu(La({statusCode:ne(r),statusMessage:ne(o),description:ne(i),stack:ne(a)})),null,16))}},PS={key:0},vu={__name:"nuxt-root",setup(e){const t=()=>null,n=we(),r=n.deferHydration();if(n.isHydrating){const u=n.hooks.hookOnce("app:error",r);kt().beforeEach(u)}const s=!1;hf(ad,ld()),n.hooks.callHookWith(u=>u.map(c=>c()),"vue:setup");const o=Ha(),i=!1,a=/bot\b|chrome-lighthouse|facebookexternalhit|google\b/i;sf((u,c,f)=>{if(n.hooks.callHook("vue:error",u,c,f).catch(h=>console.error("[nuxt] Error in `vue:error` hook",h)),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(t_(u)&&(u.fatal||u.unhandled))return n.runWithContext(()=>Qy(u)),!1});const l=!1;return(u,c)=>(K(),Re(jg,{onResolve:ne(r)},{default:ie(()=>[ne(i)?(K(),le("div",PS)):ne(o)?(K(),Re(ne(RS),{key:1,error:ne(o)},null,8,["error"])):ne(l)?(K(),Re(ne(t),{key:2,context:ne(l)},null,8,["context"])):ne(s)?(K(),Re(ug(ne(s)),{key:3})):(K(),Re(ne($S),{key:4}))]),_:1},8,["onResolve"]))}};let Cu;{let e;Cu=async function(){if(e)return e;const n=!!(window.__NUXT__?.serverRendered??document.getElementById("__NUXT_DATA__")?.dataset.ssr==="true"),r=n?Rm(vu):Hf(vu),s=Hy({vueApp:r});async function o(i){await s.callHook("app:error",i),s.payload.error||=Co(i)}r.config.errorHandler=o,s.hook("app:suspense:resolve",()=>{r.config.errorHandler===o&&(r.config.errorHandler=void 0)}),!n&&Jl.id&&s.hook("app:suspense:resolve",()=>{document.getElementById(Jl.id)?.remove()});try{await Uy(s,Pw)}catch(i){o(i)}try{await s.hooks.callHook("app:created",r),await s.hooks.callHook("app:beforeMount",r),r.mount(My),await s.hooks.callHook("app:mounted",r),await Xr()}catch(i){o(i)}return r},e=Cu().catch(t=>{throw console.error("Error while mounting app:",t),t})}export{Ro as _,j as a,W as b,le as c,be as d,Ga as e,K as o,Jt as t,O_ as u,ie as w};