@mintlify/cli 4.1.61 → 4.1.62
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.
|
@@ -4,32 +4,32 @@ import { dirname as __mintDirname } from 'node:path';
|
|
|
4
4
|
const require = __mintCreateRequire(import.meta.url);
|
|
5
5
|
const __filename = __mintFileURLToPath(import.meta.url);
|
|
6
6
|
const __dirname = __mintDirname(__filename);
|
|
7
|
-
import{$ as e,At as t,Ct as n,J as r,K as i,Mt as a,Nt as o,Q as s,T as c,X as l,Y as u,Z as d,_t as f,at as p,ft as m,i as h,k as g,lt as _,mt as v,n as y,nt as b,pt as x,q as S,r as ee,st as te,t as ne,tt as re,ut as ie,v as ae,wt as oe}from"./schemas-BBCiuhV1.js";function se(){return[v(),x(),m(),ie(),_()]}var ce=t();function le(e,t){let n=e.position?.start.offset,r=e.position?.end.offset;return typeof n==`number`&&typeof r==`number`?t.slice(n,r):``}function ue(e,t){if(!t)return;let n=e.at(-1);n?.type===`text`?n.value+=t:e.push({type:`text`,value:t})}const de=/^([a-z][a-z\d+.-]*):/i,fe=/* @__PURE__ */ new Set([`http`,`https`,`mailto`,`tel`]);function pe(e){let t=de.exec(e.replace(/[\u0000- ]/g,``))?.[1];return!t||fe.has(t.toLowerCase())}function me(e,t){let n=le(e,t),r=e.url.trim();return n.startsWith(`[`)&&r.length>0&&pe(r)&&(/^(?:https?:\/\/|mailto:|tel:|\/|#|\.\.?\/)/i.test(r)||r.includes(`/`)||/^[^\s@]+\.[^\s]+$/u.test(r))}function he(e,t){let n=[];for(let r of e)switch(r.type){case`text`:ue(n,r.value.replace(/\n/g,` `));break;case`inlineCode`:n.push({type:`inlineCode`,value:r.value});break;case`strong`:case`emphasis`:case`delete`:n.push(Object.assign(Object.assign({},r),{children:he(r.children,t)}));break;case`link`:me(r,t)?n.push(Object.assign(Object.assign({},r),{children:he(r.children,t)})):ue(n,le(r,t));break;default:ue(n,le(r,t))}return n}const ge=/[\\&*_`[\]!<>~@\0\t\n\r]|:\/\/|www\.|\s$/i;function _e(e){if(!e)return[];if(!ge.test(e))return[{type:`text`,value:e}];try{let t=`title: `,n=`${t}${e.replace(/\n/g,` `)}`,r=f(n,{extensions:[te()],mdastExtensions:[se()]}),i=r.children.length===1?r.children[0]:void 0;if(i?.type!==`paragraph`)return[{type:`text`,value:e}];let a=he(i.children,n),o=a[0];return o?.type!==`text`||!o.value.startsWith(t)?[{type:`text`,value:e}]:(o.value=o.value.slice(7),o.value||a.shift(),a)}catch{return[{type:`text`,value:e}]}}function ve(e){return g({type:`paragraph`,children:_e(e)})}function ye(e){this.content=e}ye.prototype={constructor:ye,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return t==-1?void 0:this.content[t+1]},update:function(e,t,n){var r=n&&n!=e?this.remove(n):this,i=r.find(e),a=r.content.slice();return i==-1?a.push(n||e,t):(a[i+1]=t,n&&(a[i]=n)),new ye(a)},remove:function(e){var t=this.find(e);if(t==-1)return this;var n=this.content.slice();return n.splice(t,2),new ye(n)},addToStart:function(e,t){return new ye([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new ye(n)},addBefore:function(e,t,n){var r=this.remove(t),i=r.content.slice(),a=r.find(e);return i.splice(a==-1?i.length:a,0,t,n),new ye(i)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return e=ye.from(e),e.size?new ye(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=ye.from(e),e.size?new ye(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=ye.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach(function(t,n){e[t]=n}),e},get size(){return this.content.length>>1}},ye.from=function(e){if(e instanceof ye)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new ye(t)};function be(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let i=e.child(r),a=t.child(r);if(i==a)n+=i.nodeSize;else{if(!i.sameMarkup(a))return n;if(i.isText&&i.text!=a.text){for(let e=0;i.text[e]==a.text[e];e++)n++;return n}if(i.content.size||a.content.size){let e=be(i.content,a.content,n+1);if(e!=null)return e}n+=i.nodeSize}}}function xe(e,t,n,r){for(let i=e.childCount,a=t.childCount;;){if(i==0||a==0)return i==a?null:{a:n,b:r};let o=e.child(--i),s=t.child(--a),c=o.nodeSize;if(o==s)n-=c,r-=c;else{if(!o.sameMarkup(s))return{a:n,b:r};if(o.isText&&o.text!=s.text){let e=0,t=Math.min(o.text.length,s.text.length);for(;e<t&&o.text[o.text.length-e-1]==s.text[s.text.length-e-1];)e++,n--,r--;return{a:n,b:r}}if(o.content.size||s.content.size){let e=xe(o.content,s.content,n-1,r-1);if(e)return e}n-=c,r-=c}}}var Se=class e{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let t=0;t<e.length;t++)this.size+=e[t].nodeSize}nodesBetween(e,t,n,r=0,i){for(let a=0,o=0;o<t;a++){let s=this.content[a],c=o+s.nodeSize;if(c>e&&n(s,r+o,i||null,a)!==!1&&s.content.size){let i=o+1;s.nodesBetween(Math.max(0,e-i),Math.min(s.content.size,t-i),n,r+i)}o=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let i=``,a=!0;return this.nodesBetween(e,t,(o,s)=>{let c=o.isText?o.text.slice(Math.max(e,s)-s,t-s):o.isLeaf?r?typeof r==`function`?r(o):r:o.type.spec.leafText?o.type.spec.leafText(o):``:``;o.isBlock&&(o.isLeaf&&c||o.isTextblock)&&n&&(a?a=!1:i+=n),i+=c},0),i}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,r=t.firstChild,i=this.content.slice(),a=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),a=1);a<t.content.length;a++)i.push(t.content[a]);return new e(i,this.size+t.size)}cut(t,n=this.size){if(t==0&&n==this.size)return this;let r=[],i=0;if(n>t)for(let e=0,a=0;a<n;e++){let o=this.content[e],s=a+o.nodeSize;s>t&&((a<t||s>n)&&(o=o.isText?o.cut(Math.max(0,t-a),Math.min(o.text.length,n-a)):o.cut(Math.max(0,t-a-1),Math.min(o.content.size,n-a-1))),r.push(o),i+=o.nodeSize),a=s}return new e(r,i)}cutByIndex(t,n){return t==n?e.empty:t==0&&n==this.content.length?this:new e(this.content.slice(t,n))}replaceChild(t,n){let r=this.content[t];if(r==n)return this;let i=this.content.slice(),a=this.size+n.nodeSize-r.nodeSize;return i[t]=n,new e(i,a)}addToStart(t){return new e([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new e(this.content.concat(t),this.size+t.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw RangeError(`Index `+e+` out of range for `+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,n=0;t<this.content.length;t++){let r=this.content[t];e(r,n,t),n+=r.nodeSize}}findDiffStart(e,t=0){return be(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return xe(this,e,t,n)}findIndex(e){if(e==0)return we(0,e);if(e==this.size)return we(this.content.length,e);if(e>this.size||e<0)throw RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,n=0;;t++){let r=this.child(t),i=n+r.nodeSize;if(i>=e)return i==e?we(t+1,i):we(t,n);n=i}}toString(){return`<`+this.toStringInner()+`>`}toStringInner(){return this.content.join(`, `)}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(t,n){if(!n)return e.empty;if(!Array.isArray(n))throw RangeError(`Invalid input for Fragment.fromJSON`);return new e(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return e.empty;let n,r=0;for(let e=0;e<t.length;e++){let i=t[e];r+=i.nodeSize,e&&i.isText&&t[e-1].sameMarkup(i)?(n||=t.slice(0,e),n[n.length-1]=i.withText(n[n.length-1].text+i.text)):n&&n.push(i)}return new e(n||t,r)}static from(t){if(!t)return e.empty;if(t instanceof e)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new e([t],t.nodeSize);throw RangeError(`Can not convert `+t+` to a Fragment`+(t.nodesBetween?` (looks like multiple versions of prosemirror-model were loaded)`:``))}};Se.empty=new Se([],0);const Ce={index:0,offset:0};function we(e,t){return Ce.index=e,Ce.offset=t,Ce}function Te(e,t){if(e===t)return!0;if(!(e&&typeof e==`object`)||!(t&&typeof t==`object`))return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!Te(e[n],t[n]))return!1}else{for(let n in e)if(!(n in t)||!Te(e[n],t[n]))return!1;for(let n in t)if(!(n in e))return!1}return!0}var Ee=class e{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(this.eq(i))return e;if(this.type.excludes(i.type))t||=e.slice(0,r);else if(i.type.excludes(this.type))return e;else!n&&i.type.rank>this.type.rank&&(t||=e.slice(0,r),t.push(this),n=!0),t&&t.push(i)}return t||=e.slice(),n||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&Te(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Mark.fromJSON`);let n=e.marks[t.type];if(!n)throw RangeError(`There is no mark type ${t.type} in this schema`);let r=n.create(t.attrs);return n.checkAttrs(r.attrs),r}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0}static setFrom(t){if(!t||Array.isArray(t)&&t.length==0)return e.none;if(t instanceof e)return[t];let n=t.slice();return n.sort((e,t)=>e.type.rank-t.type.rank),n}};Ee.none=[];var De=class extends Error{},Oe=class e{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let r=Ae(this.content,t+this.openStart,n);return r&&new e(r,this.openStart,this.openEnd)}removeBetween(t,n){return new e(ke(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+`(`+this.openStart+`,`+this.openEnd+`)`}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(t,n){if(!n)return e.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!=`number`||typeof i!=`number`)throw RangeError(`Invalid input for Slice.fromJSON`);return new e(Se.fromJSON(t,n.content),r,i)}static maxOpen(t,n=!0){let r=0,i=0;for(let e=t.firstChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.firstChild)r++;for(let e=t.lastChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.lastChild)i++;return new e(t,r,i)}};Oe.empty=new Oe(Se.empty,0,0);function ke(e,t,n){let{index:r,offset:i}=e.findIndex(t),a=e.maybeChild(r),{index:o,offset:s}=e.findIndex(n);if(i==t||a.isText){if(s!=n&&!e.child(o).isText)throw RangeError(`Removing non-flat range`);return e.cut(0,t).append(e.cut(n))}if(r!=o)throw RangeError(`Removing non-flat range`);return e.replaceChild(r,a.copy(ke(a.content,t-i-1,n-i-1)))}function Ae(e,t,n,r){let{index:i,offset:a}=e.findIndex(t),o=e.maybeChild(i);if(a==t||o.isText)return r&&!r.canReplace(i,i,n)?null:e.cut(0,t).append(n).append(e.cut(t));let s=Ae(o.content,t-a-1,n,o);return s&&e.replaceChild(i,o.copy(s))}function je(e,t,n){if(n.openStart>e.depth)throw new De(`Inserted content deeper than insertion position`);if(e.depth-n.openStart!=t.depth-n.openEnd)throw new De(`Inconsistent open depths`);return Me(e,t,n,0)}function Me(e,t,n,r){let i=e.index(r),a=e.node(r);if(i==t.index(r)&&r<e.depth-n.openStart){let o=Me(e,t,n,r+1);return a.copy(a.content.replaceChild(i,o))}if(!n.content.size)return Ie(a,Re(e,t,r));if(!n.openStart&&!n.openEnd&&e.depth==r&&t.depth==r){let r=e.parent,i=r.content;return Ie(r,i.cut(0,e.parentOffset).append(n.content).append(i.cut(t.parentOffset)))}{let{start:i,end:o}=ze(n,e);return Ie(a,Le(e,i,o,t,r))}}function Ne(e,t){if(!t.type.compatibleContent(e.type))throw new De(`Cannot join `+t.type.name+` onto `+e.type.name)}function Pe(e,t,n){let r=e.node(n);return Ne(r,t.node(n)),r}function Fe(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function C(e,t,n,r){let i=(t||e).node(n),a=0,o=t?t.index(n):i.childCount;e&&(a=e.index(n),e.depth>n?a++:e.textOffset&&(Fe(e.nodeAfter,r),a++));for(let e=a;e<o;e++)Fe(i.child(e),r);t&&t.depth==n&&t.textOffset&&Fe(t.nodeBefore,r)}function Ie(e,t){return e.type.checkContent(t),e.copy(t)}function Le(e,t,n,r,i){let a=e.depth>i&&Pe(e,t,i+1),o=r.depth>i&&Pe(n,r,i+1),s=[];return C(null,e,i,s),a&&o&&t.index(i)==n.index(i)?(Ne(a,o),Fe(Ie(a,Le(e,t,n,r,i+1)),s)):(a&&Fe(Ie(a,Re(e,t,i+1)),s),C(t,n,i,s),o&&Fe(Ie(o,Re(n,r,i+1)),s)),C(r,null,i,s),new Se(s)}function Re(e,t,n){let r=[];return C(null,e,n,r),e.depth>n&&Fe(Ie(Pe(e,t,n+1),Re(e,t,n+1)),r),C(t,null,n,r),new Se(r)}function ze(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let e=n-1;e>=0;e--)r=t.node(e).copy(Se.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}var w=class e{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position before the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position after the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[t*3],r=t==0?0:this.path[t*3-1]+1;for(let t=0;t<e;t++)r+=n.child(t).nodeSize;return r}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return Ee.none;if(this.textOffset)return e.child(t).marks;let n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){let e=n;n=r,r=e}let i=n.marks;for(var a=0;a<i.length;a++)i[a].type.spec.inclusive===!1&&(!r||!i[a].isInSet(r.marks))&&(i=i[a--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let n=t.marks,r=e.parent.maybeChild(e.index());for(var i=0;i<n.length;i++)n[i].type.spec.inclusive===!1&&(!r||!n[i].isInSet(r.marks))&&(n=n[i--].removeFromSet(n));return n}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new Ue(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e=``;for(let t=1;t<=this.depth;t++)e+=(e?`/`:``)+this.node(t).type.name+`_`+this.index(t-1);return e+`:`+this.parentOffset}static resolve(t,n){if(!(n>=0&&n<=t.content.size))throw RangeError(`Position `+n+` out of range`);let r=[],i=0,a=n;for(let e=t;;){let{index:t,offset:n}=e.content.findIndex(a),o=a-n;if(r.push(e,t,i+n),!o||(e=e.child(t),e.isText))break;a=o-1,i+=n+1}return new e(n,r,a)}static resolveCached(t,n){let r=He.get(t);if(r)for(let e=0;e<r.elts.length;e++){let t=r.elts[e];if(t.pos==n)return t}else He.set(t,r=new Be);let i=r.elts[r.i]=e.resolve(t,n);return r.i=(r.i+1)%Ve,i}},Be=class{constructor(){this.elts=[],this.i=0}};const Ve=12,He=/* @__PURE__ */ new WeakMap;var Ue=class{constructor(e,t,n){this.$from=e,this.$to=t,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}};const We=Object.create(null);var Ge=class e{constructor(e,t,n,r=Ee.none){this.type=e,this.attrs=t,this.marks=r,this.content=n||Se.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,n,r=0){this.content.nodesBetween(e,t,n,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,``)}textBetween(e,t,n,r){return this.content.textBetween(e,t,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,n){return this.type==e&&Te(this.attrs,t||e.defaultAttrs||We)&&Ee.sameSet(this.marks,n||Ee.none)}copy(t=null){return t==this.content?this:new e(this.type,this.attrs,t,this.marks)}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.content,t)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,n=!1){if(e==t)return Oe.empty;let r=this.resolve(e),i=this.resolve(t),a=n?0:r.sharedDepth(t),o=r.start(a);return new Oe(r.node(a).content.cut(r.pos-o,i.pos-o),r.depth-a,i.depth-a)}replace(e,t,n){return je(this.resolve(e),this.resolve(t),n)}nodeAt(e){for(let t=this;;){let{index:n,offset:r}=t.content.findIndex(e);if(t=t.maybeChild(n),!t)return null;if(r==e||t.isText)return t;e-=r+1}}childAfter(e){let{index:t,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:n}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(t),index:t,offset:n};let r=this.content.child(t-1);return{node:r,index:t-1,offset:n-r.nodeSize}}resolve(e){return w.resolveCached(this,e)}resolveNoCache(e){return w.resolve(this,e)}rangeHasMark(e,t,n){let r=!1;return t>e&&this.nodesBetween(e,t,e=>(n.isInSet(e.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+=`(`+this.content.toStringInner()+`)`),qe(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw Error(`Called contentMatchAt on a node with invalid content`);return t}canReplace(e,t,n=Se.empty,r=0,i=n.childCount){let a=this.contentMatchAt(e).matchFragment(n,r,i),o=a&&a.matchFragment(this.content,t);if(!o||!o.validEnd)return!1;for(let e=r;e<i;e++)if(!this.type.allowsMarks(n.child(e).marks))return!1;return!0}canReplaceWith(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(e).matchType(n),a=i&&i.matchFragment(this.content,t);return a?a.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=Ee.none;for(let t=0;t<this.marks.length;t++){let n=this.marks[t];n.type.checkAttrs(n.attrs),e=n.addToSet(e)}if(!Ee.sameSet(e,this.marks))throw RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Node.fromJSON`);let n;if(t.marks){if(!Array.isArray(t.marks))throw RangeError(`Invalid mark data for Node.fromJSON`);n=t.marks.map(e.markFromJSON)}if(t.type==`text`){if(typeof t.text!=`string`)throw RangeError(`Invalid text node in JSON`);return e.text(t.text,n)}let r=Se.fromJSON(e,t.content),i=e.nodeType(t.type).create(t.attrs,r,n);return i.type.checkAttrs(i.attrs),i}};Ge.prototype.text=void 0;var Ke=class e extends Ge{constructor(e,t,n,r){if(super(e,t,null,r),!n)throw RangeError(`Empty text nodes are not allowed`);this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):qe(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new e(this.type,this.attrs,t,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}};function qe(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+`(`+t+`)`;return t}var Je=class e{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new Ye(t,n);if(r.next==null)return e.empty;let i=T(r);r.next&&r.err(`Unexpected trailing text`);let a=it(tt(i));return at(a,r),a}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,n=e.childCount){let r=this;for(let i=t;r&&i<n;i++)r=r.matchType(e.child(i).type);return r}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let n=0;n<e.next.length;n++)if(this.next[t].type==e.next[n].type)return!0;return!1}fillBefore(e,t=!1,n=0){let r=[this];function i(a,o){let s=a.matchFragment(e,n);if(s&&(!t||s.validEnd))return Se.from(o.map(e=>e.createAndFill()));for(let e=0;e<a.next.length;e++){let{type:t,next:n}=a.next[e];if(!(t.isText||t.hasRequiredAttrs())&&r.indexOf(n)==-1){r.push(n);let e=i(n,o.concat(t));if(e)return e}}return null}return i(this,[])}findWrapping(e){for(let t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(e)){let e=[];for(let t=r;t.type;t=t.via)e.push(t.type);return e.reverse()}for(let e=0;e<i.next.length;e++){let{type:a,next:o}=i.next[e];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in t)&&(!r.type||o.validEnd)&&(n.push({match:a.contentMatch,type:a,via:r}),t[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(n){e.push(n);for(let r=0;r<n.next.length;r++)e.indexOf(n.next[r].next)==-1&&t(n.next[r].next)}return t(this),e.map((t,n)=>{let r=n+(t.validEnd?`*`:` `)+` `;for(let n=0;n<t.next.length;n++)r+=(n?`, `:``)+t.next[n].type.name+`->`+e.indexOf(t.next[n].next);return r}).join(`
|
|
7
|
+
import{$ as e,At as t,Ct as n,J as r,K as i,Mt as a,Nt as o,Q as s,T as c,X as l,Y as u,Z as d,_t as f,at as p,ft as m,i as h,k as g,lt as _,mt as v,n as y,nt as b,pt as x,q as S,r as ee,st as te,t as ne,tt as re,ut as ie,v as ae,wt as oe}from"./schemas-Y5OV49dK.js";function se(){return[v(),x(),m(),ie(),_()]}var ce=t();function le(e,t){let n=e.position?.start.offset,r=e.position?.end.offset;return typeof n==`number`&&typeof r==`number`?t.slice(n,r):``}function ue(e,t){if(!t)return;let n=e.at(-1);n?.type===`text`?n.value+=t:e.push({type:`text`,value:t})}const de=/^([a-z][a-z\d+.-]*):/i,fe=/* @__PURE__ */ new Set([`http`,`https`,`mailto`,`tel`]);function pe(e){let t=de.exec(e.replace(/[\u0000- ]/g,``))?.[1];return!t||fe.has(t.toLowerCase())}function me(e,t){let n=le(e,t),r=e.url.trim();return n.startsWith(`[`)&&r.length>0&&pe(r)&&(/^(?:https?:\/\/|mailto:|tel:|\/|#|\.\.?\/)/i.test(r)||r.includes(`/`)||/^[^\s@]+\.[^\s]+$/u.test(r))}function he(e,t){let n=[];for(let r of e)switch(r.type){case`text`:ue(n,r.value.replace(/\n/g,` `));break;case`inlineCode`:n.push({type:`inlineCode`,value:r.value});break;case`strong`:case`emphasis`:case`delete`:n.push(Object.assign(Object.assign({},r),{children:he(r.children,t)}));break;case`link`:me(r,t)?n.push(Object.assign(Object.assign({},r),{children:he(r.children,t)})):ue(n,le(r,t));break;default:ue(n,le(r,t))}return n}const ge=/[\\&*_`[\]!<>~@\0\t\n\r]|:\/\/|www\.|\s$/i;function _e(e){if(!e)return[];if(!ge.test(e))return[{type:`text`,value:e}];try{let t=`title: `,n=`${t}${e.replace(/\n/g,` `)}`,r=f(n,{extensions:[te()],mdastExtensions:[se()]}),i=r.children.length===1?r.children[0]:void 0;if(i?.type!==`paragraph`)return[{type:`text`,value:e}];let a=he(i.children,n),o=a[0];return o?.type!==`text`||!o.value.startsWith(t)?[{type:`text`,value:e}]:(o.value=o.value.slice(7),o.value||a.shift(),a)}catch{return[{type:`text`,value:e}]}}function ve(e){return g({type:`paragraph`,children:_e(e)})}function ye(e){this.content=e}ye.prototype={constructor:ye,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return t==-1?void 0:this.content[t+1]},update:function(e,t,n){var r=n&&n!=e?this.remove(n):this,i=r.find(e),a=r.content.slice();return i==-1?a.push(n||e,t):(a[i+1]=t,n&&(a[i]=n)),new ye(a)},remove:function(e){var t=this.find(e);if(t==-1)return this;var n=this.content.slice();return n.splice(t,2),new ye(n)},addToStart:function(e,t){return new ye([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new ye(n)},addBefore:function(e,t,n){var r=this.remove(t),i=r.content.slice(),a=r.find(e);return i.splice(a==-1?i.length:a,0,t,n),new ye(i)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return e=ye.from(e),e.size?new ye(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=ye.from(e),e.size?new ye(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=ye.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach(function(t,n){e[t]=n}),e},get size(){return this.content.length>>1}},ye.from=function(e){if(e instanceof ye)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new ye(t)};function be(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let i=e.child(r),a=t.child(r);if(i==a)n+=i.nodeSize;else{if(!i.sameMarkup(a))return n;if(i.isText&&i.text!=a.text){for(let e=0;i.text[e]==a.text[e];e++)n++;return n}if(i.content.size||a.content.size){let e=be(i.content,a.content,n+1);if(e!=null)return e}n+=i.nodeSize}}}function xe(e,t,n,r){for(let i=e.childCount,a=t.childCount;;){if(i==0||a==0)return i==a?null:{a:n,b:r};let o=e.child(--i),s=t.child(--a),c=o.nodeSize;if(o==s)n-=c,r-=c;else{if(!o.sameMarkup(s))return{a:n,b:r};if(o.isText&&o.text!=s.text){let e=0,t=Math.min(o.text.length,s.text.length);for(;e<t&&o.text[o.text.length-e-1]==s.text[s.text.length-e-1];)e++,n--,r--;return{a:n,b:r}}if(o.content.size||s.content.size){let e=xe(o.content,s.content,n-1,r-1);if(e)return e}n-=c,r-=c}}}var Se=class e{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let t=0;t<e.length;t++)this.size+=e[t].nodeSize}nodesBetween(e,t,n,r=0,i){for(let a=0,o=0;o<t;a++){let s=this.content[a],c=o+s.nodeSize;if(c>e&&n(s,r+o,i||null,a)!==!1&&s.content.size){let i=o+1;s.nodesBetween(Math.max(0,e-i),Math.min(s.content.size,t-i),n,r+i)}o=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let i=``,a=!0;return this.nodesBetween(e,t,(o,s)=>{let c=o.isText?o.text.slice(Math.max(e,s)-s,t-s):o.isLeaf?r?typeof r==`function`?r(o):r:o.type.spec.leafText?o.type.spec.leafText(o):``:``;o.isBlock&&(o.isLeaf&&c||o.isTextblock)&&n&&(a?a=!1:i+=n),i+=c},0),i}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,r=t.firstChild,i=this.content.slice(),a=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),a=1);a<t.content.length;a++)i.push(t.content[a]);return new e(i,this.size+t.size)}cut(t,n=this.size){if(t==0&&n==this.size)return this;let r=[],i=0;if(n>t)for(let e=0,a=0;a<n;e++){let o=this.content[e],s=a+o.nodeSize;s>t&&((a<t||s>n)&&(o=o.isText?o.cut(Math.max(0,t-a),Math.min(o.text.length,n-a)):o.cut(Math.max(0,t-a-1),Math.min(o.content.size,n-a-1))),r.push(o),i+=o.nodeSize),a=s}return new e(r,i)}cutByIndex(t,n){return t==n?e.empty:t==0&&n==this.content.length?this:new e(this.content.slice(t,n))}replaceChild(t,n){let r=this.content[t];if(r==n)return this;let i=this.content.slice(),a=this.size+n.nodeSize-r.nodeSize;return i[t]=n,new e(i,a)}addToStart(t){return new e([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new e(this.content.concat(t),this.size+t.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw RangeError(`Index `+e+` out of range for `+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,n=0;t<this.content.length;t++){let r=this.content[t];e(r,n,t),n+=r.nodeSize}}findDiffStart(e,t=0){return be(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return xe(this,e,t,n)}findIndex(e){if(e==0)return we(0,e);if(e==this.size)return we(this.content.length,e);if(e>this.size||e<0)throw RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,n=0;;t++){let r=this.child(t),i=n+r.nodeSize;if(i>=e)return i==e?we(t+1,i):we(t,n);n=i}}toString(){return`<`+this.toStringInner()+`>`}toStringInner(){return this.content.join(`, `)}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(t,n){if(!n)return e.empty;if(!Array.isArray(n))throw RangeError(`Invalid input for Fragment.fromJSON`);return new e(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return e.empty;let n,r=0;for(let e=0;e<t.length;e++){let i=t[e];r+=i.nodeSize,e&&i.isText&&t[e-1].sameMarkup(i)?(n||=t.slice(0,e),n[n.length-1]=i.withText(n[n.length-1].text+i.text)):n&&n.push(i)}return new e(n||t,r)}static from(t){if(!t)return e.empty;if(t instanceof e)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new e([t],t.nodeSize);throw RangeError(`Can not convert `+t+` to a Fragment`+(t.nodesBetween?` (looks like multiple versions of prosemirror-model were loaded)`:``))}};Se.empty=new Se([],0);const Ce={index:0,offset:0};function we(e,t){return Ce.index=e,Ce.offset=t,Ce}function Te(e,t){if(e===t)return!0;if(!(e&&typeof e==`object`)||!(t&&typeof t==`object`))return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!Te(e[n],t[n]))return!1}else{for(let n in e)if(!(n in t)||!Te(e[n],t[n]))return!1;for(let n in t)if(!(n in e))return!1}return!0}var Ee=class e{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(this.eq(i))return e;if(this.type.excludes(i.type))t||=e.slice(0,r);else if(i.type.excludes(this.type))return e;else!n&&i.type.rank>this.type.rank&&(t||=e.slice(0,r),t.push(this),n=!0),t&&t.push(i)}return t||=e.slice(),n||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&Te(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Mark.fromJSON`);let n=e.marks[t.type];if(!n)throw RangeError(`There is no mark type ${t.type} in this schema`);let r=n.create(t.attrs);return n.checkAttrs(r.attrs),r}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0}static setFrom(t){if(!t||Array.isArray(t)&&t.length==0)return e.none;if(t instanceof e)return[t];let n=t.slice();return n.sort((e,t)=>e.type.rank-t.type.rank),n}};Ee.none=[];var De=class extends Error{},Oe=class e{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let r=Ae(this.content,t+this.openStart,n);return r&&new e(r,this.openStart,this.openEnd)}removeBetween(t,n){return new e(ke(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+`(`+this.openStart+`,`+this.openEnd+`)`}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(t,n){if(!n)return e.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!=`number`||typeof i!=`number`)throw RangeError(`Invalid input for Slice.fromJSON`);return new e(Se.fromJSON(t,n.content),r,i)}static maxOpen(t,n=!0){let r=0,i=0;for(let e=t.firstChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.firstChild)r++;for(let e=t.lastChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.lastChild)i++;return new e(t,r,i)}};Oe.empty=new Oe(Se.empty,0,0);function ke(e,t,n){let{index:r,offset:i}=e.findIndex(t),a=e.maybeChild(r),{index:o,offset:s}=e.findIndex(n);if(i==t||a.isText){if(s!=n&&!e.child(o).isText)throw RangeError(`Removing non-flat range`);return e.cut(0,t).append(e.cut(n))}if(r!=o)throw RangeError(`Removing non-flat range`);return e.replaceChild(r,a.copy(ke(a.content,t-i-1,n-i-1)))}function Ae(e,t,n,r){let{index:i,offset:a}=e.findIndex(t),o=e.maybeChild(i);if(a==t||o.isText)return r&&!r.canReplace(i,i,n)?null:e.cut(0,t).append(n).append(e.cut(t));let s=Ae(o.content,t-a-1,n,o);return s&&e.replaceChild(i,o.copy(s))}function je(e,t,n){if(n.openStart>e.depth)throw new De(`Inserted content deeper than insertion position`);if(e.depth-n.openStart!=t.depth-n.openEnd)throw new De(`Inconsistent open depths`);return Me(e,t,n,0)}function Me(e,t,n,r){let i=e.index(r),a=e.node(r);if(i==t.index(r)&&r<e.depth-n.openStart){let o=Me(e,t,n,r+1);return a.copy(a.content.replaceChild(i,o))}if(!n.content.size)return Ie(a,Re(e,t,r));if(!n.openStart&&!n.openEnd&&e.depth==r&&t.depth==r){let r=e.parent,i=r.content;return Ie(r,i.cut(0,e.parentOffset).append(n.content).append(i.cut(t.parentOffset)))}{let{start:i,end:o}=ze(n,e);return Ie(a,Le(e,i,o,t,r))}}function Ne(e,t){if(!t.type.compatibleContent(e.type))throw new De(`Cannot join `+t.type.name+` onto `+e.type.name)}function Pe(e,t,n){let r=e.node(n);return Ne(r,t.node(n)),r}function Fe(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function C(e,t,n,r){let i=(t||e).node(n),a=0,o=t?t.index(n):i.childCount;e&&(a=e.index(n),e.depth>n?a++:e.textOffset&&(Fe(e.nodeAfter,r),a++));for(let e=a;e<o;e++)Fe(i.child(e),r);t&&t.depth==n&&t.textOffset&&Fe(t.nodeBefore,r)}function Ie(e,t){return e.type.checkContent(t),e.copy(t)}function Le(e,t,n,r,i){let a=e.depth>i&&Pe(e,t,i+1),o=r.depth>i&&Pe(n,r,i+1),s=[];return C(null,e,i,s),a&&o&&t.index(i)==n.index(i)?(Ne(a,o),Fe(Ie(a,Le(e,t,n,r,i+1)),s)):(a&&Fe(Ie(a,Re(e,t,i+1)),s),C(t,n,i,s),o&&Fe(Ie(o,Re(n,r,i+1)),s)),C(r,null,i,s),new Se(s)}function Re(e,t,n){let r=[];return C(null,e,n,r),e.depth>n&&Fe(Ie(Pe(e,t,n+1),Re(e,t,n+1)),r),C(t,null,n,r),new Se(r)}function ze(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let e=n-1;e>=0;e--)r=t.node(e).copy(Se.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}var w=class e{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position before the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position after the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[t*3],r=t==0?0:this.path[t*3-1]+1;for(let t=0;t<e;t++)r+=n.child(t).nodeSize;return r}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return Ee.none;if(this.textOffset)return e.child(t).marks;let n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){let e=n;n=r,r=e}let i=n.marks;for(var a=0;a<i.length;a++)i[a].type.spec.inclusive!==!1||r&&i[a].isInSet(r.marks)||(i=i[a--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let n=t.marks,r=e.parent.maybeChild(e.index());for(var i=0;i<n.length;i++)n[i].type.spec.inclusive!==!1||r&&n[i].isInSet(r.marks)||(n=n[i--].removeFromSet(n));return n}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new Ue(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e=``;for(let t=1;t<=this.depth;t++)e+=(e?`/`:``)+this.node(t).type.name+`_`+this.index(t-1);return e+`:`+this.parentOffset}static resolve(t,n){if(!(n>=0&&n<=t.content.size))throw RangeError(`Position `+n+` out of range`);let r=[],i=0,a=n;for(let e=t;;){let{index:t,offset:n}=e.content.findIndex(a),o=a-n;if(r.push(e,t,i+n),!o||(e=e.child(t),e.isText))break;a=o-1,i+=n+1}return new e(n,r,a)}static resolveCached(t,n){let r=He.get(t);if(r)for(let e=0;e<r.elts.length;e++){let t=r.elts[e];if(t.pos==n)return t}else He.set(t,r=new Be);let i=r.elts[r.i]=e.resolve(t,n);return r.i=(r.i+1)%Ve,i}},Be=class{constructor(){this.elts=[],this.i=0}};const Ve=12,He=/* @__PURE__ */ new WeakMap;var Ue=class{constructor(e,t,n){this.$from=e,this.$to=t,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}};const We=Object.create(null);var Ge=class e{constructor(e,t,n,r=Ee.none){this.type=e,this.attrs=t,this.marks=r,this.content=n||Se.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,n,r=0){this.content.nodesBetween(e,t,n,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,``)}textBetween(e,t,n,r){return this.content.textBetween(e,t,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,n){return this.type==e&&Te(this.attrs,t||e.defaultAttrs||We)&&Ee.sameSet(this.marks,n||Ee.none)}copy(t=null){return t==this.content?this:new e(this.type,this.attrs,t,this.marks)}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.content,t)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,n=!1){if(e==t)return Oe.empty;let r=this.resolve(e),i=this.resolve(t),a=n?0:r.sharedDepth(t),o=r.start(a);return new Oe(r.node(a).content.cut(r.pos-o,i.pos-o),r.depth-a,i.depth-a)}replace(e,t,n){return je(this.resolve(e),this.resolve(t),n)}nodeAt(e){for(let t=this;;){let{index:n,offset:r}=t.content.findIndex(e);if(t=t.maybeChild(n),!t)return null;if(r==e||t.isText)return t;e-=r+1}}childAfter(e){let{index:t,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:n}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(t),index:t,offset:n};let r=this.content.child(t-1);return{node:r,index:t-1,offset:n-r.nodeSize}}resolve(e){return w.resolveCached(this,e)}resolveNoCache(e){return w.resolve(this,e)}rangeHasMark(e,t,n){let r=!1;return t>e&&this.nodesBetween(e,t,e=>(n.isInSet(e.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+=`(`+this.content.toStringInner()+`)`),qe(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw Error(`Called contentMatchAt on a node with invalid content`);return t}canReplace(e,t,n=Se.empty,r=0,i=n.childCount){let a=this.contentMatchAt(e).matchFragment(n,r,i),o=a&&a.matchFragment(this.content,t);if(!o||!o.validEnd)return!1;for(let e=r;e<i;e++)if(!this.type.allowsMarks(n.child(e).marks))return!1;return!0}canReplaceWith(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(e).matchType(n),a=i&&i.matchFragment(this.content,t);return a?a.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=Ee.none;for(let t=0;t<this.marks.length;t++){let n=this.marks[t];n.type.checkAttrs(n.attrs),e=n.addToSet(e)}if(!Ee.sameSet(e,this.marks))throw RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Node.fromJSON`);let n;if(t.marks){if(!Array.isArray(t.marks))throw RangeError(`Invalid mark data for Node.fromJSON`);n=t.marks.map(e.markFromJSON)}if(t.type==`text`){if(typeof t.text!=`string`)throw RangeError(`Invalid text node in JSON`);return e.text(t.text,n)}let r=Se.fromJSON(e,t.content),i=e.nodeType(t.type).create(t.attrs,r,n);return i.type.checkAttrs(i.attrs),i}};Ge.prototype.text=void 0;var Ke=class e extends Ge{constructor(e,t,n,r){if(super(e,t,null,r),!n)throw RangeError(`Empty text nodes are not allowed`);this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):qe(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new e(this.type,this.attrs,t,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}};function qe(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+`(`+t+`)`;return t}var Je=class e{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new Ye(t,n);if(r.next==null)return e.empty;let i=T(r);r.next&&r.err(`Unexpected trailing text`);let a=it(tt(i));return at(a,r),a}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,n=e.childCount){let r=this;for(let i=t;r&&i<n;i++)r=r.matchType(e.child(i).type);return r}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let n=0;n<e.next.length;n++)if(this.next[t].type==e.next[n].type)return!0;return!1}fillBefore(e,t=!1,n=0){let r=[this];function i(a,o){let s=a.matchFragment(e,n);if(s&&(!t||s.validEnd))return Se.from(o.map(e=>e.createAndFill()));for(let e=0;e<a.next.length;e++){let{type:t,next:n}=a.next[e];if(!(t.isText||t.hasRequiredAttrs())&&r.indexOf(n)==-1){r.push(n);let e=i(n,o.concat(t));if(e)return e}}return null}return i(this,[])}findWrapping(e){for(let t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(e)){let e=[];for(let t=r;t.type;t=t.via)e.push(t.type);return e.reverse()}for(let e=0;e<i.next.length;e++){let{type:a,next:o}=i.next[e];a.isLeaf||a.hasRequiredAttrs()||a.name in t||r.type&&!o.validEnd||(n.push({match:a.contentMatch,type:a,via:r}),t[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(n){e.push(n);for(let r=0;r<n.next.length;r++)e.indexOf(n.next[r].next)==-1&&t(n.next[r].next)}return t(this),e.map((t,n)=>{let r=n+(t.validEnd?`*`:` `)+` `;for(let n=0;n<t.next.length;n++)r+=(n?`, `:``)+t.next[n].type.name+`->`+e.indexOf(t.next[n].next);return r}).join(`
|
|
8
8
|
`)}};Je.empty=new Je(!0);var Ye=class{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==``&&this.tokens.pop(),this.tokens[0]==``&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw SyntaxError(e+` (in content expression '`+this.string+`')`)}};function T(e){let t=[];do t.push(Xe(e));while(e.eat(`|`));return t.length==1?t[0]:{type:`choice`,exprs:t}}function Xe(e){let t=[];do t.push(E(e));while(e.next&&e.next!=`)`&&e.next!=`|`);return t.length==1?t[0]:{type:`seq`,exprs:t}}function E(e){let t=et(e);for(;;)if(e.eat(`+`))t={type:`plus`,expr:t};else if(e.eat(`*`))t={type:`star`,expr:t};else if(e.eat(`?`))t={type:`opt`,expr:t};else if(e.eat(`{`))t=Qe(e,t);else break;return t}function Ze(e){/\D/.test(e.next)&&e.err(`Expected number, got '`+e.next+`'`);let t=Number(e.next);return e.pos++,t}function Qe(e,t){let n=Ze(e),r=n;return e.eat(`,`)&&(r=e.next==`}`?-1:Ze(e)),e.eat(`}`)||e.err(`Unclosed braced range`),{type:`range`,min:n,max:r,expr:t}}function $e(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let i=[];for(let e in n){let r=n[e];r.isInGroup(t)&&i.push(r)}return i.length==0&&e.err(`No node type or group '`+t+`' found`),i}function et(e){if(e.eat(`(`)){let t=T(e);return e.eat(`)`)||e.err(`Missing closing paren`),t}if(/\W/.test(e.next))e.err(`Unexpected token '`+e.next+`'`);else{let t=$e(e,e.next).map(t=>(e.inline==null?e.inline=t.isInline:e.inline!=t.isInline&&e.err(`Mixing inline and block content`),{type:`name`,value:t}));return e.pos++,t.length==1?t[0]:{type:`choice`,exprs:t}}}function tt(e){let t=[[]];return i(a(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){let i={term:r,to:n};return t[e].push(i),i}function i(e,t){e.forEach(e=>e.to=t)}function a(e,t){if(e.type==`choice`)return e.exprs.reduce((e,n)=>e.concat(a(n,t)),[]);if(e.type==`seq`)for(let r=0;;r++){let o=a(e.exprs[r],t);if(r==e.exprs.length-1)return o;i(o,t=n())}else if(e.type==`star`){let o=n();return r(t,o),i(a(e.expr,o),o),[r(o)]}else if(e.type==`plus`){let o=n();return i(a(e.expr,t),o),i(a(e.expr,o),o),[r(o)]}else if(e.type==`opt`)return[r(t)].concat(a(e.expr,t));else if(e.type==`range`){let o=t;for(let t=0;t<e.min;t++){let t=n();i(a(e.expr,o),t),o=t}if(e.max==-1)i(a(e.expr,o),o);else for(let t=e.min;t<e.max;t++){let t=n();r(o,t),i(a(e.expr,o),t),o=t}return[r(o)]}else if(e.type==`name`)return[r(t,void 0,e.value)];else throw Error(`Unknown expr type`)}}function nt(e,t){return t-e}function rt(e,t){let n=[];return r(t),n.sort(nt);function r(t){let i=e[t];if(i.length==1&&!i[0].term)return r(i[0].to);n.push(t);for(let e=0;e<i.length;e++){let{term:t,to:a}=i[e];!t&&n.indexOf(a)==-1&&r(a)}}}function it(e){let t=Object.create(null);return n(rt(e,0));function n(r){let i=[];r.forEach(t=>{e[t].forEach(({term:t,to:n})=>{if(!t)return;let r;for(let e=0;e<i.length;e++)i[e][0]==t&&(r=i[e][1]);rt(e,n).forEach(e=>{r||i.push([t,r=[]]),r.indexOf(e)==-1&&r.push(e)})})});let a=t[r.join(`,`)]=new Je(r.indexOf(e.length-1)>-1);for(let e=0;e<i.length;e++){let r=i[e][1].sort(nt);a.next.push({type:i[e][0],next:t[r.join(`,`)]||n(r)})}return a}}function at(e,t){for(let n=0,r=[e];n<r.length;n++){let e=r[n],i=!e.validEnd,a=[];for(let t=0;t<e.next.length;t++){let{type:n,next:o}=e.next[t];a.push(n.name),i&&!(n.isText||n.hasRequiredAttrs())&&(i=!1),r.indexOf(o)==-1&&r.push(o)}i&&t.err(`Only non-generatable nodes (`+a.join(`, `)+`) in a required position (see https://prosemirror.net/docs/guide/#generatable)`)}}function ot(e){let t=Object.create(null);for(let n in e){let r=e[n];if(!r.hasDefault)return null;t[n]=r.default}return t}function st(e,t){let n=Object.create(null);for(let r in e){let i=t&&t[r];if(i===void 0){let t=e[r];if(t.hasDefault)i=t.default;else throw RangeError(`No value supplied for attribute `+r)}n[r]=i}return n}function ct(e,t,n,r){for(let r in t)if(!(r in e))throw RangeError(`Unsupported attribute ${r} for ${n} of type ${r}`);for(let n in e){let r=e[n];r.validate&&r.validate(t[n])}}function lt(e,t){let n=Object.create(null);if(t)for(let r in t)n[r]=new ft(e,r,t[r]);return n}var ut=class e{constructor(e,t,n){this.name=e,this.schema=t,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(` `):[],this.attrs=lt(e,n.attrs),this.defaultAttrs=ot(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||e==`text`),this.isText=e==`text`}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==Je.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?`pre`:`normal`)}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:st(this.attrs,e)}create(e=null,t,n){if(this.isText)throw Error(`NodeType.create can't construct text nodes`);return new Ge(this,this.computeAttrs(e),Se.from(t),Ee.setFrom(n))}createChecked(e=null,t,n){return t=Se.from(t),this.checkContent(t),new Ge(this,this.computeAttrs(e),t,Ee.setFrom(n))}createAndFill(e=null,t,n){if(e=this.computeAttrs(e),t=Se.from(t),t.size){let e=this.contentMatch.fillBefore(t);if(!e)return null;t=e.append(t)}let r=this.contentMatch.matchFragment(t),i=r&&r.fillBefore(Se.empty,!0);return i?new Ge(this,e,t.append(i),Ee.setFrom(n)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let t=0;t<e.childCount;t++)if(!this.allowsMarks(e.child(t).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){ct(this.attrs,e,`node`,this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let t;for(let n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?t&&t.push(e[n]):t||=e.slice(0,n);return t?t.length?t:Ee.none:e}static compile(t,n){let r=Object.create(null);t.forEach((t,i)=>r[t]=new e(t,n,i));let i=n.spec.topNode||`doc`;if(!r[i])throw RangeError(`Schema is missing its top node type ('`+i+`')`);if(!r.text)throw RangeError(`Every schema needs a 'text' type`);for(let e in r.text.attrs)throw RangeError(`The text node type should not have attributes`);return r}};function dt(e,t,n){let r=n.split(`|`);return n=>{let i=n===null?`null`:typeof n;if(r.indexOf(i)<0)throw RangeError(`Expected value of type ${r} for attribute ${t} on type ${e}, got ${i}`)}}var ft=class{constructor(e,t,n){this.hasDefault=Object.prototype.hasOwnProperty.call(n,`default`),this.default=n.default,this.validate=typeof n.validate==`string`?dt(e,t,n.validate):n.validate}get isRequired(){return!this.hasDefault}},pt=class e{constructor(e,t,n,r){this.name=e,this.rank=t,this.schema=n,this.spec=r,this.attrs=lt(e,r.attrs),this.excluded=null;let i=ot(this.attrs);this.instance=i?new Ee(this,i):null}create(e=null){return!e&&this.instance?this.instance:new Ee(this,st(this.attrs,e))}static compile(t,n){let r=Object.create(null),i=0;return t.forEach((t,a)=>r[t]=new e(t,i++,n,a)),r}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}checkAttrs(e){ct(this.attrs,e,`mark`,this.name)}excludes(e){return this.excluded.indexOf(e)>-1}},mt=class{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let n in e)t[n]=e[n];t.nodes=ye.from(e.nodes),t.marks=ye.from(e.marks||{}),this.nodes=ut.compile(this.spec.nodes,this),this.marks=pt.compile(this.spec.marks,this);let n=Object.create(null);for(let e in this.nodes){if(e in this.marks)throw RangeError(e+` can not be both a node and a mark`);let t=this.nodes[e],r=t.spec.content||``,i=t.spec.marks;if(t.contentMatch=n[r]||(n[r]=Je.parse(r,this.nodes)),t.inlineContent=t.contentMatch.inlineContent,t.spec.linebreakReplacement){if(this.linebreakReplacement)throw RangeError(`Multiple linebreak nodes defined`);if(!t.isInline||!t.isLeaf)throw RangeError(`Linebreak replacement nodes must be inline leaf nodes`);this.linebreakReplacement=t}t.markSet=i==`_`?null:i?ht(this,i.split(` `)):i==``||!t.inlineContent?[]:null}for(let e in this.marks){let t=this.marks[e],n=t.spec.excludes;t.excluded=n==null?[t]:n==``?[]:ht(this,n.split(` `))}this.nodeFromJSON=e=>Ge.fromJSON(this,e),this.markFromJSON=e=>Ee.fromJSON(this,e),this.topNodeType=this.nodes[this.spec.topNode||`doc`],this.cached.wrappings=Object.create(null)}node(e,t=null,n,r){if(typeof e==`string`)e=this.nodeType(e);else if(!(e instanceof ut))throw RangeError(`Invalid node type: `+e);else if(e.schema!=this)throw RangeError(`Node type from different schema used (`+e.name+`)`);return e.createChecked(t,n,r)}text(e,t){let n=this.nodes.text;return new Ke(n,n.defaultAttrs,e,Ee.setFrom(t))}mark(e,t){return typeof e==`string`&&(e=this.marks[e]),e.create(t)}nodeType(e){let t=this.nodes[e];if(!t)throw RangeError(`Unknown node type: `+e);return t}};function ht(e,t){let n=[];for(let r=0;r<t.length;r++){let i=t[r],a=e.marks[i],o=a;if(a)n.push(a);else for(let t in e.marks){let r=e.marks[t];(i==`_`||r.spec.group&&r.spec.group.split(` `).indexOf(i)>-1)&&n.push(o=r)}if(!o)throw SyntaxError(`Unknown mark type: '`+t[r]+`'`)}return n}const gt={};function _t(e){let t=this,n=e||gt,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(te(n)),a.push(d()),o.push(s(n))}const vt={};function yt(e){let t=this,n=e||vt,i=t.data(),a=i.micromarkExtensions||=[],o=i.fromMarkdownExtensions||=[],s=i.toMarkdownExtensions||=[];a.push(S(n)),o.push(r()),s.push(u(n))}var bt=Object.create,xt=Object.defineProperty,St=Object.getOwnPropertyDescriptor,D=Object.getOwnPropertyNames,Ct=Object.getPrototypeOf,wt=Object.prototype.hasOwnProperty,Tt=(e,t)=>function(){return t||(0,e[D(e)[0]])((t={exports:{}}).exports,t),t.exports},Et=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of D(t))!wt.call(e,i)&&i!==n&&xt(e,i,{get:()=>t[i],enumerable:!(r=St(t,i))||r.enumerable});return e},Dt=(e,t,n)=>(n=e==null?{}:bt(Ct(e)),Et(t||!e||!e.__esModule?xt(n,`default`,{value:e,enumerable:!0}):n,e)),Ot=Tt({"../../node_modules/acorn-jsx/xhtml.js"(e,t){t.exports={quot:`"`,amp:`&`,apos:`'`,lt:`<`,gt:`>`,nbsp:`\xA0`,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:`ÿ`,OElig:`Œ`,oelig:`œ`,Scaron:`Š`,scaron:`š`,Yuml:`Ÿ`,fnof:`ƒ`,circ:`ˆ`,tilde:`˜`,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:`ϖ`,ensp:` `,emsp:` `,thinsp:` `,zwnj:``,zwj:``,lrm:``,rlm:``,ndash:`–`,mdash:`—`,lsquo:`‘`,rsquo:`’`,sbquo:`‚`,ldquo:`“`,rdquo:`”`,bdquo:`„`,dagger:`†`,Dagger:`‡`,bull:`•`,hellip:`…`,permil:`‰`,prime:`′`,Prime:`″`,lsaquo:`‹`,rsaquo:`›`,oline:`‾`,frasl:`⁄`,euro:`€`,image:`ℑ`,weierp:`℘`,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:`♦`}}}),kt=Tt({"../../node_modules/acorn/dist/acorn.js"(e,t){(function(n,r){typeof e==`object`&&t!==void 0?r(e):typeof define==`function`&&define.amd?define([`exports`],r):(n=typeof globalThis<`u`?globalThis:n||self,r(n.acorn={}))})(e,(function(e){var t=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239],n=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,3104,541,1507,4938,6,4191],r=`·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_`,i=`ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ`,a={3:`abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile`,5:`class enum extends super const export import`,6:`enum`,strict:`implements interface let package private protected public static yield`,strictBind:`eval arguments`},o=`break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this`,s={5:o,"5module":o+` export import`,6:o+` const class extends export import super`},c=/^in(stanceof)?$/,l=RegExp(`[`+i+`]`),u=RegExp(`[`+i+r+`]`);function d(e,t){for(var n=65536,r=0;r<t.length;r+=2){if(n+=t[r],n>e)return!1;if(n+=t[r+1],n>=e)return!0}return!1}function f(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&l.test(String.fromCharCode(e)):t!==!1&&d(e,n)}function p(e,r){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&u.test(String.fromCharCode(e)):r===!1?!1:d(e,n)||d(e,t)}var m=function(e,t){t===void 0&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function h(e,t){return new m(e,{beforeExpr:!0,binop:t})}var g={beforeExpr:!0},_={startsExpr:!0},v={};function y(e,t){return t===void 0&&(t={}),t.keyword=e,v[e]=new m(e,t)}var b={num:new m(`num`,_),regexp:new m(`regexp`,_),string:new m(`string`,_),name:new m(`name`,_),privateId:new m(`privateId`,_),eof:new m(`eof`),bracketL:new m(`[`,{beforeExpr:!0,startsExpr:!0}),bracketR:new m(`]`),braceL:new m(`{`,{beforeExpr:!0,startsExpr:!0}),braceR:new m(`}`),parenL:new m(`(`,{beforeExpr:!0,startsExpr:!0}),parenR:new m(`)`),comma:new m(`,`,g),semi:new m(`;`,g),colon:new m(`:`,g),dot:new m(`.`),question:new m(`?`,g),questionDot:new m(`?.`),arrow:new m(`=>`,g),template:new m(`template`),invalidTemplate:new m(`invalidTemplate`),ellipsis:new m(`...`,g),backQuote:new m("`",_),dollarBraceL:new m("${",{beforeExpr:!0,startsExpr:!0}),eq:new m(`=`,{beforeExpr:!0,isAssign:!0}),assign:new m(`_=`,{beforeExpr:!0,isAssign:!0}),incDec:new m(`++/--`,{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new m(`!/~`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:h(`||`,1),logicalAND:h(`&&`,2),bitwiseOR:h(`|`,3),bitwiseXOR:h(`^`,4),bitwiseAND:h(`&`,5),equality:h(`==/!=/===/!==`,6),relational:h(`</>/<=/>=`,7),bitShift:h(`<</>>/>>>`,8),plusMin:new m(`+/-`,{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:h(`%`,10),star:h(`*`,10),slash:h(`/`,10),starstar:new m(`**`,{beforeExpr:!0}),coalesce:h(`??`,1),_break:y(`break`),_case:y(`case`,g),_catch:y(`catch`),_continue:y(`continue`),_debugger:y(`debugger`),_default:y(`default`,g),_do:y(`do`,{isLoop:!0,beforeExpr:!0}),_else:y(`else`,g),_finally:y(`finally`),_for:y(`for`,{isLoop:!0}),_function:y(`function`,_),_if:y(`if`),_return:y(`return`,g),_switch:y(`switch`),_throw:y(`throw`,g),_try:y(`try`),_var:y(`var`),_const:y(`const`),_while:y(`while`,{isLoop:!0}),_with:y(`with`),_new:y(`new`,{beforeExpr:!0,startsExpr:!0}),_this:y(`this`,_),_super:y(`super`,_),_class:y(`class`,_),_extends:y(`extends`,g),_export:y(`export`),_import:y(`import`,_),_null:y(`null`,_),_true:y(`true`,_),_false:y(`false`,_),_in:y(`in`,{beforeExpr:!0,binop:7}),_instanceof:y(`instanceof`,{beforeExpr:!0,binop:7}),_typeof:y(`typeof`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:y(`void`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:y(`delete`,{beforeExpr:!0,prefix:!0,startsExpr:!0})},x=/\r\n?|\n|\u2028|\u2029/,S=new RegExp(x.source,`g`);function ee(e){return e===10||e===13||e===8232||e===8233}function te(e,t,n){n===void 0&&(n=e.length);for(var r=t;r<n;r++){var i=e.charCodeAt(r);if(ee(i))return r<n-1&&i===13&&e.charCodeAt(r+1)===10?r+2:r+1}return-1}var ne=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,re=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,ie=Object.prototype,ae=ie.hasOwnProperty,oe=ie.toString,se=Object.hasOwn||(function(e,t){return ae.call(e,t)}),ce=Array.isArray||(function(e){return oe.call(e)===`[object Array]`});function le(e){return RegExp(`^(?:`+e.replace(/ /g,`|`)+`)$`)}function ue(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var de=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,fe=function(e,t){this.line=e,this.column=t};fe.prototype.offset=function(e){return new fe(this.line,this.column+e)};var pe=function(e,t,n){this.start=t,this.end=n,e.sourceFile!==null&&(this.source=e.sourceFile)};function me(e,t){for(var n=1,r=0;;){var i=te(e,r,t);if(i<0)return new fe(n,t-r);++n,r=i}}var he={ecmaVersion:null,sourceType:`script`,onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},ge=!1;function _e(e){var t={};for(var n in he)t[n]=e&&se(e,n)?e[n]:he[n];if(t.ecmaVersion===`latest`?t.ecmaVersion=1e8:t.ecmaVersion==null?(!ge&&typeof console==`object`&&console.warn&&(ge=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
9
|
-
Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved??=t.ecmaVersion<5,
|
|
9
|
+
Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved??=t.ecmaVersion<5,e&&e.allowHashBang!=null||(t.allowHashBang=t.ecmaVersion>=14),ce(t.onToken)){var r=t.onToken;t.onToken=function(e){return r.push(e)}}return ce(t.onComment)&&(t.onComment=ve(t,t.onComment)),t}function ve(e,t){return function(n,r,i,a,o,s){var c={type:n?`Block`:`Line`,value:r,start:i,end:a};e.locations&&(c.loc=new pe(this,o,s)),e.ranges&&(c.range=[i,a]),t.push(c)}}var ye=1,be=2,xe=4,Se=8,Ce=16,we=32,Te=64,Ee=128,De=256,Oe=ye|be|De;function ke(e,t){return be|(e?xe:0)|(t?Se:0)}var Ae=0,je=1,Me=2,Ne=3,Pe=4,Fe=5,C=function(e,t,n){this.options=e=_e(e),this.sourceFile=e.sourceFile,this.keywords=le(s[e.ecmaVersion>=6?6:e.sourceType===`module`?`5module`:5]);var r=``;e.allowReserved!==!0&&(r=a[e.ecmaVersion>=6?6:e.ecmaVersion===5?5:3],e.sourceType===`module`&&(r+=` await`)),this.reservedWords=le(r);var i=(r?r+` `:``)+a.strict;this.reservedWordsStrict=le(i),this.reservedWordsStrictBind=le(i+` `+a.strictBind),this.input=String(t),this.containsEsc=!1,n?(this.pos=n,this.lineStart=this.input.lastIndexOf(`
|
|
10
10
|
`,n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(x).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=b.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=e.sourceType===`module`,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=/* @__PURE__ */ Object.create(null),this.pos===0&&e.allowHashBang&&this.input.slice(0,2)===`#!`&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(ye),this.regexpState=null,this.privateNameStack=[]},Ie={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};C.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},Ie.inFunction.get=function(){return(this.currentVarScope().flags&be)>0},Ie.inGenerator.get=function(){return(this.currentVarScope().flags&Se)>0&&!this.currentVarScope().inClassFieldInit},Ie.inAsync.get=function(){return(this.currentVarScope().flags&xe)>0&&!this.currentVarScope().inClassFieldInit},Ie.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&De)return!1;if(t.flags&be)return(t.flags&xe)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},Ie.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,n=e.inClassFieldInit;return(t&Te)>0||n||this.options.allowSuperOutsideMethod},Ie.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Ee)>0},Ie.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Ie.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,n=e.inClassFieldInit;return(t&(be|De))>0||n},Ie.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&De)>0},C.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n=this,r=0;r<e.length;r++)n=e[r](n);return n},C.parse=function(e,t){return new this(t,e).parse()},C.parseExpressionAt=function(e,t,n){var r=new this(n,e,t);return r.nextToken(),r.parseExpression()},C.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(C.prototype,Ie);var Le=C.prototype,Re=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;Le.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){re.lastIndex=e,e+=re.exec(this.input)[0].length;var t=Re.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])===`use strict`){re.lastIndex=e+t[0].length;var n=re.exec(this.input),r=n.index+n[0].length,i=this.input.charAt(r);return i===`;`||i===`}`||x.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||i===`!`&&this.input.charAt(r+1)===`=`)}e+=t[0].length,re.lastIndex=e,e+=re.exec(this.input)[0].length,this.input[e]===`;`&&e++}},Le.eat=function(e){return this.type===e&&(this.next(),!0)},Le.isContextual=function(e){return this.type===b.name&&this.value===e&&!this.containsEsc},Le.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1},Le.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},Le.canInsertSemicolon=function(){return this.type===b.eof||this.type===b.braceR||x.test(this.input.slice(this.lastTokEnd,this.start))},Le.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},Le.semicolon=function(){!this.eat(b.semi)&&!this.insertSemicolon()&&this.unexpected()},Le.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},Le.expect=function(e){this.eat(e)||this.unexpected()},Le.unexpected=function(e){this.raise(e??this.start,`Unexpected token`)};var ze=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Le.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,`Comma is not permitted after the rest element`);var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,t?`Assigning to rvalue`:`Parenthesized pattern`)}},Le.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,r=e.doubleProto;if(!t)return n>=0||r>=0;n>=0&&this.raise(n,`Shorthand property assignments are valid only in destructuring patterns`),r>=0&&this.raiseRecoverable(r,`Redefinition of __proto__ property`)},Le.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,`Yield expression cannot be a default value`),this.awaitPos&&this.raise(this.awaitPos,`Await expression cannot be a default value`)},Le.isSimpleAssignTarget=function(e){return e.type===`ParenthesizedExpression`?this.isSimpleAssignTarget(e.expression):e.type===`Identifier`||e.type===`MemberExpression`};var w=C.prototype;w.parseTopLevel=function(e){var t=/* @__PURE__ */ Object.create(null);for(e.body||=[];this.type!==b.eof;){var n=this.parseStatement(null,!0,t);e.body.push(n)}if(this.inModule)for(var r=0,i=Object.keys(this.undefinedExports);r<i.length;r+=1){var a=i[r];this.raiseRecoverable(this.undefinedExports[a].start,`Export '`+a+`' is not defined`)}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,`Program`)};var Be={kind:`loop`},Ve={kind:`switch`};w.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual(`let`))return!1;re.lastIndex=this.pos;var t=re.exec(this.input),n=this.pos+t[0].length,r=this.input.charCodeAt(n);if(r===91||r===92)return!0;if(e)return!1;if(r===123||r>55295&&r<56320)return!0;if(f(r,!0)){for(var i=n+1;p(r=this.input.charCodeAt(i),!0);)++i;if(r===92||r>55295&&r<56320)return!0;var a=this.input.slice(n,i);if(!c.test(a))return!0}return!1},w.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual(`async`))return!1;re.lastIndex=this.pos;var e=re.exec(this.input),t=this.pos+e[0].length,n;return!x.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)===`function`&&(t+8===this.input.length||!(p(n=this.input.charCodeAt(t+8))||n>55295&&n<56320))},w.parseStatement=function(e,t,n){var r=this.type,i=this.startNode(),a;switch(this.isLet(e)&&(r=b._var,a=`let`),r){case b._break:case b._continue:return this.parseBreakContinueStatement(i,r.keyword);case b._debugger:return this.parseDebuggerStatement(i);case b._do:return this.parseDoStatement(i);case b._for:return this.parseForStatement(i);case b._function:return e&&(this.strict||e!==`if`&&e!==`label`)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(i,!1,!e);case b._class:return e&&this.unexpected(),this.parseClass(i,!0);case b._if:return this.parseIfStatement(i);case b._return:return this.parseReturnStatement(i);case b._switch:return this.parseSwitchStatement(i);case b._throw:return this.parseThrowStatement(i);case b._try:return this.parseTryStatement(i);case b._const:case b._var:return a||=this.value,e&&a!==`var`&&this.unexpected(),this.parseVarStatement(i,a);case b._while:return this.parseWhileStatement(i);case b._with:return this.parseWithStatement(i);case b.braceL:return this.parseBlock(!0,i);case b.semi:return this.parseEmptyStatement(i);case b._export:case b._import:if(this.options.ecmaVersion>10&&r===b._import){re.lastIndex=this.pos;var o=re.exec(this.input),s=this.pos+o[0].length,c=this.input.charCodeAt(s);if(c===40||c===46)return this.parseExpressionStatement(i,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,`'import' and 'export' may only appear at the top level`),this.inModule||this.raise(this.start,`'import' and 'export' may appear only with 'sourceType: module'`)),r===b._import?this.parseImport(i):this.parseExport(i,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(i,!0,!e);var l=this.value,u=this.parseExpression();return r===b.name&&u.type===`Identifier`&&this.eat(b.colon)?this.parseLabeledStatement(i,l,u,e):this.parseExpressionStatement(i,u)}},w.parseBreakContinueStatement=function(e,t){var n=t===`break`;this.next(),this.eat(b.semi)||this.insertSemicolon()?e.label=null:this.type===b.name?(e.label=this.parseIdent(),this.semicolon()):this.unexpected();for(var r=0;r<this.labels.length;++r){var i=this.labels[r];if((e.label==null||i.name===e.label.name)&&(i.kind!=null&&(n||i.kind===`loop`)||e.label&&n))break}return r===this.labels.length&&this.raise(e.start,`Unsyntactic `+t),this.finishNode(e,n?`BreakStatement`:`ContinueStatement`)},w.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,`DebuggerStatement`)},w.parseDoStatement=function(e){return this.next(),this.labels.push(Be),e.body=this.parseStatement(`do`),this.labels.pop(),this.expect(b._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(b.semi):this.semicolon(),this.finishNode(e,`DoWhileStatement`)},w.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual(`await`)?this.lastTokStart:-1;if(this.labels.push(Be),this.enterScope(0),this.expect(b.parenL),this.type===b.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===b._var||this.type===b._const||n){var r=this.startNode(),i=n?`let`:this.value;return this.next(),this.parseVar(r,!0,i),this.finishNode(r,`VariableDeclaration`),(this.type===b._in||this.options.ecmaVersion>=6&&this.isContextual(`of`))&&r.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===b._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,r)):(t>-1&&this.unexpected(t),this.parseFor(e,r))}var a=this.isContextual(`let`),o=!1,s=new ze,c=this.parseExpression(t>-1?`await`:!0,s);return this.type===b._in||(o=this.options.ecmaVersion>=6&&this.isContextual(`of`))?(this.options.ecmaVersion>=9&&(this.type===b._in?t>-1&&this.unexpected(t):e.await=t>-1),a&&o&&this.raise(c.start,`The left-hand side of a for-of loop may not start with 'let'.`),this.toAssignable(c,!1,s),this.checkLValPattern(c),this.parseForIn(e,c)):(this.checkExpressionErrors(s,!0),t>-1&&this.unexpected(t),this.parseFor(e,c))},w.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,Ue|(n?0:We),!1,t)},w.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement(`if`),e.alternate=this.eat(b._else)?this.parseStatement(`if`):null,this.finishNode(e,`IfStatement`)},w.parseReturnStatement=function(e){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,`'return' outside of function`),this.next(),this.eat(b.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,`ReturnStatement`)},w.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(b.braceL),this.labels.push(Ve),this.enterScope(0);for(var t,n=!1;this.type!==b.braceR;)if(this.type===b._case||this.type===b._default){var r=this.type===b._case;t&&this.finishNode(t,`SwitchCase`),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,`Multiple default clauses`),n=!0,t.test=null),this.expect(b.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,`SwitchCase`),this.next(),this.labels.pop(),this.finishNode(e,`SwitchStatement`)},w.parseThrowStatement=function(e){return this.next(),x.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,`Illegal newline after throw`),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,`ThrowStatement`)};var He=[];w.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===b._catch){var t=this.startNode();if(this.next(),this.eat(b.parenL)){t.param=this.parseBindingAtom();var n=t.param.type===`Identifier`;this.enterScope(n?we:0),this.checkLValPattern(t.param,n?Pe:Me),this.expect(b.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0);t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,`CatchClause`)}return e.finalizer=this.eat(b._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,`Missing catch or finally clause`),this.finishNode(e,`TryStatement`)},w.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,`VariableDeclaration`)},w.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Be),e.body=this.parseStatement(`while`),this.labels.pop(),this.finishNode(e,`WhileStatement`)},w.parseWithStatement=function(e){return this.strict&&this.raise(this.start,`'with' in strict mode`),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement(`with`),this.finishNode(e,`WithStatement`)},w.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,`EmptyStatement`)},w.parseLabeledStatement=function(e,t,n,r){for(var i=0,a=this.labels;i<a.length;i+=1)a[i].name===t&&this.raise(n.start,`Label '`+t+`' is already declared`);for(var o=this.type.isLoop?`loop`:this.type===b._switch?`switch`:null,s=this.labels.length-1;s>=0;s--){var c=this.labels[s];if(c.statementStart===e.start)c.statementStart=this.start,c.kind=o;else break}return this.labels.push({name:t,kind:o,statementStart:this.start}),e.body=this.parseStatement(r?r.indexOf(`label`)===-1?r+`label`:r:`label`),this.labels.pop(),e.label=n,this.finishNode(e,`LabeledStatement`)},w.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,`ExpressionStatement`)},w.parseBlock=function(e,t,n){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(b.braceL),e&&this.enterScope(0);this.type!==b.braceR;){var r=this.parseStatement(null);t.body.push(r)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,`BlockStatement`)},w.parseFor=function(e,t){return e.init=t,this.expect(b.semi),e.test=this.type===b.semi?null:this.parseExpression(),this.expect(b.semi),e.update=this.type===b.parenR?null:this.parseExpression(),this.expect(b.parenR),e.body=this.parseStatement(`for`),this.exitScope(),this.labels.pop(),this.finishNode(e,`ForStatement`)},w.parseForIn=function(e,t){var n=this.type===b._in;return this.next(),t.type===`VariableDeclaration`&&t.declarations[0].init!=null&&(!n||this.options.ecmaVersion<8||this.strict||t.kind!==`var`||t.declarations[0].id.type!==`Identifier`)&&this.raise(t.start,(n?`for-in`:`for-of`)+` loop variable declaration may not have an initializer`),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(b.parenR),e.body=this.parseStatement(`for`),this.exitScope(),this.labels.pop(),this.finishNode(e,n?`ForInStatement`:`ForOfStatement`)},w.parseVar=function(e,t,n){for(e.declarations=[],e.kind=n;;){var r=this.startNode();if(this.parseVarId(r,n),this.eat(b.eq)?r.init=this.parseMaybeAssign(t):n===`const`&&!(this.type===b._in||this.options.ecmaVersion>=6&&this.isContextual(`of`))?this.unexpected():r.id.type!==`Identifier`&&(!t||this.type!==b._in&&!this.isContextual(`of`))?this.raise(this.lastTokEnd,`Complex binding patterns require an initialization value`):r.init=null,e.declarations.push(this.finishNode(r,`VariableDeclarator`)),!this.eat(b.comma))break}return e},w.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,t===`var`?je:Me,!1)};var Ue=1,We=2,Ge=4;w.parseFunction=function(e,t,n,r,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===b.star&&t&We&&this.unexpected(),e.generator=this.eat(b.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&Ue&&(e.id=t&Ge&&this.type!==b.name?null:this.parseIdent(),e.id&&!(t&We)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?je:Me:Ne));var a=this.yieldPos,o=this.awaitPos,s=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(ke(e.async,e.generator)),t&Ue||(e.id=this.type===b.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1,i),this.yieldPos=a,this.awaitPos=o,this.awaitIdentPos=s,this.finishNode(e,t&Ue?`FunctionDeclaration`:`FunctionExpression`)},w.parseFunctionParams=function(e){this.expect(b.parenL),e.params=this.parseBindingList(b.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},w.parseClass=function(e,t){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.enterClassBody(),i=this.startNode(),a=!1;for(i.body=[],this.expect(b.braceL);this.type!==b.braceR;){var o=this.parseClassElement(e.superClass!==null);o&&(i.body.push(o),o.type===`MethodDefinition`&&o.kind===`constructor`?(a&&this.raise(o.start,`Duplicate constructor in the same class`),a=!0):o.key&&o.key.type===`PrivateIdentifier`&&Ke(r,o)&&this.raiseRecoverable(o.key.start,`Identifier '#`+o.key.name+`' has already been declared`))}return this.strict=n,this.next(),e.body=this.finishNode(i,`ClassBody`),this.exitClassBody(),this.finishNode(e,t?`ClassDeclaration`:`ClassExpression`)},w.parseClassElement=function(e){if(this.eat(b.semi))return null;var t=this.options.ecmaVersion,n=this.startNode(),r=``,i=!1,a=!1,o=`method`,s=!1;if(this.eatContextual(`static`)){if(t>=13&&this.eat(b.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===b.star?s=!0:r=`static`}if(n.static=s,!r&&t>=8&&this.eatContextual(`async`)&&((this.isClassElementNameStart()||this.type===b.star)&&!this.canInsertSemicolon()?a=!0:r=`async`),!r&&(t>=9||!a)&&this.eat(b.star)&&(i=!0),!r&&!a&&!i){var c=this.value;(this.eatContextual(`get`)||this.eatContextual(`set`))&&(this.isClassElementNameStart()?o=c:r=c)}if(r?(n.computed=!1,n.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),n.key.name=r,this.finishNode(n.key,`Identifier`)):this.parseClassElementName(n),t<13||this.type===b.parenL||o!==`method`||i||a){var l=!n.static&&qe(n,`constructor`),u=l&&e;l&&o!==`method`&&this.raise(n.key.start,`Constructor can't have get/set modifier`),n.kind=l?`constructor`:o,this.parseClassMethod(n,i,a,u)}else this.parseClassField(n);return n},w.isClassElementNameStart=function(){return this.type===b.name||this.type===b.privateId||this.type===b.num||this.type===b.string||this.type===b.bracketL||this.type.keyword},w.parseClassElementName=function(e){this.type===b.privateId?(this.value===`constructor`&&this.raise(this.start,`Classes can't have an element named '#constructor'`),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},w.parseClassMethod=function(e,t,n,r){var i=e.key;e.kind===`constructor`?(t&&this.raise(i.start,`Constructor can't be a generator`),n&&this.raise(i.start,`Constructor can't be an async method`)):e.static&&qe(e,`prototype`)&&this.raise(i.start,`Classes may not have a static property named prototype`);var a=e.value=this.parseMethod(t,n,r);return e.kind===`get`&&a.params.length!==0&&this.raiseRecoverable(a.start,`getter should have no params`),e.kind===`set`&&a.params.length!==1&&this.raiseRecoverable(a.start,`setter should have exactly one param`),e.kind===`set`&&a.params[0].type===`RestElement`&&this.raiseRecoverable(a.params[0].start,`Setter cannot use rest params`),this.finishNode(e,`MethodDefinition`)},w.parseClassField=function(e){if(qe(e,`constructor`)?this.raise(e.key.start,`Classes can't have a field named 'constructor'`):e.static&&qe(e,`prototype`)&&this.raise(e.key.start,`Classes can't have a static field named 'prototype'`),this.eat(b.eq)){var t=this.currentThisScope(),n=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=n}else e.value=null;return this.semicolon(),this.finishNode(e,`PropertyDefinition`)},w.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(De|Te);this.type!==b.braceR;){var n=this.parseStatement(null);e.body.push(n)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,`StaticBlock`)},w.parseClassId=function(e,t){this.type===b.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,Me,!1)):(t===!0&&this.unexpected(),e.id=null)},w.parseClassSuper=function(e){e.superClass=this.eat(b._extends)?this.parseExprSubscripts(null,!1):null},w.enterClassBody=function(){var e={declared:/* @__PURE__ */ Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},w.exitClassBody=function(){for(var e=this.privateNameStack.pop(),t=e.declared,n=e.used,r=this.privateNameStack.length,i=r===0?null:this.privateNameStack[r-1],a=0;a<n.length;++a){var o=n[a];se(t,o.name)||(i?i.used.push(o):this.raiseRecoverable(o.start,`Private field '#`+o.name+`' must be declared in an enclosing class`))}};function Ke(e,t){var n=t.key.name,r=e[n],i=`true`;return t.type===`MethodDefinition`&&(t.kind===`get`||t.kind===`set`)&&(i=(t.static?`s`:`i`)+t.kind),r===`iget`&&i===`iset`||r===`iset`&&i===`iget`||r===`sget`&&i===`sset`||r===`sset`&&i===`sget`?(e[n]=`true`,!1):r?!0:(e[n]=i,!1)}function qe(e,t){var n=e.computed,r=e.key;return!n&&(r.type===`Identifier`&&r.name===t||r.type===`Literal`&&r.value===t)}w.parseExport=function(e,t){if(this.next(),this.eat(b.star))return this.options.ecmaVersion>=11&&(this.eatContextual(`as`)?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual(`from`),this.type!==b.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,`ExportAllDeclaration`);if(this.eat(b._default)){this.checkExport(t,`default`,this.lastTokStart);var n;if(this.type===b._function||(n=this.isAsyncFunction())){var r=this.startNode();this.next(),n&&this.next(),e.declaration=this.parseFunction(r,Ue|Ge,!1,n)}else if(this.type===b._class){var i=this.startNode();e.declaration=this.parseClass(i,`nullableID`)}else e.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(e,`ExportDefaultDeclaration`)}if(this.shouldParseExportStatement())e.declaration=this.parseStatement(null),e.declaration.type===`VariableDeclaration`?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual(`from`))this.type!==b.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var a=0,o=e.specifiers;a<o.length;a+=1){var s=o[a];this.checkUnreserved(s.local),this.checkLocalExport(s.local),s.local.type===`Literal`&&this.raise(s.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null}this.semicolon()}return this.finishNode(e,`ExportNamedDeclaration`)},w.checkExport=function(e,t,n){e&&(typeof t!=`string`&&(t=t.type===`Identifier`?t.name:t.value),se(e,t)&&this.raiseRecoverable(n,`Duplicate export '`+t+`'`),e[t]=!0)},w.checkPatternExport=function(e,t){var n=t.type;if(n===`Identifier`)this.checkExport(e,t,t.start);else if(n===`ObjectPattern`)for(var r=0,i=t.properties;r<i.length;r+=1){var a=i[r];this.checkPatternExport(e,a)}else if(n===`ArrayPattern`)for(var o=0,s=t.elements;o<s.length;o+=1){var c=s[o];c&&this.checkPatternExport(e,c)}else n===`Property`?this.checkPatternExport(e,t.value):n===`AssignmentPattern`?this.checkPatternExport(e,t.left):n===`RestElement`?this.checkPatternExport(e,t.argument):n===`ParenthesizedExpression`&&this.checkPatternExport(e,t.expression)},w.checkVariableExport=function(e,t){if(e)for(var n=0,r=t;n<r.length;n+=1){var i=r[n];this.checkPatternExport(e,i.id)}},w.shouldParseExportStatement=function(){return this.type.keyword===`var`||this.type.keyword===`const`||this.type.keyword===`class`||this.type.keyword===`function`||this.isLet()||this.isAsyncFunction()},w.parseExportSpecifiers=function(e){var t=[],n=!0;for(this.expect(b.braceL);!this.eat(b.braceR);){if(n)n=!1;else if(this.expect(b.comma),this.afterTrailingComma(b.braceR))break;var r=this.startNode();r.local=this.parseModuleExportName(),r.exported=this.eatContextual(`as`)?this.parseModuleExportName():r.local,this.checkExport(e,r.exported,r.exported.start),t.push(this.finishNode(r,`ExportSpecifier`))}return t},w.parseImport=function(e){return this.next(),this.type===b.string?(e.specifiers=He,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual(`from`),e.source=this.type===b.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,`ImportDeclaration`)},w.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===b.name){var n=this.startNode();if(n.local=this.parseIdent(),this.checkLValSimple(n.local,Me),e.push(this.finishNode(n,`ImportDefaultSpecifier`)),!this.eat(b.comma))return e}if(this.type===b.star){var r=this.startNode();return this.next(),this.expectContextual(`as`),r.local=this.parseIdent(),this.checkLValSimple(r.local,Me),e.push(this.finishNode(r,`ImportNamespaceSpecifier`)),e}for(this.expect(b.braceL);!this.eat(b.braceR);){if(t)t=!1;else if(this.expect(b.comma),this.afterTrailingComma(b.braceR))break;var i=this.startNode();i.imported=this.parseModuleExportName(),this.eatContextual(`as`)?i.local=this.parseIdent():(this.checkUnreserved(i.imported),i.local=i.imported),this.checkLValSimple(i.local,Me),e.push(this.finishNode(i,`ImportSpecifier`))}return e},w.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===b.string){var e=this.parseLiteral(this.value);return de.test(e.value)&&this.raise(e.start,`An export name cannot include a lone surrogate.`),e}return this.parseIdent(!0)},w.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},w.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&e.type===`ExpressionStatement`&&e.expression.type===`Literal`&&typeof e.expression.value==`string`&&(this.input[e.start]===`"`||this.input[e.start]===`'`)};var Je=C.prototype;Je.toAssignable=function(e,t,n){if(this.options.ecmaVersion>=6&&e)switch(e.type){case`Identifier`:this.inAsync&&e.name===`await`&&this.raise(e.start,`Cannot use 'await' as identifier inside an async function`);break;case`ObjectPattern`:case`ArrayPattern`:case`AssignmentPattern`:case`RestElement`:break;case`ObjectExpression`:e.type=`ObjectPattern`,n&&this.checkPatternErrors(n,!0);for(var r=0,i=e.properties;r<i.length;r+=1){var a=i[r];this.toAssignable(a,t),a.type===`RestElement`&&(a.argument.type===`ArrayPattern`||a.argument.type===`ObjectPattern`)&&this.raise(a.argument.start,`Unexpected token`)}break;case`Property`:e.kind!==`init`&&this.raise(e.key.start,`Object pattern can't contain getter or setter`),this.toAssignable(e.value,t);break;case`ArrayExpression`:e.type=`ArrayPattern`,n&&this.checkPatternErrors(n,!0),this.toAssignableList(e.elements,t);break;case`SpreadElement`:e.type=`RestElement`,this.toAssignable(e.argument,t),e.argument.type===`AssignmentPattern`&&this.raise(e.argument.start,`Rest elements cannot have a default value`);break;case`AssignmentExpression`:e.operator!==`=`&&this.raise(e.left.end,`Only '=' operator can be used for specifying default value.`),e.type=`AssignmentPattern`,delete e.operator,this.toAssignable(e.left,t);break;case`ParenthesizedExpression`:this.toAssignable(e.expression,t,n);break;case`ChainExpression`:this.raiseRecoverable(e.start,`Optional chaining cannot appear in left-hand side`);break;case`MemberExpression`:if(!t)break;default:this.raise(e.start,`Assigning to rvalue`)}else n&&this.checkPatternErrors(n,!0);return e},Je.toAssignableList=function(e,t){for(var n=e.length,r=0;r<n;r++){var i=e[r];i&&this.toAssignable(i,t)}if(n){var a=e[n-1];this.options.ecmaVersion===6&&t&&a&&a.type===`RestElement`&&a.argument.type!==`Identifier`&&this.unexpected(a.argument.start)}return e},Je.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,`SpreadElement`)},Je.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==b.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,`RestElement`)},Je.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case b.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(b.bracketR,!0,!0),this.finishNode(e,`ArrayPattern`);case b.braceL:return this.parseObj(!0)}return this.parseIdent()},Je.parseBindingList=function(e,t,n){for(var r=[],i=!0;!this.eat(e);)if(i?i=!1:this.expect(b.comma),t&&this.type===b.comma)r.push(null);else if(n&&this.afterTrailingComma(e))break;else if(this.type===b.ellipsis){var a=this.parseRestBinding();this.parseBindingListItem(a),r.push(a),this.type===b.comma&&this.raise(this.start,`Comma is not permitted after the rest element`),this.expect(e);break}else{var o=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(o),r.push(o)}return r},Je.parseBindingListItem=function(e){return e},Je.parseMaybeDefault=function(e,t,n){if(n||=this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(b.eq))return n;var r=this.startNodeAt(e,t);return r.left=n,r.right=this.parseMaybeAssign(),this.finishNode(r,`AssignmentPattern`)},Je.checkLValSimple=function(e,t,n){t===void 0&&(t=Ae);var r=t!==Ae;switch(e.type){case`Identifier`:this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(r?`Binding `:`Assigning to `)+e.name+` in strict mode`),r&&(t===Me&&e.name===`let`&&this.raiseRecoverable(e.start,`let is disallowed as a lexically bound name`),n&&(se(n,e.name)&&this.raiseRecoverable(e.start,`Argument name clash`),n[e.name]=!0),t!==Fe&&this.declareName(e.name,t,e.start));break;case`ChainExpression`:this.raiseRecoverable(e.start,`Optional chaining cannot appear in left-hand side`);break;case`MemberExpression`:r&&this.raiseRecoverable(e.start,`Binding member expression`);break;case`ParenthesizedExpression`:return r&&this.raiseRecoverable(e.start,`Binding parenthesized expression`),this.checkLValSimple(e.expression,t,n);default:this.raise(e.start,(r?`Binding`:`Assigning to`)+` rvalue`)}},Je.checkLValPattern=function(e,t,n){switch(t===void 0&&(t=Ae),e.type){case`ObjectPattern`:for(var r=0,i=e.properties;r<i.length;r+=1){var a=i[r];this.checkLValInnerPattern(a,t,n)}break;case`ArrayPattern`:for(var o=0,s=e.elements;o<s.length;o+=1){var c=s[o];c&&this.checkLValInnerPattern(c,t,n)}break;default:this.checkLValSimple(e,t,n)}},Je.checkLValInnerPattern=function(e,t,n){switch(t===void 0&&(t=Ae),e.type){case`Property`:this.checkLValInnerPattern(e.value,t,n);break;case`AssignmentPattern`:this.checkLValPattern(e.left,t,n);break;case`RestElement`:this.checkLValPattern(e.argument,t,n);break;default:this.checkLValPattern(e,t,n)}};var Ye=function(e,t,n,r,i){this.token=e,this.isExpr=!!t,this.preserveSpace=!!n,this.override=r,this.generator=!!i},T={b_stat:new Ye(`{`,!1),b_expr:new Ye(`{`,!0),b_tmpl:new Ye("${",!1),p_stat:new Ye(`(`,!1),p_expr:new Ye(`(`,!0),q_tmpl:new Ye("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new Ye(`function`,!1),f_expr:new Ye(`function`,!0),f_expr_gen:new Ye(`function`,!0,!1,null,!0),f_gen:new Ye(`function`,!1,!1,null,!0)},Xe=C.prototype;Xe.initialContext=function(){return[T.b_stat]},Xe.curContext=function(){return this.context[this.context.length-1]},Xe.braceIsBlock=function(e){var t=this.curContext();return t===T.f_expr||t===T.f_stat?!0:e===b.colon&&(t===T.b_stat||t===T.b_expr)?!t.isExpr:e===b._return||e===b.name&&this.exprAllowed?x.test(this.input.slice(this.lastTokEnd,this.start)):e===b._else||e===b.semi||e===b.eof||e===b.parenR||e===b.arrow?!0:e===b.braceL?t===T.b_stat:e===b._var||e===b._const||e===b.name?!1:!this.exprAllowed},Xe.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token===`function`)return t.generator}return!1},Xe.updateContext=function(e){var t,n=this.type;n.keyword&&e===b.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr},Xe.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},b.parenR.updateContext=b.braceR.updateContext=function(){if(this.context.length===1)this.exprAllowed=!0;else{var e=this.context.pop();e===T.b_stat&&this.curContext().token===`function`&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}},b.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?T.b_stat:T.b_expr),this.exprAllowed=!0},b.dollarBraceL.updateContext=function(){this.context.push(T.b_tmpl),this.exprAllowed=!0},b.parenL.updateContext=function(e){var t=e===b._if||e===b._for||e===b._with||e===b._while;this.context.push(t?T.p_stat:T.p_expr),this.exprAllowed=!0},b.incDec.updateContext=function(){},b._function.updateContext=b._class.updateContext=function(e){e.beforeExpr&&e!==b._else&&(e!==b.semi||this.curContext()===T.p_stat)&&!(e===b._return&&x.test(this.input.slice(this.lastTokEnd,this.start)))&&(e!==b.colon&&e!==b.braceL||this.curContext()!==T.b_stat)?this.context.push(T.f_expr):this.context.push(T.f_stat),this.exprAllowed=!1},b.backQuote.updateContext=function(){this.curContext()===T.q_tmpl?this.context.pop():this.context.push(T.q_tmpl),this.exprAllowed=!1},b.star.updateContext=function(e){if(e===b._function){var t=this.context.length-1;this.context[t]===T.f_expr?this.context[t]=T.f_expr_gen:this.context[t]=T.f_gen}this.exprAllowed=!0},b.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==b.dot&&(this.value===`of`&&!this.exprAllowed||this.value===`yield`&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var E=C.prototype;E.checkPropClash=function(e,t,n){if(!(this.options.ecmaVersion>=9&&e.type===`SpreadElement`)&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var r=e.key,i;switch(r.type){case`Identifier`:i=r.name;break;case`Literal`:i=String(r.value);break;default:return}var a=e.kind;if(this.options.ecmaVersion>=6)i===`__proto__`&&a===`init`&&(t.proto&&(n?n.doubleProto<0&&(n.doubleProto=r.start):this.raiseRecoverable(r.start,`Redefinition of __proto__ property`)),t.proto=!0);else{i=`$`+i;var o=t[i];o?(a===`init`?this.strict&&o.init||o.get||o.set:o.init||o[a])&&this.raiseRecoverable(r.start,`Redefinition of property`):o=t[i]={init:!1,get:!1,set:!1},o[a]=!0}}},E.parseExpression=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===b.comma){var a=this.startNodeAt(n,r);for(a.expressions=[i];this.eat(b.comma);)a.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(a,`SequenceExpression`)}return i},E.parseMaybeAssign=function(e,t,n){if(this.isContextual(`yield`)){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var r=!1,i=-1,a=-1,o=-1;t?(i=t.parenthesizedAssign,a=t.trailingComma,o=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new ze,r=!0);var s=this.start,c=this.startLoc;(this.type===b.parenL||this.type===b.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e===`await`);var l=this.parseMaybeConditional(e,t);if(n&&(l=n.call(this,l,s,c)),this.type.isAssign){var u=this.startNodeAt(s,c);return u.operator=this.value,this.type===b.eq&&(l=this.toAssignable(l,!1,t)),r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=l.start&&(t.shorthandAssign=-1),this.type===b.eq?this.checkLValPattern(l):this.checkLValSimple(l),u.left=l,this.next(),u.right=this.parseMaybeAssign(e),o>-1&&(t.doubleProto=o),this.finishNode(u,`AssignmentExpression`)}return r&&this.checkExpressionErrors(t,!0),i>-1&&(t.parenthesizedAssign=i),a>-1&&(t.trailingComma=a),l},E.parseMaybeConditional=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(b.question)){var a=this.startNodeAt(n,r);return a.test=i,a.consequent=this.parseMaybeAssign(),this.expect(b.colon),a.alternate=this.parseMaybeAssign(e),this.finishNode(a,`ConditionalExpression`)}return i},E.parseExprOps=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||i.start===n&&i.type===`ArrowFunctionExpression`?i:this.parseExprOp(i,n,r,-1,e)},E.parseExprOp=function(e,t,n,r,i){var a=this.type.binop;if(a!=null&&(!i||this.type!==b._in)&&a>r){var o=this.type===b.logicalOR||this.type===b.logicalAND,s=this.type===b.coalesce;s&&(a=b.logicalAND.binop);var c=this.value;this.next();var l=this.start,u=this.startLoc,d=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,i),l,u,a,i),f=this.buildBinary(t,n,e,d,c,o||s);return(o&&this.type===b.coalesce||s&&(this.type===b.logicalOR||this.type===b.logicalAND))&&this.raiseRecoverable(this.start,`Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses`),this.parseExprOp(f,t,n,r,i)}return e},E.buildBinary=function(e,t,n,r,i,a){r.type===`PrivateIdentifier`&&this.raise(r.start,`Private identifier can only be left side of binary expression`);var o=this.startNodeAt(e,t);return o.left=n,o.operator=i,o.right=r,this.finishNode(o,a?`LogicalExpression`:`BinaryExpression`)},E.parseMaybeUnary=function(e,t,n,r){var i=this.start,a=this.startLoc,o;if(this.isContextual(`await`)&&this.canAwait)o=this.parseAwait(r),t=!0;else if(this.type.prefix){var s=this.startNode(),c=this.type===b.incDec;s.operator=this.value,s.prefix=!0,this.next(),s.argument=this.parseMaybeUnary(null,!0,c,r),this.checkExpressionErrors(e,!0),c?this.checkLValSimple(s.argument):this.strict&&s.operator===`delete`&&s.argument.type===`Identifier`?this.raiseRecoverable(s.start,`Deleting local variable in strict mode`):s.operator===`delete`&&Ze(s.argument)?this.raiseRecoverable(s.start,`Private fields can not be deleted`):t=!0,o=this.finishNode(s,c?`UpdateExpression`:`UnaryExpression`)}else if(!t&&this.type===b.privateId)(r||this.privateNameStack.length===0)&&this.unexpected(),o=this.parsePrivateIdent(),this.type!==b._in&&this.unexpected();else{if(o=this.parseExprSubscripts(e,r),this.checkExpressionErrors(e))return o;for(;this.type.postfix&&!this.canInsertSemicolon();){var l=this.startNodeAt(i,a);l.operator=this.value,l.prefix=!1,l.argument=o,this.checkLValSimple(o),this.next(),o=this.finishNode(l,`UpdateExpression`)}}if(!n&&this.eat(b.starstar)){if(t)this.unexpected(this.lastTokStart);else return this.buildBinary(i,a,o,this.parseMaybeUnary(null,!1,!1,r),`**`,!1)}else return o};function Ze(e){return e.type===`MemberExpression`&&e.property.type===`PrivateIdentifier`||e.type===`ChainExpression`&&Ze(e.expression)}E.parseExprSubscripts=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprAtom(e,t);if(i.type===`ArrowFunctionExpression`&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==`)`)return i;var a=this.parseSubscripts(i,n,r,!1,t);return e&&a.type===`MemberExpression`&&(e.parenthesizedAssign>=a.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=a.start&&(e.parenthesizedBind=-1),e.trailingComma>=a.start&&(e.trailingComma=-1)),a},E.parseSubscripts=function(e,t,n,r,i){for(var a=this.options.ecmaVersion>=8&&e.type===`Identifier`&&e.name===`async`&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,o=!1;;){var s=this.parseSubscript(e,t,n,r,a,o,i);if(s.optional&&(o=!0),s===e||s.type===`ArrowFunctionExpression`){if(o){var c=this.startNodeAt(t,n);c.expression=s,s=this.finishNode(c,`ChainExpression`)}return s}e=s}},E.parseSubscript=function(e,t,n,r,i,a,o){var s=this.options.ecmaVersion>=11,c=s&&this.eat(b.questionDot);r&&c&&this.raise(this.lastTokStart,`Optional chaining cannot appear in the callee of new expressions`);var l=this.eat(b.bracketL);if(l||c&&this.type!==b.parenL&&this.type!==b.backQuote||this.eat(b.dot)){var u=this.startNodeAt(t,n);u.object=e,l?(u.property=this.parseExpression(),this.expect(b.bracketR)):u.property=this.type===b.privateId&&e.type!==`Super`?this.parsePrivateIdent():this.parseIdent(this.options.allowReserved!==`never`),u.computed=!!l,s&&(u.optional=c),e=this.finishNode(u,`MemberExpression`)}else if(!r&&this.eat(b.parenL)){var d=new ze,f=this.yieldPos,p=this.awaitPos,m=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var h=this.parseExprList(b.parenR,this.options.ecmaVersion>=8,!1,d);if(i&&!c&&!this.canInsertSemicolon()&&this.eat(b.arrow))return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,`Cannot use 'await' as identifier inside an async function`),this.yieldPos=f,this.awaitPos=p,this.awaitIdentPos=m,this.parseArrowExpression(this.startNodeAt(t,n),h,!0,o);this.checkExpressionErrors(d,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=p||this.awaitPos,this.awaitIdentPos=m||this.awaitIdentPos;var g=this.startNodeAt(t,n);g.callee=e,g.arguments=h,s&&(g.optional=c),e=this.finishNode(g,`CallExpression`)}else if(this.type===b.backQuote){(c||a)&&this.raise(this.start,`Optional chaining cannot appear in the tag of tagged template expressions`);var _=this.startNodeAt(t,n);_.tag=e,_.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(_,`TaggedTemplateExpression`)}return e},E.parseExprAtom=function(e,t){this.type===b.slash&&this.readRegexp();var n,r=this.potentialArrowAt===this.start;switch(this.type){case b._super:return this.allowSuper||this.raise(this.start,`'super' keyword outside a method`),n=this.startNode(),this.next(),this.type===b.parenL&&!this.allowDirectSuper&&this.raise(n.start,`super() call outside constructor of a subclass`),this.type!==b.dot&&this.type!==b.bracketL&&this.type!==b.parenL&&this.unexpected(),this.finishNode(n,`Super`);case b._this:return n=this.startNode(),this.next(),this.finishNode(n,`ThisExpression`);case b.name:var i=this.start,a=this.startLoc,o=this.containsEsc,s=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!o&&s.name===`async`&&!this.canInsertSemicolon()&&this.eat(b._function))return this.overrideContext(T.f_expr),this.parseFunction(this.startNodeAt(i,a),0,!1,!0,t);if(r&&!this.canInsertSemicolon()){if(this.eat(b.arrow))return this.parseArrowExpression(this.startNodeAt(i,a),[s],!1,t);if(this.options.ecmaVersion>=8&&s.name===`async`&&this.type===b.name&&!o&&(!this.potentialArrowInForAwait||this.value!==`of`||this.containsEsc))return s=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(b.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(i,a),[s],!0,t)}return s;case b.regexp:var c=this.value;return n=this.parseLiteral(c.value),n.regex={pattern:c.pattern,flags:c.flags},n;case b.num:case b.string:return this.parseLiteral(this.value);case b._null:case b._true:case b._false:return n=this.startNode(),n.value=this.type===b._null?null:this.type===b._true,n.raw=this.type.keyword,this.next(),this.finishNode(n,`Literal`);case b.parenL:var l=this.start,u=this.parseParenAndDistinguishExpression(r,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(u)&&(e.parenthesizedAssign=l),e.parenthesizedBind<0&&(e.parenthesizedBind=l)),u;case b.bracketL:return n=this.startNode(),this.next(),n.elements=this.parseExprList(b.bracketR,!0,!0,e),this.finishNode(n,`ArrayExpression`);case b.braceL:return this.overrideContext(T.b_expr),this.parseObj(!1,e);case b._function:return n=this.startNode(),this.next(),this.parseFunction(n,0);case b._class:return this.parseClass(this.startNode(),!1);case b._new:return this.parseNew();case b.backQuote:return this.parseTemplate();case b._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},E.parseExprImport=function(){var e=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,`Escape sequence in keyword import`);var t=this.parseIdent(!0);switch(this.type){case b.parenL:return this.parseDynamicImport(e);case b.dot:return e.meta=t,this.parseImportMeta(e);default:this.unexpected()}},E.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(b.parenR)){var t=this.start;this.eat(b.comma)&&this.eat(b.parenR)?this.raiseRecoverable(t,`Trailing comma is not allowed in import()`):this.unexpected(t)}return this.finishNode(e,`ImportExpression`)},E.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!==`meta`&&this.raiseRecoverable(e.property.start,`The only valid meta property for import is 'import.meta'`),t&&this.raiseRecoverable(e.start,`'import.meta' must not contain escaped characters`),this.options.sourceType!==`module`&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,`Cannot use 'import.meta' outside a module`),this.finishNode(e,`MetaProperty`)},E.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,``)),this.next(),this.finishNode(t,`Literal`)},E.parseParenExpression=function(){this.expect(b.parenL);var e=this.parseExpression();return this.expect(b.parenR),e},E.parseParenAndDistinguishExpression=function(e,t){var n=this.start,r=this.startLoc,i,a=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var o=this.start,s=this.startLoc,c=[],l=!0,u=!1,d=new ze,f=this.yieldPos,p=this.awaitPos,m;for(this.yieldPos=0,this.awaitPos=0;this.type!==b.parenR;){if(l?l=!1:this.expect(b.comma),a&&this.afterTrailingComma(b.parenR,!0)){u=!0;break}if(this.type===b.ellipsis){m=this.start,c.push(this.parseParenItem(this.parseRestBinding())),this.type===b.comma&&this.raise(this.start,`Comma is not permitted after the rest element`);break}c.push(this.parseMaybeAssign(!1,d,this.parseParenItem))}var h=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(b.parenR),e&&!this.canInsertSemicolon()&&this.eat(b.arrow))return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=f,this.awaitPos=p,this.parseParenArrowList(n,r,c,t);(!c.length||u)&&this.unexpected(this.lastTokStart),m&&this.unexpected(m),this.checkExpressionErrors(d,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=p||this.awaitPos,c.length>1?(i=this.startNodeAt(o,s),i.expressions=c,this.finishNodeAt(i,`SequenceExpression`,h,g)):i=c[0]}else i=this.parseParenExpression();if(this.options.preserveParens){var _=this.startNodeAt(n,r);return _.expression=i,this.finishNode(_,`ParenthesizedExpression`)}return i},E.parseParenItem=function(e){return e},E.parseParenArrowList=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!1,r)};var Qe=[];E.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,`Escape sequence in keyword new`);var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(b.dot)){e.meta=t;var n=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!==`target`&&this.raiseRecoverable(e.property.start,`The only valid meta property for new is 'new.target'`),n&&this.raiseRecoverable(e.start,`'new.target' must not contain escaped characters`),this.allowNewDotTarget||this.raiseRecoverable(e.start,`'new.target' can only be used in functions and class static block`),this.finishNode(e,`MetaProperty`)}var r=this.start,i=this.startLoc,a=this.type===b._import;return e.callee=this.parseSubscripts(this.parseExprAtom(),r,i,!0,!1),a&&e.callee.type===`ImportExpression`&&this.raise(r,`Cannot use new with import()`),e.arguments=this.eat(b.parenL)?this.parseExprList(b.parenR,this.options.ecmaVersion>=8,!1):Qe,this.finishNode(e,`NewExpression`)},E.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===b.invalidTemplate?(t||this.raiseRecoverable(this.start,`Bad escape sequence in untagged template literal`),n.value={raw:this.value,cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
11
|
-
`),cooked:this.value},this.next(),n.tail=this.type===b.backQuote,this.finishNode(n,`TemplateElement`)},E.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(n.quasis=[r];!r.tail;)this.type===b.eof&&this.raise(this.pos,`Unterminated template literal`),this.expect(b.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(b.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,`TemplateLiteral`)},E.isAsyncProp=function(e){return!e.computed&&e.key.type===`Identifier`&&e.key.name===`async`&&(this.type===b.name||this.type===b.num||this.type===b.string||this.type===b.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===b.star)&&!x.test(this.input.slice(this.lastTokEnd,this.start))},E.parseObj=function(e,t){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(b.braceR);){if(r)r=!1;else if(this.expect(b.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(b.braceR))break;var a=this.parseProperty(e,t);e||this.checkPropClash(a,i,t),n.properties.push(a)}return this.finishNode(n,e?`ObjectPattern`:`ObjectExpression`)},E.parseProperty=function(e,t){var n=this.startNode(),r,i,a,o;if(this.options.ecmaVersion>=9&&this.eat(b.ellipsis))return e?(n.argument=this.parseIdent(!1),this.type===b.comma&&this.raise(this.start,`Comma is not permitted after the rest element`),this.finishNode(n,`RestElement`)):(n.argument=this.parseMaybeAssign(!1,t),this.type===b.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(n,`SpreadElement`));this.options.ecmaVersion>=6&&(n.method=!1,n.shorthand=!1,(e||t)&&(a=this.start,o=this.startLoc),e||(r=this.eat(b.star)));var s=this.containsEsc;return this.parsePropertyName(n),!e&&!s&&this.options.ecmaVersion>=8&&!r&&this.isAsyncProp(n)?(i=!0,r=this.options.ecmaVersion>=9&&this.eat(b.star),this.parsePropertyName(n)):i=!1,this.parsePropertyValue(n,e,r,i,a,o,t,s),this.finishNode(n,`Property`)},E.parsePropertyValue=function(e,t,n,r,i,a,o,s){if((n||r)&&this.type===b.colon&&this.unexpected(),this.eat(b.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind=`init`;else if(this.options.ecmaVersion>=6&&this.type===b.parenL)t&&this.unexpected(),e.kind=`init`,e.method=!0,e.value=this.parseMethod(n,r);else if(!t&&!s&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type===`Identifier`&&(e.key.name===`get`||e.key.name===`set`)&&this.type!==b.comma&&this.type!==b.braceR&&this.type!==b.eq){(n||r)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var c=e.kind===`get`?0:1;if(e.value.params.length!==c){var l=e.value.start;e.kind===`get`?this.raiseRecoverable(l,`getter should have no params`):this.raiseRecoverable(l,`setter should have exactly one param`)}else e.kind===`set`&&e.value.params[0].type===`RestElement`&&this.raiseRecoverable(e.value.params[0].start,`Setter cannot use rest params`)}else this.options.ecmaVersion>=6&&!e.computed&&e.key.type===`Identifier`?((n||r)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name===`await`&&!this.awaitIdentPos&&(this.awaitIdentPos=i),e.kind=`init`,t?e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key)):this.type===b.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected()},E.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(b.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(b.bracketR),e.key;e.computed=!1}return e.key=this.type===b.num||this.type===b.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!==`never`)},E.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},E.parseMethod=function(e,t,n){var r=this.startNode(),i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=e),this.options.ecmaVersion>=8&&(r.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(ke(t,r.generator)|Te|(n?Ee:0)),this.expect(b.parenL),r.params=this.parseBindingList(b.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(r,`FunctionExpression`)},E.parseArrowExpression=function(e,t,n,r){var i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.enterScope(ke(n,!1)|Ce),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,r),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,`ArrowFunctionExpression`)},E.parseFunctionBody=function(e,t,n,r){var i=t&&this.type!==b.braceL,a=this.strict,o=!1;if(i)e.body=this.parseMaybeAssign(r),e.expression=!0,this.checkParams(e,!1);else{var s=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!a||s)&&(o=this.strictDirective(this.end),o&&s&&this.raiseRecoverable(e.start,`Illegal 'use strict' directive in function with non-simple parameter list`));var c=this.labels;this.labels=[],o&&(this.strict=!0),this.checkParams(e,!a&&!o&&!t&&!n&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,Fe),e.body=this.parseBlock(!1,void 0,o&&!a),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=c}this.exitScope()},E.isSimpleParamList=function(e){for(var t=0,n=e;t<n.length;t+=1)if(n[t].type!==`Identifier`)return!1;return!0},E.checkParams=function(e,t){for(var n=/* @__PURE__ */ Object.create(null),r=0,i=e.params;r<i.length;r+=1){var a=i[r];this.checkLValInnerPattern(a,je,t?null:n)}},E.parseExprList=function(e,t,n,r){for(var i=[],a=!0;!this.eat(e);){if(a)a=!1;else if(this.expect(b.comma),t&&this.afterTrailingComma(e))break;var o=void 0;n&&this.type===b.comma?o=null:this.type===b.ellipsis?(o=this.parseSpread(r),r&&this.type===b.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):o=this.parseMaybeAssign(!1,r),i.push(o)}return i},E.checkUnreserved=function(e){var t=e.start,n=e.end,r=e.name;this.inGenerator&&r===`yield`&&this.raiseRecoverable(t,`Cannot use 'yield' as identifier inside a generator`),this.inAsync&&r===`await`&&this.raiseRecoverable(t,`Cannot use 'await' as identifier inside an async function`),this.currentThisScope().inClassFieldInit&&r===`arguments`&&this.raiseRecoverable(t,`Cannot use 'arguments' in class field initializer`),this.inClassStaticBlock&&(r===`arguments`||r===`await`)&&this.raise(t,`Cannot use `+r+` in class static initialization block`),this.keywords.test(r)&&this.raise(t,`Unexpected keyword '`+r+`'`),!(this.options.ecmaVersion<6&&this.input.slice(t,n).indexOf(`\\`)!==-1)&&(this.strict?this.reservedWordsStrict:this.reservedWords).test(r)&&(!this.inAsync&&r===`await`&&this.raiseRecoverable(t,`Cannot use keyword 'await' outside an async function`),this.raiseRecoverable(t,`The keyword '`+r+`' is reserved`))},E.parseIdent=function(e){var t=this.startNode();return this.type===b.name?t.name=this.value:this.type.keyword?(t.name=this.type.keyword,(t.name===`class`||t.name===`function`)&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop()):this.unexpected(),this.next(!!e),this.finishNode(t,`Identifier`),e||(this.checkUnreserved(t),t.name===`await`&&!this.awaitIdentPos&&(this.awaitIdentPos=t.start)),t},E.parsePrivateIdent=function(){var e=this.startNode();return this.type===b.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,`PrivateIdentifier`),this.privateNameStack.length===0?this.raise(e.start,`Private field '#`+e.name+`' must be declared in an enclosing class`):this.privateNameStack[this.privateNameStack.length-1].used.push(e),e},E.parseYield=function(e){this.yieldPos||=this.start;var t=this.startNode();return this.next(),this.type===b.semi||this.canInsertSemicolon()||this.type!==b.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(b.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,`YieldExpression`)},E.parseAwait=function(e){this.awaitPos||=this.start;var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,`AwaitExpression`)};var $e=C.prototype;$e.raise=function(e,t){var n=me(this.input,e);t+=` (`+n.line+`:`+n.column+`)`;var r=SyntaxError(t);throw r.pos=e,r.loc=n,r.raisedAt=this.pos,r},$e.raiseRecoverable=$e.raise,$e.curPosition=function(){if(this.options.locations)return new fe(this.curLine,this.pos-this.lineStart)};var et=C.prototype,tt=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};et.enterScope=function(e){this.scopeStack.push(new tt(e))},et.exitScope=function(){this.scopeStack.pop()},et.treatFunctionsAsVarInScope=function(e){return e.flags&be||!this.inModule&&e.flags&ye},et.declareName=function(e,t,n){var r=!1;if(t===Me){var i=this.currentScope();r=i.lexical.indexOf(e)>-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&i.flags&ye&&delete this.undefinedExports[e]}else if(t===Pe)this.currentScope().lexical.push(e);else if(t===Ne){var a=this.currentScope();r=this.treatFunctionsAsVar?a.lexical.indexOf(e)>-1:a.lexical.indexOf(e)>-1||a.var.indexOf(e)>-1,a.functions.push(e)}else for(var o=this.scopeStack.length-1;o>=0;--o){var s=this.scopeStack[o];if(s.lexical.indexOf(e)>-1&&!(s.flags&we&&s.lexical[0]===e)||!this.treatFunctionsAsVarInScope(s)&&s.functions.indexOf(e)>-1){r=!0;break}if(s.var.push(e),this.inModule&&s.flags&ye&&delete this.undefinedExports[e],s.flags&Oe)break}r&&this.raiseRecoverable(n,`Identifier '`+e+`' has already been declared`)},et.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)},et.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},et.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&Oe)return t}},et.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&Oe&&!(t.flags&Ce))return t}};var nt=function(e,t,n){this.type=``,this.start=t,this.end=0,e.options.locations&&(this.loc=new pe(e,n)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},rt=C.prototype;rt.startNode=function(){return new nt(this,this.start,this.startLoc)},rt.startNodeAt=function(e,t){return new nt(this,e,t)};function it(e,t,n,r){return e.type=t,e.end=n,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=n),e}rt.finishNode=function(e,t){return it.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},rt.finishNodeAt=function(e,t,n,r){return it.call(this,e,t,n,r)},rt.copyNode=function(e){var t=new nt(this,e.start,this.startLoc);for(var n in e)t[n]=e[n];return t};var at=`ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS`,ot=at+` Extended_Pictographic`,st=ot,ct=st+` EBase EComp EMod EPres ExtPict`,lt=ct,ut={9:at,10:ot,11:st,12:ct,13:lt,14:lt},dt=`Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu`,ft=`Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb`,pt=ft+` Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd`,mt=pt+` Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho`,ht=mt+` Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi`,gt=ht+` Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith`,_t={9:ft,10:pt,11:mt,12:ht,13:gt,14:gt+` Kawi Nag_Mundari Nagm`},vt={};function yt(e){var t=vt[e]={binary:le(ut[e]+` `+dt),nonBinary:{General_Category:le(dt),Script:le(_t[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(var bt=0,xt=[9,10,11,12,13,14];bt<xt.length;bt+=1){var St=xt[bt];yt(St)}var D=C.prototype,Ct=function(e){this.parser=e,this.validFlags=`gim`+(e.options.ecmaVersion>=6?`uy`:``)+(e.options.ecmaVersion>=9?`s`:``)+(e.options.ecmaVersion>=13?`d`:``),this.unicodeProperties=vt[e.options.ecmaVersion>=14?14:e.options.ecmaVersion],this.source=``,this.flags=``,this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue=``,this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};Ct.prototype.reset=function(e,t,n){var r=n.indexOf(`u`)!==-1;this.start=e|0,this.source=t+``,this.flags=n,this.switchU=r&&this.parser.options.ecmaVersion>=6,this.switchN=r&&this.parser.options.ecmaVersion>=9},Ct.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,`Invalid regular expression: /`+this.source+`/: `+e)},Ct.prototype.at=function(e,t){t===void 0&&(t=!1);var n=this.source,r=n.length;if(e>=r)return-1;var i=n.charCodeAt(e);if(!(t||this.switchU)||i<=55295||i>=57344||e+1>=r)return i;var a=n.charCodeAt(e+1);return a>=56320&&a<=57343?(i<<10)+a-56613888:i},Ct.prototype.nextIndex=function(e,t){t===void 0&&(t=!1);var n=this.source,r=n.length;if(e>=r)return r;var i=n.charCodeAt(e),a;return!(t||this.switchU)||i<=55295||i>=57344||e+1>=r||(a=n.charCodeAt(e+1))<56320||a>57343?e+1:e+2},Ct.prototype.current=function(e){return e===void 0&&(e=!1),this.at(this.pos,e)},Ct.prototype.lookahead=function(e){return e===void 0&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},Ct.prototype.advance=function(e){e===void 0&&(e=!1),this.pos=this.nextIndex(this.pos,e)},Ct.prototype.eat=function(e,t){return t===void 0&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},D.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,r=0;r<n.length;r++){var i=n.charAt(r);t.indexOf(i)===-1&&this.raise(e.start,`Invalid regular expression flag`),n.indexOf(i,r+1)>-1&&this.raise(e.start,`Duplicate regular expression flag`)}},D.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},D.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue=``,e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise(`Unmatched ')'`),(e.eat(93)||e.eat(125))&&e.raise(`Lone quantifier brackets`)),e.maxBackReference>e.numCapturingParens&&e.raise(`Invalid escape`);for(var t=0,n=e.backReferenceNames;t<n.length;t+=1){var r=n[t];e.groupNames.indexOf(r)===-1&&e.raise(`Invalid named capture referenced`)}},D.regexp_disjunction=function(e){for(this.regexp_alternative(e);e.eat(124);)this.regexp_alternative(e);this.regexp_eatQuantifier(e,!0)&&e.raise(`Nothing to repeat`),e.eat(123)&&e.raise(`Lone quantifier brackets`)},D.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},D.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise(`Invalid quantifier`),!0):(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))?(this.regexp_eatQuantifier(e),!0):!1},D.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var n=!1;if(this.options.ecmaVersion>=9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise(`Unterminated group`),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=t,!1},D.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1},D.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},D.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var r=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return i!==-1&&i<r&&!t&&e.raise(`numbers out of order in {} quantifier`),!0;e.switchU&&!t&&e.raise(`Incomplete quantifier`),e.pos=n}return!1},D.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},D.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},D.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)&&e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise(`Unterminated group`)}e.pos=t}return!1},D.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise(`Invalid group`),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise(`Unterminated group`)}return!1},D.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},D.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise(`Nothing to repeat`),!1},D.regexp_eatSyntaxCharacter=function(e){var t=e.current();return wt(t)?(e.lastIntValue=t,e.advance(),!0):!1};function wt(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}D.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;(n=e.current())!==-1&&!wt(n);)e.advance();return e.pos!==t},D.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124&&(e.advance(),!0)},D.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e)){e.groupNames.indexOf(e.lastStringValue)!==-1&&e.raise(`Duplicate capture group name`),e.groupNames.push(e.lastStringValue);return}e.raise(`Invalid group`)}},D.regexp_eatGroupName=function(e){if(e.lastStringValue=``,e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise(`Invalid capture group name`)}return!1},D.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue=``,this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=ue(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=ue(e.lastIntValue);return!0}return!1},D.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),Tt(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function Tt(e){return f(e,!0)||e===36||e===95}D.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),Et(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function Et(e){return p(e,!0)||e===36||e===95||e===8204||e===8205}D.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise(`Invalid unicode escape`),e.raise(`Invalid escape`)),!1)},D.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU)return n>e.maxBackReference&&(e.maxBackReference=n),!0;if(n<=e.numCapturingParens)return!0;e.pos=t}return!1},D.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise(`Invalid named reference`)}return!1},D.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},D.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},D.regexp_eatZero=function(e){return e.current()===48&&!jt(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},D.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114&&(e.lastIntValue=13,e.advance(),!0)},D.regexp_eatControlLetter=function(e){var t=e.current();return Dt(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function Dt(e){return e>=65&&e<=90||e>=97&&e<=122}D.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var n=e.pos,r=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var i=e.lastIntValue;if(r&&i>=55296&&i<=56319){var a=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(o>=56320&&o<=57343)return e.lastIntValue=(i-55296)*1024+(o-56320)+65536,!0}e.pos=a,e.lastIntValue=i}return!0}if(r&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&Ot(e.lastIntValue))return!0;r&&e.raise(`Invalid unicode escape`),e.pos=n}return!1};function Ot(e){return e>=0&&e<=1114111}D.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)&&(e.lastIntValue=t,e.advance(),!0)},D.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1},D.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(kt(t))return e.lastIntValue=-1,e.advance(),!0;if(e.switchU&&this.options.ecmaVersion>=9&&(t===80||t===112)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125))return!0;e.raise(`Invalid property name`)}return!1};function kt(e){return e===100||e===68||e===115||e===83||e===119||e===87}D.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,r),!0}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i),!0}return!1},D.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){se(e.unicodeProperties.nonBinary,t)||e.raise(`Invalid property name`),e.unicodeProperties.nonBinary[t].test(n)||e.raise(`Invalid property value`)},D.regexp_validateUnicodePropertyNameOrValue=function(e,t){e.unicodeProperties.binary.test(t)||e.raise(`Invalid property name`)},D.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue=``;At(t=e.current());)e.lastStringValue+=ue(t),e.advance();return e.lastStringValue!==``};function At(e){return Dt(e)||e===95}D.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue=``;O(t=e.current());)e.lastStringValue+=ue(t),e.advance();return e.lastStringValue!==``};function O(e){return At(e)||jt(e)}D.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},D.regexp_eatCharacterClass=function(e){if(e.eat(91)){if(e.eat(94),this.regexp_classRanges(e),e.eat(93))return!0;e.raise(`Unterminated character class`)}return!1},D.regexp_classRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;e.switchU&&(t===-1||n===-1)&&e.raise(`Invalid character class`),t!==-1&&n!==-1&&t>n&&e.raise(`Range out of order in character class`)}}},D.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();(n===99||Pt(n))&&e.raise(`Invalid class escape`),e.raise(`Invalid escape`)}e.pos=t}var r=e.current();return r!==93&&(e.lastIntValue=r,e.advance(),!0)},D.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},D.regexp_eatClassControlLetter=function(e){var t=e.current();return jt(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1},D.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise(`Invalid escape`),e.pos=t}return!1},D.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;jt(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t};function jt(e){return e>=48&&e<=57}D.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Mt(n=e.current());)e.lastIntValue=16*e.lastIntValue+Nt(n),e.advance();return e.pos!==t};function Mt(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Nt(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}D.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;e.lastIntValue=t<=3&&this.regexp_eatOctalDigit(e)?t*64+n*8+e.lastIntValue:t*8+n}else e.lastIntValue=t;return!0}return!1},D.regexp_eatOctalDigit=function(e){var t=e.current();return Pt(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function Pt(e){return e>=48&&e<=55}D.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r<t;++r){var i=e.current();if(!Mt(i))return e.pos=n,!1;e.lastIntValue=16*e.lastIntValue+Nt(i),e.advance()}return!0};var Ft=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new pe(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},k=C.prototype;k.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,`Escape sequence in keyword `+this.type.keyword),this.options.onToken&&this.options.onToken(new Ft(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},k.getToken=function(){return this.next(),new Ft(this)},typeof Symbol<`u`&&(k[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===b.eof,value:t}}}}),k.nextToken=function(){var e=this.curContext();if((!e||!e.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(b.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())},k.readToken=function(e){return f(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)},k.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888},k.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,n=this.input.indexOf(`*/`,this.pos+=2);if(n===-1&&this.raise(this.pos-2,`Unterminated comment`),this.pos=n+2,this.options.locations)for(var r=void 0,i=t;(r=te(this.input,i,this.pos))>-1;)++this.curLine,i=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,n),t,this.pos,e,this.curPosition())},k.skipLineComment=function(e){for(var t=this.pos,n=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!ee(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,n,this.curPosition())},k.skipSpace=function(){loop:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break loop}break;default:if(e>8&&e<14||e>=5760&&ne.test(String.fromCharCode(e)))++this.pos;else break loop}}},k.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)},k.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(b.ellipsis)):(++this.pos,this.finishToken(b.dot))},k.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(b.assign,2):this.finishOp(b.slash,1)},k.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=e===42?b.star:b.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++n,r=b.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(b.assign,n+1):this.finishOp(r,n)},k.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.options.ecmaVersion>=12&&this.input.charCodeAt(this.pos+2)===61?this.finishOp(b.assign,3):this.finishOp(e===124?b.logicalOR:b.logicalAND,2):t===61?this.finishOp(b.assign,2):this.finishOp(e===124?b.bitwiseOR:b.bitwiseAND,1)},k.readToken_caret=function(){return this.input.charCodeAt(this.pos+1)===61?this.finishOp(b.assign,2):this.finishOp(b.bitwiseXOR,1)},k.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||x.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(b.incDec,2):t===61?this.finishOp(b.assign,2):this.finishOp(b.plusMin,1)},k.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+n)===61?this.finishOp(b.assign,n+1):this.finishOp(b.bitShift,n)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(n=2),this.finishOp(b.relational,n))},k.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(b.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(b.arrow)):this.finishOp(e===61?b.eq:b.prefix,1)},k.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57)return this.finishOp(b.questionDot,2)}if(t===63)return e>=12&&this.input.charCodeAt(this.pos+2)===61?this.finishOp(b.assign,3):this.finishOp(b.coalesce,2)}return this.finishOp(b.question,1)},k.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),f(t,!0)||t===92))return this.finishToken(b.privateId,this.readWord1());this.raise(this.pos,`Unexpected character '`+ue(t)+`'`)},k.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(b.parenL);case 41:return++this.pos,this.finishToken(b.parenR);case 59:return++this.pos,this.finishToken(b.semi);case 44:return++this.pos,this.finishToken(b.comma);case 91:return++this.pos,this.finishToken(b.bracketL);case 93:return++this.pos,this.finishToken(b.bracketR);case 123:return++this.pos,this.finishToken(b.braceL);case 125:return++this.pos,this.finishToken(b.braceR);case 58:return++this.pos,this.finishToken(b.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(b.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(b.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,`Unexpected character '`+ue(e)+`'`)},k.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},k.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,`Unterminated regular expression`);var r=this.input.charAt(this.pos);if(x.test(r)&&this.raise(n,`Unterminated regular expression`),e)e=!1;else{if(r===`[`)t=!0;else if(r===`]`&&t)t=!1;else if(r===`/`&&!t)break;e=r===`\\`}++this.pos}var i=this.input.slice(n,this.pos);++this.pos;var a=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(a);var s=this.regexpState||=new Ct(this);s.reset(n,i,o),this.validateRegExpFlags(s),this.validateRegExpPattern(s);var c=null;try{c=new RegExp(i,o)}catch{}return this.finishToken(b.regexp,{pattern:i,flags:o,value:c})},k.readInt=function(e,t,n){for(var r=this.options.ecmaVersion>=12&&t===void 0,i=n&&this.input.charCodeAt(this.pos)===48,a=this.pos,o=0,s=0,c=0,l=t??1/0;c<l;++c,++this.pos){var u=this.input.charCodeAt(this.pos),d=void 0;if(r&&u===95)i&&this.raiseRecoverable(this.pos,`Numeric separator is not allowed in legacy octal numeric literals`),s===95&&this.raiseRecoverable(this.pos,`Numeric separator must be exactly one underscore`),c===0&&this.raiseRecoverable(this.pos,`Numeric separator is not allowed at the first of digits`),s=u;else{if(d=u>=97?u-97+10:u>=65?u-65+10:u>=48&&u<=57?u-48:1/0,d>=e)break;s=u,o=o*e+d}}return r&&s===95&&this.raiseRecoverable(this.pos-1,`Numeric separator is not allowed at the last of digits`),this.pos===a||t!=null&&this.pos-a!==t?null:o};function It(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,``))}function Lt(e){return typeof BigInt==`function`?BigInt(e.replace(/_/g,``)):null}k.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var n=this.readInt(e);return n??this.raise(this.start+2,`Expected number in radix `+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(n=Lt(this.input.slice(t,this.pos)),++this.pos):f(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`),this.finishToken(b.num,n)},k.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,`Invalid number`);var n=this.pos-t>=2&&this.input.charCodeAt(t)===48;n&&this.strict&&this.raise(t,`Invalid number`);var r=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&r===110){var i=Lt(this.input.slice(t,this.pos));return++this.pos,f(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`),this.finishToken(b.num,i)}n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1),r===46&&!n&&(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),(r===69||r===101)&&!n&&(r=this.input.charCodeAt(++this.pos),(r===43||r===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,`Invalid number`)),f(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`);var a=It(this.input.slice(t,this.pos),n);return this.finishToken(b.num,a)},k.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var n=++this.pos;t=this.readHexChar(this.input.indexOf(`}`,this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(n,`Code point out of bounds`)}else t=this.readHexChar(4);return t},k.readString=function(e){for(var t=``,n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated string constant`);var r=this.input.charCodeAt(this.pos);if(r===e)break;r===92?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):r===8232||r===8233?(this.options.ecmaVersion<10&&this.raise(this.start,`Unterminated string constant`),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(ee(r)&&this.raise(this.start,`Unterminated string constant`),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(b.string,t)};var Rt={};k.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===Rt)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1},k.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Rt;this.raise(e,t)},k.readTmplToken=function(){for(var e=``,t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated template`);var n=this.input.charCodeAt(this.pos);if(n===96||n===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===b.template||this.type===b.invalidTemplate)?n===36?(this.pos+=2,this.finishToken(b.dollarBraceL)):(++this.pos,this.finishToken(b.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(b.template,e));if(n===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(ee(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
|
|
11
|
+
`),cooked:this.value},this.next(),n.tail=this.type===b.backQuote,this.finishNode(n,`TemplateElement`)},E.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(n.quasis=[r];!r.tail;)this.type===b.eof&&this.raise(this.pos,`Unterminated template literal`),this.expect(b.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(b.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,`TemplateLiteral`)},E.isAsyncProp=function(e){return!e.computed&&e.key.type===`Identifier`&&e.key.name===`async`&&(this.type===b.name||this.type===b.num||this.type===b.string||this.type===b.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===b.star)&&!x.test(this.input.slice(this.lastTokEnd,this.start))},E.parseObj=function(e,t){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(b.braceR);){if(r)r=!1;else if(this.expect(b.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(b.braceR))break;var a=this.parseProperty(e,t);e||this.checkPropClash(a,i,t),n.properties.push(a)}return this.finishNode(n,e?`ObjectPattern`:`ObjectExpression`)},E.parseProperty=function(e,t){var n=this.startNode(),r,i,a,o;if(this.options.ecmaVersion>=9&&this.eat(b.ellipsis))return e?(n.argument=this.parseIdent(!1),this.type===b.comma&&this.raise(this.start,`Comma is not permitted after the rest element`),this.finishNode(n,`RestElement`)):(n.argument=this.parseMaybeAssign(!1,t),this.type===b.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(n,`SpreadElement`));this.options.ecmaVersion>=6&&(n.method=!1,n.shorthand=!1,(e||t)&&(a=this.start,o=this.startLoc),e||(r=this.eat(b.star)));var s=this.containsEsc;return this.parsePropertyName(n),!e&&!s&&this.options.ecmaVersion>=8&&!r&&this.isAsyncProp(n)?(i=!0,r=this.options.ecmaVersion>=9&&this.eat(b.star),this.parsePropertyName(n)):i=!1,this.parsePropertyValue(n,e,r,i,a,o,t,s),this.finishNode(n,`Property`)},E.parsePropertyValue=function(e,t,n,r,i,a,o,s){if((n||r)&&this.type===b.colon&&this.unexpected(),this.eat(b.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind=`init`;else if(this.options.ecmaVersion>=6&&this.type===b.parenL)t&&this.unexpected(),e.kind=`init`,e.method=!0,e.value=this.parseMethod(n,r);else if(!t&&!s&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type===`Identifier`&&(e.key.name===`get`||e.key.name===`set`)&&this.type!==b.comma&&this.type!==b.braceR&&this.type!==b.eq){(n||r)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var c=e.kind===`get`?0:1;if(e.value.params.length!==c){var l=e.value.start;e.kind===`get`?this.raiseRecoverable(l,`getter should have no params`):this.raiseRecoverable(l,`setter should have exactly one param`)}else e.kind===`set`&&e.value.params[0].type===`RestElement`&&this.raiseRecoverable(e.value.params[0].start,`Setter cannot use rest params`)}else this.options.ecmaVersion>=6&&!e.computed&&e.key.type===`Identifier`?((n||r)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name===`await`&&!this.awaitIdentPos&&(this.awaitIdentPos=i),e.kind=`init`,t?e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key)):this.type===b.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected()},E.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(b.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(b.bracketR),e.key;e.computed=!1}return e.key=this.type===b.num||this.type===b.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!==`never`)},E.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},E.parseMethod=function(e,t,n){var r=this.startNode(),i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=e),this.options.ecmaVersion>=8&&(r.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(ke(t,r.generator)|Te|(n?Ee:0)),this.expect(b.parenL),r.params=this.parseBindingList(b.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(r,`FunctionExpression`)},E.parseArrowExpression=function(e,t,n,r){var i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.enterScope(ke(n,!1)|Ce),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,r),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,`ArrowFunctionExpression`)},E.parseFunctionBody=function(e,t,n,r){var i=t&&this.type!==b.braceL,a=this.strict,o=!1;if(i)e.body=this.parseMaybeAssign(r),e.expression=!0,this.checkParams(e,!1);else{var s=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!a||s)&&(o=this.strictDirective(this.end),o&&s&&this.raiseRecoverable(e.start,`Illegal 'use strict' directive in function with non-simple parameter list`));var c=this.labels;this.labels=[],o&&(this.strict=!0),this.checkParams(e,!a&&!o&&!t&&!n&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,Fe),e.body=this.parseBlock(!1,void 0,o&&!a),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=c}this.exitScope()},E.isSimpleParamList=function(e){for(var t=0,n=e;t<n.length;t+=1)if(n[t].type!==`Identifier`)return!1;return!0},E.checkParams=function(e,t){for(var n=/* @__PURE__ */ Object.create(null),r=0,i=e.params;r<i.length;r+=1){var a=i[r];this.checkLValInnerPattern(a,je,t?null:n)}},E.parseExprList=function(e,t,n,r){for(var i=[],a=!0;!this.eat(e);){if(a)a=!1;else if(this.expect(b.comma),t&&this.afterTrailingComma(e))break;var o=void 0;n&&this.type===b.comma?o=null:this.type===b.ellipsis?(o=this.parseSpread(r),r&&this.type===b.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):o=this.parseMaybeAssign(!1,r),i.push(o)}return i},E.checkUnreserved=function(e){var t=e.start,n=e.end,r=e.name;this.inGenerator&&r===`yield`&&this.raiseRecoverable(t,`Cannot use 'yield' as identifier inside a generator`),this.inAsync&&r===`await`&&this.raiseRecoverable(t,`Cannot use 'await' as identifier inside an async function`),this.currentThisScope().inClassFieldInit&&r===`arguments`&&this.raiseRecoverable(t,`Cannot use 'arguments' in class field initializer`),this.inClassStaticBlock&&(r===`arguments`||r===`await`)&&this.raise(t,`Cannot use `+r+` in class static initialization block`),this.keywords.test(r)&&this.raise(t,`Unexpected keyword '`+r+`'`),this.options.ecmaVersion<6&&this.input.slice(t,n).indexOf(`\\`)!==-1||(this.strict?this.reservedWordsStrict:this.reservedWords).test(r)&&(!this.inAsync&&r===`await`&&this.raiseRecoverable(t,`Cannot use keyword 'await' outside an async function`),this.raiseRecoverable(t,`The keyword '`+r+`' is reserved`))},E.parseIdent=function(e){var t=this.startNode();return this.type===b.name?t.name=this.value:this.type.keyword?(t.name=this.type.keyword,t.name!==`class`&&t.name!==`function`||this.lastTokEnd===this.lastTokStart+1&&this.input.charCodeAt(this.lastTokStart)===46||this.context.pop()):this.unexpected(),this.next(!!e),this.finishNode(t,`Identifier`),e||(this.checkUnreserved(t),t.name===`await`&&!this.awaitIdentPos&&(this.awaitIdentPos=t.start)),t},E.parsePrivateIdent=function(){var e=this.startNode();return this.type===b.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,`PrivateIdentifier`),this.privateNameStack.length===0?this.raise(e.start,`Private field '#`+e.name+`' must be declared in an enclosing class`):this.privateNameStack[this.privateNameStack.length-1].used.push(e),e},E.parseYield=function(e){this.yieldPos||=this.start;var t=this.startNode();return this.next(),this.type===b.semi||this.canInsertSemicolon()||this.type!==b.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(b.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,`YieldExpression`)},E.parseAwait=function(e){this.awaitPos||=this.start;var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,`AwaitExpression`)};var $e=C.prototype;$e.raise=function(e,t){var n=me(this.input,e);t+=` (`+n.line+`:`+n.column+`)`;var r=SyntaxError(t);throw r.pos=e,r.loc=n,r.raisedAt=this.pos,r},$e.raiseRecoverable=$e.raise,$e.curPosition=function(){if(this.options.locations)return new fe(this.curLine,this.pos-this.lineStart)};var et=C.prototype,tt=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};et.enterScope=function(e){this.scopeStack.push(new tt(e))},et.exitScope=function(){this.scopeStack.pop()},et.treatFunctionsAsVarInScope=function(e){return e.flags&be||!this.inModule&&e.flags&ye},et.declareName=function(e,t,n){var r=!1;if(t===Me){var i=this.currentScope();r=i.lexical.indexOf(e)>-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&i.flags&ye&&delete this.undefinedExports[e]}else if(t===Pe)this.currentScope().lexical.push(e);else if(t===Ne){var a=this.currentScope();r=this.treatFunctionsAsVar?a.lexical.indexOf(e)>-1:a.lexical.indexOf(e)>-1||a.var.indexOf(e)>-1,a.functions.push(e)}else for(var o=this.scopeStack.length-1;o>=0;--o){var s=this.scopeStack[o];if(s.lexical.indexOf(e)>-1&&!(s.flags&we&&s.lexical[0]===e)||!this.treatFunctionsAsVarInScope(s)&&s.functions.indexOf(e)>-1){r=!0;break}if(s.var.push(e),this.inModule&&s.flags&ye&&delete this.undefinedExports[e],s.flags&Oe)break}r&&this.raiseRecoverable(n,`Identifier '`+e+`' has already been declared`)},et.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)},et.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},et.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&Oe)return t}},et.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&Oe&&!(t.flags&Ce))return t}};var nt=function(e,t,n){this.type=``,this.start=t,this.end=0,e.options.locations&&(this.loc=new pe(e,n)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},rt=C.prototype;rt.startNode=function(){return new nt(this,this.start,this.startLoc)},rt.startNodeAt=function(e,t){return new nt(this,e,t)};function it(e,t,n,r){return e.type=t,e.end=n,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=n),e}rt.finishNode=function(e,t){return it.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},rt.finishNodeAt=function(e,t,n,r){return it.call(this,e,t,n,r)},rt.copyNode=function(e){var t=new nt(this,e.start,this.startLoc);for(var n in e)t[n]=e[n];return t};var at=`ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS`,ot=at+` Extended_Pictographic`,st=ot,ct=st+` EBase EComp EMod EPres ExtPict`,lt=ct,ut={9:at,10:ot,11:st,12:ct,13:lt,14:lt},dt=`Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu`,ft=`Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb`,pt=ft+` Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd`,mt=pt+` Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho`,ht=mt+` Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi`,gt=ht+` Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith`,_t={9:ft,10:pt,11:mt,12:ht,13:gt,14:gt+` Kawi Nag_Mundari Nagm`},vt={};function yt(e){var t=vt[e]={binary:le(ut[e]+` `+dt),nonBinary:{General_Category:le(dt),Script:le(_t[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(var bt=0,xt=[9,10,11,12,13,14];bt<xt.length;bt+=1){var St=xt[bt];yt(St)}var D=C.prototype,Ct=function(e){this.parser=e,this.validFlags=`gim`+(e.options.ecmaVersion>=6?`uy`:``)+(e.options.ecmaVersion>=9?`s`:``)+(e.options.ecmaVersion>=13?`d`:``),this.unicodeProperties=vt[e.options.ecmaVersion>=14?14:e.options.ecmaVersion],this.source=``,this.flags=``,this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue=``,this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};Ct.prototype.reset=function(e,t,n){var r=n.indexOf(`u`)!==-1;this.start=e|0,this.source=t+``,this.flags=n,this.switchU=r&&this.parser.options.ecmaVersion>=6,this.switchN=r&&this.parser.options.ecmaVersion>=9},Ct.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,`Invalid regular expression: /`+this.source+`/: `+e)},Ct.prototype.at=function(e,t){t===void 0&&(t=!1);var n=this.source,r=n.length;if(e>=r)return-1;var i=n.charCodeAt(e);if(!(t||this.switchU)||i<=55295||i>=57344||e+1>=r)return i;var a=n.charCodeAt(e+1);return a>=56320&&a<=57343?(i<<10)+a-56613888:i},Ct.prototype.nextIndex=function(e,t){t===void 0&&(t=!1);var n=this.source,r=n.length;if(e>=r)return r;var i=n.charCodeAt(e),a;return!(t||this.switchU)||i<=55295||i>=57344||e+1>=r||(a=n.charCodeAt(e+1))<56320||a>57343?e+1:e+2},Ct.prototype.current=function(e){return e===void 0&&(e=!1),this.at(this.pos,e)},Ct.prototype.lookahead=function(e){return e===void 0&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},Ct.prototype.advance=function(e){e===void 0&&(e=!1),this.pos=this.nextIndex(this.pos,e)},Ct.prototype.eat=function(e,t){return t===void 0&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},D.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,r=0;r<n.length;r++){var i=n.charAt(r);t.indexOf(i)===-1&&this.raise(e.start,`Invalid regular expression flag`),n.indexOf(i,r+1)>-1&&this.raise(e.start,`Duplicate regular expression flag`)}},D.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},D.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue=``,e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise(`Unmatched ')'`),(e.eat(93)||e.eat(125))&&e.raise(`Lone quantifier brackets`)),e.maxBackReference>e.numCapturingParens&&e.raise(`Invalid escape`);for(var t=0,n=e.backReferenceNames;t<n.length;t+=1){var r=n[t];e.groupNames.indexOf(r)===-1&&e.raise(`Invalid named capture referenced`)}},D.regexp_disjunction=function(e){for(this.regexp_alternative(e);e.eat(124);)this.regexp_alternative(e);this.regexp_eatQuantifier(e,!0)&&e.raise(`Nothing to repeat`),e.eat(123)&&e.raise(`Lone quantifier brackets`)},D.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},D.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise(`Invalid quantifier`),!0):(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))?(this.regexp_eatQuantifier(e),!0):!1},D.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var n=!1;if(this.options.ecmaVersion>=9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise(`Unterminated group`),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=t,!1},D.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1},D.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},D.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var r=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return i!==-1&&i<r&&!t&&e.raise(`numbers out of order in {} quantifier`),!0;e.switchU&&!t&&e.raise(`Incomplete quantifier`),e.pos=n}return!1},D.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},D.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},D.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)&&e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise(`Unterminated group`)}e.pos=t}return!1},D.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise(`Invalid group`),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise(`Unterminated group`)}return!1},D.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},D.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise(`Nothing to repeat`),!1},D.regexp_eatSyntaxCharacter=function(e){var t=e.current();return wt(t)?(e.lastIntValue=t,e.advance(),!0):!1};function wt(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}D.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;(n=e.current())!==-1&&!wt(n);)e.advance();return e.pos!==t},D.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124&&(e.advance(),!0)},D.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e)){e.groupNames.indexOf(e.lastStringValue)!==-1&&e.raise(`Duplicate capture group name`),e.groupNames.push(e.lastStringValue);return}e.raise(`Invalid group`)}},D.regexp_eatGroupName=function(e){if(e.lastStringValue=``,e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise(`Invalid capture group name`)}return!1},D.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue=``,this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=ue(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=ue(e.lastIntValue);return!0}return!1},D.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),Tt(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function Tt(e){return f(e,!0)||e===36||e===95}D.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),Et(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function Et(e){return p(e,!0)||e===36||e===95||e===8204||e===8205}D.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise(`Invalid unicode escape`),e.raise(`Invalid escape`)),!1)},D.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU)return n>e.maxBackReference&&(e.maxBackReference=n),!0;if(n<=e.numCapturingParens)return!0;e.pos=t}return!1},D.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise(`Invalid named reference`)}return!1},D.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},D.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},D.regexp_eatZero=function(e){return e.current()===48&&!jt(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},D.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114&&(e.lastIntValue=13,e.advance(),!0)},D.regexp_eatControlLetter=function(e){var t=e.current();return Dt(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function Dt(e){return e>=65&&e<=90||e>=97&&e<=122}D.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var n=e.pos,r=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var i=e.lastIntValue;if(r&&i>=55296&&i<=56319){var a=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(o>=56320&&o<=57343)return e.lastIntValue=(i-55296)*1024+(o-56320)+65536,!0}e.pos=a,e.lastIntValue=i}return!0}if(r&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&Ot(e.lastIntValue))return!0;r&&e.raise(`Invalid unicode escape`),e.pos=n}return!1};function Ot(e){return e>=0&&e<=1114111}D.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)&&(e.lastIntValue=t,e.advance(),!0)},D.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1},D.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(kt(t))return e.lastIntValue=-1,e.advance(),!0;if(e.switchU&&this.options.ecmaVersion>=9&&(t===80||t===112)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125))return!0;e.raise(`Invalid property name`)}return!1};function kt(e){return e===100||e===68||e===115||e===83||e===119||e===87}D.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,r),!0}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i),!0}return!1},D.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){se(e.unicodeProperties.nonBinary,t)||e.raise(`Invalid property name`),e.unicodeProperties.nonBinary[t].test(n)||e.raise(`Invalid property value`)},D.regexp_validateUnicodePropertyNameOrValue=function(e,t){e.unicodeProperties.binary.test(t)||e.raise(`Invalid property name`)},D.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue=``;At(t=e.current());)e.lastStringValue+=ue(t),e.advance();return e.lastStringValue!==``};function At(e){return Dt(e)||e===95}D.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue=``;O(t=e.current());)e.lastStringValue+=ue(t),e.advance();return e.lastStringValue!==``};function O(e){return At(e)||jt(e)}D.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},D.regexp_eatCharacterClass=function(e){if(e.eat(91)){if(e.eat(94),this.regexp_classRanges(e),e.eat(93))return!0;e.raise(`Unterminated character class`)}return!1},D.regexp_classRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;e.switchU&&(t===-1||n===-1)&&e.raise(`Invalid character class`),t!==-1&&n!==-1&&t>n&&e.raise(`Range out of order in character class`)}}},D.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();(n===99||Pt(n))&&e.raise(`Invalid class escape`),e.raise(`Invalid escape`)}e.pos=t}var r=e.current();return r!==93&&(e.lastIntValue=r,e.advance(),!0)},D.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},D.regexp_eatClassControlLetter=function(e){var t=e.current();return jt(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1},D.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise(`Invalid escape`),e.pos=t}return!1},D.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;jt(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t};function jt(e){return e>=48&&e<=57}D.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Mt(n=e.current());)e.lastIntValue=16*e.lastIntValue+Nt(n),e.advance();return e.pos!==t};function Mt(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Nt(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}D.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;e.lastIntValue=t<=3&&this.regexp_eatOctalDigit(e)?t*64+n*8+e.lastIntValue:t*8+n}else e.lastIntValue=t;return!0}return!1},D.regexp_eatOctalDigit=function(e){var t=e.current();return Pt(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function Pt(e){return e>=48&&e<=55}D.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r<t;++r){var i=e.current();if(!Mt(i))return e.pos=n,!1;e.lastIntValue=16*e.lastIntValue+Nt(i),e.advance()}return!0};var Ft=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new pe(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},k=C.prototype;k.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,`Escape sequence in keyword `+this.type.keyword),this.options.onToken&&this.options.onToken(new Ft(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},k.getToken=function(){return this.next(),new Ft(this)},typeof Symbol<`u`&&(k[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===b.eof,value:t}}}}),k.nextToken=function(){var e=this.curContext();if(e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(b.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())},k.readToken=function(e){return f(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)},k.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888},k.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,n=this.input.indexOf(`*/`,this.pos+=2);if(n===-1&&this.raise(this.pos-2,`Unterminated comment`),this.pos=n+2,this.options.locations)for(var r=void 0,i=t;(r=te(this.input,i,this.pos))>-1;)++this.curLine,i=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,n),t,this.pos,e,this.curPosition())},k.skipLineComment=function(e){for(var t=this.pos,n=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!ee(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,n,this.curPosition())},k.skipSpace=function(){loop:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break loop}break;default:if(e>8&&e<14||e>=5760&&ne.test(String.fromCharCode(e)))++this.pos;else break loop}}},k.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)},k.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(b.ellipsis)):(++this.pos,this.finishToken(b.dot))},k.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(b.assign,2):this.finishOp(b.slash,1)},k.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=e===42?b.star:b.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++n,r=b.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(b.assign,n+1):this.finishOp(r,n)},k.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.options.ecmaVersion>=12&&this.input.charCodeAt(this.pos+2)===61?this.finishOp(b.assign,3):this.finishOp(e===124?b.logicalOR:b.logicalAND,2):t===61?this.finishOp(b.assign,2):this.finishOp(e===124?b.bitwiseOR:b.bitwiseAND,1)},k.readToken_caret=function(){return this.input.charCodeAt(this.pos+1)===61?this.finishOp(b.assign,2):this.finishOp(b.bitwiseXOR,1)},k.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||x.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(b.incDec,2):t===61?this.finishOp(b.assign,2):this.finishOp(b.plusMin,1)},k.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+n)===61?this.finishOp(b.assign,n+1):this.finishOp(b.bitShift,n)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(n=2),this.finishOp(b.relational,n))},k.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(b.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(b.arrow)):this.finishOp(e===61?b.eq:b.prefix,1)},k.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57)return this.finishOp(b.questionDot,2)}if(t===63)return e>=12&&this.input.charCodeAt(this.pos+2)===61?this.finishOp(b.assign,3):this.finishOp(b.coalesce,2)}return this.finishOp(b.question,1)},k.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),f(t,!0)||t===92))return this.finishToken(b.privateId,this.readWord1());this.raise(this.pos,`Unexpected character '`+ue(t)+`'`)},k.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(b.parenL);case 41:return++this.pos,this.finishToken(b.parenR);case 59:return++this.pos,this.finishToken(b.semi);case 44:return++this.pos,this.finishToken(b.comma);case 91:return++this.pos,this.finishToken(b.bracketL);case 93:return++this.pos,this.finishToken(b.bracketR);case 123:return++this.pos,this.finishToken(b.braceL);case 125:return++this.pos,this.finishToken(b.braceR);case 58:return++this.pos,this.finishToken(b.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(b.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(b.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,`Unexpected character '`+ue(e)+`'`)},k.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},k.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,`Unterminated regular expression`);var r=this.input.charAt(this.pos);if(x.test(r)&&this.raise(n,`Unterminated regular expression`),e)e=!1;else{if(r===`[`)t=!0;else if(r===`]`&&t)t=!1;else if(r===`/`&&!t)break;e=r===`\\`}++this.pos}var i=this.input.slice(n,this.pos);++this.pos;var a=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(a);var s=this.regexpState||=new Ct(this);s.reset(n,i,o),this.validateRegExpFlags(s),this.validateRegExpPattern(s);var c=null;try{c=new RegExp(i,o)}catch{}return this.finishToken(b.regexp,{pattern:i,flags:o,value:c})},k.readInt=function(e,t,n){for(var r=this.options.ecmaVersion>=12&&t===void 0,i=n&&this.input.charCodeAt(this.pos)===48,a=this.pos,o=0,s=0,c=0,l=t??1/0;c<l;++c,++this.pos){var u=this.input.charCodeAt(this.pos),d=void 0;if(r&&u===95)i&&this.raiseRecoverable(this.pos,`Numeric separator is not allowed in legacy octal numeric literals`),s===95&&this.raiseRecoverable(this.pos,`Numeric separator must be exactly one underscore`),c===0&&this.raiseRecoverable(this.pos,`Numeric separator is not allowed at the first of digits`),s=u;else{if(d=u>=97?u-97+10:u>=65?u-65+10:u>=48&&u<=57?u-48:1/0,d>=e)break;s=u,o=o*e+d}}return r&&s===95&&this.raiseRecoverable(this.pos-1,`Numeric separator is not allowed at the last of digits`),this.pos===a||t!=null&&this.pos-a!==t?null:o};function It(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,``))}function Lt(e){return typeof BigInt==`function`?BigInt(e.replace(/_/g,``)):null}k.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var n=this.readInt(e);return n??this.raise(this.start+2,`Expected number in radix `+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(n=Lt(this.input.slice(t,this.pos)),++this.pos):f(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`),this.finishToken(b.num,n)},k.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,`Invalid number`);var n=this.pos-t>=2&&this.input.charCodeAt(t)===48;n&&this.strict&&this.raise(t,`Invalid number`);var r=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&r===110){var i=Lt(this.input.slice(t,this.pos));return++this.pos,f(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`),this.finishToken(b.num,i)}n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1),r===46&&!n&&(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),r!==69&&r!==101||n||(r=this.input.charCodeAt(++this.pos),(r===43||r===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,`Invalid number`)),f(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`);var a=It(this.input.slice(t,this.pos),n);return this.finishToken(b.num,a)},k.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var n=++this.pos;t=this.readHexChar(this.input.indexOf(`}`,this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(n,`Code point out of bounds`)}else t=this.readHexChar(4);return t},k.readString=function(e){for(var t=``,n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated string constant`);var r=this.input.charCodeAt(this.pos);if(r===e)break;r===92?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):r===8232||r===8233?(this.options.ecmaVersion<10&&this.raise(this.start,`Unterminated string constant`),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(ee(r)&&this.raise(this.start,`Unterminated string constant`),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(b.string,t)};var Rt={};k.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===Rt)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1},k.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Rt;this.raise(e,t)},k.readTmplToken=function(){for(var e=``,t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated template`);var n=this.input.charCodeAt(this.pos);if(n===96||n===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===b.template||this.type===b.invalidTemplate)?n===36?(this.pos+=2,this.finishToken(b.dollarBraceL)):(++this.pos,this.finishToken(b.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(b.template,e));if(n===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(ee(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
|
|
12
12
|
`;break;default:e+=String.fromCharCode(n)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},k.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case`\\`:++this.pos;break;case`$`:if(this.input[this.pos+1]!==`{`)break;case"`":return this.finishToken(b.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,`Unterminated template`)},k.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
|
|
13
13
|
`;case 114:return`\r`;case 120:return String.fromCharCode(this.readHexChar(2));case 117:return ue(this.readCodePoint());case 116:return` `;case 98:return`\b`;case 118:return`\v`;case 102:return`\f`;case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),``;case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,`Invalid escape sequence`),e){var n=this.pos-1;this.invalidStringToken(n,`Invalid escape sequence in template string`)}default:if(t>=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(r,8);return i>255&&(r=r.slice(0,-1),i=parseInt(r,8)),this.pos+=r.length-1,t=this.input.charCodeAt(this.pos),(r!==`0`||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-r.length,e?`Octal literal in template string`:`Octal literal in strict mode`),String.fromCharCode(i)}return ee(t)?``:String.fromCharCode(t)}},k.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return n===null&&this.invalidStringToken(t,`Bad character escape sequence`),n},k.readWord1=function(){this.containsEsc=!1;for(var e=``,t=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(p(i,r))this.pos+=i<=65535?1:2;else if(i===92){this.containsEsc=!0,e+=this.input.slice(n,this.pos);var a=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,`Expecting Unicode escape sequence \\uXXXX`),++this.pos;var o=this.readCodePoint();(t?f:p)(o,r)||this.invalidStringToken(a,`Invalid Unicode escape`),e+=ue(o),n=this.pos}else break;t=!1}return e+this.input.slice(n,this.pos)},k.readWord=function(){var e=this.readWord1(),t=b.name;return this.keywords.test(e)&&(t=v[e]),this.finishToken(t,e)};var zt=`8.8.2`;C.acorn={Parser:C,version:zt,defaultOptions:he,Position:fe,SourceLocation:pe,getLineInfo:me,Node:nt,TokenType:m,tokTypes:b,keywordTypes:v,TokContext:Ye,tokContexts:T,isIdentifierChar:p,isIdentifierStart:f,Token:Ft,isNewLine:ee,lineBreak:x,lineBreakG:S,nonASCIIwhitespace:ne};function Bt(e,t){return C.parse(e,t)}function Vt(e,t,n){return C.parseExpressionAt(e,t,n)}function Ht(e,t){return C.tokenizer(e,t)}e.Node=nt,e.Parser=C,e.Position=fe,e.SourceLocation=pe,e.TokContext=Ye,e.Token=Ft,e.TokenType=m,e.defaultOptions=he,e.getLineInfo=me,e.isIdentifierChar=p,e.isIdentifierStart=f,e.isNewLine=ee,e.keywordTypes=v,e.lineBreak=x,e.lineBreakG=S,e.nonASCIIwhitespace=ne,e.parse=Bt,e.parseExpressionAt=Vt,e.tokContexts=T,e.tokTypes=b,e.tokenizer=Ht,e.version=zt}))}}),At=Tt({"../../node_modules/acorn-jsx/index.js"(e,t){var n=Ot(),r=/^[\da-fA-F]+$/,i=/^\d+$/,a=/* @__PURE__ */ new WeakMap;function o(e){e=e.Parser.acorn||e;let t=a.get(e);if(!t){let n=e.tokTypes,r=e.TokContext,i=e.TokenType,o=new r(`<tag`,!1),s=new r(`</tag`,!1),c=new r(`<tag>...</tag>`,!0,!0),l={tc_oTag:o,tc_cTag:s,tc_expr:c},u={jsxName:new i(`jsxName`),jsxText:new i(`jsxText`,{beforeExpr:!0}),jsxTagStart:new i(`jsxTagStart`,{startsExpr:!0}),jsxTagEnd:new i(`jsxTagEnd`)};u.jsxTagStart.updateContext=function(){this.context.push(c),this.context.push(o),this.exprAllowed=!1},u.jsxTagEnd.updateContext=function(e){let t=this.context.pop();t===o&&e===n.slash||t===s?(this.context.pop(),this.exprAllowed=this.curContext()===c):this.exprAllowed=!0},t={tokContexts:l,tokTypes:u},a.set(e,t)}return t}function s(e){if(!e)return e;if(e.type===`JSXIdentifier`)return e.name;if(e.type===`JSXNamespacedName`)return e.namespace.name+`:`+e.name.name;if(e.type===`JSXMemberExpression`)return s(e.object)+`.`+s(e.property)}t.exports=function(e){return e||={},function(t){return c({allowNamespaces:e.allowNamespaces!==!1,allowNamespacedObjects:!!e.allowNamespacedObjects},t)}},Object.defineProperty(t.exports,"tokTypes",{get:function(){return o(kt()).tokTypes},configurable:!0,enumerable:!0});function c(e,t){let a=t.acorn||kt(),c=o(a),l=a.tokTypes,u=c.tokTypes,d=a.tokContexts,f=c.tokContexts.tc_oTag,p=c.tokContexts.tc_cTag,m=c.tokContexts.tc_expr,h=a.isNewLine,g=a.isIdentifierStart,_=a.isIdentifierChar;return class extends t{static get acornJsx(){return c}jsx_readToken(){let e=``,t=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated JSX contents`);let n=this.input.charCodeAt(this.pos);switch(n){case 60:case 123:return this.pos===this.start?n===60&&this.exprAllowed?(++this.pos,this.finishToken(u.jsxTagStart)):this.getTokenFromCode(n):(e+=this.input.slice(t,this.pos),this.finishToken(u.jsxText,e));case 38:e+=this.input.slice(t,this.pos),e+=this.jsx_readEntity(),t=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(n===62?`>`:`}`)+'` or `{"'+this.input[this.pos]+'"}`?');default:h(n)?(e+=this.input.slice(t,this.pos),e+=this.jsx_readNewLine(!0),t=this.pos):++this.pos}}}jsx_readNewLine(e){let t=this.input.charCodeAt(this.pos),n;return++this.pos,t===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,n=e?`
|
|
14
14
|
`:`\r
|
|
15
15
|
`):n=String.fromCharCode(t),this.options.locations&&(++this.curLine,this.lineStart=this.pos),n}jsx_readString(e){let t=``,n=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated string constant`);let r=this.input.charCodeAt(this.pos);if(r===e)break;r===38?(t+=this.input.slice(n,this.pos),t+=this.jsx_readEntity(),n=this.pos):h(r)?(t+=this.input.slice(n,this.pos),t+=this.jsx_readNewLine(!1),n=this.pos):++this.pos}return t+=this.input.slice(n,this.pos++),this.finishToken(l.string,t)}jsx_readEntity(){let e=``,t=0,a,o=this.input[this.pos];o!==`&`&&this.raise(this.pos,`Entity must start with an ampersand`);let s=++this.pos;for(;this.pos<this.input.length&&t++<10;){if(o=this.input[this.pos++],o===`;`){e[0]===`#`?e[1]===`x`?(e=e.substr(2),r.test(e)&&(a=String.fromCharCode(parseInt(e,16)))):(e=e.substr(1),i.test(e)&&(a=String.fromCharCode(parseInt(e,10)))):a=n[e];break}e+=o}return a||(this.pos=s,`&`)}jsx_readWord(){let e,t=this.pos;do e=this.input.charCodeAt(++this.pos);while(_(e)||e===45);return this.finishToken(u.jsxName,this.input.slice(t,this.pos))}jsx_parseIdentifier(){let e=this.startNode();return this.type===u.jsxName?e.name=this.value:this.type.keyword?e.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(e,`JSXIdentifier`)}jsx_parseNamespacedName(){let t=this.start,n=this.startLoc,r=this.jsx_parseIdentifier();if(!e.allowNamespaces||!this.eat(l.colon))return r;var i=this.startNodeAt(t,n);return i.namespace=r,i.name=this.jsx_parseIdentifier(),this.finishNode(i,`JSXNamespacedName`)}jsx_parseElementName(){if(this.type===u.jsxTagEnd)return``;let t=this.start,n=this.startLoc,r=this.jsx_parseNamespacedName();for(this.type===l.dot&&r.type===`JSXNamespacedName`&&!e.allowNamespacedObjects&&this.unexpected();this.eat(l.dot);){let e=this.startNodeAt(t,n);e.object=r,e.property=this.jsx_parseIdentifier(),r=this.finishNode(e,`JSXMemberExpression`)}return r}jsx_parseAttributeValue(){switch(this.type){case l.braceL:let e=this.jsx_parseExpressionContainer();return e.expression.type===`JSXEmptyExpression`&&this.raise(e.start,`JSX attributes must only be assigned a non-empty expression`),e;case u.jsxTagStart:case l.string:return this.parseExprAtom();default:this.raise(this.start,`JSX value should be either an expression or a quoted JSX text`)}}jsx_parseEmptyExpression(){let e=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(e,`JSXEmptyExpression`,this.start,this.startLoc)}jsx_parseExpressionContainer(){let e=this.startNode();return this.next(),e.expression=this.type===l.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(l.braceR),this.finishNode(e,`JSXExpressionContainer`)}jsx_parseAttribute(){let e=this.startNode();return this.eat(l.braceL)?(this.expect(l.ellipsis),e.argument=this.parseMaybeAssign(),this.expect(l.braceR),this.finishNode(e,`JSXSpreadAttribute`)):(e.name=this.jsx_parseNamespacedName(),e.value=this.eat(l.eq)?this.jsx_parseAttributeValue():null,this.finishNode(e,`JSXAttribute`))}jsx_parseOpeningElementAt(e,t){let n=this.startNodeAt(e,t);n.attributes=[];let r=this.jsx_parseElementName();for(r&&(n.name=r);this.type!==l.slash&&this.type!==u.jsxTagEnd;)n.attributes.push(this.jsx_parseAttribute());return n.selfClosing=this.eat(l.slash),this.expect(u.jsxTagEnd),this.finishNode(n,r?`JSXOpeningElement`:`JSXOpeningFragment`)}jsx_parseClosingElementAt(e,t){let n=this.startNodeAt(e,t),r=this.jsx_parseElementName();return r&&(n.name=r),this.expect(u.jsxTagEnd),this.finishNode(n,r?`JSXClosingElement`:`JSXClosingFragment`)}jsx_parseElementAt(e,t){let n=this.startNodeAt(e,t),r=[],i=this.jsx_parseOpeningElementAt(e,t),a=null;if(!i.selfClosing){contents:for(;;)switch(this.type){case u.jsxTagStart:if(e=this.start,t=this.startLoc,this.next(),this.eat(l.slash)){a=this.jsx_parseClosingElementAt(e,t);break contents}r.push(this.jsx_parseElementAt(e,t));break;case u.jsxText:r.push(this.parseExprAtom());break;case l.braceL:r.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}s(a.name)!==s(i.name)&&this.raise(a.start,`Expected corresponding JSX closing tag for <`+s(i.name)+`>`)}let o=i.name?`Element`:`Fragment`;return n[`opening`+o]=i,n[`closing`+o]=a,n.children=r,this.type===l.relational&&this.value===`<`&&this.raise(this.start,`Adjacent JSX elements must be wrapped in an enclosing tag`),this.finishNode(n,`JSX`+o)}jsx_parseText(){let e=this.parseLiteral(this.value);return e.type=`JSXText`,e}jsx_parseElement(){let e=this.start,t=this.startLoc;return this.next(),this.jsx_parseElementAt(e,t)}parseExprAtom(e){return this.type===u.jsxText?this.jsx_parseText():this.type===u.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(e)}readToken(e){let t=this.curContext();if(t===m)return this.jsx_readToken();if(t===f||t===p){if(g(e))return this.jsx_readWord();if(e==62)return++this.pos,this.finishToken(u.jsxTagEnd);if((e===34||e===39)&&t==f)return this.jsx_readString(e)}return e===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(u.jsxTagStart)):super.readToken(e)}updateContext(e){if(this.type==l.braceL){var t=this.curContext();t==f?this.context.push(d.b_expr):t==m?this.context.push(d.b_tmpl):super.updateContext(e),this.exprAllowed=!0}else if(this.type===l.slash&&e===u.jsxTagStart)this.context.length-=2,this.context.push(p),this.exprAllowed=!1;else return super.updateContext(e)}}}}}),O={callout:`Callout`,accordion:`Accordion`,accordionGroup:`AccordionGroup`,accordionTitle:`AccordionTitle`,accordionBody:`AccordionBody`,card:`Card`,cardTitle:`CardTitle`,cardBody:`CardBody`,columns:`Columns`,column:`Column`,update:`Update`,tab:`Tab`,tabs:`Tabs`,step:`Step`,stepTitle:`StepTitle`,stepBody:`StepBody`,steps:`Steps`,icon:`Icon`,codeBlock:`CodeBlock`,codeGroup:`CodeGroup`,frame:`Frame`,paramField:`ParamField`,responseField:`ResponseField`,requestExample:`RequestExample`,responseExample:`ResponseExample`,expandable:`Expandable`,customComponent:`CustomComponent`,staticHTML:`StaticHTML`,inlineStaticHTML:`InlineStaticHTML`,image:`Image`,inlineImage:`InlineImage`,video:`Video`,unknownTag:`UnknownTag`,inlineUnknownTag:`InlineUnknownTag`,mdxJsEsm:`MdxJsEsm`,inlineMath:`InlineMath`,blockMath:`BlockMath`,badge:`Badge`,tooltip:`Tooltip`,mermaidBlock:`MermaidBlock`,promptBlock:`PromptBlock`,promptDescription:`PromptDescription`,color:`Color`,tree:`Tree`,visibility:`Visibility`,database:`Database`},jt=[`Info`,`Check`,`Note`,`Tip`,`Warning`,`Danger`,`Callout`],Mt=/* @__PURE__ */ new Set(/* @__PURE__ */ `a.b.br.button.div.form.h1.h2.h3.h4.head.iframe.img.input.label.li.link.ol.p.path.picture.script.section.source.span.svg.table.tbody.td.th.thead.tr.ul.code.pre.zapier-zap-templates.kbd`.split(`.`)),Nt=/* @__PURE__ */ new Set(/* @__PURE__ */ `Accordion.AccordionGroup.Badge.Heading.Card.CardGroup.Callout.Color.Panel.Tree.View.Tile.Column.Columns.Check.CodeGroup.CodeBlock.CustomCode.CustomComponent.DynamicCustomComponent.Expandable.Frame.Info.Icon.Link.MDXContentController.Note.ParamField.RequestExample.ResponseExample.ResponseField.Step.Steps.Tab.Tabs.Tip.Danger.Tooltip.SnippetGroup.Warning.Latex.Update.ZoomImage.Prompt.Mermaid`.split(`.`)),Pt=/* @__PURE__ */ new Set([`Badge`,`Icon`,`Tooltip`]),Ft=`commentThreadIds`,k=/* @__PURE__ */ new Set([Ft,`__childIndex`,`__isLastInGroup`,`__hasGroupParent`,`__isHidden`,`__editorOpen`]),It=/* @__PURE__ */ new Set([`mdxJsxNode`,`mdastNode`]),Lt=/* @__PURE__ */ new Set([Ft,`__isHidden`,`__hasGroupParent`,`__childIndex`,`__isLastInGroup`,`__expressionAttributes`,`__namedExpressionAttributes`,`__editorOpen`,`__mintlifyExtraAttrs`,`__jsxImage`,`__closingTag`]),Rt=`__jsxImage`,zt=`__closingTag`,Bt={left:`mr-auto`,center:`mx-auto`,right:`ml-auto`},Vt=`bottom-right`,Ht=`text`,Ut=`bottom-right`,Wt=`Font Awesome, Lucide or Tabler icon name, URL, path to an icon file, or SVG code.`,Gt=`Font Awesome icon style. Ignored for other icon libraries.`,Kt=`#FF6B6B`,qt=`https://example.com/page`,Jt=[`gray`,`blue`,`green`,`orange`,`yellow`,`red`,`purple`,`white`,`surface`,`white-destructive`,`surface-destructive`],Yt=[`rounded`,`pill`],Xt=[`xs`,`sm`,`md`,`lg`],Zt=[`info`,`warning`,`note`,`tip`,`check`,`danger`],Qt=[{name:`icon`,type:`expression`,description:Wt},{name:`iconType`,type:`string`,description:Gt},{name:`stepNumber`,type:`number`,placeholder:`1`},{name:`titleSize`,type:`string`},{name:`isLast`,type:`boolean`}],$t=[{name:`type`,type:`string`,options:Zt,description:`Callout-style theme for the background, border and default icon.`},{name:`color`,type:`string`,placeholder:Kt,description:`Color of the card icon.`},{name:`icon`,type:`expression`,description:Wt},{name:`iconType`,type:`string`,description:Gt},{name:`horizontal`,type:`boolean`,description:`Compact horizontal layout.`},{name:`href`,type:`string`,placeholder:qt},{name:`img`,type:`string`,placeholder:`/images/hero.png`,description:`Shown at the top of the card.`},{name:`cta`,type:`string`,placeholder:`Learn more`}],en=[{name:`cols`,type:`number`}],tn=[{name:`description`,type:`string`,placeholder:`Shown below the title`},{name:`defaultOpen`,type:`boolean`},{name:`icon`,type:`expression`,description:Wt},{name:`iconType`,type:`string`,description:Gt}],nn=[{name:`type`,type:`string`},{name:`icon`,type:`expression`,description:Wt},{name:`iconType`,type:`string`,description:Gt},{name:`color`,type:`string`,placeholder:`#FFC107`,description:`Border, background tint and text color.`}],rn=[{name:`title`,type:`string`,required:!0,placeholder:`macOS`,description:`Tabs with matching titles sync their selection.`},{name:`icon`,type:`expression`,description:Wt},{name:`iconType`,type:`string`,description:Gt}],an=[{name:`defaultTabIndex`,type:`number`,placeholder:`0`,description:`Zero-based index of the tab shown on page load.`}],on=[{name:`color`,type:`string`,default:`gray`,options:Jt},{name:`size`,type:`string`,default:`md`,options:Xt},{name:`shape`,type:`string`,default:`rounded`,options:Yt},{name:`stroke`,type:`boolean`,default:!1,description:`Outline instead of a filled background.`},{name:`disabled`,type:`boolean`,default:!1},{name:`icon`,type:`expression`,description:Wt},{name:`iconType`,type:`string`,description:Gt}],sn=[{name:`tip`,type:`string`,default:``,required:!0,placeholder:`Application Programming Interface`},{name:`headline`,type:`string`,default:``,placeholder:`Did you know?`,description:`Shown above the tip text.`},{name:`cta`,type:`string`,default:``,placeholder:`Learn more`},{name:`href`,type:`string`,default:``,placeholder:qt,description:`Required when a call to action is set.`}],cn=[{name:`caption`,type:`string`,placeholder:`Figure 1: request flow`,description:`Centered below the content. Supports Markdown.`}],ln=[{name:`title`,type:`string`,required:!0,placeholder:`user`},{name:`defaultOpen`,type:`boolean`}],un=[{name:`for`,type:`string`,required:!0,options:[`humans`,`agents`,`signed-in`,`signed-out`],description:`Humans: visible on the web, excluded from Markdown output. Agents: hidden on the web, included in Markdown output. Signed in / signed out: shown on the web by login state; signed-in content is excluded from Markdown output. { groups: [...] }: shown to signed-in users in any listed group. { groups: { excludes: [...] } }: hidden from users in any excluded group.`}],dn=[`table`,`board`,`calendar`],fn=[{name:`id`,type:`string`,required:!0,placeholder:`00000000-0000-0000-0000-000000000000`,description:`UUID of the database.`},{name:`view`,type:`string`,options:dn,description:`Table, board or calendar. Omitted or unknown means table.`},{name:`sort`,type:`string`,placeholder:`-Due, Name`,description:`Comma-separated property names. A leading - sorts descending.`},{name:`filter`,type:`string`,placeholder:`Status != "Done" and Points > 3`,description:`Formula that keeps the rows it is true for.`},{name:`groupBy`,type:`string`,placeholder:`Status`,description:`Property name to group rows by.`},{name:`calendarBy`,type:`string`,placeholder:`Launch date`,description:`Date property that places rows on the calendar.`},{name:`sql`,type:`string`,placeholder:`SELECT * FROM roadmap LIMIT 50`,description:`A read-only SQL query. When set, the block shows its results instead of the view.`}],pn=[{name:`label`,type:`string`,required:!0,placeholder:`v1.2.0`,description:`Shown next to the update and used as its anchor link. Keep labels unique.`},{name:`tags`,type:`expression`,placeholder:`["feature", "fix"]`,description:`Shown as filters in the side panel.`},{name:`description`,type:`string`,placeholder:`Short summary of the update`},{name:`rss`,type:`expression`,description:`Creates a single RSS feed entry with a custom title and description.`}],mn=[{name:`name`,type:`string`},{name:`icon`,type:`expression`,description:Wt},{name:`iconType`,type:`string`,description:Gt},{name:`color`,type:`string`,placeholder:Kt},{name:`size`,type:`number`,placeholder:`16`,description:`In pixels.`}],hn=[{name:`language`,type:`string`,placeholder:`typescript`},{name:`filename`,type:`string`,placeholder:`index.ts`},{name:`filenameSyntax`,type:`string`},{name:`expandable`,type:`boolean`},{name:`icon`,type:`expression`,description:Wt},{name:`lang`,type:`string`},{name:`lines`,type:`boolean`,description:`Show line numbers.`},{name:`wrap`,type:`boolean`,description:`Wrap long lines.`},{name:`highlight`,type:`expression`,placeholder:`[1, 3, 4]`,description:`Line numbers to highlight.`},{name:`focus`,type:`expression`,placeholder:`[1, 3, 4]`,description:`Line numbers to focus on.`},{name:`add`,type:`expression`},{name:`remove`,type:`expression`},{name:`twoslash`,type:`boolean`,description:`Interactive type information for JavaScript and TypeScript.`},{name:`nocopy`,type:`boolean`}],gn=[{name:`icon`,type:`expression`,description:Wt},{name:`iconType`,type:`string`,description:Gt},{name:`actions`,type:`expression`,default:[`copy`],placeholder:`["copy", "cursor"]`,description:`Available actions: copy (clipboard) and cursor (open in Cursor).`}],_n=[{name:`placement`,type:`string`,default:Ut,placeholder:Ut,description:`Position of the controls: top-left, top-right, bottom-left or bottom-right.`},{name:`actions`,type:`boolean`,description:`Force the controls on or off. By default they appear when the diagram is taller than 120px.`}],vn=[{name:`query`,type:`string`,placeholder:`limit`},{name:`path`,type:`string`,placeholder:`userId`},{name:`body`,type:`string`,placeholder:`email`},{name:`header`,type:`string`,placeholder:`Authorization`},{name:`default`,type:`string`,placeholder:`10`,description:`Used when the request value is empty.`},{name:`type`,type:`string`,placeholder:`string`,description:`number, string, boolean or object. Arrays use the [] suffix, for example string[].`},{name:`required`,type:`boolean`},{name:`deprecated`,type:`boolean`},{name:`placeholder`,type:`string`,placeholder:`sk_live_...`,description:`Shown in the API playground input.`}],yn=[{name:`name`,type:`string`,required:!0,placeholder:`id`},{name:`type`,type:`string`,placeholder:`string`},{name:`default`,type:`string`,placeholder:`null`},{name:`required`,type:`boolean`},{name:`deprecated`,type:`boolean`}];function bn(e){return`default`in e?e.default:null}function xn(e){return Object.fromEntries(e.map(e=>[e.name,{default:bn(e)}]))}function Sn(e){return Object.fromEntries(e.map(e=>[e.name,bn(e)]))}function A(e){let t={};for(let[n,r]of Object.entries(e))t[n]={default:r};return t}var j={__isHidden:null,__hasGroupParent:null,__childIndex:null,__isLastInGroup:null,__mintlifyExtraAttrs:null},Cn={doc:{content:`block*`},text:{group:`inline`},paragraph:{content:`inline*`,group:`block`},heading:{content:`inline*`,group:`block`,attrs:A({level:1,customId:null})},blockquote:{content:`block*`,group:`block`},bulletList:{content:`listItem*`,group:`block`},orderedList:{content:`listItem*`,group:`block`,attrs:A({start:1})},listItem:{content:`block*`,attrs:A({checked:null})},hardBreak:{group:`inline`,inline:!0},horizontalRule:{group:`block`},table:{content:`tableRow*`,group:`block`},tableRow:{content:`(tableHeader | tableCell)*`},tableHeader:{content:`block*`,attrs:A({align:null,colwidth:null})},tableCell:{content:`block*`,attrs:A({align:null,colwidth:null})},[O.codeBlock]:{content:`text*`,group:`block`,code:!0,attrs:Object.assign(Object.assign({},xn(hn)),A(Object.assign({__isMermaidChild:null,__isPromptChild:null},j)))},[O.codeGroup]:{content:`${O.codeBlock}*`,group:`block`,attrs:A(Object.assign({},j))},[O.callout]:{content:`block*`,group:`block`,attrs:Object.assign(Object.assign({},xn(nn)),A(j))},[O.accordion]:{content:`${O.accordionTitle} ${O.accordionBody}`,group:`block`,attrs:Object.assign(Object.assign({},xn(tn)),A(j))},[O.accordionGroup]:{content:`(${O.accordion} | block)*`,group:`block`,attrs:A(Object.assign({},j))},[O.accordionTitle]:{content:`text*`,marks:`bold italic strike code link`,isolating:!0},[O.accordionBody]:{content:`block*`,isolating:!0},[O.card]:{content:`${O.cardTitle} ${O.cardBody}`,group:`block`,attrs:Object.assign(Object.assign({},xn($t)),A(j))},[O.cardTitle]:{content:`text*`,marks:`bold italic strike code link`,isolating:!0},[O.cardBody]:{content:`block*`,isolating:!0},[O.columns]:{content:`(${O.card} | ${O.column} | block)*`,group:`block`,attrs:Object.assign(Object.assign({},xn(en)),A(j))},[O.column]:{content:`block*`,isolating:!0},[O.update]:{content:`block*`,group:`block`,attrs:Object.assign(Object.assign({},xn(pn)),A(j))},[O.tab]:{content:`block*`,group:`block`,attrs:Object.assign(Object.assign({},xn(rn)),A(j))},[O.tabs]:{content:`${O.tab}*`,group:`block`,attrs:Object.assign(Object.assign({},xn(an)),A(j))},[O.step]:{content:`${O.stepTitle} ${O.stepBody}`,group:`block`,attrs:Object.assign(Object.assign({},xn(Qt)),A(j))},[O.stepTitle]:{content:`text*`,marks:`bold italic strike code link`,isolating:!0},[O.stepBody]:{content:`block*`,isolating:!0},[O.steps]:{content:`${O.step}*`,group:`block`,attrs:A(Object.assign({},j))},[O.frame]:{content:`block*`,group:`block`,attrs:Object.assign(Object.assign({},xn(cn)),A(j))},[O.icon]:{group:`inline`,inline:!0,atom:!0,attrs:Object.assign(Object.assign({},xn(mn)),A(j))},[O.badge]:{content:`text*`,group:`inline`,inline:!0,attrs:Object.assign(Object.assign({},xn(on)),A(j))},[O.tooltip]:{content:`text*`,group:`inline`,inline:!0,attrs:Object.assign(Object.assign({},xn(sn)),A(Object.assign({isNewlyCreated:null},j)))},[O.image]:{group:`block`,atom:!0,attrs:A(Object.assign({imgAttributes:null,lightSrc:null,darkSrc:null,width:null,align:null},j))},[O.inlineImage]:{group:`inline`,inline:!0,atom:!0,attrs:A(Object.assign({imgAttributes:null,width:null,height:null},j))},[O.video]:{group:`block`,atom:!0,attrs:A(Object.assign({videoAttributes:null,sources:null,width:null},j))},[O.staticHTML]:{content:`block*`,group:`block`,attrs:A({tagName:`div`,attributes:null,mdxJsxNode:null})},[O.inlineStaticHTML]:{content:`inline*`,group:`inline`,inline:!0,attrs:A({tagName:`span`,attributes:null,mdxJsxNode:null})},[O.unknownTag]:{group:`block`,atom:!0,attrs:A({mdxJsxNode:null,__isHidden:null})},[O.inlineUnknownTag]:{group:`inline`,inline:!0,atom:!0,attrs:A({mdxJsxNode:null,__isHidden:null})},[O.mdxJsEsm]:{group:`block`,atom:!0,attrs:A({mdastNode:null})},[O.inlineMath]:{group:`inline`,inline:!0,atom:!0,attrs:A({expression:null})},[O.blockMath]:{group:`block`,atom:!0,attrs:A({expression:null})},[O.mermaidBlock]:{content:O.codeBlock,group:`block`,attrs:Object.assign(Object.assign({},xn(_n)),A(j))},[O.promptBlock]:{content:`${O.promptDescription} ${O.codeBlock}`,group:`block`,attrs:Object.assign(Object.assign({},xn(gn)),A(j))},[O.promptDescription]:{content:`block*`,isolating:!0},[O.expandable]:{content:`block*`,group:`block`,attrs:Object.assign(Object.assign({},xn(ln)),A(j))},[O.visibility]:{content:`block*`,group:`block`,attrs:Object.assign(Object.assign({},xn(un)),A(j))},[O.paramField]:{content:`block*`,group:`block`,attrs:Object.assign(Object.assign({},xn(vn)),A(j))},[O.responseField]:{content:`block*`,group:`block`,attrs:Object.assign(Object.assign({},xn(yn)),A(j))},[O.requestExample]:{content:`${O.codeBlock}*`,group:`block`,attrs:A(Object.assign({},j))},[O.responseExample]:{content:`${O.codeBlock}*`,group:`block`,attrs:A(Object.assign({},j))},[O.customComponent]:{content:`block*`,group:`block`,attrs:A(Object.assign({name:null,attributes:null},j))},[O.color]:{group:`block`,atom:!0,attrs:A(Object.assign({variant:null,colorData:[]},j))},[O.tree]:{group:`block`,atom:!0,attrs:A(Object.assign({treeData:[]},j))},[O.database]:{group:`block`,atom:!0,attrs:Object.assign(Object.assign({},xn(fn)),A(j))}},wn={bold:{},italic:{},strike:{},code:{},link:{attrs:A({href:null,title:null,referenceLabel:null,mdxLinkAttributes:null,mdxLinkId:null})},underline:{},subscript:{},superscript:{},kbd:{}};function Tn(e,t){return e!==`doc`&&!t.inline&&t.group!==`inline`}function En(e){return Object.fromEntries(Object.entries(e).map(([e,t])=>[e,Tn(e,t)?Object.assign(Object.assign({},t),{attrs:Object.assign(Object.assign({},t.attrs),{[Ft]:{default:null}})}):t]))}var Dn=new mt({nodes:En(Cn),marks:wn});function On(e){return new mt({nodes:En(Object.assign(Object.assign({},Cn),e?.nodes)),marks:Object.assign(Object.assign({},wn),e?.marks)})}var kn=`table`,An=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,jn=e=>typeof e==`string`&&An.test(e),Mn=e=>dn.some(t=>t===e),Nn=e=>Mn(e)?e:kn,Pn=`sql`,Fn=Symbol(`invalid-database-sql`),In=/&(?=#?[A-Za-z0-9]+;)|<(?=[A-Za-z/!?])|[`~\0\r\n]/,Ln=/[\\`~\0\r\n]|\$\{|<(?=!|\/|MDX)/g,Rn={"\\":`\\\\`,"`":"\\`","~":`\\x7E`,"\0":`\\x00`,"\r":`\\r`,"\n":`\\n`,"${":"\\${","<":`\\x3C`},zn=e=>{if(!In.test(e)){if(!e.includes(`"`))return`${Pn}="${e}"`;if(!e.includes(`'`))return`${Pn}='${e}'`}return`${Pn}={\`${e.replace(Ln,e=>Rn[e]??e)}\`}`},Bn=e=>e.type===`mdxJsxAttribute`&&e.name===Pn,Vn=e=>{let{value:t}=e;if(typeof t==`string`)return t;let n=(t?.data?.estree)?.body[0];if(n?.type!==`ExpressionStatement`)return null;let{expression:r}=n;return r.type===`Literal`?typeof r.value==`string`?r.value:null:r.type!==`TemplateLiteral`||r.expressions.length>0?null:r.quasis[0]?.value.cooked??null},Hn=e=>{let t=e.filter(Bn),[n]=t;return n?t.length>1?Fn:Vn(n)??Fn:null},Un=e=>e.filter(e=>!Bn(e));function Wn(e){return typeof e==`string`?e.split(` `).filter(Boolean):[]}function Gn(e){let t=[...new Set(e.filter(Boolean))];return t.length>0?t.join(` `):null}var Kn=/* @__PURE__ */ new Set([O.staticHTML,O.inlineStaticHTML]);function qn(e,t){return!t||e===`svg`}function Jn(e){let t=[],n=(e,r,i)=>{let a=Kn.has(e.type.name)&&e.attrs.mdxJsxNode!=null;a&&i&&!qn(e.attrs.tagName,!0)&&t.push(r),e.forEach((e,t)=>n(e,r+1+t,i||a))};return e.forEach((e,t)=>n(e,t,!1)),t}function Yn(e){try{let t=(0,ce.parse)(e);if(t&&typeof t==`object`&&!Array.isArray(t))return t}catch{}return{}}function Xn(e){let t=e.children.find(e=>e.type===`yaml`);return!t||!(`value`in t)?{}:Yn(t.value)}function Zn(e,t=[]){return e?Object.assign({type:`text`,text:e},t.length>0&&{marks:t}):{type:`text`,text:``}}function Qn(e){if(!e)return{text:``,marks:[]};if(e.type===`text`||e.type===`inlineCode`)return{text:(`value`in e?e.value:``)||``,marks:$n(e)};if(`children`in e&&Array.isArray(e.children)){let t=``,n=$n(e);for(let r of e.children){let{text:e,marks:i}=Qn(r);t+=e,n.push(...i)}return{text:t,marks:n}}return{text:``,marks:[]}}function $n(e){let t=[];if(!e)return t;switch(e.type){case`link`:t.push({type:`link`,attrs:{href:e.url,title:e.title||void 0}});break;case`inlineCode`:t.push({type:`code`});break;case`emphasis`:t.push({type:`italic`});break;case`strong`:t.push({type:`bold`});break;case`delete`:t.push({type:`strike`});break;case`mdxJsxTextElement`:e.name===`u`?t.push({type:`underline`}):e.name===`sub`?t.push({type:`subscript`}):e.name===`sup`&&t.push({type:`superscript`})}return t}function er(e,t){return t.nodes[e.type]?.isInline===!0}function tr(e,t){let n=[],r=[],i=()=>{r.length!==0&&(n.push({type:`paragraph`,content:r}),r=[])};for(let a of e)er(a,t)?r.push(a):(i(),n.push(a));return i(),n}function nr(e,t){return qn(e.name,t.hasStaticHtmlParent===!0)?e:null}var rr={AElig:`Æ`,AMP:`&`,Aacute:`Á`,Abreve:`Ă`,Acirc:`Â`,Acy:`А`,Afr:`𝔄`,Agrave:`À`,Alpha:`Α`,Amacr:`Ā`,And:`⩓`,Aogon:`Ą`,Aopf:`𝔸`,ApplyFunction:``,Aring:`Å`,Ascr:`𝒜`,Assign:`≔`,Atilde:`Ã`,Auml:`Ä`,Backslash:`∖`,Barv:`⫧`,Barwed:`⌆`,Bcy:`Б`,Because:`∵`,Bernoullis:`ℬ`,Beta:`Β`,Bfr:`𝔅`,Bopf:`𝔹`,Breve:`˘`,Bscr:`ℬ`,Bumpeq:`≎`,CHcy:`Ч`,COPY:`©`,Cacute:`Ć`,Cap:`⋒`,CapitalDifferentialD:`ⅅ`,Cayleys:`ℭ`,Ccaron:`Č`,Ccedil:`Ç`,Ccirc:`Ĉ`,Cconint:`∰`,Cdot:`Ċ`,Cedilla:`¸`,CenterDot:`·`,Cfr:`ℭ`,Chi:`Χ`,CircleDot:`⊙`,CircleMinus:`⊖`,CirclePlus:`⊕`,CircleTimes:`⊗`,ClockwiseContourIntegral:`∲`,CloseCurlyDoubleQuote:`”`,CloseCurlyQuote:`’`,Colon:`∷`,Colone:`⩴`,Congruent:`≡`,Conint:`∯`,ContourIntegral:`∮`,Copf:`ℂ`,Coproduct:`∐`,CounterClockwiseContourIntegral:`∳`,Cross:`⨯`,Cscr:`𝒞`,Cup:`⋓`,CupCap:`≍`,DD:`ⅅ`,DDotrahd:`⤑`,DJcy:`Ђ`,DScy:`Ѕ`,DZcy:`Џ`,Dagger:`‡`,Darr:`↡`,Dashv:`⫤`,Dcaron:`Ď`,Dcy:`Д`,Del:`∇`,Delta:`Δ`,Dfr:`𝔇`,DiacriticalAcute:`´`,DiacriticalDot:`˙`,DiacriticalDoubleAcute:`˝`,DiacriticalGrave:"`",DiacriticalTilde:`˜`,Diamond:`⋄`,DifferentialD:`ⅆ`,Dopf:`𝔻`,Dot:`¨`,DotDot:`⃜`,DotEqual:`≐`,DoubleContourIntegral:`∯`,DoubleDot:`¨`,DoubleDownArrow:`⇓`,DoubleLeftArrow:`⇐`,DoubleLeftRightArrow:`⇔`,DoubleLeftTee:`⫤`,DoubleLongLeftArrow:`⟸`,DoubleLongLeftRightArrow:`⟺`,DoubleLongRightArrow:`⟹`,DoubleRightArrow:`⇒`,DoubleRightTee:`⊨`,DoubleUpArrow:`⇑`,DoubleUpDownArrow:`⇕`,DoubleVerticalBar:`∥`,DownArrow:`↓`,DownArrowBar:`⤓`,DownArrowUpArrow:`⇵`,DownBreve:`̑`,DownLeftRightVector:`⥐`,DownLeftTeeVector:`⥞`,DownLeftVector:`↽`,DownLeftVectorBar:`⥖`,DownRightTeeVector:`⥟`,DownRightVector:`⇁`,DownRightVectorBar:`⥗`,DownTee:`⊤`,DownTeeArrow:`↧`,Downarrow:`⇓`,Dscr:`𝒟`,Dstrok:`Đ`,ENG:`Ŋ`,ETH:`Ð`,Eacute:`É`,Ecaron:`Ě`,Ecirc:`Ê`,Ecy:`Э`,Edot:`Ė`,Efr:`𝔈`,Egrave:`È`,Element:`∈`,Emacr:`Ē`,EmptySmallSquare:`◻`,EmptyVerySmallSquare:`▫`,Eogon:`Ę`,Eopf:`𝔼`,Epsilon:`Ε`,Equal:`⩵`,EqualTilde:`≂`,Equilibrium:`⇌`,Escr:`ℰ`,Esim:`⩳`,Eta:`Η`,Euml:`Ë`,Exists:`∃`,ExponentialE:`ⅇ`,Fcy:`Ф`,Ffr:`𝔉`,FilledSmallSquare:`◼`,FilledVerySmallSquare:`▪`,Fopf:`𝔽`,ForAll:`∀`,Fouriertrf:`ℱ`,Fscr:`ℱ`,GJcy:`Ѓ`,GT:`>`,Gamma:`Γ`,Gammad:`Ϝ`,Gbreve:`Ğ`,Gcedil:`Ģ`,Gcirc:`Ĝ`,Gcy:`Г`,Gdot:`Ġ`,Gfr:`𝔊`,Gg:`⋙`,Gopf:`𝔾`,GreaterEqual:`≥`,GreaterEqualLess:`⋛`,GreaterFullEqual:`≧`,GreaterGreater:`⪢`,GreaterLess:`≷`,GreaterSlantEqual:`⩾`,GreaterTilde:`≳`,Gscr:`𝒢`,Gt:`≫`,HARDcy:`Ъ`,Hacek:`ˇ`,Hat:`^`,Hcirc:`Ĥ`,Hfr:`ℌ`,HilbertSpace:`ℋ`,Hopf:`ℍ`,HorizontalLine:`─`,Hscr:`ℋ`,Hstrok:`Ħ`,HumpDownHump:`≎`,HumpEqual:`≏`,IEcy:`Е`,IJlig:`IJ`,IOcy:`Ё`,Iacute:`Í`,Icirc:`Î`,Icy:`И`,Idot:`İ`,Ifr:`ℑ`,Igrave:`Ì`,Im:`ℑ`,Imacr:`Ī`,ImaginaryI:`ⅈ`,Implies:`⇒`,Int:`∬`,Integral:`∫`,Intersection:`⋂`,InvisibleComma:``,InvisibleTimes:``,Iogon:`Į`,Iopf:`𝕀`,Iota:`Ι`,Iscr:`ℐ`,Itilde:`Ĩ`,Iukcy:`І`,Iuml:`Ï`,Jcirc:`Ĵ`,Jcy:`Й`,Jfr:`𝔍`,Jopf:`𝕁`,Jscr:`𝒥`,Jsercy:`Ј`,Jukcy:`Є`,KHcy:`Х`,KJcy:`Ќ`,Kappa:`Κ`,Kcedil:`Ķ`,Kcy:`К`,Kfr:`𝔎`,Kopf:`𝕂`,Kscr:`𝒦`,LJcy:`Љ`,LT:`<`,Lacute:`Ĺ`,Lambda:`Λ`,Lang:`⟪`,Laplacetrf:`ℒ`,Larr:`↞`,Lcaron:`Ľ`,Lcedil:`Ļ`,Lcy:`Л`,LeftAngleBracket:`⟨`,LeftArrow:`←`,LeftArrowBar:`⇤`,LeftArrowRightArrow:`⇆`,LeftCeiling:`⌈`,LeftDoubleBracket:`⟦`,LeftDownTeeVector:`⥡`,LeftDownVector:`⇃`,LeftDownVectorBar:`⥙`,LeftFloor:`⌊`,LeftRightArrow:`↔`,LeftRightVector:`⥎`,LeftTee:`⊣`,LeftTeeArrow:`↤`,LeftTeeVector:`⥚`,LeftTriangle:`⊲`,LeftTriangleBar:`⧏`,LeftTriangleEqual:`⊴`,LeftUpDownVector:`⥑`,LeftUpTeeVector:`⥠`,LeftUpVector:`↿`,LeftUpVectorBar:`⥘`,LeftVector:`↼`,LeftVectorBar:`⥒`,Leftarrow:`⇐`,Leftrightarrow:`⇔`,LessEqualGreater:`⋚`,LessFullEqual:`≦`,LessGreater:`≶`,LessLess:`⪡`,LessSlantEqual:`⩽`,LessTilde:`≲`,Lfr:`𝔏`,Ll:`⋘`,Lleftarrow:`⇚`,Lmidot:`Ŀ`,LongLeftArrow:`⟵`,LongLeftRightArrow:`⟷`,LongRightArrow:`⟶`,Longleftarrow:`⟸`,Longleftrightarrow:`⟺`,Longrightarrow:`⟹`,Lopf:`𝕃`,LowerLeftArrow:`↙`,LowerRightArrow:`↘`,Lscr:`ℒ`,Lsh:`↰`,Lstrok:`Ł`,Lt:`≪`,Map:`⤅`,Mcy:`М`,MediumSpace:` `,Mellintrf:`ℳ`,Mfr:`𝔐`,MinusPlus:`∓`,Mopf:`𝕄`,Mscr:`ℳ`,Mu:`Μ`,NJcy:`Њ`,Nacute:`Ń`,Ncaron:`Ň`,Ncedil:`Ņ`,Ncy:`Н`,NegativeMediumSpace:``,NegativeThickSpace:``,NegativeThinSpace:``,NegativeVeryThinSpace:``,NestedGreaterGreater:`≫`,NestedLessLess:`≪`,NewLine:`
|
|
16
16
|
`,Nfr:`𝔑`,NoBreak:``,NonBreakingSpace:`\xA0`,Nopf:`ℕ`,Not:`⫬`,NotCongruent:`≢`,NotCupCap:`≭`,NotDoubleVerticalBar:`∦`,NotElement:`∉`,NotEqual:`≠`,NotEqualTilde:`≂̸`,NotExists:`∄`,NotGreater:`≯`,NotGreaterEqual:`≱`,NotGreaterFullEqual:`≧̸`,NotGreaterGreater:`≫̸`,NotGreaterLess:`≹`,NotGreaterSlantEqual:`⩾̸`,NotGreaterTilde:`≵`,NotHumpDownHump:`≎̸`,NotHumpEqual:`≏̸`,NotLeftTriangle:`⋪`,NotLeftTriangleBar:`⧏̸`,NotLeftTriangleEqual:`⋬`,NotLess:`≮`,NotLessEqual:`≰`,NotLessGreater:`≸`,NotLessLess:`≪̸`,NotLessSlantEqual:`⩽̸`,NotLessTilde:`≴`,NotNestedGreaterGreater:`⪢̸`,NotNestedLessLess:`⪡̸`,NotPrecedes:`⊀`,NotPrecedesEqual:`⪯̸`,NotPrecedesSlantEqual:`⋠`,NotReverseElement:`∌`,NotRightTriangle:`⋫`,NotRightTriangleBar:`⧐̸`,NotRightTriangleEqual:`⋭`,NotSquareSubset:`⊏̸`,NotSquareSubsetEqual:`⋢`,NotSquareSuperset:`⊐̸`,NotSquareSupersetEqual:`⋣`,NotSubset:`⊂⃒`,NotSubsetEqual:`⊈`,NotSucceeds:`⊁`,NotSucceedsEqual:`⪰̸`,NotSucceedsSlantEqual:`⋡`,NotSucceedsTilde:`≿̸`,NotSuperset:`⊃⃒`,NotSupersetEqual:`⊉`,NotTilde:`≁`,NotTildeEqual:`≄`,NotTildeFullEqual:`≇`,NotTildeTilde:`≉`,NotVerticalBar:`∤`,Nscr:`𝒩`,Ntilde:`Ñ`,Nu:`Ν`,OElig:`Œ`,Oacute:`Ó`,Ocirc:`Ô`,Ocy:`О`,Odblac:`Ő`,Ofr:`𝔒`,Ograve:`Ò`,Omacr:`Ō`,Omega:`Ω`,Omicron:`Ο`,Oopf:`𝕆`,OpenCurlyDoubleQuote:`“`,OpenCurlyQuote:`‘`,Or:`⩔`,Oscr:`𝒪`,Oslash:`Ø`,Otilde:`Õ`,Otimes:`⨷`,Ouml:`Ö`,OverBar:`‾`,OverBrace:`⏞`,OverBracket:`⎴`,OverParenthesis:`⏜`,PartialD:`∂`,Pcy:`П`,Pfr:`𝔓`,Phi:`Φ`,Pi:`Π`,PlusMinus:`±`,Poincareplane:`ℌ`,Popf:`ℙ`,Pr:`⪻`,Precedes:`≺`,PrecedesEqual:`⪯`,PrecedesSlantEqual:`≼`,PrecedesTilde:`≾`,Prime:`″`,Product:`∏`,Proportion:`∷`,Proportional:`∝`,Pscr:`𝒫`,Psi:`Ψ`,QUOT:`"`,Qfr:`𝔔`,Qopf:`ℚ`,Qscr:`𝒬`,RBarr:`⤐`,REG:`®`,Racute:`Ŕ`,Rang:`⟫`,Rarr:`↠`,Rarrtl:`⤖`,Rcaron:`Ř`,Rcedil:`Ŗ`,Rcy:`Р`,Re:`ℜ`,ReverseElement:`∋`,ReverseEquilibrium:`⇋`,ReverseUpEquilibrium:`⥯`,Rfr:`ℜ`,Rho:`Ρ`,RightAngleBracket:`⟩`,RightArrow:`→`,RightArrowBar:`⇥`,RightArrowLeftArrow:`⇄`,RightCeiling:`⌉`,RightDoubleBracket:`⟧`,RightDownTeeVector:`⥝`,RightDownVector:`⇂`,RightDownVectorBar:`⥕`,RightFloor:`⌋`,RightTee:`⊢`,RightTeeArrow:`↦`,RightTeeVector:`⥛`,RightTriangle:`⊳`,RightTriangleBar:`⧐`,RightTriangleEqual:`⊵`,RightUpDownVector:`⥏`,RightUpTeeVector:`⥜`,RightUpVector:`↾`,RightUpVectorBar:`⥔`,RightVector:`⇀`,RightVectorBar:`⥓`,Rightarrow:`⇒`,Ropf:`ℝ`,RoundImplies:`⥰`,Rrightarrow:`⇛`,Rscr:`ℛ`,Rsh:`↱`,RuleDelayed:`⧴`,SHCHcy:`Щ`,SHcy:`Ш`,SOFTcy:`Ь`,Sacute:`Ś`,Sc:`⪼`,Scaron:`Š`,Scedil:`Ş`,Scirc:`Ŝ`,Scy:`С`,Sfr:`𝔖`,ShortDownArrow:`↓`,ShortLeftArrow:`←`,ShortRightArrow:`→`,ShortUpArrow:`↑`,Sigma:`Σ`,SmallCircle:`∘`,Sopf:`𝕊`,Sqrt:`√`,Square:`□`,SquareIntersection:`⊓`,SquareSubset:`⊏`,SquareSubsetEqual:`⊑`,SquareSuperset:`⊐`,SquareSupersetEqual:`⊒`,SquareUnion:`⊔`,Sscr:`𝒮`,Star:`⋆`,Sub:`⋐`,Subset:`⋐`,SubsetEqual:`⊆`,Succeeds:`≻`,SucceedsEqual:`⪰`,SucceedsSlantEqual:`≽`,SucceedsTilde:`≿`,SuchThat:`∋`,Sum:`∑`,Sup:`⋑`,Superset:`⊃`,SupersetEqual:`⊇`,Supset:`⋑`,THORN:`Þ`,TRADE:`™`,TSHcy:`Ћ`,TScy:`Ц`,Tab:` `,Tau:`Τ`,Tcaron:`Ť`,Tcedil:`Ţ`,Tcy:`Т`,Tfr:`𝔗`,Therefore:`∴`,Theta:`Θ`,ThickSpace:` `,ThinSpace:` `,Tilde:`∼`,TildeEqual:`≃`,TildeFullEqual:`≅`,TildeTilde:`≈`,Topf:`𝕋`,TripleDot:`⃛`,Tscr:`𝒯`,Tstrok:`Ŧ`,Uacute:`Ú`,Uarr:`↟`,Uarrocir:`⥉`,Ubrcy:`Ў`,Ubreve:`Ŭ`,Ucirc:`Û`,Ucy:`У`,Udblac:`Ű`,Ufr:`𝔘`,Ugrave:`Ù`,Umacr:`Ū`,UnderBar:`_`,UnderBrace:`⏟`,UnderBracket:`⎵`,UnderParenthesis:`⏝`,Union:`⋃`,UnionPlus:`⊎`,Uogon:`Ų`,Uopf:`𝕌`,UpArrow:`↑`,UpArrowBar:`⤒`,UpArrowDownArrow:`⇅`,UpDownArrow:`↕`,UpEquilibrium:`⥮`,UpTee:`⊥`,UpTeeArrow:`↥`,Uparrow:`⇑`,Updownarrow:`⇕`,UpperLeftArrow:`↖`,UpperRightArrow:`↗`,Upsi:`ϒ`,Upsilon:`Υ`,Uring:`Ů`,Uscr:`𝒰`,Utilde:`Ũ`,Uuml:`Ü`,VDash:`⊫`,Vbar:`⫫`,Vcy:`В`,Vdash:`⊩`,Vdashl:`⫦`,Vee:`⋁`,Verbar:`‖`,Vert:`‖`,VerticalBar:`∣`,VerticalLine:`|`,VerticalSeparator:`❘`,VerticalTilde:`≀`,VeryThinSpace:` `,Vfr:`𝔙`,Vopf:`𝕍`,Vscr:`𝒱`,Vvdash:`⊪`,Wcirc:`Ŵ`,Wedge:`⋀`,Wfr:`𝔚`,Wopf:`𝕎`,Wscr:`𝒲`,Xfr:`𝔛`,Xi:`Ξ`,Xopf:`𝕏`,Xscr:`𝒳`,YAcy:`Я`,YIcy:`Ї`,YUcy:`Ю`,Yacute:`Ý`,Ycirc:`Ŷ`,Ycy:`Ы`,Yfr:`𝔜`,Yopf:`𝕐`,Yscr:`𝒴`,Yuml:`Ÿ`,ZHcy:`Ж`,Zacute:`Ź`,Zcaron:`Ž`,Zcy:`З`,Zdot:`Ż`,ZeroWidthSpace:``,Zeta:`Ζ`,Zfr:`ℨ`,Zopf:`ℤ`,Zscr:`𝒵`,aacute:`á`,abreve:`ă`,ac:`∾`,acE:`∾̳`,acd:`∿`,acirc:`â`,acute:`´`,acy:`а`,aelig:`æ`,af:``,afr:`𝔞`,agrave:`à`,alefsym:`ℵ`,aleph:`ℵ`,alpha:`α`,amacr:`ā`,amalg:`⨿`,amp:`&`,and:`∧`,andand:`⩕`,andd:`⩜`,andslope:`⩘`,andv:`⩚`,ang:`∠`,ange:`⦤`,angle:`∠`,angmsd:`∡`,angmsdaa:`⦨`,angmsdab:`⦩`,angmsdac:`⦪`,angmsdad:`⦫`,angmsdae:`⦬`,angmsdaf:`⦭`,angmsdag:`⦮`,angmsdah:`⦯`,angrt:`∟`,angrtvb:`⊾`,angrtvbd:`⦝`,angsph:`∢`,angst:`Å`,angzarr:`⍼`,aogon:`ą`,aopf:`𝕒`,ap:`≈`,apE:`⩰`,apacir:`⩯`,ape:`≊`,apid:`≋`,apos:`'`,approx:`≈`,approxeq:`≊`,aring:`å`,ascr:`𝒶`,ast:`*`,asymp:`≈`,asympeq:`≍`,atilde:`ã`,auml:`ä`,awconint:`∳`,awint:`⨑`,bNot:`⫭`,backcong:`≌`,backepsilon:`϶`,backprime:`‵`,backsim:`∽`,backsimeq:`⋍`,barvee:`⊽`,barwed:`⌅`,barwedge:`⌅`,bbrk:`⎵`,bbrktbrk:`⎶`,bcong:`≌`,bcy:`б`,bdquo:`„`,becaus:`∵`,because:`∵`,bemptyv:`⦰`,bepsi:`϶`,bernou:`ℬ`,beta:`β`,beth:`ℶ`,between:`≬`,bfr:`𝔟`,bigcap:`⋂`,bigcirc:`◯`,bigcup:`⋃`,bigodot:`⨀`,bigoplus:`⨁`,bigotimes:`⨂`,bigsqcup:`⨆`,bigstar:`★`,bigtriangledown:`▽`,bigtriangleup:`△`,biguplus:`⨄`,bigvee:`⋁`,bigwedge:`⋀`,bkarow:`⤍`,blacklozenge:`⧫`,blacksquare:`▪`,blacktriangle:`▴`,blacktriangledown:`▾`,blacktriangleleft:`◂`,blacktriangleright:`▸`,blank:`␣`,blk12:`▒`,blk14:`░`,blk34:`▓`,block:`█`,bne:`=⃥`,bnequiv:`≡⃥`,bnot:`⌐`,bopf:`𝕓`,bot:`⊥`,bottom:`⊥`,bowtie:`⋈`,boxDL:`╗`,boxDR:`╔`,boxDl:`╖`,boxDr:`╓`,boxH:`═`,boxHD:`╦`,boxHU:`╩`,boxHd:`╤`,boxHu:`╧`,boxUL:`╝`,boxUR:`╚`,boxUl:`╜`,boxUr:`╙`,boxV:`║`,boxVH:`╬`,boxVL:`╣`,boxVR:`╠`,boxVh:`╫`,boxVl:`╢`,boxVr:`╟`,boxbox:`⧉`,boxdL:`╕`,boxdR:`╒`,boxdl:`┐`,boxdr:`┌`,boxh:`─`,boxhD:`╥`,boxhU:`╨`,boxhd:`┬`,boxhu:`┴`,boxminus:`⊟`,boxplus:`⊞`,boxtimes:`⊠`,boxuL:`╛`,boxuR:`╘`,boxul:`┘`,boxur:`└`,boxv:`│`,boxvH:`╪`,boxvL:`╡`,boxvR:`╞`,boxvh:`┼`,boxvl:`┤`,boxvr:`├`,bprime:`‵`,breve:`˘`,brvbar:`¦`,bscr:`𝒷`,bsemi:`⁏`,bsim:`∽`,bsime:`⋍`,bsol:`\\`,bsolb:`⧅`,bsolhsub:`⟈`,bull:`•`,bullet:`•`,bump:`≎`,bumpE:`⪮`,bumpe:`≏`,bumpeq:`≏`,cacute:`ć`,cap:`∩`,capand:`⩄`,capbrcup:`⩉`,capcap:`⩋`,capcup:`⩇`,capdot:`⩀`,caps:`∩︀`,caret:`⁁`,caron:`ˇ`,ccaps:`⩍`,ccaron:`č`,ccedil:`ç`,ccirc:`ĉ`,ccups:`⩌`,ccupssm:`⩐`,cdot:`ċ`,cedil:`¸`,cemptyv:`⦲`,cent:`¢`,centerdot:`·`,cfr:`𝔠`,chcy:`ч`,check:`✓`,checkmark:`✓`,chi:`χ`,cir:`○`,cirE:`⧃`,circ:`ˆ`,circeq:`≗`,circlearrowleft:`↺`,circlearrowright:`↻`,circledR:`®`,circledS:`Ⓢ`,circledast:`⊛`,circledcirc:`⊚`,circleddash:`⊝`,cire:`≗`,cirfnint:`⨐`,cirmid:`⫯`,cirscir:`⧂`,clubs:`♣`,clubsuit:`♣`,colon:`:`,colone:`≔`,coloneq:`≔`,comma:`,`,commat:`@`,comp:`∁`,compfn:`∘`,complement:`∁`,complexes:`ℂ`,cong:`≅`,congdot:`⩭`,conint:`∮`,copf:`𝕔`,coprod:`∐`,copy:`©`,copysr:`℗`,crarr:`↵`,cross:`✗`,cscr:`𝒸`,csub:`⫏`,csube:`⫑`,csup:`⫐`,csupe:`⫒`,ctdot:`⋯`,cudarrl:`⤸`,cudarrr:`⤵`,cuepr:`⋞`,cuesc:`⋟`,cularr:`↶`,cularrp:`⤽`,cup:`∪`,cupbrcap:`⩈`,cupcap:`⩆`,cupcup:`⩊`,cupdot:`⊍`,cupor:`⩅`,cups:`∪︀`,curarr:`↷`,curarrm:`⤼`,curlyeqprec:`⋞`,curlyeqsucc:`⋟`,curlyvee:`⋎`,curlywedge:`⋏`,curren:`¤`,curvearrowleft:`↶`,curvearrowright:`↷`,cuvee:`⋎`,cuwed:`⋏`,cwconint:`∲`,cwint:`∱`,cylcty:`⌭`,dArr:`⇓`,dHar:`⥥`,dagger:`†`,daleth:`ℸ`,darr:`↓`,dash:`‐`,dashv:`⊣`,dbkarow:`⤏`,dblac:`˝`,dcaron:`ď`,dcy:`д`,dd:`ⅆ`,ddagger:`‡`,ddarr:`⇊`,ddotseq:`⩷`,deg:`°`,delta:`δ`,demptyv:`⦱`,dfisht:`⥿`,dfr:`𝔡`,dharl:`⇃`,dharr:`⇂`,diam:`⋄`,diamond:`⋄`,diamondsuit:`♦`,diams:`♦`,die:`¨`,digamma:`ϝ`,disin:`⋲`,div:`÷`,divide:`÷`,divideontimes:`⋇`,divonx:`⋇`,djcy:`ђ`,dlcorn:`⌞`,dlcrop:`⌍`,dollar:`$`,dopf:`𝕕`,dot:`˙`,doteq:`≐`,doteqdot:`≑`,dotminus:`∸`,dotplus:`∔`,dotsquare:`⊡`,doublebarwedge:`⌆`,downarrow:`↓`,downdownarrows:`⇊`,downharpoonleft:`⇃`,downharpoonright:`⇂`,drbkarow:`⤐`,drcorn:`⌟`,drcrop:`⌌`,dscr:`𝒹`,dscy:`ѕ`,dsol:`⧶`,dstrok:`đ`,dtdot:`⋱`,dtri:`▿`,dtrif:`▾`,duarr:`⇵`,duhar:`⥯`,dwangle:`⦦`,dzcy:`џ`,dzigrarr:`⟿`,eDDot:`⩷`,eDot:`≑`,eacute:`é`,easter:`⩮`,ecaron:`ě`,ecir:`≖`,ecirc:`ê`,ecolon:`≕`,ecy:`э`,edot:`ė`,ee:`ⅇ`,efDot:`≒`,efr:`𝔢`,eg:`⪚`,egrave:`è`,egs:`⪖`,egsdot:`⪘`,el:`⪙`,elinters:`⏧`,ell:`ℓ`,els:`⪕`,elsdot:`⪗`,emacr:`ē`,empty:`∅`,emptyset:`∅`,emptyv:`∅`,emsp13:` `,emsp14:` `,emsp:` `,eng:`ŋ`,ensp:` `,eogon:`ę`,eopf:`𝕖`,epar:`⋕`,eparsl:`⧣`,eplus:`⩱`,epsi:`ε`,epsilon:`ε`,epsiv:`ϵ`,eqcirc:`≖`,eqcolon:`≕`,eqsim:`≂`,eqslantgtr:`⪖`,eqslantless:`⪕`,equals:`=`,equest:`≟`,equiv:`≡`,equivDD:`⩸`,eqvparsl:`⧥`,erDot:`≓`,erarr:`⥱`,escr:`ℯ`,esdot:`≐`,esim:`≂`,eta:`η`,eth:`ð`,euml:`ë`,euro:`€`,excl:`!`,exist:`∃`,expectation:`ℰ`,exponentiale:`ⅇ`,fallingdotseq:`≒`,fcy:`ф`,female:`♀`,ffilig:`ffi`,fflig:`ff`,ffllig:`ffl`,ffr:`𝔣`,filig:`fi`,fjlig:`fj`,flat:`♭`,fllig:`fl`,fltns:`▱`,fnof:`ƒ`,fopf:`𝕗`,forall:`∀`,fork:`⋔`,forkv:`⫙`,fpartint:`⨍`,frac12:`½`,frac13:`⅓`,frac14:`¼`,frac15:`⅕`,frac16:`⅙`,frac18:`⅛`,frac23:`⅔`,frac25:`⅖`,frac34:`¾`,frac35:`⅗`,frac38:`⅜`,frac45:`⅘`,frac56:`⅚`,frac58:`⅝`,frac78:`⅞`,frasl:`⁄`,frown:`⌢`,fscr:`𝒻`,gE:`≧`,gEl:`⪌`,gacute:`ǵ`,gamma:`γ`,gammad:`ϝ`,gap:`⪆`,gbreve:`ğ`,gcirc:`ĝ`,gcy:`г`,gdot:`ġ`,ge:`≥`,gel:`⋛`,geq:`≥`,geqq:`≧`,geqslant:`⩾`,ges:`⩾`,gescc:`⪩`,gesdot:`⪀`,gesdoto:`⪂`,gesdotol:`⪄`,gesl:`⋛︀`,gesles:`⪔`,gfr:`𝔤`,gg:`≫`,ggg:`⋙`,gimel:`ℷ`,gjcy:`ѓ`,gl:`≷`,glE:`⪒`,gla:`⪥`,glj:`⪤`,gnE:`≩`,gnap:`⪊`,gnapprox:`⪊`,gne:`⪈`,gneq:`⪈`,gneqq:`≩`,gnsim:`⋧`,gopf:`𝕘`,grave:"`",gscr:`ℊ`,gsim:`≳`,gsime:`⪎`,gsiml:`⪐`,gt:`>`,gtcc:`⪧`,gtcir:`⩺`,gtdot:`⋗`,gtlPar:`⦕`,gtquest:`⩼`,gtrapprox:`⪆`,gtrarr:`⥸`,gtrdot:`⋗`,gtreqless:`⋛`,gtreqqless:`⪌`,gtrless:`≷`,gtrsim:`≳`,gvertneqq:`≩︀`,gvnE:`≩︀`,hArr:`⇔`,hairsp:` `,half:`½`,hamilt:`ℋ`,hardcy:`ъ`,harr:`↔`,harrcir:`⥈`,harrw:`↭`,hbar:`ℏ`,hcirc:`ĥ`,hearts:`♥`,heartsuit:`♥`,hellip:`…`,hercon:`⊹`,hfr:`𝔥`,hksearow:`⤥`,hkswarow:`⤦`,hoarr:`⇿`,homtht:`∻`,hookleftarrow:`↩`,hookrightarrow:`↪`,hopf:`𝕙`,horbar:`―`,hscr:`𝒽`,hslash:`ℏ`,hstrok:`ħ`,hybull:`⁃`,hyphen:`‐`,iacute:`í`,ic:``,icirc:`î`,icy:`и`,iecy:`е`,iexcl:`¡`,iff:`⇔`,ifr:`𝔦`,igrave:`ì`,ii:`ⅈ`,iiiint:`⨌`,iiint:`∭`,iinfin:`⧜`,iiota:`℩`,ijlig:`ij`,imacr:`ī`,image:`ℑ`,imagline:`ℐ`,imagpart:`ℑ`,imath:`ı`,imof:`⊷`,imped:`Ƶ`,in:`∈`,incare:`℅`,infin:`∞`,infintie:`⧝`,inodot:`ı`,int:`∫`,intcal:`⊺`,integers:`ℤ`,intercal:`⊺`,intlarhk:`⨗`,intprod:`⨼`,iocy:`ё`,iogon:`į`,iopf:`𝕚`,iota:`ι`,iprod:`⨼`,iquest:`¿`,iscr:`𝒾`,isin:`∈`,isinE:`⋹`,isindot:`⋵`,isins:`⋴`,isinsv:`⋳`,isinv:`∈`,it:``,itilde:`ĩ`,iukcy:`і`,iuml:`ï`,jcirc:`ĵ`,jcy:`й`,jfr:`𝔧`,jmath:`ȷ`,jopf:`𝕛`,jscr:`𝒿`,jsercy:`ј`,jukcy:`є`,kappa:`κ`,kappav:`ϰ`,kcedil:`ķ`,kcy:`к`,kfr:`𝔨`,kgreen:`ĸ`,khcy:`х`,kjcy:`ќ`,kopf:`𝕜`,kscr:`𝓀`,lAarr:`⇚`,lArr:`⇐`,lAtail:`⤛`,lBarr:`⤎`,lE:`≦`,lEg:`⪋`,lHar:`⥢`,lacute:`ĺ`,laemptyv:`⦴`,lagran:`ℒ`,lambda:`λ`,lang:`⟨`,langd:`⦑`,langle:`⟨`,lap:`⪅`,laquo:`«`,larr:`←`,larrb:`⇤`,larrbfs:`⤟`,larrfs:`⤝`,larrhk:`↩`,larrlp:`↫`,larrpl:`⤹`,larrsim:`⥳`,larrtl:`↢`,lat:`⪫`,latail:`⤙`,late:`⪭`,lates:`⪭︀`,lbarr:`⤌`,lbbrk:`❲`,lbrace:`{`,lbrack:`[`,lbrke:`⦋`,lbrksld:`⦏`,lbrkslu:`⦍`,lcaron:`ľ`,lcedil:`ļ`,lceil:`⌈`,lcub:`{`,lcy:`л`,ldca:`⤶`,ldquo:`“`,ldquor:`„`,ldrdhar:`⥧`,ldrushar:`⥋`,ldsh:`↲`,le:`≤`,leftarrow:`←`,leftarrowtail:`↢`,leftharpoondown:`↽`,leftharpoonup:`↼`,leftleftarrows:`⇇`,leftrightarrow:`↔`,leftrightarrows:`⇆`,leftrightharpoons:`⇋`,leftrightsquigarrow:`↭`,leftthreetimes:`⋋`,leg:`⋚`,leq:`≤`,leqq:`≦`,leqslant:`⩽`,les:`⩽`,lescc:`⪨`,lesdot:`⩿`,lesdoto:`⪁`,lesdotor:`⪃`,lesg:`⋚︀`,lesges:`⪓`,lessapprox:`⪅`,lessdot:`⋖`,lesseqgtr:`⋚`,lesseqqgtr:`⪋`,lessgtr:`≶`,lesssim:`≲`,lfisht:`⥼`,lfloor:`⌊`,lfr:`𝔩`,lg:`≶`,lgE:`⪑`,lhard:`↽`,lharu:`↼`,lharul:`⥪`,lhblk:`▄`,ljcy:`љ`,ll:`≪`,llarr:`⇇`,llcorner:`⌞`,llhard:`⥫`,lltri:`◺`,lmidot:`ŀ`,lmoust:`⎰`,lmoustache:`⎰`,lnE:`≨`,lnap:`⪉`,lnapprox:`⪉`,lne:`⪇`,lneq:`⪇`,lneqq:`≨`,lnsim:`⋦`,loang:`⟬`,loarr:`⇽`,lobrk:`⟦`,longleftarrow:`⟵`,longleftrightarrow:`⟷`,longmapsto:`⟼`,longrightarrow:`⟶`,looparrowleft:`↫`,looparrowright:`↬`,lopar:`⦅`,lopf:`𝕝`,loplus:`⨭`,lotimes:`⨴`,lowast:`∗`,lowbar:`_`,loz:`◊`,lozenge:`◊`,lozf:`⧫`,lpar:`(`,lparlt:`⦓`,lrarr:`⇆`,lrcorner:`⌟`,lrhar:`⇋`,lrhard:`⥭`,lrm:``,lrtri:`⊿`,lsaquo:`‹`,lscr:`𝓁`,lsh:`↰`,lsim:`≲`,lsime:`⪍`,lsimg:`⪏`,lsqb:`[`,lsquo:`‘`,lsquor:`‚`,lstrok:`ł`,lt:`<`,ltcc:`⪦`,ltcir:`⩹`,ltdot:`⋖`,lthree:`⋋`,ltimes:`⋉`,ltlarr:`⥶`,ltquest:`⩻`,ltrPar:`⦖`,ltri:`◃`,ltrie:`⊴`,ltrif:`◂`,lurdshar:`⥊`,luruhar:`⥦`,lvertneqq:`≨︀`,lvnE:`≨︀`,mDDot:`∺`,macr:`¯`,male:`♂`,malt:`✠`,maltese:`✠`,map:`↦`,mapsto:`↦`,mapstodown:`↧`,mapstoleft:`↤`,mapstoup:`↥`,marker:`▮`,mcomma:`⨩`,mcy:`м`,mdash:`—`,measuredangle:`∡`,mfr:`𝔪`,mho:`℧`,micro:`µ`,mid:`∣`,midast:`*`,midcir:`⫰`,middot:`·`,minus:`−`,minusb:`⊟`,minusd:`∸`,minusdu:`⨪`,mlcp:`⫛`,mldr:`…`,mnplus:`∓`,models:`⊧`,mopf:`𝕞`,mp:`∓`,mscr:`𝓂`,mstpos:`∾`,mu:`μ`,multimap:`⊸`,mumap:`⊸`,nGg:`⋙̸`,nGt:`≫⃒`,nGtv:`≫̸`,nLeftarrow:`⇍`,nLeftrightarrow:`⇎`,nLl:`⋘̸`,nLt:`≪⃒`,nLtv:`≪̸`,nRightarrow:`⇏`,nVDash:`⊯`,nVdash:`⊮`,nabla:`∇`,nacute:`ń`,nang:`∠⃒`,nap:`≉`,napE:`⩰̸`,napid:`≋̸`,napos:`ʼn`,napprox:`≉`,natur:`♮`,natural:`♮`,naturals:`ℕ`,nbsp:`\xA0`,nbump:`≎̸`,nbumpe:`≏̸`,ncap:`⩃`,ncaron:`ň`,ncedil:`ņ`,ncong:`≇`,ncongdot:`⩭̸`,ncup:`⩂`,ncy:`н`,ndash:`–`,ne:`≠`,neArr:`⇗`,nearhk:`⤤`,nearr:`↗`,nearrow:`↗`,nedot:`≐̸`,nequiv:`≢`,nesear:`⤨`,nesim:`≂̸`,nexist:`∄`,nexists:`∄`,nfr:`𝔫`,ngE:`≧̸`,nge:`≱`,ngeq:`≱`,ngeqq:`≧̸`,ngeqslant:`⩾̸`,nges:`⩾̸`,ngsim:`≵`,ngt:`≯`,ngtr:`≯`,nhArr:`⇎`,nharr:`↮`,nhpar:`⫲`,ni:`∋`,nis:`⋼`,nisd:`⋺`,niv:`∋`,njcy:`њ`,nlArr:`⇍`,nlE:`≦̸`,nlarr:`↚`,nldr:`‥`,nle:`≰`,nleftarrow:`↚`,nleftrightarrow:`↮`,nleq:`≰`,nleqq:`≦̸`,nleqslant:`⩽̸`,nles:`⩽̸`,nless:`≮`,nlsim:`≴`,nlt:`≮`,nltri:`⋪`,nltrie:`⋬`,nmid:`∤`,nopf:`𝕟`,not:`¬`,notin:`∉`,notinE:`⋹̸`,notindot:`⋵̸`,notinva:`∉`,notinvb:`⋷`,notinvc:`⋶`,notni:`∌`,notniva:`∌`,notnivb:`⋾`,notnivc:`⋽`,npar:`∦`,nparallel:`∦`,nparsl:`⫽⃥`,npart:`∂̸`,npolint:`⨔`,npr:`⊀`,nprcue:`⋠`,npre:`⪯̸`,nprec:`⊀`,npreceq:`⪯̸`,nrArr:`⇏`,nrarr:`↛`,nrarrc:`⤳̸`,nrarrw:`↝̸`,nrightarrow:`↛`,nrtri:`⋫`,nrtrie:`⋭`,nsc:`⊁`,nsccue:`⋡`,nsce:`⪰̸`,nscr:`𝓃`,nshortmid:`∤`,nshortparallel:`∦`,nsim:`≁`,nsime:`≄`,nsimeq:`≄`,nsmid:`∤`,nspar:`∦`,nsqsube:`⋢`,nsqsupe:`⋣`,nsub:`⊄`,nsubE:`⫅̸`,nsube:`⊈`,nsubset:`⊂⃒`,nsubseteq:`⊈`,nsubseteqq:`⫅̸`,nsucc:`⊁`,nsucceq:`⪰̸`,nsup:`⊅`,nsupE:`⫆̸`,nsupe:`⊉`,nsupset:`⊃⃒`,nsupseteq:`⊉`,nsupseteqq:`⫆̸`,ntgl:`≹`,ntilde:`ñ`,ntlg:`≸`,ntriangleleft:`⋪`,ntrianglelefteq:`⋬`,ntriangleright:`⋫`,ntrianglerighteq:`⋭`,nu:`ν`,num:`#`,numero:`№`,numsp:` `,nvDash:`⊭`,nvHarr:`⤄`,nvap:`≍⃒`,nvdash:`⊬`,nvge:`≥⃒`,nvgt:`>⃒`,nvinfin:`⧞`,nvlArr:`⤂`,nvle:`≤⃒`,nvlt:`<⃒`,nvltrie:`⊴⃒`,nvrArr:`⤃`,nvrtrie:`⊵⃒`,nvsim:`∼⃒`,nwArr:`⇖`,nwarhk:`⤣`,nwarr:`↖`,nwarrow:`↖`,nwnear:`⤧`,oS:`Ⓢ`,oacute:`ó`,oast:`⊛`,ocir:`⊚`,ocirc:`ô`,ocy:`о`,odash:`⊝`,odblac:`ő`,odiv:`⨸`,odot:`⊙`,odsold:`⦼`,oelig:`œ`,ofcir:`⦿`,ofr:`𝔬`,ogon:`˛`,ograve:`ò`,ogt:`⧁`,ohbar:`⦵`,ohm:`Ω`,oint:`∮`,olarr:`↺`,olcir:`⦾`,olcross:`⦻`,oline:`‾`,olt:`⧀`,omacr:`ō`,omega:`ω`,omicron:`ο`,omid:`⦶`,ominus:`⊖`,oopf:`𝕠`,opar:`⦷`,operp:`⦹`,oplus:`⊕`,or:`∨`,orarr:`↻`,ord:`⩝`,order:`ℴ`,orderof:`ℴ`,ordf:`ª`,ordm:`º`,origof:`⊶`,oror:`⩖`,orslope:`⩗`,orv:`⩛`,oscr:`ℴ`,oslash:`ø`,osol:`⊘`,otilde:`õ`,otimes:`⊗`,otimesas:`⨶`,ouml:`ö`,ovbar:`⌽`,par:`∥`,para:`¶`,parallel:`∥`,parsim:`⫳`,parsl:`⫽`,part:`∂`,pcy:`п`,percnt:`%`,period:`.`,permil:`‰`,perp:`⊥`,pertenk:`‱`,pfr:`𝔭`,phi:`φ`,phiv:`ϕ`,phmmat:`ℳ`,phone:`☎`,pi:`π`,pitchfork:`⋔`,piv:`ϖ`,planck:`ℏ`,planckh:`ℎ`,plankv:`ℏ`,plus:`+`,plusacir:`⨣`,plusb:`⊞`,pluscir:`⨢`,plusdo:`∔`,plusdu:`⨥`,pluse:`⩲`,plusmn:`±`,plussim:`⨦`,plustwo:`⨧`,pm:`±`,pointint:`⨕`,popf:`𝕡`,pound:`£`,pr:`≺`,prE:`⪳`,prap:`⪷`,prcue:`≼`,pre:`⪯`,prec:`≺`,precapprox:`⪷`,preccurlyeq:`≼`,preceq:`⪯`,precnapprox:`⪹`,precneqq:`⪵`,precnsim:`⋨`,precsim:`≾`,prime:`′`,primes:`ℙ`,prnE:`⪵`,prnap:`⪹`,prnsim:`⋨`,prod:`∏`,profalar:`⌮`,profline:`⌒`,profsurf:`⌓`,prop:`∝`,propto:`∝`,prsim:`≾`,prurel:`⊰`,pscr:`𝓅`,psi:`ψ`,puncsp:` `,qfr:`𝔮`,qint:`⨌`,qopf:`𝕢`,qprime:`⁗`,qscr:`𝓆`,quaternions:`ℍ`,quatint:`⨖`,quest:`?`,questeq:`≟`,quot:`"`,rAarr:`⇛`,rArr:`⇒`,rAtail:`⤜`,rBarr:`⤏`,rHar:`⥤`,race:`∽̱`,racute:`ŕ`,radic:`√`,raemptyv:`⦳`,rang:`⟩`,rangd:`⦒`,range:`⦥`,rangle:`⟩`,raquo:`»`,rarr:`→`,rarrap:`⥵`,rarrb:`⇥`,rarrbfs:`⤠`,rarrc:`⤳`,rarrfs:`⤞`,rarrhk:`↪`,rarrlp:`↬`,rarrpl:`⥅`,rarrsim:`⥴`,rarrtl:`↣`,rarrw:`↝`,ratail:`⤚`,ratio:`∶`,rationals:`ℚ`,rbarr:`⤍`,rbbrk:`❳`,rbrace:`}`,rbrack:`]`,rbrke:`⦌`,rbrksld:`⦎`,rbrkslu:`⦐`,rcaron:`ř`,rcedil:`ŗ`,rceil:`⌉`,rcub:`}`,rcy:`р`,rdca:`⤷`,rdldhar:`⥩`,rdquo:`”`,rdquor:`”`,rdsh:`↳`,real:`ℜ`,realine:`ℛ`,realpart:`ℜ`,reals:`ℝ`,rect:`▭`,reg:`®`,rfisht:`⥽`,rfloor:`⌋`,rfr:`𝔯`,rhard:`⇁`,rharu:`⇀`,rharul:`⥬`,rho:`ρ`,rhov:`ϱ`,rightarrow:`→`,rightarrowtail:`↣`,rightharpoondown:`⇁`,rightharpoonup:`⇀`,rightleftarrows:`⇄`,rightleftharpoons:`⇌`,rightrightarrows:`⇉`,rightsquigarrow:`↝`,rightthreetimes:`⋌`,ring:`˚`,risingdotseq:`≓`,rlarr:`⇄`,rlhar:`⇌`,rlm:``,rmoust:`⎱`,rmoustache:`⎱`,rnmid:`⫮`,roang:`⟭`,roarr:`⇾`,robrk:`⟧`,ropar:`⦆`,ropf:`𝕣`,roplus:`⨮`,rotimes:`⨵`,rpar:`)`,rpargt:`⦔`,rppolint:`⨒`,rrarr:`⇉`,rsaquo:`›`,rscr:`𝓇`,rsh:`↱`,rsqb:`]`,rsquo:`’`,rsquor:`’`,rthree:`⋌`,rtimes:`⋊`,rtri:`▹`,rtrie:`⊵`,rtrif:`▸`,rtriltri:`⧎`,ruluhar:`⥨`,rx:`℞`,sacute:`ś`,sbquo:`‚`,sc:`≻`,scE:`⪴`,scap:`⪸`,scaron:`š`,sccue:`≽`,sce:`⪰`,scedil:`ş`,scirc:`ŝ`,scnE:`⪶`,scnap:`⪺`,scnsim:`⋩`,scpolint:`⨓`,scsim:`≿`,scy:`с`,sdot:`⋅`,sdotb:`⊡`,sdote:`⩦`,seArr:`⇘`,searhk:`⤥`,searr:`↘`,searrow:`↘`,sect:`§`,semi:`;`,seswar:`⤩`,setminus:`∖`,setmn:`∖`,sext:`✶`,sfr:`𝔰`,sfrown:`⌢`,sharp:`♯`,shchcy:`щ`,shcy:`ш`,shortmid:`∣`,shortparallel:`∥`,shy:``,sigma:`σ`,sigmaf:`ς`,sigmav:`ς`,sim:`∼`,simdot:`⩪`,sime:`≃`,simeq:`≃`,simg:`⪞`,simgE:`⪠`,siml:`⪝`,simlE:`⪟`,simne:`≆`,simplus:`⨤`,simrarr:`⥲`,slarr:`←`,smallsetminus:`∖`,smashp:`⨳`,smeparsl:`⧤`,smid:`∣`,smile:`⌣`,smt:`⪪`,smte:`⪬`,smtes:`⪬︀`,softcy:`ь`,sol:`/`,solb:`⧄`,solbar:`⌿`,sopf:`𝕤`,spades:`♠`,spadesuit:`♠`,spar:`∥`,sqcap:`⊓`,sqcaps:`⊓︀`,sqcup:`⊔`,sqcups:`⊔︀`,sqsub:`⊏`,sqsube:`⊑`,sqsubset:`⊏`,sqsubseteq:`⊑`,sqsup:`⊐`,sqsupe:`⊒`,sqsupset:`⊐`,sqsupseteq:`⊒`,squ:`□`,square:`□`,squarf:`▪`,squf:`▪`,srarr:`→`,sscr:`𝓈`,ssetmn:`∖`,ssmile:`⌣`,sstarf:`⋆`,star:`☆`,starf:`★`,straightepsilon:`ϵ`,straightphi:`ϕ`,strns:`¯`,sub:`⊂`,subE:`⫅`,subdot:`⪽`,sube:`⊆`,subedot:`⫃`,submult:`⫁`,subnE:`⫋`,subne:`⊊`,subplus:`⪿`,subrarr:`⥹`,subset:`⊂`,subseteq:`⊆`,subseteqq:`⫅`,subsetneq:`⊊`,subsetneqq:`⫋`,subsim:`⫇`,subsub:`⫕`,subsup:`⫓`,succ:`≻`,succapprox:`⪸`,succcurlyeq:`≽`,succeq:`⪰`,succnapprox:`⪺`,succneqq:`⪶`,succnsim:`⋩`,succsim:`≿`,sum:`∑`,sung:`♪`,sup1:`¹`,sup2:`²`,sup3:`³`,sup:`⊃`,supE:`⫆`,supdot:`⪾`,supdsub:`⫘`,supe:`⊇`,supedot:`⫄`,suphsol:`⟉`,suphsub:`⫗`,suplarr:`⥻`,supmult:`⫂`,supnE:`⫌`,supne:`⊋`,supplus:`⫀`,supset:`⊃`,supseteq:`⊇`,supseteqq:`⫆`,supsetneq:`⊋`,supsetneqq:`⫌`,supsim:`⫈`,supsub:`⫔`,supsup:`⫖`,swArr:`⇙`,swarhk:`⤦`,swarr:`↙`,swarrow:`↙`,swnwar:`⤪`,szlig:`ß`,target:`⌖`,tau:`τ`,tbrk:`⎴`,tcaron:`ť`,tcedil:`ţ`,tcy:`т`,tdot:`⃛`,telrec:`⌕`,tfr:`𝔱`,there4:`∴`,therefore:`∴`,theta:`θ`,thetasym:`ϑ`,thetav:`ϑ`,thickapprox:`≈`,thicksim:`∼`,thinsp:` `,thkap:`≈`,thksim:`∼`,thorn:`þ`,tilde:`˜`,times:`×`,timesb:`⊠`,timesbar:`⨱`,timesd:`⨰`,tint:`∭`,toea:`⤨`,top:`⊤`,topbot:`⌶`,topcir:`⫱`,topf:`𝕥`,topfork:`⫚`,tosa:`⤩`,tprime:`‴`,trade:`™`,triangle:`▵`,triangledown:`▿`,triangleleft:`◃`,trianglelefteq:`⊴`,triangleq:`≜`,triangleright:`▹`,trianglerighteq:`⊵`,tridot:`◬`,trie:`≜`,triminus:`⨺`,triplus:`⨹`,trisb:`⧍`,tritime:`⨻`,trpezium:`⏢`,tscr:`𝓉`,tscy:`ц`,tshcy:`ћ`,tstrok:`ŧ`,twixt:`≬`,twoheadleftarrow:`↞`,twoheadrightarrow:`↠`,uArr:`⇑`,uHar:`⥣`,uacute:`ú`,uarr:`↑`,ubrcy:`ў`,ubreve:`ŭ`,ucirc:`û`,ucy:`у`,udarr:`⇅`,udblac:`ű`,udhar:`⥮`,ufisht:`⥾`,ufr:`𝔲`,ugrave:`ù`,uharl:`↿`,uharr:`↾`,uhblk:`▀`,ulcorn:`⌜`,ulcorner:`⌜`,ulcrop:`⌏`,ultri:`◸`,umacr:`ū`,uml:`¨`,uogon:`ų`,uopf:`𝕦`,uparrow:`↑`,updownarrow:`↕`,upharpoonleft:`↿`,upharpoonright:`↾`,uplus:`⊎`,upsi:`υ`,upsih:`ϒ`,upsilon:`υ`,upuparrows:`⇈`,urcorn:`⌝`,urcorner:`⌝`,urcrop:`⌎`,uring:`ů`,urtri:`◹`,uscr:`𝓊`,utdot:`⋰`,utilde:`ũ`,utri:`▵`,utrif:`▴`,uuarr:`⇈`,uuml:`ü`,uwangle:`⦧`,vArr:`⇕`,vBar:`⫨`,vBarv:`⫩`,vDash:`⊨`,vangrt:`⦜`,varepsilon:`ϵ`,varkappa:`ϰ`,varnothing:`∅`,varphi:`ϕ`,varpi:`ϖ`,varpropto:`∝`,varr:`↕`,varrho:`ϱ`,varsigma:`ς`,varsubsetneq:`⊊︀`,varsubsetneqq:`⫋︀`,varsupsetneq:`⊋︀`,varsupsetneqq:`⫌︀`,vartheta:`ϑ`,vartriangleleft:`⊲`,vartriangleright:`⊳`,vcy:`в`,vdash:`⊢`,vee:`∨`,veebar:`⊻`,veeeq:`≚`,vellip:`⋮`,verbar:`|`,vert:`|`,vfr:`𝔳`,vltri:`⊲`,vnsub:`⊂⃒`,vnsup:`⊃⃒`,vopf:`𝕧`,vprop:`∝`,vrtri:`⊳`,vscr:`𝓋`,vsubnE:`⫋︀`,vsubne:`⊊︀`,vsupnE:`⫌︀`,vsupne:`⊋︀`,vzigzag:`⦚`,wcirc:`ŵ`,wedbar:`⩟`,wedge:`∧`,wedgeq:`≙`,weierp:`℘`,wfr:`𝔴`,wopf:`𝕨`,wp:`℘`,wr:`≀`,wreath:`≀`,wscr:`𝓌`,xcap:`⋂`,xcirc:`◯`,xcup:`⋃`,xdtri:`▽`,xfr:`𝔵`,xhArr:`⟺`,xharr:`⟷`,xi:`ξ`,xlArr:`⟸`,xlarr:`⟵`,xmap:`⟼`,xnis:`⋻`,xodot:`⨀`,xopf:`𝕩`,xoplus:`⨁`,xotime:`⨂`,xrArr:`⟹`,xrarr:`⟶`,xscr:`𝓍`,xsqcup:`⨆`,xuplus:`⨄`,xutri:`△`,xvee:`⋁`,xwedge:`⋀`,yacute:`ý`,yacy:`я`,ycirc:`ŷ`,ycy:`ы`,yen:`¥`,yfr:`𝔶`,yicy:`ї`,yopf:`𝕪`,yscr:`𝓎`,yucy:`ю`,yuml:`ÿ`,zacute:`ź`,zcaron:`ž`,zcy:`з`,zdot:`ż`,zeetrf:`ℨ`,zeta:`ζ`,zfr:`𝔷`,zhcy:`ж`,zigrarr:`⇝`,zopf:`𝕫`,zscr:`𝓏`,zwj:``,zwnj:``},ir=/* @__PURE__ */ `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`.split(`.`),ar=new Uint32Array([161,169,171,172,174,177,180,180,182,184,187,187,191,191,215,215,247,247,706,709,722,735,741,747,749,749,751,767,885,885,894,894,900,901,903,903,1014,1014,1154,1154,1370,1375,1417,1418,1421,1423,1470,1470,1472,1472,1475,1475,1478,1478,1523,1524,1542,1551,1563,1563,1565,1567,1642,1645,1748,1748,1758,1758,1769,1769,1789,1790,1792,1805,2038,2041,2046,2047,2096,2110,2142,2142,2184,2184,2404,2405,2416,2416,2546,2547,2554,2555,2557,2557,2678,2678,2800,2801,2928,2928,3059,3066,3191,3191,3199,3199,3204,3204,3407,3407,3449,3449,3572,3572,3647,3647,3663,3663,3674,3675,3841,3863,3866,3871,3892,3892,3894,3894,3896,3896,3898,3901,3973,3973,4030,4037,4039,4044,4046,4058,4170,4175,4254,4255,4347,4347,4960,4968,5008,5017,5120,5120,5741,5742,5787,5788,5867,5869,5941,5942,6100,6102,6104,6107,6144,6154,6464,6464,6468,6469,6622,6655,6686,6687,6816,6822,6824,6829,7002,7018,7028,7038,7164,7167,7227,7231,7294,7295,7360,7367,7379,7379,8125,8125,8127,8129,8141,8143,8157,8159,8173,8175,8189,8190,8208,8231,8240,8286,8314,8318,8330,8334,8352,8384,8448,8449,8451,8454,8456,8457,8468,8468,8470,8472,8478,8483,8485,8485,8487,8487,8489,8489,8494,8494,8506,8507,8512,8516,8522,8525,8527,8527,8586,8587,8592,9254,9280,9290,9372,9449,9472,10101,10132,11123,11126,11157,11159,11263,11493,11498,11513,11516,11518,11519,11632,11632,11776,11822,11824,11869,11904,11929,11931,12019,12032,12245,12272,12287,12289,12292,12296,12320,12336,12336,12342,12343,12349,12351,12443,12444,12448,12448,12539,12539,12688,12689,12694,12703,12736,12771,12783,12783,12800,12830,12842,12871,12880,12880,12896,12927,12938,12976,12992,13311,19904,19967,42128,42182,42238,42239,42509,42511,42611,42611,42622,42622,42738,42743,42752,42774,42784,42785,42889,42890,43048,43051,43062,43065,43124,43127,43214,43215,43256,43258,43260,43260,43310,43311,43359,43359,43457,43469,43486,43487,43612,43615,43639,43641,43742,43743,43760,43761,43867,43867,43882,43883,44011,44011,64297,64297,64434,64450,64830,64847,64975,64975,65020,65023,65040,65049,65072,65106,65108,65126,65128,65131,65281,65295,65306,65312,65339,65344,65371,65381,65504,65510,65512,65518,65532,65533,65792,65794,65847,65855,65913,65929,65932,65934,65936,65948,65952,65952,66e3,66044,66463,66463,66512,66512,66927,66927,67671,67671,67703,67704,67871,67871,67903,67903,68176,68184,68223,68223,68296,68296,68336,68342,68409,68415,68505,68508,69293,69293,69461,69465,69510,69513,69703,69709,69819,69820,69822,69825,69952,69955,70004,70005,70085,70088,70093,70093,70107,70107,70109,70111,70200,70205,70313,70313,70731,70735,70746,70747,70749,70749,70854,70854,71105,71127,71233,71235,71264,71276,71353,71353,71484,71487,71739,71739,72004,72006,72162,72162,72255,72262,72346,72348,72350,72354,72448,72457,72769,72773,72816,72817,73463,73464,73539,73551,73685,73713,73727,73727,74864,74868,77809,77810,92782,92783,92917,92917,92983,92991,92996,92997,93847,93850,94178,94178,113820,113820,113823,113823,118608,118723,118784,119029,119040,119078,119081,119140,119146,119148,119171,119172,119180,119209,119214,119274,119296,119361,119365,119365,119552,119638,120513,120513,120539,120539,120571,120571,120597,120597,120629,120629,120655,120655,120687,120687,120713,120713,120745,120745,120771,120771,120832,121343,121399,121402,121453,121460,121462,121475,121477,121483,123215,123215,123647,123647,125278,125279,126124,126124,126128,126128,126254,126254,126704,126705,126976,127019,127024,127123,127136,127150,127153,127167,127169,127183,127185,127221,127245,127405,127462,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,128727,128732,128748,128752,128764,128768,128886,128891,128985,128992,129003,129008,129008,129024,129035,129040,129095,129104,129113,129120,129159,129168,129197,129200,129201,129280,129619,129632,129645,129648,129660,129664,129672,129680,129725,129727,129733,129742,129755,129760,129768,129776,129784,129792,129938,129940,129994]),or=128,sr=4,cr=6,lr=7,ur=31,dr=1114111,fr=55296,pr=57343,mr=64976,hr=65007,gr=65535,_r=65534,vr=65533,yr=6,br=128,xr=159,Sr=`€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ`,Cr=new Set(ir),wr=1024,Tr=4,Er=new Uint8Array(or);for(let e=0;e<or;e++)(e>=9&&e<=13||e===32)&&(Er[e]|=1),(e>=33&&e<=47||e>=58&&e<=64||e>=91&&e<=96||e>=123&&e<=126)&&(Er[e]|=2),e>=48&&e<=57&&(Er[e]|=4),(e>=65&&e<=90||e>=97&&e<=122)&&(Er[e]|=8);function Dr(e){return e<or?!!(Er[e]&1):e===160||e===5760||e>=8192&&e<=8202||e===8232||e===8233||e===8239||e===8287||e===12288||e===65279}function Or(e){if(e<or)return!!(Er[e]&2);let t=0,n=ar.length>>1;for(;t<n;){let r=t+n>>>1;if(e<ar[r*2])n=r;else if(e>ar[r*2+1])t=r+1;else return!0}return!1}function M(e){return e===32||e===9}function kr(e){return e>=48&&e<=57}function Ar(e){return e>=65&&e<=90||e>=97&&e<=122}function jr(e,t,n){let r=t+1;if(e.charCodeAt(r)===35){r++;let t=e.charCodeAt(r)===120||e.charCodeAt(r)===88;t&&r++;let i=r,a=0;for(;r<n&&r-i<(t?cr:lr);){let n=e.charCodeAt(r),i=kr(n)?n-48:t&&n>=65&&n<=70?n-55:t&&n>=97&&n<=102?n-87:-1;if(i<0)break;a=a*(t?16:10)+i,r++}return r===i||e.charCodeAt(r)!==59?void 0:((a<9||a===11||a>13&&a<32||a>126&&a<160||a>dr||a>=fr&&a<=pr||a>=mr&&a<=hr||(a&gr)>=_r)&&(a=vr),{value:String.fromCodePoint(a),end:r+1})}let i=r;for(;r<n&&r-i<ur&&(Ar(e.charCodeAt(r))||kr(e.charCodeAt(r)));)r++;if(e.charCodeAt(r)!==59)return;let a=e.slice(i,r),o=Object.hasOwn(rr,a)?rr[a]:void 0;if(o!==void 0)return{value:o,end:r+1}}function Mr(e,t,n){let r=t+1;if(e.charCodeAt(r)===35){r++;let t=e.charCodeAt(r)===120||e.charCodeAt(r)===88;t&&r++;let i=r;for(;r<n;){let n=e.charCodeAt(r);if(!kr(n)&&!(t&&(n>=65&&n<=70||n>=97&&n<=102)))break;r++}if(r===i||e.charCodeAt(r)!==59)return;let a=Number.parseInt(e.slice(i,r),t?16:10);return{value:a>dr||a>=fr&&a<=pr||a===0?String.fromCharCode(vr):a>=br&&a<=xr?Sr[a-br]:String.fromCodePoint(a),end:r+1}}let i=r,a=0;for(;r<n&&(Ar(e.charCodeAt(r))||kr(e.charCodeAt(r)));)r++,r-i<=yr&&Cr.has(e.slice(i,r))&&(a=r);if(e.charCodeAt(r)!==59)return;let o=e.slice(i,r);if(Object.hasOwn(rr,o))return{value:rr[o],end:r+1};if(a)return{value:rr[e.slice(i,a)],end:a}}var Nr=/[\\&\0]/;function Pr(e){if(!Nr.test(e))return e;let t=``,n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);if(i===92&&e.charCodeAt(r+1)<or&&Or(e.charCodeAt(r+1)))t+=e.slice(n,r)+e[r+1],n=++r+1;else if(i===38){let i=jr(e,r,e.length);i&&(t+=e.slice(n,r)+i.value,n=i.end,r=i.end-1)}else i===0&&(t+=e.slice(n,r)+`�`,n=r+1)}return t?t+e.slice(n):e}function Fr(e){let t=``,n=!1;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);M(i)||i===10||i===13?n=t.length>0:(n&&(t+=` `),t+=e[r],n=!1)}return t.toLowerCase().toUpperCase().toLowerCase()}var Ir=new Int32Array(wr),Lr=0,Rr=0,zr=0,Br=!0;function Vr(e,t){Br=t,Rr=1,zr=0,Ir[0]=0,Lr=0;let n=e.indexOf(`
|
|
17
17
|
`),r=e.indexOf(`\r`);for(;n>=0||r>=0;){let t=n<0?r:r<0?n:Math.min(n,r);if(t===r&&(n===r+1&&t++,r=e.indexOf(`\r`,t+1)),t===n&&(n=e.indexOf(`
|
|
18
|
-
`,t+1)),Rr===Ir.length){let e=new Int32Array(Rr*2);e.set(Ir),Ir=e}Ir[Rr++]=t+1}Lr=Rr-+(Ir[Rr-1]===e.length)}function Hr(e){if(e<Ir[zr]||zr+1<Rr&&e>=Ir[zr+1]){let t=0;for(;zr+1<Rr&&e>=Ir[zr+1]&&t++<Tr;)zr++;for(;zr&&e<Ir[zr]&&t++<Tr;)zr--;if(e<Ir[zr]||zr+1<Rr&&e>=Ir[zr+1]){let t=0,n=Rr;for(;t+1<n;){let r=t+n>>>1;Ir[r]<=e?t=r:n=r}zr=t}}return{line:zr+1,column:e-Ir[zr]+1,offset:e}}function Ur(e,t,n){return Br?{start:n??Hr(e),end:Hr(t)}:void 0}var N;(function(e){e[e.Root=0]=`Root`,e[e.Paragraph=1]=`Paragraph`,e[e.Heading=2]=`Heading`,e[e.ThematicBreak=3]=`ThematicBreak`,e[e.Blockquote=4]=`Blockquote`,e[e.List=5]=`List`,e[e.ListItem=6]=`ListItem`,e[e.Html=7]=`Html`,e[e.Code=8]=`Code`,e[e.Definition=9]=`Definition`,e[e.Text=10]=`Text`,e[e.Emphasis=11]=`Emphasis`,e[e.Strong=12]=`Strong`,e[e.InlineCode=13]=`InlineCode`,e[e.Break=14]=`Break`,e[e.Link=15]=`Link`,e[e.Image=16]=`Image`,e[e.LinkReference=17]=`LinkReference`,e[e.ImageReference=18]=`ImageReference`,e[e.Delete=19]=`Delete`,e[e.Table=20]=`Table`,e[e.TableRow=21]=`TableRow`,e[e.TableCell=22]=`TableCell`,e[e.FootnoteDefinition=23]=`FootnoteDefinition`,e[e.FootnoteReference=24]=`FootnoteReference`,e[e.Yaml=25]=`Yaml`,e[e.Toml=26]=`Toml`,e[e.Mdx=27]=`Mdx`,e[e.IdString=28]=`IdString`,e[e.Math=29]=`Math`,e[e.InlineMath=30]=`InlineMath`})(N||={});var Wr=/* @__PURE__ */ new Uint8Array(31);for(let e of[N.Root,N.Paragraph,N.Heading,N.Blockquote,N.List,N.ListItem,N.Emphasis,N.Strong,N.Link,N.LinkReference,N.Delete,N.Table,N.TableRow,N.TableCell,N.FootnoteDefinition])Wr[e]=1;var Gr=[1,1,2,3,4,5,6],Kr=[],qr=[],Jr=2048,P={count:0,kind:new Uint8Array(Jr),start:new Int32Array(Jr),end:new Int32Array(Jr),child:new Int32Array(Jr),next:new Int32Array(Jr),prev:new Int32Array(Jr),last:new Int32Array(Jr),a:new Int32Array(Jr),b:new Int32Array(Jr),positionless:new Uint8Array(Jr),value:Kr,extra:qr};function Yr(){P.count=0,P.value.length=0,P.extra.length=0}function F(e,t,n,r=0){let i=++P.count;if(i>=Jr){Jr*=2;let e=new Uint8Array(Jr);e.set(P.kind),P.kind=e;let t=new Uint8Array(Jr);t.set(P.positionless),P.positionless=t;for(let e of[`start`,`end`,`child`,`next`,`prev`,`last`,`a`,`b`]){let t=P[e],n=new Int32Array(Jr);n.set(t),P[e]=n}}return P.kind[i]=e,P.positionless[i]=0,P.start[i]=t,P.end[i]=n,P.child[i]=P.next[i]=P.prev[i]=P.last[i]=P.a[i]=P.b[i]=0,r&&Xr(r,i),i}function Xr(e,t){P.prev[t]=P.last[e],P.last[e]?P.next[P.last[e]]=t:P.child[e]=t,P.last[e]=t}function Zr(e){let t=Wr[P.kind[e]]||P.kind[e]===N.Mdx&&P.extra[e]?.children?[]:void 0;for(let n=P.child[e];n;n=P.next[n])t.push(Zr(n));let n=P.value[e]??``,r=P.extra[e],i=P.positionless[e]?void 0:Ur(P.start[e],P.end[e],r?.positionStart);switch(P.kind[e]){case N.Mdx:{let e={...r};return t&&(e.children=t),i&&(e.position=i),e}case N.Paragraph:return i?{type:`paragraph`,children:t,position:i}:{type:`paragraph`,children:t};case N.Heading:return i?{type:`heading`,depth:Gr[P.a[e]],children:t,position:i}:{type:`heading`,depth:Gr[P.a[e]],children:t};case N.ThematicBreak:return i?{type:`thematicBreak`,position:i}:{type:`thematicBreak`};case N.Blockquote:return i?{type:`blockquote`,children:t,position:i}:{type:`blockquote`,children:t};case N.List:return i?{type:`list`,ordered:!!P.a[e],start:P.a[e]?P.b[e]:null,spread:!!r,children:t,position:i}:{type:`list`,ordered:!!P.a[e],start:P.a[e]?P.b[e]:null,spread:!!r,children:t};case N.ListItem:return i?{type:`listItem`,spread:!!P.a[e],checked:P.b[e]?P.b[e]===2:null,children:t,position:i}:{type:`listItem`,spread:!!P.a[e],checked:P.b[e]?P.b[e]===2:null,children:t};case N.Html:return i?{type:`html`,value:n,position:i}:{type:`html`,value:n};case N.Code:return i?{type:`code`,lang:r?.lang??null,meta:r?.meta??null,value:n,position:i}:{type:`code`,lang:r?.lang??null,meta:r?.meta??null,value:n};case N.Definition:return i?{type:`definition`,identifier:r.identifier,label:r.label,title:r.title,url:r.url,position:i}:{type:`definition`,identifier:r.identifier,label:r.label,title:r.title,url:r.url};case N.Text:return i?{type:`text`,value:n,position:i}:{type:`text`,value:n};case N.IdString:return i?{type:`idString`,value:n,position:i}:{type:`idString`,value:n};case N.Emphasis:return i?{type:`emphasis`,children:t,position:i}:{type:`emphasis`,children:t};case N.Strong:return i?{type:`strong`,children:t,position:i}:{type:`strong`,children:t};case N.InlineCode:return i?{type:`inlineCode`,value:n,position:i}:{type:`inlineCode`,value:n};case N.Break:return i?{type:`break`,position:i}:{type:`break`};case N.Delete:return i?{type:`delete`,children:t,position:i}:{type:`delete`,children:t};case N.Link:return i?{type:`link`,title:r.title,url:r.url,children:t,position:i}:{type:`link`,title:r.title,url:r.url,children:t};case N.Image:return i?{type:`image`,title:r.title,url:r.url,alt:n,position:i}:{type:`image`,title:r.title,url:r.url,alt:n};case N.LinkReference:return i?{type:`linkReference`,children:t,position:i,label:r.label,identifier:r.identifier,referenceType:r.referenceType}:{type:`linkReference`,children:t,label:r.label,identifier:r.identifier,referenceType:r.referenceType};case N.ImageReference:return i?{type:`imageReference`,alt:n,position:i,label:r.label,identifier:r.identifier,referenceType:r.referenceType}:{type:`imageReference`,alt:n,label:r.label,identifier:r.identifier,referenceType:r.referenceType};case N.Table:return i?{type:`table`,align:r,children:t,position:i}:{type:`table`,align:r,children:t};case N.TableRow:return i?{type:`tableRow`,children:t,position:i}:{type:`tableRow`,children:t};case N.TableCell:return i?{type:`tableCell`,children:t,position:i}:{type:`tableCell`,children:t};case N.FootnoteDefinition:return i?{type:`footnoteDefinition`,identifier:r.identifier,label:r.label,children:t,position:i}:{type:`footnoteDefinition`,identifier:r.identifier,label:r.label,children:t};case N.FootnoteReference:return i?{type:`footnoteReference`,identifier:r.identifier,label:r.label,position:i}:{type:`footnoteReference`,identifier:r.identifier,label:r.label};case N.Math:{let e={hName:`pre`,hChildren:[{type:`element`,tagName:`code`,properties:{className:[`language-math`,`math-display`]},children:[{type:`text`,value:n}]}]};return i?{type:`math`,meta:r??null,value:n,data:e,position:i}:{type:`math`,meta:r??null,value:n,data:e}}case N.InlineMath:{let e={hName:`code`,hProperties:{className:[`language-math`,`math-inline`]},hChildren:[{type:`text`,value:n}]};return i?{type:`inlineMath`,value:n,data:e,position:i}:{type:`inlineMath`,value:n,data:e}}case N.Yaml:return i?{type:`yaml`,value:n,position:i}:{type:`yaml`,value:n};case N.Toml:return i?{type:`toml`,value:n,position:i}:{type:`toml`,value:n};default:throw Error(`Unknown parser node kind`)}}function Qr(e){let t=[];for(let n=P.child[e];n;n=P.next[n])t.push(Zr(n));let n=Ur(P.start[e],P.end[e]);return n?{type:`root`,children:t,position:n}:{type:`root`,children:t}}var $r=32,ei=7,ti=8,ni=4,ri=3;function ii(e){return Ar(e)||kr(e)||e===43||e===45||e===46||e===95}function ai(e,t,n){for(let r=0;r<n.length;r++)if((e.charCodeAt(t+r)|$r)!==n.charCodeAt(r))return!1;return!0}function oi(e,t,n){for(let r=t;r<n;r++){let t=e.charCodeAt(r);if(Dr(t)||t===60)return!0;if(t!==33&&t!==34&&t!==39&&t!==41&&t!==42&&t!==44&&t!==46&&t!==58&&t!==59&&t!==63&&t!==95&&t!==126){if(t===93){let t=e.charCodeAt(r+1);if(r+1===n||t===40||t===91||Dr(t))return!0}else if(t===38){let t=r+1;for(;t<n&&Ar(e.charCodeAt(t));)t++;if(t===r+1||e.charCodeAt(t)!==59)return!1;r=t}else return!1}}return!0}function si(e,t,n){let r=!1,i=!1,a=!1,o=t;for(;o<n;o++){let t=e.charCodeAt(o);if(t===46||t===95){if(oi(e,o,n))break;t===95?r=!0:(i=r,r=!1)}else{if(Dr(t)||t!==45&&Or(t))break;a=!0}}return a&&!r&&!i?o:-1}function ci(e,t,n){let r=0,i=0,a=t;for(;a<n;a++){let t=e.charCodeAt(a);if(Dr(t))break;if(t===40)r++;else if(t===41&&i<r)i++;else{if(`!"&')*,.:;<?]_~`.includes(e[a])&&oi(e,a,n))break;t===41&&i++}}return a}function li(e,t,n,r,i=!0){let a=e.charCodeAt(t);if(i&&ii(a)&&r!==47&&!ii(r)){let r=t;for(;r<n&&ii(e.charCodeAt(r));)r++;if(e.charCodeAt(r)===64){r++;let t=!1,i=!1;for(;r<n;r++){let n=e.charCodeAt(r);if(n===46&&(Ar(e.charCodeAt(r+1))||kr(e.charCodeAt(r+1))))t=!0;else if(Ar(n)||kr(n)||n===45||n===95)i=!0;else break}if(t&&i&&Ar(e.charCodeAt(r-1)))return{end:r,prefix:`mailto:`}}}if((a===72||a===104)&&!Ar(r)){let r=ai(e,t,`http://`)?ei:ai(e,t,`https://`)?ti:0;if(r){let i=e.charCodeAt(t+r);if(t+r<n&&i>32&&!Or(i)&&!Dr(i)){let i=si(e,t+r,n);if(i>t+r)return{end:ci(e,i,n),prefix:``}}}}if((a===87||a===119)&&ai(e,t,`www.`)&&t+ni<n&&(r===-1||r===40||r===42||r===95||r===91||r===93||r===126||r===32||r===9||r===10||r===13)){let r=si(e,t,n);if(r>t)return{end:ci(e,r,n),prefix:`http://`}}}function ui(e,t,n){let r=0,i=t,a=!0,o=!0;for(let s=t;s<=n;s++){if(s!==n&&e.charCodeAt(s)!==46)continue;a=o,o=!0;let t=!1;for(let n=i;n<s;n++)e.charCodeAt(n)===95&&(o=!1),(Ar(e.charCodeAt(n))||kr(e.charCodeAt(n)))&&(t=!0);s>i&&!t&&(o=!1),r++,i=s+1}return r>=2&&o&&a}function di(e,t,n){let r=n;for(;r>t&&`!"&'),.:;<>?]}`.includes(e[r-1]);)r--;if(r===n)return n;let i=0,a=0;for(let n=t;n<r;n++)e.charCodeAt(n)===40?i++:e.charCodeAt(n)===41&&a++;let o=r;for(let t=r;t<n&&i>a;t++)e.charCodeAt(t)===41&&(o=t+1,a++);return o}function fi(e,t){let n=t?e.charCodeAt(t-1):-1;if(t&&!Dr(n)&&!Or(n))return;let r=ai(e,t,`http://`)?ei:ai(e,t,`https://`)?ti:ai(e,t,`www.`)?ri:0;if(!r)return;let i=t+r,a=i;for(;i<e.length&&(Ar(e.charCodeAt(i))||kr(e.charCodeAt(i))||e.charCodeAt(i)===95||e.charCodeAt(i)===45||e.charCodeAt(i)===46);)i++;if(i===a||!ui(e,r===ri?t:a,i))return;for(;i<e.length&&e.charCodeAt(i)!==32&&e.charCodeAt(i)!==9&&e.charCodeAt(i)!==10&&e.charCodeAt(i)!==13;)i++;let o=di(e,t+r,i);if(o>t+r||r===ri&&o===t+r)return{end:o,prefix:r===ri?`http://`:``}}function pi(e,t){let n=t?e.charCodeAt(t-1):-1;if(n===47||t&&!Dr(n)&&!Or(n))return;let r=t;for(;r<e.length&&ii(e.charCodeAt(r));)r++;if(r===t||e.charCodeAt(r)!==64)return;let i=++r,a=!1,o=!1;for(;r<e.length;){let t=e.charCodeAt(r);if(Ar(t)||kr(t)||t===95||t===45)o=!0,r++;else if(t===46&&o&&(Ar(e.charCodeAt(r+1))||kr(e.charCodeAt(r+1))||e.charCodeAt(r+1)===95||e.charCodeAt(r+1)===45))a=!0,o=!1,r++;else break}if(a&&r>i&&Ar(e.charCodeAt(r-1)))return{end:r,prefix:`mailto:`}}var mi=/https?:\/\/|www\./gi;function hi(e,t){let n=e.indexOf(`@`,t);if(n<0)return-1;let r=n;for(;r>t&&ii(e.charCodeAt(r-1));)r--;return r}function gi(e,t,n){let r=P.value[t]??``;if(r.indexOf(n?`@`:`.`)<0)return;let i=0,a=0,o=0;mi.lastIndex=0;let s=n?hi(r,0):mi.exec(r)?.index??-1;for(;s>=0;){let e=s,t=n?pi(r,e):fi(r,e);if(!t){s=n?hi(r,e+1):mi.exec(r)?.index??-1;continue}if(i<e){let t=F(N.Text,0,0);P.value[t]=r.slice(i,e),P.positionless[t]=1,o?(P.next[o]=t,P.prev[t]=o):a=t,o=t}let c=F(N.Link,0,0);P.extra[c]={title:null,url:t.prefix+r.slice(e,t.end)},P.positionless[c]=1;let l=F(N.Text,0,0,c);P.value[l]=r.slice(e,t.end),P.positionless[l]=1,o?(P.next[o]=c,P.prev[c]=o):a=c,o=c,i=t.end,n?s=hi(r,t.end):(mi.lastIndex=t.end,s=mi.exec(r)?.index??-1)}if(!a)return;if(i<r.length){let e=F(N.Text,0,0);P.value[e]=r.slice(i),P.positionless[e]=1,P.next[o]=e,P.prev[e]=o,o=e}let c=P.prev[t],l=P.next[t];c?P.next[c]=a:P.child[e]=a,P.prev[a]=c,P.next[o]=l,l?P.prev[l]=o:P.last[e]=o}function _i(e){for(let t=P.child[e];t;){let n=P.next[t];P.kind[t]===N.Text?gi(e,t,!1):P.kind[t]!==N.Link&&P.kind[t]!==N.LinkReference&&P.child[t]&&_i(t),t=n}for(let t=P.child[e];t;){let n=P.next[t];P.kind[t]===N.Text&&gi(e,t,!0),t=n}}function I(e,t){return e.map?e.map[t]:e.base+t}var vi=new Uint8Array(or);for(let e of[10,13,33,42,60,91,92,93,95,96,123,126])vi[e]=1;var yi=vi.slice();for(let e of[72,104,87,119])yi[e]=1;var bi=yi.slice();for(let e=0;e<or;e++)(Er[e]&12||e===43||e===45||e===46)&&(bi[e]=1);var xi=bi.slice();xi[36]=1;var Si=/[\n\r!*<[\]\\_`{~]/g,Ci=/[\n\r!*<[\]\\_`{~]|https?:\/\/|www\./gi,wi=/[\n\r!$*<[\]\\_`{~]/g,Ti=/[\n\r!$*<[\]\\_`{~]|https?:\/\/|www\./gi,Ei=1024,Di=32,Oi=2,ki=32,Ai=63,ji=3,Mi=0,Ni=Ei,Pi=new Int32Array(Ni),Fi=new Int32Array(Ni),Ii=new Int32Array(Ni),Li=new Int32Array(Ni),Ri=new Uint8Array(Ni),zi=new Uint8Array(Ni),Bi=0,Vi=0,Hi=/* @__PURE__ */ new Map,Ui=Si,Wi=Ci,Gi=bi,Ki=0,qi=/* @__PURE__ */ new Int32Array,Ji=/* @__PURE__ */ new Int32Array,Yi=/* @__PURE__ */ new Int32Array(64),Xi=``,Zi,Qi,$i=-1,ea=``,ta=[],na=[],ra=1/0,ia=0;function aa(e,t){ea=t,Mi=0,Zi=Qi=void 0,Hi.clear(),Vi=e.math?e.math.singleDollarTextMath?1:2:0,Ui=Vi?wi:Si,Wi=Vi?Ti:Ci,Gi=Vi?xi:bi}function oa(e,t,n,r,i,a){if(Mi===Ni){Ni*=2;let e=new Int32Array(Ni);e.set(Pi),Pi=e;let t=new Int32Array(Ni);t.set(Fi),Fi=t;let n=new Int32Array(Ni);n.set(Ii),Ii=n;let r=new Int32Array(Ni);r.set(Li),Li=r;let i=new Uint8Array(Ni);i.set(Ri),Ri=i;let a=new Uint8Array(Ni);a.set(zi),zi=a}Pi[Mi]=e,Fi[Mi]=t,Ii[Mi]=n,Li[Mi]=r,Ri[Mi]=i,zi[Mi++]=a}function sa(e,t){let n=P.prev[t],r=P.next[t];n?P.next[n]=r:P.child[e]=r,r?P.prev[r]=n:P.last[e]=n}function ca(e,t,n,r,i,a=3){let o=i?2:1;a&o&&la(e,t,n,r,i,a),a&~o&&la(e,t,n,r,!i,a&~o)}function la(e,t,n,r,i,a){for(let o=n;o<r;o++)if(Fi[o]===t&&Ri[o]===126===i&&zi[o]&2)for(;Li[o];){let r=o-1;for(;r>=n;r--){if(Fi[r]!==t||!Li[r]||!(zi[r]&1)||Ri[r]!==Ri[o])continue;let e=Li[r],n=Li[o];if(Ri[r]===126){if(e!==n)continue}else if((zi[r]&2||zi[o]&1)&&(e+n)%3==0&&(e%3!=0||n%3!=0))continue;break}if(r<n)break;let i=Ri[r]===126?Li[r]:Li[r]>=2&&Li[o]>=2?2:1,s=Pi[r],c=Pi[o],l=Ii[r]+Li[r],u=Ii[o],d=F(Ri[r]===126?N.Delete:i===2?N.Strong:N.Emphasis,I(e,l-i),I(e,u+i));P.child[d]=P.next[s],P.last[d]=P.prev[c],P.prev[P.child[d]]=0,P.next[P.last[d]]=0,P.next[s]=d,P.prev[d]=s,P.next[d]=c,P.prev[c]=d,Li[r]-=i,Li[o]-=i,Ii[o]+=i,P.end[s]=I(e,l-i),P.start[c]=I(e,u+i),P.value[s]=e.source.slice(Ii[r],l-i),P.value[c]=e.source.slice(u+i,u+i+Li[o]);for(let e=r+1;e<o;e++)Fi[e]===t&&(Fi[e]=d);ca(e,d,r+1,o,!0,a),Li[r]||sa(t,s),Li[o]||sa(t,c)}}function ua(e,t,n){let r=da(e,t,n);if(!(r<0))return{end:r,value:Pr(e.charCodeAt(t)===60?e.slice(t+1,r-1):e.slice(t,r))}}function da(e,t,n){let r=t;if(e.charCodeAt(r)===60){for(r++;r<n;r++){let t=e.charCodeAt(r);if(t===62)return r+1;if(t===60||t===10||t===13)return-1;t===92&&Or(e.charCodeAt(r+1))&&r++}return-1}let i=0;for(;r<n;r++){let t=e.charCodeAt(r);if(t!==0&&t<=32||t===127)break;if(t===92&&r+1<e.length&&Or(e.charCodeAt(r+1)))r++;else if(t===40){if(++i>Di)return-1}else if(t===41){if(!i)break;i--}}return i?-1:r}function fa(e,t,n){let r=pa(e,t,n);if(r>=0)return{end:r,value:Pr(ha(e.slice(t+1,r-1)))}}function pa(e,t,n){let r=e.charCodeAt(t);if(r!==34&&r!==39&&r!==40)return-1;let i=r===40?41:r;for(let r=t+1;r<n;r++){let t=e.charCodeAt(r);if(t===i)return r+1;if(t===92&&Or(e.charCodeAt(r+1))&&r++,t===13&&e.charCodeAt(r+1)===10)r++;else if((t===10||t===13)&&(e.charCodeAt(r+1)===10||e.charCodeAt(r+1)===13))return-1}return-1}function ma(e,t,n){for(;t<n&&(M(e.charCodeAt(t))||e.charCodeAt(t)===10||e.charCodeAt(t)===13);)t++;return t}function ha(e,t=1/0){let n=``,r=0;for(let i=0;i<e.length;i++){let a=e.charCodeAt(i);if(a!==10&&a!==13)continue;a===13&&e.charCodeAt(i+1)===10&&i++;let o=i+1,s=0;for(;M(e.charCodeAt(o))&&s<t;)s+=e.charCodeAt(o)===9?sr-s%sr:1,o++;o>i+1&&(n+=e.slice(r,i+1)+(s>t?` `.repeat(s-t):``),r=o,i=o-1)}return n+e.slice(r)}function ga(e,t,n){let r=ma(e,t+1,n),i=ua(e,r,n);if(!i)return;r=ma(e,i.end,n);let a=null;if(r>i.end&&e.charCodeAt(r)!==41){let t=fa(e,r,n);if(!t)return;a=t.value||null,r=ma(e,t.end,n)}if(e.charCodeAt(r)===41)return{end:r+1,url:i.value,title:a}}function _a(e,t,n){let r=ma(e,t+1,n),i=da(e,r,n);if(i<0)return-1;if(r=ma(e,i,n),r>i&&e.charCodeAt(r)!==41){let t=pa(e,r,n);if(t<0)return-1;r=ma(e,t,n)}return e.charCodeAt(r)===41?r+1:-1}function va(e,t,n,r,i){if(r===Zi&&e===Xi&&i===Qi&&n<=$i&&qi[t]===Ki){let e=Ji[t];if(e>=0?e<n:n===$i)return e}qi.length<=e.length&&(qi=new Int32Array(e.length+1),Ji=new Int32Array(e.length+1),Ki=0),Ki++,Xi=e,Zi=r,Qi=i,$i=n;let a,o=0,s=0,c=-1;for(let l=t;l<n;l++){let t=e.charCodeAt(l);if((t===123||t===60)&&i.inline){let e=i.inline(r,l,n,i);if(e){l=e.end-1;continue}}if(t===92&&Or(e.charCodeAt(l+1)))l++;else if(t===60||t===96||t===36&&Vi)l=ya(e,l,n,t);else if(t===91||t===33&&e.charCodeAt(l+1)===91){if(t===33&&(a||=[],a.push(o),l++),o===Yi.length){let e=new Int32Array(o*2);e.set(Yi),Yi=e}Yi[o]=l+1,qi[l+1]=Ki,Ji[l+1]=-1,o++,c=l}else if(t===93){if(!o)return l;o--,Ji[Yi[o]]=l;let t=a!==void 0&&a[a.length-1]===o;t&&a.pop();let r=c+1;if(c=-1,o<s&&(s=o,!t))continue;let u=ba(e,r,l,n,i,t);if(u<0)continue;t||(s=o),l=u-1}}return-1}function ya(e,t,n,r){if(r===60)return Math.max(t,(ka(e,t,n)?.end??Oa(e,t,n))-1);let i=t+1;for(;e.charCodeAt(i)===r;)i++;let a=Sa(e,i,n,i-t,r);return a>=0?a+i-t-1:i-1}function ba(e,t,n,r,i,a){let o=e.charCodeAt(n+1),s=t>0;if(o!==40&&o!==91&&!(s&&i.definitions.size))return-1;if(s&&!a&&e.charCodeAt(t)===94&&i.config.gfm){let r=e.slice(t+1,n);if(r&&!Ba(r)&&i.footnotes.has(Fr(r)))return-1}return Ua(e,t,n,r,i,s)}function xa(e,t,n,r,i=96){for(let a=t;a<n;){if(e.charCodeAt(a)!==i){a++;continue}let t=a+1;for(;e.charCodeAt(t)===i;)t++;if(t-a===r)return a;a=t}return-1}function Sa(e,t,n,r,i){if(i!==36)return xa(e,t,n,r,i);if(r<Vi)return-1;let a=Hi.get(e);if(!a){a=/* @__PURE__ */ new Map;for(let t=e.indexOf(`$`);t!==-1;){let n=t+1;for(;e.charCodeAt(n)===36;)n++;let r=n-t,i=a.get(r);i?i.push(t):a.set(r,[t]),t=e.indexOf(`$`,n)}Hi.set(e,a)}let o=a.get(r);if(!o)return-1;let s=0,c=o.length;for(;s<c;){let e=s+c>>>1;o[e]<t?s=e+1:c=e}let l=o[s];return l<n?l:-1}function Ca(e,t,n){let r=e.source,i=!0;for(let a=t;a<n;a++){let t=r.charCodeAt(a);(t!==32&&t!==10&&t!==13||wa(e,a))&&(i=!1)}let a=r.charCodeAt(t),o=r.charCodeAt(n-1);return!i&&(a===32||a===10||a===13)&&(o===32||o===10||o===13)&&!wa(e,n-1)&&(t+=a===13&&r.charCodeAt(t+1)===10?2:1,n-=o===10&&r.charCodeAt(n-2)===13?2:1),r.slice(t,n)}function wa(e,t){return!!e.map&&e.source.charCodeAt(t)===32&&ea.charCodeAt(e.map[t])===9}var Ta=0;function Ea(e,t,n,r){let i=t;for(;;){let t=e.charCodeAt(i);if(i>=n||t===60||t===61||t===62||t===96)return Da(i);if(t===34||t===39){let t=e.indexOf(e[i],i+1);return t<0||t>=n?Da(n):t+1}let a=i;for(r||i++;i<n&&!Dr(e.charCodeAt(i))&&!`"'=/<>\``.includes(e[i]);)i++;if(i===a)return Da(i);if(!r||e.charCodeAt(i)!==61)return i;for(i++;M(e.charCodeAt(i));)i++}}function Da(e){return Ta=e,-1}function Oa(e,t,n,r=!1){let i=t+1;if(Ta=i,e.startsWith(`<!--`,t)){if(e.charCodeAt(t+4)===62)return t+5;if(e.charCodeAt(t+4)===45&&e.charCodeAt(t+5)===62)return t+6;let r=e.indexOf(`-->`,t+4);return r<0||r+3>n?Da(n):r+3}if(e.startsWith(`<![CDATA[`,t)){let r=e.indexOf(`]]>`,t+9);return r<0||r+3>n?Da(n):r+3}if(e.charCodeAt(i)===63){let t=e.indexOf(`?>`,i+1);return t<0||t+2>n?Da(n):t+2}if(e.charCodeAt(i)===33){if(!Ar(e.charCodeAt(i+1)))return-1;let t=e.indexOf(`>`,i+2);return t<0||t>=n?Da(n):t+1}let a=e.charCodeAt(i)===47;if(a&&i++,!Ar(e.charCodeAt(i)))return-1;for(i++;i<n&&(Ar(e.charCodeAt(i))||kr(e.charCodeAt(i))||e.charCodeAt(i)===45);i++);for(;i<n;){let t=i;if(i=ma(e,i,n),e.charCodeAt(i)===62)return i+1;if(e.charCodeAt(i)===47&&e.charCodeAt(i+1)===62&&!a)return i+2;if(a||i===t)return Da(i);let o=e.charCodeAt(i);if(!Ar(o)&&o!==95&&o!==58)return Da(i);for(i++;i<n&&(Ar(e.charCodeAt(i))||kr(e.charCodeAt(i))||`-._:`.includes(e[i]));)i++;let s=i;if(i=ma(e,i,n),e.charCodeAt(i)!==61)i=s;else if(i=ma(e,i+1,n),i=Ea(e,i,n,r),i<0)return-1}return Da(n)}function ka(e,t,n){let r=t+1;for(;r<n&&e.charCodeAt(r)!==62&&e.charCodeAt(r)>32&&e.charCodeAt(r)!==127&&e.charCodeAt(r)!==60;)r++;if(e.charCodeAt(r)!==62)return;let i=e.slice(t+1,r),a=t+1;for(;a<r&&e.charCodeAt(a)!==58;)a++;if(a<r&&a-t>=Oi+1&&a-t<=ki+1&&Ar(e.charCodeAt(t+1))){let n=!0;for(let r=t+2;r<a;r++)!Ar(e.charCodeAt(r))&&!kr(e.charCodeAt(r))&&!`+-.`.includes(e[r])&&(n=!1);if(n)return{end:r+1,url:i,value:i}}if(Aa(i))return{end:r+1,url:`mailto:`+i,value:i}}function Aa(e){let t=-1;for(let n=0;n<e.length;n++)if(e.charCodeAt(n)===64){if(t>=0)return!1;t=n}if(t<=0||t===e.length-1)return!1;for(let n=0;n<t;n++)if(!Ar(e.charCodeAt(n))&&!kr(e.charCodeAt(n))&&!".#$%&'*+-/=?^_`{|}~".includes(e[n]))return!1;let n=0;for(let r=t+1;r<=e.length;r++){let t=e.charCodeAt(r);if(r===e.length||t===46){if(!n||n>Ai||e.charCodeAt(r-1)===45)return!1;n=0}else{if(!Ar(t)&&!kr(t)&&t!==45||!n&&t===45)return!1;n++}}return!0}function ja(e,t,n,r,i){let a=e.source.charCodeAt(n-1),o=F(N.Text,I(e,t),a===10||a===13?Na(e,n):I(e,n),r);return P.value[o]=i??Pr(e.source.slice(t,n)),o}function Ma(e,t){t>=ia?ra=Math.min(ra,e):(ta.push(e),na.push(t))}function Na(e,t){if(!e.map||!Pa(t))return I(e,t-1)+1;let n=I(e,t);return e.source.charCodeAt(t)===32&&ea.charCodeAt(n)===9?n+1:n}function Pa(e){if(ra<e)return!0;let t=0,n=!1;for(let r=0;r<ta.length;r++)na[r]<e||(ta[r]<e&&(n=!0),ta[t]=ta[r],na[t++]=na[r]);return ta.length=na.length=t,n}function Fa(e,t,n){let r=ma(e,t+1,n),i=da(e,r,n);if(i<0){if(e.charCodeAt(r)===60){for(r++;r<n;r++){let t=e.charCodeAt(r);if(t===60||t===10||t===13)return r;t===92&&Or(e.charCodeAt(r+1))&&r++}return n}let t=0;for(;r<n;r++){let n=e.charCodeAt(r);if(n!==0&&n<=32||n===127)return r;if(n===92&&Or(e.charCodeAt(r+1)))r++;else if(n===40&&++t>Di)return r;else n===41&&t--}return n}if(r=ma(e,i,n),r>i&&e.charCodeAt(r)!==41){let t=pa(e,r,n);if(t<0)return Ia(e.charCodeAt(r))?n:r;r=ma(e,t,n)}return r}function Ia(e){return e===34||e===39||e===40}function La(e){let t=0;for(let n=P.child[e];n;){let r=P.next[n];P.kind[n]===N.Text&&t&&P.kind[t]===N.Text?(P.value[t]=(P.value[t]??``)+(P.value[n]??``),P.end[t]=P.end[n],sa(e,n)):(P.child[n]&&La(n),t=n),n=r}}function Ra(e){let t=``;for(let n=P.child[e];n;n=P.next[n])t+=P.child[n]?Ra(n):P.value[n]??``;return t}function za(e,t,n,r,i,a=!1,o=!0,s=!a){let c=e.source,l=Mi;o&&(Bi=0,ta.length=na.length=0,ra=1/0,ia=n);let u=t,d=i.config.gfm&&s?c.indexOf(`@`,t):-1,f=d>=0&&d<n,p=f?Gi:i.config.gfm&&s?yi:vi,m=!i.inline||i.inlineMarkers,h=i.config.gfm&&s?Wi:Ui,g=t,_=0;for(;g<n;){if(m){if(f)for(;g<n&&!p[c.charCodeAt(g)];)g++;else{h.lastIndex=g;let e=h.exec(c);g=e&&e.index<n?e.index:n}if(g===n)break}let l=c.charCodeAt(g);if(i.inline){let t=i.inline(e,g,n,i);if(t){u<g&&ja(e,u,g,r),Xr(r,t.node),g=u=t.end;continue}}let d=g>t?c.charCodeAt(g-1):-1,v=!(Er[d]&12)&&d!==43&&d!==45&&d!==46&&d!==95&&d!==47||(l===72||l===104||l===87||l===119)&&!(Er[d]&8);if(i.config.gfm&&s&&!_&&v&&(f&&(Er[l]&12||l===43||l===45||l===46||l===95)||l===72||l===104||l===87||l===119)){let t=li(c,g,n,d,f);if(t){u<g&&ja(e,u,g,r);let n=F(N.Link,I(e,g),I(e,t.end),r),i=c.slice(g,t.end);P.extra[n]={title:null,url:t.prefix+i},ja(e,g,t.end,n,i),g=u=t.end;continue}}if(l===92){let t=c.charCodeAt(g+1);if(t<or&&Or(t)){g+=2;continue}if(t===10||t===13){u<g&&ja(e,u,g,r);let n=g+2;for(t===13&&c.charCodeAt(n)===10&&n++,F(N.Break,I(e,g),Na(e,n),r);M(c.charCodeAt(n));)n++;g=u=n;continue}}if(l===10||l===13){let t=g;for(;t>u&&M(c.charCodeAt(t-1));)t--;let n=g+1;l===13&&c.charCodeAt(n)===10&&n++;let i=!1;for(let e=t;e<g;e++)c.charCodeAt(e)===9&&(i=!0);if(!i&&g-t>=2&&c.charCodeAt(g-1)===32&&c.charCodeAt(g-2)===32){for(u<t&&ja(e,u,t,r),F(N.Break,I(e,t),Na(e,n),r);M(c.charCodeAt(n));)n++;g=u=n}else{for(u<t&&ja(e,u,t,r),ja(e,g,n,r);M(c.charCodeAt(n));)n++;g=u=n}}else if(l===96){let t=g+1;for(;c.charCodeAt(t)===96;)t++;let i=xa(c,t,n,t-g);if(i>=0){u<g&&ja(e,u,g,r);let n=i+t-g,a=F(N.InlineCode,I(e,g),I(e,n),r);P.value[a]=Ca(e,t,i),e.table&&(P.value[a]=Va(P.value[a])),g=u=n;continue}Ma(g,1/0),g=t}else if(l===36&&Vi){let t=g+1;for(;c.charCodeAt(t)===36;)t++;let i=Sa(c,t,n,t-g,l);if(i>=0){u<g&&ja(e,u,g,r);let n=i+t-g,a=F(N.InlineMath,I(e,g),I(e,n),r);P.value[a]=Ca(e,t,i),g=u=n;continue}t-g>=Vi&&Ma(g,1/0),g=t}else if(l===42||l===95||l===126&&i.config.gfm){let a=g+1;for(;c.charCodeAt(a)===l;)a++;let s=a-g;if(l===126&&(s>2||s===1&&!i.config.gfm?.singleTilde)){g=a;continue}u<g&&ja(e,u,g,r);let d=ja(e,g,a,r),f=g>t||!o?c.charCodeAt(g-1):32,p=a<n||!o?c.charCodeAt(a):32,m=Dr(f),h=Dr(p),_=Or(f),v=Or(p),y=!h&&(!v||m||_)||l!==126&&i.config.gfm!==void 0&&p===126,b=!m&&(!_||h||v)||l!==126&&i.config.gfm!==void 0&&f===126,x=l===95?y&&(!b||_):y,S=l===95?b&&(!y||v):b;Bi||=l,oa(d,r,g,s,l,!!x|(S?2:0)),g=u=a}else{if(l===91||l===33&&c.charCodeAt(g+1)===91){let t=l===33,o=g+(t?2:1),s=va(c,o,n,e,i);if(s>=0){let l=s+1,d=c.slice(o,s),f,p=!1,m=!1;if(!t&&d.charCodeAt(0)===94&&d.length>1&&!Ba(d)&&i.config.gfm&&i.footnotes.has(Fr(d.slice(1))))f={label:Pr(d.slice(1)),identifier:Fr(d.slice(1))},m=!0;else if(t||!a){if(c.charCodeAt(l)===40&&(f=ga(c,l,n),!f&&e.map&&Ma(l,Fa(c,l,n))),f)l=f.end;else{let e=d,t=`shortcut`;if(c.charCodeAt(l)===91){e=``;let r=l+1;for(;r<n&&c.charCodeAt(r)!==93&&c.charCodeAt(r)!==91;)c.charCodeAt(r)===92&&r++,r++;c.charCodeAt(r)===93&&(e=c.slice(l+1,r),t=e?`full`:`collapsed`,e||=d,i.definitions.has(Fr(e))?l=r+1:e=``),l<=r&&Ma(l,c.charCodeAt(r)===93?r+1:r)}e&&i.definitions.has(Fr(e))&&(f={label:Pr(e),identifier:Fr(e),referenceType:t},p=!0)}}else e.map&&c.charCodeAt(l)===40&&Ma(l,Fa(c,l,n));if(f&&!t&&!m&&Ha(e,o,s,i)&&(f=void 0),f){u<g&&ja(e,u,g,r);let n=F(m?N.FootnoteReference:t?p?N.ImageReference:N.Image:p?N.LinkReference:N.Link,I(e,g),I(e,l),r);P.extra[n]=f,m||(za(e,o,s,n,i,!t,!1,!1),t&&!i.config.mdx&&(P.value[n]=Ra(n),P.child[n]=P.last[n]=0)),g=u=l;continue}}t||_++}if(l===93&&_&&_--,l===60&&!i.config.mdx){let t=ka(c,g,n),i=t?.end??Oa(c,g,n);if(i>g){u<g&&ja(e,u,g,r);let n=F(t?N.Link:N.Html,I(e,g),I(e,i),r);t?(P.extra[n]={url:t.url,title:null},ja(e,g+1,i-1,n,t.value)):P.value[n]=ha(c.slice(g,i),ji),g=u=i;continue}t||Ma(g,Ta)}g++}}for(;o&&n>u&&M(c.charCodeAt(n-1));)n--;u<n&&ja(e,u,n,r),ca(e,r,l,Mi,!o||Bi===126),Mi=l,La(r)}function Ba(e){for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(M(n)||n===10||n===13)return!0}return!1}function Va(e){let t=``,n=0;for(let r=0;r+1<e.length;r++)e.charCodeAt(r)===92&&e.charCodeAt(r+1)===124&&(t+=e.slice(n,r),n=r+1,r++);return t+e.slice(n)}function Ha(e,t,n,r){let i=e.source;for(let a=t;a<n;a++){let t=i.charCodeAt(a);if((t===123||t===60)&&r.inline){let t=r.inline(e,a,n,r);if(t){a=t.end-1;continue}}if(t===92){a++;continue}if(t===96||t===36&&Vi){let e=a+1;for(;i.charCodeAt(e)===t;)e++;let r=Sa(i,e,n,e-a,t);if(r>=0){a=r+e-a-1;continue}a=e-1}if(t===60){let e=ka(i,a,n)?.end??Oa(i,a,n);if(e>a){a=e-1;continue}}if(t===33&&i.charCodeAt(a+1)===91){let t=va(i,a+2,n,e,r);if(t>=0){if(Ha(e,a+2,t,r))return!0;let o=Ua(i,a+2,t,n,r);a=(o<0?t+1:o)-1;continue}}if(t!==91)continue;let o=va(i,a+1,n,e,r);if(!(o<0)){if(i.charCodeAt(a+1)===94&&o>a+2&&r.config.gfm&&r.footnotes.has(Fr(i.slice(a+2,o)))&&!Ba(i.slice(a+2,o)))a=o;else if(Ua(i,a+1,o,n,r)>=0)return!0}}return!1}function Ua(e,t,n,r,i,a=!0){let o=n+1,s=e.charCodeAt(o),c=a&&i.definitions.size>0;if(s===91){let a=o+1;for(;a<r&&e.charCodeAt(a)!==93&&e.charCodeAt(a)!==91;)e.charCodeAt(a)===92&&a++,a++;return e.charCodeAt(a)===93?a>o+1?i.definitions.has(Fr(e.slice(o+1,a)))?a+1:-1:c&&i.definitions.has(Fr(e.slice(t,n)))?a+1:-1:-1}if(s===40){let t=_a(e,o,r);if(t>=0)return t}return c&&i.definitions.has(Fr(e.slice(t,n)))?o:-1}var Wa=3,Ga=4,Ka=4,qa=6,Ja=3,Ya=3,Xa=2,Za=9,Qa=4,$a=999,eo=100,to=1024,no=1,ro=!1,io=!1,ao=!1,oo=0,so,co,lo=!1,uo,fo=0,po=new Int32Array(to),mo=new Int32Array(to),ho=[],go,_o=0,vo=0;function yo(){ao=!1,go=void 0,oo=0,so=void 0,co=void 0,uo=void 0,fo=0,ho.length=0}function bo(e,t){if(fo===po.length){let e=new Int32Array(fo*2);e.set(po),po=e;let t=new Int32Array(fo*2);t.set(mo),mo=t}ho[fo]=e,po[fo]=t,mo[fo++]=0}function xo(e,t=0){let n=[],r=0;for(;r<Lr&&Ir[r]<t;)r++;for(let t=r;t<Lr;t++){let r=Ir[t],i=t+1<Lr?Ir[t+1]:e.length,a=i;e.charCodeAt(a-1)===10&&a--,e.charCodeAt(a-1)===13&&a--,n.push({start:r,end:a,next:i})}return n}function L(e,t){let n=t.start,r=t.padding??0;for(;n<t.end&&M(e.charCodeAt(n));)r+=e.charCodeAt(n)===9?To(e,n):1,n++;return{start:n,indent:r}}function R(e,t){return L(e,t).start===t.end}function So(e,t,n,r){if(R(e,t[0])&&M(e.charCodeAt(n-1)))return!1;for(let n=1;n<t.length&&t[n].start<r;n++)if(R(e,t[n]))return!1;return!0}function Co(e,t,n){for(;n>t&&M(e.charCodeAt(n-1));)n--;return n}function wo(e,t,n){let r=t.start,i=t.padding??0;if(i>=n)return{...t,padding:i-n};for(;r<t.end&&i<n&&M(e.charCodeAt(r));)i+=e.charCodeAt(r)===9?To(e,r):1,r++;return{start:r,end:t.end,next:t.next,padding:Math.max(0,i-n),lazy:t.lazy}}function To(e,t){let n=t;for(;n&&e.charCodeAt(n-1)!==10&&e.charCodeAt(n-1)!==13;)n--;let r=0;for(let i=n;i<t;i++)r+=e.charCodeAt(i)===9?sr-r%sr:1;return sr-r%sr}function Eo(e,t,n=ro){let r=L(e,t);if(!n&&r.indent>Wa)return!1;let i=e.charCodeAt(r.start);if(i!==42&&i!==45&&i!==95)return!1;let a=0;for(let n=r.start;n<t.end;n++){let t=e.charCodeAt(n);if(t===i)a++;else if(!M(t))return!1}return a>=Ja}function Do(e,t,n=ro){let r=L(e,t);if(!n&&r.indent>Wa||e.charCodeAt(r.start)!==35)return;let i=r.start;for(;e.charCodeAt(i)===35;)i++;let a=i-r.start;if(a>qa||i<t.end&&!M(e.charCodeAt(i)))return;for(;M(e.charCodeAt(i));)i++;let o=i,s=Co(e,o,t.end),c=s;for(;c>o&&e.charCodeAt(c-1)===35;)c--;return(c===o||c<s&&M(e.charCodeAt(c-1)))&&(s=Co(e,o,c)),{start:r.start,content:o,end:s,depth:a}}function Oo(e,t,n=ro){let r=L(e,t);if(!n&&r.indent>Wa)return 0;let i=e.charCodeAt(r.start);if(i!==45&&i!==61)return 0;let a=r.start;for(;e.charCodeAt(a)===i;)a++;if(a===r.start)return 0;for(;M(e.charCodeAt(a));)a++;return a===t.end?i===61?1:2:0}function ko(e,t,n=ro){let r=L(e,t);if(!n&&r.indent>Wa)return;let i=e.charCodeAt(r.start),a=i===36;if(i!==96&&i!==126&&!(a&&io))return;let o=r.start;for(;e.charCodeAt(o)===i;)o++;if(!(o-r.start<(a?Xa:Ya))){if(i!==126){for(let n=o;n<t.end;n++)if(e.charCodeAt(n)===i)return}return{start:r.start,content:o,char:i,length:o-r.start,indent:r.indent}}}function Ao(e,t,n=ro){let r=L(e,t);if(ao||!n&&r.indent>Wa)return;let i=r.start,a=e.charCodeAt(i),o=0,s=!1;if(kr(a)){for(s=!0;kr(e.charCodeAt(i))&&i-r.start<Za;)o=o*10+e.charCodeAt(i++)-48;if(e.charCodeAt(i)!==46&&e.charCodeAt(i)!==41)return;i++}else if(a===42||a===43||a===45)i++;else return;if(i<t.end&&!M(e.charCodeAt(i)))return;let c=i,l=0;for(;i<t.end&&M(e.charCodeAt(i));)l+=e.charCodeAt(i)===9?To(e,i):1,i++;let u=0,d=i===t.end;return(!n&&l>Qa||d)&&(u=e.charCodeAt(c)===9?To(e,c)-1:0,i=c<t.end?c+1:c,l=1),{start:r.start,content:i,prefix:d?c:i,indent:r.indent+c-r.start+(l||1),ordered:s,number:o,char:e.charCodeAt(c-1),padding:u}}function jo(e,t,n=ro){let r=L(e,t);if(ao||!n&&r.indent>Wa||e.charCodeAt(r.start)!==62)return-1;let i=r.start+1;return M(e.charCodeAt(i))&&i++,i}var Mo=/* @__PURE__ */ new Set(/* @__PURE__ */ `address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`)),No=/<\/(?:script|pre|style|textarea)>/i;function Po(e,t,n){let r=L(e,t),i=r.start;if(r.indent>Wa||e.charCodeAt(i)!==60)return;if(e.startsWith(`<!--`,i))return{start:i,until:`-->`};if(e.startsWith(`<?`,i))return{start:i,until:`?>`};if(e.startsWith(`<![CDATA[`,i))return{start:i,until:`]]>`};if(e.charCodeAt(i+1)===33&&Ar(e.charCodeAt(i+2)))return{start:i,until:`>`};let a=i+1;e.charCodeAt(a)===47&&a++;let o=a;for(;Ar(e.charCodeAt(a))||kr(e.charCodeAt(a));)a++;let s=e.slice(o,a).toLowerCase();if(M(e.charCodeAt(a))||e.charCodeAt(a)===62||e.charCodeAt(a)===47&&e.charCodeAt(a+1)===62||a===t.end){if(e.charCodeAt(i+1)!==47&&e.charCodeAt(a)!==47&&(s===`script`||s===`pre`||s===`style`||s===`textarea`))return{start:i,until:No};if(Mo.has(s))return{start:i,until:null}}if(!n){let n=Oa(e,i,t.end,!0);if(n>0&&Co(e,n,t.end)===n)return{start:i,until:null}}}function Fo(e,t){let n=e.source;return e.interrupt?.(t)||R(n,t)||Eo(n,t)||Do(n,t)||ko(n,t)?!0:!e.config.mdx&&!!Po(n,t,!0)}function Io(e,t){let n=e.source;if(Fo(e,t)||jo(n,t)>=0||e.config.gfm&&Ro(n,t))return!0;let r=Ao(n,t);return!!r&&(!r.ordered||n.charCodeAt(r.start)===49&&(n.charCodeAt(r.start+1)===46||n.charCodeAt(r.start+1)===41))&&!R(n,{start:r.content,end:t.end,next:t.next,padding:r.padding})}function Lo(e,t){return!!e.interrupt?.(t)&&(e.continuationEnd?.(t)??t.end)>t.end}function Ro(e,t){let n=L(e,t);if(ao||!ro&&n.indent>Wa||!e.startsWith(`[^`,n.start))return;let r=n.start+2;for(;r<t.end;r++){let t=e.charCodeAt(r);if(M(t)||t===91)return;if(t===93)break;t===92&&e.charCodeAt(r+1)<or&&Or(e.charCodeAt(r+1))&&r++}if(!(r===n.start+2||r-n.start>$a+2||e.charCodeAt(r)!==93||e.charCodeAt(r+1)!==58))return{end:r+2,raw:e.slice(n.start+2,r)}}function zo(){return oo>0}function Bo(e,t){let n=e.source;return jo(n,t)>=0||!!Ao(n,t)&&!Eo(n,t)||!!e.config.gfm&&!!Ro(n,t)}function Vo(e,t,n,r){let i=e.source,a=n<t.length?t[n]:r;return!a||a===so||a.lazy||!$o(i,a)&&!Ho(i,a)?!1:R(i,a)?a.start===a.end&&!a.padding&&a.end===i.length:Bo(e,a)}function Ho(e,t){let n=uo;if(!n||!t||t.lazy)return!1;let r=1,i=n.length-1;for(;r<=i;){let a=r+i>>1,o=n[a];if(o.next<t.next)r=a+1;else if(o.next>t.next)i=a-1;else return!o.lazy&&!R(e,o)}return!1}function Uo(e,t,n,r,i,a,o,s){if(!uo)return!1;let c=e.source,l=o?Ho(c,t[n])&&o.prefix:Vo(e,t,n,s)?Ho(c,t[n]??s)&&(t[n]??s).start:n>r+1&&$o(c,t[n-1])&&Ho(c,t[n-1])&&t[n-1].end;if(l===!1)return!1;if(P.end[i]<=t[r].end)for(let e=r+1;e<n;e++)t[e].end<l&&R(c,t[e])&&(P.a[i]=1);return P.end[i]=l,P.end[a]=l,!0}function Wo(e,t){return e.config.mdx||!Po(e.source,t,!1)?1:t.next===t.end?0:2}function Go(e,t,n){let r=e.source,i=!1;for(let a=0;a<eo;a++){let a=jo(r,t),o=a<0?Ao(r,t):void 0,s=a<0&&!o&&e.config.gfm?Ro(r,t):void 0;if(a<0&&!o&&!s)break;i=!!o;let c=o?{start:o.content,end:t.end,next:t.next,padding:o.padding}:s?{start:s.end,end:t.end,next:t.next}:{start:a,end:t.end,next:t.next,padding:Ko(r,a)};if(n.start===t.start)n={...c,end:n.end,next:n.next};else if(o||s){let e=o?o.indent:Ka;if(L(r,n).indent<e)return{line:n,lazy:!0,list:i};n=wo(r,n,e)}else{let e=jo(r,n);if(e<0)return{line:n,lazy:!0,list:i};n={start:e,end:n.end,next:n.next,padding:Ko(r,e)}}t=c}return{line:n,lazy:!1,list:i}}function Ko(e,t){return e.charCodeAt(t-1)===9?To(e,t-1)-1:0}function qo(e,t,n,r,i){let a=e.source,o=i.start;for(;o<i.end&&a.charCodeAt(o)!==45;)o++;if(o===i.end)return!1;let s=Zo(e,t,n,i);if(s.lazy)return!1;let c=Zo(e,t,n,r).line;return R(a,c)||e.interrupt?.(c)?!1:!!cs(e,[c,s.line],0)}function Jo(e,t,n,r){let i=Zo(e,t,n,r);return!i.lazy&&!R(e.source,i.line)&&!Io(e,i.line)&&!Ao(e.source,i.line)}function Yo(e,t){let n=t.start;for(;M(e.charCodeAt(n));)n++;let r=e.charCodeAt(n);return r===62||r===45||r===42||r===43||r===91||r>=48&&r<=57}function Xo(e,t,n,r){let i=e.source;if(!r){if(t!==n){let r=Go(e,t,t);if(r.list&&R(i,r.line)&&!Go(e,t,n).lazy)return t}return n}return Io(e,Go(e,t,n).line)?n:t}function Zo(e,t,n,r){if(t&&t!==n&&Yo(e.source,t)){let i=Go(e,t,n);if(!i.lazy&&i.line.start!==n.start){let n=Go(e,t,r);return n.lazy||!Yo(e.source,i.line)?n:Go(e,i.line,n.line)}}return Go(e,n,r)}function Qo(e,t,n=!1,r=0,i=!1){let a=e.source,o=t;lo=!1;for(let s=0;s<eo;s++){let c=s===0&&r===3;if(R(a,o))return c?3:0;if(!e.config.mdx&&L(a,o).indent>=Ga)return s===0&&!i&&r!==1?3:0;if(Eo(a,o)||Do(a,o)||ko(a,o)||e.interrupt?.(o)||!e.config.mdx&&Po(a,o,!1))return 0;let l=jo(a,o),u=l<0?Ao(a,o):void 0;if(u&&(lo=!0),u&&(n||c)&&(R(a,{start:u.content,end:t.end,next:t.next})||u.ordered&&(a.charCodeAt(u.start)!==49||a.charCodeAt(u.start+1)!==46&&a.charCodeAt(u.start+1)!==41)))return 1;let d=l>=0?l:u?.content;if(d===void 0)return 1;o={start:d,end:t.end,next:t.next}}return 0}function $o(e,t){for(let n=t.start-1;n>=0&&e.charCodeAt(n)!==10&&e.charCodeAt(n)!==13;n--)if(e.charCodeAt(n)===62)return!0;return!1}function es(e,t,n=!0){let r=!0;for(let e=0;e<t.length;e++)if((!n||e>0)&&t[e].padding||e>0&&t[e].start!==t[e-1].next){r=!1;break}if(r&&t.length){let r=t[0],i=n?L(e,r).start:r.start;return{source:e.slice(i,t[t.length-1].end),base:i}}if(t.length===1&&(n||!t[0].padding)){let r=t[0],i=n?L(e,r).start:r.start;return{source:e.slice(i,r.end),base:i}}let i=0;for(let r=0;r<t.length;r++){let a=t[r],o=n&&r===0?L(e,a).start:a.start;i+=a.end-o+(n&&r===0?0:a.padding??0)+(r+1<t.length?a.next-a.end:0)}let a=new Int32Array(i+1),o=``,s=0;for(let r=0;r<t.length;r++){let i=t[r],c=n&&r===0?L(e,i).start:i.start,l=r+1<t.length?i.next:i.end;if((!n||r>0)&&i.padding){o+=` `.repeat(i.padding);for(let e=0;e<i.padding;e++)a[s++]=c-1}o+=e.slice(c,l);for(let e=c;e<l;e++)a[s++]=e;a[s]=l}return{source:o,base:0,map:a}}function ts(e,t,n){bo(es(e.source,n),t)}function ns(e,t,n,r,i=!1){let a=e.source,o=t[n],s=L(a,o);if(!i&&!ro&&s.indent>Wa||a.charCodeAt(s.start)!==91)return 0;for(let e=s.start+1;e<o.end;e++){let t=a.charCodeAt(e);if(t===92)e++;else{if(t===91)return 0;if(t===93){if(a.charCodeAt(e+1)!==58)return 0;break}}}if(cs(e,t,n))return 0;let c=n+1;if(t===go&&n>=_o&&n<vo)c=vo;else{for(go=t,_o=n;c<t.length&&!R(a,t[c])&&!Io(e,t[c])&&!Oo(a,t[c])&&!cs(e,t,c,!0);)c++;vo=c}for(let i=2;;i*=2){let a=rs(e,t,n,Math.min(c,n+i),c,r,s);if(a>=0)return a}}function rs(e,t,n,r,i,a,o){let s=e.source,c=t[n],l=es(s,t.slice(n,r),!1),u=l.source,d=r<i,f=o.start-c.start+(c.padding??0)+1,p=f;for(;f<u.length&&f-p<=$a&&u.charCodeAt(f)!==93&&u.charCodeAt(f)!==91;)u.charCodeAt(f)===92&&f++,f++;if(d&&f+1>=u.length)return-1;if(f-p>$a||f===p||u.charCodeAt(f)!==93||u.charCodeAt(f+1)!==58)return 0;let m=u.slice(p,f),h=Fr(m);if(!h)return 0;for(f+=2;M(u.charCodeAt(f));)f++;if(u.charCodeAt(f)===10||u.charCodeAt(f)===13)for(u.charCodeAt(f++)===13&&u.charCodeAt(f)===10&&f++;M(u.charCodeAt(f));)f++;if(d&&!is(u,f))return-1;let g=ua(u,f,u.length);if(!g||g.end===f)return 0;f=g.end;let _=f;for(;M(u.charCodeAt(f));)f++;let v=null,y=f,b=u.charCodeAt(f)===10||u.charCodeAt(f)===13;if(b){for(u.charCodeAt(f++)===13&&u.charCodeAt(f)===10&&f++;M(u.charCodeAt(f));)f++;if(d&&f>=u.length)return-1}if(f>_){let e=fa(u,f,u.length);if(e){let t=e.end;for(;M(u.charCodeAt(t));)t++;if(d&&t>=u.length)return-1;if(t===u.length||u.charCodeAt(t)===10||u.charCodeAt(t)===13)v=e.value||null,y=t;else if(!b)return 0}else{let e=u.charCodeAt(f);if(d&&(e===34||e===39||e===40))return-1;if(!b&&f<u.length)return 0}}else if(f<u.length)return 0;let x=I(l,y),S=1;for(;n+S<t.length&&t[n+S-1].end<x;)S++;if(S>i-n)return 0;let ee={identifier:h,label:Pr(m),url:g.value,title:v},te=F(N.Definition,o.start,x,a);return P.extra[te]=ee,e.definitions.has(h)||e.definitions.set(h,ee),S}function is(e,t){for(;t<e.length;t++){let n=e.charCodeAt(t);if(n===10||n===13)return!0}return!1}function as(e,t){let n=L(e,t).start,r=Co(e,n,t.end);if(e.charCodeAt(n)===124&&n++,e.charCodeAt(r-1)===124){let t=0;for(let i=r-2;i>=n&&e.charCodeAt(i)===92;i--)t++;t&1||r--}let i=[],a=n;for(let t=n;t<r;t++)e.charCodeAt(t)===92&&(e.charCodeAt(t+1)===124||e.charCodeAt(t+1)===92)?t++:e.charCodeAt(t)===124&&(i.push([a,t]),a=t+1);return i.push([a,r]),i}function os(e,t){let n=L(e,t);if(!ro&&n.indent>Wa)return;let r=e.charCodeAt(n.start);if(r!==45&&r!==58&&r!==124)return;let i=as(e,t),a=[];for(let t of i){let n=t[0],r=Co(e,n,t[1]);for(;M(e.charCodeAt(n));)n++;let i=e.charCodeAt(n)===58;i&&n++;let o=n;for(;e.charCodeAt(n)===45;)n++;if(n===o)return;let s=e.charCodeAt(n)===58;if(s&&n++,n!==r)return;a.push(i?s?`center`:`left`:s?`right`:null)}return a}function ss(e,t,n){let r=e.source,i=F(N.TableRow,L(r,t).start,t.end,n),a=as(r,t);for(let e=0;e<a.length;e++){let[n,o]=a[e],s=F(N.TableCell,e===0?L(r,t).start:n-1,e+1===a.length?t.end:o,i),c=n;for(;M(r.charCodeAt(c));)c++;let l=Co(r,c,o);bo({source:r.slice(c,l),base:c,table:!0},s)}}function cs(e,t,n,r=!1){if(!e.config.gfm||!t[n+1]||t[n+1].lazy||t[n]===co)return;let i=e.source,a=os(i,t[n+1]);if(!a)return;let o=t[n];if(!ro&&L(i,o).indent>=Ga||Ao(i,o)&&(!r||Io(e,o))||jo(i,o)>=0||Ro(i,o)||!r&&!ro&&Po(i,o,!1)||Oo(e.source,t[n+1])||Ao(e.source,t[n+1]))return;let s=as(e.source,t[n]);if(s.length===a.length&&!(s.length===1&&s[0][0]>s[0][1]))return a}function ls(e,t){let n=P.last[e];for(;n&&(P.kind[n]===N.Blockquote||P.kind[n]===N.List||P.kind[n]===N.ListItem||P.kind[n]===N.FootnoteDefinition);)n=P.last[n];return!!n&&P.kind[n]===N.Table&&P.end[n]===t}function us(e,t,n,r,i){let a=cs(e,t,n,i);if(!a||!ro&&Po(e.source,t[n],!1))return 0;let o=e.source,s=F(N.Table,L(o,t[n]).start,t[n+1].end,r);P.extra[s]=a,ss(e,t[n],s);let c=n+2;for(;c<t.length&&!t[c].lazy&&!Io(e,t[c])&&!e.esm?.(t[c])&&!Ao(o,t[c])&&(ro||L(o,t[c]).indent<Ga)&&(e.config.mdx||!Po(o,t[c],!1));c++)ss(e,t[c],s),P.end[s]=t[c].end;return c-n}function ds(e,t,n){let r=e.config.frontmatter;if(!r||!t.length)return 0;let i=e.source,a=t[0],o=i.charCodeAt(a.start),s=o===45&&r.yaml,c=o===43&&r.toml;if(!s&&!c||Co(i,a.start,a.end)-a.start!==3||i.charCodeAt(a.start+1)!==o||i.charCodeAt(a.start+2)!==o)return 0;for(let e=1;e<t.length;e++){let r=t[e];if(Co(i,r.start,r.end)-r.start!==3||i.charCodeAt(r.start)!==o||i.charCodeAt(r.start+1)!==o||i.charCodeAt(r.start+2)!==o)continue;let c=F(s?N.Yaml:N.Toml,a.start,r.end,n);return P.value[c]=i.slice(a.next,e===1?a.next:t[e-1].end),e+1}return ao=!0,0}function fs(e,t,n,r,i,a){let o=e.source,s=t[n],c=n+1,l=!1,u=[];for(;c<t.length;c++){let e=t[c];if(e.lazy)break;let n=L(o,e),r=n.start;for(;o.charCodeAt(r)===i.char;)r++;if((ro||n.indent<=Wa)&&r-n.start>=i.length&&Co(o,r,e.end)===r){l=!0;break}u.push(wo(o,e,i.indent))}let d=l?t[c]:t[Math.max(n,c-1)],f=!t[c]?.lazy&&a&&Bo(e,a),p=P.kind[r]===N.Root||!!f||(P.kind[r]===N.ListItem||P.kind[r]===N.FootnoteDefinition)&&d.next===o.length&&!oo,m=!l&&c>n+1&&d.start===d.end&&d.end===o.length&&!d.padding,h=i.char===36,g=F(h?N.Math:N.Code,i.start,m?t[c-2].next:l||!p?d.end:d.next,r);m&&(P.end[r]=Math.max(P.end[r],d.end));let _=i.content;for(;M(o.charCodeAt(_));)_++;let v=_;for(;v<s.end&&!M(o.charCodeAt(v));)v++;let y=v;for(;M(o.charCodeAt(y));)y++;P.extra[g]=h?_===s.end?null:Pr(o.slice(_,s.end)):{lang:_===s.end?null:Pr(o.slice(_,v)),meta:y===s.end?null:Pr(o.slice(y,s.end))},P.value[g]=u.length?es(o,u,!1).source:``;let b=u[u.length-1];if(!l&&b&&(!p&&R(o,d)||b.start===b.end&&b.end===o.length)){let e=P.value[g];e.charCodeAt(e.length-1)===10?P.value[g]=e.slice(0,e.charCodeAt(e.length-2)===13?-2:-1):e.charCodeAt(e.length-1)===13&&(P.value[g]=e.slice(0,-1))}let x=u[0];return x&&x.start===x.end&&!x.padding&&o.charCodeAt(s.end)===13&&s.next===s.end+1&&P.value[g].charCodeAt(0)===10&&(P.value[g]=P.value[g].slice(1)),(l||p)&&u.length>1&&b.start===b.end&&!b.padding&&o.charCodeAt(b.end)===10&&P.value[g].charCodeAt(P.value[g].length-1)===13&&(P.value[g]=P.value[g].slice(0,-1)),c-n+ +!!l}function ps(e,t,n,r,i,a){let o=e.source,s=t[n],c=n,l=!1;for(;c<t.length&&!(c>n&&(s.lazy||t[c].lazy)||!i.until&&R(o,t[c]));c++)if(i.until){let e=o.slice(t[c].start,t[c].end);if(typeof i.until==`string`?e.includes(i.until):i.until.test(e)){l=!0,c++;break}}let u=t[c-1],d=a&&Bo(e,a),f=i.until&&!l&&(P.kind[r]===N.Root||d||u.next===o.length)&&c===t.length,p=F(N.Html,s.start,f?u.next:u.end,r),m=t.slice(n,c);return P.value[p]=es(o,m,!1).source,f&&(P.value[p]+=o.slice(u.end,u.next)),c-n}function ms(e,t,n,r,i,a,o,s,c){let l=e.source,u=t[n],d=i.raw,f=Fr(d),p=i.end;for(;M(l.charCodeAt(p));)p++;let m=[{start:p,end:u.end,next:u.next}],h=n+1,g=n,_=Qo(e,m[0],o>0),v=lo,y=m[0],b,x=!1,S;for(;h<t.length;h++){let n=L(l,t[h]),r=n.indent;if(n.start===t[h].end)m.push(t[h]),_!==3&&(_=0),x=!1;else if(!t[h].lazy&&(r>=Ka||s&&r===0)){let n=r>=Ka?wo(l,t[h],Ka):t[h];if(x?(x=Jo(e,b,y,n),x||(S=n)):e.config.gfm&&m[m.length-1]!==S&&qo(e,b,y,m[m.length-1],n)&&(x=!0),!x){let t=Xo(e,y,n,_===1);t!==y&&(b=y,y=t)}m.push(n),g=h,_=x?0:Qo(e,n,_===1,_,v),v||=lo}else if(_===1&&(!Io(e,t[h])&&!Ao(l,t[h])||Lo(e,t[h]))){let n=Wo(e,t[h]);if(n===0)break;if(m.push({...t[h],lazy:!0}),g=h,n===2){h++;break}}else break}let ee=t[g].end;h>g+1&&$o(l,t[h-1])&&(ee=t[h-1].end),Vo(e,t,h,c)&&(ee=(t[h]??c).start);let te=F(N.FootnoteDefinition,a,ee,r);P.extra[te]={identifier:f,label:Pr(d)},e.footnotes.add(f);let ne=uo;uo??=m;let re=vs(e,m,te,!1,o,t[h]??c);return uo=ne,re<m.length&&(h=n+re,P.end[te]=t[h-1].end),cs(e,t,h)&&ls(te,t[h-1].end)&&(co=t[h]),P.last[te]&&(P.end[te]=Math.max(P.end[te],P.end[P.last[te]])),h-n}function hs(e,t,n){for(let r=P.child[n];r;r=P.next[r]){let n,i;if(P.kind[r]===N.Mdx&&P.extra[r]?.type===`mdxJsxFlowElement`)n=P.a[r],i=P.b[r];else if(P.kind[r]===N.FootnoteDefinition){let t=P.child[r]?P.start[P.child[r]]:P.end[r];for(let n=P.start[r];n<t;n++)if(e.charCodeAt(n)===10||e.charCodeAt(n)===13)return!0;n=P.start[r],i=P.end[r]}else continue;for(let i=P.child[r];i;i=P.next[i]){for(let r of t)if(r.end>n&&r.end<=P.start[i]&&R(e,r))return!0;n=P.end[i]}for(let a of t)if(a.end>n&&(P.kind[r]===N.FootnoteDefinition?a.end<a.next&&a.next<=i:a.end<=i)&&R(e,a))return!0;if(hs(e,t,r))return!0}return!1}function gs(e,t,n,r,i){let a=e.source,o=n,s=0,c=!1,l=!1,u,d,f;for(;o<t.length;o++){let p=t[o],m=jo(a,p);if(m>=0){let t={start:m,end:p.end,next:p.next,padding:Ko(a,m),lazy:p.lazy};if(l&&d?(l=Jo(e,f,d,t),l||(u=t)):e.config.gfm&&d&&i[i.length-1]!==u&&qo(e,f,d,i[i.length-1],t)&&(l=!0),!l){let n=Xo(e,d??t,t,s===1);n!==d&&(f=d,d=n)}i.push(t),s=l?0:Qo(e,t,s===1||o===n&&r>0,s,c),c||=lo}else if(s===1&&(!Io(e,p)&&!Ao(a,p)||Lo(e,p))){let t=Wo(e,p);if(t===0)break;if(i.push({...p,lazy:!0}),t===2){o++;break}}else break}return o}function _s(e,t,n,r){let i=t[n],a=P.last[r];if(!a||!$o(e,i)||!(P.kind[a]===N.Blockquote&&i.next===e.length&&i.end===i.next&&i.start===i.end&&!i.padding&&n>0&&!R(e,t[n-1])||P.kind[a]===N.List||P.kind[a]===N.FootnoteDefinition))return;let o=P.kind[a]===N.List?P.last[a]:0;if(o&&Ho(e,i)){let r=P.last[o];n>0&&R(e,t[n-1])&&(r?P.end[r]:P.start[o])<t[n-1].end&&(P.a[o]=1),P.end[o]=i.end}else o&&n>0&&R(e,t[n-1])&&P.end[o]<t[n-1].end&&(P.extra[a]=!0);P.end[a]=i.end}function vs(e,t,n,r=!1,i=0,a){ro=!!e.config.mdx,io=!!e.config.math;let o=n,s=e.source,c=r?ds(e,t,n):0,l=i===2?1:i,u=!1,d=0;for(;c<t.length;){n=e.flowParent?.(o)??o;let r=t[c];if(R(s,r)){_s(s,t,c,n),l!==3&&(l=0),c++;continue}let i=L(s,r);if(e.flow){let n=e.flow(e,t,c,o,a);if(n){if(l=0,c+=n,t[c]?.lazy)return c;continue}}let f=Do(s,r);if(f){let t=F(N.Heading,f.start,r.end,n);P.a[t]=f.depth,ts(e,t,[{start:f.content,end:f.end,next:f.end}]),l=0,c++;continue}let p=ko(s,r);if(p){if(c+=fs(e,t,c,n,p,a),t[c]?.lazy)return c;l=0;continue}if(!r.lazy&&Eo(s,r)){F(N.ThematicBreak,i.start,r.end,n),l=0,c++;continue}let m=r.start<d;if((m?-1:jo(s,r))>=0){let o=P.last[n];if(o&&P.kind[o]===N.List&&$o(s,r)){let e=P.last[o];c>0&&R(s,t[c-1])&&P.child[e]&&P.end[e]<=t[c-1].start&&(P.extra[o]=!0),P.end[o]=r.start}let d=[],f=gs(e,t,c,l,d),p=F(N.Blockquote,i.start,t[f-1].end,n);oo++;let m=vs(e,d,p,!1,l,t[f]??a);if(oo--,m<d.length&&(f=c+m,P.end[p]=t[f-1].end),cs(e,t,f)&&ls(p,t[f-1].end)&&(co=t[f]),t[f]?.lazy)return f;let h=P.last[p];(Vo(e,t,f,a)||h&&(t[f]??a)&&(t[f]??a)!==so&&P.end[h]>t[f-1].end)&&(P.end[p]=(t[f]??a).start),P.last[p]&&(P.end[p]=Math.max(P.end[p],P.end[P.last[p]])),u=f<t.length&&!R(s,t[f]),l=0,c=f;continue}let h=e.config.gfm&&!m&&Ro(s,r);if(h){if(c+=ms(e,t,c,n,h,i.start,l,P.kind[o]===N.FootnoteDefinition,a),t[c]?.lazy)return c;l=0;continue}let g=us(e,t,c,n,l===1||l===2);if(g){c+=g,l=0;continue}let _=r.lazy||m?void 0:Ao(s,r);if(_&&l&&(R(s,{start:_.content,end:r.end,next:r.next})||_.ordered&&(s.charCodeAt(_.start)!==49||s.charCodeAt(_.start+1)!==46&&s.charCodeAt(_.start+1)!==41))&&(_=void 0),_){let i=F(N.List,_.start,r.end,n);P.a[i]=+!!_.ordered,P.b[i]=_.number;let o=c,d=!1;for(;o<t.length;){let n=Ao(s,t[o]);if(!n||n.ordered!==_.ordered||n.char!==_.char||Eo(s,t[o]))break;let r=o,c=[{start:n.content,end:t[o].end,next:t[o].next,padding:n.padding}];o++;let u=Qo(e,c[0],l>0),f=lo,p=c[0],m,h=!1,g=r,v=!1,y=!1,b;for(;o<t.length;o++){let i=t[o];if(R(s,i)){if(g===r&&R(s,c[0])){let n=o+1;for(;n<t.length&&R(s,t[n]);)n++;let r=n<t.length?Ao(s,t[n]):void 0;r&&r.char===_.char&&r.ordered===_.ordered?(Ho(s,t[n])||(d=!0),o=n):Vo(e,t,n,a)&&(o=n);break}c.push(wo(s,i,n.indent)),h=!0,u!==3&&(u=0),y=!1;continue}let v=L(s,i);if(v.indent<n.indent&&Ao(s,i)&&!i.lazy)break;if(!i.lazy&&v.indent>=n.indent){let t=wo(s,i,n.indent);if(y?(y=Jo(e,m,p,t),y||(b=t)):e.config.gfm&&c[c.length-1]!==b&&qo(e,m,p,c[c.length-1],t)&&(y=!0),!y){let n=Xo(e,p,t,u===1);n!==p&&(m=p,p=n)}c.push(t),g=o,u=y?0:Qo(e,t,u===1||l>0,u,f),f||=lo,h=!1}else if(u===1&&(i.lazy||!Io(e,i)||Lo(e,i))){let t=Wo(e,i);if(t===0)break;if(c.push({...i,lazy:!0}),g=o,t===2){o++;break}}else break}let x=F(N.ListItem,n.start,t[g].end,i);P.a[x]=+!!v;let S=fo,ee=o<t.length?Ao(s,t[o]):void 0,te=so;ee&&ee.ordered===_.ordered&&ee.char===_.char&&!Eo(s,t[o])&&(so=t[o]);let ne=vs(e,c,x,!1,l,t[o]??a);so=te,ne<c.length&&(o=r+ne,g=o-1,P.end[x]=t[g].end),cs(e,t,o)&&ls(x,t[o-1].end)&&(co=t[o]),l=0;let re=o<t.length?Ao(s,t[o]):void 0,ie=re&&re.ordered===_.ordered&&re.char===_.char&&!Eo(s,t[o]);if(e.config.gfm){let e=P.child[x];for(;e&&P.kind[e]===N.Definition;)e=P.next[e];if(e&&P.kind[e]===N.Paragraph)for(let t=S;t<fo;t++){if(po[t]!==e)continue;let r=ho[t].source,i=r.charCodeAt(1),a=i===13&&r.charCodeAt(2)===10?3:2,o=a+1;for(;M(r.charCodeAt(o));)o++;r.charCodeAt(0)===91&&(M(i)||i===10||i===13||i===120||i===88)&&r.charCodeAt(a)===93&&o<r.length&&(M(r.charCodeAt(a+1))||r.charCodeAt(a+1)===10||r.charCodeAt(a+1)===13)&&So(s,c,n.content,P.start[e])&&(P.b[x]=i===120||i===88?2:1,mo[t]=a+1,P.a[e]=no);break}}for(let e=P.child[x];e&&P.next[e];e=P.next[e]){let n=P.next[e];for(let i=r;i<g;i++)t[i].end>P.end[e]&&t[i].next<=P.start[n]&&R(s,t[i])&&(v=!0)}if((e.config.mdx||e.config.gfm)&&hs(s,c,x)&&(v=!0),P.a[x]=+!!v,P.last[x]&&(P.end[x]=Math.max(P.end[x],P.end[P.last[x]])),ie&&P.last[x]&&(P.end[P.last[x]]===t[o].start||P.end[P.last[x]]===t[o-1].next)&&(P.end[x]=re.prefix),Uo(e,t,o,g,x,i,ie?re:void 0,a)){if(!ie)break;continue}ie&&h&&P.end[x]<=t[g].end&&(d=!0),P.end[i]=P.end[x],!ie&&o>g+1&&$o(s,t[o-1])&&(P.end[i]=t[o-1].end),!ie&&o>g+2&&$o(s,t[o-1])&&P.end[x]<=t[g].end&&(d=!0),!ie&&Vo(e,t,o,a)&&(P.end[i]=(t[o]??a).start,o>g+1&&P.end[x]<=t[g].end?d=!0:P.end[x]>t[g].end&&(P.end[x]=P.end[i]));let ae=t[o]??a;if(!ie&&ae&&ae!==so&&P.end[x]>t[o-1].end&&ae.start>P.end[i]&&(P.end[i]=P.end[x]=ae.start),!ie)break}if(P.extra[i]=d,t[o]?.lazy)return o;let f=o;for(;f<t.length&&R(s,t[f]);)f++;u=f<t.length&&L(s,t[f]).indent>=Ga,l=0,c=o;continue}let v=P.last[n];if(v&&P.kind[v]===N.Definition&&c>0&&!R(s,t[c-1])){let r=ns(e,t,c,n,!0);if(r){l=2,c+=r;continue}}if(!e.config.mdx&&i.indent>=Ga&&l!==2){let e=[],i=c,a=c;for(;i<t.length&&!(u&&i>c);i++){let n=t[i];if(R(s,n))e.push(wo(s,n,Ga));else if(L(s,n).indent>=Ga)e.push(wo(s,n,Ga)),a=i;else break}let o=a;for(let e=a+1;e<i;e++)L(s,t[e]).indent>=Ga&&(o=e);e.length=o-c+1;let d=F(N.Code,r.start,t[o].end,n);if(P.value[d]=es(s,e,!1).source,R(s,e[e.length-1])){let e=P.value[d];e.charCodeAt(e.length-1)===10?P.value[d]=e.slice(0,e.charCodeAt(e.length-2)===13?-2:-1):e.charCodeAt(e.length-1)===13&&(P.value[d]=e.slice(0,-1))}l=u?0:3,u=!1,c=i;continue}let y=!e.config.mdx&&Po(s,r,l===2&&!r.lazy&&!cs(e,t,c,!0));if(y){if(c+=ps(e,t,c,n,y,a),t[c]?.lazy)return c;l=0;continue}let b=ns(e,t,c,n);if(b){l=2,c+=b;continue}let x=[r];e.continuationEnd&&(d=Math.max(d,e.continuationEnd(r,e,t,c,a)));let S=c+1,ee=0;for(;S<t.length&&(ee=t[S].lazy?0:Oo(s,t[S]),!ee);S++){let n=e.continuation?.(e,t,S,a);if(n)break;if(t[S].start<d){if(n===void 0&&Fo(e,t[S]))break}else{if(n===void 0&&!t[S].lazy&&Io(e,t[S])||t[S].lazy&&!e.config.mdx&&Po(s,t[S],!1)||n===void 0&&t[S].lazy&&Lo(e,t[S]))break;e.continuationEnd&&(d=e.continuationEnd(t[S],e,t,S,a))}if(cs(e,t,S,!0))break;x.push(t[S])}let te=i.start;if(ee&&!Oo(s,r)){let e=P.last[n],r=c-1;for(;e&&P.kind[e]===N.Definition&&r>=0&&!R(s,t[r]);)te=P.start[e],e=P.prev[e],r--}let ne=F(ee?N.Heading:N.Paragraph,te,ee?t[S].end:t[S-1].end,n);if(P.a[ne]=ee,ts(e,ne,x),l=+!ee,c=S+ +!!ee,ee&&t[c]?.lazy)return c}return t.length}function ys(e){for(let t=0;t<fo;t++){let n=ho[t],r=po[t];if(za(n,mo[t],n.source.length,r,e),ho[t]=void 0,P.kind[r]===N.Paragraph&&P.a[r]===no){let t=P.child[r];if(t&&P.kind[t]===N.Text){if(P.value[t]=P.value[t].slice(1),!P.value[t])P.child[r]=P.next[t],P.next[t]?P.prev[P.next[t]]=0:P.last[r]=0;else{if(e.config.positions){let e=Hr(P.start[t]),n={line:e.line,column:e.column+1,offset:e.offset+1};P.extra[t]=P.extra[r]={positionStart:n}}P.start[t]++,P.start[r]=P.start[t]}}}}}function bs(e=[],t=!0){let n={gfm:void 0,mdx:void 0,frontmatter:void 0,positions:t};for(let t of e)t.name===`gfm`?n.gfm=t:t.name===`mdx`?n.mdx=t:t.name===`frontmatter`?n.frontmatter=t:t.name===`headingId`?n.headingId=t:t.name===`math`&&(n.math=t);return n}var xs=class extends Error{name;reason;place;line;column;ruleId;source;url;fatal=!0;constructor(e){super(e.reason,{cause:e.cause}),this.name=e.place?`${e.place.line}:${e.place.column}`:`1:1`,this.reason=e.reason,this.place=e.place,this.line=e.place?.line,this.column=e.place?.column,this.ruleId=e.ruleId,this.source=e.source,this.url=e.url}},Ss=2024,Cs=4,ws=2,Ts=1,Es=2,Ds="Unexpected lazy line in expression in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",Os={ecmaVersion:Ss,sourceType:`module`,locations:!0,preserveParens:!0};function ks(e){let t=0,n=``;for(;;){let r=e.indexOf(`/*`,t);if(r<0)break;let i=e.indexOf(`*/`,r+2);if(i<0)break;n+=e.slice(t,r),t=i+2}t&&(e=n+e.slice(t));for(let t=0;t<e.length;){let n=e.charCodeAt(t);if(Dr(n))t++;else{if(n!==47)return!1;if(e.charCodeAt(t+1)===47){for(t+=2;t<e.length&&e.charCodeAt(t)!==10&&e.charCodeAt(t)!==13;)t++;if(t===e.length)return!1}else return!1}}return!0}function As(e,t,n,r=`micromark-extension-mdx-expression`){throw new xs({reason:e,place:Hr(t),ruleId:n,source:r})}function js(e,t){if(e&&typeof e==`object`){if(typeof e.type==`string`&&typeof e.start==`number`){let n=Hr(t(e.start)),r=Hr(t(e.end));e.start=n.offset,e.end=r.offset,e.loc={start:{line:n.line,column:n.column-1,offset:n.offset},end:{line:r.line,column:r.column-1,offset:r.offset}},e.range=[n.offset,r.offset]}for(let n of Object.keys(e)){if(n===`loc`||n===`range`)continue;let r=e[n];if(Array.isArray(r))for(let e=0;e<r.length;e++)js(r[e],t),r[e]?.type===`ParenthesizedExpression`&&(r[e]=r[e].expression);else r&&typeof r==`object`&&(js(r,t),r.type===`ParenthesizedExpression`&&(e[n]=r.expression))}}}function Ms(e,t,n,r=!1,i=!1,a=!0){let o=[],s=i?`({`:``,c=i?`})`:``,l=s+e+c,u=r&&ks(e);u&&!a&&As(`Unexpected empty expression`,n(0),`unexpected-empty-expression`);let d=t=>n(Math.max(0,Math.min(e.length,t-s.length))),f;try{f=r&&!u?t.acorn.parseExpressionAt(l,0,{...Os,onComment:o}):t.acorn.parse(l,{...Os,onComment:o})}catch(t){return{error:{cause:t,at:d(t.pos)},swallow:t.raisedAt>=s.length+e.length||t.message.startsWith(`Unterminated comment`)}}if(r&&!u){let n=l.slice(f.end,l.length-c.length);if(!ks(n))return{error:{at:d(f.end)},swallow:n.trimStart()[0]===`/`};if(!t.estree&&!i)return{program:f};f={type:`Program`,start:0,end:s.length+e.length,body:[{type:`ExpressionStatement`,expression:f,start:0,end:s.length+e.length}],sourceType:`module`,comments:[]}}if(f.comments=o,(t.estree||i||!r)&&js(f,d),i){let e=f.body[0];(e.type!==`ExpressionStatement`||e.expression.type!==`ObjectExpression`)&&As("Unexpected `"+e.type+"` in code: expected an object spread (`{...spread}`)",e.start,`non-spread`);let t=e.expression.properties;t[1]&&As(`Unexpected extra content in spread: only a single spread is supported`,t[1].start,`spread-extra`),t[0]&&t[0].type!==`SpreadElement`&&As("Unexpected `"+t[0].type+"` in code: only spread elements are supported",t[0].start,`non-spread`)}return{program:f}}function Ns(e,t,n){for(let n=t;n<e.length;n++){let t=e.charCodeAt(n);if(t===125)return n;if(t===123||t===34||t===39||t===96||t===47)break}try{let r=n.acorn.tokenizer(e.slice(t),Os),i=0;for(;;){let e=r.getToken(),n=e.type.label;if(n===`eof`)return-1;if(n===`{`||n==="${")i++;else if(n===`}`){if(!i)return t+e.start;i--}}}catch{return-1}}var Ps=/* @__PURE__ */ new WeakMap;function Fs(e,t){let n=Ps.get(e);return n?(t<n.from||n.at>=0&&t>n.at)&&(n.at=e.source.indexOf(`}`,t)):Ps.set(e,n={from:t,at:e.source.indexOf(`}`,t)}),n.from=t,n.at}function Is(e,t,n,r){let i=e.source,a=t+1,o=0;for(let s=2;;s*=2,a++){for(;a<n;a++){let e=i.charCodeAt(a);if((e===10||e===13&&i.charCodeAt(a+1)!==10)&&++o===s)break}if(a>=n||2*(a-t)>n-t)return;let c=Us(e,t+1,a,!0,!1),l=Ms(c.value,r,c.map,!0,!1,!0);if(l.error&&!l.swallow)return l.error}}var Ls=/* @__PURE__ */ new WeakMap,Rs=``;function zs(e){Rs=e}function Bs(e,t){return e.source.charCodeAt(t)===32&&Rs.charCodeAt(I(e,t))===9}function Vs(e,t){return I(e,t)+ +!!Bs(e,t)}function Hs(e,t,n,r,i=!1,a=!0){let o=t*Cs+(i?ws:0)+(a?Ts:0),s=Ls.get(e)?.get(o);if(s&&s.end<=n)return s;let c=e.source,l,u=Fs(e,t+1),d=u>=0&&u<n;if(d&&!i&&(l=Is(e,t,u,r)),d&&!l){let s=Ns(c.slice(0,n),t+1,r),d=s>=0?s:u;for(let s=d;s<n;s++){if(c.charCodeAt(s)!==125)continue;let n=Us(e,t+1,s,!0),u=n.virtual?Us(e,t+1,s,!0,!1):n,d=Ms(u.value,r,u.map,!0,i,a);if(d.program){let t={end:s+1,value:n.value};r.estree&&(t.data={estree:d.program});let i=Ls.get(e);return i||(i=/* @__PURE__ */ new Map,Ls.set(e,i)),i.set(o,t),t}if(l=d.error,!d.swallow)break}}let f=-1;for(let r of e.lazy??[])r>t&&r<n&&(f<0||r<f)&&(f=r);f>=0&&As(Ds,Vs(e,f),`unexpected-lazy`),e.boundary!==void 0&&As(Ds,e.boundary,`unexpected-lazy`),l&&As(`Could not parse expression with acorn`,l.at,`acorn`),As("Unexpected end of file in expression, expected a corresponding closing brace for `{`",I(e,n),`unexpected-eof`)}function Us(e,t,n,r,i=!0){let a=[],o=``,s=!1,c=I(e,t);for(let l=t;l<=n&&(e.lazy?.has(l)&&As(Ds,Vs(e,l),`unexpected-lazy`),l!==n);l++){let t=e.source.charCodeAt(l);if(a.push(I(e,l)),o+=e.source[l],c=I(e,l)+1,r&&(t===10||t===13&&e.source.charCodeAt(l+1)!==10)){e.lazy?.has(l+1)&&As(Ds,Vs(e,l+1),`unexpected-lazy`);let t=0,r=0,u=0;for(;l+1<n&&M(e.source.charCodeAt(l+1));){let n=I(e,l+1),i=e.source.charCodeAt(l+1)===9,a=Bs(e,l+1);if(t>=Es){if(!a)break;r++}else t+=i?To(Rs,n):1,t>Es&&(r=t-Es);l++,u=n+1}if(r&&(s=!0,c=u,i)){o+=` `.repeat(r);for(let e=0;e<r;e++)a.push(u)}}}return a.push(c),{value:o,map:e=>a[e],virtual:s}}var Ws=e=>Ar(e)||e===36||e===95||e>127&&(/* @__PURE__ */ RegExp(`\\p{ID_Start}`,`u`)).test(String.fromCharCode(e)),Gs=e=>Ws(e)||kr(e)||e===45||e>127&&(/* @__PURE__ */ RegExp(`\\p{ID_Continue}`,`u`)).test(String.fromCharCode(e)),Ks="a character that can start a name, such as a letter, `$`, or `_`",qs="a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag",Js="a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag",Ys="an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag",Xs="a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag";function Zs(e,t,n,r){let i=e.source;if(M(i.charCodeAt(t+1))||i.charCodeAt(t+1)===10||i.charCodeAt(t+1)===13)return;let a=t+1,o=()=>{e.lazy?.has(a)&&As("Unexpected lazy line in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",Vs(e,a),`unexpected-lazy`,`micromark-extension-mdx-jsx`)},s=()=>{for(;a<n&&Dr(i.charCodeAt(a));)o(),a++;o()},c=(t,r)=>{a>=n&&e.boundary!==void 0&&As("Unexpected lazy line in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",e.boundary,`unexpected-lazy`,`micromark-extension-mdx-jsx`);let o=i.charCodeAt(a),s=a>=n,c=o===96?"` ` `":i[a];As(`Unexpected `+(s?`end of file`:"character `"+c+"` (U+"+o.toString(16).toUpperCase().padStart(4,`0`)+`)`)+` `+t+`, expected `+r,I(e,a),s?`unexpected-eof`:`unexpected-character`,`micromark-extension-mdx-jsx`)};s();let l=i.charCodeAt(a)===47;l&&(a++,s());let u=(e,t)=>{Ws(i.charCodeAt(a))||c(`before `+e,t);let r=a++;for(;a<n&&Gs(i.charCodeAt(a));)a++;return i.slice(r,a)},d=null;if(i.charCodeAt(a)!==62){let e=i.charCodeAt(a);d=u(`name`,Ks+(e===33?" (note: to create a comment in MDX, use `{/* text */}`)":l&&(e===42||e===47)?` (note: JS comments in JSX tags are not supported in MDX)`:``));let t=`name`;for(;;){let e=i.charCodeAt(a);!Dr(e)&&(e===46&&t===`local name`||e===58&&t!==`name`||e!==46&&e!==58&&e!==47&&e!==62&&e!==123)&&c(`in `+t,Js+(e===64&&t!==`local name`?" (note: to create a link in MDX, use `[text](url)`)":``)),s();let n=i.charCodeAt(a);if(n===46&&t!==`local name`||n===58&&t===`name`)a++,s(),t=n===46?`member name`:`local name`,d+=(n===46?`.`:`:`)+u(t,n===46?qs:Ks+(i.charCodeAt(a)===43||i.charCodeAt(a)>46&&i.charCodeAt(a)<58?" (note: to create a link in MDX, use `[text](url)`)":``));else{n!==47&&n!==62&&n!==123&&!Ws(n)&&c(`after `+t,qs);break}}}let f=[],p=!1;for(;a<n&&i.charCodeAt(a)!==62;){s();let t=i.charCodeAt(a);if(t===62)break;if(t===47){l&&As("Unexpected self-closing slash `/` in closing tag, expected the end of the tag",I(e,a),`unexpected-self-closing-slash`,`mdast-util-mdx-jsx`),p=!0,a++,s(),i.charCodeAt(a)!==62&&c(`after self-closing slash`,"`>` to end the tag"+(i.charCodeAt(a)===42||i.charCodeAt(a)===47?` (note: JS comments in JSX tags are not supported in MDX)`:``));break}let d=a;if(l&&As(`Unexpected attribute in closing tag, expected the end of the tag`,I(e,a),`unexpected-attribute`,`mdast-util-mdx-jsx`),t===123){let t=Hs(e,a,n,r,!0,!1);a=t.end;let i={type:`mdxJsxExpressionAttribute`,value:t.value};t.data&&(i.data=t.data);let o=Ur(I(e,d),I(e,a));o&&(i.position=o),f.push(i);continue}let m=u(`attribute name`,qs),h=!1,g=i.charCodeAt(a);!Dr(g)&&g!==47&&g!==58&&g!==61&&g!==62&&g!==123&&c(`in attribute name`,Ys);let _=a;if(s(),i.charCodeAt(a)===58){h=!0,a++,s(),m+=`:`+u(`local attribute name`,Xs),_=a;let e=i.charCodeAt(a);!Dr(e)&&e!==47&&e!==61&&e!==62&&e!==123&&c(`in local attribute name`,Ys),s()}let v=null;if(i.charCodeAt(a)===61){a++,s();let t=i.charCodeAt(a);if(t===34||t===39){for(a++,v=``;a<n&&i.charCodeAt(a)!==t;){o();let e=i.charCodeAt(a);if(e===38){let e=Mr(i,a,n);if(e){v+=e.value,a=e.end;continue}}if(v+=i[a++],e===10||e===13&&i.charCodeAt(a)!==10)for(o();Dr(i.charCodeAt(a))&&i.charCodeAt(a)!==10&&i.charCodeAt(a)!==13;)a++}a>=n&&c(`in attribute value`,"a corresponding closing quote `"+String.fromCharCode(t)+"`"),a++,_=a}else if(t===123){let t=Hs(e,a,n,r,!1,!1);v={type:`mdxJsxAttributeValueExpression`,value:t.value},t.data&&(v.data=t.data),a=_=t.end}else c(`before attribute value`,"a character that can start an attribute value, such as `\"`, `'`, or `{`"+(t===60?" (note: to use an element or fragment as a prop value in MDX, use `{<element />}`)":``))}else i.charCodeAt(a)!==47&&i.charCodeAt(a)!==62&&i.charCodeAt(a)!==123&&!Ws(i.charCodeAt(a))&&c(h?`after local attribute name`:`after attribute name`,Xs);let y=Ur(I(e,d),I(e,_)),b={type:`mdxJsxAttribute`,name:m,value:v};y&&(b.position=y),f.push(b),s()}return a>=n&&c(d===null?`before name`:`before attribute name`,d===null?Ks:qs),{type:`tag`,start:t,end:a+1,name:d,attributes:f,close:l,selfClosing:p}}function Qs(e,t=e.close){return`<`+(t?`/`:``)+(e.name??``)+`>`}function $s(e,t){let n=Hr(e),r=t===void 0?void 0:Hr(t);return n.line+`:`+n.column+(r?`-`+r.line+`:`+r.column:``)}function ec(e){let t=``;for(let n=P.child[e];n;n=P.next[n])t+=P.value[n]??(P.extra[n]?.type===`mdxTextExpression`?P.extra[n].value:ec(n));return t}function tc(e,t){let n={source:e,base:0};zs(e);let r=/* @__PURE__ */ new Map,i=[],a=/* @__PURE__ */ new WeakMap,o=e=>r.get(e)?.at(-1)?.node??e,s,c=0,l=e=>e.start===e.next&&!e.padding,u=()=>Math.max(e.lastIndexOf(`
|
|
18
|
+
`,t+1)),Rr===Ir.length){let e=new Int32Array(Rr*2);e.set(Ir),Ir=e}Ir[Rr++]=t+1}Lr=Rr-+(Ir[Rr-1]===e.length)}function Hr(e){if(e<Ir[zr]||zr+1<Rr&&e>=Ir[zr+1]){let t=0;for(;zr+1<Rr&&e>=Ir[zr+1]&&t++<Tr;)zr++;for(;zr&&e<Ir[zr]&&t++<Tr;)zr--;if(e<Ir[zr]||zr+1<Rr&&e>=Ir[zr+1]){let t=0,n=Rr;for(;t+1<n;){let r=t+n>>>1;Ir[r]<=e?t=r:n=r}zr=t}}return{line:zr+1,column:e-Ir[zr]+1,offset:e}}function Ur(e,t,n){return Br?{start:n??Hr(e),end:Hr(t)}:void 0}var N;(function(e){e[e.Root=0]=`Root`,e[e.Paragraph=1]=`Paragraph`,e[e.Heading=2]=`Heading`,e[e.ThematicBreak=3]=`ThematicBreak`,e[e.Blockquote=4]=`Blockquote`,e[e.List=5]=`List`,e[e.ListItem=6]=`ListItem`,e[e.Html=7]=`Html`,e[e.Code=8]=`Code`,e[e.Definition=9]=`Definition`,e[e.Text=10]=`Text`,e[e.Emphasis=11]=`Emphasis`,e[e.Strong=12]=`Strong`,e[e.InlineCode=13]=`InlineCode`,e[e.Break=14]=`Break`,e[e.Link=15]=`Link`,e[e.Image=16]=`Image`,e[e.LinkReference=17]=`LinkReference`,e[e.ImageReference=18]=`ImageReference`,e[e.Delete=19]=`Delete`,e[e.Table=20]=`Table`,e[e.TableRow=21]=`TableRow`,e[e.TableCell=22]=`TableCell`,e[e.FootnoteDefinition=23]=`FootnoteDefinition`,e[e.FootnoteReference=24]=`FootnoteReference`,e[e.Yaml=25]=`Yaml`,e[e.Toml=26]=`Toml`,e[e.Mdx=27]=`Mdx`,e[e.IdString=28]=`IdString`,e[e.Math=29]=`Math`,e[e.InlineMath=30]=`InlineMath`})(N||={});var Wr=/* @__PURE__ */ new Uint8Array(31);for(let e of[N.Root,N.Paragraph,N.Heading,N.Blockquote,N.List,N.ListItem,N.Emphasis,N.Strong,N.Link,N.LinkReference,N.Delete,N.Table,N.TableRow,N.TableCell,N.FootnoteDefinition])Wr[e]=1;var Gr=[1,1,2,3,4,5,6],Kr=[],qr=[],Jr=2048,P={count:0,kind:new Uint8Array(Jr),start:new Int32Array(Jr),end:new Int32Array(Jr),child:new Int32Array(Jr),next:new Int32Array(Jr),prev:new Int32Array(Jr),last:new Int32Array(Jr),a:new Int32Array(Jr),b:new Int32Array(Jr),positionless:new Uint8Array(Jr),value:Kr,extra:qr};function Yr(){P.count=0,P.value.length=0,P.extra.length=0}function F(e,t,n,r=0){let i=++P.count;if(i>=Jr){Jr*=2;let e=new Uint8Array(Jr);e.set(P.kind),P.kind=e;let t=new Uint8Array(Jr);t.set(P.positionless),P.positionless=t;for(let e of[`start`,`end`,`child`,`next`,`prev`,`last`,`a`,`b`]){let t=P[e],n=new Int32Array(Jr);n.set(t),P[e]=n}}return P.kind[i]=e,P.positionless[i]=0,P.start[i]=t,P.end[i]=n,P.child[i]=P.next[i]=P.prev[i]=P.last[i]=P.a[i]=P.b[i]=0,r&&Xr(r,i),i}function Xr(e,t){P.prev[t]=P.last[e],P.last[e]?P.next[P.last[e]]=t:P.child[e]=t,P.last[e]=t}function Zr(e){let t=Wr[P.kind[e]]||P.kind[e]===N.Mdx&&P.extra[e]?.children?[]:void 0;for(let n=P.child[e];n;n=P.next[n])t.push(Zr(n));let n=P.value[e]??``,r=P.extra[e],i=P.positionless[e]?void 0:Ur(P.start[e],P.end[e],r?.positionStart);switch(P.kind[e]){case N.Mdx:{let e={...r};return t&&(e.children=t),i&&(e.position=i),e}case N.Paragraph:return i?{type:`paragraph`,children:t,position:i}:{type:`paragraph`,children:t};case N.Heading:return i?{type:`heading`,depth:Gr[P.a[e]],children:t,position:i}:{type:`heading`,depth:Gr[P.a[e]],children:t};case N.ThematicBreak:return i?{type:`thematicBreak`,position:i}:{type:`thematicBreak`};case N.Blockquote:return i?{type:`blockquote`,children:t,position:i}:{type:`blockquote`,children:t};case N.List:return i?{type:`list`,ordered:!!P.a[e],start:P.a[e]?P.b[e]:null,spread:!!r,children:t,position:i}:{type:`list`,ordered:!!P.a[e],start:P.a[e]?P.b[e]:null,spread:!!r,children:t};case N.ListItem:return i?{type:`listItem`,spread:!!P.a[e],checked:P.b[e]?P.b[e]===2:null,children:t,position:i}:{type:`listItem`,spread:!!P.a[e],checked:P.b[e]?P.b[e]===2:null,children:t};case N.Html:return i?{type:`html`,value:n,position:i}:{type:`html`,value:n};case N.Code:return i?{type:`code`,lang:r?.lang??null,meta:r?.meta??null,value:n,position:i}:{type:`code`,lang:r?.lang??null,meta:r?.meta??null,value:n};case N.Definition:return i?{type:`definition`,identifier:r.identifier,label:r.label,title:r.title,url:r.url,position:i}:{type:`definition`,identifier:r.identifier,label:r.label,title:r.title,url:r.url};case N.Text:return i?{type:`text`,value:n,position:i}:{type:`text`,value:n};case N.IdString:return i?{type:`idString`,value:n,position:i}:{type:`idString`,value:n};case N.Emphasis:return i?{type:`emphasis`,children:t,position:i}:{type:`emphasis`,children:t};case N.Strong:return i?{type:`strong`,children:t,position:i}:{type:`strong`,children:t};case N.InlineCode:return i?{type:`inlineCode`,value:n,position:i}:{type:`inlineCode`,value:n};case N.Break:return i?{type:`break`,position:i}:{type:`break`};case N.Delete:return i?{type:`delete`,children:t,position:i}:{type:`delete`,children:t};case N.Link:return i?{type:`link`,title:r.title,url:r.url,children:t,position:i}:{type:`link`,title:r.title,url:r.url,children:t};case N.Image:return i?{type:`image`,title:r.title,url:r.url,alt:n,position:i}:{type:`image`,title:r.title,url:r.url,alt:n};case N.LinkReference:return i?{type:`linkReference`,children:t,position:i,label:r.label,identifier:r.identifier,referenceType:r.referenceType}:{type:`linkReference`,children:t,label:r.label,identifier:r.identifier,referenceType:r.referenceType};case N.ImageReference:return i?{type:`imageReference`,alt:n,position:i,label:r.label,identifier:r.identifier,referenceType:r.referenceType}:{type:`imageReference`,alt:n,label:r.label,identifier:r.identifier,referenceType:r.referenceType};case N.Table:return i?{type:`table`,align:r,children:t,position:i}:{type:`table`,align:r,children:t};case N.TableRow:return i?{type:`tableRow`,children:t,position:i}:{type:`tableRow`,children:t};case N.TableCell:return i?{type:`tableCell`,children:t,position:i}:{type:`tableCell`,children:t};case N.FootnoteDefinition:return i?{type:`footnoteDefinition`,identifier:r.identifier,label:r.label,children:t,position:i}:{type:`footnoteDefinition`,identifier:r.identifier,label:r.label,children:t};case N.FootnoteReference:return i?{type:`footnoteReference`,identifier:r.identifier,label:r.label,position:i}:{type:`footnoteReference`,identifier:r.identifier,label:r.label};case N.Math:{let e={hName:`pre`,hChildren:[{type:`element`,tagName:`code`,properties:{className:[`language-math`,`math-display`]},children:[{type:`text`,value:n}]}]};return i?{type:`math`,meta:r??null,value:n,data:e,position:i}:{type:`math`,meta:r??null,value:n,data:e}}case N.InlineMath:{let e={hName:`code`,hProperties:{className:[`language-math`,`math-inline`]},hChildren:[{type:`text`,value:n}]};return i?{type:`inlineMath`,value:n,data:e,position:i}:{type:`inlineMath`,value:n,data:e}}case N.Yaml:return i?{type:`yaml`,value:n,position:i}:{type:`yaml`,value:n};case N.Toml:return i?{type:`toml`,value:n,position:i}:{type:`toml`,value:n};default:throw Error(`Unknown parser node kind`)}}function Qr(e){let t=[];for(let n=P.child[e];n;n=P.next[n])t.push(Zr(n));let n=Ur(P.start[e],P.end[e]);return n?{type:`root`,children:t,position:n}:{type:`root`,children:t}}var $r=32,ei=7,ti=8,ni=4,ri=3;function ii(e){return Ar(e)||kr(e)||e===43||e===45||e===46||e===95}function ai(e,t,n){for(let r=0;r<n.length;r++)if((e.charCodeAt(t+r)|$r)!==n.charCodeAt(r))return!1;return!0}function oi(e,t,n){for(let r=t;r<n;r++){let t=e.charCodeAt(r);if(Dr(t)||t===60)return!0;if(t!==33&&t!==34&&t!==39&&t!==41&&t!==42&&t!==44&&t!==46&&t!==58&&t!==59&&t!==63&&t!==95&&t!==126){if(t===93){let t=e.charCodeAt(r+1);if(r+1===n||t===40||t===91||Dr(t))return!0}else if(t===38){let t=r+1;for(;t<n&&Ar(e.charCodeAt(t));)t++;if(t===r+1||e.charCodeAt(t)!==59)return!1;r=t}else return!1}}return!0}function si(e,t,n){let r=!1,i=!1,a=!1,o=t;for(;o<n;o++){let t=e.charCodeAt(o);if(t===46||t===95){if(oi(e,o,n))break;t===95?r=!0:(i=r,r=!1)}else{if(Dr(t)||t!==45&&Or(t))break;a=!0}}return a&&!r&&!i?o:-1}function ci(e,t,n){let r=0,i=0,a=t;for(;a<n;a++){let t=e.charCodeAt(a);if(Dr(t))break;if(t===40)r++;else if(t===41&&i<r)i++;else{if(`!"&')*,.:;<?]_~`.includes(e[a])&&oi(e,a,n))break;t===41&&i++}}return a}function li(e,t,n,r,i=!0){let a=e.charCodeAt(t);if(i&&ii(a)&&r!==47&&!ii(r)){let r=t;for(;r<n&&ii(e.charCodeAt(r));)r++;if(e.charCodeAt(r)===64){r++;let t=!1,i=!1;for(;r<n;r++){let n=e.charCodeAt(r);if(n===46&&(Ar(e.charCodeAt(r+1))||kr(e.charCodeAt(r+1))))t=!0;else if(Ar(n)||kr(n)||n===45||n===95)i=!0;else break}if(t&&i&&Ar(e.charCodeAt(r-1)))return{end:r,prefix:`mailto:`}}}if((a===72||a===104)&&!Ar(r)){let r=ai(e,t,`http://`)?ei:ai(e,t,`https://`)?ti:0;if(r){let i=e.charCodeAt(t+r);if(t+r<n&&i>32&&!Or(i)&&!Dr(i)){let i=si(e,t+r,n);if(i>t+r)return{end:ci(e,i,n),prefix:``}}}}if((a===87||a===119)&&ai(e,t,`www.`)&&t+ni<n&&(r===-1||r===40||r===42||r===95||r===91||r===93||r===126||r===32||r===9||r===10||r===13)){let r=si(e,t,n);if(r>t)return{end:ci(e,r,n),prefix:`http://`}}}function ui(e,t,n){let r=0,i=t,a=!0,o=!0;for(let s=t;s<=n;s++){if(s!==n&&e.charCodeAt(s)!==46)continue;a=o,o=!0;let t=!1;for(let n=i;n<s;n++)e.charCodeAt(n)===95&&(o=!1),(Ar(e.charCodeAt(n))||kr(e.charCodeAt(n)))&&(t=!0);s>i&&!t&&(o=!1),r++,i=s+1}return r>=2&&o&&a}function di(e,t,n){let r=n;for(;r>t&&`!"&'),.:;<>?]}`.includes(e[r-1]);)r--;if(r===n)return n;let i=0,a=0;for(let n=t;n<r;n++)e.charCodeAt(n)===40?i++:e.charCodeAt(n)===41&&a++;let o=r;for(let t=r;t<n&&i>a;t++)e.charCodeAt(t)===41&&(o=t+1,a++);return o}function fi(e,t){let n=t?e.charCodeAt(t-1):-1;if(t&&!Dr(n)&&!Or(n))return;let r=ai(e,t,`http://`)?ei:ai(e,t,`https://`)?ti:ai(e,t,`www.`)?ri:0;if(!r)return;let i=t+r,a=i;for(;i<e.length&&(Ar(e.charCodeAt(i))||kr(e.charCodeAt(i))||e.charCodeAt(i)===95||e.charCodeAt(i)===45||e.charCodeAt(i)===46);)i++;if(i===a||!ui(e,r===ri?t:a,i))return;for(;i<e.length&&e.charCodeAt(i)!==32&&e.charCodeAt(i)!==9&&e.charCodeAt(i)!==10&&e.charCodeAt(i)!==13;)i++;let o=di(e,t+r,i);if(o>t+r||r===ri&&o===t+r)return{end:o,prefix:r===ri?`http://`:``}}function pi(e,t){let n=t?e.charCodeAt(t-1):-1;if(n===47||t&&!Dr(n)&&!Or(n))return;let r=t;for(;r<e.length&&ii(e.charCodeAt(r));)r++;if(r===t||e.charCodeAt(r)!==64)return;let i=++r,a=!1,o=!1;for(;r<e.length;){let t=e.charCodeAt(r);if(Ar(t)||kr(t)||t===95||t===45)o=!0,r++;else if(t===46&&o&&(Ar(e.charCodeAt(r+1))||kr(e.charCodeAt(r+1))||e.charCodeAt(r+1)===95||e.charCodeAt(r+1)===45))a=!0,o=!1,r++;else break}if(a&&r>i&&Ar(e.charCodeAt(r-1)))return{end:r,prefix:`mailto:`}}var mi=/https?:\/\/|www\./gi;function hi(e,t){let n=e.indexOf(`@`,t);if(n<0)return-1;let r=n;for(;r>t&&ii(e.charCodeAt(r-1));)r--;return r}function gi(e,t,n){let r=P.value[t]??``;if(r.indexOf(n?`@`:`.`)<0)return;let i=0,a=0,o=0;mi.lastIndex=0;let s=n?hi(r,0):mi.exec(r)?.index??-1;for(;s>=0;){let e=s,t=n?pi(r,e):fi(r,e);if(!t){s=n?hi(r,e+1):mi.exec(r)?.index??-1;continue}if(i<e){let t=F(N.Text,0,0);P.value[t]=r.slice(i,e),P.positionless[t]=1,o?(P.next[o]=t,P.prev[t]=o):a=t,o=t}let c=F(N.Link,0,0);P.extra[c]={title:null,url:t.prefix+r.slice(e,t.end)},P.positionless[c]=1;let l=F(N.Text,0,0,c);P.value[l]=r.slice(e,t.end),P.positionless[l]=1,o?(P.next[o]=c,P.prev[c]=o):a=c,o=c,i=t.end,n?s=hi(r,t.end):(mi.lastIndex=t.end,s=mi.exec(r)?.index??-1)}if(!a)return;if(i<r.length){let e=F(N.Text,0,0);P.value[e]=r.slice(i),P.positionless[e]=1,P.next[o]=e,P.prev[e]=o,o=e}let c=P.prev[t],l=P.next[t];c?P.next[c]=a:P.child[e]=a,P.prev[a]=c,P.next[o]=l,l?P.prev[l]=o:P.last[e]=o}function _i(e){for(let t=P.child[e];t;){let n=P.next[t];P.kind[t]===N.Text?gi(e,t,!1):P.kind[t]!==N.Link&&P.kind[t]!==N.LinkReference&&P.child[t]&&_i(t),t=n}for(let t=P.child[e];t;){let n=P.next[t];P.kind[t]===N.Text&&gi(e,t,!0),t=n}}function I(e,t){return e.map?e.map[t]:e.base+t}var vi=new Uint8Array(or);for(let e of[10,13,33,42,60,91,92,93,95,96,123,126])vi[e]=1;var yi=vi.slice();for(let e of[72,104,87,119])yi[e]=1;var bi=yi.slice();for(let e=0;e<or;e++)(Er[e]&12||e===43||e===45||e===46)&&(bi[e]=1);var xi=bi.slice();xi[36]=1;var Si=/[\n\r!*<[\]\\_`{~]/g,Ci=/[\n\r!*<[\]\\_`{~]|https?:\/\/|www\./gi,wi=/[\n\r!$*<[\]\\_`{~]/g,Ti=/[\n\r!$*<[\]\\_`{~]|https?:\/\/|www\./gi,Ei=1024,Di=32,Oi=2,ki=32,Ai=63,ji=3,Mi=0,Ni=Ei,Pi=new Int32Array(Ni),Fi=new Int32Array(Ni),Ii=new Int32Array(Ni),Li=new Int32Array(Ni),Ri=new Uint8Array(Ni),zi=new Uint8Array(Ni),Bi=0,Vi=0,Hi=/* @__PURE__ */ new Map,Ui=Si,Wi=Ci,Gi=bi,Ki=0,qi=/* @__PURE__ */ new Int32Array,Ji=/* @__PURE__ */ new Int32Array,Yi=/* @__PURE__ */ new Int32Array(64),Xi=``,Zi,Qi,$i=-1,ea=``,ta=[],na=[],ra=1/0,ia=0;function aa(e,t){ea=t,Mi=0,Zi=Qi=void 0,Hi.clear(),Vi=e.math?e.math.singleDollarTextMath?1:2:0,Ui=Vi?wi:Si,Wi=Vi?Ti:Ci,Gi=Vi?xi:bi}function oa(e,t,n,r,i,a){if(Mi===Ni){Ni*=2;let e=new Int32Array(Ni);e.set(Pi),Pi=e;let t=new Int32Array(Ni);t.set(Fi),Fi=t;let n=new Int32Array(Ni);n.set(Ii),Ii=n;let r=new Int32Array(Ni);r.set(Li),Li=r;let i=new Uint8Array(Ni);i.set(Ri),Ri=i;let a=new Uint8Array(Ni);a.set(zi),zi=a}Pi[Mi]=e,Fi[Mi]=t,Ii[Mi]=n,Li[Mi]=r,Ri[Mi]=i,zi[Mi++]=a}function sa(e,t){let n=P.prev[t],r=P.next[t];n?P.next[n]=r:P.child[e]=r,r?P.prev[r]=n:P.last[e]=n}function ca(e,t,n,r,i,a=3){let o=i?2:1;a&o&&la(e,t,n,r,i,a),a&~o&&la(e,t,n,r,!i,a&~o)}function la(e,t,n,r,i,a){for(let o=n;o<r;o++)if(Fi[o]===t&&Ri[o]===126===i&&zi[o]&2)for(;Li[o];){let r=o-1;for(;r>=n;r--){if(Fi[r]!==t||!Li[r]||!(zi[r]&1)||Ri[r]!==Ri[o])continue;let e=Li[r],n=Li[o];if(Ri[r]===126){if(e!==n)continue}else if((zi[r]&2||zi[o]&1)&&(e+n)%3==0&&(e%3!=0||n%3!=0))continue;break}if(r<n)break;let i=Ri[r]===126?Li[r]:Li[r]>=2&&Li[o]>=2?2:1,s=Pi[r],c=Pi[o],l=Ii[r]+Li[r],u=Ii[o],d=F(Ri[r]===126?N.Delete:i===2?N.Strong:N.Emphasis,I(e,l-i),I(e,u+i));P.child[d]=P.next[s],P.last[d]=P.prev[c],P.prev[P.child[d]]=0,P.next[P.last[d]]=0,P.next[s]=d,P.prev[d]=s,P.next[d]=c,P.prev[c]=d,Li[r]-=i,Li[o]-=i,Ii[o]+=i,P.end[s]=I(e,l-i),P.start[c]=I(e,u+i),P.value[s]=e.source.slice(Ii[r],l-i),P.value[c]=e.source.slice(u+i,u+i+Li[o]);for(let e=r+1;e<o;e++)Fi[e]===t&&(Fi[e]=d);ca(e,d,r+1,o,!0,a),Li[r]||sa(t,s),Li[o]||sa(t,c)}}function ua(e,t,n){let r=da(e,t,n);if(!(r<0))return{end:r,value:Pr(e.charCodeAt(t)===60?e.slice(t+1,r-1):e.slice(t,r))}}function da(e,t,n){let r=t;if(e.charCodeAt(r)===60){for(r++;r<n;r++){let t=e.charCodeAt(r);if(t===62)return r+1;if(t===60||t===10||t===13)return-1;t===92&&Or(e.charCodeAt(r+1))&&r++}return-1}let i=0;for(;r<n;r++){let t=e.charCodeAt(r);if(t!==0&&t<=32||t===127)break;if(t===92&&r+1<e.length&&Or(e.charCodeAt(r+1)))r++;else if(t===40){if(++i>Di)return-1}else if(t===41){if(!i)break;i--}}return i?-1:r}function fa(e,t,n){let r=pa(e,t,n);if(r>=0)return{end:r,value:Pr(ha(e.slice(t+1,r-1)))}}function pa(e,t,n){let r=e.charCodeAt(t);if(r!==34&&r!==39&&r!==40)return-1;let i=r===40?41:r;for(let r=t+1;r<n;r++){let t=e.charCodeAt(r);if(t===i)return r+1;if(t===92&&Or(e.charCodeAt(r+1))&&r++,t===13&&e.charCodeAt(r+1)===10)r++;else if((t===10||t===13)&&(e.charCodeAt(r+1)===10||e.charCodeAt(r+1)===13))return-1}return-1}function ma(e,t,n){for(;t<n&&(M(e.charCodeAt(t))||e.charCodeAt(t)===10||e.charCodeAt(t)===13);)t++;return t}function ha(e,t=1/0){let n=``,r=0;for(let i=0;i<e.length;i++){let a=e.charCodeAt(i);if(a!==10&&a!==13)continue;a===13&&e.charCodeAt(i+1)===10&&i++;let o=i+1,s=0;for(;M(e.charCodeAt(o))&&s<t;)s+=e.charCodeAt(o)===9?sr-s%sr:1,o++;o>i+1&&(n+=e.slice(r,i+1)+(s>t?` `.repeat(s-t):``),r=o,i=o-1)}return n+e.slice(r)}function ga(e,t,n){let r=ma(e,t+1,n),i=ua(e,r,n);if(!i)return;r=ma(e,i.end,n);let a=null;if(r>i.end&&e.charCodeAt(r)!==41){let t=fa(e,r,n);if(!t)return;a=t.value||null,r=ma(e,t.end,n)}if(e.charCodeAt(r)===41)return{end:r+1,url:i.value,title:a}}function _a(e,t,n){let r=ma(e,t+1,n),i=da(e,r,n);if(i<0)return-1;if(r=ma(e,i,n),r>i&&e.charCodeAt(r)!==41){let t=pa(e,r,n);if(t<0)return-1;r=ma(e,t,n)}return e.charCodeAt(r)===41?r+1:-1}function va(e,t,n,r,i){if(r===Zi&&e===Xi&&i===Qi&&n<=$i&&qi[t]===Ki){let e=Ji[t];if(e>=0?e<n:n===$i)return e}qi.length<=e.length&&(qi=new Int32Array(e.length+1),Ji=new Int32Array(e.length+1),Ki=0),Ki++,Xi=e,Zi=r,Qi=i,$i=n;let a,o=0,s=0,c=-1;for(let l=t;l<n;l++){let t=e.charCodeAt(l);if((t===123||t===60)&&i.inline){let e=i.inline(r,l,n,i);if(e){l=e.end-1;continue}}if(t===92&&Or(e.charCodeAt(l+1)))l++;else if(t===60||t===96||t===36&&Vi)l=ya(e,l,n,t);else if(t===91||t===33&&e.charCodeAt(l+1)===91){if(t===33&&(a||=[],a.push(o),l++),o===Yi.length){let e=new Int32Array(o*2);e.set(Yi),Yi=e}Yi[o]=l+1,qi[l+1]=Ki,Ji[l+1]=-1,o++,c=l}else if(t===93){if(!o)return l;o--,Ji[Yi[o]]=l;let t=a!==void 0&&a[a.length-1]===o;t&&a.pop();let r=c+1;if(c=-1,o<s&&(s=o,!t))continue;let u=ba(e,r,l,n,i,t);if(u<0)continue;t||(s=o),l=u-1}}return-1}function ya(e,t,n,r){if(r===60)return Math.max(t,(ka(e,t,n)?.end??Oa(e,t,n))-1);let i=t+1;for(;e.charCodeAt(i)===r;)i++;let a=Sa(e,i,n,i-t,r);return a>=0?a+i-t-1:i-1}function ba(e,t,n,r,i,a){let o=e.charCodeAt(n+1),s=t>0;if(o!==40&&o!==91&&!(s&&i.definitions.size))return-1;if(s&&!a&&e.charCodeAt(t)===94&&i.config.gfm){let r=e.slice(t+1,n);if(r&&!Ba(r)&&i.footnotes.has(Fr(r)))return-1}return Ua(e,t,n,r,i,s)}function xa(e,t,n,r,i=96){for(let a=t;a<n;){if(e.charCodeAt(a)!==i){a++;continue}let t=a+1;for(;e.charCodeAt(t)===i;)t++;if(t-a===r)return a;a=t}return-1}function Sa(e,t,n,r,i){if(i!==36)return xa(e,t,n,r,i);if(r<Vi)return-1;let a=Hi.get(e);if(!a){a=/* @__PURE__ */ new Map;for(let t=e.indexOf(`$`);t!==-1;){let n=t+1;for(;e.charCodeAt(n)===36;)n++;let r=n-t,i=a.get(r);i?i.push(t):a.set(r,[t]),t=e.indexOf(`$`,n)}Hi.set(e,a)}let o=a.get(r);if(!o)return-1;let s=0,c=o.length;for(;s<c;){let e=s+c>>>1;o[e]<t?s=e+1:c=e}let l=o[s];return l<n?l:-1}function Ca(e,t,n){let r=e.source,i=!0;for(let a=t;a<n;a++){let t=r.charCodeAt(a);(t!==32&&t!==10&&t!==13||wa(e,a))&&(i=!1)}let a=r.charCodeAt(t),o=r.charCodeAt(n-1);return i||a!==32&&a!==10&&a!==13||o!==32&&o!==10&&o!==13||wa(e,n-1)||(t+=a===13&&r.charCodeAt(t+1)===10?2:1,n-=o===10&&r.charCodeAt(n-2)===13?2:1),r.slice(t,n)}function wa(e,t){return!!e.map&&e.source.charCodeAt(t)===32&&ea.charCodeAt(e.map[t])===9}var Ta=0;function Ea(e,t,n,r){let i=t;for(;;){let t=e.charCodeAt(i);if(i>=n||t===60||t===61||t===62||t===96)return Da(i);if(t===34||t===39){let t=e.indexOf(e[i],i+1);return t<0||t>=n?Da(n):t+1}let a=i;for(r||i++;i<n&&!Dr(e.charCodeAt(i))&&!`"'=/<>\``.includes(e[i]);)i++;if(i===a)return Da(i);if(!r||e.charCodeAt(i)!==61)return i;for(i++;M(e.charCodeAt(i));)i++}}function Da(e){return Ta=e,-1}function Oa(e,t,n,r=!1){let i=t+1;if(Ta=i,e.startsWith(`<!--`,t)){if(e.charCodeAt(t+4)===62)return t+5;if(e.charCodeAt(t+4)===45&&e.charCodeAt(t+5)===62)return t+6;let r=e.indexOf(`-->`,t+4);return r<0||r+3>n?Da(n):r+3}if(e.startsWith(`<![CDATA[`,t)){let r=e.indexOf(`]]>`,t+9);return r<0||r+3>n?Da(n):r+3}if(e.charCodeAt(i)===63){let t=e.indexOf(`?>`,i+1);return t<0||t+2>n?Da(n):t+2}if(e.charCodeAt(i)===33){if(!Ar(e.charCodeAt(i+1)))return-1;let t=e.indexOf(`>`,i+2);return t<0||t>=n?Da(n):t+1}let a=e.charCodeAt(i)===47;if(a&&i++,!Ar(e.charCodeAt(i)))return-1;for(i++;i<n&&(Ar(e.charCodeAt(i))||kr(e.charCodeAt(i))||e.charCodeAt(i)===45);i++);for(;i<n;){let t=i;if(i=ma(e,i,n),e.charCodeAt(i)===62)return i+1;if(e.charCodeAt(i)===47&&e.charCodeAt(i+1)===62&&!a)return i+2;if(a||i===t)return Da(i);let o=e.charCodeAt(i);if(!Ar(o)&&o!==95&&o!==58)return Da(i);for(i++;i<n&&(Ar(e.charCodeAt(i))||kr(e.charCodeAt(i))||`-._:`.includes(e[i]));)i++;let s=i;if(i=ma(e,i,n),e.charCodeAt(i)!==61)i=s;else if(i=ma(e,i+1,n),i=Ea(e,i,n,r),i<0)return-1}return Da(n)}function ka(e,t,n){let r=t+1;for(;r<n&&e.charCodeAt(r)!==62&&e.charCodeAt(r)>32&&e.charCodeAt(r)!==127&&e.charCodeAt(r)!==60;)r++;if(e.charCodeAt(r)!==62)return;let i=e.slice(t+1,r),a=t+1;for(;a<r&&e.charCodeAt(a)!==58;)a++;if(a<r&&a-t>=Oi+1&&a-t<=ki+1&&Ar(e.charCodeAt(t+1))){let n=!0;for(let r=t+2;r<a;r++)Ar(e.charCodeAt(r))||kr(e.charCodeAt(r))||`+-.`.includes(e[r])||(n=!1);if(n)return{end:r+1,url:i,value:i}}if(Aa(i))return{end:r+1,url:`mailto:`+i,value:i}}function Aa(e){let t=-1;for(let n=0;n<e.length;n++)if(e.charCodeAt(n)===64){if(t>=0)return!1;t=n}if(t<=0||t===e.length-1)return!1;for(let n=0;n<t;n++)if(!Ar(e.charCodeAt(n))&&!kr(e.charCodeAt(n))&&!".#$%&'*+-/=?^_`{|}~".includes(e[n]))return!1;let n=0;for(let r=t+1;r<=e.length;r++){let t=e.charCodeAt(r);if(r===e.length||t===46){if(!n||n>Ai||e.charCodeAt(r-1)===45)return!1;n=0}else{if(!Ar(t)&&!kr(t)&&t!==45||!n&&t===45)return!1;n++}}return!0}function ja(e,t,n,r,i){let a=e.source.charCodeAt(n-1),o=F(N.Text,I(e,t),a===10||a===13?Na(e,n):I(e,n),r);return P.value[o]=i??Pr(e.source.slice(t,n)),o}function Ma(e,t){t>=ia?ra=Math.min(ra,e):(ta.push(e),na.push(t))}function Na(e,t){if(!e.map||!Pa(t))return I(e,t-1)+1;let n=I(e,t);return e.source.charCodeAt(t)===32&&ea.charCodeAt(n)===9?n+1:n}function Pa(e){if(ra<e)return!0;let t=0,n=!1;for(let r=0;r<ta.length;r++)na[r]<e||(ta[r]<e&&(n=!0),ta[t]=ta[r],na[t++]=na[r]);return ta.length=na.length=t,n}function Fa(e,t,n){let r=ma(e,t+1,n),i=da(e,r,n);if(i<0){if(e.charCodeAt(r)===60){for(r++;r<n;r++){let t=e.charCodeAt(r);if(t===60||t===10||t===13)return r;t===92&&Or(e.charCodeAt(r+1))&&r++}return n}let t=0;for(;r<n;r++){let n=e.charCodeAt(r);if(n!==0&&n<=32||n===127)return r;if(n===92&&Or(e.charCodeAt(r+1)))r++;else if(n===40&&++t>Di)return r;else n===41&&t--}return n}if(r=ma(e,i,n),r>i&&e.charCodeAt(r)!==41){let t=pa(e,r,n);if(t<0)return Ia(e.charCodeAt(r))?n:r;r=ma(e,t,n)}return r}function Ia(e){return e===34||e===39||e===40}function La(e){let t=0;for(let n=P.child[e];n;){let r=P.next[n];P.kind[n]===N.Text&&t&&P.kind[t]===N.Text?(P.value[t]=(P.value[t]??``)+(P.value[n]??``),P.end[t]=P.end[n],sa(e,n)):(P.child[n]&&La(n),t=n),n=r}}function Ra(e){let t=``;for(let n=P.child[e];n;n=P.next[n])t+=P.child[n]?Ra(n):P.value[n]??``;return t}function za(e,t,n,r,i,a=!1,o=!0,s=!a){let c=e.source,l=Mi;o&&(Bi=0,ta.length=na.length=0,ra=1/0,ia=n);let u=t,d=i.config.gfm&&s?c.indexOf(`@`,t):-1,f=d>=0&&d<n,p=f?Gi:i.config.gfm&&s?yi:vi,m=!i.inline||i.inlineMarkers,h=i.config.gfm&&s?Wi:Ui,g=t,_=0;for(;g<n;){if(m){if(f)for(;g<n&&!p[c.charCodeAt(g)];)g++;else{h.lastIndex=g;let e=h.exec(c);g=e&&e.index<n?e.index:n}if(g===n)break}let l=c.charCodeAt(g);if(i.inline){let t=i.inline(e,g,n,i);if(t){u<g&&ja(e,u,g,r),Xr(r,t.node),g=u=t.end;continue}}let d=g>t?c.charCodeAt(g-1):-1,v=!(Er[d]&12)&&d!==43&&d!==45&&d!==46&&d!==95&&d!==47||(l===72||l===104||l===87||l===119)&&!(Er[d]&8);if(i.config.gfm&&s&&!_&&v&&(f&&(Er[l]&12||l===43||l===45||l===46||l===95)||l===72||l===104||l===87||l===119)){let t=li(c,g,n,d,f);if(t){u<g&&ja(e,u,g,r);let n=F(N.Link,I(e,g),I(e,t.end),r),i=c.slice(g,t.end);P.extra[n]={title:null,url:t.prefix+i},ja(e,g,t.end,n,i),g=u=t.end;continue}}if(l===92){let t=c.charCodeAt(g+1);if(t<or&&Or(t)){g+=2;continue}if(t===10||t===13){u<g&&ja(e,u,g,r);let n=g+2;for(t===13&&c.charCodeAt(n)===10&&n++,F(N.Break,I(e,g),Na(e,n),r);M(c.charCodeAt(n));)n++;g=u=n;continue}}if(l===10||l===13){let t=g;for(;t>u&&M(c.charCodeAt(t-1));)t--;let n=g+1;l===13&&c.charCodeAt(n)===10&&n++;let i=!1;for(let e=t;e<g;e++)c.charCodeAt(e)===9&&(i=!0);if(!i&&g-t>=2&&c.charCodeAt(g-1)===32&&c.charCodeAt(g-2)===32){for(u<t&&ja(e,u,t,r),F(N.Break,I(e,t),Na(e,n),r);M(c.charCodeAt(n));)n++;g=u=n}else{for(u<t&&ja(e,u,t,r),ja(e,g,n,r);M(c.charCodeAt(n));)n++;g=u=n}}else if(l===96){let t=g+1;for(;c.charCodeAt(t)===96;)t++;let i=xa(c,t,n,t-g);if(i>=0){u<g&&ja(e,u,g,r);let n=i+t-g,a=F(N.InlineCode,I(e,g),I(e,n),r);P.value[a]=Ca(e,t,i),e.table&&(P.value[a]=Va(P.value[a])),g=u=n;continue}Ma(g,1/0),g=t}else if(l===36&&Vi){let t=g+1;for(;c.charCodeAt(t)===36;)t++;let i=Sa(c,t,n,t-g,l);if(i>=0){u<g&&ja(e,u,g,r);let n=i+t-g,a=F(N.InlineMath,I(e,g),I(e,n),r);P.value[a]=Ca(e,t,i),g=u=n;continue}t-g>=Vi&&Ma(g,1/0),g=t}else if(l===42||l===95||l===126&&i.config.gfm){let a=g+1;for(;c.charCodeAt(a)===l;)a++;let s=a-g;if(l===126&&(s>2||s===1&&!i.config.gfm?.singleTilde)){g=a;continue}u<g&&ja(e,u,g,r);let d=ja(e,g,a,r),f=g>t||!o?c.charCodeAt(g-1):32,p=a<n||!o?c.charCodeAt(a):32,m=Dr(f),h=Dr(p),_=Or(f),v=Or(p),y=!h&&(!v||m||_)||l!==126&&i.config.gfm!==void 0&&p===126,b=!m&&(!_||h||v)||l!==126&&i.config.gfm!==void 0&&f===126,x=l===95?y&&(!b||_):y,S=l===95?b&&(!y||v):b;Bi||=l,oa(d,r,g,s,l,!!x|(S?2:0)),g=u=a}else{if(l===91||l===33&&c.charCodeAt(g+1)===91){let t=l===33,o=g+(t?2:1),s=va(c,o,n,e,i);if(s>=0){let l=s+1,d=c.slice(o,s),f,p=!1,m=!1;if(!t&&d.charCodeAt(0)===94&&d.length>1&&!Ba(d)&&i.config.gfm&&i.footnotes.has(Fr(d.slice(1))))f={label:Pr(d.slice(1)),identifier:Fr(d.slice(1))},m=!0;else if(t||!a){if(c.charCodeAt(l)===40&&(f=ga(c,l,n),!f&&e.map&&Ma(l,Fa(c,l,n))),f)l=f.end;else{let e=d,t=`shortcut`;if(c.charCodeAt(l)===91){e=``;let r=l+1;for(;r<n&&c.charCodeAt(r)!==93&&c.charCodeAt(r)!==91;)c.charCodeAt(r)===92&&r++,r++;c.charCodeAt(r)===93&&(e=c.slice(l+1,r),t=e?`full`:`collapsed`,e||=d,i.definitions.has(Fr(e))?l=r+1:e=``),l<=r&&Ma(l,c.charCodeAt(r)===93?r+1:r)}e&&i.definitions.has(Fr(e))&&(f={label:Pr(e),identifier:Fr(e),referenceType:t},p=!0)}}else e.map&&c.charCodeAt(l)===40&&Ma(l,Fa(c,l,n));if(f&&!t&&!m&&Ha(e,o,s,i)&&(f=void 0),f){u<g&&ja(e,u,g,r);let n=F(m?N.FootnoteReference:t?p?N.ImageReference:N.Image:p?N.LinkReference:N.Link,I(e,g),I(e,l),r);P.extra[n]=f,m||(za(e,o,s,n,i,!t,!1,!1),t&&!i.config.mdx&&(P.value[n]=Ra(n),P.child[n]=P.last[n]=0)),g=u=l;continue}}t||_++}if(l===93&&_&&_--,l===60&&!i.config.mdx){let t=ka(c,g,n),i=t?.end??Oa(c,g,n);if(i>g){u<g&&ja(e,u,g,r);let n=F(t?N.Link:N.Html,I(e,g),I(e,i),r);t?(P.extra[n]={url:t.url,title:null},ja(e,g+1,i-1,n,t.value)):P.value[n]=ha(c.slice(g,i),ji),g=u=i;continue}t||Ma(g,Ta)}g++}}for(;o&&n>u&&M(c.charCodeAt(n-1));)n--;u<n&&ja(e,u,n,r),ca(e,r,l,Mi,!o||Bi===126),Mi=l,La(r)}function Ba(e){for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(M(n)||n===10||n===13)return!0}return!1}function Va(e){let t=``,n=0;for(let r=0;r+1<e.length;r++)e.charCodeAt(r)===92&&e.charCodeAt(r+1)===124&&(t+=e.slice(n,r),n=r+1,r++);return t+e.slice(n)}function Ha(e,t,n,r){let i=e.source;for(let a=t;a<n;a++){let t=i.charCodeAt(a);if((t===123||t===60)&&r.inline){let t=r.inline(e,a,n,r);if(t){a=t.end-1;continue}}if(t===92){a++;continue}if(t===96||t===36&&Vi){let e=a+1;for(;i.charCodeAt(e)===t;)e++;let r=Sa(i,e,n,e-a,t);if(r>=0){a=r+e-a-1;continue}a=e-1}if(t===60){let e=ka(i,a,n)?.end??Oa(i,a,n);if(e>a){a=e-1;continue}}if(t===33&&i.charCodeAt(a+1)===91){let t=va(i,a+2,n,e,r);if(t>=0){if(Ha(e,a+2,t,r))return!0;let o=Ua(i,a+2,t,n,r);a=(o<0?t+1:o)-1;continue}}if(t!==91)continue;let o=va(i,a+1,n,e,r);if(!(o<0)){if(i.charCodeAt(a+1)===94&&o>a+2&&r.config.gfm&&r.footnotes.has(Fr(i.slice(a+2,o)))&&!Ba(i.slice(a+2,o)))a=o;else if(Ua(i,a+1,o,n,r)>=0)return!0}}return!1}function Ua(e,t,n,r,i,a=!0){let o=n+1,s=e.charCodeAt(o),c=a&&i.definitions.size>0;if(s===91){let a=o+1;for(;a<r&&e.charCodeAt(a)!==93&&e.charCodeAt(a)!==91;)e.charCodeAt(a)===92&&a++,a++;return e.charCodeAt(a)===93?a>o+1?i.definitions.has(Fr(e.slice(o+1,a)))?a+1:-1:c&&i.definitions.has(Fr(e.slice(t,n)))?a+1:-1:-1}if(s===40){let t=_a(e,o,r);if(t>=0)return t}return c&&i.definitions.has(Fr(e.slice(t,n)))?o:-1}var Wa=3,Ga=4,Ka=4,qa=6,Ja=3,Ya=3,Xa=2,Za=9,Qa=4,$a=999,eo=100,to=1024,no=1,ro=!1,io=!1,ao=!1,oo=0,so,co,lo=!1,uo,fo=0,po=new Int32Array(to),mo=new Int32Array(to),ho=[],go,_o=0,vo=0;function yo(){ao=!1,go=void 0,oo=0,so=void 0,co=void 0,uo=void 0,fo=0,ho.length=0}function bo(e,t){if(fo===po.length){let e=new Int32Array(fo*2);e.set(po),po=e;let t=new Int32Array(fo*2);t.set(mo),mo=t}ho[fo]=e,po[fo]=t,mo[fo++]=0}function xo(e,t=0){let n=[],r=0;for(;r<Lr&&Ir[r]<t;)r++;for(let t=r;t<Lr;t++){let r=Ir[t],i=t+1<Lr?Ir[t+1]:e.length,a=i;e.charCodeAt(a-1)===10&&a--,e.charCodeAt(a-1)===13&&a--,n.push({start:r,end:a,next:i})}return n}function L(e,t){let n=t.start,r=t.padding??0;for(;n<t.end&&M(e.charCodeAt(n));)r+=e.charCodeAt(n)===9?To(e,n):1,n++;return{start:n,indent:r}}function R(e,t){return L(e,t).start===t.end}function So(e,t,n,r){if(R(e,t[0])&&M(e.charCodeAt(n-1)))return!1;for(let n=1;n<t.length&&t[n].start<r;n++)if(R(e,t[n]))return!1;return!0}function Co(e,t,n){for(;n>t&&M(e.charCodeAt(n-1));)n--;return n}function wo(e,t,n){let r=t.start,i=t.padding??0;if(i>=n)return{...t,padding:i-n};for(;r<t.end&&i<n&&M(e.charCodeAt(r));)i+=e.charCodeAt(r)===9?To(e,r):1,r++;return{start:r,end:t.end,next:t.next,padding:Math.max(0,i-n),lazy:t.lazy}}function To(e,t){let n=t;for(;n&&e.charCodeAt(n-1)!==10&&e.charCodeAt(n-1)!==13;)n--;let r=0;for(let i=n;i<t;i++)r+=e.charCodeAt(i)===9?sr-r%sr:1;return sr-r%sr}function Eo(e,t,n=ro){let r=L(e,t);if(!n&&r.indent>Wa)return!1;let i=e.charCodeAt(r.start);if(i!==42&&i!==45&&i!==95)return!1;let a=0;for(let n=r.start;n<t.end;n++){let t=e.charCodeAt(n);if(t===i)a++;else if(!M(t))return!1}return a>=Ja}function Do(e,t,n=ro){let r=L(e,t);if(!n&&r.indent>Wa||e.charCodeAt(r.start)!==35)return;let i=r.start;for(;e.charCodeAt(i)===35;)i++;let a=i-r.start;if(a>qa||i<t.end&&!M(e.charCodeAt(i)))return;for(;M(e.charCodeAt(i));)i++;let o=i,s=Co(e,o,t.end),c=s;for(;c>o&&e.charCodeAt(c-1)===35;)c--;return(c===o||c<s&&M(e.charCodeAt(c-1)))&&(s=Co(e,o,c)),{start:r.start,content:o,end:s,depth:a}}function Oo(e,t,n=ro){let r=L(e,t);if(!n&&r.indent>Wa)return 0;let i=e.charCodeAt(r.start);if(i!==45&&i!==61)return 0;let a=r.start;for(;e.charCodeAt(a)===i;)a++;if(a===r.start)return 0;for(;M(e.charCodeAt(a));)a++;return a===t.end?i===61?1:2:0}function ko(e,t,n=ro){let r=L(e,t);if(!n&&r.indent>Wa)return;let i=e.charCodeAt(r.start),a=i===36;if(i!==96&&i!==126&&!(a&&io))return;let o=r.start;for(;e.charCodeAt(o)===i;)o++;if(!(o-r.start<(a?Xa:Ya))){if(i!==126){for(let n=o;n<t.end;n++)if(e.charCodeAt(n)===i)return}return{start:r.start,content:o,char:i,length:o-r.start,indent:r.indent}}}function Ao(e,t,n=ro){let r=L(e,t);if(ao||!n&&r.indent>Wa)return;let i=r.start,a=e.charCodeAt(i),o=0,s=!1;if(kr(a)){for(s=!0;kr(e.charCodeAt(i))&&i-r.start<Za;)o=o*10+e.charCodeAt(i++)-48;if(e.charCodeAt(i)!==46&&e.charCodeAt(i)!==41)return;i++}else if(a===42||a===43||a===45)i++;else return;if(i<t.end&&!M(e.charCodeAt(i)))return;let c=i,l=0;for(;i<t.end&&M(e.charCodeAt(i));)l+=e.charCodeAt(i)===9?To(e,i):1,i++;let u=0,d=i===t.end;return(!n&&l>Qa||d)&&(u=e.charCodeAt(c)===9?To(e,c)-1:0,i=c<t.end?c+1:c,l=1),{start:r.start,content:i,prefix:d?c:i,indent:r.indent+c-r.start+(l||1),ordered:s,number:o,char:e.charCodeAt(c-1),padding:u}}function jo(e,t,n=ro){let r=L(e,t);if(ao||!n&&r.indent>Wa||e.charCodeAt(r.start)!==62)return-1;let i=r.start+1;return M(e.charCodeAt(i))&&i++,i}var Mo=/* @__PURE__ */ new Set(/* @__PURE__ */ `address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`)),No=/<\/(?:script|pre|style|textarea)>/i;function Po(e,t,n){let r=L(e,t),i=r.start;if(r.indent>Wa||e.charCodeAt(i)!==60)return;if(e.startsWith(`<!--`,i))return{start:i,until:`-->`};if(e.startsWith(`<?`,i))return{start:i,until:`?>`};if(e.startsWith(`<![CDATA[`,i))return{start:i,until:`]]>`};if(e.charCodeAt(i+1)===33&&Ar(e.charCodeAt(i+2)))return{start:i,until:`>`};let a=i+1;e.charCodeAt(a)===47&&a++;let o=a;for(;Ar(e.charCodeAt(a))||kr(e.charCodeAt(a));)a++;let s=e.slice(o,a).toLowerCase();if(M(e.charCodeAt(a))||e.charCodeAt(a)===62||e.charCodeAt(a)===47&&e.charCodeAt(a+1)===62||a===t.end){if(e.charCodeAt(i+1)!==47&&e.charCodeAt(a)!==47&&(s===`script`||s===`pre`||s===`style`||s===`textarea`))return{start:i,until:No};if(Mo.has(s))return{start:i,until:null}}if(!n){let n=Oa(e,i,t.end,!0);if(n>0&&Co(e,n,t.end)===n)return{start:i,until:null}}}function Fo(e,t){let n=e.source;return e.interrupt?.(t)||R(n,t)||Eo(n,t)||Do(n,t)||ko(n,t)?!0:!e.config.mdx&&!!Po(n,t,!0)}function Io(e,t){let n=e.source;if(Fo(e,t)||jo(n,t)>=0||e.config.gfm&&Ro(n,t))return!0;let r=Ao(n,t);return!!r&&(!r.ordered||n.charCodeAt(r.start)===49&&(n.charCodeAt(r.start+1)===46||n.charCodeAt(r.start+1)===41))&&!R(n,{start:r.content,end:t.end,next:t.next,padding:r.padding})}function Lo(e,t){return!!e.interrupt?.(t)&&(e.continuationEnd?.(t)??t.end)>t.end}function Ro(e,t){let n=L(e,t);if(ao||!ro&&n.indent>Wa||!e.startsWith(`[^`,n.start))return;let r=n.start+2;for(;r<t.end;r++){let t=e.charCodeAt(r);if(M(t)||t===91)return;if(t===93)break;t===92&&e.charCodeAt(r+1)<or&&Or(e.charCodeAt(r+1))&&r++}if(!(r===n.start+2||r-n.start>$a+2||e.charCodeAt(r)!==93||e.charCodeAt(r+1)!==58))return{end:r+2,raw:e.slice(n.start+2,r)}}function zo(){return oo>0}function Bo(e,t){let n=e.source;return jo(n,t)>=0||!!Ao(n,t)&&!Eo(n,t)||!!e.config.gfm&&!!Ro(n,t)}function Vo(e,t,n,r){let i=e.source,a=n<t.length?t[n]:r;return!a||a===so||a.lazy||!$o(i,a)&&!Ho(i,a)?!1:R(i,a)?a.start===a.end&&!a.padding&&a.end===i.length:Bo(e,a)}function Ho(e,t){let n=uo;if(!n||!t||t.lazy)return!1;let r=1,i=n.length-1;for(;r<=i;){let a=r+i>>1,o=n[a];if(o.next<t.next)r=a+1;else if(o.next>t.next)i=a-1;else return!o.lazy&&!R(e,o)}return!1}function Uo(e,t,n,r,i,a,o,s){if(!uo)return!1;let c=e.source,l=o?Ho(c,t[n])&&o.prefix:Vo(e,t,n,s)?Ho(c,t[n]??s)&&(t[n]??s).start:n>r+1&&$o(c,t[n-1])&&Ho(c,t[n-1])&&t[n-1].end;if(l===!1)return!1;if(P.end[i]<=t[r].end)for(let e=r+1;e<n;e++)t[e].end<l&&R(c,t[e])&&(P.a[i]=1);return P.end[i]=l,P.end[a]=l,!0}function Wo(e,t){return e.config.mdx||!Po(e.source,t,!1)?1:t.next===t.end?0:2}function Go(e,t,n){let r=e.source,i=!1;for(let a=0;a<eo;a++){let a=jo(r,t),o=a<0?Ao(r,t):void 0,s=a<0&&!o&&e.config.gfm?Ro(r,t):void 0;if(a<0&&!o&&!s)break;i=!!o;let c=o?{start:o.content,end:t.end,next:t.next,padding:o.padding}:s?{start:s.end,end:t.end,next:t.next}:{start:a,end:t.end,next:t.next,padding:Ko(r,a)};if(n.start===t.start)n={...c,end:n.end,next:n.next};else if(o||s){let e=o?o.indent:Ka;if(L(r,n).indent<e)return{line:n,lazy:!0,list:i};n=wo(r,n,e)}else{let e=jo(r,n);if(e<0)return{line:n,lazy:!0,list:i};n={start:e,end:n.end,next:n.next,padding:Ko(r,e)}}t=c}return{line:n,lazy:!1,list:i}}function Ko(e,t){return e.charCodeAt(t-1)===9?To(e,t-1)-1:0}function qo(e,t,n,r,i){let a=e.source,o=i.start;for(;o<i.end&&a.charCodeAt(o)!==45;)o++;if(o===i.end)return!1;let s=Zo(e,t,n,i);if(s.lazy)return!1;let c=Zo(e,t,n,r).line;return R(a,c)||e.interrupt?.(c)?!1:!!cs(e,[c,s.line],0)}function Jo(e,t,n,r){let i=Zo(e,t,n,r);return!i.lazy&&!R(e.source,i.line)&&!Io(e,i.line)&&!Ao(e.source,i.line)}function Yo(e,t){let n=t.start;for(;M(e.charCodeAt(n));)n++;let r=e.charCodeAt(n);return r===62||r===45||r===42||r===43||r===91||r>=48&&r<=57}function Xo(e,t,n,r){let i=e.source;if(!r){if(t!==n){let r=Go(e,t,t);if(r.list&&R(i,r.line)&&!Go(e,t,n).lazy)return t}return n}return Io(e,Go(e,t,n).line)?n:t}function Zo(e,t,n,r){if(t&&t!==n&&Yo(e.source,t)){let i=Go(e,t,n);if(!i.lazy&&i.line.start!==n.start){let n=Go(e,t,r);return n.lazy||!Yo(e.source,i.line)?n:Go(e,i.line,n.line)}}return Go(e,n,r)}function Qo(e,t,n=!1,r=0,i=!1){let a=e.source,o=t;lo=!1;for(let s=0;s<eo;s++){let c=s===0&&r===3;if(R(a,o))return c?3:0;if(!e.config.mdx&&L(a,o).indent>=Ga)return s===0&&!i&&r!==1?3:0;if(Eo(a,o)||Do(a,o)||ko(a,o)||e.interrupt?.(o)||!e.config.mdx&&Po(a,o,!1))return 0;let l=jo(a,o),u=l<0?Ao(a,o):void 0;if(u&&(lo=!0),u&&(n||c)&&(R(a,{start:u.content,end:t.end,next:t.next})||u.ordered&&(a.charCodeAt(u.start)!==49||a.charCodeAt(u.start+1)!==46&&a.charCodeAt(u.start+1)!==41)))return 1;let d=l>=0?l:u?.content;if(d===void 0)return 1;o={start:d,end:t.end,next:t.next}}return 0}function $o(e,t){for(let n=t.start-1;n>=0&&e.charCodeAt(n)!==10&&e.charCodeAt(n)!==13;n--)if(e.charCodeAt(n)===62)return!0;return!1}function es(e,t,n=!0){let r=!0;for(let e=0;e<t.length;e++)if((!n||e>0)&&t[e].padding||e>0&&t[e].start!==t[e-1].next){r=!1;break}if(r&&t.length){let r=t[0],i=n?L(e,r).start:r.start;return{source:e.slice(i,t[t.length-1].end),base:i}}if(t.length===1&&(n||!t[0].padding)){let r=t[0],i=n?L(e,r).start:r.start;return{source:e.slice(i,r.end),base:i}}let i=0;for(let r=0;r<t.length;r++){let a=t[r],o=n&&r===0?L(e,a).start:a.start;i+=a.end-o+(n&&r===0?0:a.padding??0)+(r+1<t.length?a.next-a.end:0)}let a=new Int32Array(i+1),o=``,s=0;for(let r=0;r<t.length;r++){let i=t[r],c=n&&r===0?L(e,i).start:i.start,l=r+1<t.length?i.next:i.end;if((!n||r>0)&&i.padding){o+=` `.repeat(i.padding);for(let e=0;e<i.padding;e++)a[s++]=c-1}o+=e.slice(c,l);for(let e=c;e<l;e++)a[s++]=e;a[s]=l}return{source:o,base:0,map:a}}function ts(e,t,n){bo(es(e.source,n),t)}function ns(e,t,n,r,i=!1){let a=e.source,o=t[n],s=L(a,o);if(!i&&!ro&&s.indent>Wa||a.charCodeAt(s.start)!==91)return 0;for(let e=s.start+1;e<o.end;e++){let t=a.charCodeAt(e);if(t===92)e++;else{if(t===91)return 0;if(t===93){if(a.charCodeAt(e+1)!==58)return 0;break}}}if(cs(e,t,n))return 0;let c=n+1;if(t===go&&n>=_o&&n<vo)c=vo;else{for(go=t,_o=n;c<t.length&&!R(a,t[c])&&!Io(e,t[c])&&!Oo(a,t[c])&&!cs(e,t,c,!0);)c++;vo=c}for(let i=2;;i*=2){let a=rs(e,t,n,Math.min(c,n+i),c,r,s);if(a>=0)return a}}function rs(e,t,n,r,i,a,o){let s=e.source,c=t[n],l=es(s,t.slice(n,r),!1),u=l.source,d=r<i,f=o.start-c.start+(c.padding??0)+1,p=f;for(;f<u.length&&f-p<=$a&&u.charCodeAt(f)!==93&&u.charCodeAt(f)!==91;)u.charCodeAt(f)===92&&f++,f++;if(d&&f+1>=u.length)return-1;if(f-p>$a||f===p||u.charCodeAt(f)!==93||u.charCodeAt(f+1)!==58)return 0;let m=u.slice(p,f),h=Fr(m);if(!h)return 0;for(f+=2;M(u.charCodeAt(f));)f++;if(u.charCodeAt(f)===10||u.charCodeAt(f)===13)for(u.charCodeAt(f++)===13&&u.charCodeAt(f)===10&&f++;M(u.charCodeAt(f));)f++;if(d&&!is(u,f))return-1;let g=ua(u,f,u.length);if(!g||g.end===f)return 0;f=g.end;let _=f;for(;M(u.charCodeAt(f));)f++;let v=null,y=f,b=u.charCodeAt(f)===10||u.charCodeAt(f)===13;if(b){for(u.charCodeAt(f++)===13&&u.charCodeAt(f)===10&&f++;M(u.charCodeAt(f));)f++;if(d&&f>=u.length)return-1}if(f>_){let e=fa(u,f,u.length);if(e){let t=e.end;for(;M(u.charCodeAt(t));)t++;if(d&&t>=u.length)return-1;if(t===u.length||u.charCodeAt(t)===10||u.charCodeAt(t)===13)v=e.value||null,y=t;else if(!b)return 0}else{let e=u.charCodeAt(f);if(d&&(e===34||e===39||e===40))return-1;if(!b&&f<u.length)return 0}}else if(f<u.length)return 0;let x=I(l,y),S=1;for(;n+S<t.length&&t[n+S-1].end<x;)S++;if(S>i-n)return 0;let ee={identifier:h,label:Pr(m),url:g.value,title:v},te=F(N.Definition,o.start,x,a);return P.extra[te]=ee,e.definitions.has(h)||e.definitions.set(h,ee),S}function is(e,t){for(;t<e.length;t++){let n=e.charCodeAt(t);if(n===10||n===13)return!0}return!1}function as(e,t){let n=L(e,t).start,r=Co(e,n,t.end);if(e.charCodeAt(n)===124&&n++,e.charCodeAt(r-1)===124){let t=0;for(let i=r-2;i>=n&&e.charCodeAt(i)===92;i--)t++;t&1||r--}let i=[],a=n;for(let t=n;t<r;t++)e.charCodeAt(t)===92&&(e.charCodeAt(t+1)===124||e.charCodeAt(t+1)===92)?t++:e.charCodeAt(t)===124&&(i.push([a,t]),a=t+1);return i.push([a,r]),i}function os(e,t){let n=L(e,t);if(!ro&&n.indent>Wa)return;let r=e.charCodeAt(n.start);if(r!==45&&r!==58&&r!==124)return;let i=as(e,t),a=[];for(let t of i){let n=t[0],r=Co(e,n,t[1]);for(;M(e.charCodeAt(n));)n++;let i=e.charCodeAt(n)===58;i&&n++;let o=n;for(;e.charCodeAt(n)===45;)n++;if(n===o)return;let s=e.charCodeAt(n)===58;if(s&&n++,n!==r)return;a.push(i?s?`center`:`left`:s?`right`:null)}return a}function ss(e,t,n){let r=e.source,i=F(N.TableRow,L(r,t).start,t.end,n),a=as(r,t);for(let e=0;e<a.length;e++){let[n,o]=a[e],s=F(N.TableCell,e===0?L(r,t).start:n-1,e+1===a.length?t.end:o,i),c=n;for(;M(r.charCodeAt(c));)c++;let l=Co(r,c,o);bo({source:r.slice(c,l),base:c,table:!0},s)}}function cs(e,t,n,r=!1){if(!e.config.gfm||!t[n+1]||t[n+1].lazy||t[n]===co)return;let i=e.source,a=os(i,t[n+1]);if(!a)return;let o=t[n];if(!ro&&L(i,o).indent>=Ga||Ao(i,o)&&(!r||Io(e,o))||jo(i,o)>=0||Ro(i,o)||!r&&!ro&&Po(i,o,!1)||Oo(e.source,t[n+1])||Ao(e.source,t[n+1]))return;let s=as(e.source,t[n]);if(s.length===a.length&&!(s.length===1&&s[0][0]>s[0][1]))return a}function ls(e,t){let n=P.last[e];for(;n&&(P.kind[n]===N.Blockquote||P.kind[n]===N.List||P.kind[n]===N.ListItem||P.kind[n]===N.FootnoteDefinition);)n=P.last[n];return!!n&&P.kind[n]===N.Table&&P.end[n]===t}function us(e,t,n,r,i){let a=cs(e,t,n,i);if(!a||!ro&&Po(e.source,t[n],!1))return 0;let o=e.source,s=F(N.Table,L(o,t[n]).start,t[n+1].end,r);P.extra[s]=a,ss(e,t[n],s);let c=n+2;for(;c<t.length&&!t[c].lazy&&!Io(e,t[c])&&!e.esm?.(t[c])&&!Ao(o,t[c])&&(ro||L(o,t[c]).indent<Ga)&&(e.config.mdx||!Po(o,t[c],!1));c++)ss(e,t[c],s),P.end[s]=t[c].end;return c-n}function ds(e,t,n){let r=e.config.frontmatter;if(!r||!t.length)return 0;let i=e.source,a=t[0],o=i.charCodeAt(a.start),s=o===45&&r.yaml,c=o===43&&r.toml;if(!s&&!c||Co(i,a.start,a.end)-a.start!==3||i.charCodeAt(a.start+1)!==o||i.charCodeAt(a.start+2)!==o)return 0;for(let e=1;e<t.length;e++){let r=t[e];if(Co(i,r.start,r.end)-r.start!==3||i.charCodeAt(r.start)!==o||i.charCodeAt(r.start+1)!==o||i.charCodeAt(r.start+2)!==o)continue;let c=F(s?N.Yaml:N.Toml,a.start,r.end,n);return P.value[c]=i.slice(a.next,e===1?a.next:t[e-1].end),e+1}return ao=!0,0}function fs(e,t,n,r,i,a){let o=e.source,s=t[n],c=n+1,l=!1,u=[];for(;c<t.length;c++){let e=t[c];if(e.lazy)break;let n=L(o,e),r=n.start;for(;o.charCodeAt(r)===i.char;)r++;if((ro||n.indent<=Wa)&&r-n.start>=i.length&&Co(o,r,e.end)===r){l=!0;break}u.push(wo(o,e,i.indent))}let d=l?t[c]:t[Math.max(n,c-1)],f=!t[c]?.lazy&&a&&Bo(e,a),p=P.kind[r]===N.Root||!!f||(P.kind[r]===N.ListItem||P.kind[r]===N.FootnoteDefinition)&&d.next===o.length&&!oo,m=!l&&c>n+1&&d.start===d.end&&d.end===o.length&&!d.padding,h=i.char===36,g=F(h?N.Math:N.Code,i.start,m?t[c-2].next:l||!p?d.end:d.next,r);m&&(P.end[r]=Math.max(P.end[r],d.end));let _=i.content;for(;M(o.charCodeAt(_));)_++;let v=_;for(;v<s.end&&!M(o.charCodeAt(v));)v++;let y=v;for(;M(o.charCodeAt(y));)y++;P.extra[g]=h?_===s.end?null:Pr(o.slice(_,s.end)):{lang:_===s.end?null:Pr(o.slice(_,v)),meta:y===s.end?null:Pr(o.slice(y,s.end))},P.value[g]=u.length?es(o,u,!1).source:``;let b=u[u.length-1];if(!l&&b&&(!p&&R(o,d)||b.start===b.end&&b.end===o.length)){let e=P.value[g];e.charCodeAt(e.length-1)===10?P.value[g]=e.slice(0,e.charCodeAt(e.length-2)===13?-2:-1):e.charCodeAt(e.length-1)===13&&(P.value[g]=e.slice(0,-1))}let x=u[0];return x&&x.start===x.end&&!x.padding&&o.charCodeAt(s.end)===13&&s.next===s.end+1&&P.value[g].charCodeAt(0)===10&&(P.value[g]=P.value[g].slice(1)),(l||p)&&u.length>1&&b.start===b.end&&!b.padding&&o.charCodeAt(b.end)===10&&P.value[g].charCodeAt(P.value[g].length-1)===13&&(P.value[g]=P.value[g].slice(0,-1)),c-n+ +!!l}function ps(e,t,n,r,i,a){let o=e.source,s=t[n],c=n,l=!1;for(;c<t.length&&!(c>n&&(s.lazy||t[c].lazy)||!i.until&&R(o,t[c]));c++)if(i.until){let e=o.slice(t[c].start,t[c].end);if(typeof i.until==`string`?e.includes(i.until):i.until.test(e)){l=!0,c++;break}}let u=t[c-1],d=a&&Bo(e,a),f=i.until&&!l&&(P.kind[r]===N.Root||d||u.next===o.length)&&c===t.length,p=F(N.Html,s.start,f?u.next:u.end,r),m=t.slice(n,c);return P.value[p]=es(o,m,!1).source,f&&(P.value[p]+=o.slice(u.end,u.next)),c-n}function ms(e,t,n,r,i,a,o,s,c){let l=e.source,u=t[n],d=i.raw,f=Fr(d),p=i.end;for(;M(l.charCodeAt(p));)p++;let m=[{start:p,end:u.end,next:u.next}],h=n+1,g=n,_=Qo(e,m[0],o>0),v=lo,y=m[0],b,x=!1,S;for(;h<t.length;h++){let n=L(l,t[h]),r=n.indent;if(n.start===t[h].end)m.push(t[h]),_!==3&&(_=0),x=!1;else if(!t[h].lazy&&(r>=Ka||s&&r===0)){let n=r>=Ka?wo(l,t[h],Ka):t[h];if(x?(x=Jo(e,b,y,n),x||(S=n)):e.config.gfm&&m[m.length-1]!==S&&qo(e,b,y,m[m.length-1],n)&&(x=!0),!x){let t=Xo(e,y,n,_===1);t!==y&&(b=y,y=t)}m.push(n),g=h,_=x?0:Qo(e,n,_===1,_,v),v||=lo}else if(_===1&&(!Io(e,t[h])&&!Ao(l,t[h])||Lo(e,t[h]))){let n=Wo(e,t[h]);if(n===0)break;if(m.push({...t[h],lazy:!0}),g=h,n===2){h++;break}}else break}let ee=t[g].end;h>g+1&&$o(l,t[h-1])&&(ee=t[h-1].end),Vo(e,t,h,c)&&(ee=(t[h]??c).start);let te=F(N.FootnoteDefinition,a,ee,r);P.extra[te]={identifier:f,label:Pr(d)},e.footnotes.add(f);let ne=uo;uo??=m;let re=vs(e,m,te,!1,o,t[h]??c);return uo=ne,re<m.length&&(h=n+re,P.end[te]=t[h-1].end),cs(e,t,h)&&ls(te,t[h-1].end)&&(co=t[h]),P.last[te]&&(P.end[te]=Math.max(P.end[te],P.end[P.last[te]])),h-n}function hs(e,t,n){for(let r=P.child[n];r;r=P.next[r]){let n,i;if(P.kind[r]===N.Mdx&&P.extra[r]?.type===`mdxJsxFlowElement`)n=P.a[r],i=P.b[r];else if(P.kind[r]===N.FootnoteDefinition){let t=P.child[r]?P.start[P.child[r]]:P.end[r];for(let n=P.start[r];n<t;n++)if(e.charCodeAt(n)===10||e.charCodeAt(n)===13)return!0;n=P.start[r],i=P.end[r]}else continue;for(let i=P.child[r];i;i=P.next[i]){for(let r of t)if(r.end>n&&r.end<=P.start[i]&&R(e,r))return!0;n=P.end[i]}for(let a of t)if(a.end>n&&(P.kind[r]===N.FootnoteDefinition?a.end<a.next&&a.next<=i:a.end<=i)&&R(e,a))return!0;if(hs(e,t,r))return!0}return!1}function gs(e,t,n,r,i){let a=e.source,o=n,s=0,c=!1,l=!1,u,d,f;for(;o<t.length;o++){let p=t[o],m=jo(a,p);if(m>=0){let t={start:m,end:p.end,next:p.next,padding:Ko(a,m),lazy:p.lazy};if(l&&d?(l=Jo(e,f,d,t),l||(u=t)):e.config.gfm&&d&&i[i.length-1]!==u&&qo(e,f,d,i[i.length-1],t)&&(l=!0),!l){let n=Xo(e,d??t,t,s===1);n!==d&&(f=d,d=n)}i.push(t),s=l?0:Qo(e,t,s===1||o===n&&r>0,s,c),c||=lo}else if(s===1&&(!Io(e,p)&&!Ao(a,p)||Lo(e,p))){let t=Wo(e,p);if(t===0)break;if(i.push({...p,lazy:!0}),t===2){o++;break}}else break}return o}function _s(e,t,n,r){let i=t[n],a=P.last[r];if(!a||!$o(e,i)||!(P.kind[a]===N.Blockquote&&i.next===e.length&&i.end===i.next&&i.start===i.end&&!i.padding&&n>0&&!R(e,t[n-1])||P.kind[a]===N.List||P.kind[a]===N.FootnoteDefinition))return;let o=P.kind[a]===N.List?P.last[a]:0;if(o&&Ho(e,i)){let r=P.last[o];n>0&&R(e,t[n-1])&&(r?P.end[r]:P.start[o])<t[n-1].end&&(P.a[o]=1),P.end[o]=i.end}else o&&n>0&&R(e,t[n-1])&&P.end[o]<t[n-1].end&&(P.extra[a]=!0);P.end[a]=i.end}function vs(e,t,n,r=!1,i=0,a){ro=!!e.config.mdx,io=!!e.config.math;let o=n,s=e.source,c=r?ds(e,t,n):0,l=i===2?1:i,u=!1,d=0;for(;c<t.length;){n=e.flowParent?.(o)??o;let r=t[c];if(R(s,r)){_s(s,t,c,n),l!==3&&(l=0),c++;continue}let i=L(s,r);if(e.flow){let n=e.flow(e,t,c,o,a);if(n){if(l=0,c+=n,t[c]?.lazy)return c;continue}}let f=Do(s,r);if(f){let t=F(N.Heading,f.start,r.end,n);P.a[t]=f.depth,ts(e,t,[{start:f.content,end:f.end,next:f.end}]),l=0,c++;continue}let p=ko(s,r);if(p){if(c+=fs(e,t,c,n,p,a),t[c]?.lazy)return c;l=0;continue}if(!r.lazy&&Eo(s,r)){F(N.ThematicBreak,i.start,r.end,n),l=0,c++;continue}let m=r.start<d;if((m?-1:jo(s,r))>=0){let o=P.last[n];if(o&&P.kind[o]===N.List&&$o(s,r)){let e=P.last[o];c>0&&R(s,t[c-1])&&P.child[e]&&P.end[e]<=t[c-1].start&&(P.extra[o]=!0),P.end[o]=r.start}let d=[],f=gs(e,t,c,l,d),p=F(N.Blockquote,i.start,t[f-1].end,n);oo++;let m=vs(e,d,p,!1,l,t[f]??a);if(oo--,m<d.length&&(f=c+m,P.end[p]=t[f-1].end),cs(e,t,f)&&ls(p,t[f-1].end)&&(co=t[f]),t[f]?.lazy)return f;let h=P.last[p];(Vo(e,t,f,a)||h&&(t[f]??a)&&(t[f]??a)!==so&&P.end[h]>t[f-1].end)&&(P.end[p]=(t[f]??a).start),P.last[p]&&(P.end[p]=Math.max(P.end[p],P.end[P.last[p]])),u=f<t.length&&!R(s,t[f]),l=0,c=f;continue}let h=e.config.gfm&&!m&&Ro(s,r);if(h){if(c+=ms(e,t,c,n,h,i.start,l,P.kind[o]===N.FootnoteDefinition,a),t[c]?.lazy)return c;l=0;continue}let g=us(e,t,c,n,l===1||l===2);if(g){c+=g,l=0;continue}let _=r.lazy||m?void 0:Ao(s,r);if(_&&l&&(R(s,{start:_.content,end:r.end,next:r.next})||_.ordered&&(s.charCodeAt(_.start)!==49||s.charCodeAt(_.start+1)!==46&&s.charCodeAt(_.start+1)!==41))&&(_=void 0),_){let i=F(N.List,_.start,r.end,n);P.a[i]=+!!_.ordered,P.b[i]=_.number;let o=c,d=!1;for(;o<t.length;){let n=Ao(s,t[o]);if(!n||n.ordered!==_.ordered||n.char!==_.char||Eo(s,t[o]))break;let r=o,c=[{start:n.content,end:t[o].end,next:t[o].next,padding:n.padding}];o++;let u=Qo(e,c[0],l>0),f=lo,p=c[0],m,h=!1,g=r,v=!1,y=!1,b;for(;o<t.length;o++){let i=t[o];if(R(s,i)){if(g===r&&R(s,c[0])){let n=o+1;for(;n<t.length&&R(s,t[n]);)n++;let r=n<t.length?Ao(s,t[n]):void 0;r&&r.char===_.char&&r.ordered===_.ordered?(Ho(s,t[n])||(d=!0),o=n):Vo(e,t,n,a)&&(o=n);break}c.push(wo(s,i,n.indent)),h=!0,u!==3&&(u=0),y=!1;continue}let v=L(s,i);if(v.indent<n.indent&&Ao(s,i)&&!i.lazy)break;if(!i.lazy&&v.indent>=n.indent){let t=wo(s,i,n.indent);if(y?(y=Jo(e,m,p,t),y||(b=t)):e.config.gfm&&c[c.length-1]!==b&&qo(e,m,p,c[c.length-1],t)&&(y=!0),!y){let n=Xo(e,p,t,u===1);n!==p&&(m=p,p=n)}c.push(t),g=o,u=y?0:Qo(e,t,u===1||l>0,u,f),f||=lo,h=!1}else if(u===1&&(i.lazy||!Io(e,i)||Lo(e,i))){let t=Wo(e,i);if(t===0)break;if(c.push({...i,lazy:!0}),g=o,t===2){o++;break}}else break}let x=F(N.ListItem,n.start,t[g].end,i);P.a[x]=+!!v;let S=fo,ee=o<t.length?Ao(s,t[o]):void 0,te=so;ee&&ee.ordered===_.ordered&&ee.char===_.char&&!Eo(s,t[o])&&(so=t[o]);let ne=vs(e,c,x,!1,l,t[o]??a);so=te,ne<c.length&&(o=r+ne,g=o-1,P.end[x]=t[g].end),cs(e,t,o)&&ls(x,t[o-1].end)&&(co=t[o]),l=0;let re=o<t.length?Ao(s,t[o]):void 0,ie=re&&re.ordered===_.ordered&&re.char===_.char&&!Eo(s,t[o]);if(e.config.gfm){let e=P.child[x];for(;e&&P.kind[e]===N.Definition;)e=P.next[e];if(e&&P.kind[e]===N.Paragraph)for(let t=S;t<fo;t++){if(po[t]!==e)continue;let r=ho[t].source,i=r.charCodeAt(1),a=i===13&&r.charCodeAt(2)===10?3:2,o=a+1;for(;M(r.charCodeAt(o));)o++;r.charCodeAt(0)===91&&(M(i)||i===10||i===13||i===120||i===88)&&r.charCodeAt(a)===93&&o<r.length&&(M(r.charCodeAt(a+1))||r.charCodeAt(a+1)===10||r.charCodeAt(a+1)===13)&&So(s,c,n.content,P.start[e])&&(P.b[x]=i===120||i===88?2:1,mo[t]=a+1,P.a[e]=no);break}}for(let e=P.child[x];e&&P.next[e];e=P.next[e]){let n=P.next[e];for(let i=r;i<g;i++)t[i].end>P.end[e]&&t[i].next<=P.start[n]&&R(s,t[i])&&(v=!0)}if((e.config.mdx||e.config.gfm)&&hs(s,c,x)&&(v=!0),P.a[x]=+!!v,P.last[x]&&(P.end[x]=Math.max(P.end[x],P.end[P.last[x]])),ie&&P.last[x]&&(P.end[P.last[x]]===t[o].start||P.end[P.last[x]]===t[o-1].next)&&(P.end[x]=re.prefix),Uo(e,t,o,g,x,i,ie?re:void 0,a)){if(!ie)break;continue}ie&&h&&P.end[x]<=t[g].end&&(d=!0),P.end[i]=P.end[x],!ie&&o>g+1&&$o(s,t[o-1])&&(P.end[i]=t[o-1].end),!ie&&o>g+2&&$o(s,t[o-1])&&P.end[x]<=t[g].end&&(d=!0),!ie&&Vo(e,t,o,a)&&(P.end[i]=(t[o]??a).start,o>g+1&&P.end[x]<=t[g].end?d=!0:P.end[x]>t[g].end&&(P.end[x]=P.end[i]));let ae=t[o]??a;if(!ie&&ae&&ae!==so&&P.end[x]>t[o-1].end&&ae.start>P.end[i]&&(P.end[i]=P.end[x]=ae.start),!ie)break}if(P.extra[i]=d,t[o]?.lazy)return o;let f=o;for(;f<t.length&&R(s,t[f]);)f++;u=f<t.length&&L(s,t[f]).indent>=Ga,l=0,c=o;continue}let v=P.last[n];if(v&&P.kind[v]===N.Definition&&c>0&&!R(s,t[c-1])){let r=ns(e,t,c,n,!0);if(r){l=2,c+=r;continue}}if(!e.config.mdx&&i.indent>=Ga&&l!==2){let e=[],i=c,a=c;for(;i<t.length&&!(u&&i>c);i++){let n=t[i];if(R(s,n))e.push(wo(s,n,Ga));else if(L(s,n).indent>=Ga)e.push(wo(s,n,Ga)),a=i;else break}let o=a;for(let e=a+1;e<i;e++)L(s,t[e]).indent>=Ga&&(o=e);e.length=o-c+1;let d=F(N.Code,r.start,t[o].end,n);if(P.value[d]=es(s,e,!1).source,R(s,e[e.length-1])){let e=P.value[d];e.charCodeAt(e.length-1)===10?P.value[d]=e.slice(0,e.charCodeAt(e.length-2)===13?-2:-1):e.charCodeAt(e.length-1)===13&&(P.value[d]=e.slice(0,-1))}l=u?0:3,u=!1,c=i;continue}let y=!e.config.mdx&&Po(s,r,l===2&&!r.lazy&&!cs(e,t,c,!0));if(y){if(c+=ps(e,t,c,n,y,a),t[c]?.lazy)return c;l=0;continue}let b=ns(e,t,c,n);if(b){l=2,c+=b;continue}let x=[r];e.continuationEnd&&(d=Math.max(d,e.continuationEnd(r,e,t,c,a)));let S=c+1,ee=0;for(;S<t.length&&(ee=t[S].lazy?0:Oo(s,t[S]),!ee);S++){let n=e.continuation?.(e,t,S,a);if(n)break;if(t[S].start<d){if(n===void 0&&Fo(e,t[S]))break}else{if(n===void 0&&!t[S].lazy&&Io(e,t[S])||t[S].lazy&&!e.config.mdx&&Po(s,t[S],!1)||n===void 0&&t[S].lazy&&Lo(e,t[S]))break;e.continuationEnd&&(d=e.continuationEnd(t[S],e,t,S,a))}if(cs(e,t,S,!0))break;x.push(t[S])}let te=i.start;if(ee&&!Oo(s,r)){let e=P.last[n],r=c-1;for(;e&&P.kind[e]===N.Definition&&r>=0&&!R(s,t[r]);)te=P.start[e],e=P.prev[e],r--}let ne=F(ee?N.Heading:N.Paragraph,te,ee?t[S].end:t[S-1].end,n);if(P.a[ne]=ee,ts(e,ne,x),l=+!ee,c=S+ +!!ee,ee&&t[c]?.lazy)return c}return t.length}function ys(e){for(let t=0;t<fo;t++){let n=ho[t],r=po[t];if(za(n,mo[t],n.source.length,r,e),ho[t]=void 0,P.kind[r]===N.Paragraph&&P.a[r]===no){let t=P.child[r];if(t&&P.kind[t]===N.Text){if(P.value[t]=P.value[t].slice(1),!P.value[t])P.child[r]=P.next[t],P.next[t]?P.prev[P.next[t]]=0:P.last[r]=0;else{if(e.config.positions){let e=Hr(P.start[t]),n={line:e.line,column:e.column+1,offset:e.offset+1};P.extra[t]=P.extra[r]={positionStart:n}}P.start[t]++,P.start[r]=P.start[t]}}}}}function bs(e=[],t=!0){let n={gfm:void 0,mdx:void 0,frontmatter:void 0,positions:t};for(let t of e)t.name===`gfm`?n.gfm=t:t.name===`mdx`?n.mdx=t:t.name===`frontmatter`?n.frontmatter=t:t.name===`headingId`?n.headingId=t:t.name===`math`&&(n.math=t);return n}var xs=class extends Error{name;reason;place;line;column;ruleId;source;url;fatal=!0;constructor(e){super(e.reason,{cause:e.cause}),this.name=e.place?`${e.place.line}:${e.place.column}`:`1:1`,this.reason=e.reason,this.place=e.place,this.line=e.place?.line,this.column=e.place?.column,this.ruleId=e.ruleId,this.source=e.source,this.url=e.url}},Ss=2024,Cs=4,ws=2,Ts=1,Es=2,Ds="Unexpected lazy line in expression in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",Os={ecmaVersion:Ss,sourceType:`module`,locations:!0,preserveParens:!0};function ks(e){let t=0,n=``;for(;;){let r=e.indexOf(`/*`,t);if(r<0)break;let i=e.indexOf(`*/`,r+2);if(i<0)break;n+=e.slice(t,r),t=i+2}t&&(e=n+e.slice(t));for(let t=0;t<e.length;){let n=e.charCodeAt(t);if(Dr(n))t++;else{if(n!==47)return!1;if(e.charCodeAt(t+1)===47){for(t+=2;t<e.length&&e.charCodeAt(t)!==10&&e.charCodeAt(t)!==13;)t++;if(t===e.length)return!1}else return!1}}return!0}function As(e,t,n,r=`micromark-extension-mdx-expression`){throw new xs({reason:e,place:Hr(t),ruleId:n,source:r})}function js(e,t){if(e&&typeof e==`object`){if(typeof e.type==`string`&&typeof e.start==`number`){let n=Hr(t(e.start)),r=Hr(t(e.end));e.start=n.offset,e.end=r.offset,e.loc={start:{line:n.line,column:n.column-1,offset:n.offset},end:{line:r.line,column:r.column-1,offset:r.offset}},e.range=[n.offset,r.offset]}for(let n of Object.keys(e)){if(n===`loc`||n===`range`)continue;let r=e[n];if(Array.isArray(r))for(let e=0;e<r.length;e++)js(r[e],t),r[e]?.type===`ParenthesizedExpression`&&(r[e]=r[e].expression);else r&&typeof r==`object`&&(js(r,t),r.type===`ParenthesizedExpression`&&(e[n]=r.expression))}}}function Ms(e,t,n,r=!1,i=!1,a=!0){let o=[],s=i?`({`:``,c=i?`})`:``,l=s+e+c,u=r&&ks(e);u&&!a&&As(`Unexpected empty expression`,n(0),`unexpected-empty-expression`);let d=t=>n(Math.max(0,Math.min(e.length,t-s.length))),f;try{f=r&&!u?t.acorn.parseExpressionAt(l,0,{...Os,onComment:o}):t.acorn.parse(l,{...Os,onComment:o})}catch(t){return{error:{cause:t,at:d(t.pos)},swallow:t.raisedAt>=s.length+e.length||t.message.startsWith(`Unterminated comment`)}}if(r&&!u){let n=l.slice(f.end,l.length-c.length);if(!ks(n))return{error:{at:d(f.end)},swallow:n.trimStart()[0]===`/`};if(!t.estree&&!i)return{program:f};f={type:`Program`,start:0,end:s.length+e.length,body:[{type:`ExpressionStatement`,expression:f,start:0,end:s.length+e.length}],sourceType:`module`,comments:[]}}if(f.comments=o,(t.estree||i||!r)&&js(f,d),i){let e=f.body[0];(e.type!==`ExpressionStatement`||e.expression.type!==`ObjectExpression`)&&As("Unexpected `"+e.type+"` in code: expected an object spread (`{...spread}`)",e.start,`non-spread`);let t=e.expression.properties;t[1]&&As(`Unexpected extra content in spread: only a single spread is supported`,t[1].start,`spread-extra`),t[0]&&t[0].type!==`SpreadElement`&&As("Unexpected `"+t[0].type+"` in code: only spread elements are supported",t[0].start,`non-spread`)}return{program:f}}function Ns(e,t,n){for(let n=t;n<e.length;n++){let t=e.charCodeAt(n);if(t===125)return n;if(t===123||t===34||t===39||t===96||t===47)break}try{let r=n.acorn.tokenizer(e.slice(t),Os),i=0;for(;;){let e=r.getToken(),n=e.type.label;if(n===`eof`)return-1;if(n===`{`||n==="${")i++;else if(n===`}`){if(!i)return t+e.start;i--}}}catch{return-1}}var Ps=/* @__PURE__ */ new WeakMap;function Fs(e,t){let n=Ps.get(e);return n?(t<n.from||n.at>=0&&t>n.at)&&(n.at=e.source.indexOf(`}`,t)):Ps.set(e,n={from:t,at:e.source.indexOf(`}`,t)}),n.from=t,n.at}function Is(e,t,n,r){let i=e.source,a=t+1,o=0;for(let s=2;;s*=2,a++){for(;a<n;a++){let e=i.charCodeAt(a);if((e===10||e===13&&i.charCodeAt(a+1)!==10)&&++o===s)break}if(a>=n||2*(a-t)>n-t)return;let c=Us(e,t+1,a,!0,!1),l=Ms(c.value,r,c.map,!0,!1,!0);if(l.error&&!l.swallow)return l.error}}var Ls=/* @__PURE__ */ new WeakMap,Rs=``;function zs(e){Rs=e}function Bs(e,t){return e.source.charCodeAt(t)===32&&Rs.charCodeAt(I(e,t))===9}function Vs(e,t){return I(e,t)+ +!!Bs(e,t)}function Hs(e,t,n,r,i=!1,a=!0){let o=t*Cs+(i?ws:0)+(a?Ts:0),s=Ls.get(e)?.get(o);if(s&&s.end<=n)return s;let c=e.source,l,u=Fs(e,t+1),d=u>=0&&u<n;if(d&&!i&&(l=Is(e,t,u,r)),d&&!l){let s=Ns(c.slice(0,n),t+1,r),d=s>=0?s:u;for(let s=d;s<n;s++){if(c.charCodeAt(s)!==125)continue;let n=Us(e,t+1,s,!0),u=n.virtual?Us(e,t+1,s,!0,!1):n,d=Ms(u.value,r,u.map,!0,i,a);if(d.program){let t={end:s+1,value:n.value};r.estree&&(t.data={estree:d.program});let i=Ls.get(e);return i||(i=/* @__PURE__ */ new Map,Ls.set(e,i)),i.set(o,t),t}if(l=d.error,!d.swallow)break}}let f=-1;for(let r of e.lazy??[])r>t&&r<n&&(f<0||r<f)&&(f=r);f>=0&&As(Ds,Vs(e,f),`unexpected-lazy`),e.boundary!==void 0&&As(Ds,e.boundary,`unexpected-lazy`),l&&As(`Could not parse expression with acorn`,l.at,`acorn`),As("Unexpected end of file in expression, expected a corresponding closing brace for `{`",I(e,n),`unexpected-eof`)}function Us(e,t,n,r,i=!0){let a=[],o=``,s=!1,c=I(e,t);for(let l=t;l<=n&&(e.lazy?.has(l)&&As(Ds,Vs(e,l),`unexpected-lazy`),l!==n);l++){let t=e.source.charCodeAt(l);if(a.push(I(e,l)),o+=e.source[l],c=I(e,l)+1,r&&(t===10||t===13&&e.source.charCodeAt(l+1)!==10)){e.lazy?.has(l+1)&&As(Ds,Vs(e,l+1),`unexpected-lazy`);let t=0,r=0,u=0;for(;l+1<n&&M(e.source.charCodeAt(l+1));){let n=I(e,l+1),i=e.source.charCodeAt(l+1)===9,a=Bs(e,l+1);if(t>=Es){if(!a)break;r++}else t+=i?To(Rs,n):1,t>Es&&(r=t-Es);l++,u=n+1}if(r&&(s=!0,c=u,i)){o+=` `.repeat(r);for(let e=0;e<r;e++)a.push(u)}}}return a.push(c),{value:o,map:e=>a[e],virtual:s}}var Ws=e=>Ar(e)||e===36||e===95||e>127&&(/* @__PURE__ */ RegExp(`\\p{ID_Start}`,`u`)).test(String.fromCharCode(e)),Gs=e=>Ws(e)||kr(e)||e===45||e>127&&(/* @__PURE__ */ RegExp(`\\p{ID_Continue}`,`u`)).test(String.fromCharCode(e)),Ks="a character that can start a name, such as a letter, `$`, or `_`",qs="a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag",Js="a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag",Ys="an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag",Xs="a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag";function Zs(e,t,n,r){let i=e.source;if(M(i.charCodeAt(t+1))||i.charCodeAt(t+1)===10||i.charCodeAt(t+1)===13)return;let a=t+1,o=()=>{e.lazy?.has(a)&&As("Unexpected lazy line in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",Vs(e,a),`unexpected-lazy`,`micromark-extension-mdx-jsx`)},s=()=>{for(;a<n&&Dr(i.charCodeAt(a));)o(),a++;o()},c=(t,r)=>{a>=n&&e.boundary!==void 0&&As("Unexpected lazy line in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",e.boundary,`unexpected-lazy`,`micromark-extension-mdx-jsx`);let o=i.charCodeAt(a),s=a>=n,c=o===96?"` ` `":i[a];As(`Unexpected `+(s?`end of file`:"character `"+c+"` (U+"+o.toString(16).toUpperCase().padStart(4,`0`)+`)`)+` `+t+`, expected `+r,I(e,a),s?`unexpected-eof`:`unexpected-character`,`micromark-extension-mdx-jsx`)};s();let l=i.charCodeAt(a)===47;l&&(a++,s());let u=(e,t)=>{Ws(i.charCodeAt(a))||c(`before `+e,t);let r=a++;for(;a<n&&Gs(i.charCodeAt(a));)a++;return i.slice(r,a)},d=null;if(i.charCodeAt(a)!==62){let e=i.charCodeAt(a);d=u(`name`,Ks+(e===33?" (note: to create a comment in MDX, use `{/* text */}`)":l&&(e===42||e===47)?` (note: JS comments in JSX tags are not supported in MDX)`:``));let t=`name`;for(;;){let e=i.charCodeAt(a);!Dr(e)&&(e===46&&t===`local name`||e===58&&t!==`name`||e!==46&&e!==58&&e!==47&&e!==62&&e!==123)&&c(`in `+t,Js+(e===64&&t!==`local name`?" (note: to create a link in MDX, use `[text](url)`)":``)),s();let n=i.charCodeAt(a);if(n===46&&t!==`local name`||n===58&&t===`name`)a++,s(),t=n===46?`member name`:`local name`,d+=(n===46?`.`:`:`)+u(t,n===46?qs:Ks+(i.charCodeAt(a)===43||i.charCodeAt(a)>46&&i.charCodeAt(a)<58?" (note: to create a link in MDX, use `[text](url)`)":``));else{n!==47&&n!==62&&n!==123&&!Ws(n)&&c(`after `+t,qs);break}}}let f=[],p=!1;for(;a<n&&i.charCodeAt(a)!==62;){s();let t=i.charCodeAt(a);if(t===62)break;if(t===47){l&&As("Unexpected self-closing slash `/` in closing tag, expected the end of the tag",I(e,a),`unexpected-self-closing-slash`,`mdast-util-mdx-jsx`),p=!0,a++,s(),i.charCodeAt(a)!==62&&c(`after self-closing slash`,"`>` to end the tag"+(i.charCodeAt(a)===42||i.charCodeAt(a)===47?` (note: JS comments in JSX tags are not supported in MDX)`:``));break}let d=a;if(l&&As(`Unexpected attribute in closing tag, expected the end of the tag`,I(e,a),`unexpected-attribute`,`mdast-util-mdx-jsx`),t===123){let t=Hs(e,a,n,r,!0,!1);a=t.end;let i={type:`mdxJsxExpressionAttribute`,value:t.value};t.data&&(i.data=t.data);let o=Ur(I(e,d),I(e,a));o&&(i.position=o),f.push(i);continue}let m=u(`attribute name`,qs),h=!1,g=i.charCodeAt(a);!Dr(g)&&g!==47&&g!==58&&g!==61&&g!==62&&g!==123&&c(`in attribute name`,Ys);let _=a;if(s(),i.charCodeAt(a)===58){h=!0,a++,s(),m+=`:`+u(`local attribute name`,Xs),_=a;let e=i.charCodeAt(a);!Dr(e)&&e!==47&&e!==61&&e!==62&&e!==123&&c(`in local attribute name`,Ys),s()}let v=null;if(i.charCodeAt(a)===61){a++,s();let t=i.charCodeAt(a);if(t===34||t===39){for(a++,v=``;a<n&&i.charCodeAt(a)!==t;){o();let e=i.charCodeAt(a);if(e===38){let e=Mr(i,a,n);if(e){v+=e.value,a=e.end;continue}}if(v+=i[a++],e===10||e===13&&i.charCodeAt(a)!==10)for(o();Dr(i.charCodeAt(a))&&i.charCodeAt(a)!==10&&i.charCodeAt(a)!==13;)a++}a>=n&&c(`in attribute value`,"a corresponding closing quote `"+String.fromCharCode(t)+"`"),a++,_=a}else if(t===123){let t=Hs(e,a,n,r,!1,!1);v={type:`mdxJsxAttributeValueExpression`,value:t.value},t.data&&(v.data=t.data),a=_=t.end}else c(`before attribute value`,"a character that can start an attribute value, such as `\"`, `'`, or `{`"+(t===60?" (note: to use an element or fragment as a prop value in MDX, use `{<element />}`)":``))}else i.charCodeAt(a)!==47&&i.charCodeAt(a)!==62&&i.charCodeAt(a)!==123&&!Ws(i.charCodeAt(a))&&c(h?`after local attribute name`:`after attribute name`,Xs);let y=Ur(I(e,d),I(e,_)),b={type:`mdxJsxAttribute`,name:m,value:v};y&&(b.position=y),f.push(b),s()}return a>=n&&c(d===null?`before name`:`before attribute name`,d===null?Ks:qs),{type:`tag`,start:t,end:a+1,name:d,attributes:f,close:l,selfClosing:p}}function Qs(e,t=e.close){return`<`+(t?`/`:``)+(e.name??``)+`>`}function $s(e,t){let n=Hr(e),r=t===void 0?void 0:Hr(t);return n.line+`:`+n.column+(r?`-`+r.line+`:`+r.column:``)}function ec(e){let t=``;for(let n=P.child[e];n;n=P.next[n])t+=P.value[n]??(P.extra[n]?.type===`mdxTextExpression`?P.extra[n].value:ec(n));return t}function tc(e,t){let n={source:e,base:0};zs(e);let r=/* @__PURE__ */ new Map,i=[],a=/* @__PURE__ */ new WeakMap,o=e=>r.get(e)?.at(-1)?.node??e,s,c=0,l=e=>e.start===e.next&&!e.padding,u=()=>Math.max(e.lastIndexOf(`
|
|
19
19
|
`),e.lastIndexOf(`\r`))+1;function d(t,r,i){let o=a.get(r);if(o)return o;let s=new Int32Array(r.length),c=!0;for(let e=1;e<r.length;e++)r[e].start!==r[e-1].next&&(c=!1);let d=0,f=/* @__PURE__ */ new Set;for(let e=0;e<r.length;e++)r[e].lazy&&f.add(d),c||(d+=r[e].padding??0),s[e]=d,d+=r[e].next-r[e].start;let p;if(c)p=r[0].start===0&&r.at(-1).next===e.length?n:{source:e.slice(r[0].start,r.at(-1).next),base:r[0].start,lazy:f};else{let t=new Int32Array(d+1),n=[],i=0;for(let a of r){for(let e=0;e<(a.padding??0);e++)n.push(` `),t[i++]=a.start-1;n.push(e.slice(a.start,a.next));for(let e=a.start;e<a.next;e++)t[i++]=e}t[i]=l(r.at(-1))?u():r.at(-1).next,p={source:n.join(``),base:0,map:t,lazy:f}}i&&!Bo(t,i)?p.boundary=l(i)?u():i.start:!i&&zo()&&(e.charCodeAt(e.length-1)===10||e.charCodeAt(e.length-1)===13)&&(p.boundary=e.length);let m={view:p,starts:s};return a.set(r,m),m}function f(e,t,n){t&&As("Unexpected closing tag `"+Qs(e)+"`, expected corresponding closing tag for `"+Qs(t,!1)+"` ("+$s(t.start,t.end)+`)`,I(n,e.start),`end-tag-mismatch`,`mdast-util-mdx-jsx`),As("Unexpected closing slash `/` in tag, expected an open tag first",I(n,e.start+1),`unexpected-closing-slash`,`mdast-util-mdx-jsx`)}function p(e,n,r){let i=e.source.charCodeAt(n);if(i===123){let i=Hs(e,n,r,t),a=F(N.Mdx,I(e,n),I(e,i.end));return P.extra[a]={type:`mdxTextExpression`,value:i.value},i.data&&(P.extra[a].data=i.data),{end:i.end,node:a}}if(i!==60)return;let a=Zs(e,n,r,t);if(!a)return;let o=F(N.Mdx,I(e,n),I(e,a.end));return P.extra[o]={type:`mdxJsxTextElement`,name:a.name,attributes:a.attributes,children:[],tag:{...a,start:I(e,a.start),end:I(e,a.end)}},{end:a.end,node:o}}function m(n,r,a,s){let c=r;for(;;){for(;c+1<n.length&&!R(e,n[c+1]);)c++;let l=n[c].end,u=e.slice(a,l),d=i.length?`var `+i.join(`,`)+`
|
|
20
20
|
`:``,f=Ms(d+u,t,e=>a+Math.max(0,e-d.length));if(!f.program){if(c+1<n.length&&f.swallow){c++;continue}As(`Could not parse import/exports with acorn`,f.error.at,`acorn`,`micromark-extension-mdxjs-esm`)}let p=f.program;d&&p.body.shift();for(let e of p.body)if([`ExportAllDeclaration`,`ExportDefaultDeclaration`,`ExportNamedDeclaration`,`ImportDeclaration`].includes(e.type)||As("Unexpected `"+e.type+"` in code: only import/exports are supported",e.start,`non-esm`,`micromark-extension-mdxjs-esm`),e.type===`ImportDeclaration`)for(let t of e.specifiers)i.push(t.local.name);let m=F(N.Mdx,a,l,o(s));return P.extra[m]={type:`mdxjsEsm`,value:u},t.estree&&(P.extra[m].data={estree:p}),c-r+1}}function h(t){return(e.startsWith(`import `,t.start)||e.startsWith(`export `,t.start))&&Hr(t.start).column===1}function g(e,n){let r=e.source,i=[];for(;;){let a=r.charCodeAt(n);try{if(a===60){let a=Zs(e,n,r.length,t);if(!a)break;i.push(a),n=a.end}else if(a===123){let a=Hs(e,n,r.length,t);i.push({type:`expression`,start:n,end:a.end,result:a}),n=a.end}else break}catch(e){return{found:i,end:n,complete:!1,error:e}}for(;M(r.charCodeAt(n));)n++;if(n>=r.length||r.charCodeAt(n)===10||r.charCodeAt(n)===13)return{found:i,end:n,complete:!0};if(r.charCodeAt(n)===123&&i.at(-1).type===`expression`||r.charCodeAt(n)!==60&&r.charCodeAt(n)!==123)break}return{found:i,end:n,complete:!1}}function _(t,n,i,a,l){let u=n[i],p=u.start;for(;M(e.charCodeAt(p));)p++;let _=i&&!R(e,n[i-1])&&P.kind[P.last[o(a)]]===N.Definition;if(h(u)&&!_)return m(n,i,p,a);if(e.charCodeAt(p)!==60&&e.charCodeAt(p)!==123)return 0;let v=d(t,n,l),y=v.view,b=g(y,v.starts[i]+p-u.start);if(b.error)throw b.error;if(!b.complete)return 0;let{found:x,end:S}=b;for(let e of x){if(e.type===`expression`){let t=F(N.Mdx,I(y,e.start),I(y,e.end),o(a));P.extra[t]={type:`mdxFlowExpression`,value:e.result.value},e.result.data&&(P.extra[t].data=e.result.data);continue}let t=r.get(a)??[];if(r.set(a,t),e.close){let n=t.at(-1);if(!n){let t=F(N.Mdx,I(y,e.start),I(y,e.end),o(a));P.extra[t]={type:`mdxJsxFlowElement`,name:e.name,attributes:[],children:[],tag:{...e,start:I(y,e.start),end:I(y,e.end)}};continue}n.tag.name!==e.name&&!s&&(s=()=>f(e,n.tag,y),c=I(y,e.end)),P.end[n.node]=I(y,e.end),P.b[n.node]=I(y,e.start),t.pop()}else{let n=F(N.Mdx,I(y,e.start),I(y,e.end),o(a));P.a[n]=I(y,e.end),P.extra[n]={type:`mdxJsxFlowElement`,name:e.name,attributes:e.attributes,children:[]},e.selfClosing||t.push({node:n,tag:{...e,start:I(y,e.start),end:I(y,e.end)}})}}let ee=I(y,S),te=i;for(;te<n.length&&n[te].end<ee;)te++;return te-i+1}return{inline:p,flow:_,flowParent:o,esm:h,hasImports:()=>i.length>0,continuation(t,r,i,a){let o=r[i],s=o.start;for(;M(e.charCodeAt(s));)s++;if(e.charCodeAt(s)!==60&&e.charCodeAt(s)!==123)return;let{view:c,starts:l}=d(t,r,a);if(c.lazy?.size){let e=g(c,l[i]+s-o.start);if(e.error)throw e.error;return e.complete}if(c!==n){let e=g(c,l[i]+s-o.start);return!!e.error||e.complete}},interrupt(t){let r=t.start;for(;M(e.charCodeAt(r));)r++;if(e.charCodeAt(r)!==60&&e.charCodeAt(r)!==123)return!1;let i=g(n,r);return!!i.error||i.complete},continuationEnd(t,r,i,a=0,o){let s=t.start;for(;M(e.charCodeAt(s));)s++;let c=e.charCodeAt(s);if(c!==60&&c!==123)return t.end;let l=n,u=s;if(r&&i){let e=d(r,i,o);l=e.view,u=e.starts[a]+s-t.start}let f=g(l,u);if(f.error){if(f.error.ruleId===`unexpected-eof`){if(r&&o&&Bo(r,o))throw f.error;return e.length}return l.source.charCodeAt(f.end)===123?e.length:Math.max(f.error.place?.offset??I(l,f.end),t.end)}return Math.max(I(l,f.end),t.end)},finish(){let t={[N.Root]:`root`,[N.Paragraph]:`paragraph`,[N.Heading]:`heading`,[N.Blockquote]:`blockQuote`,[N.List]:`list`,[N.ListItem]:`listItem`,[N.Emphasis]:`emphasis`,[N.Strong]:`strong`,[N.Delete]:`strikethrough`,[N.Link]:`link`,[N.LinkReference]:`link`,[N.Image]:`image`,[N.ImageReference]:`image`,[N.FootnoteDefinition]:`gfmFootnoteDefinition`};function n(n,r){return P.kind[n]===N.Heading?/[\n\r]/.test(e.slice(P.start[n],P.end[n]))?`setextHeading`:`atxHeading`:P.kind[n]===N.TableCell?r?`tableHeader`:`tableData`:t[P.kind[n]]??`paragraph`}function i(e){s&&c<=e&&s()}function a(t,o,s=!1){let c=[],l=[];for(let e=P.child[t];e;e=P.next[e])l.push(e);P.child[t]=P.last[t]=0;for(let r of l){P.next[r]=P.prev[r]=0;let u=P.extra[r],d=u?.tag;if(d){if(delete u.tag,d.close){let r=c.at(-1);if(!r){if(i(d.end),o){o.name!==d.name&&f(d,o,{source:e,base:0});let r=n(t,s);As("Expected the closing tag `"+Qs(d)+"` either after the end of `"+r+"` ("+$s(P.end[t])+") or another opening tag after the start of `"+r+"` ("+$s(P.start[t])+`)`,d.start,`end-tag-mismatch`,`mdast-util-mdx-jsx`)}f(d,void 0,{source:e,base:0})}r.tag.name!==d.name&&(i(d.end),f(d,r.tag,{source:e,base:0})),P.end[r.node]=d.end,c.pop()}else Xr(c.at(-1)?.node??t,r),d.selfClosing||c.push({tag:d,node:r})}else{let e=c.at(-1)?.tag??o,n=u?.type===`mdxJsxFlowElement`?{type:`tag`,start:P.start[r],end:P.a[r],name:u.name,attributes:u.attributes,close:!1,selfClosing:!1}:void 0,i=P.kind[t]===N.Table?r===l[0]:s;P.child[r]&&a(r,n??e,i),(P.kind[r]===N.Image||P.kind[r]===N.ImageReference)&&(P.value[r]=ec(r),P.child[r]=P.last[r]=0),Xr(c.at(-1)?.node??t,r)}}let u=c.at(-1);u&&(i(P.end[t]),As("Expected a closing tag for `"+Qs(u.tag,!1)+"` ("+$s(u.tag.start,u.tag.end)+") before the end of `"+n(t,s)+"`",P.start[t],`end-tag-mismatch`,`mdast-util-mdx-jsx`));let d=r.get(t)?.at(-1);if(d){i(P.end[t]);let e="Expected a closing tag for `"+Qs(d.tag,!1)+"` ("+$s(d.tag.start,d.tag.end)+`)`;if(P.kind[t]===N.Root)throw new xs({reason:e,ruleId:`end-tag-mismatch`,source:`mdast-util-mdx-jsx`});As(e+" before the end of `"+n(t,s)+"`",P.start[t],`end-tag-mismatch`,`mdast-util-mdx-jsx`)}}a(1),s?.()}}}function nc(e,t,n){let r=e.source;if(r.charCodeAt(t)===123&&r.charCodeAt(t+1)===35)for(let i=t+2;i<n;i++){let n=r.charCodeAt(i);if(n===10||n===13||n===92||n===123)return;if(n===125){let n=F(N.IdString,I(e,t+2),I(e,i));return P.value[n]=Pr(r.slice(t+2,i)),{node:n,end:i+1}}}}function rc({source:e,config:t,hooks:n,from:r=0}){e.charCodeAt(0)===65279&&(e=e.slice(1)),e.indexOf(`\0`)>=0&&(e=e.replaceAll(`\0`,`�`)),Vr(e,t.positions),Yr(),yo(),aa(t,e);let i=F(N.Root,0,e.length),a=t.mdx?tc(e,t.mdx):void 0,o=t.headingId?(e,t,n)=>nc(e,t,n)??a?.inline(e,t,n):a?.inline,s={source:e,config:t,definitions:/* @__PURE__ */ new Map,footnotes:/* @__PURE__ */ new Set,...a,flow:n?.flow??a?.flow,inline:n?.inline??o};return s.inlineMarkers=!!o&&!n?.inline,vs(s,xo(e,r),i,r===0),ys(s),a?.finish(),t.gfm&&_i(i),s.definitions.size>0||s.footnotes.size>0||a?.hasImports(),Qr(i)}var ic=4;function ac(e,t){let n=t.join(`/`),r=e.scopes.get(n);if(!r){let i=e.characters.map(e=>e?.filter(e=>oc(t,e.pattern))),a=[],o=[];for(let e=0;e<i.length;e++){let t=i[e];if(!t?.length)continue;let n=`\\u`+e.toString(16).padStart(ic,`0`);if(t.some(e=>!e.before&&!e.after&&!e.pattern.atBreak))a.push(n);else for(let{pattern:e}of t){let t=(e.atBreak?`[\\r\\n][\\t ]*`:``)+(e.before||``);o.push((t?`(?<=`+t+`)`:``)+n+(e.after?`(?=`+e.after+`)`:``))}}a.length&&o.unshift(`[`+a.join(``)+`]`),r={characters:i,expression:new RegExp(o.join(`|`)||`(?!)`,`g`)},e.scopes.set(n,r)}return r}function oc(e,t){return sc(e,t.inConstruct,!0)&&!sc(e,t.notInConstruct,!1)}function sc(e,t,n){if(typeof t==`string`)return e.includes(t);if(!t?.length)return n;for(let n of t)if(e.includes(n))return!0;return!1}function cc(e,t,n){if(n.digits){let n=t;for(;n&&e.charCodeAt(n-1)>=48&&e.charCodeAt(n-1)<=57;)n--;return n===t?-1:n}if(n.characters)return t&&n.characters[e.charCodeAt(t-1)]?t-1:-1;let r=n.literal||``;return t>=r.length&&e.startsWith(r,t-r.length)?t-r.length:-1}function lc(e,t,n){if(n.end&&t===e.length)return t;if(n.characters)return n.characters[e.charCodeAt(t)]?t+1:-1;let r=n.literal||``;return e.startsWith(r,t)?t+r.length:-1}function uc(e){return e>=33&&e<=47||e>=58&&e<=64||e>=91&&e<=96||e>=123&&e<=126}function dc(e,t=``){let n=0,r=``;for(let i=e.indexOf(`\\`);i!==-1;i=e.indexOf(`\\`,i+1))uc(i+1<e.length?e.charCodeAt(i+1):t.charCodeAt(0))&&(r+=e.slice(n,i)+`\\`,n=i);return r+e.slice(n)}function fc(e,t,n){let r=n.before||``,i=n.after||``,a=r+(t||``)+i,o=e.rules,s=e.scopedRules||ac(o,e.stack);e.customHandlers||(e.scopedRules=s);let{characters:c,expression:l}=s;l.lastIndex=0;let u=o.custom?null:l.exec(a);if(!o.custom&&!u)return dc(t||``,i);let d=o.next;d.fill(0);let f=[],p=[];if(o.custom){for(let{pattern:t,expression:n}of o.custom){if(!oc(e.stack,t))continue;n.lastIndex=0;let r;for(;r=n.exec(a);){let e=`before`in t||!!t.atBreak,n=r.index+(e?r[1].length:0),i=4|!!e|(`after`in t?2:0);f[n]=f[n]?f[n]&i:i}}for(let e=0;e<f.length;e++)f[e]&&p.push(e)}for(;u;u=l.exec(a)){let e=u.index,t=c[a.charCodeAt(e)];if(!t)continue;let n=0;for(let r of t){let t=r.before?cc(a,e,r.before):e;if(t<0)continue;if(r.pattern.atBreak){for(;t&&(a.charCodeAt(t-1)===32||a.charCodeAt(t-1)===9);)t--;if(!t||a.charCodeAt(t-1)!==10&&a.charCodeAt(t-1)!==13)continue;t--}if(t<d[r.index])continue;let i=r.after?lc(a,e+1,r.after):e+1;if(i<0)continue;d[r.index]=i;let o=4|(`before`in r.pattern||r.pattern.atBreak?1:0)|(`after`in r.pattern?2:0);n=n?n&o:o}n&&(f[e]=n,p.push(e))}let m=r.length,h=a.length-i.length,g=``;for(let e of p){if(e<m||e>=h)continue;let t=f[e];if(e+1<h&&t&2&&f[e+1]===4||t&1&&e&&f[e-1]===4)continue;m!==e&&(g+=dc(a.slice(m,e),`\\`)),m=e;let r=a.charCodeAt(e);uc(r)&&!n.encode?.includes(a[e])?g+=`\\`:(g+=`&#x`+r.toString(16).toUpperCase()+`;`,m++)}return g+dc(a.slice(m,h),i)}mc.peek=pc;function pc(){return`[`}function mc(e,t,n,r){let i=n.createTracker(r),a=i.move(`[^`),o=n.enter(`footnoteReference`),s=n.enter(`reference`);return a+=i.move(n.safe(n.associationId(e),{after:`]`,before:a})),s(),o(),a+=i.move(`]`),a}hc.peek=gc;function hc(e,t,n,r){let i=n.createTracker(r),a=n.stack.includes(`strikethrough`)?`~`:`~~`,o=n.enter(`strikethrough`),s=i.move(a);return s+=n.containerPhrasing(e,{...i.current(),before:s,after:`~`}),s+=i.move(a),o(),s}function gc(){return`~`}function _c(e){let t=e.options.quote||`"`;if(t!==`"`&&t!==`'`)throw Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function vc(e){let t=e.options.emphasis||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function yc(e){return`&#x`+e.toString(16).toUpperCase()+`;`}function bc(e){return e<0||e===32}var xc=Cc(/* @__PURE__ */ RegExp(`\\p{P}|\\p{S}`,`u`)),Sc=Cc(/\s/);function Cc(e){return t;function t(t){return t>-1&&e.test(String.fromCharCode(t))}}function wc(e){if(bc(e)||Sc(e))return 1;if(xc(e))return 2}function Tc(e,t,n){let r=wc(e),i=wc(t);return r===void 0?i===void 0?n===`_`?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Ec.peek=Dc;function Ec(e,t,n,r){let i=vc(n),a=n.enter(`emphasis`),o=n.createTracker(r),s=o.move(i),c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()})),l=c.charCodeAt(0),u=Tc(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=yc(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=Tc(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+yc(d));let p=o.move(i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function Dc(e,t,n){return n.options.emphasis||`*`}function Oc(e){return e.value?e.value||``:e.alt?e.alt||``:e.children?e.children.map(Oc).join(``):``}kc.peek=Ac;function kc(e){return e.value||``}function Ac(){return`<`}jc.peek=Mc;function jc(e,t,n,r){let i=_c(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`image`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`![`);return l+=c.move(n.safe(e.alt,{before:l,after:`]`})),l+=c.move(`](`),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`)`}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i})),l+=c.move(i),s()),l+=c.move(`)`),o(),l}function Mc(){return`!`}Nc.peek=Pc;function Nc(e,t,n,r){let i=e.referenceType,a=n.enter(`imageReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`![`),l=n.safe(e.alt,{before:c,after:`]`});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function Pc(){return`!`}Fc.peek=Rc;function Fc(e,t,n){let r=e.value||``,i=Ic(r,"`",1);return/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=` `+r+` `),i+Lc(r,n)+i}function Ic(e,t,n){let r=t.charCodeAt(0),i=/* @__PURE__ */ new Set;for(let n=e.indexOf(t);n!==-1;n=e.indexOf(t,n+1)){let t=n;for(;e.charCodeAt(n+1)===r;)n++;i.add(n-t+1)}let a=n;for(;i.has(a);)a++;return t.repeat(a)}function Lc(e,t){if(!e.includes(`
|
|
21
21
|
`)&&!e.includes(`\r`))return e;for(let n of t.rules.breaks){n.lastIndex=0;let t;for(;t=n.exec(e);){let n=t.index;e.charCodeAt(n)===10&&e.charCodeAt(n-1)===13&&n--,e=e.slice(0,n)+` `+e.slice(t.index+1)}}return e}function Rc(){return"`"}function zc(e,t){let n=Oc(e);return!(t.options.resourceLink||!e.url||e.title||!e.children||e.children.length!==1||e.children[0].type!==`text`||n!==e.url&&`mailto:`+n!==e.url||!/^[a-z][a-z+.-]+:/i.test(e.url)||/[\0- <>\u007F]/.test(e.url))}Bc.peek=Vc;function Bc(e,t,n,r){let i=_c(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.createTracker(r),s,c;if(zc(e,n)){let t=n.stack;n.stack=[],s=n.enter(`autolink`);let r=o.move(`<`);return r+=o.move(n.containerPhrasing(e,{before:r,after:`>`,...o.current()})),r+=o.move(`>`),s(),n.stack=t,r}s=n.enter(`link`),c=n.enter(`label`);let l=o.move(`[`);return l+=o.move(n.containerPhrasing(e,{before:l,after:`](`,...o.current()})),l+=o.move(`](`),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter(`destinationLiteral`),l+=o.move(`<`),l+=o.move(n.safe(e.url,{before:l,after:`>`})),l+=o.move(`>`)):(c=n.enter(`destinationRaw`),l+=o.move(n.safe(e.url,{before:l,after:e.title?` `:`)`}))),c(),e.title&&(c=n.enter(`title${a}`),l+=o.move(` `+i),l+=o.move(n.safe(e.title,{before:l,after:i})),l+=o.move(i),c()),l+=o.move(`)`),s(),l}function Vc(e,t,n){return zc(e,n)?`<`:`[`}Hc.peek=Uc;function Hc(e,t,n,r){let i=e.referenceType,a=n.enter(`linkReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`[`),l=n.containerPhrasing(e,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function Uc(){return`[`}function Wc(e){let t=e.options.strong||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Gc.peek=Kc;function Gc(e,t,n,r){let i=Wc(n),a=n.enter(`strong`),o=n.createTracker(r),s=o.move(i+i),c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()})),l=c.charCodeAt(0),u=Tc(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=yc(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=Tc(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+yc(d));let p=o.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function Kc(e,t,n){return n.options.strong||`*`}Jc.peek=qc;function qc(e,t,n,r){let i=e.value||``,a=i.charCodeAt(0);return!n.rules.custom&&a!==92&&!n.rules.characters[a]?i.charAt(0):n.rules.custom?Jc(e,t,n,r):fc(n,i.slice(0,2),{before:r.before,after:i.length>2?i.charAt(2):r.after}).charAt(0)}function Jc(e,t,n,r){return n.safe(e.value,r)}function Yc(e,t={}){return Xc({source:e,config:bs(t.syntax,t.positions??!0)})}function Xc({source:e,config:t,from:n=0}){try{return rc({source:e,config:t,from:n})}catch(e){if(e instanceof xs)return e;throw e}}function Zc(e=[`yaml`,`toml`]){return{name:`frontmatter`,yaml:e.includes(`yaml`),toml:e.includes(`toml`)}}function Qc(e={}){return{name:`gfm`,singleTilde:e.singleTilde??!0}}function $c(e={}){return{name:`math`,singleDollarTextMath:e.singleDollarTextMath??!0}}var el=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],tl=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],nl=`·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・`,rl=`ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ`,il={3:`abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile`,5:`class enum extends super const export import`,6:`enum`,strict:`implements interface let package private protected public static yield`,strictBind:`eval arguments`},al=`break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this`,ol={5:al,"5module":al+` export import`,6:al+` const class extends export import super`},sl=/^in(stanceof)?$/,cl=RegExp(`[`+rl+`]`),ll=RegExp(`[`+rl+nl+`]`);function ul(e,t){for(var n=65536,r=0;r<t.length;r+=2){if(n+=t[r],n>e)return!1;if(n+=t[r+1],n>=e)return!0}return!1}function dl(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&cl.test(String.fromCharCode(e)):t!==!1&&ul(e,tl)}function fl(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&ll.test(String.fromCharCode(e)):t===!1?!1:ul(e,tl)||ul(e,el)}var z=function(e,t){t===void 0&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function pl(e,t){return new z(e,{beforeExpr:!0,binop:t})}var ml={beforeExpr:!0},hl={startsExpr:!0},gl={};function B(e,t){return t===void 0&&(t={}),t.keyword=e,gl[e]=new z(e,t)}var V={num:new z(`num`,hl),regexp:new z(`regexp`,hl),string:new z(`string`,hl),name:new z(`name`,hl),privateId:new z(`privateId`,hl),eof:new z(`eof`),bracketL:new z(`[`,{beforeExpr:!0,startsExpr:!0}),bracketR:new z(`]`),braceL:new z(`{`,{beforeExpr:!0,startsExpr:!0}),braceR:new z(`}`),parenL:new z(`(`,{beforeExpr:!0,startsExpr:!0}),parenR:new z(`)`),comma:new z(`,`,ml),semi:new z(`;`,ml),colon:new z(`:`,ml),dot:new z(`.`),question:new z(`?`,ml),questionDot:new z(`?.`),arrow:new z(`=>`,ml),template:new z(`template`),invalidTemplate:new z(`invalidTemplate`),ellipsis:new z(`...`,ml),backQuote:new z("`",hl),dollarBraceL:new z("${",{beforeExpr:!0,startsExpr:!0}),eq:new z(`=`,{beforeExpr:!0,isAssign:!0}),assign:new z(`_=`,{beforeExpr:!0,isAssign:!0}),incDec:new z(`++/--`,{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new z(`!/~`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:pl(`||`,1),logicalAND:pl(`&&`,2),bitwiseOR:pl(`|`,3),bitwiseXOR:pl(`^`,4),bitwiseAND:pl(`&`,5),equality:pl(`==/!=/===/!==`,6),relational:pl(`</>/<=/>=`,7),bitShift:pl(`<</>>/>>>`,8),plusMin:new z(`+/-`,{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:pl(`%`,10),star:pl(`*`,10),slash:pl(`/`,10),starstar:new z(`**`,{beforeExpr:!0}),coalesce:pl(`??`,1),_break:B(`break`),_case:B(`case`,ml),_catch:B(`catch`),_continue:B(`continue`),_debugger:B(`debugger`),_default:B(`default`,ml),_do:B(`do`,{isLoop:!0,beforeExpr:!0}),_else:B(`else`,ml),_finally:B(`finally`),_for:B(`for`,{isLoop:!0}),_function:B(`function`,hl),_if:B(`if`),_return:B(`return`,ml),_switch:B(`switch`),_throw:B(`throw`,ml),_try:B(`try`),_var:B(`var`),_const:B(`const`),_while:B(`while`,{isLoop:!0}),_with:B(`with`),_new:B(`new`,{beforeExpr:!0,startsExpr:!0}),_this:B(`this`,hl),_super:B(`super`,hl),_class:B(`class`,hl),_extends:B(`extends`,ml),_export:B(`export`),_import:B(`import`,hl),_null:B(`null`,hl),_true:B(`true`,hl),_false:B(`false`,hl),_in:B(`in`,{beforeExpr:!0,binop:7}),_instanceof:B(`instanceof`,{beforeExpr:!0,binop:7}),_typeof:B(`typeof`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:B(`void`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:B(`delete`,{beforeExpr:!0,prefix:!0,startsExpr:!0})},_l=/\r\n?|\n|\u2028|\u2029/,vl=new RegExp(_l.source,`g`);function yl(e){return e===10||e===13||e===8232||e===8233}function bl(e,t,n){n===void 0&&(n=e.length);for(var r=t;r<n;r++){var i=e.charCodeAt(r);if(yl(i))return r<n-1&&i===13&&e.charCodeAt(r+1)===10?r+2:r+1}return-1}var xl=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Sl=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Cl=Object.prototype,wl=Cl.hasOwnProperty,Tl=Cl.toString,El=Object.hasOwn||(function(e,t){return wl.call(e,t)}),Dl=Array.isArray||(function(e){return Tl.call(e)===`[object Array]`}),Ol=/* @__PURE__ */ Object.create(null);function kl(e){return Ol[e]||(Ol[e]=RegExp(`^(?:`+e.replace(/ /g,`|`)+`)$`))}function Al(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var jl=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Ml=function(e,t){this.line=e,this.column=t};Ml.prototype.offset=function(e){return new Ml(this.line,this.column+e)};var Nl=function(e,t,n){this.start=t,this.end=n,e.sourceFile!==null&&(this.source=e.sourceFile)};function Pl(e,t){for(var n=1,r=0;;){var i=bl(e,r,t);if(i<0)return new Ml(n,t-r);++n,r=i}}var Fl={ecmaVersion:null,sourceType:`script`,onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},Il=!1;function Ll(e){var t={};for(var n in Fl)t[n]=e&&El(e,n)?e[n]:Fl[n];if(t.ecmaVersion===`latest`?t.ecmaVersion=1e8:t.ecmaVersion==null?(!Il&&typeof console==`object`&&console.warn&&(Il=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
22
|
-
Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved??=t.ecmaVersion<5,
|
|
22
|
+
Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved??=t.ecmaVersion<5,e&&e.allowHashBang!=null||(t.allowHashBang=t.ecmaVersion>=14),Dl(t.onToken)){var r=t.onToken;t.onToken=function(e){return r.push(e)}}if(Dl(t.onComment)&&(t.onComment=Rl(t,t.onComment)),t.sourceType===`commonjs`&&t.allowAwaitOutsideFunction)throw Error(`Cannot use allowAwaitOutsideFunction with sourceType: commonjs`);return t}function Rl(e,t){return function(n,r,i,a,o,s){var c={type:n?`Block`:`Line`,value:r,start:i,end:a};e.locations&&(c.loc=new Nl(this,o,s)),e.ranges&&(c.range=[i,a]),t.push(c)}}var zl=1,Bl=2,Vl=4,Hl=8,Ul=16,Wl=32,Gl=64,Kl=128,ql=256,Jl=512,Yl=1024,Xl=zl|Bl|ql;function Zl(e,t){return Bl|(e?Vl:0)|(t?Hl:0)}var Ql=0,$l=1,eu=2,tu=3,nu=4,ru=5,iu=function(e,t,n){this.options=e=Ll(e),this.sourceFile=e.sourceFile,this.keywords=kl(ol[e.ecmaVersion>=6?6:e.sourceType===`module`?`5module`:5]);var r=``;e.allowReserved!==!0&&(r=il[e.ecmaVersion>=6?6:e.ecmaVersion===5?5:3],e.sourceType===`module`&&(r+=` await`)),this.reservedWords=kl(r);var i=(r?r+` `:``)+il.strict;this.reservedWordsStrict=kl(i),this.reservedWordsStrictBind=kl(i+` `+il.strictBind),this.input=String(t),this.containsEsc=!1,n?(this.pos=n,this.lineStart=this.input.lastIndexOf(`
|
|
23
23
|
`,n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(_l).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=V.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=e.sourceType===`module`,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=/* @__PURE__ */ Object.create(null),this.pos===0&&e.allowHashBang&&this.input.slice(0,2)===`#!`&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(this.options.sourceType===`commonjs`?Bl:zl),this.regexpState=null,this.privateNameStack=[]},au={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};iu.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},au.inFunction.get=function(){return(this.currentVarScope().flags&Bl)>0},au.inGenerator.get=function(){return(this.currentVarScope().flags&Hl)>0},au.inAsync.get=function(){return(this.currentVarScope().flags&Vl)>0},au.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e].flags;if(t&(ql|Jl))return!1;if(t&Bl)return(t&Vl)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},au.allowReturn.get=function(){return!!(this.inFunction||this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&zl)},au.allowSuper.get=function(){return(this.currentThisScope().flags&Gl)>0||this.options.allowSuperOutsideMethod},au.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Kl)>0},au.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},au.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e].flags;if(t&(ql|Jl)||t&Bl&&!(t&Ul))return!0}return!1},au.allowUsing.get=function(){var e=this.currentScope().flags;return!(e&Yl||!this.inModule&&e&zl)},au.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&ql)>0},iu.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n=this,r=0;r<e.length;r++)n=e[r](n);return n},iu.parse=function(e,t){return new this(t,e).parse()},iu.parseExpressionAt=function(e,t,n){var r=new this(n,e,t);return r.nextToken(),r.parseExpression()},iu.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(iu.prototype,au);var ou=iu.prototype,su=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;ou.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){Sl.lastIndex=e,e+=Sl.exec(this.input)[0].length;var t=su.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])===`use strict`){Sl.lastIndex=e+t[0].length;var n=Sl.exec(this.input),r=n.index+n[0].length,i=this.input.charAt(r);return i===`;`||i===`}`||_l.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||i===`!`&&this.input.charAt(r+1)===`=`)}e+=t[0].length,Sl.lastIndex=e,e+=Sl.exec(this.input)[0].length,this.input[e]===`;`&&e++}},ou.eat=function(e){return this.type===e&&(this.next(),!0)},ou.isContextual=function(e){return this.type===V.name&&this.value===e&&!this.containsEsc},ou.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1},ou.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},ou.canInsertSemicolon=function(){return this.type===V.eof||this.type===V.braceR||_l.test(this.input.slice(this.lastTokEnd,this.start))},ou.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},ou.semicolon=function(){!this.eat(V.semi)&&!this.insertSemicolon()&&this.unexpected()},ou.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},ou.expect=function(e){this.eat(e)||this.unexpected()},ou.unexpected=function(e){this.raise(e??this.start,`Unexpected token`)};var cu=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};ou.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,`Comma is not permitted after the rest element`);var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,t?`Assigning to rvalue`:`Parenthesized pattern`)}},ou.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,r=e.doubleProto;if(!t)return n>=0||r>=0;n>=0&&this.raise(n,`Shorthand property assignments are valid only in destructuring patterns`),r>=0&&this.raiseRecoverable(r,`Redefinition of __proto__ property`)},ou.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,`Yield expression cannot be a default value`),this.awaitPos&&this.raise(this.awaitPos,`Await expression cannot be a default value`)},ou.isSimpleAssignTarget=function(e){return e.type===`ParenthesizedExpression`?this.isSimpleAssignTarget(e.expression):e.type===`Identifier`||e.type===`MemberExpression`};var H=iu.prototype;H.parseTopLevel=function(e){var t=/* @__PURE__ */ Object.create(null);for(e.body||=[];this.type!==V.eof;){var n=this.parseStatement(null,!0,t);e.body.push(n)}if(this.inModule)for(var r=0,i=Object.keys(this.undefinedExports);r<i.length;r+=1){var a=i[r];this.raiseRecoverable(this.undefinedExports[a].start,`Export '`+a+`' is not defined`)}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType===`commonjs`?`script`:this.options.sourceType,this.finishNode(e,`Program`)};var lu={kind:`loop`},uu={kind:`switch`};H.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual(`let`))return!1;Sl.lastIndex=this.pos;var t=Sl.exec(this.input),n=this.pos+t[0].length,r=this.fullCharCodeAt(n);if(r===91||r===92)return!0;if(e)return!1;if(r===123)return!0;if(dl(r)){var i=n;do n+=r<=65535?1:2;while(fl(r=this.fullCharCodeAt(n)));if(r===92)return!0;var a=this.input.slice(i,n);if(!sl.test(a))return!0}return!1},H.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual(`async`))return!1;Sl.lastIndex=this.pos;var e=Sl.exec(this.input),t=this.pos+e[0].length,n;return!_l.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)===`function`&&(t+8===this.input.length||!(fl(n=this.fullCharCodeAt(t+8))||n===92))},H.isUsingKeyword=function(e,t){if(this.options.ecmaVersion<17||!this.isContextual(e?`await`:`using`))return!1;Sl.lastIndex=this.pos;var n=Sl.exec(this.input),r=this.pos+n[0].length;if(_l.test(this.input.slice(this.pos,r)))return!1;if(e){var i=r+5,a;if(this.input.slice(r,i)!==`using`||i===this.input.length||fl(a=this.fullCharCodeAt(i))||a===92)return!1;Sl.lastIndex=i;var o=Sl.exec(this.input);if(r=i+o[0].length,o&&_l.test(this.input.slice(i,r)))return!1}var s=this.fullCharCodeAt(r);if(!dl(s)&&s!==92)return!1;var c=r;do r+=s<=65535?1:2;while(fl(s=this.fullCharCodeAt(r)));if(s===92)return!0;var l=this.input.slice(c,r);return!(sl.test(l)||t&&l===`of`)},H.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)},H.isUsing=function(e){return this.isUsingKeyword(!1,e)},H.parseStatement=function(e,t,n){var r=this.type,i=this.startNode(),a;switch(this.isLet(e)&&(r=V._var,a=`let`),r){case V._break:case V._continue:return this.parseBreakContinueStatement(i,r.keyword);case V._debugger:return this.parseDebuggerStatement(i);case V._do:return this.parseDoStatement(i);case V._for:return this.parseForStatement(i);case V._function:return e&&(this.strict||e!==`if`&&e!==`label`)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(i,!1,!e);case V._class:return e&&this.unexpected(),this.parseClass(i,!0);case V._if:return this.parseIfStatement(i);case V._return:return this.parseReturnStatement(i);case V._switch:return this.parseSwitchStatement(i);case V._throw:return this.parseThrowStatement(i);case V._try:return this.parseTryStatement(i);case V._const:case V._var:return a||=this.value,e&&a!==`var`&&this.unexpected(),this.parseVarStatement(i,a);case V._while:return this.parseWhileStatement(i);case V._with:return this.parseWithStatement(i);case V.braceL:return this.parseBlock(!0,i);case V.semi:return this.parseEmptyStatement(i);case V._export:case V._import:if(this.options.ecmaVersion>10&&r===V._import){Sl.lastIndex=this.pos;var o=Sl.exec(this.input),s=this.pos+o[0].length,c=this.input.charCodeAt(s);if(c===40||c===46)return this.parseExpressionStatement(i,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,`'import' and 'export' may only appear at the top level`),this.inModule||this.raise(this.start,`'import' and 'export' may appear only with 'sourceType: module'`)),r===V._import?this.parseImport(i):this.parseExport(i,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(i,!0,!e);var l=this.isAwaitUsing(!1)?`await using`:this.isUsing(!1)?`using`:null;if(l)return this.allowUsing||this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"),l===`await using`&&(this.canAwait||this.raise(this.start,`Await using cannot appear outside of async function`),this.next()),this.next(),this.parseVar(i,!1,l),this.semicolon(),this.finishNode(i,`VariableDeclaration`);var u=this.value,d=this.parseExpression();return r===V.name&&d.type===`Identifier`&&this.eat(V.colon)?this.parseLabeledStatement(i,u,d,e):this.parseExpressionStatement(i,d)}},H.parseBreakContinueStatement=function(e,t){var n=t===`break`;this.next(),this.eat(V.semi)||this.insertSemicolon()?e.label=null:this.type===V.name?(e.label=this.parseIdent(),this.semicolon()):this.unexpected();for(var r=0;r<this.labels.length;++r){var i=this.labels[r];if((e.label==null||i.name===e.label.name)&&(i.kind!=null&&(n||i.kind===`loop`)||e.label&&n))break}return r===this.labels.length&&this.raise(e.start,`Unsyntactic `+t),this.finishNode(e,n?`BreakStatement`:`ContinueStatement`)},H.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,`DebuggerStatement`)},H.parseDoStatement=function(e){return this.next(),this.labels.push(lu),e.body=this.parseStatement(`do`),this.labels.pop(),this.expect(V._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(V.semi):this.semicolon(),this.finishNode(e,`DoWhileStatement`)},H.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual(`await`)?this.lastTokStart:-1;if(this.labels.push(lu),this.enterScope(0),this.expect(V.parenL),this.type===V.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===V._var||this.type===V._const||n){var r=this.startNode(),i=n?`let`:this.value;return this.next(),this.parseVar(r,!0,i),this.finishNode(r,`VariableDeclaration`),this.parseForAfterInit(e,r,t)}var a=this.isContextual(`let`),o=!1,s=this.isUsing(!0)?`using`:this.isAwaitUsing(!0)?`await using`:null;if(s){var c=this.startNode();return this.next(),s===`await using`&&(this.canAwait||this.raise(this.start,`Await using cannot appear outside of async function`),this.next()),this.parseVar(c,!0,s),this.finishNode(c,`VariableDeclaration`),this.parseForAfterInit(e,c,t)}var l=this.containsEsc,u=new cu,d=this.start,f=t>-1?this.parseExprSubscripts(u,`await`):this.parseExpression(!0,u);return this.type===V._in||(o=this.options.ecmaVersion>=6&&this.isContextual(`of`))?(t>-1?(this.type===V._in&&this.unexpected(t),e.await=!0):o&&this.options.ecmaVersion>=8&&(f.start===d&&!l&&f.type===`Identifier`&&f.name===`async`?this.unexpected():this.options.ecmaVersion>=9&&(e.await=!1)),a&&o&&this.raise(f.start,`The left-hand side of a for-of loop may not start with 'let'.`),this.toAssignable(f,!1,u),this.checkLValPattern(f),this.parseForIn(e,f)):(this.checkExpressionErrors(u,!0),t>-1&&this.unexpected(t),this.parseFor(e,f))},H.parseForAfterInit=function(e,t,n){return(this.type===V._in||this.options.ecmaVersion>=6&&this.isContextual(`of`))&&t.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===V._in?n>-1&&this.unexpected(n):e.await=n>-1),this.parseForIn(e,t)):(n>-1&&this.unexpected(n),this.parseFor(e,t))},H.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,fu|(n?0:pu),!1,t)},H.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement(`if`),e.alternate=this.eat(V._else)?this.parseStatement(`if`):null,this.finishNode(e,`IfStatement`)},H.parseReturnStatement=function(e){return this.allowReturn||this.raise(this.start,`'return' outside of function`),this.next(),this.eat(V.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,`ReturnStatement`)},H.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(V.braceL),this.labels.push(uu),this.enterScope(Yl);for(var t,n=!1;this.type!==V.braceR;)if(this.type===V._case||this.type===V._default){var r=this.type===V._case;t&&this.finishNode(t,`SwitchCase`),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,`Multiple default clauses`),n=!0,t.test=null),this.expect(V.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,`SwitchCase`),this.next(),this.labels.pop(),this.finishNode(e,`SwitchStatement`)},H.parseThrowStatement=function(e){return this.next(),_l.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,`Illegal newline after throw`),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,`ThrowStatement`)};var du=[];H.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t=e.type===`Identifier`;return this.enterScope(t?Wl:0),this.checkLValPattern(e,t?nu:eu),this.expect(V.parenR),e},H.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===V._catch){var t=this.startNode();this.next(),this.eat(V.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,`CatchClause`)}return e.finalizer=this.eat(V._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,`Missing catch or finally clause`),this.finishNode(e,`TryStatement`)},H.parseVarStatement=function(e,t,n){return this.next(),this.parseVar(e,!1,t,n),this.semicolon(),this.finishNode(e,`VariableDeclaration`)},H.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(lu),e.body=this.parseStatement(`while`),this.labels.pop(),this.finishNode(e,`WhileStatement`)},H.parseWithStatement=function(e){return this.strict&&this.raise(this.start,`'with' in strict mode`),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement(`with`),this.finishNode(e,`WithStatement`)},H.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,`EmptyStatement`)},H.parseLabeledStatement=function(e,t,n,r){for(var i=0,a=this.labels;i<a.length;i+=1)a[i].name===t&&this.raise(n.start,`Label '`+t+`' is already declared`);for(var o=this.type.isLoop?`loop`:this.type===V._switch?`switch`:null,s=this.labels.length-1;s>=0;s--){var c=this.labels[s];if(c.statementStart===e.start)c.statementStart=this.start,c.kind=o;else break}return this.labels.push({name:t,kind:o,statementStart:this.start}),e.body=this.parseStatement(r?r.indexOf(`label`)===-1?r+`label`:r:`label`),this.labels.pop(),e.label=n,this.finishNode(e,`LabeledStatement`)},H.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,`ExpressionStatement`)},H.parseBlock=function(e,t,n){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(V.braceL),e&&this.enterScope(0);this.type!==V.braceR;){var r=this.parseStatement(null);t.body.push(r)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,`BlockStatement`)},H.parseFor=function(e,t){return e.init=t,this.expect(V.semi),e.test=this.type===V.semi?null:this.parseExpression(),this.expect(V.semi),e.update=this.type===V.parenR?null:this.parseExpression(),this.expect(V.parenR),e.body=this.parseStatement(`for`),this.exitScope(),this.labels.pop(),this.finishNode(e,`ForStatement`)},H.parseForIn=function(e,t){var n=this.type===V._in;return this.next(),t.type===`VariableDeclaration`&&t.declarations[0].init!=null&&(!n||this.options.ecmaVersion<8||this.strict||t.kind!==`var`||t.declarations[0].id.type!==`Identifier`)&&this.raise(t.start,(n?`for-in`:`for-of`)+` loop variable declaration may not have an initializer`),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(V.parenR),e.body=this.parseStatement(`for`),this.exitScope(),this.labels.pop(),this.finishNode(e,n?`ForInStatement`:`ForOfStatement`)},H.parseVar=function(e,t,n,r){for(e.declarations=[],e.kind=n;;){var i=this.startNode();if(this.parseVarId(i,n),this.eat(V.eq)?i.init=this.parseMaybeAssign(t):!r&&n===`const`&&!(this.type===V._in||this.options.ecmaVersion>=6&&this.isContextual(`of`))?this.unexpected():!r&&(n===`using`||n===`await using`)&&this.options.ecmaVersion>=17&&this.type!==V._in&&!this.isContextual(`of`)?this.raise(this.lastTokEnd,`Missing initializer in `+n+` declaration`):!r&&i.id.type!==`Identifier`&&(!t||this.type!==V._in&&!this.isContextual(`of`))?this.raise(this.lastTokEnd,`Complex binding patterns require an initialization value`):i.init=null,e.declarations.push(this.finishNode(i,`VariableDeclarator`)),!this.eat(V.comma))break}return e},H.parseVarId=function(e,t){e.id=t===`using`||t===`await using`?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,t===`var`?$l:eu,!1)};var fu=1,pu=2,mu=4;H.parseFunction=function(e,t,n,r,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===V.star&&t&pu&&this.unexpected(),e.generator=this.eat(V.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&fu&&(e.id=t&mu&&this.type!==V.name?null:this.parseIdent(),e.id&&!(t&pu)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?$l:eu:tu));var a=this.yieldPos,o=this.awaitPos,s=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Zl(e.async,e.generator)),t&fu||(e.id=this.type===V.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1,i),this.yieldPos=a,this.awaitPos=o,this.awaitIdentPos=s,this.finishNode(e,t&fu?`FunctionDeclaration`:`FunctionExpression`)},H.parseFunctionParams=function(e){this.expect(V.parenL),e.params=this.parseBindingList(V.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},H.parseClass=function(e,t){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.enterClassBody(),i=this.startNode(),a=!1;for(i.body=[],this.expect(V.braceL);this.type!==V.braceR;){var o=this.parseClassElement(e.superClass!==null);o&&(i.body.push(o),o.type===`MethodDefinition`&&o.kind===`constructor`?(a&&this.raiseRecoverable(o.start,`Duplicate constructor in the same class`),a=!0):o.key&&o.key.type===`PrivateIdentifier`&&hu(r,o)&&this.raiseRecoverable(o.key.start,`Identifier '#`+o.key.name+`' has already been declared`))}return this.strict=n,this.next(),e.body=this.finishNode(i,`ClassBody`),this.exitClassBody(),this.finishNode(e,t?`ClassDeclaration`:`ClassExpression`)},H.parseClassElement=function(e){if(this.eat(V.semi))return null;var t=this.options.ecmaVersion,n=this.startNode(),r=``,i=!1,a=!1,o=`method`,s=!1;if(this.eatContextual(`static`)){if(t>=13&&this.eat(V.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===V.star?s=!0:r=`static`}if(n.static=s,!r&&t>=8&&this.eatContextual(`async`)&&((this.isClassElementNameStart()||this.type===V.star)&&!this.canInsertSemicolon()?a=!0:r=`async`),!r&&(t>=9||!a)&&this.eat(V.star)&&(i=!0),!r&&!a&&!i){var c=this.value;(this.eatContextual(`get`)||this.eatContextual(`set`))&&(this.isClassElementNameStart()?o=c:r=c)}if(r?(n.computed=!1,n.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),n.key.name=r,this.finishNode(n.key,`Identifier`)):this.parseClassElementName(n),t<13||this.type===V.parenL||o!==`method`||i||a){var l=!n.static&&gu(n,`constructor`),u=l&&e;l&&o!==`method`&&this.raise(n.key.start,`Constructor can't have get/set modifier`),n.kind=l?`constructor`:o,this.parseClassMethod(n,i,a,u)}else this.parseClassField(n);return n},H.isClassElementNameStart=function(){return this.type===V.name||this.type===V.privateId||this.type===V.num||this.type===V.string||this.type===V.bracketL||this.type.keyword},H.parseClassElementName=function(e){this.type===V.privateId?(this.value===`constructor`&&this.raise(this.start,`Classes can't have an element named '#constructor'`),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},H.parseClassMethod=function(e,t,n,r){var i=e.key;e.kind===`constructor`?(t&&this.raise(i.start,`Constructor can't be a generator`),n&&this.raise(i.start,`Constructor can't be an async method`)):e.static&&gu(e,`prototype`)&&this.raise(i.start,`Classes may not have a static property named prototype`);var a=e.value=this.parseMethod(t,n,r);return e.kind===`get`&&a.params.length!==0&&this.raiseRecoverable(a.start,`getter should have no params`),e.kind===`set`&&a.params.length!==1&&this.raiseRecoverable(a.start,`setter should have exactly one param`),e.kind===`set`&&a.params[0].type===`RestElement`&&this.raiseRecoverable(a.params[0].start,`Setter cannot use rest params`),this.finishNode(e,`MethodDefinition`)},H.parseClassField=function(e){return gu(e,`constructor`)?this.raise(e.key.start,`Classes can't have a field named 'constructor'`):e.static&&gu(e,`prototype`)&&this.raise(e.key.start,`Classes can't have a static field named 'prototype'`),this.eat(V.eq)?(this.enterScope(Jl|Gl),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,`PropertyDefinition`)},H.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(ql|Gl);this.type!==V.braceR;){var n=this.parseStatement(null);e.body.push(n)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,`StaticBlock`)},H.parseClassId=function(e,t){this.type===V.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,eu,!1)):(t===!0&&this.unexpected(),e.id=null)},H.parseClassSuper=function(e){e.superClass=this.eat(V._extends)?this.parseExprSubscripts(null,!1):null},H.enterClassBody=function(){var e={declared:/* @__PURE__ */ Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},H.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,n=e.used;if(this.options.checkPrivateFields)for(var r=this.privateNameStack.length,i=r===0?null:this.privateNameStack[r-1],a=0;a<n.length;++a){var o=n[a];El(t,o.name)||(i?i.used.push(o):this.raiseRecoverable(o.start,`Private field '#`+o.name+`' must be declared in an enclosing class`))}};function hu(e,t){var n=t.key.name,r=e[n],i=`true`;return t.type===`MethodDefinition`&&(t.kind===`get`||t.kind===`set`)&&(i=(t.static?`s`:`i`)+t.kind),r===`iget`&&i===`iset`||r===`iset`&&i===`iget`||r===`sget`&&i===`sset`||r===`sset`&&i===`sget`?(e[n]=`true`,!1):r?!0:(e[n]=i,!1)}function gu(e,t){var n=e.computed,r=e.key;return!n&&(r.type===`Identifier`&&r.name===t||r.type===`Literal`&&r.value===t)}H.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual(`as`)?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual(`from`),this.type!==V.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,`ExportAllDeclaration`)},H.parseExport=function(e,t){if(this.next(),this.eat(V.star))return this.parseExportAllDeclaration(e,t);if(this.eat(V._default))return this.checkExport(t,`default`,this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,`ExportDefaultDeclaration`);if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),e.declaration.type===`VariableDeclaration`?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[]);else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual(`from`))this.type!==V.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var n=0,r=e.specifiers;n<r.length;n+=1){var i=r[n];this.checkUnreserved(i.local),this.checkLocalExport(i.local),i.local.type===`Literal`&&this.raise(i.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[])}this.semicolon()}return this.finishNode(e,`ExportNamedDeclaration`)},H.parseExportDeclaration=function(e){return this.parseStatement(null)},H.parseExportDefaultDeclaration=function(){var e;if(this.type===V._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,fu|mu,!1,e)}if(this.type===V._class){var n=this.startNode();return this.parseClass(n,`nullableID`)}var r=this.parseMaybeAssign();return this.semicolon(),r},H.checkExport=function(e,t,n){e&&(typeof t!=`string`&&(t=t.type===`Identifier`?t.name:t.value),El(e,t)&&this.raiseRecoverable(n,`Duplicate export '`+t+`'`),e[t]=!0)},H.checkPatternExport=function(e,t){var n=t.type;if(n===`Identifier`)this.checkExport(e,t,t.start);else if(n===`ObjectPattern`)for(var r=0,i=t.properties;r<i.length;r+=1){var a=i[r];this.checkPatternExport(e,a)}else if(n===`ArrayPattern`)for(var o=0,s=t.elements;o<s.length;o+=1){var c=s[o];c&&this.checkPatternExport(e,c)}else n===`Property`?this.checkPatternExport(e,t.value):n===`AssignmentPattern`?this.checkPatternExport(e,t.left):n===`RestElement`&&this.checkPatternExport(e,t.argument)},H.checkVariableExport=function(e,t){if(e)for(var n=0,r=t;n<r.length;n+=1){var i=r[n];this.checkPatternExport(e,i.id)}},H.shouldParseExportStatement=function(){return this.type.keyword===`var`||this.type.keyword===`const`||this.type.keyword===`class`||this.type.keyword===`function`||this.isLet()||this.isAsyncFunction()},H.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual(`as`)?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,`ExportSpecifier`)},H.parseExportSpecifiers=function(e){var t=[],n=!0;for(this.expect(V.braceL);!this.eat(V.braceR);){if(n)n=!1;else if(this.expect(V.comma),this.afterTrailingComma(V.braceR))break;t.push(this.parseExportSpecifier(e))}return t},H.parseImport=function(e){return this.next(),this.type===V.string?(e.specifiers=du,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual(`from`),e.source=this.type===V.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,`ImportDeclaration`)},H.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual(`as`)?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,eu),this.finishNode(e,`ImportSpecifier`)},H.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,eu),this.finishNode(e,`ImportDefaultSpecifier`)},H.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual(`as`),e.local=this.parseIdent(),this.checkLValSimple(e.local,eu),this.finishNode(e,`ImportNamespaceSpecifier`)},H.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===V.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(V.comma)))return e;if(this.type===V.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(V.braceL);!this.eat(V.braceR);){if(t)t=!1;else if(this.expect(V.comma),this.afterTrailingComma(V.braceR))break;e.push(this.parseImportSpecifier())}return e},H.parseWithClause=function(){var e=[];if(!this.eat(V._with))return e;this.expect(V.braceL);for(var t={},n=!0;!this.eat(V.braceR);){if(n)n=!1;else if(this.expect(V.comma),this.afterTrailingComma(V.braceR))break;var r=this.parseImportAttribute(),i=r.key.type===`Identifier`?r.key.name:r.key.value;El(t,i)&&this.raiseRecoverable(r.key.start,`Duplicate attribute key '`+i+`'`),t[i]=!0,e.push(r)}return e},H.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===V.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!==`never`),this.expect(V.colon),this.type!==V.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,`ImportAttribute`)},H.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===V.string){var e=this.parseLiteral(this.value);return jl.test(e.value)&&this.raise(e.start,`An export name cannot include a lone surrogate.`),e}return this.parseIdent(!0)},H.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},H.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&e.type===`ExpressionStatement`&&e.expression.type===`Literal`&&typeof e.expression.value==`string`&&(this.input[e.start]===`"`||this.input[e.start]===`'`)};var _u=iu.prototype;_u.toAssignable=function(e,t,n){if(this.options.ecmaVersion>=6&&e)switch(e.type){case`Identifier`:this.inAsync&&e.name===`await`&&this.raise(e.start,`Cannot use 'await' as identifier inside an async function`);break;case`ObjectPattern`:case`ArrayPattern`:case`AssignmentPattern`:case`RestElement`:break;case`ObjectExpression`:e.type=`ObjectPattern`,n&&this.checkPatternErrors(n,!0);for(var r=0,i=e.properties;r<i.length;r+=1){var a=i[r];this.toAssignable(a,t),a.type===`RestElement`&&(a.argument.type===`ArrayPattern`||a.argument.type===`ObjectPattern`)&&this.raise(a.argument.start,`Unexpected token`)}break;case`Property`:e.kind!==`init`&&this.raise(e.key.start,`Object pattern can't contain getter or setter`),this.toAssignable(e.value,t);break;case`ArrayExpression`:e.type=`ArrayPattern`,n&&this.checkPatternErrors(n,!0),this.toAssignableList(e.elements,t);break;case`SpreadElement`:e.type=`RestElement`,this.toAssignable(e.argument,t),e.argument.type===`AssignmentPattern`&&this.raise(e.argument.start,`Rest elements cannot have a default value`);break;case`AssignmentExpression`:e.operator!==`=`&&this.raise(e.left.end,`Only '=' operator can be used for specifying default value.`),e.type=`AssignmentPattern`,delete e.operator,this.toAssignable(e.left,t);break;case`ParenthesizedExpression`:this.toAssignable(e.expression,t,n);break;case`ChainExpression`:this.raiseRecoverable(e.start,`Optional chaining cannot appear in left-hand side`);break;case`MemberExpression`:if(!t)break;default:this.raise(e.start,`Assigning to rvalue`)}else n&&this.checkPatternErrors(n,!0);return e},_u.toAssignableList=function(e,t){for(var n=e.length,r=0;r<n;r++){var i=e[r];i&&this.toAssignable(i,t)}if(n){var a=e[n-1];this.options.ecmaVersion===6&&t&&a&&a.type===`RestElement`&&a.argument.type!==`Identifier`&&this.unexpected(a.argument.start)}return e},_u.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,`SpreadElement`)},_u.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==V.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,`RestElement`)},_u.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case V.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(V.bracketR,!0,!0),this.finishNode(e,`ArrayPattern`);case V.braceL:return this.parseObj(!0)}return this.parseIdent()},_u.parseBindingList=function(e,t,n,r){for(var i=[],a=!0;!this.eat(e);)if(a?a=!1:this.expect(V.comma),t&&this.type===V.comma)i.push(null);else if(n&&this.afterTrailingComma(e))break;else if(this.type===V.ellipsis){var o=this.parseRestBinding();this.parseBindingListItem(o),i.push(o),this.type===V.comma&&this.raiseRecoverable(this.start,`Comma is not permitted after the rest element`),this.expect(e);break}else i.push(this.parseAssignableListItem(r));return i},_u.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t},_u.parseBindingListItem=function(e){return e},_u.parseMaybeDefault=function(e,t,n){if(n||=this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(V.eq))return n;var r=this.startNodeAt(e,t);return r.left=n,r.right=this.parseMaybeAssign(),this.finishNode(r,`AssignmentPattern`)},_u.checkLValSimple=function(e,t,n){t===void 0&&(t=Ql);var r=t!==Ql;switch(e.type){case`Identifier`:this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(r?`Binding `:`Assigning to `)+e.name+` in strict mode`),r&&(t===eu&&e.name===`let`&&this.raiseRecoverable(e.start,`let is disallowed as a lexically bound name`),n&&(El(n,e.name)&&this.raiseRecoverable(e.start,`Argument name clash`),n[e.name]=!0),t!==ru&&this.declareName(e.name,t,e.start));break;case`ChainExpression`:this.raiseRecoverable(e.start,`Optional chaining cannot appear in left-hand side`);break;case`MemberExpression`:r&&this.raiseRecoverable(e.start,`Binding member expression`);break;case`ParenthesizedExpression`:return r&&this.raiseRecoverable(e.start,`Binding parenthesized expression`),this.checkLValSimple(e.expression,t,n);default:this.raise(e.start,(r?`Binding`:`Assigning to`)+` rvalue`)}},_u.checkLValPattern=function(e,t,n){switch(t===void 0&&(t=Ql),e.type){case`ObjectPattern`:for(var r=0,i=e.properties;r<i.length;r+=1){var a=i[r];this.checkLValInnerPattern(a,t,n)}break;case`ArrayPattern`:for(var o=0,s=e.elements;o<s.length;o+=1){var c=s[o];c&&this.checkLValInnerPattern(c,t,n)}break;default:this.checkLValSimple(e,t,n)}},_u.checkLValInnerPattern=function(e,t,n){switch(t===void 0&&(t=Ql),e.type){case`Property`:this.checkLValInnerPattern(e.value,t,n);break;case`AssignmentPattern`:this.checkLValPattern(e.left,t,n);break;case`RestElement`:this.checkLValPattern(e.argument,t,n);break;default:this.checkLValPattern(e,t,n)}};var vu=function(e,t,n,r,i){this.token=e,this.isExpr=!!t,this.preserveSpace=!!n,this.override=r,this.generator=!!i},yu={b_stat:new vu(`{`,!1),b_expr:new vu(`{`,!0),b_tmpl:new vu("${",!1),p_stat:new vu(`(`,!1),p_expr:new vu(`(`,!0),q_tmpl:new vu("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new vu(`function`,!1),f_expr:new vu(`function`,!0),f_expr_gen:new vu(`function`,!0,!1,null,!0),f_gen:new vu(`function`,!1,!1,null,!0)},bu=iu.prototype;bu.initialContext=function(){return[yu.b_stat]},bu.curContext=function(){return this.context[this.context.length-1]},bu.braceIsBlock=function(e){var t=this.curContext();return t===yu.f_expr||t===yu.f_stat?!0:e===V.colon&&(t===yu.b_stat||t===yu.b_expr)?!t.isExpr:e===V._return||e===V.name&&this.exprAllowed?_l.test(this.input.slice(this.lastTokEnd,this.start)):e===V._else||e===V.semi||e===V.eof||e===V.parenR||e===V.arrow?!0:e===V.braceL?t===yu.b_stat:e===V._var||e===V._const||e===V.name?!1:!this.exprAllowed},bu.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token===`function`)return t.generator}return!1},bu.updateContext=function(e){var t,n=this.type;n.keyword&&e===V.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr},bu.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},V.parenR.updateContext=V.braceR.updateContext=function(){if(this.context.length===1)this.exprAllowed=!0;else{var e=this.context.pop();e===yu.b_stat&&this.curContext().token===`function`&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}},V.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?yu.b_stat:yu.b_expr),this.exprAllowed=!0},V.dollarBraceL.updateContext=function(){this.context.push(yu.b_tmpl),this.exprAllowed=!0},V.parenL.updateContext=function(e){var t=e===V._if||e===V._for||e===V._with||e===V._while;this.context.push(t?yu.p_stat:yu.p_expr),this.exprAllowed=!0},V.incDec.updateContext=function(){},V._function.updateContext=V._class.updateContext=function(e){e.beforeExpr&&e!==V._else&&(e!==V.semi||this.curContext()===yu.p_stat)&&!(e===V._return&&_l.test(this.input.slice(this.lastTokEnd,this.start)))&&(e!==V.colon&&e!==V.braceL||this.curContext()!==yu.b_stat)?this.context.push(yu.f_expr):this.context.push(yu.f_stat),this.exprAllowed=!1},V.colon.updateContext=function(){this.curContext().token===`function`&&this.context.pop(),this.exprAllowed=!0},V.backQuote.updateContext=function(){this.curContext()===yu.q_tmpl?this.context.pop():this.context.push(yu.q_tmpl),this.exprAllowed=!1},V.star.updateContext=function(e){if(e===V._function){var t=this.context.length-1;this.context[t]===yu.f_expr?this.context[t]=yu.f_expr_gen:this.context[t]=yu.f_gen}this.exprAllowed=!0},V.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==V.dot&&(this.value===`of`&&!this.exprAllowed||this.value===`yield`&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var U=iu.prototype;U.checkPropClash=function(e,t,n){if(!(this.options.ecmaVersion>=9&&e.type===`SpreadElement`)&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var r=e.key,i;switch(r.type){case`Identifier`:i=r.name;break;case`Literal`:i=String(r.value);break;default:return}var a=e.kind;if(this.options.ecmaVersion>=6)i===`__proto__`&&a===`init`&&(t.proto&&(n?n.doubleProto<0&&(n.doubleProto=r.start):this.raiseRecoverable(r.start,`Redefinition of __proto__ property`)),t.proto=!0);else{i=`$`+i;var o=t[i];o?(a===`init`?this.strict&&o.init||o.get||o.set:o.init||o[a])&&this.raiseRecoverable(r.start,`Redefinition of property`):o=t[i]={init:!1,get:!1,set:!1},o[a]=!0}}},U.parseExpression=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===V.comma){var a=this.startNodeAt(n,r);for(a.expressions=[i];this.eat(V.comma);)a.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(a,`SequenceExpression`)}return i},U.parseMaybeAssign=function(e,t,n){if(this.isContextual(`yield`)){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var r=!1,i=-1,a=-1,o=-1;t?(i=t.parenthesizedAssign,a=t.trailingComma,o=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new cu,r=!0);var s=this.start,c=this.startLoc;(this.type===V.parenL||this.type===V.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e===`await`);var l=this.parseMaybeConditional(e,t);if(n&&(l=n.call(this,l,s,c)),this.type.isAssign){var u=this.startNodeAt(s,c);return u.operator=this.value,this.type===V.eq&&(l=this.toAssignable(l,!1,t)),r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=l.start&&(t.shorthandAssign=-1),this.type===V.eq?this.checkLValPattern(l):this.checkLValSimple(l),u.left=l,this.next(),u.right=this.parseMaybeAssign(e),o>-1&&(t.doubleProto=o),this.finishNode(u,`AssignmentExpression`)}return r&&this.checkExpressionErrors(t,!0),i>-1&&(t.parenthesizedAssign=i),a>-1&&(t.trailingComma=a),l},U.parseMaybeConditional=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(V.question)){var a=this.startNodeAt(n,r);return a.test=i,a.consequent=this.parseMaybeAssign(),this.expect(V.colon),a.alternate=this.parseMaybeAssign(e),this.finishNode(a,`ConditionalExpression`)}return i},U.parseExprOps=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||i.start===n&&i.type===`ArrowFunctionExpression`?i:this.parseExprOp(i,n,r,-1,e)},U.parseExprOp=function(e,t,n,r,i){var a=this.type.binop;if(a!=null&&(!i||this.type!==V._in)&&a>r){var o=this.type===V.logicalOR||this.type===V.logicalAND,s=this.type===V.coalesce;s&&(a=V.logicalAND.binop);var c=this.value;this.next();var l=this.start,u=this.startLoc,d=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,i),l,u,a,i),f=this.buildBinary(t,n,e,d,c,o||s);return(o&&this.type===V.coalesce||s&&(this.type===V.logicalOR||this.type===V.logicalAND))&&this.raiseRecoverable(this.start,`Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses`),this.parseExprOp(f,t,n,r,i)}return e},U.buildBinary=function(e,t,n,r,i,a){r.type===`PrivateIdentifier`&&this.raise(r.start,`Private identifier can only be left side of binary expression`);var o=this.startNodeAt(e,t);return o.left=n,o.operator=i,o.right=r,this.finishNode(o,a?`LogicalExpression`:`BinaryExpression`)},U.parseMaybeUnary=function(e,t,n,r){var i=this.start,a=this.startLoc,o;if(this.isContextual(`await`)&&this.canAwait)o=this.parseAwait(r),t=!0;else if(this.type.prefix){var s=this.startNode(),c=this.type===V.incDec;s.operator=this.value,s.prefix=!0,this.next(),s.argument=this.parseMaybeUnary(null,!0,c,r),this.checkExpressionErrors(e,!0),c?this.checkLValSimple(s.argument):this.strict&&s.operator===`delete`&&xu(s.argument)?this.raiseRecoverable(s.start,`Deleting local variable in strict mode`):s.operator===`delete`&&Su(s.argument)?this.raiseRecoverable(s.start,`Private fields can not be deleted`):t=!0,o=this.finishNode(s,c?`UpdateExpression`:`UnaryExpression`)}else if(!t&&this.type===V.privateId)(r||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),o=this.parsePrivateIdent(),this.type!==V._in&&this.unexpected();else{if(o=this.parseExprSubscripts(e,r),this.checkExpressionErrors(e))return o;for(;this.type.postfix&&!this.canInsertSemicolon();){var l=this.startNodeAt(i,a);l.operator=this.value,l.prefix=!1,l.argument=o,this.checkLValSimple(o),this.next(),o=this.finishNode(l,`UpdateExpression`)}}if(!n&&this.eat(V.starstar)){if(t)this.unexpected(this.lastTokStart);else return this.buildBinary(i,a,o,this.parseMaybeUnary(null,!1,!1,r),`**`,!1)}else return o};function xu(e){return e.type===`Identifier`||e.type===`ParenthesizedExpression`&&xu(e.expression)}function Su(e){return e.type===`MemberExpression`&&e.property.type===`PrivateIdentifier`||e.type===`ChainExpression`&&Su(e.expression)||e.type===`ParenthesizedExpression`&&Su(e.expression)}U.parseExprSubscripts=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprAtom(e,t);if(i.type===`ArrowFunctionExpression`&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==`)`)return i;var a=this.parseSubscripts(i,n,r,!1,t);return e&&a.type===`MemberExpression`&&(e.parenthesizedAssign>=a.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=a.start&&(e.parenthesizedBind=-1),e.trailingComma>=a.start&&(e.trailingComma=-1)),a},U.parseSubscripts=function(e,t,n,r,i){for(var a=this.options.ecmaVersion>=8&&e.type===`Identifier`&&e.name===`async`&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,o=!1;;){var s=this.parseSubscript(e,t,n,r,a,o,i);if(s.optional&&(o=!0),s===e||s.type===`ArrowFunctionExpression`){if(o){var c=this.startNodeAt(t,n);c.expression=s,s=this.finishNode(c,`ChainExpression`)}return s}e=s}},U.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(V.arrow)},U.parseSubscriptAsyncArrow=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!0,r)},U.parseSubscript=function(e,t,n,r,i,a,o){var s=this.options.ecmaVersion>=11,c=s&&this.eat(V.questionDot);r&&c&&this.raise(this.lastTokStart,`Optional chaining cannot appear in the callee of new expressions`);var l=this.eat(V.bracketL);if(l||c&&this.type!==V.parenL&&this.type!==V.backQuote||this.eat(V.dot)){var u=this.startNodeAt(t,n);u.object=e,l?(u.property=this.parseExpression(),this.expect(V.bracketR)):u.property=this.type===V.privateId&&e.type!==`Super`?this.parsePrivateIdent():this.parseIdent(this.options.allowReserved!==`never`),u.computed=!!l,s&&(u.optional=c),e=this.finishNode(u,`MemberExpression`)}else if(!r&&this.eat(V.parenL)){var d=new cu,f=this.yieldPos,p=this.awaitPos,m=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var h=this.parseExprList(V.parenR,this.options.ecmaVersion>=8,!1,d);if(i&&!c&&this.shouldParseAsyncArrow())return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,`Cannot use 'await' as identifier inside an async function`),this.yieldPos=f,this.awaitPos=p,this.awaitIdentPos=m,this.parseSubscriptAsyncArrow(t,n,h,o);this.checkExpressionErrors(d,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=p||this.awaitPos,this.awaitIdentPos=m||this.awaitIdentPos;var g=this.startNodeAt(t,n);g.callee=e,g.arguments=h,s&&(g.optional=c),e=this.finishNode(g,`CallExpression`)}else if(this.type===V.backQuote){(c||a)&&this.raise(this.start,`Optional chaining cannot appear in the tag of tagged template expressions`);var _=this.startNodeAt(t,n);_.tag=e,_.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(_,`TaggedTemplateExpression`)}return e},U.parseExprAtom=function(e,t,n){this.type===V.slash&&this.readRegexp();var r,i=this.potentialArrowAt===this.start;switch(this.type){case V._super:return this.allowSuper||this.raise(this.start,`'super' keyword outside a method`),r=this.startNode(),this.next(),this.type===V.parenL&&!this.allowDirectSuper&&this.raise(r.start,`super() call outside constructor of a subclass`),this.type!==V.dot&&this.type!==V.bracketL&&this.type!==V.parenL&&this.unexpected(),this.finishNode(r,`Super`);case V._this:return r=this.startNode(),this.next(),this.finishNode(r,`ThisExpression`);case V.name:var a=this.start,o=this.startLoc,s=this.containsEsc,c=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!s&&c.name===`async`&&!this.canInsertSemicolon()&&this.eat(V._function))return this.overrideContext(yu.f_expr),this.parseFunction(this.startNodeAt(a,o),0,!1,!0,t);if(i&&!this.canInsertSemicolon()){if(this.eat(V.arrow))return this.parseArrowExpression(this.startNodeAt(a,o),[c],!1,t);if(this.options.ecmaVersion>=8&&c.name===`async`&&this.type===V.name&&!s&&(!this.potentialArrowInForAwait||this.value!==`of`||this.containsEsc))return c=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(V.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(a,o),[c],!0,t)}return c;case V.regexp:var l=this.value;return r=this.parseLiteral(l.value),r.regex={pattern:l.pattern,flags:l.flags},r;case V.num:case V.string:return this.parseLiteral(this.value);case V._null:case V._true:case V._false:return r=this.startNode(),r.value=this.type===V._null?null:this.type===V._true,r.raw=this.type.keyword,this.next(),this.finishNode(r,`Literal`);case V.parenL:var u=this.start,d=this.parseParenAndDistinguishExpression(i,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(d)&&(e.parenthesizedAssign=u),e.parenthesizedBind<0&&(e.parenthesizedBind=u)),d;case V.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(V.bracketR,!0,!0,e),this.finishNode(r,`ArrayExpression`);case V.braceL:return this.overrideContext(yu.b_expr),this.parseObj(!1,e);case V._function:return r=this.startNode(),this.next(),this.parseFunction(r,0);case V._class:return this.parseClass(this.startNode(),!1);case V._new:return this.parseNew();case V.backQuote:return this.parseTemplate();case V._import:return this.options.ecmaVersion>=11?this.parseExprImport(n):this.unexpected();default:return this.parseExprAtomDefault()}},U.parseExprAtomDefault=function(){this.unexpected()},U.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,`Escape sequence in keyword import`),this.next(),this.type===V.parenL&&!e)return this.parseDynamicImport(t);if(this.type===V.dot){var n=this.startNodeAt(t.start,t.loc&&t.loc.start);return n.name=`import`,t.meta=this.finishNode(n,`Identifier`),this.parseImportMeta(t)}this.unexpected()},U.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(V.parenR)?e.options=null:(this.expect(V.comma),this.afterTrailingComma(V.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(V.parenR)||(this.expect(V.comma),this.afterTrailingComma(V.parenR)||this.unexpected())));else if(!this.eat(V.parenR)){var t=this.start;this.eat(V.comma)&&this.eat(V.parenR)?this.raiseRecoverable(t,`Trailing comma is not allowed in import()`):this.unexpected(t)}return this.finishNode(e,`ImportExpression`)},U.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!==`meta`&&this.raiseRecoverable(e.property.start,`The only valid meta property for import is 'import.meta'`),t&&this.raiseRecoverable(e.start,`'import.meta' must not contain escaped characters`),this.options.sourceType!==`module`&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,`Cannot use 'import.meta' outside a module`),this.finishNode(e,`MetaProperty`)},U.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.value==null?t.raw.slice(0,-1).replace(/_/g,``):t.value.toString()),this.next(),this.finishNode(t,`Literal`)},U.parseParenExpression=function(){this.expect(V.parenL);var e=this.parseExpression();return this.expect(V.parenR),e},U.shouldParseArrow=function(e){return!this.canInsertSemicolon()},U.parseParenAndDistinguishExpression=function(e,t){var n=this.start,r=this.startLoc,i,a=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var o=this.start,s=this.startLoc,c=[],l=!0,u=!1,d=new cu,f=this.yieldPos,p=this.awaitPos,m;for(this.yieldPos=0,this.awaitPos=0;this.type!==V.parenR;){if(l?l=!1:this.expect(V.comma),a&&this.afterTrailingComma(V.parenR,!0)){u=!0;break}if(this.type===V.ellipsis){m=this.start,c.push(this.parseParenItem(this.parseRestBinding())),this.type===V.comma&&this.raiseRecoverable(this.start,`Comma is not permitted after the rest element`);break}c.push(this.parseMaybeAssign(!1,d,this.parseParenItem))}var h=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(V.parenR),e&&this.shouldParseArrow(c)&&this.eat(V.arrow))return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=f,this.awaitPos=p,this.parseParenArrowList(n,r,c,t);(!c.length||u)&&this.unexpected(this.lastTokStart),m&&this.unexpected(m),this.checkExpressionErrors(d,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=p||this.awaitPos,c.length>1?(i=this.startNodeAt(o,s),i.expressions=c,this.finishNodeAt(i,`SequenceExpression`,h,g)):i=c[0]}else i=this.parseParenExpression();if(this.options.preserveParens){var _=this.startNodeAt(n,r);return _.expression=i,this.finishNode(_,`ParenthesizedExpression`)}return i},U.parseParenItem=function(e){return e},U.parseParenArrowList=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!1,r)};var Cu=[];U.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,`Escape sequence in keyword new`);var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===V.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name=`new`,e.meta=this.finishNode(t,`Identifier`),this.next();var n=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!==`target`&&this.raiseRecoverable(e.property.start,`The only valid meta property for new is 'new.target'`),n&&this.raiseRecoverable(e.start,`'new.target' must not contain escaped characters`),this.allowNewDotTarget||this.raiseRecoverable(e.start,`'new.target' can only be used in functions and class static block`),this.finishNode(e,`MetaProperty`)}var r=this.start,i=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),r,i,!0,!1),e.arguments=this.eat(V.parenL)?this.parseExprList(V.parenR,this.options.ecmaVersion>=8,!1):Cu,this.finishNode(e,`NewExpression`)},U.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===V.invalidTemplate?(t||this.raiseRecoverable(this.start,`Bad escape sequence in untagged template literal`),n.value={raw:this.value.replace(/\r\n?/g,`
|
|
24
24
|
`),cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
25
|
-
`),cooked:this.value},this.next(),n.tail=this.type===V.backQuote,this.finishNode(n,`TemplateElement`)},U.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(n.quasis=[r];!r.tail;)this.type===V.eof&&this.raise(this.pos,`Unterminated template literal`),this.expect(V.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(V.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,`TemplateLiteral`)},U.isAsyncProp=function(e){return!e.computed&&e.key.type===`Identifier`&&e.key.name===`async`&&(this.type===V.name||this.type===V.num||this.type===V.string||this.type===V.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===V.star)&&!_l.test(this.input.slice(this.lastTokEnd,this.start))},U.parseObj=function(e,t){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(V.braceR);){if(r)r=!1;else if(this.expect(V.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(V.braceR))break;var a=this.parseProperty(e,t);e||this.checkPropClash(a,i,t),n.properties.push(a)}return this.finishNode(n,e?`ObjectPattern`:`ObjectExpression`)},U.parseProperty=function(e,t){var n=this.startNode(),r,i,a,o;if(this.options.ecmaVersion>=9&&this.eat(V.ellipsis))return e?(n.argument=this.parseIdent(!1),this.type===V.comma&&this.raiseRecoverable(this.start,`Comma is not permitted after the rest element`),this.finishNode(n,`RestElement`)):(n.argument=this.parseMaybeAssign(!1,t),this.type===V.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(n,`SpreadElement`));this.options.ecmaVersion>=6&&(n.method=!1,n.shorthand=!1,(e||t)&&(a=this.start,o=this.startLoc),e||(r=this.eat(V.star)));var s=this.containsEsc;return this.parsePropertyName(n),!e&&!s&&this.options.ecmaVersion>=8&&!r&&this.isAsyncProp(n)?(i=!0,r=this.options.ecmaVersion>=9&&this.eat(V.star),this.parsePropertyName(n)):i=!1,this.parsePropertyValue(n,e,r,i,a,o,t,s),this.finishNode(n,`Property`)},U.parseGetterSetter=function(e){var t=e.key.name;this.parsePropertyName(e),e.value=this.parseMethod(!1),e.kind=t;var n=e.kind===`get`?0:1;if(e.value.params.length!==n){var r=e.value.start;e.kind===`get`?this.raiseRecoverable(r,`getter should have no params`):this.raiseRecoverable(r,`setter should have exactly one param`)}else e.kind===`set`&&e.value.params[0].type===`RestElement`&&this.raiseRecoverable(e.value.params[0].start,`Setter cannot use rest params`)},U.parsePropertyValue=function(e,t,n,r,i,a,o,s){(n||r)&&this.type===V.colon&&this.unexpected(),this.eat(V.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind=`init`):this.options.ecmaVersion>=6&&this.type===V.parenL?(t&&this.unexpected(),e.method=!0,e.value=this.parseMethod(n,r),e.kind=`init`):!t&&!s&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type===`Identifier`&&(e.key.name===`get`||e.key.name===`set`)&&this.type!==V.comma&&this.type!==V.braceR&&this.type!==V.eq?((n||r)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type===`Identifier`?((n||r)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name===`await`&&!this.awaitIdentPos&&(this.awaitIdentPos=i),t?e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key)):this.type===V.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.kind=`init`,e.shorthand=!0):this.unexpected()},U.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(V.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(V.bracketR),e.key;e.computed=!1}return e.key=this.type===V.num||this.type===V.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!==`never`)},U.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},U.parseMethod=function(e,t,n){var r=this.startNode(),i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=e),this.options.ecmaVersion>=8&&(r.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Zl(t,r.generator)|Gl|(n?Kl:0)),this.expect(V.parenL),r.params=this.parseBindingList(V.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(r,`FunctionExpression`)},U.parseArrowExpression=function(e,t,n,r){var i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.enterScope(Zl(n,!1)|Ul),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,r),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,`ArrowFunctionExpression`)},U.parseFunctionBody=function(e,t,n,r){var i=t&&this.type!==V.braceL,a=this.strict,o=!1;if(i)e.body=this.parseMaybeAssign(r),e.expression=!0,this.checkParams(e,!1);else{var s=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!a||s)&&(o=this.strictDirective(this.end),o&&s&&this.raiseRecoverable(e.start,`Illegal 'use strict' directive in function with non-simple parameter list`));var c=this.labels;this.labels=[],o&&(this.strict=!0),this.checkParams(e,!a&&!o&&!t&&!n&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,ru),e.body=this.parseBlock(!1,void 0,o&&!a),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=c}this.exitScope()},U.isSimpleParamList=function(e){for(var t=0,n=e;t<n.length;t+=1)if(n[t].type!==`Identifier`)return!1;return!0},U.checkParams=function(e,t){for(var n=/* @__PURE__ */ Object.create(null),r=0,i=e.params;r<i.length;r+=1){var a=i[r];this.checkLValInnerPattern(a,$l,t?null:n)}},U.parseExprList=function(e,t,n,r){for(var i=[],a=!0;!this.eat(e);){if(a)a=!1;else if(this.expect(V.comma),t&&this.afterTrailingComma(e))break;var o=void 0;n&&this.type===V.comma?o=null:this.type===V.ellipsis?(o=this.parseSpread(r),r&&this.type===V.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):o=this.parseMaybeAssign(!1,r),i.push(o)}return i},U.checkUnreserved=function(e){var t=e.start,n=e.end,r=e.name;this.inGenerator&&r===`yield`&&this.raiseRecoverable(t,`Cannot use 'yield' as identifier inside a generator`),this.inAsync&&r===`await`&&this.raiseRecoverable(t,`Cannot use 'await' as identifier inside an async function`),!(this.currentThisScope().flags&Xl)&&r===`arguments`&&this.raiseRecoverable(t,`Cannot use 'arguments' in class field initializer`),this.inClassStaticBlock&&(r===`arguments`||r===`await`)&&this.raise(t,`Cannot use `+r+` in class static initialization block`),this.keywords.test(r)&&this.raise(t,`Unexpected keyword '`+r+`'`),!(this.options.ecmaVersion<6&&this.input.slice(t,n).indexOf(`\\`)!==-1)&&(this.strict?this.reservedWordsStrict:this.reservedWords).test(r)&&(!this.inAsync&&r===`await`&&this.raiseRecoverable(t,`Cannot use keyword 'await' outside an async function`),this.raiseRecoverable(t,`The keyword '`+r+`' is reserved`))},U.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,`Identifier`),e||(this.checkUnreserved(t),t.name===`await`&&!this.awaitIdentPos&&(this.awaitIdentPos=t.start)),t},U.parseIdentNode=function(){var e=this.startNode();return this.type===V.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,(e.name===`class`||e.name===`function`)&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=V.name):this.unexpected(),e},U.parsePrivateIdent=function(){var e=this.startNode();return this.type===V.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,`PrivateIdentifier`),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(e.start,`Private field '#`+e.name+`' must be declared in an enclosing class`):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e},U.parseYield=function(e){this.yieldPos||=this.start;var t=this.startNode();return this.next(),this.type===V.semi||this.canInsertSemicolon()||this.type!==V.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(V.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,`YieldExpression`)},U.parseAwait=function(e){this.awaitPos||=this.start;var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,`AwaitExpression`)};var wu=iu.prototype;wu.raise=function(e,t){var n=Pl(this.input,e);t+=` (`+n.line+`:`+n.column+`)`,this.sourceFile&&(t+=` in `+this.sourceFile);var r=SyntaxError(t);throw r.pos=e,r.loc=n,r.raisedAt=this.pos,r},wu.raiseRecoverable=wu.raise,wu.curPosition=function(){if(this.options.locations)return new Ml(this.curLine,this.pos-this.lineStart)};var Tu=iu.prototype,Eu=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[]};Tu.enterScope=function(e){this.scopeStack.push(new Eu(e))},Tu.exitScope=function(){this.scopeStack.pop()},Tu.treatFunctionsAsVarInScope=function(e){return e.flags&Bl||!this.inModule&&e.flags&zl},Tu.declareName=function(e,t,n){var r=!1;if(t===eu){var i=this.currentScope();r=i.lexical.indexOf(e)>-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&i.flags&zl&&delete this.undefinedExports[e]}else if(t===nu)this.currentScope().lexical.push(e);else if(t===tu){var a=this.currentScope();r=this.treatFunctionsAsVar?a.lexical.indexOf(e)>-1:a.lexical.indexOf(e)>-1||a.var.indexOf(e)>-1,a.functions.push(e)}else for(var o=this.scopeStack.length-1;o>=0;--o){var s=this.scopeStack[o];if(s.lexical.indexOf(e)>-1&&!(s.flags&Wl&&s.lexical[0]===e)||!this.treatFunctionsAsVarInScope(s)&&s.functions.indexOf(e)>-1){r=!0;break}if(s.var.push(e),this.inModule&&s.flags&zl&&delete this.undefinedExports[e],s.flags&Xl)break}r&&this.raiseRecoverable(n,`Identifier '`+e+`' has already been declared`)},Tu.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)},Tu.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},Tu.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(Xl|Jl|ql))return t}},Tu.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(Xl|Jl|ql)&&!(t.flags&Ul))return t}};var Du=function(e,t,n){this.type=``,this.start=t,this.end=0,e.options.locations&&(this.loc=new Nl(e,n)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},Ou=iu.prototype;Ou.startNode=function(){return new Du(this,this.start,this.startLoc)},Ou.startNodeAt=function(e,t){return new Du(this,e,t)};function ku(e,t,n,r){return e.type=t,e.end=n,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=n),e}Ou.finishNode=function(e,t){return ku.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},Ou.finishNodeAt=function(e,t,n,r){return ku.call(this,e,t,n,r)},Ou.copyNode=function(e){var t=new Du(this,e.start,this.startLoc);for(var n in e)t[n]=e[n];return t};var Au=`Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz`,ju=`ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS`,Mu=ju+` Extended_Pictographic`,Nu=Mu,Pu=Nu+` EBase EComp EMod EPres ExtPict`,Fu=Pu,Iu={9:ju,10:Mu,11:Nu,12:Pu,13:Fu,14:Fu},Lu={9:``,10:``,11:``,12:``,13:``,14:`Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji`},Ru=`Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu`,zu=`Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb`,Bu=zu+` Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd`,Vu=Bu+` Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho`,Hu=Vu+` Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi`,Uu=Hu+` Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith`,Wu={9:zu,10:Bu,11:Vu,12:Hu,13:Uu,14:Uu+` `+Au},Gu={};function Ku(e){var t=Gu[e]={binary:kl(Iu[e]+` `+Ru),binaryOfStrings:kl(Lu[e]),nonBinary:{General_Category:kl(Ru),Script:kl(Wu[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(Ju=0,Yu=[9,10,11,12,13,14];Ju<Yu.length;Ju+=1)qu=Yu[Ju],Ku(qu);var qu,Ju,Yu,W=iu.prototype,Xu=function(e,t){this.parent=e,this.base=t||this};Xu.prototype.separatedFrom=function(e){for(var t=this;t;t=t.parent)for(var n=e;n;n=n.parent)if(t.base===n.base&&t!==n)return!0;return!1},Xu.prototype.sibling=function(){return new Xu(this.parent,this.base)};var Zu=function(e){this.parser=e,this.validFlags=`gim`+(e.options.ecmaVersion>=6?`uy`:``)+(e.options.ecmaVersion>=9?`s`:``)+(e.options.ecmaVersion>=13?`d`:``)+(e.options.ecmaVersion>=15?`v`:``),this.unicodeProperties=Gu[e.options.ecmaVersion>=14?14:e.options.ecmaVersion],this.source=``,this.flags=``,this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue=``,this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=/* @__PURE__ */ Object.create(null),this.backReferenceNames=[],this.branchID=null};Zu.prototype.reset=function(e,t,n){var r=n.indexOf(`v`)!==-1,i=n.indexOf(`u`)!==-1;this.start=e|0,this.source=t+``,this.flags=n,r&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=i&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=i&&this.parser.options.ecmaVersion>=9)},Zu.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,`Invalid regular expression: /`+this.source+`/: `+e)},Zu.prototype.at=function(e,t){t===void 0&&(t=!1);var n=this.source,r=n.length;if(e>=r)return-1;var i=n.charCodeAt(e);if(!(t||this.switchU)||i<=55295||i>=57344||e+1>=r)return i;var a=n.charCodeAt(e+1);return a>=56320&&a<=57343?(i<<10)+a-56613888:i},Zu.prototype.nextIndex=function(e,t){t===void 0&&(t=!1);var n=this.source,r=n.length;if(e>=r)return r;var i=n.charCodeAt(e),a;return!(t||this.switchU)||i<=55295||i>=57344||e+1>=r||(a=n.charCodeAt(e+1))<56320||a>57343?e+1:e+2},Zu.prototype.current=function(e){return e===void 0&&(e=!1),this.at(this.pos,e)},Zu.prototype.lookahead=function(e){return e===void 0&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},Zu.prototype.advance=function(e){e===void 0&&(e=!1),this.pos=this.nextIndex(this.pos,e)},Zu.prototype.eat=function(e,t){return t===void 0&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},Zu.prototype.eatChars=function(e,t){t===void 0&&(t=!1);for(var n=this.pos,r=0,i=e;r<i.length;r+=1){var a=i[r],o=this.at(n,t);if(o===-1||o!==a)return!1;n=this.nextIndex(n,t)}return this.pos=n,!0},W.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,r=!1,i=!1,a=0;a<n.length;a++){var o=n.charAt(a);t.indexOf(o)===-1&&this.raise(e.start,`Invalid regular expression flag`),n.indexOf(o,a+1)>-1&&this.raise(e.start,`Duplicate regular expression flag`),o===`u`&&(r=!0),o===`v`&&(i=!0)}this.options.ecmaVersion>=15&&r&&i&&this.raise(e.start,`Invalid regular expression flag`)};function Qu(e){for(var t in e)return!0;return!1}W.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&Qu(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))},W.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue=``,e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames=/* @__PURE__ */ Object.create(null),e.backReferenceNames.length=0,e.branchID=null,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise(`Unmatched ')'`),(e.eat(93)||e.eat(125))&&e.raise(`Lone quantifier brackets`)),e.maxBackReference>e.numCapturingParens&&e.raise(`Invalid escape`);for(var t=0,n=e.backReferenceNames;t<n.length;t+=1){var r=n[t];e.groupNames[r]||e.raise(`Invalid named capture referenced`)}},W.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new Xu(e.branchID,null)),this.regexp_alternative(e);e.eat(124);)t&&(e.branchID=e.branchID.sibling()),this.regexp_alternative(e);t&&(e.branchID=e.branchID.parent),this.regexp_eatQuantifier(e,!0)&&e.raise(`Nothing to repeat`),e.eat(123)&&e.raise(`Lone quantifier brackets`)},W.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},W.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise(`Invalid quantifier`),!0):(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))?(this.regexp_eatQuantifier(e),!0):!1},W.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var n=!1;if(this.options.ecmaVersion>=9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise(`Unterminated group`),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=t,!1},W.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1},W.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},W.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var r=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return i!==-1&&i<r&&!t&&e.raise(`numbers out of order in {} quantifier`),!0;e.switchU&&!t&&e.raise(`Incomplete quantifier`),e.pos=n}return!1},W.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},W.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},W.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)){if(this.options.ecmaVersion>=16){var n=this.regexp_eatModifiers(e),r=e.eat(45);if(n||r){for(var i=0;i<n.length;i++){var a=n.charAt(i);n.indexOf(a,i+1)>-1&&e.raise(`Duplicate regular expression modifiers`)}if(r){var o=this.regexp_eatModifiers(e);!n&&!o&&e.current()===58&&e.raise(`Invalid regular expression modifiers`);for(var s=0;s<o.length;s++){var c=o.charAt(s);(o.indexOf(c,s+1)>-1||n.indexOf(c)>-1)&&e.raise(`Duplicate regular expression modifiers`)}}}}if(e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise(`Unterminated group`)}}e.pos=t}return!1},W.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise(`Invalid group`),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise(`Unterminated group`)}return!1},W.regexp_eatModifiers=function(e){for(var t=``,n=0;(n=e.current())!==-1&&$u(n);)t+=Al(n),e.advance();return t};function $u(e){return e===105||e===109||e===115}W.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},W.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise(`Nothing to repeat`),!1},W.regexp_eatSyntaxCharacter=function(e){var t=e.current();return ed(t)?(e.lastIntValue=t,e.advance(),!0):!1};function ed(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}W.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;(n=e.current())!==-1&&!ed(n);)e.advance();return e.pos!==t},W.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124&&(e.advance(),!0)},W.regexp_groupSpecifier=function(e){if(e.eat(63)){this.regexp_eatGroupName(e)||e.raise(`Invalid group`);var t=this.options.ecmaVersion>=16,n=e.groupNames[e.lastStringValue];if(n){if(t)for(var r=0,i=n;r<i.length;r+=1)i[r].separatedFrom(e.branchID)||e.raise(`Duplicate capture group name`);else e.raise(`Duplicate capture group name`)}t?(n||(e.groupNames[e.lastStringValue]=[])).push(e.branchID):e.groupNames[e.lastStringValue]=!0}},W.regexp_eatGroupName=function(e){if(e.lastStringValue=``,e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise(`Invalid capture group name`)}return!1},W.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue=``,this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=Al(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=Al(e.lastIntValue);return!0}return!1},W.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),td(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function td(e){return dl(e,!0)||e===36||e===95}W.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),nd(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function nd(e){return fl(e,!0)||e===36||e===95||e===8204||e===8205}W.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise(`Invalid unicode escape`),e.raise(`Invalid escape`)),!1)},W.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU)return n>e.maxBackReference&&(e.maxBackReference=n),!0;if(n<=e.numCapturingParens)return!0;e.pos=t}return!1},W.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise(`Invalid named reference`)}return!1},W.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},W.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},W.regexp_eatZero=function(e){return e.current()===48&&!md(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},W.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114&&(e.lastIntValue=13,e.advance(),!0)},W.regexp_eatControlLetter=function(e){var t=e.current();return rd(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function rd(e){return e>=65&&e<=90||e>=97&&e<=122}W.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var n=e.pos,r=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var i=e.lastIntValue;if(r&&i>=55296&&i<=56319){var a=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(o>=56320&&o<=57343)return e.lastIntValue=(i-55296)*1024+(o-56320)+65536,!0}e.pos=a,e.lastIntValue=i}return!0}if(r&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&id(e.lastIntValue))return!0;r&&e.raise(`Invalid unicode escape`),e.pos=n}return!1};function id(e){return e>=0&&e<=1114111}W.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)&&(e.lastIntValue=t,e.advance(),!0)},W.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1};var ad=0,od=1,sd=2;W.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(cd(t))return e.lastIntValue=-1,e.advance(),od;var n=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((n=t===80)||t===112)){e.lastIntValue=-1,e.advance();var r;if(e.eat(123)&&(r=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return n&&r===sd&&e.raise(`Invalid property name`),r;e.raise(`Invalid property name`)}return ad};function cd(e){return e===100||e===68||e===115||e===83||e===119||e===87}W.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,r),od}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i)}return ad},W.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){El(e.unicodeProperties.nonBinary,t)||e.raise(`Invalid property name`),e.unicodeProperties.nonBinary[t].test(n)||e.raise(`Invalid property value`)},W.regexp_validateUnicodePropertyNameOrValue=function(e,t){if(e.unicodeProperties.binary.test(t))return od;if(e.switchV&&e.unicodeProperties.binaryOfStrings.test(t))return sd;e.raise(`Invalid property name`)},W.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue=``;ld(t=e.current());)e.lastStringValue+=Al(t),e.advance();return e.lastStringValue!==``};function ld(e){return rd(e)||e===95}W.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue=``;ud(t=e.current());)e.lastStringValue+=Al(t),e.advance();return e.lastStringValue!==``};function ud(e){return ld(e)||md(e)}W.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},W.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),n=this.regexp_classContents(e);return e.eat(93)||e.raise(`Unterminated character class`),t&&n===sd&&e.raise(`Negated character class may contain strings`),!0}return!1},W.regexp_classContents=function(e){return e.current()===93?od:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),od)},W.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;e.switchU&&(t===-1||n===-1)&&e.raise(`Invalid character class`),t!==-1&&n!==-1&&t>n&&e.raise(`Range out of order in character class`)}}},W.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();(n===99||_d(n))&&e.raise(`Invalid class escape`),e.raise(`Invalid escape`)}e.pos=t}var r=e.current();return r!==93&&(e.lastIntValue=r,e.advance(),!0)},W.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},W.regexp_classSetExpression=function(e){var t=od,n;if(!this.regexp_eatClassSetRange(e)){if(n=this.regexp_eatClassSetOperand(e)){n===sd&&(t=sd);for(var r=e.pos;e.eatChars([38,38]);)e.current()!==38&&(n=this.regexp_eatClassSetOperand(e))?n!==sd&&(t=od):e.raise(`Invalid character in character class`);if(r!==e.pos)return t;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise(`Invalid character in character class`);if(r!==e.pos)return t}else e.raise(`Invalid character in character class`)}for(;;)if(!this.regexp_eatClassSetRange(e)){if(n=this.regexp_eatClassSetOperand(e),!n)return t;n===sd&&(t=sd)}},W.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var n=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var r=e.lastIntValue;return n!==-1&&r!==-1&&n>r&&e.raise(`Range out of order in character class`),!0}e.pos=t}return!1},W.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?od:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)},W.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var n=e.eat(94),r=this.regexp_classContents(e);if(e.eat(93))return n&&r===sd&&e.raise(`Negated character class may contain strings`),r;e.pos=t}if(e.eat(92)){var i=this.regexp_eatCharacterClassEscape(e);if(i)return i;e.pos=t}return null},W.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var n=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return n}else e.raise(`Invalid escape`);e.pos=t}return null},W.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===sd&&(t=sd);return t},W.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return t===1?od:sd},W.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e)?!0:e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1);var n=e.current();return n<0||n===e.lookahead()&&dd(n)||fd(n)?!1:(e.advance(),e.lastIntValue=n,!0)};function dd(e){return e===33||e>=35&&e<=38||e>=42&&e<=44||e===46||e>=58&&e<=64||e===94||e===96||e===126}function fd(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}W.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return pd(t)?(e.lastIntValue=t,e.advance(),!0):!1};function pd(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}W.regexp_eatClassControlLetter=function(e){var t=e.current();return md(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1},W.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise(`Invalid escape`),e.pos=t}return!1},W.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;md(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t};function md(e){return e>=48&&e<=57}W.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;hd(n=e.current());)e.lastIntValue=16*e.lastIntValue+gd(n),e.advance();return e.pos!==t};function hd(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function gd(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}W.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;e.lastIntValue=t<=3&&this.regexp_eatOctalDigit(e)?t*64+n*8+e.lastIntValue:t*8+n}else e.lastIntValue=t;return!0}return!1},W.regexp_eatOctalDigit=function(e){var t=e.current();return _d(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function _d(e){return e>=48&&e<=55}W.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r<t;++r){var i=e.current();if(!hd(i))return e.pos=n,!1;e.lastIntValue=16*e.lastIntValue+gd(i),e.advance()}return!0};var vd=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new Nl(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},G=iu.prototype;G.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,`Escape sequence in keyword `+this.type.keyword),this.options.onToken&&this.options.onToken(new vd(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},G.getToken=function(){return this.next(),new vd(this)},typeof Symbol<`u`&&(G[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===V.eof,value:t}}}}),G.nextToken=function(){var e=this.curContext();if((!e||!e.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(V.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())},G.readToken=function(e){return dl(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)},G.fullCharCodeAt=function(e){var t=this.input.charCodeAt(e);if(t<=55295||t>=56320)return t;var n=this.input.charCodeAt(e+1);return n<=56319||n>=57344?t:(t<<10)+n-56613888},G.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)},G.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,n=this.input.indexOf(`*/`,this.pos+=2);if(n===-1&&this.raise(this.pos-2,`Unterminated comment`),this.pos=n+2,this.options.locations)for(var r=void 0,i=t;(r=bl(this.input,i,this.pos))>-1;)++this.curLine,i=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,n),t,this.pos,e,this.curPosition())},G.skipLineComment=function(e){for(var t=this.pos,n=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!yl(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,n,this.curPosition())},G.skipSpace=function(){loop:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break loop}break;default:if(e>8&&e<14||e>=5760&&xl.test(String.fromCharCode(e)))++this.pos;else break loop}}},G.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)},G.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(V.ellipsis)):(++this.pos,this.finishToken(V.dot))},G.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(V.assign,2):this.finishOp(V.slash,1)},G.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=e===42?V.star:V.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++n,r=V.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(V.assign,n+1):this.finishOp(r,n)},G.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.options.ecmaVersion>=12&&this.input.charCodeAt(this.pos+2)===61?this.finishOp(V.assign,3):this.finishOp(e===124?V.logicalOR:V.logicalAND,2):t===61?this.finishOp(V.assign,2):this.finishOp(e===124?V.bitwiseOR:V.bitwiseAND,1)},G.readToken_caret=function(){return this.input.charCodeAt(this.pos+1)===61?this.finishOp(V.assign,2):this.finishOp(V.bitwiseXOR,1)},G.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||_l.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(V.incDec,2):t===61?this.finishOp(V.assign,2):this.finishOp(V.plusMin,1)},G.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+n)===61?this.finishOp(V.assign,n+1):this.finishOp(V.bitShift,n)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(n=2),this.finishOp(V.relational,n))},G.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(V.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(V.arrow)):this.finishOp(e===61?V.eq:V.prefix,1)},G.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57)return this.finishOp(V.questionDot,2)}if(t===63)return e>=12&&this.input.charCodeAt(this.pos+2)===61?this.finishOp(V.assign,3):this.finishOp(V.coalesce,2)}return this.finishOp(V.question,1)},G.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),dl(t,!0)||t===92))return this.finishToken(V.privateId,this.readWord1());this.raise(this.pos,`Unexpected character '`+Al(t)+`'`)},G.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(V.parenL);case 41:return++this.pos,this.finishToken(V.parenR);case 59:return++this.pos,this.finishToken(V.semi);case 44:return++this.pos,this.finishToken(V.comma);case 91:return++this.pos,this.finishToken(V.bracketL);case 93:return++this.pos,this.finishToken(V.bracketR);case 123:return++this.pos,this.finishToken(V.braceL);case 125:return++this.pos,this.finishToken(V.braceR);case 58:return++this.pos,this.finishToken(V.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(V.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(V.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,`Unexpected character '`+Al(e)+`'`)},G.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},G.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,`Unterminated regular expression`);var r=this.input.charAt(this.pos);if(_l.test(r)&&this.raise(n,`Unterminated regular expression`),e)e=!1;else{if(r===`[`)t=!0;else if(r===`]`&&t)t=!1;else if(r===`/`&&!t)break;e=r===`\\`}++this.pos}var i=this.input.slice(n,this.pos);++this.pos;var a=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(a);var s=this.regexpState||=new Zu(this);s.reset(n,i,o),this.validateRegExpFlags(s),this.validateRegExpPattern(s);var c=null;try{c=new RegExp(i,o)}catch{}return this.finishToken(V.regexp,{pattern:i,flags:o,value:c})},G.readInt=function(e,t,n){for(var r=this.options.ecmaVersion>=12&&t===void 0,i=n&&this.input.charCodeAt(this.pos)===48,a=this.pos,o=0,s=0,c=0,l=t??1/0;c<l;++c,++this.pos){var u=this.input.charCodeAt(this.pos),d=void 0;if(r&&u===95)i&&this.raiseRecoverable(this.pos,`Numeric separator is not allowed in legacy octal numeric literals`),s===95&&this.raiseRecoverable(this.pos,`Numeric separator must be exactly one underscore`),c===0&&this.raiseRecoverable(this.pos,`Numeric separator is not allowed at the first of digits`),s=u;else{if(d=u>=97?u-97+10:u>=65?u-65+10:u>=48&&u<=57?u-48:1/0,d>=e)break;s=u,o=o*e+d}}return r&&s===95&&this.raiseRecoverable(this.pos-1,`Numeric separator is not allowed at the last of digits`),this.pos===a||t!=null&&this.pos-a!==t?null:o};function yd(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,``))}function bd(e){return typeof BigInt==`function`?BigInt(e.replace(/_/g,``)):null}G.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var n=this.readInt(e);return n??this.raise(this.start+2,`Expected number in radix `+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(n=bd(this.input.slice(t,this.pos)),++this.pos):dl(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`),this.finishToken(V.num,n)},G.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,`Invalid number`);var n=this.pos-t>=2&&this.input.charCodeAt(t)===48;n&&this.strict&&this.raise(t,`Invalid number`);var r=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&r===110){var i=bd(this.input.slice(t,this.pos));return++this.pos,dl(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`),this.finishToken(V.num,i)}n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1),r===46&&!n&&(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),(r===69||r===101)&&!n&&(r=this.input.charCodeAt(++this.pos),(r===43||r===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,`Invalid number`)),dl(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`);var a=yd(this.input.slice(t,this.pos),n);return this.finishToken(V.num,a)},G.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var n=++this.pos;t=this.readHexChar(this.input.indexOf(`}`,this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(n,`Code point out of bounds`)}else t=this.readHexChar(4);return t},G.readString=function(e){for(var t=``,n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated string constant`);var r=this.input.charCodeAt(this.pos);if(r===e)break;r===92?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):r===8232||r===8233?(this.options.ecmaVersion<10&&this.raise(this.start,`Unterminated string constant`),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(yl(r)&&this.raise(this.start,`Unterminated string constant`),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(V.string,t)};var xd={};G.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===xd)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1},G.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw xd;this.raise(e,t)},G.readTmplToken=function(){for(var e=``,t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated template`);var n=this.input.charCodeAt(this.pos);if(n===96||n===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===V.template||this.type===V.invalidTemplate)?n===36?(this.pos+=2,this.finishToken(V.dollarBraceL)):(++this.pos,this.finishToken(V.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(V.template,e));if(n===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(yl(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
|
|
25
|
+
`),cooked:this.value},this.next(),n.tail=this.type===V.backQuote,this.finishNode(n,`TemplateElement`)},U.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(n.quasis=[r];!r.tail;)this.type===V.eof&&this.raise(this.pos,`Unterminated template literal`),this.expect(V.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(V.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,`TemplateLiteral`)},U.isAsyncProp=function(e){return!e.computed&&e.key.type===`Identifier`&&e.key.name===`async`&&(this.type===V.name||this.type===V.num||this.type===V.string||this.type===V.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===V.star)&&!_l.test(this.input.slice(this.lastTokEnd,this.start))},U.parseObj=function(e,t){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(V.braceR);){if(r)r=!1;else if(this.expect(V.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(V.braceR))break;var a=this.parseProperty(e,t);e||this.checkPropClash(a,i,t),n.properties.push(a)}return this.finishNode(n,e?`ObjectPattern`:`ObjectExpression`)},U.parseProperty=function(e,t){var n=this.startNode(),r,i,a,o;if(this.options.ecmaVersion>=9&&this.eat(V.ellipsis))return e?(n.argument=this.parseIdent(!1),this.type===V.comma&&this.raiseRecoverable(this.start,`Comma is not permitted after the rest element`),this.finishNode(n,`RestElement`)):(n.argument=this.parseMaybeAssign(!1,t),this.type===V.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(n,`SpreadElement`));this.options.ecmaVersion>=6&&(n.method=!1,n.shorthand=!1,(e||t)&&(a=this.start,o=this.startLoc),e||(r=this.eat(V.star)));var s=this.containsEsc;return this.parsePropertyName(n),!e&&!s&&this.options.ecmaVersion>=8&&!r&&this.isAsyncProp(n)?(i=!0,r=this.options.ecmaVersion>=9&&this.eat(V.star),this.parsePropertyName(n)):i=!1,this.parsePropertyValue(n,e,r,i,a,o,t,s),this.finishNode(n,`Property`)},U.parseGetterSetter=function(e){var t=e.key.name;this.parsePropertyName(e),e.value=this.parseMethod(!1),e.kind=t;var n=e.kind===`get`?0:1;if(e.value.params.length!==n){var r=e.value.start;e.kind===`get`?this.raiseRecoverable(r,`getter should have no params`):this.raiseRecoverable(r,`setter should have exactly one param`)}else e.kind===`set`&&e.value.params[0].type===`RestElement`&&this.raiseRecoverable(e.value.params[0].start,`Setter cannot use rest params`)},U.parsePropertyValue=function(e,t,n,r,i,a,o,s){(n||r)&&this.type===V.colon&&this.unexpected(),this.eat(V.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind=`init`):this.options.ecmaVersion>=6&&this.type===V.parenL?(t&&this.unexpected(),e.method=!0,e.value=this.parseMethod(n,r),e.kind=`init`):!t&&!s&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type===`Identifier`&&(e.key.name===`get`||e.key.name===`set`)&&this.type!==V.comma&&this.type!==V.braceR&&this.type!==V.eq?((n||r)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type===`Identifier`?((n||r)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name===`await`&&!this.awaitIdentPos&&(this.awaitIdentPos=i),t?e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key)):this.type===V.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.kind=`init`,e.shorthand=!0):this.unexpected()},U.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(V.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(V.bracketR),e.key;e.computed=!1}return e.key=this.type===V.num||this.type===V.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!==`never`)},U.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},U.parseMethod=function(e,t,n){var r=this.startNode(),i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=e),this.options.ecmaVersion>=8&&(r.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Zl(t,r.generator)|Gl|(n?Kl:0)),this.expect(V.parenL),r.params=this.parseBindingList(V.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(r,`FunctionExpression`)},U.parseArrowExpression=function(e,t,n,r){var i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.enterScope(Zl(n,!1)|Ul),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,r),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,`ArrowFunctionExpression`)},U.parseFunctionBody=function(e,t,n,r){var i=t&&this.type!==V.braceL,a=this.strict,o=!1;if(i)e.body=this.parseMaybeAssign(r),e.expression=!0,this.checkParams(e,!1);else{var s=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!a||s)&&(o=this.strictDirective(this.end),o&&s&&this.raiseRecoverable(e.start,`Illegal 'use strict' directive in function with non-simple parameter list`));var c=this.labels;this.labels=[],o&&(this.strict=!0),this.checkParams(e,!a&&!o&&!t&&!n&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,ru),e.body=this.parseBlock(!1,void 0,o&&!a),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=c}this.exitScope()},U.isSimpleParamList=function(e){for(var t=0,n=e;t<n.length;t+=1)if(n[t].type!==`Identifier`)return!1;return!0},U.checkParams=function(e,t){for(var n=/* @__PURE__ */ Object.create(null),r=0,i=e.params;r<i.length;r+=1){var a=i[r];this.checkLValInnerPattern(a,$l,t?null:n)}},U.parseExprList=function(e,t,n,r){for(var i=[],a=!0;!this.eat(e);){if(a)a=!1;else if(this.expect(V.comma),t&&this.afterTrailingComma(e))break;var o=void 0;n&&this.type===V.comma?o=null:this.type===V.ellipsis?(o=this.parseSpread(r),r&&this.type===V.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):o=this.parseMaybeAssign(!1,r),i.push(o)}return i},U.checkUnreserved=function(e){var t=e.start,n=e.end,r=e.name;this.inGenerator&&r===`yield`&&this.raiseRecoverable(t,`Cannot use 'yield' as identifier inside a generator`),this.inAsync&&r===`await`&&this.raiseRecoverable(t,`Cannot use 'await' as identifier inside an async function`),!(this.currentThisScope().flags&Xl)&&r===`arguments`&&this.raiseRecoverable(t,`Cannot use 'arguments' in class field initializer`),this.inClassStaticBlock&&(r===`arguments`||r===`await`)&&this.raise(t,`Cannot use `+r+` in class static initialization block`),this.keywords.test(r)&&this.raise(t,`Unexpected keyword '`+r+`'`),this.options.ecmaVersion<6&&this.input.slice(t,n).indexOf(`\\`)!==-1||(this.strict?this.reservedWordsStrict:this.reservedWords).test(r)&&(!this.inAsync&&r===`await`&&this.raiseRecoverable(t,`Cannot use keyword 'await' outside an async function`),this.raiseRecoverable(t,`The keyword '`+r+`' is reserved`))},U.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,`Identifier`),e||(this.checkUnreserved(t),t.name===`await`&&!this.awaitIdentPos&&(this.awaitIdentPos=t.start)),t},U.parseIdentNode=function(){var e=this.startNode();return this.type===V.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,e.name!==`class`&&e.name!==`function`||this.lastTokEnd===this.lastTokStart+1&&this.input.charCodeAt(this.lastTokStart)===46||this.context.pop(),this.type=V.name):this.unexpected(),e},U.parsePrivateIdent=function(){var e=this.startNode();return this.type===V.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,`PrivateIdentifier`),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(e.start,`Private field '#`+e.name+`' must be declared in an enclosing class`):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e},U.parseYield=function(e){this.yieldPos||=this.start;var t=this.startNode();return this.next(),this.type===V.semi||this.canInsertSemicolon()||this.type!==V.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(V.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,`YieldExpression`)},U.parseAwait=function(e){this.awaitPos||=this.start;var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,`AwaitExpression`)};var wu=iu.prototype;wu.raise=function(e,t){var n=Pl(this.input,e);t+=` (`+n.line+`:`+n.column+`)`,this.sourceFile&&(t+=` in `+this.sourceFile);var r=SyntaxError(t);throw r.pos=e,r.loc=n,r.raisedAt=this.pos,r},wu.raiseRecoverable=wu.raise,wu.curPosition=function(){if(this.options.locations)return new Ml(this.curLine,this.pos-this.lineStart)};var Tu=iu.prototype,Eu=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[]};Tu.enterScope=function(e){this.scopeStack.push(new Eu(e))},Tu.exitScope=function(){this.scopeStack.pop()},Tu.treatFunctionsAsVarInScope=function(e){return e.flags&Bl||!this.inModule&&e.flags&zl},Tu.declareName=function(e,t,n){var r=!1;if(t===eu){var i=this.currentScope();r=i.lexical.indexOf(e)>-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&i.flags&zl&&delete this.undefinedExports[e]}else if(t===nu)this.currentScope().lexical.push(e);else if(t===tu){var a=this.currentScope();r=this.treatFunctionsAsVar?a.lexical.indexOf(e)>-1:a.lexical.indexOf(e)>-1||a.var.indexOf(e)>-1,a.functions.push(e)}else for(var o=this.scopeStack.length-1;o>=0;--o){var s=this.scopeStack[o];if(s.lexical.indexOf(e)>-1&&!(s.flags&Wl&&s.lexical[0]===e)||!this.treatFunctionsAsVarInScope(s)&&s.functions.indexOf(e)>-1){r=!0;break}if(s.var.push(e),this.inModule&&s.flags&zl&&delete this.undefinedExports[e],s.flags&Xl)break}r&&this.raiseRecoverable(n,`Identifier '`+e+`' has already been declared`)},Tu.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)},Tu.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},Tu.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(Xl|Jl|ql))return t}},Tu.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(Xl|Jl|ql)&&!(t.flags&Ul))return t}};var Du=function(e,t,n){this.type=``,this.start=t,this.end=0,e.options.locations&&(this.loc=new Nl(e,n)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},Ou=iu.prototype;Ou.startNode=function(){return new Du(this,this.start,this.startLoc)},Ou.startNodeAt=function(e,t){return new Du(this,e,t)};function ku(e,t,n,r){return e.type=t,e.end=n,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=n),e}Ou.finishNode=function(e,t){return ku.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},Ou.finishNodeAt=function(e,t,n,r){return ku.call(this,e,t,n,r)},Ou.copyNode=function(e){var t=new Du(this,e.start,this.startLoc);for(var n in e)t[n]=e[n];return t};var Au=`Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz`,ju=`ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS`,Mu=ju+` Extended_Pictographic`,Nu=Mu,Pu=Nu+` EBase EComp EMod EPres ExtPict`,Fu=Pu,Iu={9:ju,10:Mu,11:Nu,12:Pu,13:Fu,14:Fu},Lu={9:``,10:``,11:``,12:``,13:``,14:`Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji`},Ru=`Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu`,zu=`Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb`,Bu=zu+` Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd`,Vu=Bu+` Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho`,Hu=Vu+` Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi`,Uu=Hu+` Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith`,Wu={9:zu,10:Bu,11:Vu,12:Hu,13:Uu,14:Uu+` `+Au},Gu={};function Ku(e){var t=Gu[e]={binary:kl(Iu[e]+` `+Ru),binaryOfStrings:kl(Lu[e]),nonBinary:{General_Category:kl(Ru),Script:kl(Wu[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(Ju=0,Yu=[9,10,11,12,13,14];Ju<Yu.length;Ju+=1)qu=Yu[Ju],Ku(qu);var qu,Ju,Yu,W=iu.prototype,Xu=function(e,t){this.parent=e,this.base=t||this};Xu.prototype.separatedFrom=function(e){for(var t=this;t;t=t.parent)for(var n=e;n;n=n.parent)if(t.base===n.base&&t!==n)return!0;return!1},Xu.prototype.sibling=function(){return new Xu(this.parent,this.base)};var Zu=function(e){this.parser=e,this.validFlags=`gim`+(e.options.ecmaVersion>=6?`uy`:``)+(e.options.ecmaVersion>=9?`s`:``)+(e.options.ecmaVersion>=13?`d`:``)+(e.options.ecmaVersion>=15?`v`:``),this.unicodeProperties=Gu[e.options.ecmaVersion>=14?14:e.options.ecmaVersion],this.source=``,this.flags=``,this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue=``,this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=/* @__PURE__ */ Object.create(null),this.backReferenceNames=[],this.branchID=null};Zu.prototype.reset=function(e,t,n){var r=n.indexOf(`v`)!==-1,i=n.indexOf(`u`)!==-1;this.start=e|0,this.source=t+``,this.flags=n,r&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=i&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=i&&this.parser.options.ecmaVersion>=9)},Zu.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,`Invalid regular expression: /`+this.source+`/: `+e)},Zu.prototype.at=function(e,t){t===void 0&&(t=!1);var n=this.source,r=n.length;if(e>=r)return-1;var i=n.charCodeAt(e);if(!(t||this.switchU)||i<=55295||i>=57344||e+1>=r)return i;var a=n.charCodeAt(e+1);return a>=56320&&a<=57343?(i<<10)+a-56613888:i},Zu.prototype.nextIndex=function(e,t){t===void 0&&(t=!1);var n=this.source,r=n.length;if(e>=r)return r;var i=n.charCodeAt(e),a;return!(t||this.switchU)||i<=55295||i>=57344||e+1>=r||(a=n.charCodeAt(e+1))<56320||a>57343?e+1:e+2},Zu.prototype.current=function(e){return e===void 0&&(e=!1),this.at(this.pos,e)},Zu.prototype.lookahead=function(e){return e===void 0&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},Zu.prototype.advance=function(e){e===void 0&&(e=!1),this.pos=this.nextIndex(this.pos,e)},Zu.prototype.eat=function(e,t){return t===void 0&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},Zu.prototype.eatChars=function(e,t){t===void 0&&(t=!1);for(var n=this.pos,r=0,i=e;r<i.length;r+=1){var a=i[r],o=this.at(n,t);if(o===-1||o!==a)return!1;n=this.nextIndex(n,t)}return this.pos=n,!0},W.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,r=!1,i=!1,a=0;a<n.length;a++){var o=n.charAt(a);t.indexOf(o)===-1&&this.raise(e.start,`Invalid regular expression flag`),n.indexOf(o,a+1)>-1&&this.raise(e.start,`Duplicate regular expression flag`),o===`u`&&(r=!0),o===`v`&&(i=!0)}this.options.ecmaVersion>=15&&r&&i&&this.raise(e.start,`Invalid regular expression flag`)};function Qu(e){for(var t in e)return!0;return!1}W.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&Qu(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))},W.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue=``,e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames=/* @__PURE__ */ Object.create(null),e.backReferenceNames.length=0,e.branchID=null,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise(`Unmatched ')'`),(e.eat(93)||e.eat(125))&&e.raise(`Lone quantifier brackets`)),e.maxBackReference>e.numCapturingParens&&e.raise(`Invalid escape`);for(var t=0,n=e.backReferenceNames;t<n.length;t+=1){var r=n[t];e.groupNames[r]||e.raise(`Invalid named capture referenced`)}},W.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new Xu(e.branchID,null)),this.regexp_alternative(e);e.eat(124);)t&&(e.branchID=e.branchID.sibling()),this.regexp_alternative(e);t&&(e.branchID=e.branchID.parent),this.regexp_eatQuantifier(e,!0)&&e.raise(`Nothing to repeat`),e.eat(123)&&e.raise(`Lone quantifier brackets`)},W.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},W.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise(`Invalid quantifier`),!0):(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))?(this.regexp_eatQuantifier(e),!0):!1},W.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var n=!1;if(this.options.ecmaVersion>=9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise(`Unterminated group`),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=t,!1},W.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1},W.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},W.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var r=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return i!==-1&&i<r&&!t&&e.raise(`numbers out of order in {} quantifier`),!0;e.switchU&&!t&&e.raise(`Incomplete quantifier`),e.pos=n}return!1},W.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},W.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},W.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)){if(this.options.ecmaVersion>=16){var n=this.regexp_eatModifiers(e),r=e.eat(45);if(n||r){for(var i=0;i<n.length;i++){var a=n.charAt(i);n.indexOf(a,i+1)>-1&&e.raise(`Duplicate regular expression modifiers`)}if(r){var o=this.regexp_eatModifiers(e);!n&&!o&&e.current()===58&&e.raise(`Invalid regular expression modifiers`);for(var s=0;s<o.length;s++){var c=o.charAt(s);(o.indexOf(c,s+1)>-1||n.indexOf(c)>-1)&&e.raise(`Duplicate regular expression modifiers`)}}}}if(e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise(`Unterminated group`)}}e.pos=t}return!1},W.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise(`Invalid group`),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise(`Unterminated group`)}return!1},W.regexp_eatModifiers=function(e){for(var t=``,n=0;(n=e.current())!==-1&&$u(n);)t+=Al(n),e.advance();return t};function $u(e){return e===105||e===109||e===115}W.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},W.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise(`Nothing to repeat`),!1},W.regexp_eatSyntaxCharacter=function(e){var t=e.current();return ed(t)?(e.lastIntValue=t,e.advance(),!0):!1};function ed(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}W.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;(n=e.current())!==-1&&!ed(n);)e.advance();return e.pos!==t},W.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124&&(e.advance(),!0)},W.regexp_groupSpecifier=function(e){if(e.eat(63)){this.regexp_eatGroupName(e)||e.raise(`Invalid group`);var t=this.options.ecmaVersion>=16,n=e.groupNames[e.lastStringValue];if(n){if(t)for(var r=0,i=n;r<i.length;r+=1)i[r].separatedFrom(e.branchID)||e.raise(`Duplicate capture group name`);else e.raise(`Duplicate capture group name`)}t?(n||(e.groupNames[e.lastStringValue]=[])).push(e.branchID):e.groupNames[e.lastStringValue]=!0}},W.regexp_eatGroupName=function(e){if(e.lastStringValue=``,e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise(`Invalid capture group name`)}return!1},W.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue=``,this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=Al(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=Al(e.lastIntValue);return!0}return!1},W.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),td(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function td(e){return dl(e,!0)||e===36||e===95}W.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),nd(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function nd(e){return fl(e,!0)||e===36||e===95||e===8204||e===8205}W.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise(`Invalid unicode escape`),e.raise(`Invalid escape`)),!1)},W.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU)return n>e.maxBackReference&&(e.maxBackReference=n),!0;if(n<=e.numCapturingParens)return!0;e.pos=t}return!1},W.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise(`Invalid named reference`)}return!1},W.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},W.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},W.regexp_eatZero=function(e){return e.current()===48&&!md(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},W.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114&&(e.lastIntValue=13,e.advance(),!0)},W.regexp_eatControlLetter=function(e){var t=e.current();return rd(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function rd(e){return e>=65&&e<=90||e>=97&&e<=122}W.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var n=e.pos,r=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var i=e.lastIntValue;if(r&&i>=55296&&i<=56319){var a=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(o>=56320&&o<=57343)return e.lastIntValue=(i-55296)*1024+(o-56320)+65536,!0}e.pos=a,e.lastIntValue=i}return!0}if(r&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&id(e.lastIntValue))return!0;r&&e.raise(`Invalid unicode escape`),e.pos=n}return!1};function id(e){return e>=0&&e<=1114111}W.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)&&(e.lastIntValue=t,e.advance(),!0)},W.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1};var ad=0,od=1,sd=2;W.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(cd(t))return e.lastIntValue=-1,e.advance(),od;var n=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((n=t===80)||t===112)){e.lastIntValue=-1,e.advance();var r;if(e.eat(123)&&(r=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return n&&r===sd&&e.raise(`Invalid property name`),r;e.raise(`Invalid property name`)}return ad};function cd(e){return e===100||e===68||e===115||e===83||e===119||e===87}W.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,r),od}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i)}return ad},W.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){El(e.unicodeProperties.nonBinary,t)||e.raise(`Invalid property name`),e.unicodeProperties.nonBinary[t].test(n)||e.raise(`Invalid property value`)},W.regexp_validateUnicodePropertyNameOrValue=function(e,t){if(e.unicodeProperties.binary.test(t))return od;if(e.switchV&&e.unicodeProperties.binaryOfStrings.test(t))return sd;e.raise(`Invalid property name`)},W.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue=``;ld(t=e.current());)e.lastStringValue+=Al(t),e.advance();return e.lastStringValue!==``};function ld(e){return rd(e)||e===95}W.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue=``;ud(t=e.current());)e.lastStringValue+=Al(t),e.advance();return e.lastStringValue!==``};function ud(e){return ld(e)||md(e)}W.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},W.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),n=this.regexp_classContents(e);return e.eat(93)||e.raise(`Unterminated character class`),t&&n===sd&&e.raise(`Negated character class may contain strings`),!0}return!1},W.regexp_classContents=function(e){return e.current()===93?od:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),od)},W.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;e.switchU&&(t===-1||n===-1)&&e.raise(`Invalid character class`),t!==-1&&n!==-1&&t>n&&e.raise(`Range out of order in character class`)}}},W.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();(n===99||_d(n))&&e.raise(`Invalid class escape`),e.raise(`Invalid escape`)}e.pos=t}var r=e.current();return r!==93&&(e.lastIntValue=r,e.advance(),!0)},W.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},W.regexp_classSetExpression=function(e){var t=od,n;if(!this.regexp_eatClassSetRange(e)){if(n=this.regexp_eatClassSetOperand(e)){n===sd&&(t=sd);for(var r=e.pos;e.eatChars([38,38]);)e.current()!==38&&(n=this.regexp_eatClassSetOperand(e))?n!==sd&&(t=od):e.raise(`Invalid character in character class`);if(r!==e.pos)return t;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise(`Invalid character in character class`);if(r!==e.pos)return t}else e.raise(`Invalid character in character class`)}for(;;)if(!this.regexp_eatClassSetRange(e)){if(n=this.regexp_eatClassSetOperand(e),!n)return t;n===sd&&(t=sd)}},W.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var n=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var r=e.lastIntValue;return n!==-1&&r!==-1&&n>r&&e.raise(`Range out of order in character class`),!0}e.pos=t}return!1},W.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?od:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)},W.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var n=e.eat(94),r=this.regexp_classContents(e);if(e.eat(93))return n&&r===sd&&e.raise(`Negated character class may contain strings`),r;e.pos=t}if(e.eat(92)){var i=this.regexp_eatCharacterClassEscape(e);if(i)return i;e.pos=t}return null},W.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var n=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return n}else e.raise(`Invalid escape`);e.pos=t}return null},W.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===sd&&(t=sd);return t},W.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return t===1?od:sd},W.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e)?!0:e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1);var n=e.current();return n<0||n===e.lookahead()&&dd(n)||fd(n)?!1:(e.advance(),e.lastIntValue=n,!0)};function dd(e){return e===33||e>=35&&e<=38||e>=42&&e<=44||e===46||e>=58&&e<=64||e===94||e===96||e===126}function fd(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}W.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return pd(t)?(e.lastIntValue=t,e.advance(),!0):!1};function pd(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}W.regexp_eatClassControlLetter=function(e){var t=e.current();return md(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1},W.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise(`Invalid escape`),e.pos=t}return!1},W.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;md(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t};function md(e){return e>=48&&e<=57}W.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;hd(n=e.current());)e.lastIntValue=16*e.lastIntValue+gd(n),e.advance();return e.pos!==t};function hd(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function gd(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}W.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;e.lastIntValue=t<=3&&this.regexp_eatOctalDigit(e)?t*64+n*8+e.lastIntValue:t*8+n}else e.lastIntValue=t;return!0}return!1},W.regexp_eatOctalDigit=function(e){var t=e.current();return _d(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function _d(e){return e>=48&&e<=55}W.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r<t;++r){var i=e.current();if(!hd(i))return e.pos=n,!1;e.lastIntValue=16*e.lastIntValue+gd(i),e.advance()}return!0};var vd=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new Nl(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},G=iu.prototype;G.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,`Escape sequence in keyword `+this.type.keyword),this.options.onToken&&this.options.onToken(new vd(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},G.getToken=function(){return this.next(),new vd(this)},typeof Symbol<`u`&&(G[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===V.eof,value:t}}}}),G.nextToken=function(){var e=this.curContext();if(e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(V.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())},G.readToken=function(e){return dl(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)},G.fullCharCodeAt=function(e){var t=this.input.charCodeAt(e);if(t<=55295||t>=56320)return t;var n=this.input.charCodeAt(e+1);return n<=56319||n>=57344?t:(t<<10)+n-56613888},G.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)},G.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,n=this.input.indexOf(`*/`,this.pos+=2);if(n===-1&&this.raise(this.pos-2,`Unterminated comment`),this.pos=n+2,this.options.locations)for(var r=void 0,i=t;(r=bl(this.input,i,this.pos))>-1;)++this.curLine,i=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,n),t,this.pos,e,this.curPosition())},G.skipLineComment=function(e){for(var t=this.pos,n=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!yl(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,n,this.curPosition())},G.skipSpace=function(){loop:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break loop}break;default:if(e>8&&e<14||e>=5760&&xl.test(String.fromCharCode(e)))++this.pos;else break loop}}},G.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)},G.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(V.ellipsis)):(++this.pos,this.finishToken(V.dot))},G.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(V.assign,2):this.finishOp(V.slash,1)},G.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=e===42?V.star:V.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++n,r=V.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(V.assign,n+1):this.finishOp(r,n)},G.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.options.ecmaVersion>=12&&this.input.charCodeAt(this.pos+2)===61?this.finishOp(V.assign,3):this.finishOp(e===124?V.logicalOR:V.logicalAND,2):t===61?this.finishOp(V.assign,2):this.finishOp(e===124?V.bitwiseOR:V.bitwiseAND,1)},G.readToken_caret=function(){return this.input.charCodeAt(this.pos+1)===61?this.finishOp(V.assign,2):this.finishOp(V.bitwiseXOR,1)},G.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||_l.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(V.incDec,2):t===61?this.finishOp(V.assign,2):this.finishOp(V.plusMin,1)},G.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+n)===61?this.finishOp(V.assign,n+1):this.finishOp(V.bitShift,n)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(n=2),this.finishOp(V.relational,n))},G.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(V.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(V.arrow)):this.finishOp(e===61?V.eq:V.prefix,1)},G.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57)return this.finishOp(V.questionDot,2)}if(t===63)return e>=12&&this.input.charCodeAt(this.pos+2)===61?this.finishOp(V.assign,3):this.finishOp(V.coalesce,2)}return this.finishOp(V.question,1)},G.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),dl(t,!0)||t===92))return this.finishToken(V.privateId,this.readWord1());this.raise(this.pos,`Unexpected character '`+Al(t)+`'`)},G.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(V.parenL);case 41:return++this.pos,this.finishToken(V.parenR);case 59:return++this.pos,this.finishToken(V.semi);case 44:return++this.pos,this.finishToken(V.comma);case 91:return++this.pos,this.finishToken(V.bracketL);case 93:return++this.pos,this.finishToken(V.bracketR);case 123:return++this.pos,this.finishToken(V.braceL);case 125:return++this.pos,this.finishToken(V.braceR);case 58:return++this.pos,this.finishToken(V.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(V.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(V.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,`Unexpected character '`+Al(e)+`'`)},G.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},G.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,`Unterminated regular expression`);var r=this.input.charAt(this.pos);if(_l.test(r)&&this.raise(n,`Unterminated regular expression`),e)e=!1;else{if(r===`[`)t=!0;else if(r===`]`&&t)t=!1;else if(r===`/`&&!t)break;e=r===`\\`}++this.pos}var i=this.input.slice(n,this.pos);++this.pos;var a=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(a);var s=this.regexpState||=new Zu(this);s.reset(n,i,o),this.validateRegExpFlags(s),this.validateRegExpPattern(s);var c=null;try{c=new RegExp(i,o)}catch{}return this.finishToken(V.regexp,{pattern:i,flags:o,value:c})},G.readInt=function(e,t,n){for(var r=this.options.ecmaVersion>=12&&t===void 0,i=n&&this.input.charCodeAt(this.pos)===48,a=this.pos,o=0,s=0,c=0,l=t??1/0;c<l;++c,++this.pos){var u=this.input.charCodeAt(this.pos),d=void 0;if(r&&u===95)i&&this.raiseRecoverable(this.pos,`Numeric separator is not allowed in legacy octal numeric literals`),s===95&&this.raiseRecoverable(this.pos,`Numeric separator must be exactly one underscore`),c===0&&this.raiseRecoverable(this.pos,`Numeric separator is not allowed at the first of digits`),s=u;else{if(d=u>=97?u-97+10:u>=65?u-65+10:u>=48&&u<=57?u-48:1/0,d>=e)break;s=u,o=o*e+d}}return r&&s===95&&this.raiseRecoverable(this.pos-1,`Numeric separator is not allowed at the last of digits`),this.pos===a||t!=null&&this.pos-a!==t?null:o};function yd(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,``))}function bd(e){return typeof BigInt==`function`?BigInt(e.replace(/_/g,``)):null}G.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var n=this.readInt(e);return n??this.raise(this.start+2,`Expected number in radix `+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(n=bd(this.input.slice(t,this.pos)),++this.pos):dl(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`),this.finishToken(V.num,n)},G.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,`Invalid number`);var n=this.pos-t>=2&&this.input.charCodeAt(t)===48;n&&this.strict&&this.raise(t,`Invalid number`);var r=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&r===110){var i=bd(this.input.slice(t,this.pos));return++this.pos,dl(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`),this.finishToken(V.num,i)}n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1),r===46&&!n&&(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),r!==69&&r!==101||n||(r=this.input.charCodeAt(++this.pos),(r===43||r===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,`Invalid number`)),dl(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`);var a=yd(this.input.slice(t,this.pos),n);return this.finishToken(V.num,a)},G.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var n=++this.pos;t=this.readHexChar(this.input.indexOf(`}`,this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(n,`Code point out of bounds`)}else t=this.readHexChar(4);return t},G.readString=function(e){for(var t=``,n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated string constant`);var r=this.input.charCodeAt(this.pos);if(r===e)break;r===92?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):r===8232||r===8233?(this.options.ecmaVersion<10&&this.raise(this.start,`Unterminated string constant`),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(yl(r)&&this.raise(this.start,`Unterminated string constant`),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(V.string,t)};var xd={};G.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===xd)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1},G.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw xd;this.raise(e,t)},G.readTmplToken=function(){for(var e=``,t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated template`);var n=this.input.charCodeAt(this.pos);if(n===96||n===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===V.template||this.type===V.invalidTemplate)?n===36?(this.pos+=2,this.finishToken(V.dollarBraceL)):(++this.pos,this.finishToken(V.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(V.template,e));if(n===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(yl(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
|
|
26
26
|
`;break;default:e+=String.fromCharCode(n)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},G.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case`\\`:++this.pos;break;case`$`:if(this.input[this.pos+1]!==`{`)break;case"`":return this.finishToken(V.invalidTemplate,this.input.slice(this.start,this.pos));case`\r`:this.input[this.pos+1]===`
|
|
27
27
|
`&&++this.pos;case`
|
|
28
28
|
`:case`\u2028`:case`\u2029`:++this.curLine,this.lineStart=this.pos+1}this.raise(this.start,`Unterminated template`)},G.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
|
|
29
29
|
`;case 114:return`\r`;case 120:return String.fromCharCode(this.readHexChar(2));case 117:return Al(this.readCodePoint());case 116:return` `;case 98:return`\b`;case 118:return`\v`;case 102:return`\f`;case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),``;case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,`Invalid escape sequence`),e){var n=this.pos-1;this.invalidStringToken(n,`Invalid escape sequence in template string`)}default:if(t>=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(r,8);return i>255&&(r=r.slice(0,-1),i=parseInt(r,8)),this.pos+=r.length-1,t=this.input.charCodeAt(this.pos),(r!==`0`||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-r.length,e?`Octal literal in template string`:`Octal literal in strict mode`),String.fromCharCode(i)}return yl(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),``):String.fromCharCode(t)}},G.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return n===null&&this.invalidStringToken(t,`Bad character escape sequence`),n},G.readWord1=function(){this.containsEsc=!1;for(var e=``,t=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(fl(i,r))this.pos+=i<=65535?1:2;else if(i===92){this.containsEsc=!0,e+=this.input.slice(n,this.pos);var a=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,`Expecting Unicode escape sequence \\uXXXX`),++this.pos;var o=this.readCodePoint();(t?dl:fl)(o,r)||this.invalidStringToken(a,`Invalid Unicode escape`),e+=Al(o),n=this.pos}else break;t=!1}return e+this.input.slice(n,this.pos)},G.readWord=function(){var e=this.readWord1(),t=V.name;return this.keywords.test(e)&&(t=gl[e]),this.finishToken(t,e)},iu.acorn={Parser:iu,version:`8.16.0`,defaultOptions:Fl,Position:Ml,SourceLocation:Nl,getLineInfo:Pl,Node:Du,TokenType:z,tokTypes:V,keywordTypes:gl,TokContext:vu,tokContexts:yu,isIdentifierChar:fl,isIdentifierStart:dl,Token:vd,isNewLine:yl,lineBreak:_l,lineBreakG:vl,nonASCIIwhitespace:xl};var Sd=Dt(At(),1),Cd=iu.extend((0,Sd.default)());function wd(e={}){return{name:`mdx`,acorn:Cd,estree:e.estree??!0}}var Td=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239],Ed=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,3104,541,1507,4938,6,4191],Dd=`·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_`,Od=`ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ`,kd={3:`abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile`,5:`class enum extends super const export import`,6:`enum`,strict:`implements interface let package private protected public static yield`,strictBind:`eval arguments`},Ad=`break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this`,jd={5:Ad,"5module":Ad+` export import`,6:Ad+` const class extends export import super`},Md=/^in(stanceof)?$/,Nd=RegExp(`[`+Od+`]`),Pd=RegExp(`[`+Od+Dd+`]`);function Fd(e,t){for(var n=65536,r=0;r<t.length;r+=2){if(n+=t[r],n>e)return!1;if(n+=t[r+1],n>=e)return!0}return!1}function Id(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&Nd.test(String.fromCharCode(e)):t!==!1&&Fd(e,Ed)}function Ld(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&Pd.test(String.fromCharCode(e)):t===!1?!1:Fd(e,Ed)||Fd(e,Td)}var K=function(e,t){t===void 0&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function Rd(e,t){return new K(e,{beforeExpr:!0,binop:t})}var zd={beforeExpr:!0},Bd={startsExpr:!0},Vd={};function q(e,t){return t===void 0&&(t={}),t.keyword=e,Vd[e]=new K(e,t)}var J={num:new K(`num`,Bd),regexp:new K(`regexp`,Bd),string:new K(`string`,Bd),name:new K(`name`,Bd),privateId:new K(`privateId`,Bd),eof:new K(`eof`),bracketL:new K(`[`,{beforeExpr:!0,startsExpr:!0}),bracketR:new K(`]`),braceL:new K(`{`,{beforeExpr:!0,startsExpr:!0}),braceR:new K(`}`),parenL:new K(`(`,{beforeExpr:!0,startsExpr:!0}),parenR:new K(`)`),comma:new K(`,`,zd),semi:new K(`;`,zd),colon:new K(`:`,zd),dot:new K(`.`),question:new K(`?`,zd),questionDot:new K(`?.`),arrow:new K(`=>`,zd),template:new K(`template`),invalidTemplate:new K(`invalidTemplate`),ellipsis:new K(`...`,zd),backQuote:new K("`",Bd),dollarBraceL:new K("${",{beforeExpr:!0,startsExpr:!0}),eq:new K(`=`,{beforeExpr:!0,isAssign:!0}),assign:new K(`_=`,{beforeExpr:!0,isAssign:!0}),incDec:new K(`++/--`,{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new K(`!/~`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:Rd(`||`,1),logicalAND:Rd(`&&`,2),bitwiseOR:Rd(`|`,3),bitwiseXOR:Rd(`^`,4),bitwiseAND:Rd(`&`,5),equality:Rd(`==/!=/===/!==`,6),relational:Rd(`</>/<=/>=`,7),bitShift:Rd(`<</>>/>>>`,8),plusMin:new K(`+/-`,{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:Rd(`%`,10),star:Rd(`*`,10),slash:Rd(`/`,10),starstar:new K(`**`,{beforeExpr:!0}),coalesce:Rd(`??`,1),_break:q(`break`),_case:q(`case`,zd),_catch:q(`catch`),_continue:q(`continue`),_debugger:q(`debugger`),_default:q(`default`,zd),_do:q(`do`,{isLoop:!0,beforeExpr:!0}),_else:q(`else`,zd),_finally:q(`finally`),_for:q(`for`,{isLoop:!0}),_function:q(`function`,Bd),_if:q(`if`),_return:q(`return`,zd),_switch:q(`switch`),_throw:q(`throw`,zd),_try:q(`try`),_var:q(`var`),_const:q(`const`),_while:q(`while`,{isLoop:!0}),_with:q(`with`),_new:q(`new`,{beforeExpr:!0,startsExpr:!0}),_this:q(`this`,Bd),_super:q(`super`,Bd),_class:q(`class`,Bd),_extends:q(`extends`,zd),_export:q(`export`),_import:q(`import`,Bd),_null:q(`null`,Bd),_true:q(`true`,Bd),_false:q(`false`,Bd),_in:q(`in`,{beforeExpr:!0,binop:7}),_instanceof:q(`instanceof`,{beforeExpr:!0,binop:7}),_typeof:q(`typeof`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:q(`void`,{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:q(`delete`,{beforeExpr:!0,prefix:!0,startsExpr:!0})},Hd=/\r\n?|\n|\u2028|\u2029/,Ud=new RegExp(Hd.source,`g`);function Wd(e){return e===10||e===13||e===8232||e===8233}function Gd(e,t,n){n===void 0&&(n=e.length);for(var r=t;r<n;r++){var i=e.charCodeAt(r);if(Wd(i))return r<n-1&&i===13&&e.charCodeAt(r+1)===10?r+2:r+1}return-1}var Kd=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,qd=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Jd=Object.prototype,Yd=Jd.hasOwnProperty,Xd=Jd.toString,Zd=Object.hasOwn||(function(e,t){return Yd.call(e,t)}),Qd=Array.isArray||(function(e){return Xd.call(e)===`[object Array]`});function $d(e){return RegExp(`^(?:`+e.replace(/ /g,`|`)+`)$`)}function ef(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var tf=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,nf=function(e,t){this.line=e,this.column=t};nf.prototype.offset=function(e){return new nf(this.line,this.column+e)};var rf=function(e,t,n){this.start=t,this.end=n,e.sourceFile!==null&&(this.source=e.sourceFile)};function af(e,t){for(var n=1,r=0;;){var i=Gd(e,r,t);if(i<0)return new nf(n,t-r);++n,r=i}}var of={ecmaVersion:null,sourceType:`script`,onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},sf=!1;function cf(e){var t={};for(var n in of)t[n]=e&&Zd(e,n)?e[n]:of[n];if(t.ecmaVersion===`latest`?t.ecmaVersion=1e8:t.ecmaVersion==null?(!sf&&typeof console==`object`&&console.warn&&(sf=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
30
|
-
Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved??=t.ecmaVersion<5,
|
|
30
|
+
Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved??=t.ecmaVersion<5,e&&e.allowHashBang!=null||(t.allowHashBang=t.ecmaVersion>=14),Qd(t.onToken)){var r=t.onToken;t.onToken=function(e){return r.push(e)}}return Qd(t.onComment)&&(t.onComment=lf(t,t.onComment)),t}function lf(e,t){return function(n,r,i,a,o,s){var c={type:n?`Block`:`Line`,value:r,start:i,end:a};e.locations&&(c.loc=new rf(this,o,s)),e.ranges&&(c.range=[i,a]),t.push(c)}}var uf=1,df=2,ff=4,pf=8,mf=16,hf=32,gf=64,_f=128,vf=256,yf=uf|df|vf;function bf(e,t){return df|(e?ff:0)|(t?pf:0)}var xf=0,Sf=1,Cf=2,wf=3,Tf=4,Ef=5,Df=function(e,t,n){this.options=e=cf(e),this.sourceFile=e.sourceFile,this.keywords=$d(jd[e.ecmaVersion>=6?6:e.sourceType===`module`?`5module`:5]);var r=``;e.allowReserved!==!0&&(r=kd[e.ecmaVersion>=6?6:e.ecmaVersion===5?5:3],e.sourceType===`module`&&(r+=` await`)),this.reservedWords=$d(r);var i=(r?r+` `:``)+kd.strict;this.reservedWordsStrict=$d(i),this.reservedWordsStrictBind=$d(i+` `+kd.strictBind),this.input=String(t),this.containsEsc=!1,n?(this.pos=n,this.lineStart=this.input.lastIndexOf(`
|
|
31
31
|
`,n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(Hd).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=J.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=e.sourceType===`module`,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=/* @__PURE__ */ Object.create(null),this.pos===0&&e.allowHashBang&&this.input.slice(0,2)===`#!`&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(uf),this.regexpState=null,this.privateNameStack=[]},Of={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};Df.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},Of.inFunction.get=function(){return(this.currentVarScope().flags&df)>0},Of.inGenerator.get=function(){return(this.currentVarScope().flags&pf)>0&&!this.currentVarScope().inClassFieldInit},Of.inAsync.get=function(){return(this.currentVarScope().flags&ff)>0&&!this.currentVarScope().inClassFieldInit},Of.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&vf)return!1;if(t.flags&df)return(t.flags&ff)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},Of.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,n=e.inClassFieldInit;return(t&gf)>0||n||this.options.allowSuperOutsideMethod},Of.allowDirectSuper.get=function(){return(this.currentThisScope().flags&_f)>0},Of.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Of.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,n=e.inClassFieldInit;return(t&(df|vf))>0||n},Of.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&vf)>0},Df.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n=this,r=0;r<e.length;r++)n=e[r](n);return n},Df.parse=function(e,t){return new this(t,e).parse()},Df.parseExpressionAt=function(e,t,n){var r=new this(n,e,t);return r.nextToken(),r.parseExpression()},Df.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(Df.prototype,Of);var kf=Df.prototype,Af=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;kf.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){qd.lastIndex=e,e+=qd.exec(this.input)[0].length;var t=Af.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])===`use strict`){qd.lastIndex=e+t[0].length;var n=qd.exec(this.input),r=n.index+n[0].length,i=this.input.charAt(r);return i===`;`||i===`}`||Hd.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||i===`!`&&this.input.charAt(r+1)===`=`)}e+=t[0].length,qd.lastIndex=e,e+=qd.exec(this.input)[0].length,this.input[e]===`;`&&e++}},kf.eat=function(e){return this.type===e&&(this.next(),!0)},kf.isContextual=function(e){return this.type===J.name&&this.value===e&&!this.containsEsc},kf.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1},kf.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},kf.canInsertSemicolon=function(){return this.type===J.eof||this.type===J.braceR||Hd.test(this.input.slice(this.lastTokEnd,this.start))},kf.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},kf.semicolon=function(){!this.eat(J.semi)&&!this.insertSemicolon()&&this.unexpected()},kf.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},kf.expect=function(e){this.eat(e)||this.unexpected()},kf.unexpected=function(e){this.raise(e??this.start,`Unexpected token`)};var jf=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};kf.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,`Comma is not permitted after the rest element`);var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,t?`Assigning to rvalue`:`Parenthesized pattern`)}},kf.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,r=e.doubleProto;if(!t)return n>=0||r>=0;n>=0&&this.raise(n,`Shorthand property assignments are valid only in destructuring patterns`),r>=0&&this.raiseRecoverable(r,`Redefinition of __proto__ property`)},kf.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,`Yield expression cannot be a default value`),this.awaitPos&&this.raise(this.awaitPos,`Await expression cannot be a default value`)},kf.isSimpleAssignTarget=function(e){return e.type===`ParenthesizedExpression`?this.isSimpleAssignTarget(e.expression):e.type===`Identifier`||e.type===`MemberExpression`};var Y=Df.prototype;Y.parseTopLevel=function(e){var t=/* @__PURE__ */ Object.create(null);for(e.body||=[];this.type!==J.eof;){var n=this.parseStatement(null,!0,t);e.body.push(n)}if(this.inModule)for(var r=0,i=Object.keys(this.undefinedExports);r<i.length;r+=1){var a=i[r];this.raiseRecoverable(this.undefinedExports[a].start,`Export '`+a+`' is not defined`)}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,`Program`)};var Mf={kind:`loop`},Nf={kind:`switch`};Y.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual(`let`))return!1;qd.lastIndex=this.pos;var t=qd.exec(this.input),n=this.pos+t[0].length,r=this.input.charCodeAt(n);if(r===91||r===92)return!0;if(e)return!1;if(r===123||r>55295&&r<56320)return!0;if(Id(r,!0)){for(var i=n+1;Ld(r=this.input.charCodeAt(i),!0);)++i;if(r===92||r>55295&&r<56320)return!0;var a=this.input.slice(n,i);if(!Md.test(a))return!0}return!1},Y.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual(`async`))return!1;qd.lastIndex=this.pos;var e=qd.exec(this.input),t=this.pos+e[0].length,n;return!Hd.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)===`function`&&(t+8===this.input.length||!(Ld(n=this.input.charCodeAt(t+8))||n>55295&&n<56320))},Y.parseStatement=function(e,t,n){var r=this.type,i=this.startNode(),a;switch(this.isLet(e)&&(r=J._var,a=`let`),r){case J._break:case J._continue:return this.parseBreakContinueStatement(i,r.keyword);case J._debugger:return this.parseDebuggerStatement(i);case J._do:return this.parseDoStatement(i);case J._for:return this.parseForStatement(i);case J._function:return e&&(this.strict||e!==`if`&&e!==`label`)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(i,!1,!e);case J._class:return e&&this.unexpected(),this.parseClass(i,!0);case J._if:return this.parseIfStatement(i);case J._return:return this.parseReturnStatement(i);case J._switch:return this.parseSwitchStatement(i);case J._throw:return this.parseThrowStatement(i);case J._try:return this.parseTryStatement(i);case J._const:case J._var:return a||=this.value,e&&a!==`var`&&this.unexpected(),this.parseVarStatement(i,a);case J._while:return this.parseWhileStatement(i);case J._with:return this.parseWithStatement(i);case J.braceL:return this.parseBlock(!0,i);case J.semi:return this.parseEmptyStatement(i);case J._export:case J._import:if(this.options.ecmaVersion>10&&r===J._import){qd.lastIndex=this.pos;var o=qd.exec(this.input),s=this.pos+o[0].length,c=this.input.charCodeAt(s);if(c===40||c===46)return this.parseExpressionStatement(i,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,`'import' and 'export' may only appear at the top level`),this.inModule||this.raise(this.start,`'import' and 'export' may appear only with 'sourceType: module'`)),r===J._import?this.parseImport(i):this.parseExport(i,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(i,!0,!e);var l=this.value,u=this.parseExpression();return r===J.name&&u.type===`Identifier`&&this.eat(J.colon)?this.parseLabeledStatement(i,l,u,e):this.parseExpressionStatement(i,u)}},Y.parseBreakContinueStatement=function(e,t){var n=t===`break`;this.next(),this.eat(J.semi)||this.insertSemicolon()?e.label=null:this.type===J.name?(e.label=this.parseIdent(),this.semicolon()):this.unexpected();for(var r=0;r<this.labels.length;++r){var i=this.labels[r];if((e.label==null||i.name===e.label.name)&&(i.kind!=null&&(n||i.kind===`loop`)||e.label&&n))break}return r===this.labels.length&&this.raise(e.start,`Unsyntactic `+t),this.finishNode(e,n?`BreakStatement`:`ContinueStatement`)},Y.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,`DebuggerStatement`)},Y.parseDoStatement=function(e){return this.next(),this.labels.push(Mf),e.body=this.parseStatement(`do`),this.labels.pop(),this.expect(J._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(J.semi):this.semicolon(),this.finishNode(e,`DoWhileStatement`)},Y.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual(`await`)?this.lastTokStart:-1;if(this.labels.push(Mf),this.enterScope(0),this.expect(J.parenL),this.type===J.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===J._var||this.type===J._const||n){var r=this.startNode(),i=n?`let`:this.value;return this.next(),this.parseVar(r,!0,i),this.finishNode(r,`VariableDeclaration`),(this.type===J._in||this.options.ecmaVersion>=6&&this.isContextual(`of`))&&r.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===J._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,r)):(t>-1&&this.unexpected(t),this.parseFor(e,r))}var a=this.isContextual(`let`),o=!1,s=new jf,c=this.parseExpression(t>-1?`await`:!0,s);return this.type===J._in||(o=this.options.ecmaVersion>=6&&this.isContextual(`of`))?(this.options.ecmaVersion>=9&&(this.type===J._in?t>-1&&this.unexpected(t):e.await=t>-1),a&&o&&this.raise(c.start,`The left-hand side of a for-of loop may not start with 'let'.`),this.toAssignable(c,!1,s),this.checkLValPattern(c),this.parseForIn(e,c)):(this.checkExpressionErrors(s,!0),t>-1&&this.unexpected(t),this.parseFor(e,c))},Y.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,Ff|(n?0:If),!1,t)},Y.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement(`if`),e.alternate=this.eat(J._else)?this.parseStatement(`if`):null,this.finishNode(e,`IfStatement`)},Y.parseReturnStatement=function(e){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,`'return' outside of function`),this.next(),this.eat(J.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,`ReturnStatement`)},Y.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(J.braceL),this.labels.push(Nf),this.enterScope(0);for(var t,n=!1;this.type!==J.braceR;)if(this.type===J._case||this.type===J._default){var r=this.type===J._case;t&&this.finishNode(t,`SwitchCase`),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,`Multiple default clauses`),n=!0,t.test=null),this.expect(J.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,`SwitchCase`),this.next(),this.labels.pop(),this.finishNode(e,`SwitchStatement`)},Y.parseThrowStatement=function(e){return this.next(),Hd.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,`Illegal newline after throw`),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,`ThrowStatement`)};var Pf=[];Y.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===J._catch){var t=this.startNode();if(this.next(),this.eat(J.parenL)){t.param=this.parseBindingAtom();var n=t.param.type===`Identifier`;this.enterScope(n?hf:0),this.checkLValPattern(t.param,n?Tf:Cf),this.expect(J.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0);t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,`CatchClause`)}return e.finalizer=this.eat(J._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,`Missing catch or finally clause`),this.finishNode(e,`TryStatement`)},Y.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,`VariableDeclaration`)},Y.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Mf),e.body=this.parseStatement(`while`),this.labels.pop(),this.finishNode(e,`WhileStatement`)},Y.parseWithStatement=function(e){return this.strict&&this.raise(this.start,`'with' in strict mode`),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement(`with`),this.finishNode(e,`WithStatement`)},Y.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,`EmptyStatement`)},Y.parseLabeledStatement=function(e,t,n,r){for(var i=0,a=this.labels;i<a.length;i+=1)a[i].name===t&&this.raise(n.start,`Label '`+t+`' is already declared`);for(var o=this.type.isLoop?`loop`:this.type===J._switch?`switch`:null,s=this.labels.length-1;s>=0;s--){var c=this.labels[s];if(c.statementStart===e.start)c.statementStart=this.start,c.kind=o;else break}return this.labels.push({name:t,kind:o,statementStart:this.start}),e.body=this.parseStatement(r?r.indexOf(`label`)===-1?r+`label`:r:`label`),this.labels.pop(),e.label=n,this.finishNode(e,`LabeledStatement`)},Y.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,`ExpressionStatement`)},Y.parseBlock=function(e,t,n){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(J.braceL),e&&this.enterScope(0);this.type!==J.braceR;){var r=this.parseStatement(null);t.body.push(r)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,`BlockStatement`)},Y.parseFor=function(e,t){return e.init=t,this.expect(J.semi),e.test=this.type===J.semi?null:this.parseExpression(),this.expect(J.semi),e.update=this.type===J.parenR?null:this.parseExpression(),this.expect(J.parenR),e.body=this.parseStatement(`for`),this.exitScope(),this.labels.pop(),this.finishNode(e,`ForStatement`)},Y.parseForIn=function(e,t){var n=this.type===J._in;return this.next(),t.type===`VariableDeclaration`&&t.declarations[0].init!=null&&(!n||this.options.ecmaVersion<8||this.strict||t.kind!==`var`||t.declarations[0].id.type!==`Identifier`)&&this.raise(t.start,(n?`for-in`:`for-of`)+` loop variable declaration may not have an initializer`),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(J.parenR),e.body=this.parseStatement(`for`),this.exitScope(),this.labels.pop(),this.finishNode(e,n?`ForInStatement`:`ForOfStatement`)},Y.parseVar=function(e,t,n){for(e.declarations=[],e.kind=n;;){var r=this.startNode();if(this.parseVarId(r,n),this.eat(J.eq)?r.init=this.parseMaybeAssign(t):n===`const`&&!(this.type===J._in||this.options.ecmaVersion>=6&&this.isContextual(`of`))?this.unexpected():r.id.type!==`Identifier`&&(!t||this.type!==J._in&&!this.isContextual(`of`))?this.raise(this.lastTokEnd,`Complex binding patterns require an initialization value`):r.init=null,e.declarations.push(this.finishNode(r,`VariableDeclarator`)),!this.eat(J.comma))break}return e},Y.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,t===`var`?Sf:Cf,!1)};var Ff=1,If=2,Lf=4;Y.parseFunction=function(e,t,n,r,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===J.star&&t&If&&this.unexpected(),e.generator=this.eat(J.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&Ff&&(e.id=t&Lf&&this.type!==J.name?null:this.parseIdent(),e.id&&!(t&If)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?Sf:Cf:wf));var a=this.yieldPos,o=this.awaitPos,s=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(bf(e.async,e.generator)),t&Ff||(e.id=this.type===J.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1,i),this.yieldPos=a,this.awaitPos=o,this.awaitIdentPos=s,this.finishNode(e,t&Ff?`FunctionDeclaration`:`FunctionExpression`)},Y.parseFunctionParams=function(e){this.expect(J.parenL),e.params=this.parseBindingList(J.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},Y.parseClass=function(e,t){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.enterClassBody(),i=this.startNode(),a=!1;for(i.body=[],this.expect(J.braceL);this.type!==J.braceR;){var o=this.parseClassElement(e.superClass!==null);o&&(i.body.push(o),o.type===`MethodDefinition`&&o.kind===`constructor`?(a&&this.raise(o.start,`Duplicate constructor in the same class`),a=!0):o.key&&o.key.type===`PrivateIdentifier`&&Rf(r,o)&&this.raiseRecoverable(o.key.start,`Identifier '#`+o.key.name+`' has already been declared`))}return this.strict=n,this.next(),e.body=this.finishNode(i,`ClassBody`),this.exitClassBody(),this.finishNode(e,t?`ClassDeclaration`:`ClassExpression`)},Y.parseClassElement=function(e){if(this.eat(J.semi))return null;var t=this.options.ecmaVersion,n=this.startNode(),r=``,i=!1,a=!1,o=`method`,s=!1;if(this.eatContextual(`static`)){if(t>=13&&this.eat(J.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===J.star?s=!0:r=`static`}if(n.static=s,!r&&t>=8&&this.eatContextual(`async`)&&((this.isClassElementNameStart()||this.type===J.star)&&!this.canInsertSemicolon()?a=!0:r=`async`),!r&&(t>=9||!a)&&this.eat(J.star)&&(i=!0),!r&&!a&&!i){var c=this.value;(this.eatContextual(`get`)||this.eatContextual(`set`))&&(this.isClassElementNameStart()?o=c:r=c)}if(r?(n.computed=!1,n.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),n.key.name=r,this.finishNode(n.key,`Identifier`)):this.parseClassElementName(n),t<13||this.type===J.parenL||o!==`method`||i||a){var l=!n.static&&zf(n,`constructor`),u=l&&e;l&&o!==`method`&&this.raise(n.key.start,`Constructor can't have get/set modifier`),n.kind=l?`constructor`:o,this.parseClassMethod(n,i,a,u)}else this.parseClassField(n);return n},Y.isClassElementNameStart=function(){return this.type===J.name||this.type===J.privateId||this.type===J.num||this.type===J.string||this.type===J.bracketL||this.type.keyword},Y.parseClassElementName=function(e){this.type===J.privateId?(this.value===`constructor`&&this.raise(this.start,`Classes can't have an element named '#constructor'`),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},Y.parseClassMethod=function(e,t,n,r){var i=e.key;e.kind===`constructor`?(t&&this.raise(i.start,`Constructor can't be a generator`),n&&this.raise(i.start,`Constructor can't be an async method`)):e.static&&zf(e,`prototype`)&&this.raise(i.start,`Classes may not have a static property named prototype`);var a=e.value=this.parseMethod(t,n,r);return e.kind===`get`&&a.params.length!==0&&this.raiseRecoverable(a.start,`getter should have no params`),e.kind===`set`&&a.params.length!==1&&this.raiseRecoverable(a.start,`setter should have exactly one param`),e.kind===`set`&&a.params[0].type===`RestElement`&&this.raiseRecoverable(a.params[0].start,`Setter cannot use rest params`),this.finishNode(e,`MethodDefinition`)},Y.parseClassField=function(e){if(zf(e,`constructor`)?this.raise(e.key.start,`Classes can't have a field named 'constructor'`):e.static&&zf(e,`prototype`)&&this.raise(e.key.start,`Classes can't have a static field named 'prototype'`),this.eat(J.eq)){var t=this.currentThisScope(),n=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=n}else e.value=null;return this.semicolon(),this.finishNode(e,`PropertyDefinition`)},Y.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(vf|gf);this.type!==J.braceR;){var n=this.parseStatement(null);e.body.push(n)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,`StaticBlock`)},Y.parseClassId=function(e,t){this.type===J.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,Cf,!1)):(t===!0&&this.unexpected(),e.id=null)},Y.parseClassSuper=function(e){e.superClass=this.eat(J._extends)?this.parseExprSubscripts(null,!1):null},Y.enterClassBody=function(){var e={declared:/* @__PURE__ */ Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},Y.exitClassBody=function(){for(var e=this.privateNameStack.pop(),t=e.declared,n=e.used,r=this.privateNameStack.length,i=r===0?null:this.privateNameStack[r-1],a=0;a<n.length;++a){var o=n[a];Zd(t,o.name)||(i?i.used.push(o):this.raiseRecoverable(o.start,`Private field '#`+o.name+`' must be declared in an enclosing class`))}};function Rf(e,t){var n=t.key.name,r=e[n],i=`true`;return t.type===`MethodDefinition`&&(t.kind===`get`||t.kind===`set`)&&(i=(t.static?`s`:`i`)+t.kind),r===`iget`&&i===`iset`||r===`iset`&&i===`iget`||r===`sget`&&i===`sset`||r===`sset`&&i===`sget`?(e[n]=`true`,!1):r?!0:(e[n]=i,!1)}function zf(e,t){var n=e.computed,r=e.key;return!n&&(r.type===`Identifier`&&r.name===t||r.type===`Literal`&&r.value===t)}Y.parseExport=function(e,t){if(this.next(),this.eat(J.star))return this.options.ecmaVersion>=11&&(this.eatContextual(`as`)?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual(`from`),this.type!==J.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,`ExportAllDeclaration`);if(this.eat(J._default)){this.checkExport(t,`default`,this.lastTokStart);var n;if(this.type===J._function||(n=this.isAsyncFunction())){var r=this.startNode();this.next(),n&&this.next(),e.declaration=this.parseFunction(r,Ff|Lf,!1,n)}else if(this.type===J._class){var i=this.startNode();e.declaration=this.parseClass(i,`nullableID`)}else e.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(e,`ExportDefaultDeclaration`)}if(this.shouldParseExportStatement())e.declaration=this.parseStatement(null),e.declaration.type===`VariableDeclaration`?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual(`from`))this.type!==J.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var a=0,o=e.specifiers;a<o.length;a+=1){var s=o[a];this.checkUnreserved(s.local),this.checkLocalExport(s.local),s.local.type===`Literal`&&this.raise(s.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null}this.semicolon()}return this.finishNode(e,`ExportNamedDeclaration`)},Y.checkExport=function(e,t,n){e&&(typeof t!=`string`&&(t=t.type===`Identifier`?t.name:t.value),Zd(e,t)&&this.raiseRecoverable(n,`Duplicate export '`+t+`'`),e[t]=!0)},Y.checkPatternExport=function(e,t){var n=t.type;if(n===`Identifier`)this.checkExport(e,t,t.start);else if(n===`ObjectPattern`)for(var r=0,i=t.properties;r<i.length;r+=1){var a=i[r];this.checkPatternExport(e,a)}else if(n===`ArrayPattern`)for(var o=0,s=t.elements;o<s.length;o+=1){var c=s[o];c&&this.checkPatternExport(e,c)}else n===`Property`?this.checkPatternExport(e,t.value):n===`AssignmentPattern`?this.checkPatternExport(e,t.left):n===`RestElement`?this.checkPatternExport(e,t.argument):n===`ParenthesizedExpression`&&this.checkPatternExport(e,t.expression)},Y.checkVariableExport=function(e,t){if(e)for(var n=0,r=t;n<r.length;n+=1){var i=r[n];this.checkPatternExport(e,i.id)}},Y.shouldParseExportStatement=function(){return this.type.keyword===`var`||this.type.keyword===`const`||this.type.keyword===`class`||this.type.keyword===`function`||this.isLet()||this.isAsyncFunction()},Y.parseExportSpecifiers=function(e){var t=[],n=!0;for(this.expect(J.braceL);!this.eat(J.braceR);){if(n)n=!1;else if(this.expect(J.comma),this.afterTrailingComma(J.braceR))break;var r=this.startNode();r.local=this.parseModuleExportName(),r.exported=this.eatContextual(`as`)?this.parseModuleExportName():r.local,this.checkExport(e,r.exported,r.exported.start),t.push(this.finishNode(r,`ExportSpecifier`))}return t},Y.parseImport=function(e){return this.next(),this.type===J.string?(e.specifiers=Pf,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual(`from`),e.source=this.type===J.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,`ImportDeclaration`)},Y.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===J.name){var n=this.startNode();if(n.local=this.parseIdent(),this.checkLValSimple(n.local,Cf),e.push(this.finishNode(n,`ImportDefaultSpecifier`)),!this.eat(J.comma))return e}if(this.type===J.star){var r=this.startNode();return this.next(),this.expectContextual(`as`),r.local=this.parseIdent(),this.checkLValSimple(r.local,Cf),e.push(this.finishNode(r,`ImportNamespaceSpecifier`)),e}for(this.expect(J.braceL);!this.eat(J.braceR);){if(t)t=!1;else if(this.expect(J.comma),this.afterTrailingComma(J.braceR))break;var i=this.startNode();i.imported=this.parseModuleExportName(),this.eatContextual(`as`)?i.local=this.parseIdent():(this.checkUnreserved(i.imported),i.local=i.imported),this.checkLValSimple(i.local,Cf),e.push(this.finishNode(i,`ImportSpecifier`))}return e},Y.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===J.string){var e=this.parseLiteral(this.value);return tf.test(e.value)&&this.raise(e.start,`An export name cannot include a lone surrogate.`),e}return this.parseIdent(!0)},Y.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},Y.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&e.type===`ExpressionStatement`&&e.expression.type===`Literal`&&typeof e.expression.value==`string`&&(this.input[e.start]===`"`||this.input[e.start]===`'`)};var Bf=Df.prototype;Bf.toAssignable=function(e,t,n){if(this.options.ecmaVersion>=6&&e)switch(e.type){case`Identifier`:this.inAsync&&e.name===`await`&&this.raise(e.start,`Cannot use 'await' as identifier inside an async function`);break;case`ObjectPattern`:case`ArrayPattern`:case`AssignmentPattern`:case`RestElement`:break;case`ObjectExpression`:e.type=`ObjectPattern`,n&&this.checkPatternErrors(n,!0);for(var r=0,i=e.properties;r<i.length;r+=1){var a=i[r];this.toAssignable(a,t),a.type===`RestElement`&&(a.argument.type===`ArrayPattern`||a.argument.type===`ObjectPattern`)&&this.raise(a.argument.start,`Unexpected token`)}break;case`Property`:e.kind!==`init`&&this.raise(e.key.start,`Object pattern can't contain getter or setter`),this.toAssignable(e.value,t);break;case`ArrayExpression`:e.type=`ArrayPattern`,n&&this.checkPatternErrors(n,!0),this.toAssignableList(e.elements,t);break;case`SpreadElement`:e.type=`RestElement`,this.toAssignable(e.argument,t),e.argument.type===`AssignmentPattern`&&this.raise(e.argument.start,`Rest elements cannot have a default value`);break;case`AssignmentExpression`:e.operator!==`=`&&this.raise(e.left.end,`Only '=' operator can be used for specifying default value.`),e.type=`AssignmentPattern`,delete e.operator,this.toAssignable(e.left,t);break;case`ParenthesizedExpression`:this.toAssignable(e.expression,t,n);break;case`ChainExpression`:this.raiseRecoverable(e.start,`Optional chaining cannot appear in left-hand side`);break;case`MemberExpression`:if(!t)break;default:this.raise(e.start,`Assigning to rvalue`)}else n&&this.checkPatternErrors(n,!0);return e},Bf.toAssignableList=function(e,t){for(var n=e.length,r=0;r<n;r++){var i=e[r];i&&this.toAssignable(i,t)}if(n){var a=e[n-1];this.options.ecmaVersion===6&&t&&a&&a.type===`RestElement`&&a.argument.type!==`Identifier`&&this.unexpected(a.argument.start)}return e},Bf.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,`SpreadElement`)},Bf.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==J.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,`RestElement`)},Bf.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case J.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(J.bracketR,!0,!0),this.finishNode(e,`ArrayPattern`);case J.braceL:return this.parseObj(!0)}return this.parseIdent()},Bf.parseBindingList=function(e,t,n){for(var r=[],i=!0;!this.eat(e);)if(i?i=!1:this.expect(J.comma),t&&this.type===J.comma)r.push(null);else if(n&&this.afterTrailingComma(e))break;else if(this.type===J.ellipsis){var a=this.parseRestBinding();this.parseBindingListItem(a),r.push(a),this.type===J.comma&&this.raise(this.start,`Comma is not permitted after the rest element`),this.expect(e);break}else{var o=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(o),r.push(o)}return r},Bf.parseBindingListItem=function(e){return e},Bf.parseMaybeDefault=function(e,t,n){if(n||=this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(J.eq))return n;var r=this.startNodeAt(e,t);return r.left=n,r.right=this.parseMaybeAssign(),this.finishNode(r,`AssignmentPattern`)},Bf.checkLValSimple=function(e,t,n){t===void 0&&(t=xf);var r=t!==xf;switch(e.type){case`Identifier`:this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(r?`Binding `:`Assigning to `)+e.name+` in strict mode`),r&&(t===Cf&&e.name===`let`&&this.raiseRecoverable(e.start,`let is disallowed as a lexically bound name`),n&&(Zd(n,e.name)&&this.raiseRecoverable(e.start,`Argument name clash`),n[e.name]=!0),t!==Ef&&this.declareName(e.name,t,e.start));break;case`ChainExpression`:this.raiseRecoverable(e.start,`Optional chaining cannot appear in left-hand side`);break;case`MemberExpression`:r&&this.raiseRecoverable(e.start,`Binding member expression`);break;case`ParenthesizedExpression`:return r&&this.raiseRecoverable(e.start,`Binding parenthesized expression`),this.checkLValSimple(e.expression,t,n);default:this.raise(e.start,(r?`Binding`:`Assigning to`)+` rvalue`)}},Bf.checkLValPattern=function(e,t,n){switch(t===void 0&&(t=xf),e.type){case`ObjectPattern`:for(var r=0,i=e.properties;r<i.length;r+=1){var a=i[r];this.checkLValInnerPattern(a,t,n)}break;case`ArrayPattern`:for(var o=0,s=e.elements;o<s.length;o+=1){var c=s[o];c&&this.checkLValInnerPattern(c,t,n)}break;default:this.checkLValSimple(e,t,n)}},Bf.checkLValInnerPattern=function(e,t,n){switch(t===void 0&&(t=xf),e.type){case`Property`:this.checkLValInnerPattern(e.value,t,n);break;case`AssignmentPattern`:this.checkLValPattern(e.left,t,n);break;case`RestElement`:this.checkLValPattern(e.argument,t,n);break;default:this.checkLValPattern(e,t,n)}};var Vf=function(e,t,n,r,i){this.token=e,this.isExpr=!!t,this.preserveSpace=!!n,this.override=r,this.generator=!!i},Hf={b_stat:new Vf(`{`,!1),b_expr:new Vf(`{`,!0),b_tmpl:new Vf("${",!1),p_stat:new Vf(`(`,!1),p_expr:new Vf(`(`,!0),q_tmpl:new Vf("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new Vf(`function`,!1),f_expr:new Vf(`function`,!0),f_expr_gen:new Vf(`function`,!0,!1,null,!0),f_gen:new Vf(`function`,!1,!1,null,!0)},Uf=Df.prototype;Uf.initialContext=function(){return[Hf.b_stat]},Uf.curContext=function(){return this.context[this.context.length-1]},Uf.braceIsBlock=function(e){var t=this.curContext();return t===Hf.f_expr||t===Hf.f_stat?!0:e===J.colon&&(t===Hf.b_stat||t===Hf.b_expr)?!t.isExpr:e===J._return||e===J.name&&this.exprAllowed?Hd.test(this.input.slice(this.lastTokEnd,this.start)):e===J._else||e===J.semi||e===J.eof||e===J.parenR||e===J.arrow?!0:e===J.braceL?t===Hf.b_stat:e===J._var||e===J._const||e===J.name?!1:!this.exprAllowed},Uf.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token===`function`)return t.generator}return!1},Uf.updateContext=function(e){var t,n=this.type;n.keyword&&e===J.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr},Uf.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},J.parenR.updateContext=J.braceR.updateContext=function(){if(this.context.length===1)this.exprAllowed=!0;else{var e=this.context.pop();e===Hf.b_stat&&this.curContext().token===`function`&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}},J.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?Hf.b_stat:Hf.b_expr),this.exprAllowed=!0},J.dollarBraceL.updateContext=function(){this.context.push(Hf.b_tmpl),this.exprAllowed=!0},J.parenL.updateContext=function(e){var t=e===J._if||e===J._for||e===J._with||e===J._while;this.context.push(t?Hf.p_stat:Hf.p_expr),this.exprAllowed=!0},J.incDec.updateContext=function(){},J._function.updateContext=J._class.updateContext=function(e){e.beforeExpr&&e!==J._else&&(e!==J.semi||this.curContext()===Hf.p_stat)&&!(e===J._return&&Hd.test(this.input.slice(this.lastTokEnd,this.start)))&&(e!==J.colon&&e!==J.braceL||this.curContext()!==Hf.b_stat)?this.context.push(Hf.f_expr):this.context.push(Hf.f_stat),this.exprAllowed=!1},J.backQuote.updateContext=function(){this.curContext()===Hf.q_tmpl?this.context.pop():this.context.push(Hf.q_tmpl),this.exprAllowed=!1},J.star.updateContext=function(e){if(e===J._function){var t=this.context.length-1;this.context[t]===Hf.f_expr?this.context[t]=Hf.f_expr_gen:this.context[t]=Hf.f_gen}this.exprAllowed=!0},J.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==J.dot&&(this.value===`of`&&!this.exprAllowed||this.value===`yield`&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var X=Df.prototype;X.checkPropClash=function(e,t,n){if(!(this.options.ecmaVersion>=9&&e.type===`SpreadElement`)&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var r=e.key,i;switch(r.type){case`Identifier`:i=r.name;break;case`Literal`:i=String(r.value);break;default:return}var a=e.kind;if(this.options.ecmaVersion>=6)i===`__proto__`&&a===`init`&&(t.proto&&(n?n.doubleProto<0&&(n.doubleProto=r.start):this.raiseRecoverable(r.start,`Redefinition of __proto__ property`)),t.proto=!0);else{i=`$`+i;var o=t[i];o?(a===`init`?this.strict&&o.init||o.get||o.set:o.init||o[a])&&this.raiseRecoverable(r.start,`Redefinition of property`):o=t[i]={init:!1,get:!1,set:!1},o[a]=!0}}},X.parseExpression=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===J.comma){var a=this.startNodeAt(n,r);for(a.expressions=[i];this.eat(J.comma);)a.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(a,`SequenceExpression`)}return i},X.parseMaybeAssign=function(e,t,n){if(this.isContextual(`yield`)){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var r=!1,i=-1,a=-1,o=-1;t?(i=t.parenthesizedAssign,a=t.trailingComma,o=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new jf,r=!0);var s=this.start,c=this.startLoc;(this.type===J.parenL||this.type===J.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e===`await`);var l=this.parseMaybeConditional(e,t);if(n&&(l=n.call(this,l,s,c)),this.type.isAssign){var u=this.startNodeAt(s,c);return u.operator=this.value,this.type===J.eq&&(l=this.toAssignable(l,!1,t)),r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=l.start&&(t.shorthandAssign=-1),this.type===J.eq?this.checkLValPattern(l):this.checkLValSimple(l),u.left=l,this.next(),u.right=this.parseMaybeAssign(e),o>-1&&(t.doubleProto=o),this.finishNode(u,`AssignmentExpression`)}return r&&this.checkExpressionErrors(t,!0),i>-1&&(t.parenthesizedAssign=i),a>-1&&(t.trailingComma=a),l},X.parseMaybeConditional=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(J.question)){var a=this.startNodeAt(n,r);return a.test=i,a.consequent=this.parseMaybeAssign(),this.expect(J.colon),a.alternate=this.parseMaybeAssign(e),this.finishNode(a,`ConditionalExpression`)}return i},X.parseExprOps=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||i.start===n&&i.type===`ArrowFunctionExpression`?i:this.parseExprOp(i,n,r,-1,e)},X.parseExprOp=function(e,t,n,r,i){var a=this.type.binop;if(a!=null&&(!i||this.type!==J._in)&&a>r){var o=this.type===J.logicalOR||this.type===J.logicalAND,s=this.type===J.coalesce;s&&(a=J.logicalAND.binop);var c=this.value;this.next();var l=this.start,u=this.startLoc,d=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,i),l,u,a,i),f=this.buildBinary(t,n,e,d,c,o||s);return(o&&this.type===J.coalesce||s&&(this.type===J.logicalOR||this.type===J.logicalAND))&&this.raiseRecoverable(this.start,`Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses`),this.parseExprOp(f,t,n,r,i)}return e},X.buildBinary=function(e,t,n,r,i,a){r.type===`PrivateIdentifier`&&this.raise(r.start,`Private identifier can only be left side of binary expression`);var o=this.startNodeAt(e,t);return o.left=n,o.operator=i,o.right=r,this.finishNode(o,a?`LogicalExpression`:`BinaryExpression`)},X.parseMaybeUnary=function(e,t,n,r){var i=this.start,a=this.startLoc,o;if(this.isContextual(`await`)&&this.canAwait)o=this.parseAwait(r),t=!0;else if(this.type.prefix){var s=this.startNode(),c=this.type===J.incDec;s.operator=this.value,s.prefix=!0,this.next(),s.argument=this.parseMaybeUnary(null,!0,c,r),this.checkExpressionErrors(e,!0),c?this.checkLValSimple(s.argument):this.strict&&s.operator===`delete`&&s.argument.type===`Identifier`?this.raiseRecoverable(s.start,`Deleting local variable in strict mode`):s.operator===`delete`&&Wf(s.argument)?this.raiseRecoverable(s.start,`Private fields can not be deleted`):t=!0,o=this.finishNode(s,c?`UpdateExpression`:`UnaryExpression`)}else if(!t&&this.type===J.privateId)(r||this.privateNameStack.length===0)&&this.unexpected(),o=this.parsePrivateIdent(),this.type!==J._in&&this.unexpected();else{if(o=this.parseExprSubscripts(e,r),this.checkExpressionErrors(e))return o;for(;this.type.postfix&&!this.canInsertSemicolon();){var l=this.startNodeAt(i,a);l.operator=this.value,l.prefix=!1,l.argument=o,this.checkLValSimple(o),this.next(),o=this.finishNode(l,`UpdateExpression`)}}if(!n&&this.eat(J.starstar)){if(t)this.unexpected(this.lastTokStart);else return this.buildBinary(i,a,o,this.parseMaybeUnary(null,!1,!1,r),`**`,!1)}else return o};function Wf(e){return e.type===`MemberExpression`&&e.property.type===`PrivateIdentifier`||e.type===`ChainExpression`&&Wf(e.expression)}X.parseExprSubscripts=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprAtom(e,t);if(i.type===`ArrowFunctionExpression`&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==`)`)return i;var a=this.parseSubscripts(i,n,r,!1,t);return e&&a.type===`MemberExpression`&&(e.parenthesizedAssign>=a.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=a.start&&(e.parenthesizedBind=-1),e.trailingComma>=a.start&&(e.trailingComma=-1)),a},X.parseSubscripts=function(e,t,n,r,i){for(var a=this.options.ecmaVersion>=8&&e.type===`Identifier`&&e.name===`async`&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,o=!1;;){var s=this.parseSubscript(e,t,n,r,a,o,i);if(s.optional&&(o=!0),s===e||s.type===`ArrowFunctionExpression`){if(o){var c=this.startNodeAt(t,n);c.expression=s,s=this.finishNode(c,`ChainExpression`)}return s}e=s}},X.parseSubscript=function(e,t,n,r,i,a,o){var s=this.options.ecmaVersion>=11,c=s&&this.eat(J.questionDot);r&&c&&this.raise(this.lastTokStart,`Optional chaining cannot appear in the callee of new expressions`);var l=this.eat(J.bracketL);if(l||c&&this.type!==J.parenL&&this.type!==J.backQuote||this.eat(J.dot)){var u=this.startNodeAt(t,n);u.object=e,l?(u.property=this.parseExpression(),this.expect(J.bracketR)):u.property=this.type===J.privateId&&e.type!==`Super`?this.parsePrivateIdent():this.parseIdent(this.options.allowReserved!==`never`),u.computed=!!l,s&&(u.optional=c),e=this.finishNode(u,`MemberExpression`)}else if(!r&&this.eat(J.parenL)){var d=new jf,f=this.yieldPos,p=this.awaitPos,m=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var h=this.parseExprList(J.parenR,this.options.ecmaVersion>=8,!1,d);if(i&&!c&&!this.canInsertSemicolon()&&this.eat(J.arrow))return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,`Cannot use 'await' as identifier inside an async function`),this.yieldPos=f,this.awaitPos=p,this.awaitIdentPos=m,this.parseArrowExpression(this.startNodeAt(t,n),h,!0,o);this.checkExpressionErrors(d,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=p||this.awaitPos,this.awaitIdentPos=m||this.awaitIdentPos;var g=this.startNodeAt(t,n);g.callee=e,g.arguments=h,s&&(g.optional=c),e=this.finishNode(g,`CallExpression`)}else if(this.type===J.backQuote){(c||a)&&this.raise(this.start,`Optional chaining cannot appear in the tag of tagged template expressions`);var _=this.startNodeAt(t,n);_.tag=e,_.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(_,`TaggedTemplateExpression`)}return e},X.parseExprAtom=function(e,t){this.type===J.slash&&this.readRegexp();var n,r=this.potentialArrowAt===this.start;switch(this.type){case J._super:return this.allowSuper||this.raise(this.start,`'super' keyword outside a method`),n=this.startNode(),this.next(),this.type===J.parenL&&!this.allowDirectSuper&&this.raise(n.start,`super() call outside constructor of a subclass`),this.type!==J.dot&&this.type!==J.bracketL&&this.type!==J.parenL&&this.unexpected(),this.finishNode(n,`Super`);case J._this:return n=this.startNode(),this.next(),this.finishNode(n,`ThisExpression`);case J.name:var i=this.start,a=this.startLoc,o=this.containsEsc,s=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!o&&s.name===`async`&&!this.canInsertSemicolon()&&this.eat(J._function))return this.overrideContext(Hf.f_expr),this.parseFunction(this.startNodeAt(i,a),0,!1,!0,t);if(r&&!this.canInsertSemicolon()){if(this.eat(J.arrow))return this.parseArrowExpression(this.startNodeAt(i,a),[s],!1,t);if(this.options.ecmaVersion>=8&&s.name===`async`&&this.type===J.name&&!o&&(!this.potentialArrowInForAwait||this.value!==`of`||this.containsEsc))return s=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(J.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(i,a),[s],!0,t)}return s;case J.regexp:var c=this.value;return n=this.parseLiteral(c.value),n.regex={pattern:c.pattern,flags:c.flags},n;case J.num:case J.string:return this.parseLiteral(this.value);case J._null:case J._true:case J._false:return n=this.startNode(),n.value=this.type===J._null?null:this.type===J._true,n.raw=this.type.keyword,this.next(),this.finishNode(n,`Literal`);case J.parenL:var l=this.start,u=this.parseParenAndDistinguishExpression(r,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(u)&&(e.parenthesizedAssign=l),e.parenthesizedBind<0&&(e.parenthesizedBind=l)),u;case J.bracketL:return n=this.startNode(),this.next(),n.elements=this.parseExprList(J.bracketR,!0,!0,e),this.finishNode(n,`ArrayExpression`);case J.braceL:return this.overrideContext(Hf.b_expr),this.parseObj(!1,e);case J._function:return n=this.startNode(),this.next(),this.parseFunction(n,0);case J._class:return this.parseClass(this.startNode(),!1);case J._new:return this.parseNew();case J.backQuote:return this.parseTemplate();case J._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},X.parseExprImport=function(){var e=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,`Escape sequence in keyword import`);var t=this.parseIdent(!0);switch(this.type){case J.parenL:return this.parseDynamicImport(e);case J.dot:return e.meta=t,this.parseImportMeta(e);default:this.unexpected()}},X.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(J.parenR)){var t=this.start;this.eat(J.comma)&&this.eat(J.parenR)?this.raiseRecoverable(t,`Trailing comma is not allowed in import()`):this.unexpected(t)}return this.finishNode(e,`ImportExpression`)},X.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!==`meta`&&this.raiseRecoverable(e.property.start,`The only valid meta property for import is 'import.meta'`),t&&this.raiseRecoverable(e.start,`'import.meta' must not contain escaped characters`),this.options.sourceType!==`module`&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,`Cannot use 'import.meta' outside a module`),this.finishNode(e,`MetaProperty`)},X.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,``)),this.next(),this.finishNode(t,`Literal`)},X.parseParenExpression=function(){this.expect(J.parenL);var e=this.parseExpression();return this.expect(J.parenR),e},X.parseParenAndDistinguishExpression=function(e,t){var n=this.start,r=this.startLoc,i,a=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var o=this.start,s=this.startLoc,c=[],l=!0,u=!1,d=new jf,f=this.yieldPos,p=this.awaitPos,m;for(this.yieldPos=0,this.awaitPos=0;this.type!==J.parenR;){if(l?l=!1:this.expect(J.comma),a&&this.afterTrailingComma(J.parenR,!0)){u=!0;break}if(this.type===J.ellipsis){m=this.start,c.push(this.parseParenItem(this.parseRestBinding())),this.type===J.comma&&this.raise(this.start,`Comma is not permitted after the rest element`);break}c.push(this.parseMaybeAssign(!1,d,this.parseParenItem))}var h=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(J.parenR),e&&!this.canInsertSemicolon()&&this.eat(J.arrow))return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=f,this.awaitPos=p,this.parseParenArrowList(n,r,c,t);(!c.length||u)&&this.unexpected(this.lastTokStart),m&&this.unexpected(m),this.checkExpressionErrors(d,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=p||this.awaitPos,c.length>1?(i=this.startNodeAt(o,s),i.expressions=c,this.finishNodeAt(i,`SequenceExpression`,h,g)):i=c[0]}else i=this.parseParenExpression();if(this.options.preserveParens){var _=this.startNodeAt(n,r);return _.expression=i,this.finishNode(_,`ParenthesizedExpression`)}return i},X.parseParenItem=function(e){return e},X.parseParenArrowList=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!1,r)};var Gf=[];X.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,`Escape sequence in keyword new`);var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(J.dot)){e.meta=t;var n=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!==`target`&&this.raiseRecoverable(e.property.start,`The only valid meta property for new is 'new.target'`),n&&this.raiseRecoverable(e.start,`'new.target' must not contain escaped characters`),this.allowNewDotTarget||this.raiseRecoverable(e.start,`'new.target' can only be used in functions and class static block`),this.finishNode(e,`MetaProperty`)}var r=this.start,i=this.startLoc,a=this.type===J._import;return e.callee=this.parseSubscripts(this.parseExprAtom(),r,i,!0,!1),a&&e.callee.type===`ImportExpression`&&this.raise(r,`Cannot use new with import()`),e.arguments=this.eat(J.parenL)?this.parseExprList(J.parenR,this.options.ecmaVersion>=8,!1):Gf,this.finishNode(e,`NewExpression`)},X.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===J.invalidTemplate?(t||this.raiseRecoverable(this.start,`Bad escape sequence in untagged template literal`),n.value={raw:this.value,cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
32
|
-
`),cooked:this.value},this.next(),n.tail=this.type===J.backQuote,this.finishNode(n,`TemplateElement`)},X.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(n.quasis=[r];!r.tail;)this.type===J.eof&&this.raise(this.pos,`Unterminated template literal`),this.expect(J.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(J.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,`TemplateLiteral`)},X.isAsyncProp=function(e){return!e.computed&&e.key.type===`Identifier`&&e.key.name===`async`&&(this.type===J.name||this.type===J.num||this.type===J.string||this.type===J.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===J.star)&&!Hd.test(this.input.slice(this.lastTokEnd,this.start))},X.parseObj=function(e,t){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(J.braceR);){if(r)r=!1;else if(this.expect(J.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(J.braceR))break;var a=this.parseProperty(e,t);e||this.checkPropClash(a,i,t),n.properties.push(a)}return this.finishNode(n,e?`ObjectPattern`:`ObjectExpression`)},X.parseProperty=function(e,t){var n=this.startNode(),r,i,a,o;if(this.options.ecmaVersion>=9&&this.eat(J.ellipsis))return e?(n.argument=this.parseIdent(!1),this.type===J.comma&&this.raise(this.start,`Comma is not permitted after the rest element`),this.finishNode(n,`RestElement`)):(n.argument=this.parseMaybeAssign(!1,t),this.type===J.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(n,`SpreadElement`));this.options.ecmaVersion>=6&&(n.method=!1,n.shorthand=!1,(e||t)&&(a=this.start,o=this.startLoc),e||(r=this.eat(J.star)));var s=this.containsEsc;return this.parsePropertyName(n),!e&&!s&&this.options.ecmaVersion>=8&&!r&&this.isAsyncProp(n)?(i=!0,r=this.options.ecmaVersion>=9&&this.eat(J.star),this.parsePropertyName(n)):i=!1,this.parsePropertyValue(n,e,r,i,a,o,t,s),this.finishNode(n,`Property`)},X.parsePropertyValue=function(e,t,n,r,i,a,o,s){if((n||r)&&this.type===J.colon&&this.unexpected(),this.eat(J.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind=`init`;else if(this.options.ecmaVersion>=6&&this.type===J.parenL)t&&this.unexpected(),e.kind=`init`,e.method=!0,e.value=this.parseMethod(n,r);else if(!t&&!s&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type===`Identifier`&&(e.key.name===`get`||e.key.name===`set`)&&this.type!==J.comma&&this.type!==J.braceR&&this.type!==J.eq){(n||r)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var c=e.kind===`get`?0:1;if(e.value.params.length!==c){var l=e.value.start;e.kind===`get`?this.raiseRecoverable(l,`getter should have no params`):this.raiseRecoverable(l,`setter should have exactly one param`)}else e.kind===`set`&&e.value.params[0].type===`RestElement`&&this.raiseRecoverable(e.value.params[0].start,`Setter cannot use rest params`)}else this.options.ecmaVersion>=6&&!e.computed&&e.key.type===`Identifier`?((n||r)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name===`await`&&!this.awaitIdentPos&&(this.awaitIdentPos=i),e.kind=`init`,t?e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key)):this.type===J.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected()},X.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(J.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(J.bracketR),e.key;e.computed=!1}return e.key=this.type===J.num||this.type===J.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!==`never`)},X.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},X.parseMethod=function(e,t,n){var r=this.startNode(),i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=e),this.options.ecmaVersion>=8&&(r.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(bf(t,r.generator)|gf|(n?_f:0)),this.expect(J.parenL),r.params=this.parseBindingList(J.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(r,`FunctionExpression`)},X.parseArrowExpression=function(e,t,n,r){var i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.enterScope(bf(n,!1)|mf),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,r),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,`ArrowFunctionExpression`)},X.parseFunctionBody=function(e,t,n,r){var i=t&&this.type!==J.braceL,a=this.strict,o=!1;if(i)e.body=this.parseMaybeAssign(r),e.expression=!0,this.checkParams(e,!1);else{var s=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!a||s)&&(o=this.strictDirective(this.end),o&&s&&this.raiseRecoverable(e.start,`Illegal 'use strict' directive in function with non-simple parameter list`));var c=this.labels;this.labels=[],o&&(this.strict=!0),this.checkParams(e,!a&&!o&&!t&&!n&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,Ef),e.body=this.parseBlock(!1,void 0,o&&!a),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=c}this.exitScope()},X.isSimpleParamList=function(e){for(var t=0,n=e;t<n.length;t+=1)if(n[t].type!==`Identifier`)return!1;return!0},X.checkParams=function(e,t){for(var n=/* @__PURE__ */ Object.create(null),r=0,i=e.params;r<i.length;r+=1){var a=i[r];this.checkLValInnerPattern(a,Sf,t?null:n)}},X.parseExprList=function(e,t,n,r){for(var i=[],a=!0;!this.eat(e);){if(a)a=!1;else if(this.expect(J.comma),t&&this.afterTrailingComma(e))break;var o=void 0;n&&this.type===J.comma?o=null:this.type===J.ellipsis?(o=this.parseSpread(r),r&&this.type===J.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):o=this.parseMaybeAssign(!1,r),i.push(o)}return i},X.checkUnreserved=function(e){var t=e.start,n=e.end,r=e.name;this.inGenerator&&r===`yield`&&this.raiseRecoverable(t,`Cannot use 'yield' as identifier inside a generator`),this.inAsync&&r===`await`&&this.raiseRecoverable(t,`Cannot use 'await' as identifier inside an async function`),this.currentThisScope().inClassFieldInit&&r===`arguments`&&this.raiseRecoverable(t,`Cannot use 'arguments' in class field initializer`),this.inClassStaticBlock&&(r===`arguments`||r===`await`)&&this.raise(t,`Cannot use `+r+` in class static initialization block`),this.keywords.test(r)&&this.raise(t,`Unexpected keyword '`+r+`'`),!(this.options.ecmaVersion<6&&this.input.slice(t,n).indexOf(`\\`)!==-1)&&(this.strict?this.reservedWordsStrict:this.reservedWords).test(r)&&(!this.inAsync&&r===`await`&&this.raiseRecoverable(t,`Cannot use keyword 'await' outside an async function`),this.raiseRecoverable(t,`The keyword '`+r+`' is reserved`))},X.parseIdent=function(e){var t=this.startNode();return this.type===J.name?t.name=this.value:this.type.keyword?(t.name=this.type.keyword,(t.name===`class`||t.name===`function`)&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop()):this.unexpected(),this.next(!!e),this.finishNode(t,`Identifier`),e||(this.checkUnreserved(t),t.name===`await`&&!this.awaitIdentPos&&(this.awaitIdentPos=t.start)),t},X.parsePrivateIdent=function(){var e=this.startNode();return this.type===J.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,`PrivateIdentifier`),this.privateNameStack.length===0?this.raise(e.start,`Private field '#`+e.name+`' must be declared in an enclosing class`):this.privateNameStack[this.privateNameStack.length-1].used.push(e),e},X.parseYield=function(e){this.yieldPos||=this.start;var t=this.startNode();return this.next(),this.type===J.semi||this.canInsertSemicolon()||this.type!==J.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(J.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,`YieldExpression`)},X.parseAwait=function(e){this.awaitPos||=this.start;var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,`AwaitExpression`)};var Kf=Df.prototype;Kf.raise=function(e,t){var n=af(this.input,e);t+=` (`+n.line+`:`+n.column+`)`;var r=SyntaxError(t);throw r.pos=e,r.loc=n,r.raisedAt=this.pos,r},Kf.raiseRecoverable=Kf.raise,Kf.curPosition=function(){if(this.options.locations)return new nf(this.curLine,this.pos-this.lineStart)};var qf=Df.prototype,Jf=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};qf.enterScope=function(e){this.scopeStack.push(new Jf(e))},qf.exitScope=function(){this.scopeStack.pop()},qf.treatFunctionsAsVarInScope=function(e){return e.flags&df||!this.inModule&&e.flags&uf},qf.declareName=function(e,t,n){var r=!1;if(t===Cf){var i=this.currentScope();r=i.lexical.indexOf(e)>-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&i.flags&uf&&delete this.undefinedExports[e]}else if(t===Tf)this.currentScope().lexical.push(e);else if(t===wf){var a=this.currentScope();r=this.treatFunctionsAsVar?a.lexical.indexOf(e)>-1:a.lexical.indexOf(e)>-1||a.var.indexOf(e)>-1,a.functions.push(e)}else for(var o=this.scopeStack.length-1;o>=0;--o){var s=this.scopeStack[o];if(s.lexical.indexOf(e)>-1&&!(s.flags&hf&&s.lexical[0]===e)||!this.treatFunctionsAsVarInScope(s)&&s.functions.indexOf(e)>-1){r=!0;break}if(s.var.push(e),this.inModule&&s.flags&uf&&delete this.undefinedExports[e],s.flags&yf)break}r&&this.raiseRecoverable(n,`Identifier '`+e+`' has already been declared`)},qf.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)},qf.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},qf.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&yf)return t}},qf.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&yf&&!(t.flags&mf))return t}};var Yf=function(e,t,n){this.type=``,this.start=t,this.end=0,e.options.locations&&(this.loc=new rf(e,n)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},Xf=Df.prototype;Xf.startNode=function(){return new Yf(this,this.start,this.startLoc)},Xf.startNodeAt=function(e,t){return new Yf(this,e,t)};function Zf(e,t,n,r){return e.type=t,e.end=n,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=n),e}Xf.finishNode=function(e,t){return Zf.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},Xf.finishNodeAt=function(e,t,n,r){return Zf.call(this,e,t,n,r)},Xf.copyNode=function(e){var t=new Yf(this,e.start,this.startLoc);for(var n in e)t[n]=e[n];return t};var Qf=`ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS`,$f=Qf+` Extended_Pictographic`,ep=$f,tp=ep+` EBase EComp EMod EPres ExtPict`,np=tp,rp={9:Qf,10:$f,11:ep,12:tp,13:np,14:np},ip=`Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu`,ap=`Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb`,op=ap+` Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd`,sp=op+` Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho`,cp=sp+` Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi`,lp=cp+` Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith`,up={9:ap,10:op,11:sp,12:cp,13:lp,14:lp+` Kawi Nag_Mundari Nagm`},dp={};function fp(e){var t=dp[e]={binary:$d(rp[e]+` `+ip),nonBinary:{General_Category:$d(ip),Script:$d(up[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(Ju=0,Yu=[9,10,11,12,13,14];Ju<Yu.length;Ju+=1)qu=Yu[Ju],fp(qu);var qu,Ju,Yu,Z=Df.prototype,pp=function(e){this.parser=e,this.validFlags=`gim`+(e.options.ecmaVersion>=6?`uy`:``)+(e.options.ecmaVersion>=9?`s`:``)+(e.options.ecmaVersion>=13?`d`:``),this.unicodeProperties=dp[e.options.ecmaVersion>=14?14:e.options.ecmaVersion],this.source=``,this.flags=``,this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue=``,this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};pp.prototype.reset=function(e,t,n){var r=n.indexOf(`u`)!==-1;this.start=e|0,this.source=t+``,this.flags=n,this.switchU=r&&this.parser.options.ecmaVersion>=6,this.switchN=r&&this.parser.options.ecmaVersion>=9},pp.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,`Invalid regular expression: /`+this.source+`/: `+e)},pp.prototype.at=function(e,t){t===void 0&&(t=!1);var n=this.source,r=n.length;if(e>=r)return-1;var i=n.charCodeAt(e);if(!(t||this.switchU)||i<=55295||i>=57344||e+1>=r)return i;var a=n.charCodeAt(e+1);return a>=56320&&a<=57343?(i<<10)+a-56613888:i},pp.prototype.nextIndex=function(e,t){t===void 0&&(t=!1);var n=this.source,r=n.length;if(e>=r)return r;var i=n.charCodeAt(e),a;return!(t||this.switchU)||i<=55295||i>=57344||e+1>=r||(a=n.charCodeAt(e+1))<56320||a>57343?e+1:e+2},pp.prototype.current=function(e){return e===void 0&&(e=!1),this.at(this.pos,e)},pp.prototype.lookahead=function(e){return e===void 0&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},pp.prototype.advance=function(e){e===void 0&&(e=!1),this.pos=this.nextIndex(this.pos,e)},pp.prototype.eat=function(e,t){return t===void 0&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},Z.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,r=0;r<n.length;r++){var i=n.charAt(r);t.indexOf(i)===-1&&this.raise(e.start,`Invalid regular expression flag`),n.indexOf(i,r+1)>-1&&this.raise(e.start,`Duplicate regular expression flag`)}},Z.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},Z.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue=``,e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise(`Unmatched ')'`),(e.eat(93)||e.eat(125))&&e.raise(`Lone quantifier brackets`)),e.maxBackReference>e.numCapturingParens&&e.raise(`Invalid escape`);for(var t=0,n=e.backReferenceNames;t<n.length;t+=1){var r=n[t];e.groupNames.indexOf(r)===-1&&e.raise(`Invalid named capture referenced`)}},Z.regexp_disjunction=function(e){for(this.regexp_alternative(e);e.eat(124);)this.regexp_alternative(e);this.regexp_eatQuantifier(e,!0)&&e.raise(`Nothing to repeat`),e.eat(123)&&e.raise(`Lone quantifier brackets`)},Z.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},Z.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise(`Invalid quantifier`),!0):(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))?(this.regexp_eatQuantifier(e),!0):!1},Z.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var n=!1;if(this.options.ecmaVersion>=9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise(`Unterminated group`),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=t,!1},Z.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1},Z.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},Z.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var r=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return i!==-1&&i<r&&!t&&e.raise(`numbers out of order in {} quantifier`),!0;e.switchU&&!t&&e.raise(`Incomplete quantifier`),e.pos=n}return!1},Z.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},Z.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},Z.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)&&e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise(`Unterminated group`)}e.pos=t}return!1},Z.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise(`Invalid group`),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise(`Unterminated group`)}return!1},Z.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},Z.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise(`Nothing to repeat`),!1},Z.regexp_eatSyntaxCharacter=function(e){var t=e.current();return mp(t)?(e.lastIntValue=t,e.advance(),!0):!1};function mp(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}Z.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;(n=e.current())!==-1&&!mp(n);)e.advance();return e.pos!==t},Z.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124&&(e.advance(),!0)},Z.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e)){e.groupNames.indexOf(e.lastStringValue)!==-1&&e.raise(`Duplicate capture group name`),e.groupNames.push(e.lastStringValue);return}e.raise(`Invalid group`)}},Z.regexp_eatGroupName=function(e){if(e.lastStringValue=``,e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise(`Invalid capture group name`)}return!1},Z.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue=``,this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=ef(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=ef(e.lastIntValue);return!0}return!1},Z.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),hp(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function hp(e){return Id(e,!0)||e===36||e===95}Z.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),gp(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function gp(e){return Ld(e,!0)||e===36||e===95||e===8204||e===8205}Z.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise(`Invalid unicode escape`),e.raise(`Invalid escape`)),!1)},Z.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU)return n>e.maxBackReference&&(e.maxBackReference=n),!0;if(n<=e.numCapturingParens)return!0;e.pos=t}return!1},Z.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise(`Invalid named reference`)}return!1},Z.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},Z.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},Z.regexp_eatZero=function(e){return e.current()===48&&!Sp(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},Z.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114&&(e.lastIntValue=13,e.advance(),!0)},Z.regexp_eatControlLetter=function(e){var t=e.current();return _p(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function _p(e){return e>=65&&e<=90||e>=97&&e<=122}Z.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var n=e.pos,r=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var i=e.lastIntValue;if(r&&i>=55296&&i<=56319){var a=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(o>=56320&&o<=57343)return e.lastIntValue=(i-55296)*1024+(o-56320)+65536,!0}e.pos=a,e.lastIntValue=i}return!0}if(r&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&vp(e.lastIntValue))return!0;r&&e.raise(`Invalid unicode escape`),e.pos=n}return!1};function vp(e){return e>=0&&e<=1114111}Z.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)&&(e.lastIntValue=t,e.advance(),!0)},Z.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1},Z.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(yp(t))return e.lastIntValue=-1,e.advance(),!0;if(e.switchU&&this.options.ecmaVersion>=9&&(t===80||t===112)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125))return!0;e.raise(`Invalid property name`)}return!1};function yp(e){return e===100||e===68||e===115||e===83||e===119||e===87}Z.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,r),!0}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i),!0}return!1},Z.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){Zd(e.unicodeProperties.nonBinary,t)||e.raise(`Invalid property name`),e.unicodeProperties.nonBinary[t].test(n)||e.raise(`Invalid property value`)},Z.regexp_validateUnicodePropertyNameOrValue=function(e,t){e.unicodeProperties.binary.test(t)||e.raise(`Invalid property name`)},Z.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue=``;bp(t=e.current());)e.lastStringValue+=ef(t),e.advance();return e.lastStringValue!==``};function bp(e){return _p(e)||e===95}Z.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue=``;xp(t=e.current());)e.lastStringValue+=ef(t),e.advance();return e.lastStringValue!==``};function xp(e){return bp(e)||Sp(e)}Z.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},Z.regexp_eatCharacterClass=function(e){if(e.eat(91)){if(e.eat(94),this.regexp_classRanges(e),e.eat(93))return!0;e.raise(`Unterminated character class`)}return!1},Z.regexp_classRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;e.switchU&&(t===-1||n===-1)&&e.raise(`Invalid character class`),t!==-1&&n!==-1&&t>n&&e.raise(`Range out of order in character class`)}}},Z.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();(n===99||Tp(n))&&e.raise(`Invalid class escape`),e.raise(`Invalid escape`)}e.pos=t}var r=e.current();return r!==93&&(e.lastIntValue=r,e.advance(),!0)},Z.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},Z.regexp_eatClassControlLetter=function(e){var t=e.current();return Sp(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1},Z.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise(`Invalid escape`),e.pos=t}return!1},Z.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Sp(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t};function Sp(e){return e>=48&&e<=57}Z.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Cp(n=e.current());)e.lastIntValue=16*e.lastIntValue+wp(n),e.advance();return e.pos!==t};function Cp(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function wp(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}Z.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;e.lastIntValue=t<=3&&this.regexp_eatOctalDigit(e)?t*64+n*8+e.lastIntValue:t*8+n}else e.lastIntValue=t;return!0}return!1},Z.regexp_eatOctalDigit=function(e){var t=e.current();return Tp(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function Tp(e){return e>=48&&e<=55}Z.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r<t;++r){var i=e.current();if(!Cp(i))return e.pos=n,!1;e.lastIntValue=16*e.lastIntValue+wp(i),e.advance()}return!0};var Ep=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new rf(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},Q=Df.prototype;Q.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,`Escape sequence in keyword `+this.type.keyword),this.options.onToken&&this.options.onToken(new Ep(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},Q.getToken=function(){return this.next(),new Ep(this)},typeof Symbol<`u`&&(Q[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===J.eof,value:t}}}}),Q.nextToken=function(){var e=this.curContext();if((!e||!e.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(J.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())},Q.readToken=function(e){return Id(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)},Q.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888},Q.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,n=this.input.indexOf(`*/`,this.pos+=2);if(n===-1&&this.raise(this.pos-2,`Unterminated comment`),this.pos=n+2,this.options.locations)for(var r=void 0,i=t;(r=Gd(this.input,i,this.pos))>-1;)++this.curLine,i=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,n),t,this.pos,e,this.curPosition())},Q.skipLineComment=function(e){for(var t=this.pos,n=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!Wd(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,n,this.curPosition())},Q.skipSpace=function(){loop:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break loop}break;default:if(e>8&&e<14||e>=5760&&Kd.test(String.fromCharCode(e)))++this.pos;else break loop}}},Q.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)},Q.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(J.ellipsis)):(++this.pos,this.finishToken(J.dot))},Q.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(J.assign,2):this.finishOp(J.slash,1)},Q.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=e===42?J.star:J.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++n,r=J.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(J.assign,n+1):this.finishOp(r,n)},Q.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.options.ecmaVersion>=12&&this.input.charCodeAt(this.pos+2)===61?this.finishOp(J.assign,3):this.finishOp(e===124?J.logicalOR:J.logicalAND,2):t===61?this.finishOp(J.assign,2):this.finishOp(e===124?J.bitwiseOR:J.bitwiseAND,1)},Q.readToken_caret=function(){return this.input.charCodeAt(this.pos+1)===61?this.finishOp(J.assign,2):this.finishOp(J.bitwiseXOR,1)},Q.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||Hd.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(J.incDec,2):t===61?this.finishOp(J.assign,2):this.finishOp(J.plusMin,1)},Q.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+n)===61?this.finishOp(J.assign,n+1):this.finishOp(J.bitShift,n)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(n=2),this.finishOp(J.relational,n))},Q.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(J.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(J.arrow)):this.finishOp(e===61?J.eq:J.prefix,1)},Q.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57)return this.finishOp(J.questionDot,2)}if(t===63)return e>=12&&this.input.charCodeAt(this.pos+2)===61?this.finishOp(J.assign,3):this.finishOp(J.coalesce,2)}return this.finishOp(J.question,1)},Q.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),Id(t,!0)||t===92))return this.finishToken(J.privateId,this.readWord1());this.raise(this.pos,`Unexpected character '`+ef(t)+`'`)},Q.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(J.parenL);case 41:return++this.pos,this.finishToken(J.parenR);case 59:return++this.pos,this.finishToken(J.semi);case 44:return++this.pos,this.finishToken(J.comma);case 91:return++this.pos,this.finishToken(J.bracketL);case 93:return++this.pos,this.finishToken(J.bracketR);case 123:return++this.pos,this.finishToken(J.braceL);case 125:return++this.pos,this.finishToken(J.braceR);case 58:return++this.pos,this.finishToken(J.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(J.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(J.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,`Unexpected character '`+ef(e)+`'`)},Q.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},Q.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,`Unterminated regular expression`);var r=this.input.charAt(this.pos);if(Hd.test(r)&&this.raise(n,`Unterminated regular expression`),e)e=!1;else{if(r===`[`)t=!0;else if(r===`]`&&t)t=!1;else if(r===`/`&&!t)break;e=r===`\\`}++this.pos}var i=this.input.slice(n,this.pos);++this.pos;var a=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(a);var s=this.regexpState||=new pp(this);s.reset(n,i,o),this.validateRegExpFlags(s),this.validateRegExpPattern(s);var c=null;try{c=new RegExp(i,o)}catch{}return this.finishToken(J.regexp,{pattern:i,flags:o,value:c})},Q.readInt=function(e,t,n){for(var r=this.options.ecmaVersion>=12&&t===void 0,i=n&&this.input.charCodeAt(this.pos)===48,a=this.pos,o=0,s=0,c=0,l=t??1/0;c<l;++c,++this.pos){var u=this.input.charCodeAt(this.pos),d=void 0;if(r&&u===95)i&&this.raiseRecoverable(this.pos,`Numeric separator is not allowed in legacy octal numeric literals`),s===95&&this.raiseRecoverable(this.pos,`Numeric separator must be exactly one underscore`),c===0&&this.raiseRecoverable(this.pos,`Numeric separator is not allowed at the first of digits`),s=u;else{if(d=u>=97?u-97+10:u>=65?u-65+10:u>=48&&u<=57?u-48:1/0,d>=e)break;s=u,o=o*e+d}}return r&&s===95&&this.raiseRecoverable(this.pos-1,`Numeric separator is not allowed at the last of digits`),this.pos===a||t!=null&&this.pos-a!==t?null:o};function Dp(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,``))}function Op(e){return typeof BigInt==`function`?BigInt(e.replace(/_/g,``)):null}Q.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var n=this.readInt(e);return n??this.raise(this.start+2,`Expected number in radix `+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(n=Op(this.input.slice(t,this.pos)),++this.pos):Id(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`),this.finishToken(J.num,n)},Q.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,`Invalid number`);var n=this.pos-t>=2&&this.input.charCodeAt(t)===48;n&&this.strict&&this.raise(t,`Invalid number`);var r=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&r===110){var i=Op(this.input.slice(t,this.pos));return++this.pos,Id(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`),this.finishToken(J.num,i)}n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1),r===46&&!n&&(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),(r===69||r===101)&&!n&&(r=this.input.charCodeAt(++this.pos),(r===43||r===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,`Invalid number`)),Id(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`);var a=Dp(this.input.slice(t,this.pos),n);return this.finishToken(J.num,a)},Q.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var n=++this.pos;t=this.readHexChar(this.input.indexOf(`}`,this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(n,`Code point out of bounds`)}else t=this.readHexChar(4);return t},Q.readString=function(e){for(var t=``,n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated string constant`);var r=this.input.charCodeAt(this.pos);if(r===e)break;r===92?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):r===8232||r===8233?(this.options.ecmaVersion<10&&this.raise(this.start,`Unterminated string constant`),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(Wd(r)&&this.raise(this.start,`Unterminated string constant`),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(J.string,t)};var kp={};Q.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===kp)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1},Q.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw kp;this.raise(e,t)},Q.readTmplToken=function(){for(var e=``,t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated template`);var n=this.input.charCodeAt(this.pos);if(n===96||n===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===J.template||this.type===J.invalidTemplate)?n===36?(this.pos+=2,this.finishToken(J.dollarBraceL)):(++this.pos,this.finishToken(J.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(J.template,e));if(n===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(Wd(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
|
|
32
|
+
`),cooked:this.value},this.next(),n.tail=this.type===J.backQuote,this.finishNode(n,`TemplateElement`)},X.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(n.quasis=[r];!r.tail;)this.type===J.eof&&this.raise(this.pos,`Unterminated template literal`),this.expect(J.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(J.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,`TemplateLiteral`)},X.isAsyncProp=function(e){return!e.computed&&e.key.type===`Identifier`&&e.key.name===`async`&&(this.type===J.name||this.type===J.num||this.type===J.string||this.type===J.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===J.star)&&!Hd.test(this.input.slice(this.lastTokEnd,this.start))},X.parseObj=function(e,t){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(J.braceR);){if(r)r=!1;else if(this.expect(J.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(J.braceR))break;var a=this.parseProperty(e,t);e||this.checkPropClash(a,i,t),n.properties.push(a)}return this.finishNode(n,e?`ObjectPattern`:`ObjectExpression`)},X.parseProperty=function(e,t){var n=this.startNode(),r,i,a,o;if(this.options.ecmaVersion>=9&&this.eat(J.ellipsis))return e?(n.argument=this.parseIdent(!1),this.type===J.comma&&this.raise(this.start,`Comma is not permitted after the rest element`),this.finishNode(n,`RestElement`)):(n.argument=this.parseMaybeAssign(!1,t),this.type===J.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(n,`SpreadElement`));this.options.ecmaVersion>=6&&(n.method=!1,n.shorthand=!1,(e||t)&&(a=this.start,o=this.startLoc),e||(r=this.eat(J.star)));var s=this.containsEsc;return this.parsePropertyName(n),!e&&!s&&this.options.ecmaVersion>=8&&!r&&this.isAsyncProp(n)?(i=!0,r=this.options.ecmaVersion>=9&&this.eat(J.star),this.parsePropertyName(n)):i=!1,this.parsePropertyValue(n,e,r,i,a,o,t,s),this.finishNode(n,`Property`)},X.parsePropertyValue=function(e,t,n,r,i,a,o,s){if((n||r)&&this.type===J.colon&&this.unexpected(),this.eat(J.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind=`init`;else if(this.options.ecmaVersion>=6&&this.type===J.parenL)t&&this.unexpected(),e.kind=`init`,e.method=!0,e.value=this.parseMethod(n,r);else if(!t&&!s&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type===`Identifier`&&(e.key.name===`get`||e.key.name===`set`)&&this.type!==J.comma&&this.type!==J.braceR&&this.type!==J.eq){(n||r)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var c=e.kind===`get`?0:1;if(e.value.params.length!==c){var l=e.value.start;e.kind===`get`?this.raiseRecoverable(l,`getter should have no params`):this.raiseRecoverable(l,`setter should have exactly one param`)}else e.kind===`set`&&e.value.params[0].type===`RestElement`&&this.raiseRecoverable(e.value.params[0].start,`Setter cannot use rest params`)}else this.options.ecmaVersion>=6&&!e.computed&&e.key.type===`Identifier`?((n||r)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name===`await`&&!this.awaitIdentPos&&(this.awaitIdentPos=i),e.kind=`init`,t?e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key)):this.type===J.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected()},X.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(J.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(J.bracketR),e.key;e.computed=!1}return e.key=this.type===J.num||this.type===J.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!==`never`)},X.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},X.parseMethod=function(e,t,n){var r=this.startNode(),i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=e),this.options.ecmaVersion>=8&&(r.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(bf(t,r.generator)|gf|(n?_f:0)),this.expect(J.parenL),r.params=this.parseBindingList(J.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(r,`FunctionExpression`)},X.parseArrowExpression=function(e,t,n,r){var i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.enterScope(bf(n,!1)|mf),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,r),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,`ArrowFunctionExpression`)},X.parseFunctionBody=function(e,t,n,r){var i=t&&this.type!==J.braceL,a=this.strict,o=!1;if(i)e.body=this.parseMaybeAssign(r),e.expression=!0,this.checkParams(e,!1);else{var s=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!a||s)&&(o=this.strictDirective(this.end),o&&s&&this.raiseRecoverable(e.start,`Illegal 'use strict' directive in function with non-simple parameter list`));var c=this.labels;this.labels=[],o&&(this.strict=!0),this.checkParams(e,!a&&!o&&!t&&!n&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,Ef),e.body=this.parseBlock(!1,void 0,o&&!a),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=c}this.exitScope()},X.isSimpleParamList=function(e){for(var t=0,n=e;t<n.length;t+=1)if(n[t].type!==`Identifier`)return!1;return!0},X.checkParams=function(e,t){for(var n=/* @__PURE__ */ Object.create(null),r=0,i=e.params;r<i.length;r+=1){var a=i[r];this.checkLValInnerPattern(a,Sf,t?null:n)}},X.parseExprList=function(e,t,n,r){for(var i=[],a=!0;!this.eat(e);){if(a)a=!1;else if(this.expect(J.comma),t&&this.afterTrailingComma(e))break;var o=void 0;n&&this.type===J.comma?o=null:this.type===J.ellipsis?(o=this.parseSpread(r),r&&this.type===J.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):o=this.parseMaybeAssign(!1,r),i.push(o)}return i},X.checkUnreserved=function(e){var t=e.start,n=e.end,r=e.name;this.inGenerator&&r===`yield`&&this.raiseRecoverable(t,`Cannot use 'yield' as identifier inside a generator`),this.inAsync&&r===`await`&&this.raiseRecoverable(t,`Cannot use 'await' as identifier inside an async function`),this.currentThisScope().inClassFieldInit&&r===`arguments`&&this.raiseRecoverable(t,`Cannot use 'arguments' in class field initializer`),this.inClassStaticBlock&&(r===`arguments`||r===`await`)&&this.raise(t,`Cannot use `+r+` in class static initialization block`),this.keywords.test(r)&&this.raise(t,`Unexpected keyword '`+r+`'`),this.options.ecmaVersion<6&&this.input.slice(t,n).indexOf(`\\`)!==-1||(this.strict?this.reservedWordsStrict:this.reservedWords).test(r)&&(!this.inAsync&&r===`await`&&this.raiseRecoverable(t,`Cannot use keyword 'await' outside an async function`),this.raiseRecoverable(t,`The keyword '`+r+`' is reserved`))},X.parseIdent=function(e){var t=this.startNode();return this.type===J.name?t.name=this.value:this.type.keyword?(t.name=this.type.keyword,t.name!==`class`&&t.name!==`function`||this.lastTokEnd===this.lastTokStart+1&&this.input.charCodeAt(this.lastTokStart)===46||this.context.pop()):this.unexpected(),this.next(!!e),this.finishNode(t,`Identifier`),e||(this.checkUnreserved(t),t.name===`await`&&!this.awaitIdentPos&&(this.awaitIdentPos=t.start)),t},X.parsePrivateIdent=function(){var e=this.startNode();return this.type===J.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,`PrivateIdentifier`),this.privateNameStack.length===0?this.raise(e.start,`Private field '#`+e.name+`' must be declared in an enclosing class`):this.privateNameStack[this.privateNameStack.length-1].used.push(e),e},X.parseYield=function(e){this.yieldPos||=this.start;var t=this.startNode();return this.next(),this.type===J.semi||this.canInsertSemicolon()||this.type!==J.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(J.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,`YieldExpression`)},X.parseAwait=function(e){this.awaitPos||=this.start;var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,`AwaitExpression`)};var Kf=Df.prototype;Kf.raise=function(e,t){var n=af(this.input,e);t+=` (`+n.line+`:`+n.column+`)`;var r=SyntaxError(t);throw r.pos=e,r.loc=n,r.raisedAt=this.pos,r},Kf.raiseRecoverable=Kf.raise,Kf.curPosition=function(){if(this.options.locations)return new nf(this.curLine,this.pos-this.lineStart)};var qf=Df.prototype,Jf=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};qf.enterScope=function(e){this.scopeStack.push(new Jf(e))},qf.exitScope=function(){this.scopeStack.pop()},qf.treatFunctionsAsVarInScope=function(e){return e.flags&df||!this.inModule&&e.flags&uf},qf.declareName=function(e,t,n){var r=!1;if(t===Cf){var i=this.currentScope();r=i.lexical.indexOf(e)>-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&i.flags&uf&&delete this.undefinedExports[e]}else if(t===Tf)this.currentScope().lexical.push(e);else if(t===wf){var a=this.currentScope();r=this.treatFunctionsAsVar?a.lexical.indexOf(e)>-1:a.lexical.indexOf(e)>-1||a.var.indexOf(e)>-1,a.functions.push(e)}else for(var o=this.scopeStack.length-1;o>=0;--o){var s=this.scopeStack[o];if(s.lexical.indexOf(e)>-1&&!(s.flags&hf&&s.lexical[0]===e)||!this.treatFunctionsAsVarInScope(s)&&s.functions.indexOf(e)>-1){r=!0;break}if(s.var.push(e),this.inModule&&s.flags&uf&&delete this.undefinedExports[e],s.flags&yf)break}r&&this.raiseRecoverable(n,`Identifier '`+e+`' has already been declared`)},qf.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)},qf.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},qf.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&yf)return t}},qf.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&yf&&!(t.flags&mf))return t}};var Yf=function(e,t,n){this.type=``,this.start=t,this.end=0,e.options.locations&&(this.loc=new rf(e,n)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},Xf=Df.prototype;Xf.startNode=function(){return new Yf(this,this.start,this.startLoc)},Xf.startNodeAt=function(e,t){return new Yf(this,e,t)};function Zf(e,t,n,r){return e.type=t,e.end=n,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=n),e}Xf.finishNode=function(e,t){return Zf.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},Xf.finishNodeAt=function(e,t,n,r){return Zf.call(this,e,t,n,r)},Xf.copyNode=function(e){var t=new Yf(this,e.start,this.startLoc);for(var n in e)t[n]=e[n];return t};var Qf=`ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS`,$f=Qf+` Extended_Pictographic`,ep=$f,tp=ep+` EBase EComp EMod EPres ExtPict`,np=tp,rp={9:Qf,10:$f,11:ep,12:tp,13:np,14:np},ip=`Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu`,ap=`Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb`,op=ap+` Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd`,sp=op+` Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho`,cp=sp+` Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi`,lp=cp+` Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith`,up={9:ap,10:op,11:sp,12:cp,13:lp,14:lp+` Kawi Nag_Mundari Nagm`},dp={};function fp(e){var t=dp[e]={binary:$d(rp[e]+` `+ip),nonBinary:{General_Category:$d(ip),Script:$d(up[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(Ju=0,Yu=[9,10,11,12,13,14];Ju<Yu.length;Ju+=1)qu=Yu[Ju],fp(qu);var qu,Ju,Yu,Z=Df.prototype,pp=function(e){this.parser=e,this.validFlags=`gim`+(e.options.ecmaVersion>=6?`uy`:``)+(e.options.ecmaVersion>=9?`s`:``)+(e.options.ecmaVersion>=13?`d`:``),this.unicodeProperties=dp[e.options.ecmaVersion>=14?14:e.options.ecmaVersion],this.source=``,this.flags=``,this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue=``,this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};pp.prototype.reset=function(e,t,n){var r=n.indexOf(`u`)!==-1;this.start=e|0,this.source=t+``,this.flags=n,this.switchU=r&&this.parser.options.ecmaVersion>=6,this.switchN=r&&this.parser.options.ecmaVersion>=9},pp.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,`Invalid regular expression: /`+this.source+`/: `+e)},pp.prototype.at=function(e,t){t===void 0&&(t=!1);var n=this.source,r=n.length;if(e>=r)return-1;var i=n.charCodeAt(e);if(!(t||this.switchU)||i<=55295||i>=57344||e+1>=r)return i;var a=n.charCodeAt(e+1);return a>=56320&&a<=57343?(i<<10)+a-56613888:i},pp.prototype.nextIndex=function(e,t){t===void 0&&(t=!1);var n=this.source,r=n.length;if(e>=r)return r;var i=n.charCodeAt(e),a;return!(t||this.switchU)||i<=55295||i>=57344||e+1>=r||(a=n.charCodeAt(e+1))<56320||a>57343?e+1:e+2},pp.prototype.current=function(e){return e===void 0&&(e=!1),this.at(this.pos,e)},pp.prototype.lookahead=function(e){return e===void 0&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},pp.prototype.advance=function(e){e===void 0&&(e=!1),this.pos=this.nextIndex(this.pos,e)},pp.prototype.eat=function(e,t){return t===void 0&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},Z.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,r=0;r<n.length;r++){var i=n.charAt(r);t.indexOf(i)===-1&&this.raise(e.start,`Invalid regular expression flag`),n.indexOf(i,r+1)>-1&&this.raise(e.start,`Duplicate regular expression flag`)}},Z.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},Z.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue=``,e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise(`Unmatched ')'`),(e.eat(93)||e.eat(125))&&e.raise(`Lone quantifier brackets`)),e.maxBackReference>e.numCapturingParens&&e.raise(`Invalid escape`);for(var t=0,n=e.backReferenceNames;t<n.length;t+=1){var r=n[t];e.groupNames.indexOf(r)===-1&&e.raise(`Invalid named capture referenced`)}},Z.regexp_disjunction=function(e){for(this.regexp_alternative(e);e.eat(124);)this.regexp_alternative(e);this.regexp_eatQuantifier(e,!0)&&e.raise(`Nothing to repeat`),e.eat(123)&&e.raise(`Lone quantifier brackets`)},Z.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},Z.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise(`Invalid quantifier`),!0):(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))?(this.regexp_eatQuantifier(e),!0):!1},Z.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var n=!1;if(this.options.ecmaVersion>=9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise(`Unterminated group`),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=t,!1},Z.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1},Z.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},Z.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var r=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return i!==-1&&i<r&&!t&&e.raise(`numbers out of order in {} quantifier`),!0;e.switchU&&!t&&e.raise(`Incomplete quantifier`),e.pos=n}return!1},Z.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},Z.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},Z.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)&&e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise(`Unterminated group`)}e.pos=t}return!1},Z.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise(`Invalid group`),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise(`Unterminated group`)}return!1},Z.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},Z.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise(`Nothing to repeat`),!1},Z.regexp_eatSyntaxCharacter=function(e){var t=e.current();return mp(t)?(e.lastIntValue=t,e.advance(),!0):!1};function mp(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}Z.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;(n=e.current())!==-1&&!mp(n);)e.advance();return e.pos!==t},Z.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124&&(e.advance(),!0)},Z.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e)){e.groupNames.indexOf(e.lastStringValue)!==-1&&e.raise(`Duplicate capture group name`),e.groupNames.push(e.lastStringValue);return}e.raise(`Invalid group`)}},Z.regexp_eatGroupName=function(e){if(e.lastStringValue=``,e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise(`Invalid capture group name`)}return!1},Z.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue=``,this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=ef(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=ef(e.lastIntValue);return!0}return!1},Z.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),hp(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function hp(e){return Id(e,!0)||e===36||e===95}Z.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),r===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),gp(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)};function gp(e){return Ld(e,!0)||e===36||e===95||e===8204||e===8205}Z.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise(`Invalid unicode escape`),e.raise(`Invalid escape`)),!1)},Z.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU)return n>e.maxBackReference&&(e.maxBackReference=n),!0;if(n<=e.numCapturingParens)return!0;e.pos=t}return!1},Z.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise(`Invalid named reference`)}return!1},Z.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},Z.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},Z.regexp_eatZero=function(e){return e.current()===48&&!Sp(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},Z.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114&&(e.lastIntValue=13,e.advance(),!0)},Z.regexp_eatControlLetter=function(e){var t=e.current();return _p(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function _p(e){return e>=65&&e<=90||e>=97&&e<=122}Z.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var n=e.pos,r=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var i=e.lastIntValue;if(r&&i>=55296&&i<=56319){var a=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(o>=56320&&o<=57343)return e.lastIntValue=(i-55296)*1024+(o-56320)+65536,!0}e.pos=a,e.lastIntValue=i}return!0}if(r&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&vp(e.lastIntValue))return!0;r&&e.raise(`Invalid unicode escape`),e.pos=n}return!1};function vp(e){return e>=0&&e<=1114111}Z.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)&&(e.lastIntValue=t,e.advance(),!0)},Z.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1},Z.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(yp(t))return e.lastIntValue=-1,e.advance(),!0;if(e.switchU&&this.options.ecmaVersion>=9&&(t===80||t===112)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125))return!0;e.raise(`Invalid property name`)}return!1};function yp(e){return e===100||e===68||e===115||e===83||e===119||e===87}Z.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,r),!0}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i),!0}return!1},Z.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){Zd(e.unicodeProperties.nonBinary,t)||e.raise(`Invalid property name`),e.unicodeProperties.nonBinary[t].test(n)||e.raise(`Invalid property value`)},Z.regexp_validateUnicodePropertyNameOrValue=function(e,t){e.unicodeProperties.binary.test(t)||e.raise(`Invalid property name`)},Z.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue=``;bp(t=e.current());)e.lastStringValue+=ef(t),e.advance();return e.lastStringValue!==``};function bp(e){return _p(e)||e===95}Z.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue=``;xp(t=e.current());)e.lastStringValue+=ef(t),e.advance();return e.lastStringValue!==``};function xp(e){return bp(e)||Sp(e)}Z.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},Z.regexp_eatCharacterClass=function(e){if(e.eat(91)){if(e.eat(94),this.regexp_classRanges(e),e.eat(93))return!0;e.raise(`Unterminated character class`)}return!1},Z.regexp_classRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;e.switchU&&(t===-1||n===-1)&&e.raise(`Invalid character class`),t!==-1&&n!==-1&&t>n&&e.raise(`Range out of order in character class`)}}},Z.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();(n===99||Tp(n))&&e.raise(`Invalid class escape`),e.raise(`Invalid escape`)}e.pos=t}var r=e.current();return r!==93&&(e.lastIntValue=r,e.advance(),!0)},Z.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},Z.regexp_eatClassControlLetter=function(e){var t=e.current();return Sp(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1},Z.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise(`Invalid escape`),e.pos=t}return!1},Z.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Sp(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t};function Sp(e){return e>=48&&e<=57}Z.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Cp(n=e.current());)e.lastIntValue=16*e.lastIntValue+wp(n),e.advance();return e.pos!==t};function Cp(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function wp(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}Z.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;e.lastIntValue=t<=3&&this.regexp_eatOctalDigit(e)?t*64+n*8+e.lastIntValue:t*8+n}else e.lastIntValue=t;return!0}return!1},Z.regexp_eatOctalDigit=function(e){var t=e.current();return Tp(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function Tp(e){return e>=48&&e<=55}Z.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r<t;++r){var i=e.current();if(!Cp(i))return e.pos=n,!1;e.lastIntValue=16*e.lastIntValue+wp(i),e.advance()}return!0};var Ep=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new rf(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},Q=Df.prototype;Q.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,`Escape sequence in keyword `+this.type.keyword),this.options.onToken&&this.options.onToken(new Ep(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},Q.getToken=function(){return this.next(),new Ep(this)},typeof Symbol<`u`&&(Q[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===J.eof,value:t}}}}),Q.nextToken=function(){var e=this.curContext();if(e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(J.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())},Q.readToken=function(e){return Id(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)},Q.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888},Q.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,n=this.input.indexOf(`*/`,this.pos+=2);if(n===-1&&this.raise(this.pos-2,`Unterminated comment`),this.pos=n+2,this.options.locations)for(var r=void 0,i=t;(r=Gd(this.input,i,this.pos))>-1;)++this.curLine,i=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,n),t,this.pos,e,this.curPosition())},Q.skipLineComment=function(e){for(var t=this.pos,n=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!Wd(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,n,this.curPosition())},Q.skipSpace=function(){loop:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break loop}break;default:if(e>8&&e<14||e>=5760&&Kd.test(String.fromCharCode(e)))++this.pos;else break loop}}},Q.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)},Q.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(J.ellipsis)):(++this.pos,this.finishToken(J.dot))},Q.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(J.assign,2):this.finishOp(J.slash,1)},Q.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=e===42?J.star:J.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++n,r=J.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(J.assign,n+1):this.finishOp(r,n)},Q.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.options.ecmaVersion>=12&&this.input.charCodeAt(this.pos+2)===61?this.finishOp(J.assign,3):this.finishOp(e===124?J.logicalOR:J.logicalAND,2):t===61?this.finishOp(J.assign,2):this.finishOp(e===124?J.bitwiseOR:J.bitwiseAND,1)},Q.readToken_caret=function(){return this.input.charCodeAt(this.pos+1)===61?this.finishOp(J.assign,2):this.finishOp(J.bitwiseXOR,1)},Q.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||Hd.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(J.incDec,2):t===61?this.finishOp(J.assign,2):this.finishOp(J.plusMin,1)},Q.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+n)===61?this.finishOp(J.assign,n+1):this.finishOp(J.bitShift,n)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(n=2),this.finishOp(J.relational,n))},Q.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(J.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(J.arrow)):this.finishOp(e===61?J.eq:J.prefix,1)},Q.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57)return this.finishOp(J.questionDot,2)}if(t===63)return e>=12&&this.input.charCodeAt(this.pos+2)===61?this.finishOp(J.assign,3):this.finishOp(J.coalesce,2)}return this.finishOp(J.question,1)},Q.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),Id(t,!0)||t===92))return this.finishToken(J.privateId,this.readWord1());this.raise(this.pos,`Unexpected character '`+ef(t)+`'`)},Q.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(J.parenL);case 41:return++this.pos,this.finishToken(J.parenR);case 59:return++this.pos,this.finishToken(J.semi);case 44:return++this.pos,this.finishToken(J.comma);case 91:return++this.pos,this.finishToken(J.bracketL);case 93:return++this.pos,this.finishToken(J.bracketR);case 123:return++this.pos,this.finishToken(J.braceL);case 125:return++this.pos,this.finishToken(J.braceR);case 58:return++this.pos,this.finishToken(J.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(J.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(J.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,`Unexpected character '`+ef(e)+`'`)},Q.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},Q.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,`Unterminated regular expression`);var r=this.input.charAt(this.pos);if(Hd.test(r)&&this.raise(n,`Unterminated regular expression`),e)e=!1;else{if(r===`[`)t=!0;else if(r===`]`&&t)t=!1;else if(r===`/`&&!t)break;e=r===`\\`}++this.pos}var i=this.input.slice(n,this.pos);++this.pos;var a=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(a);var s=this.regexpState||=new pp(this);s.reset(n,i,o),this.validateRegExpFlags(s),this.validateRegExpPattern(s);var c=null;try{c=new RegExp(i,o)}catch{}return this.finishToken(J.regexp,{pattern:i,flags:o,value:c})},Q.readInt=function(e,t,n){for(var r=this.options.ecmaVersion>=12&&t===void 0,i=n&&this.input.charCodeAt(this.pos)===48,a=this.pos,o=0,s=0,c=0,l=t??1/0;c<l;++c,++this.pos){var u=this.input.charCodeAt(this.pos),d=void 0;if(r&&u===95)i&&this.raiseRecoverable(this.pos,`Numeric separator is not allowed in legacy octal numeric literals`),s===95&&this.raiseRecoverable(this.pos,`Numeric separator must be exactly one underscore`),c===0&&this.raiseRecoverable(this.pos,`Numeric separator is not allowed at the first of digits`),s=u;else{if(d=u>=97?u-97+10:u>=65?u-65+10:u>=48&&u<=57?u-48:1/0,d>=e)break;s=u,o=o*e+d}}return r&&s===95&&this.raiseRecoverable(this.pos-1,`Numeric separator is not allowed at the last of digits`),this.pos===a||t!=null&&this.pos-a!==t?null:o};function Dp(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,``))}function Op(e){return typeof BigInt==`function`?BigInt(e.replace(/_/g,``)):null}Q.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var n=this.readInt(e);return n??this.raise(this.start+2,`Expected number in radix `+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(n=Op(this.input.slice(t,this.pos)),++this.pos):Id(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`),this.finishToken(J.num,n)},Q.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,`Invalid number`);var n=this.pos-t>=2&&this.input.charCodeAt(t)===48;n&&this.strict&&this.raise(t,`Invalid number`);var r=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&r===110){var i=Op(this.input.slice(t,this.pos));return++this.pos,Id(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`),this.finishToken(J.num,i)}n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1),r===46&&!n&&(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),r!==69&&r!==101||n||(r=this.input.charCodeAt(++this.pos),(r===43||r===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,`Invalid number`)),Id(this.fullCharCodeAtPos())&&this.raise(this.pos,`Identifier directly after number`);var a=Dp(this.input.slice(t,this.pos),n);return this.finishToken(J.num,a)},Q.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var n=++this.pos;t=this.readHexChar(this.input.indexOf(`}`,this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(n,`Code point out of bounds`)}else t=this.readHexChar(4);return t},Q.readString=function(e){for(var t=``,n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated string constant`);var r=this.input.charCodeAt(this.pos);if(r===e)break;r===92?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):r===8232||r===8233?(this.options.ecmaVersion<10&&this.raise(this.start,`Unterminated string constant`),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(Wd(r)&&this.raise(this.start,`Unterminated string constant`),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(J.string,t)};var kp={};Q.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===kp)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1},Q.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw kp;this.raise(e,t)},Q.readTmplToken=function(){for(var e=``,t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,`Unterminated template`);var n=this.input.charCodeAt(this.pos);if(n===96||n===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===J.template||this.type===J.invalidTemplate)?n===36?(this.pos+=2,this.finishToken(J.dollarBraceL)):(++this.pos,this.finishToken(J.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(J.template,e));if(n===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(Wd(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
|
|
33
33
|
`;break;default:e+=String.fromCharCode(n)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},Q.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case`\\`:++this.pos;break;case`$`:if(this.input[this.pos+1]!==`{`)break;case"`":return this.finishToken(J.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,`Unterminated template`)},Q.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
|
|
34
34
|
`;case 114:return`\r`;case 120:return String.fromCharCode(this.readHexChar(2));case 117:return ef(this.readCodePoint());case 116:return` `;case 98:return`\b`;case 118:return`\v`;case 102:return`\f`;case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),``;case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,`Invalid escape sequence`),e){var n=this.pos-1;this.invalidStringToken(n,`Invalid escape sequence in template string`)}default:if(t>=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(r,8);return i>255&&(r=r.slice(0,-1),i=parseInt(r,8)),this.pos+=r.length-1,t=this.input.charCodeAt(this.pos),(r!==`0`||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-r.length,e?`Octal literal in template string`:`Octal literal in strict mode`),String.fromCharCode(i)}return Wd(t)?``:String.fromCharCode(t)}},Q.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return n===null&&this.invalidStringToken(t,`Bad character escape sequence`),n},Q.readWord1=function(){this.containsEsc=!1;for(var e=``,t=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(Ld(i,r))this.pos+=i<=65535?1:2;else if(i===92){this.containsEsc=!0,e+=this.input.slice(n,this.pos);var a=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,`Expecting Unicode escape sequence \\uXXXX`),++this.pos;var o=this.readCodePoint();(t?Id:Ld)(o,r)||this.invalidStringToken(a,`Invalid Unicode escape`),e+=ef(o),n=this.pos}else break;t=!1}return e+this.input.slice(n,this.pos)},Q.readWord=function(){var e=this.readWord1(),t=J.name;return this.keywords.test(e)&&(t=Vd[e]),this.finishToken(t,e)},Df.acorn={Parser:Df,version:`8.8.2`,defaultOptions:of,Position:nf,SourceLocation:rf,getLineInfo:af,Node:Yf,TokenType:K,tokTypes:J,keywordTypes:Vd,TokContext:Vf,tokContexts:Hf,isIdentifierChar:Ld,isIdentifierStart:Id,Token:Ep,isNewLine:Wd,lineBreak:Hd,lineBreakG:Ud,nonASCIIwhitespace:Kd};var Ap=Dt(At(),1),jp=Df.extend((0,Ap.default)()),Mp=1024;function Np(e,t){let n=e.type===`CallExpression`&&`callee`in e&&e.callee instanceof Yf?e.callee:e;return n.type===`ParenthesizedExpression`&&n.start===t?n.end:void 0}function Pp(e){let t,n=``,r=``,i=e.length*2,a=``;return{parse(e,t={}){return jp.parse(e,Object.assign(Object.assign({},t),{ecmaVersion:t.ecmaVersion??`latest`}))},parseExpressionAt(o,s,c={}){let l=Object.assign(Object.assign({},c),{ecmaVersion:c.ecmaVersion??`latest`}),u=JSON.stringify(Object.assign(Object.assign({},l),{onComment:void 0,onToken:void 0}));if(u!==a&&(r=``,n=``,a=u),s===0&&r.length>o.length&&r.startsWith(o))throw Object.assign(/* @__PURE__ */ SyntaxError(`Unexpected end of expression`),{pos:o.length,raisedAt:o.length});try{let e=jp.parseExpressionAt(o,s,l);return r=``,n=``,e}catch(a){if(s!==0||o.length<Mp||!o.trimStart().startsWith(`(`)||!(a instanceof SyntaxError)||!(`raisedAt`in a)||typeof a.raisedAt!=`number`||a.raisedAt<o.length||n!==``&&o.startsWith(n))throw a;n=o,r=``,t??=e.replace(/(\r\n|\r|\n) {1,2}/g,`$1`);let c=t.indexOf(o);if(c>=1&&t[c-1]===`{`&&t[c+o.length]===`}`&&t.indexOf(o,c+1)===-1)try{let e=t.slice(c);if(e.length>i)throw a;i-=e.length;let n=Np(jp.parseExpressionAt(e,s,Object.assign(Object.assign({},l),{onComment:void 0,onToken:void 0,preserveParens:!0})),o.search(/\S/));n!==void 0&&n>o.length&&(r=e.slice(0,n))}catch{r=``}throw a}}}}var Fp=re().use(yt).use(_t).use(e,[`yaml`,`toml`]).freeze(),Ip=Fp().use(l).freeze();function Lp(e){return e.split(/(```[\s\S]*?```|~~~[\s\S]*?~~~)/).map((e,t)=>t%2==0?e.replace(/<!--([\s\S]*?)-->/g,(e,t)=>`{/* ${t} */}`):e).join(``)}function Rp(e,t={}){let n=t.omitHtmlComments??!0?Lp(e):e;return{sanitized:n,preprocessed:i(n,{preserveOriginal:!0})}}var zp=e=>e.children.length===0||e.name===`video`;function Bp(e,t){n(e,e=>{if(!c(e)||!zp(e))return;let n=e.position?.end.offset;n===void 0||t.endsWith(`/>`,n)||(e.data=Object.assign(Object.assign({},e.data),{closingTag:!0}))})}var Vp=[Qc({singleTilde:!0}),wd({estree:!0}),Zc([`yaml`,`toml`])],Hp=[...Vp,$c({singleDollarTextMath:!0})];function Up(e,t){let r=Yc(e,{syntax:t?Hp:Vp});if(r instanceof Error)return;let i=r;return n(i,[`mdxJsxFlowElement`,`mdxJsxTextElement`],e=>{if(`attributes`in e)for(let t of e.attributes)delete t.position}),i}function Wp(e,t=!0){let n={acorn:Pp(e)},r=Up(e,t)??(t?Ip:Fp)().use(yt,n).parse(e);return Bp(r,e),t&&ae(r,e),r}function Gp(e,t={omitHtmlComments:!0}){return Wp(Rp(e,t).preprocessed,t.math)}var Kp=`__expressionAttributes`,qp=`__namedExpressionAttributes`,Jp=`__mintlifyExtraAttrs`,Yp=Symbol(`unsupported-estree`);function Xp(e,t){if(!e)return Yp;switch(e.type){case`Literal`:return e.value;case`TemplateLiteral`:return e.expressions.length===0?e.quasis[0]?.value.cooked??``:Yp;case`Identifier`:return t?Yp:e.name===`undefined`?void 0:e.name;case`UnaryExpression`:{let n=Xp(e.argument,t);return typeof n==`number`?e.operator===`-`?-n:e.operator===`+`?n:Yp:Yp}case`ArrayExpression`:{let n=[];for(let r of e.elements){if(!r||r.type===`SpreadElement`)return Yp;let e=Xp(r,t);if(e===Yp)return Yp;n.push(e)}return n}case`ObjectExpression`:{let n={};for(let r of e.properties){if(r.type!==`Property`||r.computed||r.method||r.kind!==`init`)return Yp;let e=r,i=e.key.type===`Identifier`?e.key.name:e.key.type===`Literal`&&(typeof e.key.value==`string`||typeof e.key.value==`number`)?String(e.key.value):void 0;if(!i)return Yp;let a=e.shorthand?e.key.type===`Identifier`?Xp(e.key,t):Yp:Xp(e.value,t);if(a===Yp)return Yp;n[i]=a}return n}default:return Yp}}function Zp(e,t,n){let r=t?.body[0],i=Xp(r?.type===`ExpressionStatement`?r.expression:void 0,n);return i===Yp?e.trim()!==``&&!Number.isNaN(Number(e))?Number(e):e:i}function Qp(e=[]){let t=$(e,{staticOnly:!0}).start;return typeof t==`number`?Number.isInteger(t)?t:1:typeof t==`string`&&/^\s*-?\d+\s*$/.test(t)?Number(t):1}function $(e=[],t={}){let n={},r=[],i={};for(let a of e){if(a.type===`mdxJsxExpressionAttribute`){r.push(a.value);continue}let e=a.value;if(typeof e==`object`&&e){let r=e.value;typeof r==`string`?(i[a.name]=r,n[a.name]=Zp(r,`data`in e?e.data?.estree??void 0:void 0,t.staticOnly??!1)):n[a.name]=r}else e==null?n[a.name]=!0:n[a.name]=e}return r.length>0&&(n[Kp]=r),Object.keys(i).length>0&&(n[qp]=i),n}function $p(e){try{let[t]=Wp(`<X value={${e}} />`,!1).children;return t?.type!==`mdxJsxFlowElement`||t.attributes.length!==1?e:$(t.attributes).value}catch{return e}}var em=/* @__PURE__ */ new Set([`ref`,`key`,`dangerouslySetInnerHTML`]);function tm(e){let t=e[qp],n=t&&typeof t==`object`?t:{},r={};for(let[t,i]of Object.entries(e))t!==Kp&&t!==qp&&t!==Jp&&(em.has(t)||Lt.has(t)||t in n&&i===n[t]||(r[t]=i));return r}function nm(e,t,n=[]){let r={},i={};for(let[a,o]of Object.entries(e))n.includes(a)||(a===Kp||a===qp||t.some(e=>e.name===a)?r[a]=o:i[a]=o);return Object.keys(i).length>0&&(r[Jp]=i),r}var rm=nn.filter(e=>e.name!==`type`);function im(e){return typeof e==`string`?jt.find(t=>t.toLowerCase()===e.toLowerCase())??null:null}function am(e,t){if(e!==`Callout`)return Object.assign({type:e},nm(t,rm));let n=im(t.type);return Object.assign({type:n},nm(t,rm,n?[`type`]:[]))}function om(e){let t=e.split(` `).reverse();for(let[e,n]of Object.entries(Bt))if(t.includes(n))return e}function sm(e){if(e&&typeof e==`object`&&`width`in e){let t=e.width;if(typeof t==`string`&&t.endsWith(`%`)){let e=parseInt(t.slice(0,-1),10);if(!isNaN(e))return e}}}var cm=e=>typeof e==`object`&&!!e&&!Array.isArray(e);function lm(e,t=!1){let n=$(e.attributes),r=n.className,i;typeof r==`string`&&(i=om(r));let a=n.style,o;cm(a)&&(o=sm(a));let s=Object.assign(Object.assign({},t?Object.assign({},n):n),{[Rt]:!0});return{type:O.image,attrs:{imgAttributes:s,align:i,width:o}}}function um(e){return(e.type===`mdxJsxTextElement`||e.type===`mdxJsxFlowElement`)&&e.name===`source`}function dm(e){if(!e.children.every(e=>um(e)||e.type===`text`&&e.value.trim()===``))return{type:e.type===`mdxJsxTextElement`?O.inlineUnknownTag:O.unknownTag,attrs:{mdxJsxNode:e}};let t=e.children.filter(um).map(e=>$(e.attributes)),n=$(e.attributes);return{type:O.video,attrs:{videoAttributes:e.data?.closingTag===!0?Object.assign(Object.assign({},n),{[zt]:!0}):n,sources:t.length>0?t:null}}}var fm=/* @__PURE__ */ new Set([`hidden`,`dark:block`]),pm=/* @__PURE__ */ new Set([`dark:hidden`]);function mm(e){let t=e.attrs?.imgAttributes;return cm(t)?t:null}function hm(e){let t=mm(e)?.className;return typeof t==`string`?t:void 0}function gm(e){if(e.type!==O.image)return!1;let t=hm(e);if(!t)return!1;let n=t.split(/\s+/);return n.includes(`hidden`)&&n.includes(`dark:block`)}function _m(e){if(e.type!==O.image)return!1;let t=hm(e);return t?t.split(/\s+/).includes(`dark:hidden`):!1}function vm(e,t){if(!e)return;let n=t===`dark`?fm:pm;return e.split(/\s+/).filter(e=>!n.has(e)).join(` `).trim()||void 0}function ym(e){return Object.entries(e).filter(([e])=>e!==`src`&&e!==`className`).sort(([e],[t])=>e<t?-1:+(e>t))}function bm(e,t,n,r){let i=vm(n,`light`),a=vm(r,`dark`),o=i?.split(/\s+/).filter(e=>e!==`block`).join(` `).trim()||void 0;if(a!==i&&a!==o)return!1;let s=ym(e),c=ym(t);return s.length===c.length&&JSON.stringify(s)===JSON.stringify(c)}function xm(e){let t=[],n=0;for(;n<e.length;){let r=e[n],i=e[n+1];if(r&&i){let e,a;gm(r)&&_m(i)?(e=r,a=i):_m(r)&&gm(i)&&(a=r,e=i);let o=e?mm(e):null,s=a?mm(a):null,c=o?.src,l=s?.src;if(e&&a&&o&&s&&typeof c==`string`&&typeof l==`string`&&bm(s,o,hm(a),hm(e))){let r=vm(hm(a),`light`),i=Object.assign({},s);delete i.src,r?i.className=r:delete i.className,t.push({type:O.image,attrs:{imgAttributes:i,lightSrc:l,darkSrc:c,align:a.attrs?.align??e.attrs?.align,width:a.attrs?.width??e.attrs?.width}}),n+=2;continue}}r&&t.push(r),n++}return t}function Sm(e){if(!e)return null;if(e.type===`image`)return{type:O.inlineImage,attrs:{imgAttributes:{src:e.url,alt:e.alt??void 0,title:e.title??void 0},width:100}};if(e.type===`mdxJsxTextElement`&&e.name===`img`){let t=$(e.attributes),n=100;if(t.width&&typeof t.width==`number`)n=t.width;else if(cm(t.style)){let e=sm(t.style);e&&(n=e)}return{type:O.inlineImage,attrs:{imgAttributes:Object.assign(Object.assign({},t),{[Rt]:!0}),width:n}}}return null}function Cm(e,t,n){let r=wm(e,`icon`),i=wm(e,`iconType`),a=Tm(e),o=wm(e,`description`)??``,s=[{type:`paragraph`}];if(o)try{let e=Gp(o);Em(e);let r=n(e,t),i=!Array.isArray(r)&&r.type===`doc`&&Array.isArray(r.content)?r.content:Array.isArray(r)?r:[r];i.length>0&&(s=i)}catch{s=[{type:`paragraph`,content:[Zn(o)]}]}let c=Dm(e,t.source),l=nm($(e.attributes),gn,[`description`])[Jp];return{type:O.promptBlock,attrs:Object.assign({icon:r,iconType:i,actions:a},l?{[Jp]:l}:{}),content:[{type:O.promptDescription,content:s},{type:O.codeBlock,attrs:{language:`text`,__hasGroupParent:!0,__isPromptChild:!0,wrap:!0},content:c?[Zn(c)]:[]}]}}function wm(e,t){let n=$(e.attributes)[t];if(typeof n!=`string`)return;let r=e.attributes.find(e=>e.type===`mdxJsxAttribute`&&e.name===t);if(r?.type===`mdxJsxAttribute`&&r.value!==null&&typeof r.value==`object`&&n===r.value.value){let e=n.trim();if(e.startsWith("`")&&e.endsWith("`"))return e.slice(1,-1).replace(/\\`/g,"`").replace(/\\\$/g,`$`).replace(/\\\\/g,`\\`)}return n}function Tm(e){let t=$(e.attributes,{staticOnly:!0}).actions;return Array.isArray(t)?t.filter(e=>typeof e==`string`):[`copy`]}function Em(e){n(e,`link`,(e,t,n)=>{if(n&&typeof t==`number`&&e.children.length===1&&e.children[0]?.type===`text`&&e.children[0].value===e.url)return n.children[t]={type:`text`,value:e.url},oe})}function Dm(e,t){if(!e.position||!t)return``;let n=e.position.start.offset,r=e.position.end.offset;if(n===void 0||r===void 0)return``;let i=t.slice(n,r),a=i.match(/<\/\s*Prompt\s*>$/);if(!a)return``;let o=-1,s=0,c=!1,l=!1;for(let e=1;e<i.length;e++){let t=i[e]??``,n=i[e-1]??``;if(l)t==="`"&&n!==`\\`&&(l=!1);else if(c)t===c&&n!==`\\`&&(c=!1);else if(t==="`"&&s>0)l=!0;else if(t===`"`||t===`'`)c=t;else if(t===`{`)s++;else if(t===`}`)s--;else if(t===`>`&&s===0){o=e+1;break}}if(o===-1)return``;let u=i.length-a[0].length;return i.slice(o,u).trim()}var Om={[O.accordion]:tn,[O.badge]:on,[O.card]:$t,[O.codeBlock]:hn,[O.columns]:en,[O.expandable]:ln,[O.frame]:cn,[O.icon]:mn,[O.mermaidBlock]:_n,[O.paramField]:vn,[O.promptBlock]:gn,[O.responseField]:yn,[O.step]:Qt,[O.tab]:rn,[O.tabs]:an,[O.tooltip]:sn,[O.update]:pn,[O.visibility]:un};function km(e,t){return nm(e,Om[t]??[])}var Am=/* @__PURE__ */ new Map([[O.callout,!0],[O.column,!0],[O.expandable,!0],[O.frame,!0],[O.paramField,!0],[`Prompt`,!1],[O.responseField,!0],[O.tab,!0],[O.update,!0],[O.visibility,!1],[O.accordion,!1],[O.accordionGroup,!1],[O.card,!1],[O.codeGroup,!1],[O.columns,!1],[O.requestExample,!1],[O.responseExample,!1],[O.steps,!1],[O.tabs,!1]]);function jm(e,t){let n=t.nodes[e];return!!n&&!n.isInline&&!(n.spec.group??``).split(` `).includes(`block`)}var Mm=(e,t)=>Am.get(e)&&t.length===0?[{type:`paragraph`}]:t;function Nm(e,t,n,r){if(!e.name)return[];try{return Pm(e,t,n,r)}catch{return[]}}function Pm(e,t,n,r){if(!e.name)return[];if(/^h[1-6]$/.test(e.name)){let r=$(e.attributes),i=Object.keys(r);if(i.length===1&&i[0]===`id`){let i=parseInt(e.name[1]??`1`,10),a=e.children.flatMap(e=>e.type===`paragraph`?e.children:[e]);return{type:`heading`,attrs:{level:i,customId:r.id},content:a.flatMap(e=>n(e,t)).filter(Boolean)}}}if(e.name===`img`)return lm(e);if(e.name===`video`)return dm(e);if(e.name===`Frame`){let n=$(e.attributes);return{type:O.frame,attrs:nm(n,cn),content:Mm(O.frame,r(e,t))}}let i=jt.includes(e.name);if(e.name===O.steps)return Bm(e,t,n,r);if(e.name===O.accordion)return Hm(e,t,n,r);if(e.name===O.accordionGroup)return{type:O.accordionGroup,attrs:Object.assign(Object.assign({},km($(e.attributes),O.accordionGroup)),t.hasGroupParent&&{__hasGroupParent:!0}),content:r(e,Object.assign(Object.assign({},t),{hasGroupParent:!0}))};if(e.name===O.card)return Um(e,t,n,r);if([O.tabs,O.codeGroup,O.requestExample,O.responseExample].includes(e.name))return Wm(e,t,n,r);if(e.name===O.columns)return Gm(e,t,r);if(e.name===O.color)return qm(e);if(e.name===O.tree)return Ym(e);if(e.name===O.database)return Zm(e,t);let a=i?O.callout:e.name;if((i||e.name!==O.step&&Object.values(O).includes(e.name))&&(t.hasGroupParent||!jm(a,t.schema??Dn))){let n=$(e.attributes);return{type:a,attrs:Object.assign(Object.assign({},i?am(e.name,n):km(n,a)),t.hasGroupParent&&{__hasGroupParent:!0}),content:Mm(a,r(e,t))}}return e.name===`table`&&!nh(e)&&!eh(e)&&!th(e)?rh(e,t,n,r):Mt.has(e.name)?{type:O.staticHTML,attrs:{tagName:e.name,attributes:$(e.attributes),mdxJsxNode:nr(e,t)},content:r(e,Object.assign(Object.assign({},t),{hasStaticHtmlParent:!0}))}:e.name===`Prompt`?Cm(e,t,n):Nt.has(e.name)?{type:O.customComponent,attrs:{name:e.name,attributes:$(e.attributes)},content:r(e,t)}:{type:O.unknownTag,attrs:{mdxJsxNode:e}}}function Fm(e){let t=e.children.flatMap(e=>e.type!==`paragraph`||!Lm(e.children)?e:e.children.filter(e=>e.type===`mdxJsxTextElement`).map(e=>Object.assign(Object.assign({},e),{type:`mdxJsxFlowElement`})));return Object.assign(Object.assign({},e),{children:t})}function Im(e,t){return Fm(e).children.filter(e=>e.type===`mdxJsxFlowElement`&&(t===void 0||e.name===t))}function Lm(e){return e.every(e=>e.type===`mdxJsxTextElement`&&Rm(e.name)||e.type===`text`&&e.value.trim()===``)}function Rm(e){return!!e&&!Mt.has(e)&&!Pt.has(e)}function zm(e,t,n,r){let i=typeof t==`string`&&t?_e(t).flatMap(e=>r(e,n)):[];return Object.assign({type:e},i.length>0?{content:i}:{})}function Bm(e,t,n,r){let i=Fm(e).children,a=[];for(let t of i)if(t.type!==`text`||t.value.trim()!==``){if(t.type!==`mdxJsxFlowElement`||t.name!==O.step)return{type:O.unknownTag,attrs:{mdxJsxNode:e}};a.push(t)}let o=a.map((e,i)=>Vm(e,t,n,r,{index:i,isLast:i===a.length-1}));return{type:O.steps,attrs:Object.assign(Object.assign({},nm($(e.attributes),[])),t.hasGroupParent&&{__hasGroupParent:!0}),content:o}}function Vm(e,t,n,r,i){let a=$(e.attributes),o=a.title,s=r(e,t);return{type:O.step,attrs:Object.assign(Object.assign(Object.assign({},nm(a,Qt,[`title`])),t.hasGroupParent&&{__hasGroupParent:!0}),{__childIndex:i.index,__isLastInGroup:i.isLast}),content:[zm(O.stepTitle,o,t,n),{type:O.stepBody,content:s.length>0?s:[{type:`paragraph`}]}]}}function Hm(e,t,n,r){let i=$(e.attributes),a=i.title,o=r(e,t),s=zm(O.accordionTitle,a,t,n),c={type:O.accordionBody,content:o.length>0?o:[{type:`paragraph`}]};return{type:O.accordion,attrs:Object.assign(Object.assign({},nm(i,tn,[`title`])),t.hasGroupParent&&{__hasGroupParent:!0}),content:[s,c]}}function Um(e,t,n,r){let i=$(e.attributes),a=i.title,o=r(e,t),s=zm(O.cardTitle,a,t,n),c={type:O.cardBody,content:o.length>0?o:[{type:`paragraph`}]};return{type:O.card,attrs:Object.assign(Object.assign({},nm(i,$t,[`title`])),t.hasGroupParent&&{__hasGroupParent:!0}),content:[s,c]}}function Wm(e,t,n,r){let i={[O.tabs]:O.tab,[O.codeGroup]:O.codeBlock,[O.requestExample]:O.codeBlock,[O.responseExample]:O.codeBlock},a=e.children.filter(e=>e.type===`code`),o=t=>e.name===O.tabs?nm(t,an):nm(t,[]);if(a.length>0)return{type:e.name??O.codeGroup,attrs:Object.assign(Object.assign({},o($(e.attributes))),t.hasGroupParent&&{__hasGroupParent:!0}),content:a.map((e,r)=>{let i=n(e,Object.assign(Object.assign({},t),{hasGroupParent:!0,isHidden:r!==0}));return Array.isArray(i)?i[0]??{type:`paragraph`}:i})};let s=Im(e);if(s.length>0){let n=i[e.name??``]??O.tab,a=e=>n===O.tab?nm(e,rn):e,c=s.map((i,o)=>({type:n,attrs:Object.assign(Object.assign({},a($(i.attributes))),{__isHidden:o!==0,__hasGroupParent:!0}),content:Mm(n,r(i,Object.assign(Object.assign({},t),{hasGroupParent:e.name!==O.tabs,isHidden:e.name!==O.tabs&&o!==0})))}));return{type:e.name??O.tabs,attrs:Object.assign(Object.assign({},o($(e.attributes))),t.hasGroupParent&&{__hasGroupParent:!0}),content:c}}return r(e,t).length>0?{type:O.unknownTag,attrs:{mdxJsxNode:e}}:{type:e.name??O.tabs,attrs:o($(e.attributes)),content:[]}}function Gm(e,t,n){let r=nm($(e.attributes),en),i=n(e,Object.assign(Object.assign({},t),{hasGroupParent:!0})).map(e=>e.type===O.column?Object.assign(Object.assign({},e),{content:Mm(O.column,e.content??[])}):e);return{type:O.columns,attrs:Object.assign(Object.assign({},r),t.hasGroupParent&&{__hasGroupParent:!0}),content:i}}function Km(e){let t=$(e.attributes),n=t.__namedExpressionAttributes;return{type:`item`,name:typeof t.name==`string`?t.name:void 0,value:t.value,rawValueExpr:n?.value}}function qm(e){let t=$(e.attributes),n=typeof t.variant==`string`?t.variant:null,r=nm(t,[],[`variant`]),i=Im(e).map(e=>{if(e.name===`Color.Item`)return Km(e);if(e.name===`Color.Row`){let t=$(e.attributes),n=Im(e,`Color.Item`).map(Km);return{type:`row`,title:typeof t.title==`string`?t.title:void 0,items:n}}return null}).filter(e=>e!==null);return{type:O.color,attrs:Object.assign({variant:n,colorData:i},r)}}function Jm(e){return Im(e).map(e=>{if(e.name===`Tree.File`){let t=$(e.attributes);return{type:`file`,name:typeof t.name==`string`?t.name:void 0}}if(e.name===`Tree.Folder`){let t=$(e.attributes);return{type:`folder`,name:typeof t.name==`string`?t.name:void 0,defaultOpen:typeof t.defaultOpen==`boolean`?t.defaultOpen:void 0,openable:typeof t.openable==`boolean`?t.openable:void 0,children:Jm(e)}}return null}).filter(e=>e!==null)}function Ym(e){let t=nm($(e.attributes),[]);return{type:O.tree,attrs:Object.assign({treeData:Jm(e)},t)}}var Xm=[`view`,`sort`,`filter`,`groupBy`,`calendarBy`];function Zm(e,t){let n=Hn(e.attributes),r=$(Un(e.attributes));return t.databases===!0&&n!==Fn&&(t.schema??Dn).nodes[O.database]&&e.children.length===0&&!(Kp in r)&&!(qp in r)&&jn(r.id)&&Xm.every(e=>r[e]===void 0||typeof r[e]==`string`)?{type:O.database,attrs:Object.assign(Object.assign({},nm(r,fn)),{sql:n})}:{type:O.unknownTag,attrs:{mdxJsxNode:e}}}var Qm=/* @__PURE__ */ new Set([`colspan`,`colSpan`,`rowspan`,`rowSpan`]),$m=/* @__PURE__ */ new Set([`class`,`className`]);function eh(e){return e.attributes.some(e=>e.type===`mdxJsxAttribute`&&$m.has(e.name))}function th(e){return ah(e.children).some(e=>(e.type===`mdxJsxFlowElement`||e.type===`mdxJsxTextElement`)&&(e.name===`tfoot`||e.name===`caption`||e.name===`thead`&&oh(e.children,`tr`).length>1))}function nh(e){return ph(e)&&e.attributes.some(e=>e.type===`mdxJsxAttribute`&&Qm.has(e.name))?!0:`children`in e&&e.children.some(e=>nh(e))}function rh(e,t,n,r){let i=[];for(let t of ah(e.children))dh(t)?i.push(t):(ih(t,`thead`)||ih(t,`tbody`))&&i.push(...ah(t.children).filter(dh));if(i.length===0)return{type:`table`,content:[]};let a=lh(e);return{type:`table`,content:i.map((e,i)=>({type:`tableRow`,content:fh(e).map((e,o)=>{let s=e.name===`th`||i===0,c=a[o],l=$(e.attributes).style,u=(typeof l==`string`?l:l&&typeof l==`object`?Object.entries(l).map(([e,t])=>`${e}: ${String(t)}`).join(`; `):``).match(/text(?:-align|Align):\s*(left|center|right)/i),d=mh(e,t,n,r);return{type:s?`tableHeader`:`tableCell`,attrs:{align:u?.[1]??null,colwidth:c?[c]:null},content:d.length>0?d:[{type:`paragraph`}]}})}))}}function ih(e,t){return(e.type===`mdxJsxFlowElement`||e.type===`mdxJsxTextElement`)&&e.name===t}function ah(e){return e.flatMap(e=>e.type===`paragraph`?e.children:[e])}function oh(e,t){return ah(e).filter(e=>ih(e,t))}function sh(e){let t=$(e.attributes),n=t.style,r=typeof n==`string`?n.match(/(?:^|;)\s*width:\s*([^;]+)/i)?.[1]:n&&typeof n==`object`?n.width:void 0,i=t.width??r;if(typeof i==`number`)return i>0?i:null;if(typeof i!=`string`)return null;let a=i.trim().match(/^(\d+(?:\.\d+)?)(?:px)?$/),o=a?.[1]?Number(a[1]):NaN;return o>0?o:null}function ch(e){let t=Number($(e.attributes).span);return Number.isInteger(t)&&t>0?t:1}function lh(e){let t=oh(e.children,`col`);for(let n of oh(e.children,`colgroup`))t.push(...oh(n.children,`col`));return t.flatMap(e=>Array(ch(e)).fill(sh(e)))}function uh(e){return Array.isArray(e)?e.filter(Boolean):[e]}function dh(e){return(e.type===`mdxJsxFlowElement`||e.type===`mdxJsxTextElement`)&&e.name===`tr`}function fh(e){let t=[];for(let n of e.children)if(ph(n))t.push(n);else if(n.type===`paragraph`)for(let e of n.children)ph(e)&&t.push(e);return t}function ph(e){return(e.type===`mdxJsxFlowElement`||e.type===`mdxJsxTextElement`)&&(e.name===`td`||e.name===`th`)}function mh(e,t,n,r){let i=[];for(let a of e.children)if(a.type!==`mdxJsxFlowElement`&&a.type!==`mdxJsxTextElement`)i.push(...uh(n(a,t)));else if(a.name===`p`)i.push({type:`paragraph`,content:hh(a,t,n,r)});else if(a.name&&/^h[1-6]$/.test(a.name)){let e=parseInt(a.name[1]??`1`,10),o=$(a.attributes);i.push({type:`heading`,attrs:{level:e,id:o.id??null},content:hh(a,t,n,r)})}else if(a.name===`ul`||a.name===`ol`){let e=a.children.filter(e=>(e.type===`mdxJsxFlowElement`||e.type===`mdxJsxTextElement`)&&e.name===`li`).map(e=>({type:`listItem`,content:[{type:`paragraph`,content:hh(e,t,n,r)}]}));e.length>0&&i.push({type:a.name===`ol`?`orderedList`:`bulletList`,attrs:a.name===`ol`?{start:Qp(a.attributes)}:{},content:e})}else i.push(...uh(n(a,t)));return tr(i,t.schema??Dn)}function hh(e,t,n,r){return e.type===`mdxJsxFlowElement`?r(e,t).flatMap(e=>e.type===`paragraph`?e.content??[]:[e]):e.children.flatMap(e=>uh(n(e,t)))}function gh(e,t,n){if(e.name===`Tooltip`){let r=nm($(e.attributes),sn),i=n(e,t);return{type:O.tooltip,attrs:r,content:i.length>0?i:[]}}if(e.name===`img`)return lm(e,!0);if(e.name===`video`)return dm(e);if(e.name===`br`)return{type:`hardBreak`};if(e.name===`kbd`){let{text:t}=Qn(e);return Zn(t,[{type:`kbd`}])}if(e.name===`Icon`)return{type:O.icon,attrs:nm($(e.attributes),mn)};if(e.name===`Badge`){let t=nm($(e.attributes),on),{text:n}=Qn(e);return{type:O.badge,attrs:t,content:n?[{type:`text`,text:n}]:[]}}if(e.name===`u`||e.name===`sub`||e.name===`sup`){let{text:t}=Qn(e);return{type:`text`,text:t,marks:$n(e)}}if(e.name&&jt.includes(e.name))return{type:O.callout,attrs:am(e.name,$(e.attributes)),content:[{type:`paragraph`,content:n(e,t)}]};if(e.name&&Nt.has(e.name))return{type:O.customComponent,attrs:{name:e.name,attributes:$(e.attributes)},content:tr(n(e,t),t.schema??Dn)};if(e.name&&Mt.has(e.name)){let r=t.schema??Dn,i=n(e,Object.assign(Object.assign({},t),{hasStaticHtmlParent:!0})),a=i.some(e=>!er(e,r));return{type:a?O.staticHTML:O.inlineStaticHTML,attrs:{tagName:e.name,attributes:$(e.attributes),mdxJsxNode:nr(e,t)},content:a?tr(i,r):i}}return e.name?{type:O.inlineUnknownTag,attrs:{mdxJsxNode:e}}:{type:`paragraph`,content:n(e,t)}}var _h=e=>{let t=[],n=e.length,r=0;for(;r<n;){for(;r<n&&/\s/.test(e[r]);)r++;if(r>=n)break;let i=``;for(;r<n&&!/\s/.test(e[r]);){let t=e[r];if(t===`"`||t===`'`){let a=t;for(i+=t,r++;r<n&&e[r]!==a;)e[r]===`\\`&&r+1<n?(i+=e[r]+e[r+1],r+=2):(i+=e[r],r++);r<n&&(i+=e[r],r++)}else if(t===`{`){for(;r<n&&e[r]!==`}`;)i+=e[r],r++;r<n&&(i+=e[r],r++)}else i+=t,r++}i&&t.push(i)}return t},vh=e=>{let t=e.match(/^\{(.*)\}$/);return t?t[1]??``:bh(e)},yh=e=>e.replace(/\\(["'\\])/g,`$1`),bh=e=>{let t=e.match(/^(['"])(.*)\1$/);return t?yh(t[2]??``):e.startsWith(`"`)||e.startsWith(`'`)?e.slice(1):e},xh=e=>{if(!e)return{};let t={},n=_h(e.trim()),r=[];for(let e of n){let n=e.match(/^highlight=(.+)$/);if(n){let e=vh(n[1]??``);e&&(t.highlight=e);continue}let i=e.match(/^\{([\d,\-]+)\}$/);if(i){t.highlight=i[1]??``;continue}let a=e.match(/^focus=(.+)$/);if(a){let e=vh(a[1]??``);e&&(t.focus=e);continue}let o=e.match(/^icon=(.+)$/);if(o){t.icon=bh(o[1]??``);continue}let s=e.match(/^title=(.+)$/);if(s){let e=bh(s[1]??``);e&&(t.filename=e,t.filenameSyntax=`title`)}else e===`expandable`||e===`lines`||e===`wrap`||e===`twoslash`||e===`nocopy`?t[e]=!0:e.includes(`=`)||r.push(e)}return t.filename===void 0&&r.length>0&&(t.filename=r.join(` `)),t};function Sh(e){let t=e.split(`
|
|
35
35
|
`),n=[],r=[],i=[];for(let e=0;e<t.length;e++){let a=t[e]??``,o=a.match(/^(.*?)\s*(?:\/\/|\/\*|#|--|<!--)\s*\[!code \+\+\]\s*(?:\*\/|-->)?\s*$/),s=a.match(/^(.*?)\s*(?:\/\/|\/\*|#|--|<!--)\s*\[!code --\]\s*(?:\*\/|-->)?\s*$/);o?(n.push(e+1),i.push(o[1]??``)):s?(r.push(e+1),i.push(s[1]??``)):i.push(a)}return{cleanedCode:i.join(`
|